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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portable-agent-layer",
3
- "version": "0.61.0",
3
+ "version": "0.61.1",
4
4
  "description": "PAL — Portable Agent Layer: persistent personal context for AI coding assistants",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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 name = args[0] ?? fail("Usage: list-isc <name>");
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 iscs = parseIscs(p.criteria ?? "");
428
- const open = iscs.filter((i) => !i.checked);
429
- const done = iscs.filter((i) => i.checked);
430
- ok({ name, total: iscs.length, open: open.length, done: done.length, iscs });
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> list all ISCs with open/done status
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