repoctl commit (commons repoctl 0005-repoctl-library-commit-doctorFR-004 to FR-007): the commit of this repository, made one way. The author and the committer are the identity of the repository's configuration, the message is the subject and then the trailers the configuration lists (the reference to an issue, the line that credits the agent, the session) on their own lines, files that must not be committed (the local folder of an agent, installed packages, files that look like secrets) are refused by their paths and by what they say, and the generated files are checked first (before anything is staged), so that no commit leaves one stale. Pure where it can be: the message and the refusals are functions of their inputs.
type CommitInput = {
readonly subject: CommitSubject;
readonly refs: IssueNumber | undefined;
/** The impact the c…(646 characters)
typeCommitInput= {
readonlysubject:CommitSubject;
readonlyrefs:IssueNumber|undefined;
/** The impact the commit states on its `Impact:` line, where the policy has the trailer and the commit gives one. */readonlyimpact:CommitImpact|undefined;
/** The address of the session, where the policy has the trailer. */readonlysession:SessionUrl|undefined;
/** The line that credits the agent, where the policy has the trailer. */readonlycoAuthor:string|undefined;
/** Paths to stage first (the files already staged are committed in any case). */readonlypaths:readonlystring[];
readonlydryRun:boolean;
};
The message: the subject, then the trailers the policy lists, in its order, each a line: the reference to an issue (the policy's prefix and the number), Impact: and the impact, the line that credits the agent, and Claude-Session. A trailer whose value is not given is left out.
type CommitInput = {
readonly subject: CommitSubject;
readonly refs: IssueNumber | undefined;
/** The impact the c…(646 characters)
typeCommitInput= {
readonlysubject:CommitSubject;
readonlyrefs:IssueNumber|undefined;
/** The impact the commit states on its `Impact:` line, where the policy has the trailer and the commit gives one. */readonlyimpact:CommitImpact|undefined;
/** The address of the session, where the policy has the trailer. */readonlysession:SessionUrl|undefined;
/** The line that credits the agent, where the policy has the trailer. */readonlycoAuthor:string|undefined;
/** Paths to stage first (the files already staged are committed in any case). */readonlypaths:readonlystring[];
readonlydryRun:boolean;
};
The message: the subject, then the trailers the policy lists, in its order, each a line: the reference to an issue (the policy's prefix and the number), Impact: and the impact, the line that credits the agent, and Claude-Session. A trailer whose value is not given is left out.