prjct-cli 0.45.0 → 0.45.4

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 (207) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/bin/prjct.ts +117 -10
  3. package/core/__tests__/agentic/memory-system.test.ts +39 -26
  4. package/core/__tests__/agentic/plan-mode.test.ts +64 -46
  5. package/core/__tests__/agentic/prompt-builder.test.ts +14 -14
  6. package/core/__tests__/services/project-index.test.ts +353 -0
  7. package/core/__tests__/types/fs.test.ts +3 -3
  8. package/core/__tests__/utils/date-helper.test.ts +10 -10
  9. package/core/__tests__/utils/output.test.ts +9 -6
  10. package/core/__tests__/utils/project-commands.test.ts +5 -6
  11. package/core/agentic/agent-router.ts +9 -10
  12. package/core/agentic/chain-of-thought.ts +16 -4
  13. package/core/agentic/command-executor.ts +66 -40
  14. package/core/agentic/context-builder.ts +8 -5
  15. package/core/agentic/ground-truth.ts +15 -9
  16. package/core/agentic/index.ts +145 -152
  17. package/core/agentic/loop-detector.ts +40 -11
  18. package/core/agentic/memory-system.ts +98 -35
  19. package/core/agentic/orchestrator-executor.ts +135 -71
  20. package/core/agentic/plan-mode.ts +46 -16
  21. package/core/agentic/prompt-builder.ts +108 -42
  22. package/core/agentic/services.ts +10 -9
  23. package/core/agentic/skill-loader.ts +9 -15
  24. package/core/agentic/smart-context.ts +129 -79
  25. package/core/agentic/template-executor.ts +13 -12
  26. package/core/agentic/template-loader.ts +7 -4
  27. package/core/agentic/tool-registry.ts +16 -13
  28. package/core/agents/index.ts +1 -1
  29. package/core/agents/performance.ts +10 -27
  30. package/core/ai-tools/formatters.ts +8 -6
  31. package/core/ai-tools/generator.ts +4 -4
  32. package/core/ai-tools/index.ts +1 -1
  33. package/core/ai-tools/registry.ts +21 -11
  34. package/core/bus/bus.ts +23 -16
  35. package/core/bus/index.ts +2 -2
  36. package/core/cli/linear.ts +3 -5
  37. package/core/cli/start.ts +28 -25
  38. package/core/commands/analysis.ts +58 -39
  39. package/core/commands/analytics.ts +52 -44
  40. package/core/commands/base.ts +15 -13
  41. package/core/commands/cleanup.ts +6 -13
  42. package/core/commands/command-data.ts +28 -4
  43. package/core/commands/commands.ts +57 -24
  44. package/core/commands/context.ts +4 -4
  45. package/core/commands/design.ts +3 -10
  46. package/core/commands/index.ts +5 -8
  47. package/core/commands/maintenance.ts +7 -4
  48. package/core/commands/planning.ts +179 -56
  49. package/core/commands/register.ts +13 -9
  50. package/core/commands/registry.ts +15 -14
  51. package/core/commands/setup.ts +26 -14
  52. package/core/commands/shipping.ts +11 -16
  53. package/core/commands/snapshots.ts +16 -32
  54. package/core/commands/uninstall.ts +541 -0
  55. package/core/commands/workflow.ts +24 -28
  56. package/core/constants/index.ts +10 -22
  57. package/core/context/generator.ts +82 -33
  58. package/core/context-tools/files-tool.ts +18 -19
  59. package/core/context-tools/imports-tool.ts +13 -33
  60. package/core/context-tools/index.ts +29 -54
  61. package/core/context-tools/recent-tool.ts +16 -22
  62. package/core/context-tools/signatures-tool.ts +17 -26
  63. package/core/context-tools/summary-tool.ts +20 -22
  64. package/core/context-tools/token-counter.ts +25 -20
  65. package/core/context-tools/types.ts +5 -5
  66. package/core/domain/agent-generator.ts +7 -5
  67. package/core/domain/agent-loader.ts +2 -2
  68. package/core/domain/analyzer.ts +19 -16
  69. package/core/domain/architecture-generator.ts +6 -3
  70. package/core/domain/context-estimator.ts +3 -4
  71. package/core/domain/snapshot-manager.ts +25 -22
  72. package/core/domain/task-stack.ts +24 -14
  73. package/core/errors.ts +1 -1
  74. package/core/events/events.ts +2 -4
  75. package/core/events/index.ts +1 -2
  76. package/core/index.ts +28 -16
  77. package/core/infrastructure/agent-detector.ts +3 -3
  78. package/core/infrastructure/ai-provider.ts +23 -20
  79. package/core/infrastructure/author-detector.ts +16 -10
  80. package/core/infrastructure/capability-installer.ts +2 -2
  81. package/core/infrastructure/claude-agent.ts +6 -6
  82. package/core/infrastructure/command-installer.ts +22 -17
  83. package/core/infrastructure/config-manager.ts +18 -14
  84. package/core/infrastructure/editors-config.ts +8 -4
  85. package/core/infrastructure/path-manager.ts +8 -6
  86. package/core/infrastructure/permission-manager.ts +20 -17
  87. package/core/infrastructure/setup.ts +42 -38
  88. package/core/infrastructure/update-checker.ts +5 -5
  89. package/core/integrations/issue-tracker/enricher.ts +8 -19
  90. package/core/integrations/issue-tracker/index.ts +2 -2
  91. package/core/integrations/issue-tracker/manager.ts +15 -15
  92. package/core/integrations/issue-tracker/types.ts +5 -22
  93. package/core/integrations/jira/client.ts +67 -59
  94. package/core/integrations/jira/index.ts +11 -14
  95. package/core/integrations/jira/mcp-adapter.ts +5 -10
  96. package/core/integrations/jira/service.ts +10 -10
  97. package/core/integrations/linear/client.ts +27 -18
  98. package/core/integrations/linear/index.ts +9 -12
  99. package/core/integrations/linear/service.ts +11 -11
  100. package/core/integrations/linear/sync.ts +8 -8
  101. package/core/outcomes/analyzer.ts +5 -18
  102. package/core/outcomes/index.ts +2 -2
  103. package/core/outcomes/recorder.ts +3 -3
  104. package/core/plugin/builtin/webhook.ts +19 -15
  105. package/core/plugin/hooks.ts +29 -21
  106. package/core/plugin/index.ts +7 -7
  107. package/core/plugin/loader.ts +19 -19
  108. package/core/plugin/registry.ts +12 -23
  109. package/core/schemas/agents.ts +1 -1
  110. package/core/schemas/analysis.ts +1 -1
  111. package/core/schemas/enriched-task.ts +62 -49
  112. package/core/schemas/ideas.ts +13 -13
  113. package/core/schemas/index.ts +17 -27
  114. package/core/schemas/issues.ts +40 -25
  115. package/core/schemas/metrics.ts +25 -25
  116. package/core/schemas/outcomes.ts +70 -62
  117. package/core/schemas/permissions.ts +15 -12
  118. package/core/schemas/prd.ts +27 -14
  119. package/core/schemas/project.ts +3 -3
  120. package/core/schemas/roadmap.ts +47 -34
  121. package/core/schemas/schemas.ts +3 -4
  122. package/core/schemas/shipped.ts +3 -3
  123. package/core/schemas/state.ts +43 -29
  124. package/core/server/index.ts +5 -6
  125. package/core/server/routes-extended.ts +68 -72
  126. package/core/server/routes.ts +3 -3
  127. package/core/server/server.ts +31 -26
  128. package/core/services/agent-generator.ts +237 -0
  129. package/core/services/agent-service.ts +2 -2
  130. package/core/services/breakdown-service.ts +2 -4
  131. package/core/services/context-generator.ts +299 -0
  132. package/core/services/context-selector.ts +420 -0
  133. package/core/services/doctor-service.ts +426 -0
  134. package/core/services/file-categorizer.ts +448 -0
  135. package/core/services/file-scorer.ts +270 -0
  136. package/core/services/git-analyzer.ts +267 -0
  137. package/core/services/index.ts +27 -10
  138. package/core/services/memory-service.ts +3 -4
  139. package/core/services/project-index.ts +911 -0
  140. package/core/services/project-service.ts +4 -4
  141. package/core/services/skill-installer.ts +14 -17
  142. package/core/services/skill-lock.ts +3 -3
  143. package/core/services/skill-service.ts +12 -6
  144. package/core/services/stack-detector.ts +245 -0
  145. package/core/services/sync-service.ts +87 -345
  146. package/core/services/watch-service.ts +294 -0
  147. package/core/session/compaction.ts +23 -31
  148. package/core/session/index.ts +11 -5
  149. package/core/session/log-migration.ts +3 -3
  150. package/core/session/metrics.ts +19 -14
  151. package/core/session/session-log-manager.ts +12 -17
  152. package/core/session/task-session-manager.ts +25 -25
  153. package/core/session/utils.ts +1 -1
  154. package/core/storage/ideas-storage.ts +41 -57
  155. package/core/storage/index-storage.ts +514 -0
  156. package/core/storage/index.ts +41 -17
  157. package/core/storage/metrics-storage.ts +39 -34
  158. package/core/storage/queue-storage.ts +35 -45
  159. package/core/storage/shipped-storage.ts +17 -20
  160. package/core/storage/state-storage.ts +50 -30
  161. package/core/storage/storage-manager.ts +6 -6
  162. package/core/storage/storage.ts +18 -15
  163. package/core/sync/auth-config.ts +3 -3
  164. package/core/sync/index.ts +13 -19
  165. package/core/sync/oauth-handler.ts +3 -3
  166. package/core/sync/sync-client.ts +4 -9
  167. package/core/sync/sync-manager.ts +12 -14
  168. package/core/types/commands.ts +42 -7
  169. package/core/types/index.ts +284 -305
  170. package/core/types/integrations.ts +3 -3
  171. package/core/types/storage.ts +14 -14
  172. package/core/types/utils.ts +3 -3
  173. package/core/utils/agent-stream.ts +3 -1
  174. package/core/utils/animations.ts +14 -11
  175. package/core/utils/branding.ts +7 -7
  176. package/core/utils/cache.ts +1 -3
  177. package/core/utils/collection-filters.ts +3 -15
  178. package/core/utils/date-helper.ts +2 -7
  179. package/core/utils/file-helper.ts +13 -8
  180. package/core/utils/jsonl-helper.ts +13 -10
  181. package/core/utils/keychain.ts +4 -8
  182. package/core/utils/logger.ts +1 -1
  183. package/core/utils/next-steps.ts +3 -3
  184. package/core/utils/output.ts +58 -11
  185. package/core/utils/project-commands.ts +6 -6
  186. package/core/utils/project-credentials.ts +5 -12
  187. package/core/utils/runtime.ts +2 -2
  188. package/core/utils/session-helper.ts +3 -4
  189. package/core/utils/version.ts +3 -3
  190. package/core/wizard/index.ts +13 -0
  191. package/core/wizard/onboarding.ts +633 -0
  192. package/core/workflow/state-machine.ts +7 -7
  193. package/dist/bin/prjct.mjs +18755 -15574
  194. package/dist/core/infrastructure/command-installer.js +86 -79
  195. package/dist/core/infrastructure/editors-config.js +6 -6
  196. package/dist/core/infrastructure/setup.js +246 -225
  197. package/dist/core/utils/version.js +9 -9
  198. package/package.json +11 -12
  199. package/scripts/build.js +3 -3
  200. package/scripts/postinstall.js +2 -2
  201. package/templates/mcp-config.json +6 -1
  202. package/templates/permissions/permissive.jsonc +1 -1
  203. package/templates/permissions/strict.jsonc +5 -9
  204. package/templates/global/docs/agents.md +0 -88
  205. package/templates/global/docs/architecture.md +0 -103
  206. package/templates/global/docs/commands.md +0 -96
  207. package/templates/global/docs/validation.md +0 -95
