@open-agent-toolkit/cli 0.1.62 → 0.1.64

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 (61) hide show
  1. package/assets/agents/oat-phase-implementer.md +9 -1
  2. package/assets/agents/oat-reviewer.md +8 -1
  3. package/assets/docs/cli-utilities/configuration.md +29 -0
  4. package/assets/docs/cli-utilities/tool-packs.md +29 -1
  5. package/assets/docs/contributing/skills.md +22 -0
  6. package/assets/docs/workflows/projects/artifacts.md +30 -0
  7. package/assets/docs/workflows/projects/autonomy.md +154 -0
  8. package/assets/docs/workflows/projects/cursor-cloud.md +151 -0
  9. package/assets/docs/workflows/projects/dispatch-ceiling.md +13 -0
  10. package/assets/docs/workflows/projects/index.md +6 -0
  11. package/assets/public-package-versions.json +4 -4
  12. package/assets/skills/oat-cursor-cloud-projects/SKILL.md +318 -0
  13. package/assets/skills/oat-cursor-cloud-projects/references/cursor-cloud-mechanics.md +173 -0
  14. package/assets/skills/oat-project-autonomous/SKILL.md +439 -0
  15. package/assets/skills/oat-project-autonomous/references/gate-inventory.md +294 -0
  16. package/assets/skills/oat-project-design/SKILL.md +79 -1
  17. package/assets/skills/oat-project-discover/SKILL.md +76 -1
  18. package/assets/skills/oat-project-document/SKILL.md +24 -1
  19. package/assets/skills/oat-project-document/references/docs/autonomy-contract.md +294 -0
  20. package/assets/skills/oat-project-implement/SKILL.md +18 -1
  21. package/assets/skills/oat-project-implement/references/completion-and-closeout.md +72 -7
  22. package/assets/skills/oat-project-implement/references/dispatch-and-dry-run.md +17 -9
  23. package/assets/skills/oat-project-implement/references/docs/autonomy-contract.md +294 -0
  24. package/assets/skills/oat-project-implement/references/plan-and-resume.md +56 -0
  25. package/assets/skills/oat-project-plan-writing/SKILL.md +48 -12
  26. package/assets/skills/oat-project-pr-final/SKILL.md +31 -4
  27. package/assets/skills/oat-project-pr-final/references/docs/autonomy-contract.md +294 -0
  28. package/assets/skills/oat-project-quick-start/SKILL.md +50 -2
  29. package/assets/skills/oat-project-quick-start/references/docs/autonomy-contract.md +294 -0
  30. package/assets/skills/oat-project-review-provide/SKILL.md +9 -1
  31. package/assets/skills/oat-project-review-receive/SKILL.md +9 -1
  32. package/assets/skills/oat-project-summary/SKILL.md +76 -14
  33. package/assets/templates/summary.md +24 -0
  34. package/dist/commands/gate/index.d.ts.map +1 -1
  35. package/dist/commands/gate/index.js +4 -1
  36. package/dist/commands/init/tools/index.d.ts.map +1 -1
  37. package/dist/commands/init/tools/index.js +67 -45
  38. package/dist/commands/init/tools/shared/skill-manifest.d.ts +1 -1
  39. package/dist/commands/init/tools/shared/skill-manifest.d.ts.map +1 -1
  40. package/dist/commands/init/tools/shared/skill-manifest.js +2 -0
  41. package/dist/commands/init/tools/workflows/index.d.ts +2 -1
  42. package/dist/commands/init/tools/workflows/index.d.ts.map +1 -1
  43. package/dist/commands/init/tools/workflows/index.js +13 -11
  44. package/dist/commands/init/tools/workflows/install-workflows.d.ts +2 -0
  45. package/dist/commands/init/tools/workflows/install-workflows.d.ts.map +1 -1
  46. package/dist/commands/init/tools/workflows/install-workflows.js +4 -0
  47. package/dist/commands/project/new/scaffold.d.ts +1 -0
  48. package/dist/commands/project/new/scaffold.d.ts.map +1 -1
  49. package/dist/commands/project/new/scaffold.js +23 -4
  50. package/dist/commands/tools/remove/index.js +2 -2
  51. package/dist/commands/tools/remove/remove-tools.d.ts.map +1 -1
  52. package/dist/commands/tools/remove/remove-tools.js +23 -0
  53. package/dist/commands/tools/update/index.d.ts.map +1 -1
  54. package/dist/commands/tools/update/index.js +7 -1
  55. package/dist/commands/tools/update/update-tools.d.ts +9 -0
  56. package/dist/commands/tools/update/update-tools.d.ts.map +1 -1
  57. package/dist/commands/tools/update/update-tools.js +25 -5
  58. package/dist/providers/identity/family.d.ts +1 -1
  59. package/dist/providers/identity/family.d.ts.map +1 -1
  60. package/dist/providers/identity/family.js +2 -0
  61. package/package.json +2 -2
