kyro-ai 3.2.0 → 3.2.2

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 (86) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +46 -39
  3. package/WORKFLOW.yaml +1 -1
  4. package/commands/forge.md +22 -44
  5. package/commands/status.md +21 -79
  6. package/commands/wrap-up.md +18 -74
  7. package/dist/cli/adapters/codex.js +3 -3
  8. package/dist/cli/adapters/codex.js.map +1 -1
  9. package/dist/cli/adapters/command-skills.js +1 -1
  10. package/dist/cli/adapters/command-skills.js.map +1 -1
  11. package/dist/cli/adapters/opencode.d.ts +0 -2
  12. package/dist/cli/adapters/opencode.d.ts.map +1 -1
  13. package/dist/cli/adapters/opencode.js +2 -10
  14. package/dist/cli/adapters/opencode.js.map +1 -1
  15. package/dist/cli/adapters/registry.d.ts.map +1 -1
  16. package/dist/cli/adapters/registry.js +3 -1
  17. package/dist/cli/adapters/registry.js.map +1 -1
  18. package/dist/cli/adapters/standard.d.ts +5 -0
  19. package/dist/cli/adapters/standard.d.ts.map +1 -0
  20. package/dist/cli/adapters/standard.js +41 -0
  21. package/dist/cli/adapters/standard.js.map +1 -0
  22. package/dist/cli/app.js +1 -1
  23. package/dist/cli/app.js.map +1 -1
  24. package/dist/cli/commands/doctor.d.ts +2 -1
  25. package/dist/cli/commands/doctor.d.ts.map +1 -1
  26. package/dist/cli/commands/doctor.js +27 -18
  27. package/dist/cli/commands/doctor.js.map +1 -1
  28. package/dist/cli/commands/install.d.ts.map +1 -1
  29. package/dist/cli/commands/install.js +8 -7
  30. package/dist/cli/commands/install.js.map +1 -1
  31. package/dist/cli/commands/token-audit.d.ts +3 -0
  32. package/dist/cli/commands/token-audit.d.ts.map +1 -0
  33. package/dist/cli/commands/token-audit.js +141 -0
  34. package/dist/cli/commands/token-audit.js.map +1 -0
  35. package/dist/cli/commands/tui.d.ts.map +1 -1
  36. package/dist/cli/commands/tui.js +10 -6
  37. package/dist/cli/commands/tui.js.map +1 -1
  38. package/dist/cli/commands/uninstall.d.ts.map +1 -1
  39. package/dist/cli/commands/uninstall.js +9 -9
  40. package/dist/cli/commands/uninstall.js.map +1 -1
  41. package/dist/cli/constants.d.ts +12 -7
  42. package/dist/cli/constants.d.ts.map +1 -1
  43. package/dist/cli/constants.js +13 -5
  44. package/dist/cli/constants.js.map +1 -1
  45. package/dist/cli/fs.d.ts +3 -0
  46. package/dist/cli/fs.d.ts.map +1 -1
  47. package/dist/cli/fs.js +30 -5
  48. package/dist/cli/fs.js.map +1 -1
  49. package/dist/cli/help.d.ts.map +1 -1
  50. package/dist/cli/help.js +6 -4
  51. package/dist/cli/help.js.map +1 -1
  52. package/dist/cli/install-plan.d.ts.map +1 -1
  53. package/dist/cli/install-plan.js +27 -20
  54. package/dist/cli/install-plan.js.map +1 -1
  55. package/dist/cli/options.d.ts.map +1 -1
  56. package/dist/cli/options.js +8 -1
  57. package/dist/cli/options.js.map +1 -1
  58. package/dist/cli/state.js +1 -1
  59. package/dist/cli/state.js.map +1 -1
  60. package/dist/cli/types.d.ts +4 -1
  61. package/dist/cli/types.d.ts.map +1 -1
  62. package/docs/HOW-TO-USE-CODEX.md +28 -60
  63. package/docs/HOW-TO-USE-OPENCODE.md +26 -72
  64. package/docs/agent-adapters.md +40 -118
  65. package/docs/architecture.md +7 -2
  66. package/docs/cli.md +93 -29
  67. package/docs/commands-reference.md +22 -32
  68. package/docs/getting-started.md +65 -115
  69. package/package.json +1 -1
  70. package/skills/sprint-forge/SKILL.md +9 -8
  71. package/skills/sprint-forge/assets/README.md +27 -17
  72. package/skills/sprint-forge/assets/helpers/metrics.md +4 -4
  73. package/skills/sprint-forge/assets/helpers/reentry-generator.md +4 -4
  74. package/skills/sprint-forge/assets/modes/INIT.md +68 -169
  75. package/skills/sprint-forge/assets/modes/SPRINT.md +20 -246
  76. package/skills/sprint-forge/assets/modes/STATUS.md +46 -128
  77. package/skills/sprint-forge/assets/modes/close-sprint.md +29 -0
  78. package/skills/sprint-forge/assets/modes/execute-task.md +26 -0
  79. package/skills/sprint-forge/assets/modes/plan-sprint.md +29 -0
  80. package/skills/sprint-forge/assets/modes/recover.md +23 -0
  81. package/skills/sprint-forge/assets/modes/review-task.md +25 -0
  82. package/skills/sprint-forge/assets/templates/DEBT.summary.json +12 -0
  83. package/skills/sprint-forge/assets/templates/ROADMAP.summary.json +15 -0
  84. package/skills/sprint-forge/assets/templates/SPRINT.summary.json +16 -0
  85. package/skills/sprint-forge/assets/templates/index.json +15 -0
  86. package/skills/sprint-forge/assets/templates/state.json +11 -0
