gcf-aif-ext 0.18.7 → 0.18.9
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 +9 -0
- package/commands/gcf.js +3 -1
- package/extension.json +1 -1
- package/lib/board.js +4 -1
- package/lib/design-parts.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,6 +50,15 @@ 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.9
|
|
54
|
+
|
|
55
|
+
- `gcf design import --commit` that applied some parts and refused others exits 0: it committed what it applied, and the refused parts stay in its report. Before, it exited 1 and gcf-board showed the move as failed. A plain import and an import that applied nothing still exit 1.
|
|
56
|
+
- A form edit that records `answer: manual` keeps the spacing of the unit's `provenance:` block: a block an import wrote without blank lines between its records stays that way.
|
|
57
|
+
|
|
58
|
+
### 0.18.8
|
|
59
|
+
|
|
60
|
+
- `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.
|
|
61
|
+
|
|
53
62
|
### 0.18.7
|
|
54
63
|
|
|
55
64
|
- `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.
|
package/commands/gcf.js
CHANGED
|
@@ -585,7 +585,9 @@ function registerDesign(gcf) {
|
|
|
585
585
|
.filter(Boolean)
|
|
586
586
|
.join('\n'),
|
|
587
587
|
);
|
|
588
|
-
|
|
588
|
+
// A partial --commit committed what it applied: the rest is its report, not a failed move.
|
|
589
|
+
if (r.report.some((p) => p.outcome !== 'deleted') && !(opts.commit && r.applied.length))
|
|
590
|
+
process.exitCode = 1;
|
|
589
591
|
});
|
|
590
592
|
registerDesignParts(design);
|
|
591
593
|
registerMigrate(design);
|
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.9",
|
|
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-parts.js
CHANGED
|
@@ -284,9 +284,12 @@ async function withManualAnswers(text, edited, type) {
|
|
|
284
284
|
if (!owed.length) return text;
|
|
285
285
|
const lines = text.split('\n');
|
|
286
286
|
const at = blocksOf(text).find((b) => b.key === 'provenance');
|
|
287
|
-
// CNL-P §3: records of two lines stand apart, each new one after a blank line
|
|
287
|
+
// CNL-P §3: records of two lines stand apart, each new one after a blank line; a block an
|
|
288
|
+
// import wrote tight stays tight, one spacing per block.
|
|
289
|
+
const own = at ? lines.slice(at.start, at.end) : [];
|
|
290
|
+
const tight = own.filter((l) => l.startsWith('- ')).length > 1 && own.every((l) => l.trim());
|
|
288
291
|
const records = owed.flatMap((slot, i) => [
|
|
289
|
-
...(at || i ? [''] : []),
|
|
292
|
+
...((at || i) && !tight ? [''] : []),
|
|
290
293
|
`- slot: ${slot}`,
|
|
291
294
|
' answer: manual',
|
|
292
295
|
]);
|