@tacuchi/agent-workflow-cli 17.0.0 → 18.0.0

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.
Files changed (88) hide show
  1. package/dist/application/dev-only-services.d.ts +9 -1
  2. package/dist/application/dev-only-services.d.ts.map +1 -1
  3. package/dist/application/dev-only-services.js +12 -3
  4. package/dist/application/dev-only-services.js.map +1 -1
  5. package/dist/application/mcp-host-writer.d.ts.map +1 -1
  6. package/dist/application/mcp-host-writer.js +5 -37
  7. package/dist/application/mcp-host-writer.js.map +1 -1
  8. package/dist/application/multiroot/paths.d.ts +6 -0
  9. package/dist/application/multiroot/paths.d.ts.map +1 -1
  10. package/dist/application/multiroot/paths.js +32 -1
  11. package/dist/application/multiroot/paths.js.map +1 -1
  12. package/dist/application/project-tab-data.d.ts.map +1 -1
  13. package/dist/application/project-tab-data.js +22 -6
  14. package/dist/application/project-tab-data.js.map +1 -1
  15. package/dist/application/release-data/bundles.d.ts +18 -1
  16. package/dist/application/release-data/bundles.d.ts.map +1 -1
  17. package/dist/application/release-data/bundles.js +64 -11
  18. package/dist/application/release-data/bundles.js.map +1 -1
  19. package/dist/application/release-data-service.d.ts +6 -4
  20. package/dist/application/release-data-service.d.ts.map +1 -1
  21. package/dist/application/release-data-service.js +9 -6
  22. package/dist/application/release-data-service.js.map +1 -1
  23. package/dist/application/render/history-row.d.ts.map +1 -1
  24. package/dist/application/render/history-row.js +7 -1
  25. package/dist/application/render/history-row.js.map +1 -1
  26. package/dist/application/self/install-skill.d.ts +1 -0
  27. package/dist/application/self/install-skill.d.ts.map +1 -1
  28. package/dist/application/self/install-skill.js +3 -1
  29. package/dist/application/self/install-skill.js.map +1 -1
  30. package/dist/application/self/skills-manager.d.ts +7 -3
  31. package/dist/application/self/skills-manager.d.ts.map +1 -1
  32. package/dist/application/self/skills-manager.js +57 -6
  33. package/dist/application/self/skills-manager.js.map +1 -1
  34. package/dist/application/self/skills-registry.d.ts +4 -0
  35. package/dist/application/self/skills-registry.d.ts.map +1 -1
  36. package/dist/application/self/skills-registry.js +23 -0
  37. package/dist/application/self/skills-registry.js.map +1 -1
  38. package/dist/application/session-close-service.d.ts +8 -1
  39. package/dist/application/session-close-service.d.ts.map +1 -1
  40. package/dist/application/session-close-service.js +22 -1
  41. package/dist/application/session-close-service.js.map +1 -1
  42. package/dist/application/source-launch-scripts-service.d.ts +0 -16
  43. package/dist/application/source-launch-scripts-service.d.ts.map +1 -1
  44. package/dist/application/source-launch-scripts-service.js +3 -17
  45. package/dist/application/source-launch-scripts-service.js.map +1 -1
  46. package/dist/application/source-launch-service.d.ts +31 -4
  47. package/dist/application/source-launch-service.d.ts.map +1 -1
  48. package/dist/application/source-launch-service.js +40 -8
  49. package/dist/application/source-launch-service.js.map +1 -1
  50. package/dist/application/workspace-init-service.d.ts +23 -3
  51. package/dist/application/workspace-init-service.d.ts.map +1 -1
  52. package/dist/application/workspace-init-service.js +142 -47
  53. package/dist/application/workspace-init-service.js.map +1 -1
  54. package/dist/cli/commands/dev-only.d.ts.map +1 -1
  55. package/dist/cli/commands/dev-only.js +7 -4
  56. package/dist/cli/commands/dev-only.js.map +1 -1
  57. package/dist/cli/commands/release-data.d.ts.map +1 -1
  58. package/dist/cli/commands/release-data.js +13 -4
  59. package/dist/cli/commands/release-data.js.map +1 -1
  60. package/dist/cli/commands/session-close.js +1 -1
  61. package/dist/cli/commands/session-close.js.map +1 -1
  62. package/dist/cli/commands/workspace-init.js +1 -1
  63. package/dist/cli/commands/workspace-init.js.map +1 -1
  64. package/dist/cli/parser.js +1 -1
  65. package/dist/cli/parser.js.map +1 -1
  66. package/dist/cli/tui/data/recommended-skills.d.ts.map +1 -1
  67. package/dist/cli/tui/data/recommended-skills.js +38 -0
  68. package/dist/cli/tui/data/recommended-skills.js.map +1 -1
  69. package/dist/cli/tui/tabs/project-tab.js +26 -19
  70. package/dist/cli/tui/tabs/project-tab.js.map +1 -1
  71. package/dist/cli/tui/tabs/skills-tab.d.ts.map +1 -1
  72. package/dist/cli/tui/tabs/skills-tab.js +30 -10
  73. package/dist/cli/tui/tabs/skills-tab.js.map +1 -1
  74. package/package.json +1 -1
  75. package/skills/w/README.md +1 -1
  76. package/skills/w/SKILL.md +1 -1
  77. package/skills/w/commands/README.md +1 -1
  78. package/skills/w/commands/export-diagrams.md +1 -1
  79. package/skills/w/commands/export-manuals.md +1 -1
  80. package/skills/w/commands/export-reports.md +1 -1
  81. package/skills/w/commands/export-scripts.md +1 -1
  82. package/skills/w/commands/workspace-init.md +7 -5
  83. package/skills/w/exports/README.md +3 -3
  84. package/skills/w/exports/export-diagrams/SKILL.md +4 -4
  85. package/skills/w/exports/export-manuals/SKILL.md +3 -3
  86. package/skills/w/exports/export-reports/SKILL.md +4 -4
  87. package/skills/w/exports/export-scripts/SKILL.md +6 -5
  88. package/skills/w/loops/CHASSIS.md +1 -1