@@ -1,145 +1,63 @@
1
- # STATUS Mode — Project Progress Report
1
+ # STATUS Mode — Summary-First Project Report
2
2
 
3
- This mode reads all project artifacts and generates a comprehensive progress report.
3
+ This mode reports progress from structured summaries first. Markdown is the fallback evidence, not the default startup context.
4
4
 
5
- ---
5
+ ## Inputs
6
6
 
7
- ## When This Mode Activates
7
+ 1. Read `.agents/kyro/kyro.json`.
8
+ 2. Resolve scope and read `.agents/kyro/scopes/{scope}/state.json`.
9
+ 3. Read `.agents/kyro/scopes/{scope}/index.json`.
10
+ 4. Read summary files listed in `index.json`:
11
+ - `ROADMAP.summary.json`
12
+ - active or latest `SPRINT-*.summary.json`
13
+ - `DEBT.summary.json` when present
14
+ 5. Open Markdown only for missing summary fields, `full` reports, or debt mutations.
8
15
 
9
- | EN Signals | ES Signals |
10
- |-----------|-----------|
11
- | "project status", "progress", "progress report", "technical debt", "how's the project going" | "estado del proyecto", "progreso", "reporte de progreso", "deuda técnica", "cómo va el proyecto" |
16
+ ## Report variants
12
17
 
13
- ---
18
+ | Variant | Context policy |
19
+ |---------|----------------|
20
+ | `brief` or empty | Summaries only unless a required field is missing. |
21
+ | `full` | Summaries first, then selected Markdown evidence. |
22
+ | `debt` | Debt summary first, then latest debt table if needed. |
23
+ | `debt-*` | Load `../helpers/debt-tracker.md`, mutate source Markdown, refresh summaries. |
14
24
 
15
- ## Prerequisites
25
+ ## Metrics
16
26
 
17
- - INIT mode must have been run (README.md, ROADMAP.md, and at least one finding file exist)
18
- - At least one sprint should exist for meaningful metrics (but STATUS works even with zero sprints)
27
+ Compute from summaries when available:
19
28
 
20
- ---
29
+ | Metric | Source |
30
+ |--------|--------|
31
+ | Planned/completed sprints | roadmap summary + sprint summaries |
32
+ | Task counts | sprint summaries |
33
+ | Blocked/carry-over tasks | sprint summaries |
34
+ | Open/resolved/deferred debt | debt summary or latest sprint summary |
35
+ | Roadmap adaptations | roadmap summary |
36
+ | Next action | `state.json.nextAction` and `index.json.nextTask` |
21
37
 
