gcf-aif-ext 0.18.6 → 0.18.8
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 +8 -0
- package/extension.json +1 -1
- package/lib/board.js +4 -1
- package/lib/design-check.js +11 -1
- package/package.json +1 -1
- package/profiles/unit-constraint.md +2 -2
- package/profiles/unit-entity.md +2 -2
- package/profiles/unit-mechanic.md +2 -2
- package/profiles/unit-resource.md +2 -2
- package/profiles/unit-rule.md +2 -2
package/README.md
CHANGED
|
@@ -50,6 +50,14 @@ Updating preserves `gcf/`, `cnlp.config.json` and the pre-commit hook. Run `ai-f
|
|
|
50
50
|
|
|
51
51
|
On Windows, run `extension add` and `extension update` from PowerShell or cmd, not Git Bash: the installer unpacks with `tar`, and Git Bash's GNU tar reads `C:\…` as a remote host (`Cannot connect to C: resolve failed`). The Windows `tar.exe` handles it.
|
|
52
52
|
|
|
53
|
+
### 0.18.8
|
|
54
|
+
|
|
55
|
+
- `gcf board --json` reports an item that a main-mode harness run works as `running_kind: run`, as for a worktree run. Before, the run's own session mark made it `session`, and gcf-board took the board's own run for your interactive session: no run log, no Stop, Release mark in its place.
|
|
56
|
+
|
|
57
|
+
### 0.18.7
|
|
58
|
+
|
|
59
|
+
- `tuning:` and `notes:` hold the operator's own words: the design check no longer applies the CNL-P lexicon to them (the 250-character line limit, `never` and the rest). Before, a tune remark longer than 250 characters made the pre-commit gate refuse the move with `M1: … exceeds the 250 hard limit`. The shape stays checked: every line a `- ` bullet, the blocks in the profile's order. Every other block of a unit keeps the limit.
|
|
60
|
+
|
|
53
61
|
### 0.18.6
|
|
54
62
|
|
|
55
63
|
- A multi-line note of `gcf verdict tune` or `gcf unblock --note` (the board's What to change box) is written as one bullet per line. Before, the second line went in without `- ` and the pre-commit gate refused the move with `M1: "tuning:" is a bullet-list — every item opens with "- "`.
|
package/extension.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/lee-to/ai-factory/2.x/schemas/extension.schema.json",
|
|
3
3
|
"name": "gcf-aif-ext",
|
|
4
|
-
"version": "0.18.
|
|
4
|
+
"version": "0.18.8",
|
|
5
5
|
"description": "Game Context Framework for AI Factory",
|
|
6
6
|
"skills": [
|
|
7
7
|
"skills/gcf-init",
|
package/lib/board.js
CHANGED
|
@@ -12,7 +12,7 @@ import { phaseStatus } from './phase.js';
|
|
|
12
12
|
import { verifiedBranches, worktreeOf } from './integrate.js';
|
|
13
13
|
import { resolveInside } from './safe-path.js';
|
|
14
14
|
import { wipOf } from './audit-core.js';
|
|
15
|
-
import { runHolder } from './main-lock.js';
|
|
15
|
+
import { MAIN_RUN, lockedItem, runHolder } from './main-lock.js';
|
|
16
16
|
import { ITEM_TYPES } from './validate-item.js';
|
|
17
17
|
import { movesOf } from './transitions.js';
|
|
18
18
|
import { domainOf, hasHarness, RUNS_FROM } from './domain.js';
|
|
@@ -272,6 +272,9 @@ const unitsOf = (units) =>
|
|
|
272
272
|
/** `run`, `session` or null. A harness run's lock wins over the mark its run on main holds. */
|
|
273
273
|
function runningKind(projectDir, id) {
|
|
274
274
|
if (runHolder(projectDir, id) !== null) return 'run';
|
|
275
|
+
// A main-mode run holds the checkout's lock, naming its item, and a session mark of its own.
|
|
276
|
+
if (runHolder(projectDir, MAIN_RUN) !== null && lockedItem(projectDir, MAIN_RUN) === id)
|
|
277
|
+
return 'run';
|
|
275
278
|
|
|
276
279
|
return sessionActive(projectDir, id) ? 'session' : null;
|
|
277
280
|
}
|
package/lib/design-check.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { readFile } from 'node:fs/promises';
|
|
5
5
|
import { existsSync } from 'node:fs';
|
|
6
6
|
import path from 'node:path';
|
|
7
|
-
import { bodyIssues, parseBlocks, itemsOf, readRecords } from 'cnlp-kit';
|
|
7
|
+
import { bodyIssues, lexiconIssues, parseBlocks, itemsOf, readRecords } from 'cnlp-kit';
|
|
8
8
|
import {
|
|
9
9
|
SLUG_RE,
|
|
10
10
|
UNIT_TYPES,
|
|
@@ -20,6 +20,7 @@ import { buildLedger } from './ledger.js';
|
|
|
20
20
|
import { sourceBodies } from './anchors.js';
|
|
21
21
|
import { collapseLines } from './verdict-fs.js';
|
|
22
22
|
import { fieldOf } from './question-fields.js';
|
|
23
|
+
import { blocksOf } from './systems-doc.js';
|
|
23
24
|
|
|
24
25
|
// Units a number may carry. A project adds its own in the `units:` block of glossary.md.
|
|
25
26
|
// Bare `px` is absent on purpose: its size depends on the screen density.
|
|
@@ -291,9 +292,18 @@ async function bodyProblems(body, type, stage = 'card') {
|
|
|
291
292
|
);
|
|
292
293
|
const owed = (m) =>
|
|
293
294
|
stage === 'design' && CARD_STAGE.some((k) => m === `missing required block "${k}:"`);
|
|
295
|
+
// `tuning:` and `notes:` are the operator's words, not a text an agent compressed: they keep
|
|
296
|
+
// the shape (a bullet each), not the lexicon (a 250-char line, "never").
|
|
297
|
+
const said = blocksOf(body).filter((b) => OPERATOR_BLOCKS.includes(b.key));
|
|
298
|
+
const spoken = new Set(
|
|
299
|
+
lexiconIssues(parseBlocks(body).prose, profile.mood)
|
|
300
|
+
.filter((i) => said.some((b) => i.line >= b.start && i.line <= b.end))
|
|
301
|
+
.map((i) => `${i.line} ${i.message}`),
|
|
302
|
+
);
|
|
294
303
|
const issues = bodyIssues(body, profile).filter(
|
|
295
304
|
(i) =>
|
|
296
305
|
!owed(i.message) &&
|
|
306
|
+
!spoken.has(`${i.line} ${i.message}`) &&
|
|
297
307
|
!(tbdLines.has(i.line) && i.message.includes('carries a value on the key line')),
|
|
298
308
|
);
|
|
299
309
|
|
package/package.json
CHANGED
|
@@ -30,12 +30,12 @@ sections:
|
|
|
30
30
|
- key: tuning
|
|
31
31
|
form: bullet-list
|
|
32
32
|
required: no
|
|
33
|
-
note: work stage only -
|
|
33
|
+
note: work stage only - the operator's verdict remarks, a bullet per line, read before the rebuild; the operator's own words, so no line limit
|
|
34
34
|
|
|
35
35
|
- key: notes
|
|
36
36
|
form: bullet-list
|
|
37
37
|
required: no
|
|
38
|
-
note: work stage only - the operator's answers and delivered files,
|
|
38
|
+
note: work stage only - the operator's answers and delivered files from each unblock; the operator's own words, so no line limit
|
|
39
39
|
|
|
40
40
|
- key: provenance
|
|
41
41
|
form: record-list
|
package/profiles/unit-entity.md
CHANGED
|
@@ -26,12 +26,12 @@ sections:
|
|
|
26
26
|
- key: tuning
|
|
27
27
|
form: bullet-list
|
|
28
28
|
required: no
|
|
29
|
-
note: work stage only -
|
|
29
|
+
note: work stage only - the operator's verdict remarks, a bullet per line, read before the rebuild; the operator's own words, so no line limit
|
|
30
30
|
|
|
31
31
|
- key: notes
|
|
32
32
|
form: bullet-list
|
|
33
33
|
required: no
|
|
34
|
-
note: work stage only - the operator's answers and delivered files,
|
|
34
|
+
note: work stage only - the operator's answers and delivered files from each unblock; the operator's own words, so no line limit
|
|
35
35
|
|
|
36
36
|
- key: provenance
|
|
37
37
|
form: record-list
|
|
@@ -77,12 +77,12 @@ sections:
|
|
|
77
77
|
- key: tuning
|
|
78
78
|
form: bullet-list
|
|
79
79
|
required: no
|
|
80
|
-
note: work stage only -
|
|
80
|
+
note: work stage only - the operator's verdict remarks, a bullet per line, read before the rebuild; the operator's own words, so no line limit
|
|
81
81
|
|
|
82
82
|
- key: notes
|
|
83
83
|
form: bullet-list
|
|
84
84
|
required: no
|
|
85
|
-
note: work stage only - the operator's answers and delivered files,
|
|
85
|
+
note: work stage only - the operator's answers and delivered files from each unblock; the operator's own words, so no line limit
|
|
86
86
|
|
|
87
87
|
- key: provenance
|
|
88
88
|
form: record-list
|
|
@@ -57,12 +57,12 @@ sections:
|
|
|
57
57
|
- key: tuning
|
|
58
58
|
form: bullet-list
|
|
59
59
|
required: no
|
|
60
|
-
note: work stage only -
|
|
60
|
+
note: work stage only - the operator's verdict remarks, a bullet per line, read before the rebuild; the operator's own words, so no line limit
|
|
61
61
|
|
|
62
62
|
- key: notes
|
|
63
63
|
form: bullet-list
|
|
64
64
|
required: no
|
|
65
|
-
note: work stage only - the operator's answers and delivered files,
|
|
65
|
+
note: work stage only - the operator's answers and delivered files from each unblock; the operator's own words, so no line limit
|
|
66
66
|
|
|
67
67
|
- key: provenance
|
|
68
68
|
form: record-list
|
package/profiles/unit-rule.md
CHANGED
|
@@ -30,12 +30,12 @@ sections:
|
|
|
30
30
|
- key: tuning
|
|
31
31
|
form: bullet-list
|
|
32
32
|
required: no
|
|
33
|
-
note: work stage only -
|
|
33
|
+
note: work stage only - the operator's verdict remarks, a bullet per line, read before the rebuild; the operator's own words, so no line limit
|
|
34
34
|
|
|
35
35
|
- key: notes
|
|
36
36
|
form: bullet-list
|
|
37
37
|
required: no
|
|
38
|
-
note: work stage only - the operator's answers and delivered files,
|
|
38
|
+
note: work stage only - the operator's answers and delivered files from each unblock; the operator's own words, so no line limit
|
|
39
39
|
|
|
40
40
|
- key: provenance
|
|
41
41
|
form: record-list
|