kyro-ai 3.2.2 → 3.3.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 (110) hide show
  1. package/.claude-plugin/plugin.json +4 -2
  2. package/README.md +14 -1
  3. package/WORKFLOW.yaml +1 -1
  4. package/agents/orchestrator.md +3 -3
  5. package/commands/status.md +2 -2
  6. package/dist/cli/app.d.ts.map +1 -1
  7. package/dist/cli/app.js +9 -0
  8. package/dist/cli/app.js.map +1 -1
  9. package/dist/cli/artifacts/json.d.ts +8 -0
  10. package/dist/cli/artifacts/json.d.ts.map +1 -0
  11. package/dist/cli/artifacts/json.js +18 -0
  12. package/dist/cli/artifacts/json.js.map +1 -0
  13. package/dist/cli/artifacts/paths.d.ts +9 -0
  14. package/dist/cli/artifacts/paths.d.ts.map +1 -0
  15. package/dist/cli/artifacts/paths.js +36 -0
  16. package/dist/cli/artifacts/paths.js.map +1 -0
  17. package/dist/cli/artifacts/schema.d.ts +102 -0
  18. package/dist/cli/artifacts/schema.d.ts.map +1 -0
  19. package/dist/cli/artifacts/schema.js +157 -0
  20. package/dist/cli/artifacts/schema.js.map +1 -0
  21. package/dist/cli/commands/artifact-doctor.d.ts +8 -0
  22. package/dist/cli/commands/artifact-doctor.d.ts.map +1 -0
  23. package/dist/cli/commands/artifact-doctor.js +246 -0
  24. package/dist/cli/commands/artifact-doctor.js.map +1 -0
  25. package/dist/cli/commands/doctor.d.ts +1 -1
  26. package/dist/cli/commands/doctor.d.ts.map +1 -1
  27. package/dist/cli/commands/doctor.js +5 -2
  28. package/dist/cli/commands/doctor.js.map +1 -1
  29. package/dist/cli/commands/repair.d.ts +4 -0
  30. package/dist/cli/commands/repair.d.ts.map +1 -0
  31. package/dist/cli/commands/repair.js +271 -0
  32. package/dist/cli/commands/repair.js.map +1 -0
  33. package/dist/cli/commands/scope.d.ts +2 -0
  34. package/dist/cli/commands/scope.d.ts.map +1 -0
  35. package/dist/cli/commands/scope.js +113 -0
  36. package/dist/cli/commands/scope.js.map +1 -0
  37. package/dist/cli/commands/token-audit.d.ts.map +1 -1
  38. package/dist/cli/commands/token-audit.js +124 -2
  39. package/dist/cli/commands/token-audit.js.map +1 -1
  40. package/dist/cli/commands/tui.js +3 -3
  41. package/dist/cli/commands/tui.js.map +1 -1
  42. package/dist/cli/help.d.ts.map +1 -1
  43. package/dist/cli/help.js +35 -2
  44. package/dist/cli/help.js.map +1 -1
  45. package/dist/cli/options.d.ts.map +1 -1
  46. package/dist/cli/options.js +17 -0
  47. package/dist/cli/options.js.map +1 -1
  48. package/dist/cli/types.d.ts +2 -0
  49. package/dist/cli/types.d.ts.map +1 -1
  50. package/docs/cli.md +35 -2
  51. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/kyro.json +11 -0
  52. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/scopes/demo/DEBT.summary.json +12 -0
  53. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/scopes/demo/RE-ENTRY-PROMPTS.md +1 -0
  54. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/scopes/demo/ROADMAP.md +4 -0
  55. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/scopes/demo/ROADMAP.summary.json +15 -0
  56. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/scopes/demo/index.json +15 -0
  57. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.md +8 -0
  58. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.summary.json +16 -0
  59. package/fixtures/artifact-integrity/active-sprint-missing/.agents/kyro/scopes/demo/state.json +11 -0
  60. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/kyro.json +11 -0
  61. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/scopes/demo/DEBT.summary.json +12 -0
  62. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/scopes/demo/RE-ENTRY-PROMPTS.md +1 -0
  63. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/scopes/demo/ROADMAP.md +4 -0
  64. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/scopes/demo/ROADMAP.summary.json +15 -0
  65. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/scopes/demo/index.json +15 -0
  66. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.md +8 -0
  67. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.summary.json +16 -0
  68. package/fixtures/artifact-integrity/invalid-state/.agents/kyro/scopes/demo/state.json +10 -0
  69. package/fixtures/artifact-integrity/missing-summary/.agents/kyro/kyro.json +11 -0
  70. package/fixtures/artifact-integrity/missing-summary/.agents/kyro/scopes/demo/RE-ENTRY-PROMPTS.md +1 -0
  71. package/fixtures/artifact-integrity/missing-summary/.agents/kyro/scopes/demo/ROADMAP.md +4 -0
  72. package/fixtures/artifact-integrity/missing-summary/.agents/kyro/scopes/demo/index.json +15 -0
  73. package/fixtures/artifact-integrity/missing-summary/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.md +8 -0
  74. package/fixtures/artifact-integrity/missing-summary/.agents/kyro/scopes/demo/state.json +11 -0
  75. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/kyro.json +11 -0
  76. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/scopes/demo/DEBT.summary.json +12 -0
  77. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/scopes/demo/RE-ENTRY-PROMPTS.md +1 -0
  78. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/scopes/demo/ROADMAP.md +4 -0
  79. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/scopes/demo/ROADMAP.summary.json +15 -0
  80. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/scopes/demo/index.json +15 -0
  81. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.md +8 -0
  82. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.summary.json +16 -0
  83. package/fixtures/artifact-integrity/stale-summary/.agents/kyro/scopes/demo/state.json +11 -0
  84. package/fixtures/artifact-integrity/valid/.agents/kyro/kyro.json +11 -0
  85. package/fixtures/artifact-integrity/valid/.agents/kyro/scopes/demo/DEBT.summary.json +12 -0
  86. package/fixtures/artifact-integrity/valid/.agents/kyro/scopes/demo/RE-ENTRY-PROMPTS.md +1 -0
  87. package/fixtures/artifact-integrity/valid/.agents/kyro/scopes/demo/ROADMAP.md +4 -0
  88. package/fixtures/artifact-integrity/valid/.agents/kyro/scopes/demo/ROADMAP.summary.json +15 -0
  89. package/fixtures/artifact-integrity/valid/.agents/kyro/scopes/demo/index.json +15 -0
  90. package/fixtures/artifact-integrity/valid/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.md +8 -0
  91. package/fixtures/artifact-integrity/valid/.agents/kyro/scopes/demo/phases/SPRINT-001-demo.summary.json +16 -0
  92. package/fixtures/artifact-integrity/valid/.agents/kyro/scopes/demo/state.json +11 -0
  93. package/package.json +6 -2
  94. package/scripts/check-artifact-fixtures.mjs +56 -0
  95. package/skills/sprint-forge/SKILL.md +2 -2
  96. package/skills/sprint-forge/assets/README.md +15 -4
  97. package/skills/sprint-forge/assets/fixtures/subcommands-and-reports.sizingDecision.json +17 -0
  98. package/skills/sprint-forge/assets/helpers/analysis/audit.md +18 -0
  99. package/skills/sprint-forge/assets/helpers/analysis/bugfix.md +19 -0
  100. package/skills/sprint-forge/assets/helpers/analysis/feature.md +28 -0
  101. package/skills/sprint-forge/assets/helpers/analysis/new-project.md +18 -0
  102. package/skills/sprint-forge/assets/helpers/analysis/refactor.md +18 -0
  103. package/skills/sprint-forge/assets/helpers/analysis/tech-debt.md +18 -0
  104. package/skills/sprint-forge/assets/modes/INIT.md +33 -64
  105. package/skills/sprint-forge/assets/templates/PROJECT-README.md +16 -60
  106. package/skills/sprint-forge/assets/templates/REENTRY-PROMPTS.md +18 -87
  107. package/skills/sprint-forge/assets/templates/ROADMAP.md +16 -65
  108. package/skills/sprint-forge/assets/templates/ROADMAP.summary.json +9 -0
  109. package/skills/sprint-forge/assets/templates/index.json +9 -0
  110. package/skills/sprint-forge/assets/helpers/analysis-guide.md +0 -207
