gcf-aif-ext 0.18.5 → 0.18.6
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 +4 -0
- package/extension.json +1 -1
- package/lib/work-ops.js +12 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,6 +50,10 @@ 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.6
|
|
54
|
+
|
|
55
|
+
- 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 "- "`.
|
|
56
|
+
|
|
53
57
|
### 0.18.5
|
|
54
58
|
|
|
55
59
|
- `gcf verdict tune` and `gcf unblock --note` put a new `tuning:` / `notes:` block where the unit's profile orders it, before `notes:` and `provenance:`; a verdict merge does the same with `feel:` and `open:` in `systems/`. Before, the block went to the end of the body and the pre-commit gate refused the move with `M1: blocks out of order`. A block a hand left out of order moves to its place on the next write, so a `tuning:` inserted by hand as a workaround needs no cleanup.
|
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.6",
|
|
5
5
|
"description": "Game Context Framework for AI Factory",
|
|
6
6
|
"skills": [
|
|
7
7
|
"skills/gcf-init",
|
package/lib/work-ops.js
CHANGED
|
@@ -296,12 +296,19 @@ const unverifiedTail = (opts) =>
|
|
|
296
296
|
(opts.unticked ? ` (unticked: ${opts.unticked})` : '');
|
|
297
297
|
|
|
298
298
|
const writeItem = (item, data, body = item.body) => atomicWrite(item.file, serialize(data, body));
|
|
299
|
-
/**
|
|
300
|
-
|
|
299
|
+
/**
|
|
300
|
+
* A note into an item's `key:` block, where its unit profile orders it (M1). A note from a
|
|
301
|
+
* multi-line box gives a bullet per line: a line without `- ` breaks the bullet-list (M1).
|
|
302
|
+
*/
|
|
303
|
+
const upsertItemNote = async (item, key, note) =>
|
|
301
304
|
upsertBlock(
|
|
302
305
|
item.body,
|
|
303
306
|
key,
|
|
304
|
-
|
|
307
|
+
String(note)
|
|
308
|
+
.split(/\r?\n/)
|
|
309
|
+
.map((l) => l.trim().replace(/^[-*]\s+/, ''))
|
|
310
|
+
.filter(Boolean)
|
|
311
|
+
.map((l) => `- ${l}`),
|
|
305
312
|
UNIT_ITEM_TYPES.includes(item.data.type) ? await blockOrder(`unit-${item.data.type}`) : [],
|
|
306
313
|
);
|
|
307
314
|
|
|
@@ -683,7 +690,7 @@ async function tune(m, note) {
|
|
|
683
690
|
'redesigned envelope is a new item with reopens: <this id>',
|
|
684
691
|
);
|
|
685
692
|
if (item.data.status === 'unplayed') unplay(m, item);
|
|
686
|
-
const body = note ? await
|
|
693
|
+
const body = note ? await upsertItemNote(item, 'tuning', note) : item.body;
|
|
687
694
|
const data = {
|
|
688
695
|
...without(item.data, 'frozen'),
|
|
689
696
|
status: 'ready',
|
|
@@ -807,7 +814,7 @@ async function unblockItemUnlocked(projectDir, id, opts = {}) {
|
|
|
807
814
|
const { note = '', commit = true } = opts;
|
|
808
815
|
const m = await begin(projectDir, id, 'unblock');
|
|
809
816
|
if (m.item.data.status === 'parked') dropKnownIssue(m, id);
|
|
810
|
-
const body = note ? await
|
|
817
|
+
const body = note ? await upsertItemNote(m.item, 'notes', note) : m.item.body;
|
|
811
818
|
// A feature whose child died while it was blocked owes the operator that decision first; the
|
|
812
819
|
// death is the one parentWaits wrote into `blocked:`, not any death of the feature's past.
|
|
813
820
|
const childDied = / child \S+ died/.test(String(m.item.data.blocked ?? ''));
|