@@ -7,254 +7,191 @@
7
7
  * Import from here: import type { CommandResult, Session } from '../types'
8
8
  */
9
9
 
10
- // =============================================================================
11
- // File System Types
12
- // =============================================================================
13
- export type { NodeError } from './fs'
14
- export {
15
- isNotFoundError,
16
- isPermissionError,
17
- isDirNotEmptyError,
18
- isFileExistsError,
19
- isNodeError,
20
- } from './fs'
21
-
22
- // =============================================================================
23
- // Command Types
24
- // =============================================================================
25
- export type {
26
- // Core command types
27
- CommandResult,
28
- CommandUsage,
29
- CommandMetadata,
30
- CommandFeature,
31
- Command,
32
- CommandRegistry,
33
- CommandStats,
34
- // Options types
35
- Author,
36
- DesignOptions,
37
- CleanupOptions,
38
- SetupOptions,
39
- AnalyzeOptions,
40
- // Migration types
41
- MigrationResult,
42
- LayerCounts,
43
- MigrationConfig,
44
- // Analysis types
45
- ComplexityResult,
46
- HealthResult,
47
- // Command function types
48
- CommandMethodName,
49
- StandardCommandFn,
50
- // Registry types
51
- ExecutionContext,
52
- CommandHandler,
53
- HandlerFn,
54
- RegistryCommandUsage,
55
- BlockingRules,
56
- CommandMeta,
57
- CategoryInfo,
58
- RegistryStats,
59
- ValidationResult as CommandValidationResult,
60
- // Config types (command-related)
61
- GlobalConfig as CommandGlobalConfig,
62
- AuthorEntry,
63
- } from './commands'
64
-
65
- // =============================================================================
66
- // Agent Types
67
- // =============================================================================
68
- export type {
69
- TaskType,
70
- AgentPerformance,
71
- AgentTaskRecord,
72
- AgentSuggestion,
73
- AgentPerformanceSummary,
74
- Agent,
75
- AgentInfo,
76
- AgentRouting,
77
- AssignmentContext,
78
- AgentAssignmentResult,
79
- } from './agents'
80
-
81
10
  // =============================================================================