@@ -1,207 +0,0 @@
1
- # Analysis Guide
2
-
3
- This helper guides the agent through deep analysis for different types of work. The analysis phase is the foundation of the entire sprint workflow — thoroughness here determines the quality of everything that follows.
4
-
5
- ---
6
-
7
- ## Core Principle
8
-
9
- > **The analysis dictates the structure, not the reverse.**
10
- >
11
- > Do NOT start with a fixed list of categories. Explore the project first, then let the findings define the categories. If the project has 3 problem areas, there are 3 finding files. If it has 15, there are 15.
12
-
13
- ---
14
-
15
- ## Step 1 — Detect Work Type
16
-
17
- Before analyzing, identify what kind of work this is:
18
-
19
- | Work Type | Signals | Focus |
20
- |-----------|---------|-------|
21
- | **Audit / Refactor** | "analyze", "audit", "refactor", "review" | Comprehensive codebase exploration |
22
- | **New Feature** | "add", "implement", "create feature" | Current state + gap analysis |
23
- | **Bugfix** | "fix", "broken", "error", "regression" | Root cause analysis |
24
- | **New Project** | "start from scratch", "new project", "build" | Scope definition + planning |
25
- | **Tech Debt** | "clean up", "deprecated", "missing tests" | Debt inventory + prioritization |
26
-
27
- ---
28
-
29
- ## Step 2 — Analysis by Work Type
30
-
31
- ### Audit / Refactor
32
-
33
- This is the most comprehensive analysis type. Explore the **entire** codebase systematically.
34
-
35
- **Exploration Strategy**:
36
- 1. Start with the project root: directory structure, configuration files, entry points
37
- 2. Read key architectural files: main entry, routing, state management, data layer
38
- 3. Explore each major directory/module
39
- 4. Check test coverage and quality
40
- 5. Review dependencies and their versions
41
- 6. Look for patterns and anti-patterns
42
-
43
- **What to look for** (examples — the actual areas emerge from the project):
44
- - Architecture: layer separation, dependency direction, coupling
45
- - API surface: public interfaces, consistency, documentation
46
- - Component quality: reuse, composition, prop drilling, state management
47
- - Type safety: any usage, missing types, type assertions
48
- - Error handling: consistency, coverage, user-facing messages
49
- - Testing: coverage, quality, missing tests, test patterns
50
- - Documentation: inline docs, README, API docs
51
- - Dependencies: outdated, unused, security vulnerabilities
52
- - Performance: obvious bottlenecks, unnecessary re-renders, heavy computations
53
- - Accessibility: semantic HTML, ARIA, keyboard navigation
54
-
55
- **DO NOT** use this list as a checklist. Let the project tell you what matters.
56
-
57
- ### New Feature
58
-
59
- Focus on understanding what exists and what needs to change.
60
-
61
- **Exploration Strategy**:
62
- 1. Understand the current architecture relevant to the feature
63
- 2. Identify where the feature will integrate
64
- 3. Map existing patterns the feature should follow
65
- 4. Identify gaps between current state and requirements
66
-
67
- **What to document**:
68
- - Current state of related functionality
69
- - Integration points (APIs, components, data flows)
70
- - Patterns to follow (existing conventions)
71
- - Requirements and acceptance criteria
72
- - Technical risks and unknowns
73
-
74
- ### Bugfix
75
-
76
- Focus on reproducing, understanding, and scoping the fix.
77
-
78
- **Exploration Strategy**:
79
- 1. Reproduce the bug (or understand the reproduction steps)
80
- 2. Trace the code path involved
81
- 3. Identify the root cause
82
- 4. Assess blast radius (what else could be affected)
83
-
84
- **What to document**:
85
- - Bug description and reproduction steps
86
- - Root cause analysis
87
- - Affected code paths and files
88
- - Related code that may have the same pattern (similar bugs)
89
- - Proposed fix approach
90
- - Testing strategy
91
-
92
- ### New Project
93
-
94
- Focus on defining what will be built and how.
95
-
96
- **Exploration Strategy**:
97
- 1. Understand the requirements / product idea
98
- 2. Research comparable projects or solutions
99
- 3. Define the technical stack
100
- 4. Plan the project structure
101
-
102
- **What to document**:
103
- - Project scope and boundaries
104
- - Technical stack decisions (with justification)
105
- - Proposed architecture
106
- - Key design decisions
107
- - Risks and unknowns
108
- - Initial structure / scaffolding plan
109
-
110
- ### Tech Debt
111
-
112
- Focus on inventorying and prioritizing existing debt.
113
-
114
- **Exploration Strategy**:
115
- 1. Scan the codebase for debt indicators
116
- 2. Categorize debt by type and location
117
- 3. Assess impact of each debt item
118
- 4. Prioritize by impact vs effort
119
-
120
- **What to document**:
121
- - Debt inventory (categorized)
122
- - Impact assessment per item
123
- - Dependency relationships (which debt blocks other work)
124
- - Prioritized resolution order
125
- - Quick wins vs long-term refactors
126
-
127
- ---
128
-
129
- ## Step 3 — Document Findings
130
-
131
- Each finding becomes a separate file. This is important for:
132
- - **Granularity**: Each area can be addressed independently
133
- - **Sprint mapping**: Each finding maps to one or more sprints
134
- - **Progress tracking**: As sprints complete, findings are resolved
135
-
136
- ### Finding File Format
137
-
138
- **Filename**: `NN-descriptive-slug.md` (e.g., `01-architecture-layers.md`, `02-api-inconsistencies.md`)
139
-
140
- **Content**:
141
-
142
- ```
143
- ---
144
- title: "Finding: {Title}"
145
- date: "{date}"
146
- updated: "{date}"
147
- scope: "{scope}"
148
- type: "analysis"
149
- status: "active"
150
- version: "1.0"
151
- severity: "{critical | high | medium | low}"
152
- agents:
153
- - "{agent_model}"
154
- tags:
155
- - "{scope}"
156
- - "analysis"
157
- - "finding"
158
- changelog:
159
- - version: "1.0"
160
- date: "{date}"
161
- changes: ["Finding documented"]
162
- related:
163
- - "[[ROADMAP]]"
164
- ---
165
-
166
- # Finding: {Title}
167
-
168
- ## Summary
169
-
170
- {2-3 sentence summary of the finding}
171
-
172
- ## Severity / Impact
173
-
174
- {critical | high | medium | low} — {Why this level}
175
-
176
- ## Details
177
-
178
- {Detailed description of the finding. Include specific examples from the code.}
179
-
180
- ## Affected Files
181
-
182
- - `path/to/file1.dart`
183
- - `path/to/file2.dart`
184
-
185
- ## Recommendations
186
-
187
- 1. {Specific, actionable recommendation}
188
- 2. {Another recommendation}
189
- ```
190
-
191
- ### Numbering
192
-
193
- - Use sequential numbering: `01-`, `02-`, `03-`, ...
194
- - The number determines the default sprint order (finding 01 → Sprint 1)
195
- - This is a suggestion, not a rule — the roadmap may reorder based on dependencies
196
-
197
- ---
198
-
199
- ## Step 4 — Determine Sprint Count
200
-
201
- The number of sprints emerges from the number of distinct finding areas:
202
-
203
- - **Small project / bugfix**: 1-3 findings → 1-3 sprints
204
- - **Medium refactor**: 5-8 findings → 5-8 sprints
205
- - **Major audit**: 10-20 findings → 10-20 sprints
206
-
207
- Some findings may be grouped into a single sprint if they are small and related. Some large findings may be split across multiple sprints. The roadmap makes these decisions.