gcf-aif-ext 0.18.8 → 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 +5 -0
- package/commands/gcf.js +3 -1
- package/extension.json +1 -1
- package/lib/design-parts.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,6 +50,11 @@ 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
|
+
|
|
53
58
|
### 0.18.8
|
|
54
59
|
|
|
55
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.
|
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/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
|
]);
|