22
- ## Workflow
38
+ ## Missing summaries
23
39
 
24
- ### Step 0 Locate Output Directory
40
+ If a summary is missing:
25
41
 
26
- Before reading any files, determine `{output_kyro_dir}`:
42
+ 1. Open the corresponding Markdown source.
43
+ 2. Complete the report.
44
+ 3. Warn that this scope needs summary refresh.
45
+ 4. If mutating debt/status, write the missing summary before finishing.
27
46
 
28
- 1. If the user's request includes an explicit path, use it
29
- 2. Otherwise, check `{cwd}/.agents/kyro/scopes/` — if a single project directory exists, use it
30
- 3. If multiple directories exist, ask: "Which project? Found: {list}"
31
- 4. If none found, ask: "Where are your kyro-ai documents? (e.g. `.agents/kyro/scopes/my-project/`)"
47
+ ## Output
32
48
 
33
- ### Step 1 — Read Project State
49
+ For `brief`, show only:
34
50
 
35
- Read the following files:
51
+ - scope and status
52
+ - active sprint / next action
53
+ - task progress
54
+ - open debt count
55
+ - next recommended command
36
56
 
37
- 1. `{output_kyro_dir}/README.md` Project overview and paths
38
- 2. `{output_kyro_dir}/ROADMAP.md` — Planned sprints, dependencies, execution rules
39
- 3. All sprint files in `{output_kyro_dir}/phases/` — Progress, debt, retros
57
+ For `full`, include roadmap health, sprint table, debt trend, and re-entry pointer.
40
58
 
41
- ### Step 2 — Calculate Metrics
59
+ ## Rules
42
60
 