@@ -118,6 +118,35 @@ Determine whether this is a first implementation run:
118
118
  - If `"$PROJECT_PATH/implementation.md"` does not exist, treat as first run.
119
119
  - If it exists but still has template placeholders and no completed task evidence, treat as first run.
120
120
 
121
+ #### Autonomous checkpoint resolution
122
+
123
+ If `OAT_AUTONOMOUS=1`, resolve checkpoint state before the workflow preference
124
+ or standard prompt paths below:
125
+
126
+ 1. Validate any existing `oat_plan_hill_phases` value using the normal rules.
127
+ A valid `[]` still means every phase; a valid explicit phase array still
128
+ means exactly those phases. Preserve either value unchanged and treat it as
129
+ confirmed for this run.
130
+ 2. On a first implementation run where the field is absent, determine the
131
+ final phase ID and write
132
+ `oat_plan_hill_phases: ["<final_phase_id>"]`. This is the existing
133
+ `hillCheckpointDefault: final` resolution, made explicit without prompting.
134
+ 3. Write `oat_auto_review_at_hill_checkpoints: true`. Autonomous checkpoints
135
+ always review and receive before continuing, even if an earlier interactive
136
+ setup had disabled automatic checkpoint review.
137
+ 4. Record gate `IMPLEMENT-03` and the selected final phase (or preserved
138
+ explicit value) in `implementation.md`. Do not persist either autonomy
139
+ environment signal.
140
+
141
+ An invalid value remains a validation boundary; do not replace it
142
+ autonomously. A missing value on a resumed implementation is bookkeeping drift,
143
+ not a first-run default, and is also a boundary until the durable artifacts can
144
+ be reconciled from authoritative evidence.
145
+
146
+ After this branch succeeds, skip the workflow preference, standard checkpoint
147
+ prompt, and auto-review preference prompt below and continue to Step 2.6.
148
+ When `OAT_AUTONOMOUS` is not exactly `1`, this branch is inert.
149
+
121
150
  #### Workflow preference check (before prompting)
122
151
 
123
152
  Before presenting the checkpoint prompt to the user, check if a workflow preference has been configured:
@@ -184,6 +213,33 @@ review; Tier 1 always runs `oat-reviewer` after each phase.
184
213
 
185
214
  **On resume:** If `oat_auto_review_at_hill_checkpoints` is already present in plan.md frontmatter, skip Touchpoint A entirely — do not re-ask, do not re-read config, do not print the auto-review note. The stored value is authoritative. If only legacy `oat_auto_review_at_checkpoints` is present, treat it as authoritative for this run and write the new `oat_auto_review_at_hill_checkpoints` key on the next plan frontmatter update.
186
215
 
216
+ #### Autonomous checkpoint review and receive
217
+
218
+ When `OAT_AUTONOMOUS=1`, a configured checkpoint never waits for a user:
219
+
220
+ 1. Use the scope calculation in `phase-execution.md` and dispatch
221
+ `oat-project-review-provide` with `oat_review_invocation: auto` through the
222
+ project dispatch substrate.
223
+ 2. Validate the returned artifact and invoke `oat-project-review-receive`
224
+ immediately. Its auto-review disposition path must run without user
225
+ prompts.
226
+ 3. If receive creates fix tasks, execute them through the normal implement
227
+ route and repeat the same bounded review/receive cycle. Do not mark the
228
+ checkpoint complete while blocking findings remain.
229
+ 4. After a passing disposition, commit the review and HiLL bookkeeping. For a
230
+ non-final checkpoint, continue directly to the next schedule entry. The
231
+ final checkpoint routes to the Final HiLL Closeout Sequence instead of
232
+ waiting here.
233
+
234
+ An unresolved Critical finding, failed blocking review, invalid receive
235
+ artifact, or exhausted review route is a reported autonomy boundary. Every
236
+ launch and receive must reference its structured dispatch record; record gate
237
+ `IMPLEMENT-10`, the review scope, selected route, and achieved independence in
238
+ `implementation.md`.
239
+
240
+ This block replaces only the checkpoint wait while autonomy is active. The
241
+ interactive pause and manual receive paths remain unchanged otherwise.
242
+
187
243
  ### Step 2.6: Validate Optional Phase Review Gate
188
244
 
189
245
  Read `oat_phase_review_gate` from `"$PROJECT_PATH/plan.md"` frontmatter when present.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: oat-project-plan-writing
