ai-sdlc 0.2.0-alpha.6 → 0.2.0-alpha.60
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/README.md +53 -1058
- package/dist/agents/implementation.d.ts +36 -1
- package/dist/agents/implementation.d.ts.map +1 -1
- package/dist/agents/implementation.js +259 -30
- package/dist/agents/implementation.js.map +1 -1
- package/dist/agents/index.d.ts +2 -0
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +2 -0
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/orchestrator.d.ts +61 -0
- package/dist/agents/orchestrator.d.ts.map +1 -0
- package/dist/agents/orchestrator.js +443 -0
- package/dist/agents/orchestrator.js.map +1 -0
- package/dist/agents/planning.d.ts +1 -1
- package/dist/agents/planning.d.ts.map +1 -1
- package/dist/agents/planning.js +55 -4
- package/dist/agents/planning.js.map +1 -1
- package/dist/agents/refinement.d.ts.map +1 -1
- package/dist/agents/refinement.js +22 -3
- package/dist/agents/refinement.js.map +1 -1
- package/dist/agents/research.d.ts +85 -1
- package/dist/agents/research.d.ts.map +1 -1
- package/dist/agents/research.js +506 -16
- package/dist/agents/research.js.map +1 -1
- package/dist/agents/review.d.ts +103 -2
- package/dist/agents/review.d.ts.map +1 -1
- package/dist/agents/review.js +777 -93
- package/dist/agents/review.js.map +1 -1
- package/dist/agents/rework.d.ts.map +1 -1
- package/dist/agents/rework.js +25 -4
- package/dist/agents/rework.js.map +1 -1
- package/dist/agents/single-task.d.ts +41 -0
- package/dist/agents/single-task.d.ts.map +1 -0
- package/dist/agents/single-task.js +357 -0
- package/dist/agents/single-task.js.map +1 -0
- package/dist/agents/state-assessor.d.ts +3 -3
- package/dist/agents/state-assessor.d.ts.map +1 -1
- package/dist/agents/state-assessor.js +6 -6
- package/dist/agents/state-assessor.js.map +1 -1
- package/dist/agents/test-pattern-detector.d.ts +49 -0
- package/dist/agents/test-pattern-detector.d.ts.map +1 -0
- package/dist/agents/test-pattern-detector.js +273 -0
- package/dist/agents/test-pattern-detector.js.map +1 -0
- package/dist/agents/verification.d.ts +11 -0
- package/dist/agents/verification.d.ts.map +1 -1
- package/dist/agents/verification.js +99 -12
- package/dist/agents/verification.js.map +1 -1
- package/dist/cli/commands/migrate.js +1 -1
- package/dist/cli/commands/migrate.js.map +1 -1
- package/dist/cli/commands.d.ts +66 -3
- package/dist/cli/commands.d.ts.map +1 -1
- package/dist/cli/commands.js +1548 -198
- package/dist/cli/commands.js.map +1 -1
- package/dist/cli/daemon.d.ts.map +1 -1
- package/dist/cli/daemon.js +25 -3
- package/dist/cli/daemon.js.map +1 -1
- package/dist/cli/runner.d.ts.map +1 -1
- package/dist/cli/runner.js +35 -12
- package/dist/cli/runner.js.map +1 -1
- package/dist/core/auth.d.ts +43 -0
- package/dist/core/auth.d.ts.map +1 -1
- package/dist/core/auth.js +105 -1
- package/dist/core/auth.js.map +1 -1
- package/dist/core/client.d.ts +25 -1
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +247 -7
- package/dist/core/client.js.map +1 -1
- package/dist/core/config.d.ts +32 -1
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +146 -3
- package/dist/core/config.js.map +1 -1
- package/dist/core/conflict-detector.d.ts +108 -0
- package/dist/core/conflict-detector.d.ts.map +1 -0
- package/dist/core/conflict-detector.js +413 -0
- package/dist/core/conflict-detector.js.map +1 -0
- package/dist/core/git-utils.d.ts +28 -0
- package/dist/core/git-utils.d.ts.map +1 -0
- package/dist/core/git-utils.js +146 -0
- package/dist/core/git-utils.js.map +1 -0
- package/dist/core/index.d.ts +19 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +19 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/kanban.d.ts +1 -1
- package/dist/core/kanban.d.ts.map +1 -1
- package/dist/core/kanban.js +3 -3
- package/dist/core/kanban.js.map +1 -1
- package/dist/core/llm-utils.d.ts +103 -0
- package/dist/core/llm-utils.d.ts.map +1 -0
- package/dist/core/llm-utils.js +368 -0
- package/dist/core/llm-utils.js.map +1 -0
- package/dist/core/logger.d.ts +92 -0
- package/dist/core/logger.d.ts.map +1 -0
- package/dist/core/logger.js +221 -0
- package/dist/core/logger.js.map +1 -0
- package/dist/core/process-manager.d.ts +15 -0
- package/dist/core/process-manager.d.ts.map +1 -0
- package/dist/core/process-manager.js +132 -0
- package/dist/core/process-manager.js.map +1 -0
- package/dist/core/story-logger.d.ts +102 -0
- package/dist/core/story-logger.d.ts.map +1 -0
- package/dist/core/story-logger.js +265 -0
- package/dist/core/story-logger.js.map +1 -0
- package/dist/core/story.d.ts +113 -20
- package/dist/core/story.d.ts.map +1 -1
- package/dist/core/story.js +328 -40
- package/dist/core/story.js.map +1 -1
- package/dist/core/task-parser.d.ts +59 -0
- package/dist/core/task-parser.d.ts.map +1 -0
- package/dist/core/task-parser.js +235 -0
- package/dist/core/task-parser.js.map +1 -0
- package/dist/core/task-progress.d.ts +92 -0
- package/dist/core/task-progress.d.ts.map +1 -0
- package/dist/core/task-progress.js +280 -0
- package/dist/core/task-progress.js.map +1 -0
- package/dist/core/workflow-state.d.ts +45 -6
- package/dist/core/workflow-state.d.ts.map +1 -1
- package/dist/core/workflow-state.js +201 -12
- package/dist/core/workflow-state.js.map +1 -1
- package/dist/core/worktree.d.ts +186 -0
- package/dist/core/worktree.d.ts.map +1 -0
- package/dist/core/worktree.js +554 -0
- package/dist/core/worktree.js.map +1 -0
- package/dist/index.js +145 -5
- package/dist/index.js.map +1 -1
- package/dist/services/error-classifier.d.ts +119 -0
- package/dist/services/error-classifier.d.ts.map +1 -0
- package/dist/services/error-classifier.js +182 -0
- package/dist/services/error-classifier.js.map +1 -0
- package/dist/types/index.d.ts +381 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +5 -2
- package/templates/story.md +5 -0
package/dist/agents/review.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentResult, ReviewResult, ReviewIssue, TDDTestCycle } from '../types/index.js';
|
|
1
|
+
import { Story, AgentResult, ReviewResult, ReviewIssue, TDDTestCycle, ContentType } from '../types/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* Validate TDD cycles for completeness
|
|
4
4
|
*
|
|
@@ -23,6 +23,69 @@ export declare function generateTDDIssues(violations: string[]): ReviewIssue[];
|
|
|
23
23
|
* Progress callback for verification steps
|
|
24
24
|
*/
|
|
25
25
|
export type VerificationProgressCallback = (phase: 'build' | 'test', status: 'starting' | 'running' | 'passed' | 'failed', message?: string) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Derive individual perspective pass/fail status from issues
|
|
28
|
+
*
|
|
29
|
+
* For backward compatibility with ReviewAttempt structure, determines whether
|
|
30
|
+
* each perspective (code, security, po) would pass based on issues flagged
|
|
31
|
+
* for that perspective.
|
|
32
|
+
*
|
|
33
|
+
* A perspective fails if it has any blocker or critical issues.
|
|
34
|
+
*
|
|
35
|
+
* @param issues - Array of review issues with perspectives field
|
|
36
|
+
* @returns Object with pass/fail status for each perspective
|
|
37
|
+
*/
|
|
38
|
+
export declare function deriveIndividualPassFailFromPerspectives(issues: ReviewIssue[]): {
|
|
39
|
+
codeReviewPassed: boolean;
|
|
40
|
+
securityReviewPassed: boolean;
|
|
41
|
+
poReviewPassed: boolean;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Get source code changes from git diff
|
|
45
|
+
*
|
|
46
|
+
* Returns list of source files that have been modified (excludes tests and story files).
|
|
47
|
+
* Uses spawnSync for security (prevents command injection).
|
|
48
|
+
*
|
|
49
|
+
* @param workingDir - Working directory to run git diff in
|
|
50
|
+
* @returns Array of source file paths that have changed, or ['unknown'] if git fails
|
|
51
|
+
*/
|
|
52
|
+
export declare function getSourceCodeChanges(workingDir: string): string[];
|
|
53
|
+
/**
|
|
54
|
+
* Get configuration file changes from git diff
|
|
55
|
+
*
|
|
56
|
+
* Detects changes to configuration files including:
|
|
57
|
+
* - .claude/ directory (Agent SDK skills, CLAUDE.md)
|
|
58
|
+
* - .github/ directory (workflows, actions, issue templates)
|
|
59
|
+
* - Root config files (tsconfig.json, package.json, .gitignore, vitest.config.ts, etc.)
|
|
60
|
+
*
|
|
61
|
+
* Uses spawnSync for security (prevents command injection).
|
|
62
|
+
*
|
|
63
|
+
* @param workingDir - Working directory to run git diff in
|
|
64
|
+
* @returns Array of configuration file paths that have changed, or ['unknown'] if git fails
|
|
65
|
+
*/
|
|
66
|
+
export declare function getConfigurationChanges(workingDir: string): string[];
|
|
67
|
+
/**
|
|
68
|
+
* Determine the effective content type for validation
|
|
69
|
+
*
|
|
70
|
+
* Resolves the final content type based on story frontmatter fields:
|
|
71
|
+
* 1. If requires_source_changes === false, treat as 'configuration'
|
|
72
|
+
* 2. If requires_source_changes === true, treat as 'code'
|
|
73
|
+
* 3. Otherwise, use content_type field (default: 'code' for backward compatibility)
|
|
74
|
+
*
|
|
75
|
+
* @param story - Story with frontmatter to analyze
|
|
76
|
+
* @returns The effective content type to use for validation
|
|
77
|
+
*/
|
|
78
|
+
export declare function determineEffectiveContentType(story: Story): ContentType;
|
|
79
|
+
/**
|
|
80
|
+
* Check if test files exist in git diff
|
|
81
|
+
*
|
|
82
|
+
* Returns true if any test files have been modified/added, false otherwise.
|
|
83
|
+
* Uses spawnSync for security (prevents command injection).
|
|
84
|
+
*
|
|
85
|
+
* @param workingDir - Working directory to run git diff in
|
|
86
|
+
* @returns True if test files exist in changes, false otherwise
|
|
87
|
+
*/
|
|
88
|
+
export declare function hasTestFiles(workingDir: string): boolean;
|
|
26
89
|
/**
|
|
27
90
|
* Generate executive summary from review issues (1-3 sentences)
|
|
28
91
|
*
|
|
@@ -49,8 +112,46 @@ export interface ReviewAgentOptions {
|
|
|
49
112
|
* Now returns structured ReviewResult with pass/fail and issues.
|
|
50
113
|
*/
|
|
51
114
|
export declare function runReviewAgent(storyPath: string, sdlcRoot: string, options?: ReviewAgentOptions): Promise<ReviewResult>;
|
|
115
|
+
/**
|
|
116
|
+
* Parse story content into sections by level-2 headers (##)
|
|
117
|
+
* Returns array of {title, content} objects
|
|
118
|
+
*/
|
|
119
|
+
export declare function parseContentSections(content: string): Array<{
|
|
120
|
+
title: string;
|
|
121
|
+
content: string;
|
|
122
|
+
}>;
|
|
123
|
+
/**
|
|
124
|
+
* Remove unfinished checkboxes from content (per CLAUDE.md requirement)
|
|
125
|
+
* Removes lines with `- [ ]` or `* [ ]` patterns
|
|
126
|
+
* Preserves completed checkboxes `- [x]` and `- [X]`
|
|
127
|
+
*/
|
|
128
|
+
export declare function removeUnfinishedCheckboxes(content: string): string;
|
|
129
|
+
/**
|
|
130
|
+
* Generate GitHub blob URL for story file
|
|
131
|
+
* Parses remote URL and constructs link to story in repository
|
|
132
|
+
*/
|
|
133
|
+
export declare function getStoryFileURL(storyPath: string, branch: string, workingDir: string): string;
|
|
134
|
+
/**
|
|
135
|
+
* Format PR description from story sections
|
|
136
|
+
* Includes: Story ID, User Story, Summary, Acceptance Criteria, Implementation Summary
|
|
137
|
+
* Removes unfinished checkboxes from all sections
|
|
138
|
+
*/
|
|
139
|
+
export declare function formatPRDescription(story: Story, storyFileUrl: string): string;
|
|
140
|
+
/**
|
|
141
|
+
* Truncate PR body to respect GitHub's 65K character limit
|
|
142
|
+
* Truncates Implementation Summary first (most verbose section)
|
|
143
|
+
* Adds clear truncation indicator with story link
|
|
144
|
+
*/
|
|
145
|
+
export declare function truncatePRBody(body: string, maxLength?: number): string;
|
|
146
|
+
/**
|
|
147
|
+
* Options for creating a pull request
|
|
148
|
+
*/
|
|
149
|
+
export interface CreatePROptions {
|
|
150
|
+
/** Create as draft PR (if not specified, uses config github.createDraftPRs) */
|
|
151
|
+
draft?: boolean;
|
|
152
|
+
}
|
|
52
153
|
/**
|
|
53
154
|
* Create a pull request for the completed story
|
|
54
155
|
*/
|
|
55
|
-
export declare function createPullRequest(storyPath: string, sdlcRoot: string): Promise<AgentResult>;
|
|
156
|
+
export declare function createPullRequest(storyPath: string, sdlcRoot: string, options?: CreatePROptions): Promise<AgentResult>;
|
|
56
157
|
//# sourceMappingURL=review.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../src/agents/review.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../src/agents/review.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAA8E,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAqHzL;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,EAAE,CA0BlE;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,CAOrE;AAiBD;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;AAyZrJ;;;;;;;;;;;GAWG;AACH,wBAAgB,wCAAwC,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG;IAC/E,gBAAgB,EAAE,OAAO,CAAC;IAC1B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,cAAc,EAAE,OAAO,CAAC;CACzB,CAsBA;AAsED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CA2BjE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAqDpE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,KAA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