82
11
  // Agentic System Types
83
12
  // =============================================================================
84
13
  export type {
85
- // Tool types
86
- ToolFunction,
87
- ToolRegistryInterface,
88
- ToolDefinition,
89
- ToolRegistry,
14
+ ApprovalContext,
15
+ ApprovalOperation,
16
+ ApprovalOption,
17
+ ApprovalPrompt,
18
+ AttemptInfo,
19
+ AttemptRecord,
20
+ AttemptResult,
90
21
  BashResult,
22
+ // Chain of Thought types
23
+ ChainOfThoughtContext,
24
+ ChainOfThoughtResult,
25
+ ChainOfThoughtState,
26
+ ChangedFile,
91
27
  // Context types
92
28
  ContextDomain,
93
29
  ContextState,
94
- SmartContextProjectState,
95
- FullContext,
96
- FilteredContext,
97
- FeatureInfo,
98
- PatternInfo,
99
- StackInfo,
100
- FilterMetrics,
101
30
  DomainAnalysis,
102
- // Prompt types
103
- PromptProjectState,
104
- Frontmatter,
105
- Template,
106
- PromptAgent,
107
- PromptContext,
108
- PromptState,
109
- LearnedPatternsRecord,
110
- ThinkBlock,
111
- PlanInfo,
112
- LearnedPatterns,
113
- // Ground Truth types
114
- GroundTruthContext,
115
- VerificationResult,
116
- Verifier,
117
- // Plan Mode types
118
- PlanParams,
119
- GatheredInfo,
120
- GatheredInfoType,
121
- GatheredFileData,
122
- GatheredAnalysisData,
123
- ProposedPlan,
124
- PlanStepDefinition,
125
- PlanStep,
126
- PlanStepResult,
127
- PlanStatus,
128
- Plan,
129
- PlanAnalysis,
130
- ApprovalPrompt,
131
- ApprovalOption,
132
- ApprovalContext,
133
- ChangedFile,
134
- ApprovalOperation,
135
31
  // Loop Detector types
136
32
  ErrorEntry,
137
- AttemptRecord,
138
33
  ErrorPattern,
139
34
  EscalationInfo,
140
- AttemptResult,
141
- AttemptInfo,
142
- HallucinationPattern,
143
- HallucinationResult,
144
- OutputAnalysis,
145
35
  // Command Executor types
146
36
  ExecutionResult,
147
- SimpleExecutionResult,
148
37
  ExecutionToolsFn,
149
- // Template Loader types
150
- ParsedTemplate,
38
+ FeatureInfo,
39
+ FilteredContext,
40
+ FilterMetrics,
151
41
  // Skill Loader types
152
42
  FormattedSkill,
153
- SkillContext,
154
- // Chain of Thought types
155
- ChainOfThoughtContext,
156
- ChainOfThoughtState,
157
- ReasoningStep,
158
- ReasoningResult,
159
- ChainOfThoughtResult,
160
- // Orchestrator types
161
- OrchestratorContext,
43
+ Frontmatter,
44
+ FullContext,
45
+ GatheredAnalysisData,
46
+ GatheredFileData,
47
+ GatheredInfo,
48
+ GatheredInfoType,
49
+ // Ground Truth types
50
+ GroundTruthContext,
51
+ HallucinationPattern,
52
+ HallucinationResult,
53
+ LearnedPatterns,
54
+ LearnedPatternsRecord,
162
55
  LoadedAgent,
163
56
  LoadedSkill,
57
+ // Orchestrator types
58
+ OrchestratorContext,
164
59
  OrchestratorSubtask,
60
+ OutputAnalysis,
61
+ // Template Loader types
62
+ ParsedTemplate,
63
+ PatternInfo,
64
+ Plan,
65
+ PlanAnalysis,
66
+ PlanInfo,
67
+ // Plan Mode types
68
+ PlanParams,
69
+ PlanStatus,
70
+ PlanStep,
71
+ PlanStepDefinition,
72
+ PlanStepResult,
73
+ PromptAgent,
74
+ PromptContext,
75
+ // Prompt types
76
+ PromptProjectState,
77
+ PromptState,
78
+ ProposedPlan,
79
+ ReasoningResult,
80
+ ReasoningStep,
81
+ SimpleExecutionResult,
82
+ SkillContext,
83
+ SmartContextProjectState,
84
+ StackInfo,
85
+ Template,
86
+ ThinkBlock,
87
+ ToolDefinition,
88
+ // Tool types
89
+ ToolFunction,
90
+ ToolRegistry,
91
+ ToolRegistryInterface,
92
+ VerificationResult,
93
+ Verifier,
165
94
  } from './agentic'