3
- version: 1.2.12
3
+ version: 1.2.13
4
4
  description: Use when authoring or mutating plan.md in any OAT workflow. Defines canonical format invariants — stable task IDs, required sections, review table rules, and resume guardrails.
5
5
  disable-model-invocation: true
6
6
  user-invocable: false
@@ -38,6 +38,26 @@ reference from `.agents/skills/oat-dispatch-subagents/references/`
38
38
  (`provider-cursor.md`, `provider-codex.md`, or `provider-claude.md`). Do not
39
39
  merge provider mechanics.
40
40
 
41
+ ## Planning-Time Artifact Formatting Contract
42
+
43
+ Resolve artifact formatting once while authoring the plan. Read the applicable
44
+ repository instructions (`AGENTS.md`/`CLAUDE.md`) and relevant package
45
+ manifests, then select the repository's documented write/fix formatting
46
+ command. Distinguish write/fix commands from check-only commands, prefer the
47
+ write/fix command, and never infer or hardcode a formatter executable. When the
48
+ documented command supports paths, use a file-scoped invocation covering only
49
+ the files that the task will create or edit.
50
+
51
+ Bake the concrete repository command into the `Format` step of every task that
52
+ creates or edits artifacts. Downstream agents execute that supplied command
53
+ without repeating discovery. Runtime discovery is fallback-only when the
54
+ supplied command is absent or unusable.
55
+
56
+ If no documented write/fix command can be discovered, put this exact
57
+ warn-once/no-op instruction into every artifact-writing task:
58
+ Warn once with `no format command discovered in repo instructions; skipping`,
59
+ then continue without formatting.
60
+
41
61
  ## Managed Dispatch Readiness and Review Contract
42
62
 
43
63
  All plan-producing workflows and their artifact reviews use this contract:
@@ -54,9 +74,18 @@ before each artifact review dispatch.
54
74
 
55
75
  ### Complete Dispatch Ladder Adoption Contract
56
76
 