@@ -43,13 +43,13 @@ The **`diagrams`** capability (built-in default `diagrams`), resolved via `.work
43
43
 
44
44
  ## Read-only sandbox
45
45
 
46
- In plan mode it **describes**, never writes: the resolved engine, the levels/sections that would appear (resolved by args), the sources to inspect + detected integrations, and — with a data-model request — the proposed MCP queries with their estimated cost. It does **not** run `Write`, MCP mutations, or effectful `aw next-number`.
46
+ In plan mode it **describes**, never writes: the resolved engine, the levels/sections that would appear (resolved by args), the sources to inspect + detected integrations, and — with a data-model request — the proposed MCP queries with their estimated cost. It does **not** run `Write` or MCP mutations; numbering queries use `aw next-number --dry-run` (pure).
47
47
 
48
48
  ## Inputs
49
49
 
50
50
  **`agent-workflow` CLI (alias `aw`)** — never read hardcoded paths:
51
51
 
52
- - `aw sessions` / `aw release-data [--since sessionNNN] [--source <alias>]` — enumerates the corpus (input for the AS-IS/TO-BE delta).
52
+ - `aw release-data [--since sessionNNN] [--source <alias>]` — enumerates the corpus (ALL sessions; input for the AS-IS/TO-BE delta). `aw sessions` alone lists only ACTIVE sessions — never use it as the corpus.
53
53
  - `aw session-artifacts --code <NNN> --dump objetivo` — locates the session and its plan-doc reference; `AS-IS`/`TO-BE`/`Impacted` are read from the plan-doc by its path.
54
54
  - `aw next-number docs/diagrams` — deterministic numbering (the CLI handles destination-folder resolution).
55
55
 
@@ -82,7 +82,7 @@ No args: `--engine mermaid --scope todo`. The system **snapshot** is always the
82
82
 
83
83
  ### Step 1 — Resolve context and corpus
84
84
 
85
- `aw sessions` / `release-data` applying `--sessions`/`--since`/`--source`. The CLI handles destination-folder resolution.
85
+ `aw release-data` applying `--sessions`/`--since`/`--source`. The CLI handles destination-folder resolution.
86
86
 
87
87
  ### Step 2 — Inspect the sources
88
88
 
@@ -98,7 +98,7 @@ If `--scope` includes `data` and read-only MCP exists: `\d <table>`, `count(*)`,
98
98
 
99
99
  ### Step 5 — Render (composes `diagrams`)
100
100
 
101
- Per `--engine`: `mermaid` → native Mermaid C4 blocks (`C4Context`/`C4Container`/`C4Component`) and `flowchart` for flows; `c4` → a separate Structurizr `workspace.dsl` + auxiliary embedded Mermaid for offline reading. For every ```` ```mermaid ```` block, add immediately after the closing fence a blockquote with the preview link: `> Ver diagrama renderizado: <https://mermaid.ink/img/BASE64>` (URL-safe base64 of the plain code). Not applicable to `workspace.dsl`.
101
+ Per `--engine`: `mermaid` → native Mermaid C4 blocks (`C4Context`/`C4Container`/`C4Component`) and `flowchart` for flows; `c4` → a separate Structurizr `workspace.dsl` + auxiliary embedded Mermaid for offline reading. Keep block labels ASCII (no accents) for render robustness; prose keeps them. OPTIONALLY add after each closing fence a preview blockquote `> Ver diagrama renderizado: <https://mermaid.ink/img/BASE64>` (URL-safe base64, keep padding) — the link encodes the diagram source into a public-service URL, omit it for private corpora (GitHub renders the blocks natively). Not applicable to `workspace.dsl`.
102
102
 