166
-
167
95
  // =============================================================================
168
- // Session Types
96
+ // Agent Types
169
97
  // =============================================================================
170
98
  export type {
171
- Session,
172
- SessionMetrics,
173
- TimelineEvent,
174
- SessionEntry,
175
- SessionLogMetadata,
176
- SessionStats,
177
- SessionMigrationResult,
178
- SessionInfo,
179
- ConversationTurn,
180
- CompactedContext,
181
- CompactionConfig,
182
- } from './session'
183
-
99
+ Agent,
100
+ AgentAssignmentResult,
101
+ AgentInfo,
102
+ AgentPerformance,
103
+ AgentPerformanceSummary,
104
+ AgentRouting,
105
+ AgentSuggestion,
106
+ AgentTaskRecord,
107
+ AssignmentContext,
108
+ TaskType,
109
+ } from './agents'
184
110
  // =============================================================================
185
- // Memory Types
111
+ // Bus Types
186
112
  // =============================================================================
187
113
  export type {
188
- Memory,
189
- MemoryMetadata,
190
- MemoryQuery,
191
- MemoryTag,
192
- MemoryDatabase,
193
- HistoryEntry,
194
- HistoryEventType,
195
- Decision,
196
- Workflow,
197
- Preference,
198
- Patterns,
199
- MemoryContext,
200
- MemoryContextParams,
201
- } from './memory'
202
- export { MEMORY_TAGS } from './memory'
203
-
114
+ BusEventType,
115
+ EventCallback,
116
+ EventData,
117
+ EventSubscription,
118
+ } from './bus'
119
+ export { EventTypes } from './bus'
204
120
  // =============================================================================