57
- Before any plan becomes implementation-ready, inspect the effective
58
- `workflow.dispatchCeiling.providers` value and compare its ordered candidate
59
- ladders with the bundled
77
+ Before any plan becomes implementation-ready, query the merged effective
78
+ configuration exactly once:
79
+
80
+ ```bash
81
+ oat config list --json
82
+ ```
83
+
84
+ Treat that output as the effective-config boundary across shared repository,
85
+ repo-local, user, and bundled-default precedence. Do not inspect or merge raw
86
+ config surfaces. Validate the resolved
87
+ `workflow.dispatchCeiling.providers` provider/tier cells and compare their
88
+ ordered candidate ladders with the bundled
60
89
  `packages/cli/config/dispatch-matrix-recommendation.json` source (or the
61
90
  installed bundle's `config/dispatch-matrix-recommendation.json` asset). A
62
91
  complete custom ladder is allowed, but every supported provider must have valid
@@ -64,8 +93,15 @@ ordered `candidates` cells through the named project ceiling. A legacy scalar,
64
93
  single fallback route, missing tier, empty candidates array, or malformed
65
94
  ordering is not a complete ladder.
66
95
 
67
- When the effective ladder is missing or incomplete, show the complete bundled
68
- recommendation before asking to write anything:
96
+ Keep effective ladder completeness separate from project-ceiling resolution.
97
+ When `dispatch-ceiling resolve` returns `matrix: null`, that can mean only that
98
+ the project policy or named ceiling is unresolved; it is not evidence that the
99
+ effective candidate ladders are absent. When every effective provider/tier cell
100
+ is complete, skip adoption and proceed directly to the separate project-ceiling
101
+ choice.
102
+
103
+ Only when effective provider/tier cells are missing or incomplete, show the
104
+ complete bundled recommendation before asking to write anything:
69
105
 
70
106
  | Provider | Economy | Balanced | High | Frontier |
71
107
  | --------------- | -------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | -------------------------------------- |
@@ -89,12 +125,12 @@ project's named ceiling is a separate project-state constraint. A
89
125
  project-specific active policy or ceiling must not be written to user
90
126
  `~/.oat/config.json`.
91
127
 
92
- Adoption preserves explicit cells. Re-run the resolver and re-check the full
93
- ladder after adoption. If preserved legacy or partial cells still leave the
94
- ladder incomplete or missing, identify those cells and block; do not overwrite,
95
- infer, or mark the plan implementation-ready. In non-interactive mode, an
96
- incomplete or missing ladder blocks readiness without choosing an ownership
97
- scope.
128
+ Adoption preserves explicit cells. After adoption, repeat the merged
129
+ effective-config query and re-check the full ladder before you re-run the
130
+ resolver. If preserved legacy or partial cells still leave effective cells
131
+ incomplete or missing, identify those cells and block; do not overwrite, infer,
132
+ or mark the plan implementation-ready. In non-interactive mode, incomplete or
133
+ missing effective cells block readiness without choosing an ownership scope.
98
134
 
99
135
  ### Reviewer Ceiling Contract
100
136
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: oat-project-pr-final
3
- version: 1.4.2
3
+ version: 1.5.1
4
4
  description: Use when the user requests or confirms opening the final PR for an active OAT project — e.g. "open the final PR", "ship it", "run oat-project-pr-final", or confirms a previously offered final-PR step. Do NOT auto-invoke when phases are marked complete. Generates the final lifecycle PR description from artifacts and creates the PR.
5
5
  disable-model-invocation: false
6
6
  user-invocable: true
@@ -38,6 +38,11 @@ Generate a PR-ready summary grounded in canonical OAT artifacts, including:
38
38
 
39
39
  **Purpose:** Create final PR description and open the PR.
40
40
 
41
+ When `OAT_AUTONOMOUS=1`, read `references/docs/autonomy-contract.md` and keep
42
+ `OAT_NON_INTERACTIVE=1` set for this run. Autonomous resolution is limited to
43
+ the explicit branches below; never persist either environment signal. When
44
+ autonomy is inactive, preserve the existing interactive path unchanged.
45
+
41
46
  ## Progress Indicators (User-Facing)
42
47
 
43
48
  When executing this skill, provide lightweight progress feedback so the user can tell what’s happening after they confirm.
@@ -87,6 +92,14 @@ Run the `oat-project-pr-final` skill and it will ask for:
87
92
  - otherwise default: `{type}: {project description}` using conventional-commit style (for example `feat: add review loop` or `docs: reorganize documentation for discoverability`)
88
93
  - base branch (resolved from: explicit `base=` arg → `git.defaultBranch` in `.oat/config.json` → `git rev-parse --abbrev-ref origin/HEAD` → fallback `main`)
89
94
 
95
+ ## Artifact Hygiene
96
+
97
+ Artifact hygiene contract: Before finishing or committing, format every file you created or edited. Use the concrete write/fix formatting command supplied by the governing plan, task, or brief. If none is usable, discover the repository's documented write/fix command from applicable `AGENTS.md`/`CLAUDE.md` instructions and relevant package manifests; do not infer or hardcode a formatter. Prefer a file-scoped invocation when supported, and avoid rewriting unrelated files. If no command is discoverable, warn once with `no format command discovered in repo instructions; skipping`, then continue.
98
+
99
+ After formatting, run only repository checks relevant to the files changed;
100
+ writing a PR description or project-state prose does not imply unrelated full
101
+ test suites.
102
+
90
103
  ## Process
91
104
 
92
105
  ### Step 0: Resolve Active Project
@@ -162,9 +175,23 @@ echo "$FINAL_ROW"
162
175
 
163
176
  If `FINAL_ROW` is missing or does not contain `passed`:
164
177
 
165
- - Tell user: "Final review is not marked passed. Run the `oat-project-review-provide` skill with `code final` then the `oat-project-review-receive` skill."
166
- - Ask whether to proceed anyway (allowed, but discouraged).
167
- - If the status is `fixes_completed`: fixes were implemented but the re-review hasn't been run/recorded yet; re-run the `oat-project-review-provide` skill with `code final` then the `oat-project-review-receive` skill to reach `passed`.
178
+ - If `OAT_AUTONOMOUS=1`, gate `PRFINAL-03` is a boundary stop. Never select
179
+ "proceed anyway." Report the current or missing final-review row, record the
180
+ blocker in project provenance, and stop before writing the PR artifact,
181
+ pushing, or creating the PR. Route the resumable next step to
182
+ `oat-project-review-provide code final` followed by
183
+ `oat-project-review-receive`.
184
+ - If the status is `fixes_completed`, require that same re-review/receive
185
+ sequence to reach `passed`; completed fixes alone are not approval.
186
+ - Otherwise:
187
+ - Tell user: "Final review is not marked passed. Run the
188
+ `oat-project-review-provide` skill with `code final` then the
189
+ `oat-project-review-receive` skill."
190
+ - Ask whether to proceed anyway (allowed, but discouraged).
191
+ - If the status is `fixes_completed`: fixes were implemented but the
192
+ re-review hasn't been run/recorded yet; re-run the
193
+ `oat-project-review-provide` skill with `code final` then the
194
+ `oat-project-review-receive` skill to reach `passed`.
168
195
 
169
196
  ### Step 3: Collect Project Summary
170
197