103
103
  ### Step 6 — Write or report
104
104
 
@@ -44,13 +44,13 @@ The manual's prose follows the **ambient** writing conventions: the host auto-ap
44
44
 
45
45
  ## Read-only sandbox
46
46
 
47
- In plan mode it **describes**, never writes: the resolved mode, the detected topics (with origin sessions), the manuals already present in `docs/manuals/`, and — per mode — the `INDEX.md` structure it would overwrite or the count of manuals the dossier would generate. It does **not** run `Write` or effectful `aw next-number`.
47
+ In plan mode it **describes**, never writes: the resolved mode, the detected topics (with origin sessions), the manuals already present in `docs/manuals/`, and — per mode — the `INDEX.md` structure it would overwrite or the count of manuals the dossier would generate. It does **not** run `Write`; numbering queries use `aw next-number --dry-run` (pure).
48
48
 
49
49
  ## Inputs
50
50
 
51
51
  **`agent-workflow` CLI (alias `aw`)** — never read hardcoded paths:
52
52
 
53
- - `aw sessions` / `aw release-data [--since sessionNNN] [--source <alias>]` — enumerates the corpus.
53
+ - `aw release-data [--since sessionNNN] [--source <alias>]` — enumerates the corpus (ALL sessions, closed + active). `aw sessions` alone lists only ACTIVE sessions — never use it as the corpus.
54
54
  - `aw session-artifacts --code <NNN> --dump objetivo,decisiones` — returns `{path, content, size}` per artifact (`SESSION` with its `## Objective`, `DECISION`); the plan-doc is read by its path.
55
55
  - `aw next-number docs/manuals` — deterministic numbering (`regenerate` mode only).
56
56
 
@@ -89,7 +89,7 @@ No args: `--mode complement` over the whole corpus.
89
89
 
90
90
  ### Step 1 — Resolve context and corpus
91
91
 
92
- `aw sessions` / `release-data` applying `--sessions`/`--since`/`--source`. The CLI handles destination-folder resolution.
92
+ `aw release-data` applying `--sessions`/`--since`/`--source`. The CLI handles destination-folder resolution.
93
93
 
94
94
  ### Step 2 — Inspect the present manuals
95
95
 
@@ -43,13 +43,13 @@ The report's prose follows the **ambient** writing conventions: the host auto-ap
43
43
 
44
44
  ## Read-only sandbox
45
45
 
46
- In plan mode it **describes**, never writes: the resolved audience/length, the corpus sessions that would enter after the filters, the sections that would appear, the R-items that would consolidate (and detected conflicts), and the estimated length. It does **not** run `Write` or effectful `aw next-number`.
46
+ In plan mode it **describes**, never writes: the resolved audience/length, the corpus sessions that would enter after the filters, the sections that would appear, the R-items that would consolidate (and detected conflicts), and the estimated length. It does **not** run `Write`; numbering queries use `aw next-number --dry-run` (pure).
47
47
 