205
- // Task Types
121
+ // Command Types
206
122
  // =============================================================================
207
123
  export type {
208
- Task,
209
- TaskMetadata,
210
- TaskAnalysis,
211
- SemanticAnalysis,
212
- HistoricalAnalysis,
213
- ProjectAnalysisData,
214
- } from './task'
215
-
124
+ AnalyzeOptions,
125
+ // Options types
126
+ Author,
127
+ AuthorEntry,
128
+ BlockingRules,
129
+ CategoryInfo,
130
+ CleanupOptions,
131
+ Command,
132
+ CommandFeature,
133
+ CommandHandler,
134
+ CommandMeta,
135
+ CommandMetadata,
136
+ // Command function types
137
+ CommandMethodName,
138
+ CommandRegistry,
139
+ // Core command types
140
+ CommandResult,
141
+ CommandStats,
142
+ CommandUsage,
143
+ // Analysis types
144
+ ComplexityResult,
145
+ DesignOptions,
146
+ // Registry types
147
+ ExecutionContext,
148
+ // Config types (command-related)
149
+ GlobalConfig as CommandGlobalConfig,
150
+ HandlerFn,
151
+ HealthResult,
152
+ LayerCounts,
153
+ MigrationConfig,
154
+ // Migration types
155
+ MigrationResult,
156
+ RegistryCommandUsage,
157
+ RegistryStats,
158
+ SetupOptions,
159
+ StandardCommandFn,
160
+ UninstallOptions,
161
+ ValidationResult as CommandValidationResult,
162
+ } from './commands'
216
163
  // =============================================================================
