@weavelogic/knowledge-graph-agent 0.11.8 → 0.12.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.
- package/dist/claude/hook-capture.d.ts +1 -0
- package/dist/claude/hook-capture.d.ts.map +1 -1
- package/dist/claude/hook-capture.js +24 -8
- package/dist/claude/hook-capture.js.map +1 -1
- package/dist/cli/commands/sparc.d.ts +14 -0
- package/dist/cli/commands/sparc.d.ts.map +1 -0
- package/dist/cli/commands/sparc.js +262 -0
- package/dist/cli/commands/sparc.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +7 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/node_modules/@typescript-eslint/project-service/dist/index.js +1 -1
- package/dist/node_modules/tinyglobby/dist/index.js +1 -1
- package/dist/sparc/consensus.d.ts +149 -0
- package/dist/sparc/consensus.d.ts.map +1 -0
- package/dist/sparc/consensus.js +356 -0
- package/dist/sparc/consensus.js.map +1 -0
- package/dist/sparc/decision-log.d.ts +131 -0
- package/dist/sparc/decision-log.d.ts.map +1 -0
- package/dist/sparc/decision-log.js +325 -0
- package/dist/sparc/decision-log.js.map +1 -0
- package/dist/sparc/index.d.ts +14 -0
- package/dist/sparc/index.d.ts.map +1 -0
- package/dist/sparc/index.js +15 -0
- package/dist/sparc/index.js.map +1 -0
- package/dist/sparc/review-process.d.ts +72 -0
- package/dist/sparc/review-process.d.ts.map +1 -0
- package/dist/sparc/review-process.js +609 -0
- package/dist/sparc/review-process.js.map +1 -0
- package/dist/sparc/sparc-planner.d.ts +144 -0
- package/dist/sparc/sparc-planner.d.ts.map +1 -0
- package/dist/sparc/sparc-planner.js +757 -0
- package/dist/sparc/sparc-planner.js.map +1 -0
- package/dist/sparc/types.d.ts +664 -0
- package/dist/sparc/types.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,664 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SPARC Planning Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the SPARC (Specification, Pseudocode, Architecture,
|
|
5
|
+
* Refinement, Completion) planning system.
|
|
6
|
+
*
|
|
7
|
+
* @module sparc/types
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* SPARC methodology phases
|
|
11
|
+
*/
|
|
12
|
+
export type SPARCPhase = 'specification' | 'pseudocode' | 'architecture' | 'refinement' | 'completion';
|
|
13
|
+
/**
|
|
14
|
+
* Confidence level for decisions
|
|
15
|
+
*/
|
|
16
|
+
export type ConfidenceLevel = 'high' | 'medium' | 'low' | 'uncertain';
|
|
17
|
+
/**
|
|
18
|
+
* Decision status in the log
|
|
19
|
+
*/
|
|
20
|
+
export type DecisionStatus = 'proposed' | 'approved' | 'rejected' | 'deferred' | 'superseded';
|
|
21
|
+
/**
|
|
22
|
+
* Review pass type
|
|
23
|
+
*/
|
|
24
|
+
export type ReviewPassType = 'documentation' | 'code' | 'sparc-spec';
|
|
25
|
+
/**
|
|
26
|
+
* Review finding severity
|
|
27
|
+
*/
|
|
28
|
+
export type FindingSeverity = 'critical' | 'major' | 'minor' | 'suggestion';
|
|
29
|
+
/**
|
|
30
|
+
* Task execution mode
|
|
31
|
+
*/
|
|
32
|
+
export type TaskExecutionMode = 'sequential' | 'parallel' | 'adaptive';
|
|
33
|
+
/**
|
|
34
|
+
* Requirement specification
|
|
35
|
+
*/
|
|
36
|
+
export interface Requirement {
|
|
37
|
+
/** Unique requirement ID */
|
|
38
|
+
id: string;
|
|
39
|
+
/** Requirement type */
|
|
40
|
+
type: 'functional' | 'non-functional' | 'constraint' | 'assumption';
|
|
41
|
+
/** Requirement description */
|
|
42
|
+
description: string;
|
|
43
|
+
/** Priority level */
|
|
44
|
+
priority: 'must-have' | 'should-have' | 'could-have' | 'won-t-have';
|
|
45
|
+
/** Source of the requirement */
|
|
46
|
+
source: string;
|
|
47
|
+
/** Acceptance criteria */
|
|
48
|
+
acceptanceCriteria: string[];
|
|
49
|
+
/** Related requirement IDs */
|
|
50
|
+
relatedRequirements: string[];
|
|
51
|
+
/** Knowledge graph node reference */
|
|
52
|
+
kgNodeId?: string;
|
|
53
|
+
/** Vector embedding ID for semantic search */
|
|
54
|
+
vectorId?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Feature specification
|
|
58
|
+
*/
|
|
59
|
+
export interface Feature {
|
|
60
|
+
/** Feature ID */
|
|
61
|
+
id: string;
|
|
62
|
+
/** Feature name */
|
|
63
|
+
name: string;
|
|
64
|
+
/** Feature description */
|
|
65
|
+
description: string;
|
|
66
|
+
/** User stories */
|
|
67
|
+
userStories: string[];
|
|
68
|
+
/** Associated requirements */
|
|
69
|
+
requirements: string[];
|
|
70
|
+
/** Estimated complexity */
|
|
71
|
+
complexity: 'low' | 'medium' | 'high' | 'very-high';
|
|
72
|
+
/** Dependencies on other features */
|
|
73
|
+
dependencies: string[];
|
|
74
|
+
/** Can be developed in parallel */
|
|
75
|
+
parallelizable: boolean;
|
|
76
|
+
/** Sub-agent assignments */
|
|
77
|
+
assignedAgents?: string[];
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Specification document
|
|
81
|
+
*/
|
|
82
|
+
export interface SpecificationDocument {
|
|
83
|
+
/** Document ID */
|
|
84
|
+
id: string;
|
|
85
|
+
/** Project name */
|
|
86
|
+
projectName: string;
|
|
87
|
+
/** Version */
|
|
88
|
+
version: string;
|
|
89
|
+
/** Created timestamp */
|
|
90
|
+
createdAt: Date;
|
|
91
|
+
/** Updated timestamp */
|
|
92
|
+
updatedAt: Date;
|
|
93
|
+
/** Executive summary */
|
|
94
|
+
summary: string;
|
|
95
|
+
/** Problem statement */
|
|
96
|
+
problemStatement: string;
|
|
97
|
+
/** Goals and objectives */
|
|
98
|
+
goals: string[];
|
|
99
|
+
/** Requirements list */
|
|
100
|
+
requirements: Requirement[];
|
|
101
|
+
/** Features list */
|
|
102
|
+
features: Feature[];
|
|
103
|
+
/** Constraints */
|
|
104
|
+
constraints: string[];
|
|
105
|
+
/** Assumptions */
|
|
106
|
+
assumptions: string[];
|
|
107
|
+
/** Out of scope items */
|
|
108
|
+
outOfScope: string[];
|
|
109
|
+
/** Success metrics */
|
|
110
|
+
successMetrics: string[];
|
|
111
|
+
/** Knowledge graph references */
|
|
112
|
+
kgReferences: KGReference[];
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Algorithm step
|
|
116
|
+
*/
|
|
117
|
+
export interface AlgorithmStep {
|
|
118
|
+
/** Step number */
|
|
119
|
+
step: number;
|
|
120
|
+
/** Step description */
|
|
121
|
+
description: string;
|
|
122
|
+
/** Pseudocode */
|
|
123
|
+
pseudocode: string;
|
|
124
|
+
/** Inputs */
|
|
125
|
+
inputs: string[];
|
|
126
|
+
/** Outputs */
|
|
127
|
+
outputs: string[];
|
|
128
|
+
/** Complexity notation */
|
|
129
|
+
complexity?: string;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Algorithm design
|
|
133
|
+
*/
|
|
134
|
+
export interface AlgorithmDesign {
|
|
135
|
+
/** Algorithm ID */
|
|
136
|
+
id: string;
|
|
137
|
+
/** Algorithm name */
|
|
138
|
+
name: string;
|
|
139
|
+
/** Purpose */
|
|
140
|
+
purpose: string;
|
|
141
|
+
/** Steps */
|
|
142
|
+
steps: AlgorithmStep[];
|
|
143
|
+
/** Time complexity */
|
|
144
|
+
timeComplexity: string;
|
|
145
|
+
/** Space complexity */
|
|
146
|
+
spaceComplexity: string;
|
|
147
|
+
/** Edge cases */
|
|
148
|
+
edgeCases: string[];
|
|
149
|
+
/** Related feature IDs */
|
|
150
|
+
relatedFeatures: string[];
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Component definition
|
|
154
|
+
*/
|
|
155
|
+
export interface ArchitectureComponent {
|
|
156
|
+
/** Component ID */
|
|
157
|
+
id: string;
|
|
158
|
+
/** Component name */
|
|
159
|
+
name: string;
|
|
160
|
+
/** Component type */
|
|
161
|
+
type: 'service' | 'module' | 'library' | 'api' | 'database' | 'ui' | 'infrastructure';
|
|
162
|
+
/** Description */
|
|
163
|
+
description: string;
|
|
164
|
+
/** Responsibilities */
|
|
165
|
+
responsibilities: string[];
|
|
166
|
+
/** Interfaces */
|
|
167
|
+
interfaces: ComponentInterface[];
|
|
168
|
+
/** Dependencies */
|
|
169
|
+
dependencies: string[];
|
|
170
|
+
/** Technology choices */
|
|
171
|
+
technologies: string[];
|
|
172
|
+
/** File/directory path */
|
|
173
|
+
path?: string;
|
|
174
|
+
/** Knowledge graph node */
|
|
175
|
+
kgNodeId?: string;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Component interface
|
|
179
|
+
*/
|
|
180
|
+
export interface ComponentInterface {
|
|
181
|
+
/** Interface name */
|
|
182
|
+
name: string;
|
|
183
|
+
/** Interface type */
|
|
184
|
+
type: 'api' | 'event' | 'message' | 'callback' | 'import';
|
|
185
|
+
/** Interface definition */
|
|
186
|
+
definition: string;
|
|
187
|
+
/** Input/output contracts */
|
|
188
|
+
contracts?: string;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Architecture decision
|
|
192
|
+
*/
|
|
193
|
+
export interface ArchitectureDecision {
|
|
194
|
+
/** Decision ID */
|
|
195
|
+
id: string;
|
|
196
|
+
/** Title */
|
|
197
|
+
title: string;
|
|
198
|
+
/** Context */
|
|
199
|
+
context: string;
|
|
200
|
+
/** Decision made */
|
|
201
|
+
decision: string;
|
|
202
|
+
/** Alternatives considered */
|
|
203
|
+
alternatives: Array<{
|
|
204
|
+
option: string;
|
|
205
|
+
pros: string[];
|
|
206
|
+
cons: string[];
|
|
207
|
+
}>;
|
|
208
|
+
/** Consequences */
|
|
209
|
+
consequences: string[];
|
|
210
|
+
/** Related components */
|
|
211
|
+
relatedComponents: string[];
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Architecture document
|
|
215
|
+
*/
|
|
216
|
+
export interface ArchitectureDocument {
|
|
217
|
+
/** Document ID */
|
|
218
|
+
id: string;
|
|
219
|
+
/** Version */
|
|
220
|
+
version: string;
|
|
221
|
+
/** Created timestamp */
|
|
222
|
+
createdAt: Date;
|
|
223
|
+
/** High-level overview */
|
|
224
|
+
overview: string;
|
|
225
|
+
/** Architecture patterns used */
|
|
226
|
+
patterns: string[];
|
|
227
|
+
/** Components */
|
|
228
|
+
components: ArchitectureComponent[];
|
|
229
|
+
/** Architecture decisions */
|
|
230
|
+
decisions: ArchitectureDecision[];
|
|
231
|
+
/** Data flow description */
|
|
232
|
+
dataFlow: string;
|
|
233
|
+
/** Security considerations */
|
|
234
|
+
securityConsiderations: string[];
|
|
235
|
+
/** Scalability considerations */
|
|
236
|
+
scalabilityConsiderations: string[];
|
|
237
|
+
/** Diagram references */
|
|
238
|
+
diagrams: string[];
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* SPARC task definition
|
|
242
|
+
*/
|
|
243
|
+
export interface SPARCTask {
|
|
244
|
+
/** Task ID */
|
|
245
|
+
id: string;
|
|
246
|
+
/** Task name */
|
|
247
|
+
name: string;
|
|
248
|
+
/** Description */
|
|
249
|
+
description: string;
|
|
250
|
+
/** SPARC phase this task belongs to */
|
|
251
|
+
phase: SPARCPhase;
|
|
252
|
+
/** Task type */
|
|
253
|
+
type: 'research' | 'design' | 'implementation' | 'review' | 'documentation' | 'testing';
|
|
254
|
+
/** Priority */
|
|
255
|
+
priority: 'critical' | 'high' | 'medium' | 'low';
|
|
256
|
+
/** Estimated effort in hours */
|
|
257
|
+
estimatedHours: number;
|
|
258
|
+
/** Task dependencies */
|
|
259
|
+
dependencies: string[];
|
|
260
|
+
/** Can run in parallel with other tasks */
|
|
261
|
+
parallelizable: boolean;
|
|
262
|
+
/** Assigned agent type */
|
|
263
|
+
assignedAgent?: string;
|
|
264
|
+
/** Status */
|
|
265
|
+
status: 'pending' | 'in-progress' | 'completed' | 'blocked' | 'failed';
|
|
266
|
+
/** Context links */
|
|
267
|
+
contextLinks: ContextLink[];
|
|
268
|
+
/** Knowledge graph references */
|
|
269
|
+
kgReferences: KGReference[];
|
|
270
|
+
/** Output artifacts */
|
|
271
|
+
outputs?: TaskOutput[];
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Task output artifact
|
|
275
|
+
*/
|
|
276
|
+
export interface TaskOutput {
|
|
277
|
+
/** Output type */
|
|
278
|
+
type: 'document' | 'code' | 'diagram' | 'data' | 'report';
|
|
279
|
+
/** Output path */
|
|
280
|
+
path: string;
|
|
281
|
+
/** Description */
|
|
282
|
+
description: string;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Context link for task
|
|
286
|
+
*/
|
|
287
|
+
export interface ContextLink {
|
|
288
|
+
/** Link type */
|
|
289
|
+
type: 'document' | 'code' | 'kg-node' | 'vector-result' | 'decision' | 'requirement';
|
|
290
|
+
/** Reference ID or path */
|
|
291
|
+
reference: string;
|
|
292
|
+
/** Description of relevance */
|
|
293
|
+
relevance: string;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Knowledge graph reference
|
|
297
|
+
*/
|
|
298
|
+
export interface KGReference {
|
|
299
|
+
/** Node ID in knowledge graph */
|
|
300
|
+
nodeId: string;
|
|
301
|
+
/** Node type */
|
|
302
|
+
nodeType: string;
|
|
303
|
+
/** Relationship to current entity */
|
|
304
|
+
relationship: string;
|
|
305
|
+
/** Node title/name */
|
|
306
|
+
title: string;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Decision entry in the log
|
|
310
|
+
*/
|
|
311
|
+
export interface DecisionEntry {
|
|
312
|
+
/** Decision ID */
|
|
313
|
+
id: string;
|
|
314
|
+
/** Decision title */
|
|
315
|
+
title: string;
|
|
316
|
+
/** Decision description */
|
|
317
|
+
description: string;
|
|
318
|
+
/** SPARC phase when decision was made */
|
|
319
|
+
phase: SPARCPhase;
|
|
320
|
+
/** Decision status */
|
|
321
|
+
status: DecisionStatus;
|
|
322
|
+
/** Confidence level */
|
|
323
|
+
confidence: ConfidenceLevel;
|
|
324
|
+
/** Rationale for the decision */
|
|
325
|
+
rationale: string;
|
|
326
|
+
/** Alternatives considered */
|
|
327
|
+
alternatives: string[];
|
|
328
|
+
/** Impact assessment */
|
|
329
|
+
impact: string;
|
|
330
|
+
/** Stakeholders involved */
|
|
331
|
+
stakeholders: string[];
|
|
332
|
+
/** Related decisions */
|
|
333
|
+
relatedDecisions: string[];
|
|
334
|
+
/** Consensus information (if applicable) */
|
|
335
|
+
consensus?: ConsensusInfo;
|
|
336
|
+
/** Created timestamp */
|
|
337
|
+
createdAt: Date;
|
|
338
|
+
/** Updated timestamp */
|
|
339
|
+
updatedAt: Date;
|
|
340
|
+
/** Decision maker (agent or human) */
|
|
341
|
+
decidedBy: string;
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Consensus building information
|
|
345
|
+
*/
|
|
346
|
+
export interface ConsensusInfo {
|
|
347
|
+
/** Whether consensus was required */
|
|
348
|
+
required: boolean;
|
|
349
|
+
/** Consensus achieved */
|
|
350
|
+
achieved: boolean;
|
|
351
|
+
/** Participating agents */
|
|
352
|
+
participants: string[];
|
|
353
|
+
/** Votes or opinions */
|
|
354
|
+
votes: Array<{
|
|
355
|
+
agent: string;
|
|
356
|
+
vote: 'agree' | 'disagree' | 'abstain';
|
|
357
|
+
reason: string;
|
|
358
|
+
}>;
|
|
359
|
+
/** Consensus method used */
|
|
360
|
+
method: 'majority' | 'unanimous' | 'weighted' | 'expert';
|
|
361
|
+
/** Final outcome */
|
|
362
|
+
outcome: string;
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Decision log document
|
|
366
|
+
*/
|
|
367
|
+
export interface DecisionLog {
|
|
368
|
+
/** Log ID */
|
|
369
|
+
id: string;
|
|
370
|
+
/** Plan ID this log belongs to */
|
|
371
|
+
planId: string;
|
|
372
|
+
/** All decisions */
|
|
373
|
+
decisions: DecisionEntry[];
|
|
374
|
+
/** Summary statistics */
|
|
375
|
+
statistics: {
|
|
376
|
+
total: number;
|
|
377
|
+
approved: number;
|
|
378
|
+
rejected: number;
|
|
379
|
+
deferred: number;
|
|
380
|
+
highConfidence: number;
|
|
381
|
+
lowConfidence: number;
|
|
382
|
+
consensusRequired: number;
|
|
383
|
+
};
|
|
384
|
+
/** Created timestamp */
|
|
385
|
+
createdAt: Date;
|
|
386
|
+
/** Updated timestamp */
|
|
387
|
+
updatedAt: Date;
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Review finding
|
|
391
|
+
*/
|
|
392
|
+
export interface ReviewFinding {
|
|
393
|
+
/** Finding ID */
|
|
394
|
+
id: string;
|
|
395
|
+
/** Finding type */
|
|
396
|
+
type: 'missing' | 'incomplete' | 'inconsistent' | 'non-compliant' | 'improvement';
|
|
397
|
+
/** Severity */
|
|
398
|
+
severity: FindingSeverity;
|
|
399
|
+
/** Category */
|
|
400
|
+
category: string;
|
|
401
|
+
/** Description */
|
|
402
|
+
description: string;
|
|
403
|
+
/** Location (file, section, line) */
|
|
404
|
+
location: string;
|
|
405
|
+
/** Suggested fix */
|
|
406
|
+
suggestedFix: string;
|
|
407
|
+
/** Related requirements or standards */
|
|
408
|
+
relatedStandards: string[];
|
|
409
|
+
/** Status */
|
|
410
|
+
status: 'open' | 'fixed' | 'wont-fix' | 'deferred';
|
|
411
|
+
/** Resolution notes */
|
|
412
|
+
resolution?: string;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Review pass result
|
|
416
|
+
*/
|
|
417
|
+
export interface ReviewPassResult {
|
|
418
|
+
/** Pass number (1, 2, or 3) */
|
|
419
|
+
passNumber: number;
|
|
420
|
+
/** Review type */
|
|
421
|
+
type: ReviewPassType;
|
|
422
|
+
/** Started timestamp */
|
|
423
|
+
startedAt: Date;
|
|
424
|
+
/** Completed timestamp */
|
|
425
|
+
completedAt: Date;
|
|
426
|
+
/** Findings from this pass */
|
|
427
|
+
findings: ReviewFinding[];
|
|
428
|
+
/** Items reviewed */
|
|
429
|
+
itemsReviewed: number;
|
|
430
|
+
/** Coverage percentage */
|
|
431
|
+
coverage: number;
|
|
432
|
+
/** Pass status */
|
|
433
|
+
status: 'passed' | 'failed' | 'needs-review';
|
|
434
|
+
/** Reviewer agent */
|
|
435
|
+
reviewer: string;
|
|
436
|
+
/** Notes */
|
|
437
|
+
notes: string;
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Complete review result
|
|
441
|
+
*/
|
|
442
|
+
export interface ReviewResult {
|
|
443
|
+
/** Review ID */
|
|
444
|
+
id: string;
|
|
445
|
+
/** Plan ID being reviewed */
|
|
446
|
+
planId: string;
|
|
447
|
+
/** All review passes */
|
|
448
|
+
passes: ReviewPassResult[];
|
|
449
|
+
/** Total findings */
|
|
450
|
+
totalFindings: number;
|
|
451
|
+
/** Critical findings */
|
|
452
|
+
criticalFindings: number;
|
|
453
|
+
/** All findings addressed */
|
|
454
|
+
allFindingsAddressed: boolean;
|
|
455
|
+
/** Overall status */
|
|
456
|
+
overallStatus: 'approved' | 'rejected' | 'needs-work';
|
|
457
|
+
/** Recommendations */
|
|
458
|
+
recommendations: string[];
|
|
459
|
+
/** Started timestamp */
|
|
460
|
+
startedAt: Date;
|
|
461
|
+
/** Completed timestamp */
|
|
462
|
+
completedAt: Date;
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* SPARC Plan status
|
|
466
|
+
*/
|
|
467
|
+
export type SPARCPlanStatus = 'draft' | 'researching' | 'planning' | 'reviewing' | 'approved' | 'in-progress' | 'completed' | 'failed';
|
|
468
|
+
/**
|
|
469
|
+
* Existing code analysis
|
|
470
|
+
*/
|
|
471
|
+
export interface ExistingCodeAnalysis {
|
|
472
|
+
/** Has existing src directory */
|
|
473
|
+
hasSrcDirectory: boolean;
|
|
474
|
+
/** Source directory path */
|
|
475
|
+
srcPath?: string;
|
|
476
|
+
/** File count */
|
|
477
|
+
fileCount: number;
|
|
478
|
+
/** Language breakdown */
|
|
479
|
+
languages: Record<string, number>;
|
|
480
|
+
/** Key files identified */
|
|
481
|
+
keyFiles: Array<{
|
|
482
|
+
path: string;
|
|
483
|
+
type: string;
|
|
484
|
+
description: string;
|
|
485
|
+
kgNodeId?: string;
|
|
486
|
+
}>;
|
|
487
|
+
/** Patterns identified */
|
|
488
|
+
patterns: string[];
|
|
489
|
+
/** Dependencies */
|
|
490
|
+
dependencies: string[];
|
|
491
|
+
/** Entry points */
|
|
492
|
+
entryPoints: string[];
|
|
493
|
+
/** Test coverage info */
|
|
494
|
+
testCoverage?: {
|
|
495
|
+
hasTests: boolean;
|
|
496
|
+
testFramework?: string;
|
|
497
|
+
estimatedCoverage?: number;
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Research finding from agents
|
|
502
|
+
*/
|
|
503
|
+
export interface ResearchFinding {
|
|
504
|
+
/** Finding ID */
|
|
505
|
+
id: string;
|
|
506
|
+
/** Agent that produced the finding */
|
|
507
|
+
agent: string;
|
|
508
|
+
/** Topic area */
|
|
509
|
+
topic: string;
|
|
510
|
+
/** Finding summary */
|
|
511
|
+
summary: string;
|
|
512
|
+
/** Detailed content */
|
|
513
|
+
details: string;
|
|
514
|
+
/** Confidence level */
|
|
515
|
+
confidence: ConfidenceLevel;
|
|
516
|
+
/** Evidence/sources */
|
|
517
|
+
evidence: string[];
|
|
518
|
+
/** Related findings */
|
|
519
|
+
relatedFindings: string[];
|
|
520
|
+
/** Knowledge graph references */
|
|
521
|
+
kgReferences: KGReference[];
|
|
522
|
+
/** Vector search results used */
|
|
523
|
+
vectorResults?: string[];
|
|
524
|
+
/** Timestamp */
|
|
525
|
+
timestamp: Date;
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* Complete SPARC Plan
|
|
529
|
+
*/
|
|
530
|
+
export interface SPARCPlan {
|
|
531
|
+
/** Plan ID */
|
|
532
|
+
id: string;
|
|
533
|
+
/** Plan name */
|
|
534
|
+
name: string;
|
|
535
|
+
/** Plan description */
|
|
536
|
+
description: string;
|
|
537
|
+
/** Current status */
|
|
538
|
+
status: SPARCPlanStatus;
|
|
539
|
+
/** Current phase */
|
|
540
|
+
currentPhase: SPARCPhase;
|
|
541
|
+
/** Project root path */
|
|
542
|
+
projectRoot: string;
|
|
543
|
+
/** Output directory for plan artifacts */
|
|
544
|
+
outputDir: string;
|
|
545
|
+
/** Specification document */
|
|
546
|
+
specification?: SpecificationDocument;
|
|
547
|
+
/** Algorithm designs */
|
|
548
|
+
algorithms?: AlgorithmDesign[];
|
|
549
|
+
/** Architecture document */
|
|
550
|
+
architecture?: ArchitectureDocument;
|
|
551
|
+
/** All tasks in the plan */
|
|
552
|
+
tasks: SPARCTask[];
|
|
553
|
+
/** Parallel task groups */
|
|
554
|
+
parallelGroups: string[][];
|
|
555
|
+
/** Critical path tasks */
|
|
556
|
+
criticalPath: string[];
|
|
557
|
+
/** Task execution order */
|
|
558
|
+
executionOrder: string[];
|
|
559
|
+
/** Research findings */
|
|
560
|
+
researchFindings: ResearchFinding[];
|
|
561
|
+
/** Existing code analysis */
|
|
562
|
+
existingCode?: ExistingCodeAnalysis;
|
|
563
|
+
/** Decision log */
|
|
564
|
+
decisionLog: DecisionLog;
|
|
565
|
+
/** Review results */
|
|
566
|
+
reviewResult?: ReviewResult;
|
|
567
|
+
/** Created timestamp */
|
|
568
|
+
createdAt: Date;
|
|
569
|
+
/** Updated timestamp */
|
|
570
|
+
updatedAt: Date;
|
|
571
|
+
/** Plan version */
|
|
572
|
+
version: string;
|
|
573
|
+
/** Author/creator */
|
|
574
|
+
author: string;
|
|
575
|
+
/** Statistics */
|
|
576
|
+
statistics: {
|
|
577
|
+
totalTasks: number;
|
|
578
|
+
completedTasks: number;
|
|
579
|
+
parallelizableTasks: number;
|
|
580
|
+
estimatedHours: number;
|
|
581
|
+
researchFindings: number;
|
|
582
|
+
decisions: number;
|
|
583
|
+
kgNodes: number;
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* Agent spawn request
|
|
588
|
+
*/
|
|
589
|
+
export interface AgentSpawnRequest {
|
|
590
|
+
/** Agent type */
|
|
591
|
+
type: string;
|
|
592
|
+
/** Agent name */
|
|
593
|
+
name: string;
|
|
594
|
+
/** Task to perform */
|
|
595
|
+
task: string;
|
|
596
|
+
/** Task context */
|
|
597
|
+
context: ContextLink[];
|
|
598
|
+
/** Expected outputs */
|
|
599
|
+
expectedOutputs: string[];
|
|
600
|
+
/** Timeout in ms */
|
|
601
|
+
timeout: number;
|
|
602
|
+
/** Priority */
|
|
603
|
+
priority: 'high' | 'normal' | 'low';
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* Agent result
|
|
607
|
+
*/
|
|
608
|
+
export interface AgentExecutionResult {
|
|
609
|
+
/** Agent name */
|
|
610
|
+
agent: string;
|
|
611
|
+
/** Success status */
|
|
612
|
+
success: boolean;
|
|
613
|
+
/** Result data */
|
|
614
|
+
data?: unknown;
|
|
615
|
+
/** Findings produced */
|
|
616
|
+
findings?: ResearchFinding[];
|
|
617
|
+
/** Errors */
|
|
618
|
+
errors?: string[];
|
|
619
|
+
/** Duration in ms */
|
|
620
|
+
duration: number;
|
|
621
|
+
/** Tokens used */
|
|
622
|
+
tokensUsed?: number;
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* Consensus request
|
|
626
|
+
*/
|
|
627
|
+
export interface ConsensusRequest {
|
|
628
|
+
/** Topic requiring consensus */
|
|
629
|
+
topic: string;
|
|
630
|
+
/** Options to choose from */
|
|
631
|
+
options: Array<{
|
|
632
|
+
id: string;
|
|
633
|
+
description: string;
|
|
634
|
+
pros: string[];
|
|
635
|
+
cons: string[];
|
|
636
|
+
}>;
|
|
637
|
+
/** Participating agents */
|
|
638
|
+
participants: string[];
|
|
639
|
+
/** Consensus threshold (0-1) */
|
|
640
|
+
threshold: number;
|
|
641
|
+
/** Timeout in ms */
|
|
642
|
+
timeout: number;
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* Consensus result
|
|
646
|
+
*/
|
|
647
|
+
export interface ConsensusResult {
|
|
648
|
+
/** Consensus achieved */
|
|
649
|
+
achieved: boolean;
|
|
650
|
+
/** Winning option (if achieved) */
|
|
651
|
+
selectedOption?: string;
|
|
652
|
+
/** Votes from each agent */
|
|
653
|
+
votes: Array<{
|
|
654
|
+
agent: string;
|
|
655
|
+
option: string;
|
|
656
|
+
confidence: number;
|
|
657
|
+
reasoning: string;
|
|
658
|
+
}>;
|
|
659
|
+
/** Final rationale */
|
|
660
|
+
rationale: string;
|
|
661
|
+
/** Dissenting opinions */
|
|
662
|
+
dissent?: string[];
|
|
663
|
+
}
|
|
664
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/sparc/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,eAAe,GACf,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,YAAY,CAAC;AAEjB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,WAAW,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC;AAE9F;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG,MAAM,GAAG,YAAY,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,YAAY,CAAC;AAE5E;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG,UAAU,GAAG,UAAU,CAAC;AAMvE;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,4B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B,4BAA4B;IAC5B,KAAK,EAAE,KAAK,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC,CAAC;IACH,sBAAsB;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weavelogic/knowledge-graph-agent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Knowledge graph agent for Claude Code - generates knowledge graphs, initializes docs, and integrates with claude-flow",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|