48
48
  ## Inputs
49
49
 
50
50
  **`agent-workflow` CLI (alias `aw`)** — never read hardcoded paths:
51
51
 
52
- - `aw sessions` / `aw release-data [--since sessionNNN] [--source <alias>]` — enumerates + filters the corpus.
52
+ - `aw release-data [--since sessionNNN] [--source <alias>]` — enumerates + filters the corpus (ALL sessions, closed + active, with `release_eligible`). `aw sessions` alone lists only ACTIVE sessions — never use it as the corpus.
53
53
  - `aw session-artifacts --code <NNN> --dump objetivo,conclusiones,decisiones` — returns `{path, content, size}` for `SESSION` (referenced spec), `CONCLUSIONS` and `DECISION`; the plan-doc state is read by its path.
54
54
  - `aw next-number docs/reports` — deterministic numbering (the CLI handles destination-folder resolution).
55
55
 
@@ -79,7 +79,7 @@ No args: the whole corpus, executive audience by default.
79
79
 
80
80
  ### Step 1 — Resolve context and filter the corpus
81
81
 
82
- `aw sessions` / `release-data` applying `--sessions`/`--since`/`--source`. If the resulting set is empty → **abort** with an explicit message (no sessions in the declared range). The CLI handles destination-folder resolution.
82
+ `aw release-data` applying `--sessions`/`--since`/`--source`. If the resulting set is empty → **abort** with an explicit message (no sessions in the declared range). The CLI handles destination-folder resolution.
83
83
 
84
84
  ### Step 2 — Collect per-session inputs
85
85
 