217
164
  // Config Types
218
165
  // =============================================================================
219
166
  export type {
220
- LocalConfig,
221
- GlobalConfig,
222
167
  AuthorEntry as ConfigAuthorEntry,
168
+ GlobalConfig,
169
+ GlobalSettings,
170
+ LocalConfig,
223
171
  ProjectConfig,
224
172
  ProjectSettings,
225
- GlobalSettings,
226
173
  } from './config'
227
-
228
- // =============================================================================
229
- // Integration Types
230
- // =============================================================================
231
- export type {
232
- IntegrationsConfig,
233
- LinearConfig,
234
- JiraConfig,
235
- } from './integrations'
236
- export { DEFAULT_LINEAR_CONFIG, DEFAULT_JIRA_CONFIG } from './integrations'
237
-
238
- // =============================================================================
239
- // Template Types
240
- // =============================================================================
241
- export type {
242
- TemplateFrontmatter,
243
- ValidationRule,
244
- } from './template'
245
-
246
174
  // =============================================================================
247
175
  // Core Types
248
176
  // =============================================================================
249
177
  export type {
250
- ContextPaths,
251
178
  CommandParams,
179
+ CompressedContent,
180
+ CompressionMetrics,
181
+ ContextPaths,
252
182
  ProjectContext,
253
183
  ProjectState,
254
- CompressionMetrics,
255
- CompressedContent,
256
184
  } from './core'
257
-
185
+ // =============================================================================
186
+ // Domain Types
187
+ // =============================================================================
188
+ export type {
189
+ ParsedNowFile,
190
+ TaskStackEntry,
191
+ TaskStackMigrationResult,
192
+ TaskStackSummary,
193
+ TaskSwitchResult,
194
+ } from './domain'
258
195
  // =============================================================================
259
196
  // Event Types
260
197
  // =============================================================================
@@ -262,161 +199,203 @@ export type {
262
199
  SyncEvent,
263
200
  SyncEventType,
264
201
  } from './events'
265
-
266
- // =============================================================================
267
- // Bus Types
268
- // =============================================================================
269
- export type {
270
- BusEventType,
271
- EventData,
272
- EventCallback,
273
- EventSubscription,
274
- } from './bus'
275
- export { EventTypes } from './bus'
276
-
277
202
  // =============================================================================
278
- // Storage Types
203
+ // File System Types
279
204
  // =============================================================================
