@nova286/nova-workflow 2.1.1 → 2.2.2
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 +113 -36
- package/dist/cli/commands/init.js +3 -1
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/index.js +6 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli-core/__tests__/context-generator.test.js +31 -0
- package/dist/cli-core/__tests__/context-generator.test.js.map +1 -1
- package/dist/cli-core/__tests__/dispatcher.test.js +22 -0
- package/dist/cli-core/__tests__/dispatcher.test.js.map +1 -1
- package/dist/cli-core/__tests__/guard.test.js +41 -1
- package/dist/cli-core/__tests__/guard.test.js.map +1 -1
- package/dist/cli-core/__tests__/init-manager.test.js +77 -20
- package/dist/cli-core/__tests__/init-manager.test.js.map +1 -1
- package/dist/cli-core/__tests__/pipeline.test.js +22 -0
- package/dist/cli-core/__tests__/pipeline.test.js.map +1 -1
- package/dist/cli-core/adapters/claude-code.d.ts +5 -3
- package/dist/cli-core/adapters/claude-code.js +90 -42
- package/dist/cli-core/adapters/claude-code.js.map +1 -1
- package/dist/cli-core/adapters/codex.js +25 -19
- package/dist/cli-core/adapters/codex.js.map +1 -1
- package/dist/cli-core/adapters/hermes-agent.js +25 -19
- package/dist/cli-core/adapters/hermes-agent.js.map +1 -1
- package/dist/cli-core/adapters/openclaw.js +25 -19
- package/dist/cli-core/adapters/openclaw.js.map +1 -1
- package/dist/cli-core/adapters/opencode.js +25 -19
- package/dist/cli-core/adapters/opencode.js.map +1 -1
- package/dist/cli-core/context-generator.js +44 -2
- package/dist/cli-core/context-generator.js.map +1 -1
- package/dist/cli-core/guard.js +4 -0
- package/dist/cli-core/guard.js.map +1 -1
- package/dist/cli-core/init-manager.d.ts +3 -0
- package/dist/cli-core/init-manager.js +43 -4
- package/dist/cli-core/init-manager.js.map +1 -1
- package/dist/cli-core/quality-check.d.ts +1 -0
- package/dist/cli-core/quality-check.js +23 -0
- package/dist/cli-core/quality-check.js.map +1 -1
- package/dist/cli-core/types.d.ts +46 -1
- package/package.json +1 -1
package/dist/cli-core/types.d.ts
CHANGED
|
@@ -7,6 +7,26 @@ export declare enum AgentType {
|
|
|
7
7
|
SECURITY_REVIEWER = "security_reviewer"
|
|
8
8
|
}
|
|
9
9
|
export type TaskStatus = 'pending' | 'in-progress' | 'done' | 'failed' | 'skipped';
|
|
10
|
+
export type IntegrationMode = 'native' | 'compatible' | 'disabled';
|
|
11
|
+
export type ImplementationMethod = 'tdd' | 'implementation' | 'refactor' | 'docs' | 'migration';
|
|
12
|
+
export interface MethodologyIntegrations {
|
|
13
|
+
openspec: {
|
|
14
|
+
mode: IntegrationMode;
|
|
15
|
+
};
|
|
16
|
+
superpowers: {
|
|
17
|
+
mode: IntegrationMode;
|
|
18
|
+
};
|
|
19
|
+
ecc: {
|
|
20
|
+
mode: IntegrationMode;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface WorkflowArtifacts {
|
|
24
|
+
openspecChange: string;
|
|
25
|
+
proposal: string;
|
|
26
|
+
specDelta: string;
|
|
27
|
+
implementationPlan: string;
|
|
28
|
+
verificationReport: string;
|
|
29
|
+
}
|
|
10
30
|
export interface TaskContext {
|
|
11
31
|
taskId: string;
|
|
12
32
|
parentTaskId?: string;
|
|
@@ -45,6 +65,25 @@ export interface TaskContext {
|
|
|
45
65
|
codeStyle?: string;
|
|
46
66
|
};
|
|
47
67
|
};
|
|
68
|
+
change: {
|
|
69
|
+
activeChange: string;
|
|
70
|
+
artifacts: WorkflowArtifacts;
|
|
71
|
+
};
|
|
72
|
+
methodology: MethodologyIntegrations;
|
|
73
|
+
implementation: {
|
|
74
|
+
method: ImplementationMethod;
|
|
75
|
+
specRefs: string[];
|
|
76
|
+
acceptanceRefs: string[];
|
|
77
|
+
};
|
|
78
|
+
verification: {
|
|
79
|
+
commands: string[];
|
|
80
|
+
};
|
|
81
|
+
evidence: {
|
|
82
|
+
required: string[];
|
|
83
|
+
tests?: string[];
|
|
84
|
+
filesChanged?: string[];
|
|
85
|
+
traceIds?: string[];
|
|
86
|
+
};
|
|
48
87
|
acceptanceCriteria: string[];
|
|
49
88
|
guardConditions: {
|
|
50
89
|
requireReview: boolean;
|
|
@@ -68,6 +107,9 @@ export interface NovaState {
|
|
|
68
107
|
project: string;
|
|
69
108
|
environment: string[];
|
|
70
109
|
currentPhase: string;
|
|
110
|
+
activeChange?: string;
|
|
111
|
+
integrations?: MethodologyIntegrations;
|
|
112
|
+
artifacts?: WorkflowArtifacts;
|
|
71
113
|
phases: Record<string, any>;
|
|
72
114
|
metadata: {
|
|
73
115
|
stateVersion: number;
|
|
@@ -108,9 +150,12 @@ export interface ErrorDetail {
|
|
|
108
150
|
message: string;
|
|
109
151
|
code?: string;
|
|
110
152
|
}
|
|
153
|
+
export interface AdapterSetupOptions {
|
|
154
|
+
skillsDir?: 'project' | 'user';
|
|
155
|
+
}
|
|
111
156
|
export interface EnvironmentAdapter {
|
|
112
157
|
name: string;
|
|
113
|
-
setup(cwd: string): Promise<void>;
|
|
158
|
+
setup(cwd: string, options?: AdapterSetupOptions): Promise<void>;
|
|
114
159
|
}
|
|
115
160
|
export interface PipelineTask {
|
|
116
161
|
id: string;
|