@dalzoubi/dev-agents-sync 1.0.18 → 1.0.19
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/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* tests/check-constitution-version.test.mjs
|
|
3
3
|
*
|
|
4
4
|
* Tests for scripts/check-constitution-version.mjs — the PR-CI script that
|
|
5
|
-
* enforces the "Constitution version: vN" bump rule on
|
|
5
|
+
* enforces the "Constitution version: vN" bump rule on .agents/constitution.md.
|
|
6
6
|
*
|
|
7
7
|
* The script does NOT exist yet (version-bump-check-script slice is pending).
|
|
8
8
|
* All tests here are expected to fail with "Cannot find" / non-zero exit until
|
|
@@ -90,17 +90,17 @@ function createTempRepo() {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
|
-
* Write
|
|
93
|
+
* Write .agents/constitution.md into a repo, stage and commit it.
|
|
94
94
|
* @param {string} repoDir
|
|
95
95
|
* @param {string} content — full file content
|
|
96
96
|
* @param {string} message — commit message
|
|
97
97
|
* @returns {string} the SHA of the new commit
|
|
98
98
|
*/
|
|
99
99
|
function commitConstitution(repoDir, content, message) {
|
|
100
|
-
const
|
|
101
|
-
mkdirSync(
|
|
102
|
-
writeFileSync(join(
|
|
103
|
-
git(repoDir, ['add', join('
|
|
100
|
+
const agentsDir = join(repoDir, '.agents');
|
|
101
|
+
mkdirSync(agentsDir, { recursive: true });
|
|
102
|
+
writeFileSync(join(agentsDir, 'constitution.md'), content);
|
|
103
|
+
git(repoDir, ['add', join('.agents', 'constitution.md')]);
|
|
104
104
|
git(repoDir, ['commit', '-m', message]);
|
|
105
105
|
return git(repoDir, ['rev-parse', 'HEAD']);
|
|
106
106
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Slice: rewrite-define-estimate-flow
|
|
5
5
|
*
|
|
6
|
-
* Asserts that
|
|
6
|
+
* Asserts that .agents/agents/define.md has been updated to replace the
|
|
7
7
|
* per-slice estimate Q&A flow (asking the user one question per slice) with a
|
|
8
8
|
* model-generated estimate flow that:
|
|
9
9
|
* - generates estimates from slice scope and success criteria
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* These tests FAIL before the implementation change and PASS after.
|
|
15
15
|
*
|
|
16
|
-
* Path under test:
|
|
16
|
+
* Path under test: .agents/agents/define.md (relative to repo root)
|
|
17
17
|
* Test runner: node --test (Node built-in, >= 20)
|
|
18
18
|
*/
|
|
19
19
|
|
|
@@ -30,7 +30,7 @@ import path from 'node:path';
|
|
|
30
30
|
|
|
31
31
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
32
32
|
const REPO_ROOT = path.resolve(__dirname, '../../..');
|
|
33
|
-
const DEFINE_MD = path.join(REPO_ROOT, '
|
|
33
|
+
const DEFINE_MD = path.join(REPO_ROOT, '.agents', 'agents', 'define.md');
|
|
34
34
|
|
|
35
35
|
let content;
|
|
36
36
|
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Slice: note-supervise-estimate-source
|
|
5
5
|
*
|
|
6
|
-
* Asserts that
|
|
6
|
+
* Asserts that .agents/agents/supervise.md contains a provenance note
|
|
7
7
|
* clarifying that per-slice estimates are model-generated by the Define agent
|
|
8
8
|
* (with optional user overrides) and are read at runtime as-is.
|
|
9
9
|
*
|
|
10
10
|
* These tests FAIL before the implementation change and PASS after.
|
|
11
11
|
*
|
|
12
|
-
* Path under test:
|
|
12
|
+
* Path under test: .agents/agents/supervise.md (relative to repo root)
|
|
13
13
|
* Test runner: node --test (Node built-in, >= 20)
|
|
14
14
|
*/
|
|
15
15
|
|
|
@@ -26,7 +26,7 @@ import path from 'node:path';
|
|
|
26
26
|
|
|
27
27
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
28
28
|
const REPO_ROOT = path.resolve(__dirname, '../../..');
|
|
29
|
-
const SUPERVISE_MD = path.join(REPO_ROOT, '
|
|
29
|
+
const SUPERVISE_MD = path.join(REPO_ROOT, '.agents', 'agents', 'supervise.md');
|
|
30
30
|
|
|
31
31
|
let content;
|
|
32
32
|
|