@open-agent-toolkit/cli 0.1.63 → 0.1.65

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 (54) 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/backlog-lifecycle.md +2 -2
  4. package/assets/docs/cli-utilities/config-and-local-state.md +20 -6
  5. package/assets/docs/cli-utilities/tool-packs.md +1 -0
  6. package/assets/docs/cli-utilities/workflow-gates.md +3 -1
  7. package/assets/docs/contributing/code.md +18 -0
  8. package/assets/docs/contributing/skills.md +22 -0
  9. package/assets/docs/workflows/projects/artifacts.md +30 -0
  10. package/assets/docs/workflows/projects/dispatch-ceiling.md +13 -0
  11. package/assets/public-package-versions.json +4 -4
  12. package/assets/skills/oat-pjm-add-backlog-item/SKILL.md +17 -72
  13. package/assets/skills/oat-project-autonomous/references/gate-inventory.md +165 -165
  14. package/assets/skills/oat-project-document/SKILL.md +8 -1
  15. package/assets/skills/oat-project-document/references/docs/autonomy-contract.md +165 -165
  16. package/assets/skills/oat-project-implement/references/docs/autonomy-contract.md +165 -165
  17. package/assets/skills/oat-project-plan-writing/SKILL.md +48 -12
  18. package/assets/skills/oat-project-pr-final/SKILL.md +9 -1
  19. package/assets/skills/oat-project-pr-final/references/docs/autonomy-contract.md +165 -165
  20. package/assets/skills/oat-project-quick-start/SKILL.md +8 -1
  21. package/assets/skills/oat-project-quick-start/references/docs/autonomy-contract.md +165 -165
  22. package/assets/skills/oat-project-review-provide/SKILL.md +9 -1
  23. package/assets/skills/oat-project-review-receive/SKILL.md +9 -1
  24. package/assets/skills/oat-project-summary/SKILL.md +16 -4
  25. package/assets/templates/plan.md +2 -0
  26. package/dist/commands/backlog/archive.d.ts.map +1 -1
  27. package/dist/commands/backlog/archive.js +5 -5
  28. package/dist/commands/backlog/index.d.ts +4 -0
  29. package/dist/commands/backlog/index.d.ts.map +1 -1
  30. package/dist/commands/backlog/index.js +55 -0
  31. package/dist/commands/backlog/new.d.ts +27 -0
  32. package/dist/commands/backlog/new.d.ts.map +1 -0
  33. package/dist/commands/backlog/new.js +158 -0
  34. package/dist/commands/backlog/regenerate-index.d.ts.map +1 -1
  35. package/dist/commands/backlog/regenerate-index.js +42 -3
  36. package/dist/commands/decision/index.d.ts.map +1 -1
  37. package/dist/commands/decision/index.js +4 -0
  38. package/dist/commands/decision/new.d.ts +2 -0
  39. package/dist/commands/decision/new.d.ts.map +1 -1
  40. package/dist/commands/decision/new.js +4 -2
  41. package/dist/commands/doctor/index.d.ts +1 -0
  42. package/dist/commands/doctor/index.d.ts.map +1 -1
  43. package/dist/commands/doctor/index.js +3 -0
  44. package/dist/commands/doctor/stale-invocations.d.ts +3 -0
  45. package/dist/commands/doctor/stale-invocations.d.ts.map +1 -0
  46. package/dist/commands/doctor/stale-invocations.js +173 -0
  47. package/dist/commands/gate/index.d.ts +1 -0
  48. package/dist/commands/gate/index.d.ts.map +1 -1
  49. package/dist/commands/gate/index.js +9 -2
  50. package/dist/commands/project/new/scaffold.d.ts.map +1 -1
  51. package/dist/commands/project/new/scaffold.js +24 -9
  52. package/dist/commands/tools/update/index.d.ts.map +1 -1
  53. package/dist/commands/tools/update/index.js +22 -12
  54. package/package.json +2 -2
@@ -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.5.0
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
@@ -92,6 +92,14 @@ Run the `oat-project-pr-final` skill and it will ask for:
92
92
  - otherwise default: `{type}: {project description}` using conventional-commit style (for example `feat: add review loop` or `docs: reorganize documentation for discoverability`)
93
93
  - base branch (resolved from: explicit `base=` arg → `git.defaultBranch` in `.oat/config.json` → `git rev-parse --abbrev-ref origin/HEAD` → fallback `main`)
94
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
+
95
103
  ## Process
96
104
 
97
105
  ### Step 0: Resolve Active Project