portable-agent-layer 0.61.0 → 0.61.1
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.
|
@@ -40,6 +40,7 @@ Thinking-only. No tool calls except context recovery (Grep/Glob/Read).
|
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
42
|
# If cwd matches a registered project — read its open ISCs (Ideal State Criteria):
|
|
43
|
+
# list-isc returns OPEN criteria by default; pass --all or --closed to see finished ones.
|
|
43
44
|
bun ~/.pal/tools/project.ts list-isc <project-name>
|
|
44
45
|
|
|
45
46
|
# If this is ad-hoc work with no registered project — scaffold a task ISA:
|
package/package.json
CHANGED
|
@@ -421,13 +421,27 @@ function cmdReopenIsc(args: string[]): void {
|
|
|
421
421
|
ok({ checked: false, id });
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
+
function selectIscs(all: Isc[], flags: Set<string>): Isc[] {
|
|
425
|
+
if (flags.has("--all")) return all;
|
|
426
|
+
if (flags.has("--closed")) return all.filter((i) => i.checked);
|
|
427
|
+
return all.filter((i) => !i.checked);
|
|
428
|
+
}
|
|
429
|
+
|
|
424
430
|
function cmdListIsc(args: string[]): void {
|
|
425
|
-
const
|
|
431
|
+
const flags = new Set(args.filter((a) => a.startsWith("--")));
|
|
432
|
+
const name =
|
|
433
|
+
args.find((a) => !a.startsWith("--")) ??
|
|
434
|
+
fail("Usage: list-isc <name> [--all | --closed]");
|
|
426
435
|
const p = requireProject(name);
|
|
427
|
-
const
|
|
428
|
-
const open =
|
|
429
|
-
|
|
430
|
-
|
|
436
|
+
const all = parseIscs(p.criteria ?? "");
|
|
437
|
+
const open = all.filter((i) => !i.checked).length;
|
|
438
|
+
ok({
|
|
439
|
+
name,
|
|
440
|
+
total: all.length,
|
|
441
|
+
open,
|
|
442
|
+
done: all.length - open,
|
|
443
|
+
iscs: selectIscs(all, flags),
|
|
444
|
+
});
|
|
431
445
|
}
|
|
432
446
|
|
|
433
447
|
// ── Task ISA (work/) ──────────────────────────────────────────────
|
|
@@ -509,7 +523,7 @@ Commands:
|
|
|
509
523
|
add-isc <name> "title" append a new open ISC to Criteria
|
|
510
524
|
complete-isc <name> <id> mark ISC-N as done
|
|
511
525
|
reopen-isc <name> <id> reopen ISC-N (mark not done)
|
|
512
|
-
list-isc <name>
|
|
526
|
+
list-isc <name> [--all | --closed] list open ISCs (default); --all or --closed for done
|
|
513
527
|
isa-init <name> mark project as ISA-initialized
|
|
514
528
|
scaffold-task-isa <title> create a one-shot task ISA in memory/work/
|
|
515
529
|
complete-task-isa <slug> mark a task ISA as complete
|