@@ -91,7 +91,7 @@ Extract the R-items from `CONCLUSIONS`/`DECISION` (pending, deferred, "next step
91
91
 
92
92
  ### Step 4 — Synthesize (prose: ambient conventions)
93
93
 
94
- Render applying the ambient writing conventions (host): Executive summary · What was done (grouped by business capability, **not** by session) · Impacted components (table) · Key decisions · Results/conclusions · Pending/Roadmap (only with R-items). Technical→executive translation and length cap per `--audience`. Optional: a simple synthesis `flowchart LR` (with a `mermaid.ink` link); the detailed technical diagram belongs to `export-diagrams`.
94
+ Render applying the ambient writing conventions (host): Executive summary · What was done (grouped by business capability, **not** by session) · Impacted components (table) · Key decisions · Results/conclusions · Pending/Roadmap (only with R-items). Technical→executive translation and length cap per `--audience`. Optional: a simple synthesis `flowchart LR` (inline; a `mermaid.ink` link is OPTIONAL — it encodes the diagram source into a public-service URL, omit it for private corpora); the detailed technical diagram belongs to `export-diagrams`.
95
95
 
96
96
  ### Step 5 — Write or report
97
97
 
@@ -44,19 +44,20 @@ The **`sql`** capability (built-in default `sql`), resolved via `.workflow/skill
44
44
 
45
45
  ## Read-only sandbox
46
46
 
47
- In plan mode it **describes**, never writes: the resolved `NNN`, the detected sources (sessions + standalone), the categories with content, the files that would appear at the bundle root and the approximate README content. It does **not** run `Write`, effectful `aw next-number`, or mutations.
47
+ In plan mode it **describes**, never writes: the resolved `NNN`, the detected sources (sessions + standalone), the categories with content, the files that would appear at the bundle root and the approximate README content. It does **not** run `Write` or mutations; numbering queries use `aw next-number --dry-run` (pure).
48
48
 
49
49
  ## Inputs
50
50
 
51
51
  **`agent-workflow` CLI (alias `aw`)** — never read hardcoded paths:
52
52
 
53
- - `aw sessions` / `aw release-data [--since sessionNNN] [--source <alias>]` — enumerates the session corpus.
53
+ - `aw release-data [--since sessionNNN] [--source <alias>]` — enumerates the session corpus (ALL sessions, closed + active, with `release_eligible`). `aw sessions` alone lists only ACTIVE sessions — never use it as the corpus.
54
54
  - `aw session-artifacts --code <NNN> --dump scripts` — lists the session's `.sql` files with path and size (content is read by path). No scripts → empty list, silent skip.
55
- - `aw next-number docs/scripts` deterministic numbering of the bundle directory (the CLI handles destination-folder resolution).
55
+ - `aw release-data --standalone-sql` — lists the loose top-level `docs/scripts/*.sql` (source B) deterministically, with `is_rollback` flag; `--include-graduated` lists previous bundles (modern `NNN-export-scripts-YYYY-MM-DD` and legacy naming) for the exclusion/dedup step.
56
+ - `aw next-number docs/scripts` — deterministic numbering of the bundle directory; it also creates `docs/scripts` when missing (the CLI guarantees destination resolution). In plan mode use `--dry-run` (pure query).
56
57
 
57
58
  **Filesystem**:
58
59
 
59
- - Standalone `docs/scripts/*.sql` (top-level only), **excluding** any `docs/scripts/NNN-export-scripts-*/` (previous outputs of this export).
60
+ - Standalone `docs/scripts/*.sql` (top-level only, via `--standalone-sql`), **excluding** any `docs/scripts/NNN-export-scripts-*/` (previous outputs of this export).
60
61
 
61
62
  **Args** (no lifecycle *structured-choice*; harness capability — see [`../../harness/SKILL.md`](../../harness/SKILL.md)):
62
63
 
@@ -79,7 +80,7 @@ No args: every corpus session + every standalone `.sql` (excluding previous bund
79
80
 
80
81
  ### Step 1 — Collect SQL sources
81
82
 
82
- **Source A — sessions**: for every corpus session (`aw sessions` / `release-data` + `session-artifacts --code <NNN> --dump scripts`), read the `.sql` files the dump lists (per-script path). Take **only** type-B statements (deliverable DDL/DML migrations); ignore read-only type-A (diagnostic queries). Expected per-statement markers: `-- @category: <01-04>` + `-- @stmt: NNN-verb-target` (format defined by the `sql` capability).
83
+ **Source A — sessions**: for every corpus session (`aw release-data` + `session-artifacts --code <NNN> --dump scripts`), read the `.sql` files the dump lists (per-script path). Take **only** type-B statements (deliverable DDL/DML migrations); ignore read-only type-A (diagnostic queries). Expected per-statement markers: `-- @category: <01-04>` + `-- @stmt: NNN-verb-target` (format defined by the `sql` capability).
83
84
 
84
85
  **Source B — standalone** (unless `--skip-standalone`): list top-level `docs/scripts/*.sql`, **excluding** `docs/scripts/NNN-export-scripts-*/`. Per file: honor `@category` markers when present; otherwise infer the category from content (`CREATE/ALTER TABLE`, `CREATE INDEX` → `01`; `CREATE OR REPLACE FUNCTION`/`PROCEDURE` → `02`; `UPDATE`/`DELETE` → `03`; `INSERT INTO … VALUES` → `04`). If the filename contains `rollback` → skip (it never enters a forward).
85
86
 
@@ -92,7 +92,7 @@ The **CLI owns the number**: `aw session-create` prepends a **global, sequential
92
92
 
93
93
  - `aw session-create --type <type> --name <slug>-<flow>` → creates `NNN-<slug>-<flow>` / `aw session-resume --code <…>` (detects `CHECKPOINT`).
94
94
  - `aw checkpoint-write` / `aw checkpoint-read` for resume.
95
- - `aw session-close` on close (with reason); `aw session-artifacts` to inspect.
95
+ - `aw session-close` on close — also upserts the session's HISTORY.md row (the durable record; sessions/ is gitignored). Non-fatal: on `history_error` in its output, re-run `aw history-update --code <NNN> --state closed`. `aw session-artifacts` to inspect.
96
96
  - **Reopen to continue** (operating context, row 2): `aw session-resume --code <NNN> --reopen` reactivates a **closed** session (removes `.closed` → active) to keep working in it; without `--reopen`, resume is read-only. To detect the most recent closed one: `aw resume-summary --include-recent-closed` (or `aw sessions --state all`).
97
97
 
98
98
  ## Ask-vs-research rule (the discriminator)