prjct-cli 0.44.1 → 0.45.3
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.
- package/CHANGELOG.md +114 -0
- package/bin/prjct.ts +131 -10
- package/core/__tests__/agentic/memory-system.test.ts +39 -26
- package/core/__tests__/agentic/plan-mode.test.ts +64 -46
- package/core/__tests__/agentic/prompt-builder.test.ts +14 -14
- package/core/__tests__/services/project-index.test.ts +353 -0
- package/core/__tests__/types/fs.test.ts +3 -3
- package/core/__tests__/utils/date-helper.test.ts +10 -10
- package/core/__tests__/utils/output.test.ts +9 -6
- package/core/__tests__/utils/project-commands.test.ts +5 -6
- package/core/agentic/agent-router.ts +9 -10
- package/core/agentic/chain-of-thought.ts +16 -4
- package/core/agentic/command-executor.ts +66 -40
- package/core/agentic/context-builder.ts +8 -5
- package/core/agentic/ground-truth.ts +15 -9
- package/core/agentic/index.ts +145 -152
- package/core/agentic/loop-detector.ts +40 -11
- package/core/agentic/memory-system.ts +98 -35
- package/core/agentic/orchestrator-executor.ts +135 -71
- package/core/agentic/plan-mode.ts +46 -16
- package/core/agentic/prompt-builder.ts +108 -42
- package/core/agentic/services.ts +10 -9
- package/core/agentic/skill-loader.ts +9 -15
- package/core/agentic/smart-context.ts +129 -79
- package/core/agentic/template-executor.ts +13 -12
- package/core/agentic/template-loader.ts +7 -4
- package/core/agentic/tool-registry.ts +16 -13
- package/core/agents/index.ts +1 -1
- package/core/agents/performance.ts +10 -27
- package/core/ai-tools/formatters.ts +8 -6
- package/core/ai-tools/generator.ts +4 -4
- package/core/ai-tools/index.ts +1 -1
- package/core/ai-tools/registry.ts +21 -11
- package/core/bus/bus.ts +23 -16
- package/core/bus/index.ts +2 -2
- package/core/cli/linear.ts +3 -5
- package/core/cli/start.ts +28 -25
- package/core/commands/analysis.ts +287 -29
- package/core/commands/analytics.ts +52 -44
- package/core/commands/base.ts +15 -13
- package/core/commands/cleanup.ts +6 -13
- package/core/commands/command-data.ts +49 -8
- package/core/commands/commands.ts +60 -23
- package/core/commands/context.ts +4 -4
- package/core/commands/design.ts +3 -10
- package/core/commands/index.ts +5 -8
- package/core/commands/maintenance.ts +7 -4
- package/core/commands/planning.ts +179 -56
- package/core/commands/register.ts +14 -9
- package/core/commands/registry.ts +15 -14
- package/core/commands/setup.ts +26 -14
- package/core/commands/shipping.ts +11 -16
- package/core/commands/snapshots.ts +16 -32
- package/core/commands/uninstall.ts +541 -0
- package/core/commands/workflow.ts +24 -28
- package/core/constants/index.ts +10 -22
- package/core/context/generator.ts +82 -33
- package/core/context-tools/files-tool.ts +583 -0
- package/core/context-tools/imports-tool.ts +403 -0
- package/core/context-tools/index.ts +433 -0
- package/core/context-tools/recent-tool.ts +307 -0
- package/core/context-tools/signatures-tool.ts +501 -0
- package/core/context-tools/summary-tool.ts +307 -0
- package/core/context-tools/token-counter.ts +284 -0
- package/core/context-tools/types.ts +253 -0
- package/core/domain/agent-generator.ts +7 -5
- package/core/domain/agent-loader.ts +2 -2
- package/core/domain/analyzer.ts +19 -16
- package/core/domain/architecture-generator.ts +6 -3
- package/core/domain/context-estimator.ts +3 -4
- package/core/domain/snapshot-manager.ts +25 -22
- package/core/domain/task-stack.ts +24 -14
- package/core/errors.ts +1 -1
- package/core/events/events.ts +2 -4
- package/core/events/index.ts +1 -2
- package/core/index.ts +28 -12
- package/core/infrastructure/agent-detector.ts +3 -3
- package/core/infrastructure/ai-provider.ts +23 -20
- package/core/infrastructure/author-detector.ts +16 -10
- package/core/infrastructure/capability-installer.ts +2 -2
- package/core/infrastructure/claude-agent.ts +6 -6
- package/core/infrastructure/command-installer.ts +22 -17
- package/core/infrastructure/config-manager.ts +18 -14
- package/core/infrastructure/editors-config.ts +8 -4
- package/core/infrastructure/path-manager.ts +8 -6
- package/core/infrastructure/permission-manager.ts +20 -17
- package/core/infrastructure/setup.ts +42 -38
- package/core/infrastructure/update-checker.ts +5 -5
- package/core/integrations/issue-tracker/enricher.ts +8 -19
- package/core/integrations/issue-tracker/index.ts +2 -2
- package/core/integrations/issue-tracker/manager.ts +15 -15
- package/core/integrations/issue-tracker/types.ts +5 -22
- package/core/integrations/jira/client.ts +67 -59
- package/core/integrations/jira/index.ts +11 -14
- package/core/integrations/jira/mcp-adapter.ts +5 -10
- package/core/integrations/jira/service.ts +10 -10
- package/core/integrations/linear/client.ts +27 -18
- package/core/integrations/linear/index.ts +9 -12
- package/core/integrations/linear/service.ts +11 -11
- package/core/integrations/linear/sync.ts +8 -8
- package/core/outcomes/analyzer.ts +5 -18
- package/core/outcomes/index.ts +2 -2
- package/core/outcomes/recorder.ts +3 -3
- package/core/plugin/builtin/webhook.ts +19 -15
- package/core/plugin/hooks.ts +29 -21
- package/core/plugin/index.ts +7 -7
- package/core/plugin/loader.ts +19 -19
- package/core/plugin/registry.ts +12 -23
- package/core/schemas/agents.ts +1 -1
- package/core/schemas/analysis.ts +1 -1
- package/core/schemas/enriched-task.ts +62 -49
- package/core/schemas/ideas.ts +13 -13
- package/core/schemas/index.ts +17 -27
- package/core/schemas/issues.ts +40 -25
- package/core/schemas/metrics.ts +143 -0
- package/core/schemas/outcomes.ts +70 -62
- package/core/schemas/permissions.ts +15 -12
- package/core/schemas/prd.ts +27 -14
- package/core/schemas/project.ts +3 -3
- package/core/schemas/roadmap.ts +47 -34
- package/core/schemas/schemas.ts +3 -4
- package/core/schemas/shipped.ts +3 -3
- package/core/schemas/state.ts +43 -29
- package/core/server/index.ts +5 -6
- package/core/server/routes-extended.ts +68 -72
- package/core/server/routes.ts +3 -3
- package/core/server/server.ts +31 -26
- package/core/services/agent-generator.ts +237 -0
- package/core/services/agent-service.ts +2 -2
- package/core/services/breakdown-service.ts +2 -4
- package/core/services/context-generator.ts +299 -0
- package/core/services/context-selector.ts +420 -0
- package/core/services/doctor-service.ts +426 -0
- package/core/services/file-categorizer.ts +448 -0
- package/core/services/file-scorer.ts +270 -0
- package/core/services/git-analyzer.ts +267 -0
- package/core/services/index.ts +27 -10
- package/core/services/memory-service.ts +3 -4
- package/core/services/project-index.ts +911 -0
- package/core/services/project-service.ts +4 -4
- package/core/services/skill-installer.ts +14 -17
- package/core/services/skill-lock.ts +3 -3
- package/core/services/skill-service.ts +12 -6
- package/core/services/stack-detector.ts +245 -0
- package/core/services/sync-service.ts +170 -329
- package/core/services/watch-service.ts +294 -0
- package/core/session/compaction.ts +23 -31
- package/core/session/index.ts +11 -5
- package/core/session/log-migration.ts +3 -3
- package/core/session/metrics.ts +19 -14
- package/core/session/session-log-manager.ts +12 -17
- package/core/session/task-session-manager.ts +25 -25
- package/core/session/utils.ts +1 -1
- package/core/storage/ideas-storage.ts +41 -57
- package/core/storage/index-storage.ts +514 -0
- package/core/storage/index.ts +41 -13
- package/core/storage/metrics-storage.ts +320 -0
- package/core/storage/queue-storage.ts +35 -45
- package/core/storage/shipped-storage.ts +17 -20
- package/core/storage/state-storage.ts +50 -30
- package/core/storage/storage-manager.ts +6 -6
- package/core/storage/storage.ts +18 -15
- package/core/sync/auth-config.ts +3 -3
- package/core/sync/index.ts +13 -19
- package/core/sync/oauth-handler.ts +3 -3
- package/core/sync/sync-client.ts +4 -9
- package/core/sync/sync-manager.ts +12 -14
- package/core/types/commands.ts +42 -7
- package/core/types/index.ts +284 -302
- package/core/types/integrations.ts +3 -3
- package/core/types/storage.ts +49 -0
- package/core/types/utils.ts +3 -3
- package/core/utils/agent-stream.ts +3 -1
- package/core/utils/animations.ts +14 -11
- package/core/utils/branding.ts +7 -7
- package/core/utils/cache.ts +1 -3
- package/core/utils/collection-filters.ts +3 -15
- package/core/utils/date-helper.ts +2 -7
- package/core/utils/file-helper.ts +13 -8
- package/core/utils/jsonl-helper.ts +13 -10
- package/core/utils/keychain.ts +4 -8
- package/core/utils/logger.ts +1 -1
- package/core/utils/next-steps.ts +3 -3
- package/core/utils/output.ts +58 -11
- package/core/utils/project-commands.ts +6 -6
- package/core/utils/project-credentials.ts +5 -12
- package/core/utils/runtime.ts +2 -2
- package/core/utils/session-helper.ts +3 -4
- package/core/utils/version.ts +3 -3
- package/core/wizard/index.ts +13 -0
- package/core/wizard/onboarding.ts +633 -0
- package/core/workflow/state-machine.ts +7 -7
- package/dist/bin/prjct.mjs +18907 -13189
- package/dist/core/infrastructure/command-installer.js +96 -111
- package/dist/core/infrastructure/editors-config.js +6 -6
- package/dist/core/infrastructure/setup.js +256 -257
- package/dist/core/utils/version.js +9 -9
- package/package.json +11 -12
- package/scripts/build.js +3 -3
- package/scripts/postinstall.js +2 -2
- package/templates/mcp-config.json +6 -1
- package/templates/permissions/permissive.jsonc +1 -1
- package/templates/permissions/strict.jsonc +5 -9
- package/templates/global/docs/agents.md +0 -88
- package/templates/global/docs/architecture.md +0 -103
- package/templates/global/docs/commands.md +0 -96
- package/templates/global/docs/validation.md +0 -95
package/core/types/index.ts
CHANGED
|
@@ -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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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
|
-
|
|
150
|
-
|
|
38
|
+
FeatureInfo,
|
|
39
|
+
FilteredContext,
|
|
40
|
+
FilterMetrics,
|
|
151
41
|
// Skill Loader types
|
|
152
42
|
FormattedSkill,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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
|
-
//
|
|
96
|
+
// Agent Types
|
|
169
97
|
// =============================================================================
|
|
170
98
|
export type {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
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
|
-
//
|
|
111
|
+
// Bus Types
|
|
186
112
|
// =============================================================================
|
|
187
113
|
export type {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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
|
-
//
|
|
121
|
+
// Command Types
|
|
206
122
|
// =============================================================================
|
|
207
123
|
export type {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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,158 +199,203 @@ export type {
|
|
|
262
199
|
SyncEvent,
|
|
263
200
|
SyncEventType,
|
|
264
201
|
} from './events'
|
|
265
|
-
|
|
266
|
-
// =============================================================================
|
|
267
|
-
// Bus Types
|
|
268
202
|
// =============================================================================
|
|
269
|
-
|
|
270
|
-
BusEventType,
|
|
271
|
-
EventData,
|
|
272
|
-
EventCallback,
|
|
273
|
-
EventSubscription,
|
|
274
|
-
} from './bus'
|
|
275
|
-
export { EventTypes } from './bus'
|
|
276
|
-
|
|
277
|
-
// =============================================================================
|
|
278
|
-
// Storage Types
|
|
203
|
+
// File System Types
|
|
279
204
|
// =============================================================================
|
|
280
|
-
export type {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
ShippedJson,
|
|
289
|
-
Idea,
|
|
290
|
-
IdeaStatus,
|
|
291
|
-
IdeaPriority,
|
|
292
|
-
ImpactEffort,
|
|
293
|
-
TechStack,
|
|
294
|
-
IdeaModule,
|
|
295
|
-
IdeaRole,
|
|
296
|
-
IdeasJson,
|
|
297
|
-
} from './storage'
|
|
298
|
-
|
|
205
|
+
export type { NodeError } from './fs'
|
|
206
|
+
export {
|
|
207
|
+
isDirNotEmptyError,
|
|
208
|
+
isFileExistsError,
|
|
209
|
+
isNodeError,
|
|
210
|
+
isNotFoundError,
|
|
211
|
+
isPermissionError,
|
|
212
|
+
} from './fs'
|
|
299
213
|
// =============================================================================
|
|
300
214
|
// Infrastructure Types
|
|
301
215
|
// =============================================================================
|
|
302
216
|
export type {
|
|
303
|
-
PathSessionInfo,
|
|
304
|
-
LayerType,
|
|
305
|
-
InstallResult,
|
|
306
|
-
UninstallResult,
|
|
307
|
-
CheckResult,
|
|
308
|
-
SyncResult,
|
|
309
|
-
GlobalConfigResult,
|
|
310
|
-
PermissionLevel,
|
|
311
|
-
FileOperation,
|
|
312
|
-
PermissionsConfig,
|
|
313
|
-
PermissionCheckResult,
|
|
314
217
|
AgentCapabilities,
|
|
315
218
|
AgentConfig,
|
|
316
219
|
AgentEnvironment,
|
|
220
|
+
AuthorConfigStatus,
|
|
221
|
+
CheckResult,
|
|
317
222
|
DetectedAgent,
|
|
318
223
|
DetectedAuthorInfo,
|
|
319
|
-
|
|
224
|
+
FileOperation,
|
|
225
|
+
GlobalConfigResult,
|
|
226
|
+
InstallResult,
|
|
227
|
+
LayerType,
|
|
228
|
+
PathSessionInfo,
|
|
229
|
+
PermissionCheckResult,
|
|
230
|
+
PermissionLevel,
|
|
231
|
+
PermissionsConfig,
|
|
232
|
+
SyncResult,
|
|
233
|
+
UninstallResult,
|
|
320
234
|
} from './infrastructure'
|
|
321
|
-
|
|
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'
|
|
322
263
|
// =============================================================================
|
|
323
264
|
// Outcome Types
|
|
324
265
|
// =============================================================================
|
|
325
266
|
export type {
|
|
326
|
-
|
|
267
|
+
AgentMetrics,
|
|
268
|
+
DetectedPattern,
|
|
327
269
|
Outcome,
|
|
328
|
-
OutcomeSummary,
|
|
329
270
|
OutcomeFilter,
|
|
330
271
|
OutcomeInput,
|
|
331
|
-
|
|
332
|
-
|
|
272
|
+
OutcomeSummary,
|
|
273
|
+
QualityScore,
|
|
333
274
|
} from './outcomes'
|
|
334
|
-
|
|
335
|
-
// =============================================================================
|
|
336
|
-
// Utility Types
|
|
337
|
-
// =============================================================================
|
|
338
|
-
export type {
|
|
339
|
-
AsyncFunction,
|
|
340
|
-
MaybePromise,
|
|
341
|
-
FileInfo,
|
|
342
|
-
LogLevel,
|
|
343
|
-
DateComponents,
|
|
344
|
-
CacheEntry,
|
|
345
|
-
CacheOptions,
|
|
346
|
-
CacheStats,
|
|
347
|
-
DetectedProjectCommands,
|
|
348
|
-
Runtime,
|
|
349
|
-
} from './utils'
|
|
350
|
-
|
|
351
275
|
// =============================================================================
|
|
352
276
|
// Plugin Types
|
|
353
277
|
// =============================================================================
|
|
354
278
|
export type {
|
|
355
279
|
WebhookConfig,
|
|
356
|
-
WebhookPluginContext,
|
|
357
280
|
WebhookPayload,
|
|
281
|
+
WebhookPluginContext,
|
|
358
282
|
} from './plugin'
|
|
359
|
-
|
|
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'
|
|
360
304
|
// =============================================================================
|
|
361
305
|
// Service Types
|
|
362
306
|
// =============================================================================
|
|
363
307
|
export type {
|
|
364
|
-
Severity,
|
|
365
308
|
ComplexityEstimate,
|
|
366
|
-
|
|
309
|
+
MemoryServiceEntry,
|
|
310
|
+
Severity,
|
|
367
311
|
Skill,
|
|
312
|
+
SkillMetadata,
|
|
368
313
|
SkillSearchResult,
|
|
369
|
-
MemoryServiceEntry,
|
|
370
314
|
} from './services'
|
|
371
|
-
|
|
372
315
|
// =============================================================================
|
|
373
|
-
//
|
|
316
|
+
// Session Types
|
|
374
317
|
// =============================================================================
|
|
375
318
|
export type {
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
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'
|
|
383
355
|
// =============================================================================
|
|
384
356
|
// Sync Types
|
|
385
357
|
// =============================================================================
|
|
386
358
|
export type {
|
|
387
|
-
AuthResult,
|
|
388
359
|
AuthConfig,
|
|
389
|
-
|
|
390
|
-
PushResult,
|
|
360
|
+
AuthResult,
|
|
391
361
|
PullResult,
|
|
362
|
+
PushResult,
|
|
392
363
|
SyncBatchResult,
|
|
364
|
+
SyncClientError,
|
|
365
|
+
SyncManagerResult,
|
|
393
366
|
SyncPullResult,
|
|
394
367
|
SyncStatus,
|
|
395
|
-
SyncClientError,
|
|
396
368
|
} from './sync'
|
|
397
|
-
|
|
398
369
|
// =============================================================================
|
|
399
|
-
//
|
|
370
|
+
// Task Types
|
|
400
371
|
// =============================================================================
|
|
401
372
|
export type {
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
373
|
+
HistoricalAnalysis,
|
|
374
|
+
ProjectAnalysisData,
|
|
375
|
+
SemanticAnalysis,
|
|
376
|
+
Task,
|
|
377
|
+
TaskAnalysis,
|
|
378
|
+
TaskMetadata,
|
|
379
|
+
} from './task'
|
|
409
380
|
// =============================================================================
|
|
410
|
-
//
|
|
381
|
+
// Template Types
|
|
411
382
|
// =============================================================================
|
|
412
383
|
export type {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
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'
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
* Re-exported from issue-tracker module
|
|
9
9
|
*/
|
|
10
10
|
export type {
|
|
11
|
+
GitHubConfig,
|
|
11
12
|
IssueTrackerConfig,
|
|
12
|
-
LinearConfig,
|
|
13
13
|
JiraConfig,
|
|
14
|
+
LinearConfig,
|
|
14
15
|
MondayConfig,
|
|
15
|
-
GitHubConfig,
|
|
16
16
|
} from '../integrations/issue-tracker/types'
|
|
17
17
|
|
|
18
18
|
export {
|
|
19
|
-
DEFAULT_LINEAR_CONFIG,
|
|
20
19
|
DEFAULT_JIRA_CONFIG,
|
|
20
|
+
DEFAULT_LINEAR_CONFIG,
|
|
21
21
|
} from '../integrations/issue-tracker/types'
|
|
22
22
|
|
|
23
23
|
/**
|