cadet-agent 0.41.0 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -2
- package/package.json +37 -37
- package/src/cli.mjs +323 -40
- package/src/harness/commands.mjs +29 -4
- package/src/harness/gitmemo.mjs +385 -0
- package/src/harness/index.mjs +9 -1
- package/src/harness/state.mjs +520 -51
- package/src/harness/util.mjs +5 -1
package/src/harness/util.mjs
CHANGED
|
@@ -114,8 +114,12 @@ export function changedFiles(cwd, { runner = defaultGitRunner } = {}) {
|
|
|
114
114
|
* recording itself mutates: the gate would be stale the moment it was written,
|
|
115
115
|
* and the resulting record would certify no story code. Excluded here, at the
|
|
116
116
|
* single scan used by both `harness verify` and `harness confirm`.
|
|
117
|
+
*
|
|
118
|
+
* `.cadet/archive/` is excluded for the same reason, one level out: it is the
|
|
119
|
+
* append-only home of sealed evidence, so compaction writes it. Left in, a
|
|
120
|
+
* compaction run would invalidate every live record it had just archived.
|
|
117
121
|
*/
|
|
118
|
-
const CADET_MACHINERY = ['.cadet/state.json', '.cadet/runs/'];
|
|
122
|
+
const CADET_MACHINERY = ['.cadet/state.json', '.cadet/runs/', '.cadet/archive/'];
|
|
119
123
|
|
|
120
124
|
/** True when a repository-relative path is Cadet's own bookkeeping. */
|
|
121
125
|
function isCadetMachinery(relPath) {
|