280
- export type {
281
- Storage,
282
- ShippedFeature,
283
- ShipChange,
284
- CommitInfo,
285
- CodeMetrics,
286
- QualityMetrics,
287
- Duration,
288
- ShippedJson,
289
- Idea,
290
- IdeaStatus,
291
- IdeaPriority,
292
- ImpactEffort,
293
- TechStack,
294
- IdeaModule,
295
- IdeaRole,
296
- IdeasJson,
297
- DailyStats,
298
- AgentUsage,
299
- MetricsJson,
300
- } from './storage'
301
-
205
+ export type { NodeError } from './fs'
206
+ export {
207
+ isDirNotEmptyError,
208
+ isFileExistsError,
209
+ isNodeError,
210
+ isNotFoundError,
211
+ isPermissionError,
212
+ } from './fs'
302
213
  // =============================================================================
303
214
  // Infrastructure Types
304
215
  // =============================================================================
305
216
  export type {
306
- PathSessionInfo,
307
- LayerType,
308
- InstallResult,
309
- UninstallResult,
310
- CheckResult,
311
- SyncResult,
312
- GlobalConfigResult,
313
- PermissionLevel,
314
- FileOperation,
315
- PermissionsConfig,
316
- PermissionCheckResult,
317
217
  AgentCapabilities,
318
218
  AgentConfig,
319
219
  AgentEnvironment,
220
+ AuthorConfigStatus,
221
+ CheckResult,
320
222
  DetectedAgent,
321
223
  DetectedAuthorInfo,
322
- AuthorConfigStatus,
224
+ FileOperation,
225
+ GlobalConfigResult,
226
+ InstallResult,
227
+ LayerType,
228
+ PathSessionInfo,
229
+ PermissionCheckResult,
230
+ PermissionLevel,
231
+ PermissionsConfig,
232
+ SyncResult,
233
+ UninstallResult,
323
234
  } from './infrastructure'
324
-
235
+ // =============================================================================
236
+ // Integration Types
237
+ // =============================================================================
238
+ export type {
239
+ IntegrationsConfig,
240
+ JiraConfig,
241
+ LinearConfig,
242
+ } from './integrations'
243
+ export { DEFAULT_JIRA_CONFIG, DEFAULT_LINEAR_CONFIG } from './integrations'
244
+ // =============================================================================
245
+ // Memory Types
246
+ // =============================================================================
247
+ export type {
248
+ Decision,
249
+ HistoryEntry,
250
+ HistoryEventType,
251
+ Memory,
252
+ MemoryContext,
253
+ MemoryContextParams,
254
+ MemoryDatabase,
255
+ MemoryMetadata,
256
+ MemoryQuery,
257
+ MemoryTag,
258
+ Patterns,
259
+ Preference,
260
+ Workflow,
261
+ } from './memory'
262
+ export { MEMORY_TAGS } from './memory'
325
263
  // =============================================================================
326
264
  // Outcome Types
327
265
  // =============================================================================
328
266
  export type {
329
- QualityScore,
267
+ AgentMetrics,
268
+ DetectedPattern,
330
269
  Outcome,
331
- OutcomeSummary,
332
270
  OutcomeFilter,
333
271
  OutcomeInput,
334
- DetectedPattern,
335
- AgentMetrics,
272
+ OutcomeSummary,
273
+ QualityScore,
336
274
  } from './outcomes'
337
-
338
- // =============================================================================
339
- // Utility Types
340
- // =============================================================================
341
- export type {
342
- AsyncFunction,
343
- MaybePromise,
344
- FileInfo,
345
- LogLevel,
346
- DateComponents,
347
- CacheEntry,
348
- CacheOptions,
349
- CacheStats,
350
- DetectedProjectCommands,
351
- Runtime,
352
- } from './utils'
353
-
354
275
  // =============================================================================
355
276
  // Plugin Types
356
277
  // =============================================================================
357
278
  export type {
358
279
  WebhookConfig,
359
- WebhookPluginContext,
360
280
  WebhookPayload,
281
+ WebhookPluginContext,
361
282
  } from './plugin'
362
-
283
+ // =============================================================================
284
+ // Provider Types (AI CLI abstraction)
285
+ // =============================================================================
286
+ export type {
287
+ AIProviderConfig,
288
+ AIProviderName,
289
+ CommandFormat,
290
+ ProviderBranding,
291
+ ProviderDetectionResult,
292
+ ProviderSelectionResult,
293
+ } from './provider'
294
+ // =============================================================================
295
+ // Server Types
296
+ // =============================================================================
297
+ export type {
298
+ ServerConfig,
299
+ ServerInstance,
300
+ SSEClient,
301
+ SSEEventType,
302
+ SSEManager,
303
+ } from './server'
363
304
  // =============================================================================