43
- From the roadmap and sprint files, compute:
44
-
45
- | Metric | How to Calculate |
46
- |--------|-----------------|
47
- | **Total Planned Sprints** | Count sprints defined in ROADMAP.md |
48
- | **Completed Sprints** | Count sprint files with all DoD items checked |
49
- | **In-Progress Sprints** | Sprint files with some tasks done but DoD incomplete |
50
- | **Remaining Sprints** | Total - Completed - In-Progress |
51
- | **Total Tasks** | Sum of all tasks across all generated sprint files |
52
- | **Completed Tasks** | Sum of `[x]` tasks |
53
- | **Blocked Tasks** | Sum of `[!]` tasks |
54
- | **Skipped Tasks** | Sum of `[-]` tasks |
55
- | **Open Debt Items** | Count debt items with status `open` or `in-progress` in latest sprint |
56
- | **Resolved Debt Items** | Count debt items with status `resolved` in latest sprint |
57
- | **Deferred Debt Items** | Count debt items with status `deferred` in latest sprint |
58
- | **Emergent Phases** | Count of emergent phases added across all sprints |
59
-
60
- ### Step 3 — Generate Report
61
-
62
- Output the report directly to the console (do NOT write to a file):
63
-
64
- ```
65
- # {scope} — Status Report
66
-
67
- > Generated: {date}
68
- > Codebase: `{codebase_path}`
69
- > Working Dir: `{output_kyro_dir}`
70
-
71
- ---
72
-
73
- ## Progress Overview
74
-
75
- | Metric | Value |
76
- |--------|-------|
77
- | Sprints | {completed}/{total} completed ({percentage}%) |
78
- | Tasks | {done}/{total} completed, {blocked} blocked, {skipped} skipped |
79
- | Debt | {open} open, {resolved} resolved, {deferred} deferred |
80
- | Emergent Phases | {count} added during execution |
81
-
82
- ---
83
-
84
- ## Sprint Progress
85
-
86
- | Sprint | Status | Tasks | Key Deliverables |
87
- |--------|--------|-------|-----------------|
88
- | Sprint 1 | completed | 12/12 | Architecture cleanup |
89
- | Sprint 2 | completed | 10/14 | API surface audit |
90
- | Sprint 3 | in-progress | 3/8 | Component quality |
91
- | Sprint 4 | pending | — | Testing infrastructure |
92
-
93
- ---
94
-
95
- ## Accumulated Technical Debt
96
-
97
- {Copy the debt table from the latest sprint file}
98
-
99
- **Debt Trend**: {Is open count growing or shrinking?}
100
- **Oldest Open Item**: {Item that has been open the longest}
101
-
102
- ---
103
-
104
- ## Roadmap Health
105
-
106
- - **Adaptations Made**: {Number of times the roadmap was modified}
107
- - **Original Sprint Count**: {From initial INIT}
108
- - **Current Sprint Count**: {After adaptations}
109
- - **Sprints Added**: {count}
110
- - **Sprints Removed**: {count}
111
- - **Assessment**: {Is the roadmap still serving the project well?}
112
-
113
- ---
114
-
115
- ## Next Sprint Preview
116
-
117
- **Sprint {N}**: {title}
118
- - Focus: {focus}
119
- - Source: `findings/{finding_file}`
120
- - Dependencies: {which sprints must complete first}
121
- - Carry-over: {count} recommendations from Sprint {N-1}
122
-
123
- ---
124
-
125
- ## Re-entry Prompt
126
-
127
- {The appropriate re-entry prompt for the next action — usually Scenario 2 or 3 from RE-ENTRY-PROMPTS.md}
128
- ```
129
-
130
- ---
131
-
132
- ## Edge Cases
133
-
134
- | Situation | Handling |
135
- |-----------|---------|
136
- | No sprints generated yet | Show INIT results only (findings count, roadmap overview). Suggest generating Sprint 1. |
137
- | All sprints complete | Show final metrics. Highlight any remaining open debt. Suggest project closure or maintenance phase. |
138
- | Sprint in progress | Show current sprint progress. Highlight blocked tasks. Suggest resuming execution. |
139
- | No debt items | Note that no technical debt has been logged. This could mean the project is clean or debt isn't being tracked. |
140
-
141
- ---
142
-
143
- ## References
144
-
145
- - [debt-tracker.md](../helpers/debt-tracker.md) — Debt table format and reporting rules
61
+ - Do not read every sprint Markdown file when summaries exist.
62
+ - Debt items are never deleted.
63
+ - Keep `index.json` aligned with any report mutation.
@@ -0,0 +1,29 @@
1
+ # Close Sprint Mode
2
+
3
+ Close a sprint or session by updating only the artifacts required for handoff and learning.
4
+
5
+ ## Inputs
6
+
7
+ 1. Read `state.json`, `index.json`, and active sprint summary.
8
+ 2. Open active sprint Markdown for retro, findings consolidation, debt, and Definition of Done.
9
+ 3. Read `../helpers/debt-tracker.md` before changing debt rows.
10
+ 4. Read `../helpers/reentry-generator.md` only before updating re-entry prompts.
11
+ 5. Load roadmap Markdown only if execution changed future sprint sequencing.
12
+
13
+ ## Workflow
14
+
15
+ 1. Run the pre-close quality checkpoint.
16
+ 2. Consolidate findings from planned and emergent phases.
17
+ 3. Fill retro: went well, did not go well, surprises, new debt.
18
+ 4. Write recommendations for Sprint N+1.
19
+ 5. Update accumulated debt statuses and new debt rows.
20
+ 6. Verify Definition of Done.
21
+ 7. Update re-entry prompts and roadmap only when needed.
22
+ 8. Refresh `state.json`, `index.json`, active sprint summary, and debt summary.
23
+ 9. Propose learned rules for `.agents/kyro/scopes/rules.md`.
24
+
25
+ ## Rules
26
+
27
+ - Retro must be honest and specific.
28
+ - Re-entry context must point to the next action.
29
+ - Markdown is the durable evidence; summaries are the routing cache.
@@ -0,0 +1,26 @@
1
+ # Execute Task Mode
2
+
3
+ Execute the active sprint task by task while keeping checkpoints cheap and auditable.
4
+
5
+ ## Inputs
6
+
7
+ 1. Read `state.json` and `index.json`.
8
+ 2. Read the active `SPRINT-*.summary.json`.
9
+ 3. Open the active sprint Markdown only for the current phase/task details.
10
+ 4. Read `review-task.md` only when validating completed work.
11
+
12
+ ## Workflow
13
+
14
+ 1. Set execution metadata in the sprint file when execution starts.
15
+ 2. Process phases in order, and tasks in order unless dependencies require otherwise.
16
+ 3. Mark the current task `[~]`, perform the work, run verification, then mark `[x]`, `[!]`, or `[>]`.
17
+ 4. Record concrete evidence inline for every task.
18
+ 5. Add an emergent phase only for required work that blocks the sprint objective or would create debt if deferred.
19
+ 6. After each phase, write the sprint file, refresh `SPRINT-*.summary.json`, `index.json`, and `state.json`.
20
+
21
+ ## Rules
22
+
23
+ - Do not checkpoint after every task unless the task itself completes the phase.
24
+ - Do not defer all checkpointing to sprint close.
25
+ - Do not introduce new project patterns without justification.
26
+ - If implementation reveals the plan is wrong, return to `plan-sprint.md`.
@@ -0,0 +1,29 @@
1
+ # Plan Sprint Mode
2
+
3
+ Generate the next sprint from structured state first, then Markdown evidence only as needed.
4
+
5
+ ## Inputs
6
+
7
+ 1. Read `.agents/kyro/scopes/{scope}/state.json`.
8
+ 2. Read `.agents/kyro/scopes/{scope}/index.json`.
9
+ 3. Read `ROADMAP.summary.json` if present; otherwise open `ROADMAP.md`.
10
+ 4. For Sprint 2+, read previous `SPRINT-*.summary.json` first; open Markdown only for missing retro, recommendation, or debt detail.
11
+ 5. Read `../helpers/sprint-generator.md` only after the next sprint number is known.
12
+ 6. Load `../templates/SPRINT.md` only when writing the sprint file.
13
+
14
+ ## Workflow
15
+
16
+ 1. Resolve next sprint number from state/index and existing `phases/` files.
17
+ 2. Extract roadmap focus, type, target version, and suggested phases.
18
+ 3. Build the mandatory disposition table for every previous recommendation.
19
+ 4. Assemble phases from roadmap suggestions, carried recommendations, and due debt.
20
+ 5. Write `phases/SPRINT-{N}-{slug}.md`.
21
+ 6. Write `phases/SPRINT-{N}-{slug}.summary.json`.
22
+ 7. Update `state.json` with `activeSprint`, `currentPhase: "planning"`, and `nextAction: "execute_task"`.
23
+ 8. Update `index.json` with active sprint summary, next task, open debt count, and relevant paths.
24
+
25
+ ## Rules
26
+
27
+ - Never generate Sprint N+1 before Sprint N is complete.
28
+ - Every previous recommendation must be incorporated, deferred, resolved, marked N/A, or converted to a phase.
29
+ - Debt is inherited completely; never reset or drop debt rows.
@@ -0,0 +1,23 @@
1
+ # Recover Mode
2
+
3
+ Recover Kyro when state, summaries, and Markdown disagree.
4
+
5
+ ## Inputs
6
+
7
+ 1. Read `.agents/kyro/kyro.json`.
8
+ 2. Read scope `state.json` and `index.json` if present.
9
+ 3. List available roadmap, sprint, and summary files.
10
+ 4. Open Markdown only for artifacts needed to rebuild missing structured state.
11
+
12
+ ## Workflow
13
+
14
+ 1. Identify the latest trustworthy artifact by timestamp and content completeness.
15
+ 2. Rebuild missing or stale `state.json`, `index.json`, and `*.summary.json` from Markdown evidence.
16
+ 3. Preserve user-authored Markdown; do not rewrite it unless fixing broken frontmatter or explicit state markers.
17
+ 4. Report what was recovered and the next recommended route.
18
+
19
+ ## Rules
20
+
21
+ - Prefer preserving user work over making state look clean.
22
+ - Never invent completed tasks without evidence.
23
+ - If multiple scopes are plausible, ask the user to choose before writing.
@@ -0,0 +1,25 @@
1
+ # Review Task Mode
2
+
3
+ Validate completed Kyro work without loading unrelated lifecycle context.
4
+
5
+ ## Inputs
6
+
7
+ 1. Read `state.json`, `index.json`, and the active sprint summary.
8
+ 2. Open the active sprint Markdown only for the completed task or phase.
9
+ 3. Read `../helpers/reviewer.md` when classifying findings.
10
+ 4. Read project-specific quality commands from config or repository scripts.
11
+
12
+ ## Workflow
13
+
14
+ 1. Verify task evidence matches actual code/docs changes.
15
+ 2. Run relevant checks for the touched area.
16
+ 3. Classify findings as critical, warning, or suggestion.
17
+ 4. Block completion on critical issues.
18
+ 5. Record warnings and suggestions in the sprint evidence or retro queue.
19
+ 6. Refresh summaries after status changes.
20
+
21
+ ## Rules
22
+
23
+ - Review happens during execution and at close.
24
+ - Do not mark tasks complete without evidence.
25
+ - Suggestions do not block, but they must be visible in retro inputs.
@@ -0,0 +1,12 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "scope": "{scope}",
4
+ "open": 0,
5
+ "inProgress": 0,
6
+ "resolved": 0,
7
+ "deferred": 0,
8
+ "critical": 0,
9
+ "oldestOpenItem": null,
10
+ "sourceMarkdown": null,
11
+ "lastUpdated": "{date}"
12
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "scope": "{scope}",
4
+ "status": "planned",
5
+ "summary": "{roadmap_summary}",
6
+ "plannedSprintCount": 0,
7
+ "completedSprintCount": 0,
8
+ "adaptationCount": 0,
9
+ "nextRecommendedAction": "plan_sprint",
10
+ "openDecisions": [],
11
+ "relevantArtifactPaths": [
12
+ ".agents/kyro/scopes/{scope}/ROADMAP.md"
13
+ ],
14
+ "lastUpdated": "{date}"
15
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "scope": "{scope}",
4
+ "sprint": "SPRINT-{N}",
5
+ "status": "planned",
6
+ "completedTasks": 0,
7
+ "blockedTasks": 0,
8
+ "carryOverTasks": 0,
9
+ "nextRecommendedAction": "execute_task",
10
+ "nextTask": "{task_id}",
11
+ "openDecisions": [],
12
+ "filesTouched": [],
13
+ "debtDeltas": [],
14
+ "sourceMarkdown": ".agents/kyro/scopes/{scope}/phases/SPRINT-{N}-{slug}.md",
15
+ "lastUpdated": "{date}"
16
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "scope": "{scope}",
4
+ "roadmapSummary": "{roadmap_summary}",
5
+ "activeSprintSummary": null,
6
+ "openDebtCount": 0,
7
+ "nextTask": null,
8
+ "relevantArtifactPaths": {
9
+ "roadmap": ".agents/kyro/scopes/{scope}/ROADMAP.md",
10
+ "roadmapSummary": ".agents/kyro/scopes/{scope}/ROADMAP.summary.json",
11
+ "sprints": ".agents/kyro/scopes/{scope}/phases",
12
+ "reentry": ".agents/kyro/scopes/{scope}/RE-ENTRY-PROMPTS.md"
13
+ },
14
+ "lastUpdated": "{date}"
15
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "scope": "{scope}",
4
+ "status": "planning",
5
+ "activeSprint": null,
6
+ "currentPhase": "init",
7
+ "nextAction": "plan_sprint",
8
+ "roadmapPath": ".agents/kyro/scopes/{scope}/ROADMAP.md",
9
+ "sprintsPath": ".agents/kyro/scopes/{scope}/phases",
10
+ "lastUpdated": "{date}"
11
+ }