364
305
  // Service Types
365
306
  // =============================================================================
366
307
  export type {
367
- Severity,
368
308
  ComplexityEstimate,
369
- SkillMetadata,
309
+ MemoryServiceEntry,
310
+ Severity,
370
311
  Skill,
312
+ SkillMetadata,
371
313
  SkillSearchResult,
372
- MemoryServiceEntry,
373
314
  } from './services'
374
-
375
315
  // =============================================================================
376
- // Domain Types
316
+ // Session Types
377
317
  // =============================================================================
378
318
  export type {
379
- TaskStackEntry,
380
- ParsedNowFile,
381
- TaskStackMigrationResult,
382
- TaskSwitchResult,
383
- TaskStackSummary,
384
- } from './domain'
385
-
319
+ CompactedContext,
320
+ CompactionConfig,
321
+ ConversationTurn,
322
+ Session,
323
+ SessionEntry,
324
+ SessionInfo,
325
+ SessionLogMetadata,
326
+ SessionMetrics,
327
+ SessionMigrationResult,
328
+ SessionStats,
329
+ TimelineEvent,
330
+ } from './session'
331
+ // =============================================================================
332
+ // Storage Types
333
+ // =============================================================================
334
+ export type {
335
+ AgentUsage,
336
+ CodeMetrics,
337
+ CommitInfo,
338
+ DailyStats,
339
+ Duration,
340
+ Idea,
341
+ IdeaModule,
342
+ IdeaPriority,
343
+ IdeaRole,
344
+ IdeaStatus,
345
+ IdeasJson,
346
+ ImpactEffort,
347
+ MetricsJson,
348
+ QualityMetrics,
349
+ ShipChange,
350
+ ShippedFeature,
351
+ ShippedJson,
352
+ Storage,
353
+ TechStack,
354
+ } from './storage'
386
355
  // =============================================================================
387
356
  // Sync Types
388
357
  // =============================================================================
389
358
  export type {
390
- AuthResult,
391
359
  AuthConfig,
392
- SyncManagerResult,
393
- PushResult,
360
+ AuthResult,
394
361
  PullResult,
362
+ PushResult,
395
363
  SyncBatchResult,
364
+ SyncClientError,
365
+ SyncManagerResult,
396
366
  SyncPullResult,
397
367
  SyncStatus,
398
- SyncClientError,
399
368
  } from './sync'
400
-
401
369
  // =============================================================================
402
- // Server Types
370
+ // Task Types
403
371
  // =============================================================================
404
372
  export type {
405
- ServerConfig,
406
- ServerInstance,
407
- SSEClient,
408
- SSEManager,
409
- SSEEventType,
410
- } from './server'
411
-
373
+ HistoricalAnalysis,
374
+ ProjectAnalysisData,
375
+ SemanticAnalysis,
376
+ Task,
377
+ TaskAnalysis,
378
+ TaskMetadata,
379
+ } from './task'
412
380
  // =============================================================================
413
- // Provider Types (AI CLI abstraction)
381
+ // Template Types
414
382
  // =============================================================================
415
383
  export type {
416
- AIProviderName,
417
- CommandFormat,
418
- AIProviderConfig,
419
- ProviderDetectionResult,
420
- ProviderSelectionResult,
421
- ProviderBranding,
422
- } from './provider'
384
+ TemplateFrontmatter,
385
+ ValidationRule,
386
+ } from './template'
387
+ // =============================================================================
388
+ // Utility Types
389
+ // =============================================================================
390
+ export type {
391
+ AsyncFunction,
392
+ CacheEntry,
393
+ CacheOptions,
394
+ CacheStats,
395
+ DateComponents,
396
+ DetectedProjectCommands,
397
+ FileInfo,
398
+ LogLevel,
399
+ MaybePromise,
400
+ Runtime,
401
+ } from './utils'