intention-coding 0.3.5 → 0.3.6
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 +1 -1
- package/dist/index.cjs +6458 -0
- package/dist/index.d.ts +1 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/services/bug-fix-agent/index.d.ts +10 -24
- package/dist/services/change-summarizer/index.d.ts +10 -24
- package/dist/services/code-generator/index.d.ts +18 -24
- package/dist/services/image-analysis/index.d.ts +36 -56
- package/dist/services/image-converter/index.d.ts +24 -38
- package/dist/services/integrated-generator/index.d.ts +28 -66
- package/dist/services/pdf2md/index.d.ts +4 -48
- package/dist/services/project-template/index.d.ts +2 -18
- package/dist/services/requirement-analyzer/index.d.ts +22 -80
- package/dist/services/world2md/index.d.ts +14 -50
- package/dist/types/index.d.ts +8 -0
- package/package.json +46 -28
- package/dist/cli/analyze-image.d.ts +0 -2
- package/dist/index.js +0 -11527
- package/dist/services/api-test/add-tasks-to-plan.d.ts +0 -97
- package/dist/services/api-test/api-test.d.ts +0 -86
- package/dist/services/api-test/batch-update-task-summaries.d.ts +0 -61
- package/dist/services/api-test/execute-test-plan.d.ts +0 -21
- package/dist/services/api-test/export-test-results.d.ts +0 -21
- package/dist/services/api-test/get-test-plans.d.ts +0 -21
- package/dist/services/api-test/index.d.ts +0 -285
- package/dist/services/api-test/test-plan.d.ts +0 -119
- package/dist/services/api-test/update-task.d.ts +0 -147
- package/dist/services/claude-code/index.d.ts +0 -200
- package/dist/utils/requirements-utils.d.ts +0 -38
- package/dist/utils/storage.d.ts +0 -14
- /package/dist/{config.d.ts → utils/config.d.ts} +0 -0
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const TestTaskSchema: z.ZodObject<{
|
|
3
|
-
url: z.ZodString;
|
|
4
|
-
method: z.ZodDefault<z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>>;
|
|
5
|
-
query: z.ZodOptional<z.ZodString>;
|
|
6
|
-
headers: z.ZodOptional<z.ZodString>;
|
|
7
|
-
body: z.ZodOptional<z.ZodString>;
|
|
8
|
-
hopeRes: z.ZodOptional<z.ZodString>;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
method: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
|
|
11
|
-
url: string;
|
|
12
|
-
query?: string | undefined;
|
|
13
|
-
headers?: string | undefined;
|
|
14
|
-
body?: string | undefined;
|
|
15
|
-
hopeRes?: string | undefined;
|
|
16
|
-
}, {
|
|
17
|
-
url: string;
|
|
18
|
-
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
19
|
-
query?: string | undefined;
|
|
20
|
-
headers?: string | undefined;
|
|
21
|
-
body?: string | undefined;
|
|
22
|
-
hopeRes?: string | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
export declare const CreateTestPlanParams: z.ZodObject<{
|
|
25
|
-
planName: z.ZodString;
|
|
26
|
-
tasks: z.ZodArray<z.ZodObject<{
|
|
27
|
-
url: z.ZodString;
|
|
28
|
-
method: z.ZodDefault<z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>>;
|
|
29
|
-
query: z.ZodOptional<z.ZodString>;
|
|
30
|
-
headers: z.ZodOptional<z.ZodString>;
|
|
31
|
-
body: z.ZodOptional<z.ZodString>;
|
|
32
|
-
hopeRes: z.ZodOptional<z.ZodString>;
|
|
33
|
-
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
method: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
|
|
35
|
-
url: string;
|
|
36
|
-
query?: string | undefined;
|
|
37
|
-
headers?: string | undefined;
|
|
38
|
-
body?: string | undefined;
|
|
39
|
-
hopeRes?: string | undefined;
|
|
40
|
-
}, {
|
|
41
|
-
url: string;
|
|
42
|
-
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
43
|
-
query?: string | undefined;
|
|
44
|
-
headers?: string | undefined;
|
|
45
|
-
body?: string | undefined;
|
|
46
|
-
hopeRes?: string | undefined;
|
|
47
|
-
}>, "many">;
|
|
48
|
-
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
planName: string;
|
|
50
|
-
tasks: {
|
|
51
|
-
method: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
|
|
52
|
-
url: string;
|
|
53
|
-
query?: string | undefined;
|
|
54
|
-
headers?: string | undefined;
|
|
55
|
-
body?: string | undefined;
|
|
56
|
-
hopeRes?: string | undefined;
|
|
57
|
-
}[];
|
|
58
|
-
}, {
|
|
59
|
-
planName: string;
|
|
60
|
-
tasks: {
|
|
61
|
-
url: string;
|
|
62
|
-
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
63
|
-
query?: string | undefined;
|
|
64
|
-
headers?: string | undefined;
|
|
65
|
-
body?: string | undefined;
|
|
66
|
-
hopeRes?: string | undefined;
|
|
67
|
-
}[];
|
|
68
|
-
}>;
|
|
69
|
-
export type CreateTestPlanRequest = z.infer<typeof CreateTestPlanParams>;
|
|
70
|
-
export declare const createTestPlanTool: {
|
|
71
|
-
name: string;
|
|
72
|
-
description: string;
|
|
73
|
-
parameters: z.ZodObject<{
|
|
74
|
-
planName: z.ZodString;
|
|
75
|
-
tasks: z.ZodArray<z.ZodObject<{
|
|
76
|
-
url: z.ZodString;
|
|
77
|
-
method: z.ZodDefault<z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>>;
|
|
78
|
-
query: z.ZodOptional<z.ZodString>;
|
|
79
|
-
headers: z.ZodOptional<z.ZodString>;
|
|
80
|
-
body: z.ZodOptional<z.ZodString>;
|
|
81
|
-
hopeRes: z.ZodOptional<z.ZodString>;
|
|
82
|
-
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
method: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
|
|
84
|
-
url: string;
|
|
85
|
-
query?: string | undefined;
|
|
86
|
-
headers?: string | undefined;
|
|
87
|
-
body?: string | undefined;
|
|
88
|
-
hopeRes?: string | undefined;
|
|
89
|
-
}, {
|
|
90
|
-
url: string;
|
|
91
|
-
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
92
|
-
query?: string | undefined;
|
|
93
|
-
headers?: string | undefined;
|
|
94
|
-
body?: string | undefined;
|
|
95
|
-
hopeRes?: string | undefined;
|
|
96
|
-
}>, "many">;
|
|
97
|
-
}, "strip", z.ZodTypeAny, {
|
|
98
|
-
planName: string;
|
|
99
|
-
tasks: {
|
|
100
|
-
method: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
|
|
101
|
-
url: string;
|
|
102
|
-
query?: string | undefined;
|
|
103
|
-
headers?: string | undefined;
|
|
104
|
-
body?: string | undefined;
|
|
105
|
-
hopeRes?: string | undefined;
|
|
106
|
-
}[];
|
|
107
|
-
}, {
|
|
108
|
-
planName: string;
|
|
109
|
-
tasks: {
|
|
110
|
-
url: string;
|
|
111
|
-
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
112
|
-
query?: string | undefined;
|
|
113
|
-
headers?: string | undefined;
|
|
114
|
-
body?: string | undefined;
|
|
115
|
-
hopeRes?: string | undefined;
|
|
116
|
-
}[];
|
|
117
|
-
}>;
|
|
118
|
-
execute: (params: CreateTestPlanRequest) => Promise<string>;
|
|
119
|
-
};
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const UpdateTaskParams: z.ZodObject<{
|
|
3
|
-
uuid: z.ZodString;
|
|
4
|
-
updateData: z.ZodObject<{
|
|
5
|
-
url: z.ZodOptional<z.ZodString>;
|
|
6
|
-
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>>;
|
|
7
|
-
query: z.ZodOptional<z.ZodString>;
|
|
8
|
-
headers: z.ZodOptional<z.ZodString>;
|
|
9
|
-
body: z.ZodOptional<z.ZodString>;
|
|
10
|
-
hopeRes: z.ZodOptional<z.ZodString>;
|
|
11
|
-
res: z.ZodOptional<z.ZodString>;
|
|
12
|
-
review: z.ZodOptional<z.ZodString>;
|
|
13
|
-
suggest: z.ZodOptional<z.ZodString>;
|
|
14
|
-
status: z.ZodOptional<z.ZodString>;
|
|
15
|
-
completed: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
status?: string | undefined;
|
|
18
|
-
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
19
|
-
completed?: boolean | undefined;
|
|
20
|
-
url?: string | undefined;
|
|
21
|
-
query?: string | undefined;
|
|
22
|
-
headers?: string | undefined;
|
|
23
|
-
body?: string | undefined;
|
|
24
|
-
hopeRes?: string | undefined;
|
|
25
|
-
res?: string | undefined;
|
|
26
|
-
review?: string | undefined;
|
|
27
|
-
suggest?: string | undefined;
|
|
28
|
-
}, {
|
|
29
|
-
status?: string | undefined;
|
|
30
|
-
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
31
|
-
completed?: boolean | undefined;
|
|
32
|
-
url?: string | undefined;
|
|
33
|
-
query?: string | undefined;
|
|
34
|
-
headers?: string | undefined;
|
|
35
|
-
body?: string | undefined;
|
|
36
|
-
hopeRes?: string | undefined;
|
|
37
|
-
res?: string | undefined;
|
|
38
|
-
review?: string | undefined;
|
|
39
|
-
suggest?: string | undefined;
|
|
40
|
-
}>;
|
|
41
|
-
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
uuid: string;
|
|
43
|
-
updateData: {
|
|
44
|
-
status?: string | undefined;
|
|
45
|
-
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
46
|
-
completed?: boolean | undefined;
|
|
47
|
-
url?: string | undefined;
|
|
48
|
-
query?: string | undefined;
|
|
49
|
-
headers?: string | undefined;
|
|
50
|
-
body?: string | undefined;
|
|
51
|
-
hopeRes?: string | undefined;
|
|
52
|
-
res?: string | undefined;
|
|
53
|
-
review?: string | undefined;
|
|
54
|
-
suggest?: string | undefined;
|
|
55
|
-
};
|
|
56
|
-
}, {
|
|
57
|
-
uuid: string;
|
|
58
|
-
updateData: {
|
|
59
|
-
status?: string | undefined;
|
|
60
|
-
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
61
|
-
completed?: boolean | undefined;
|
|
62
|
-
url?: string | undefined;
|
|
63
|
-
query?: string | undefined;
|
|
64
|
-
headers?: string | undefined;
|
|
65
|
-
body?: string | undefined;
|
|
66
|
-
hopeRes?: string | undefined;
|
|
67
|
-
res?: string | undefined;
|
|
68
|
-
review?: string | undefined;
|
|
69
|
-
suggest?: string | undefined;
|
|
70
|
-
};
|
|
71
|
-
}>;
|
|
72
|
-
export type UpdateTaskRequest = z.infer<typeof UpdateTaskParams>;
|
|
73
|
-
export declare const updateTaskTool: {
|
|
74
|
-
name: string;
|
|
75
|
-
description: string;
|
|
76
|
-
parameters: z.ZodObject<{
|
|
77
|
-
uuid: z.ZodString;
|
|
78
|
-
updateData: z.ZodObject<{
|
|
79
|
-
url: z.ZodOptional<z.ZodString>;
|
|
80
|
-
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>>;
|
|
81
|
-
query: z.ZodOptional<z.ZodString>;
|
|
82
|
-
headers: z.ZodOptional<z.ZodString>;
|
|
83
|
-
body: z.ZodOptional<z.ZodString>;
|
|
84
|
-
hopeRes: z.ZodOptional<z.ZodString>;
|
|
85
|
-
res: z.ZodOptional<z.ZodString>;
|
|
86
|
-
review: z.ZodOptional<z.ZodString>;
|
|
87
|
-
suggest: z.ZodOptional<z.ZodString>;
|
|
88
|
-
status: z.ZodOptional<z.ZodString>;
|
|
89
|
-
completed: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
-
}, "strip", z.ZodTypeAny, {
|
|
91
|
-
status?: string | undefined;
|
|
92
|
-
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
93
|
-
completed?: boolean | undefined;
|
|
94
|
-
url?: string | undefined;
|
|
95
|
-
query?: string | undefined;
|
|
96
|
-
headers?: string | undefined;
|
|
97
|
-
body?: string | undefined;
|
|
98
|
-
hopeRes?: string | undefined;
|
|
99
|
-
res?: string | undefined;
|
|
100
|
-
review?: string | undefined;
|
|
101
|
-
suggest?: string | undefined;
|
|
102
|
-
}, {
|
|
103
|
-
status?: string | undefined;
|
|
104
|
-
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
105
|
-
completed?: boolean | undefined;
|
|
106
|
-
url?: string | undefined;
|
|
107
|
-
query?: string | undefined;
|
|
108
|
-
headers?: string | undefined;
|
|
109
|
-
body?: string | undefined;
|
|
110
|
-
hopeRes?: string | undefined;
|
|
111
|
-
res?: string | undefined;
|
|
112
|
-
review?: string | undefined;
|
|
113
|
-
suggest?: string | undefined;
|
|
114
|
-
}>;
|
|
115
|
-
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
uuid: string;
|
|
117
|
-
updateData: {
|
|
118
|
-
status?: string | undefined;
|
|
119
|
-
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
120
|
-
completed?: boolean | undefined;
|
|
121
|
-
url?: string | undefined;
|
|
122
|
-
query?: string | undefined;
|
|
123
|
-
headers?: string | undefined;
|
|
124
|
-
body?: string | undefined;
|
|
125
|
-
hopeRes?: string | undefined;
|
|
126
|
-
res?: string | undefined;
|
|
127
|
-
review?: string | undefined;
|
|
128
|
-
suggest?: string | undefined;
|
|
129
|
-
};
|
|
130
|
-
}, {
|
|
131
|
-
uuid: string;
|
|
132
|
-
updateData: {
|
|
133
|
-
status?: string | undefined;
|
|
134
|
-
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
135
|
-
completed?: boolean | undefined;
|
|
136
|
-
url?: string | undefined;
|
|
137
|
-
query?: string | undefined;
|
|
138
|
-
headers?: string | undefined;
|
|
139
|
-
body?: string | undefined;
|
|
140
|
-
hopeRes?: string | undefined;
|
|
141
|
-
res?: string | undefined;
|
|
142
|
-
review?: string | undefined;
|
|
143
|
-
suggest?: string | undefined;
|
|
144
|
-
};
|
|
145
|
-
}>;
|
|
146
|
-
execute: (params: UpdateTaskRequest) => Promise<string>;
|
|
147
|
-
};
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const ClaudeCodeParams: z.ZodObject<{
|
|
3
|
-
prompt: z.ZodString;
|
|
4
|
-
workFolder: z.ZodOptional<z.ZodString>;
|
|
5
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
6
|
-
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7
|
-
debugMode: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
-
claudePath: z.ZodOptional<z.ZodString>;
|
|
9
|
-
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
10
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
prompt: string;
|
|
13
|
-
sessionId?: string | undefined;
|
|
14
|
-
workFolder?: string | undefined;
|
|
15
|
-
allowedTools?: string[] | undefined;
|
|
16
|
-
debugMode?: boolean | undefined;
|
|
17
|
-
claudePath?: string | undefined;
|
|
18
|
-
maxRetries?: number | undefined;
|
|
19
|
-
timeout?: number | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
prompt: string;
|
|
22
|
-
sessionId?: string | undefined;
|
|
23
|
-
workFolder?: string | undefined;
|
|
24
|
-
allowedTools?: string[] | undefined;
|
|
25
|
-
debugMode?: boolean | undefined;
|
|
26
|
-
claudePath?: string | undefined;
|
|
27
|
-
maxRetries?: number | undefined;
|
|
28
|
-
timeout?: number | undefined;
|
|
29
|
-
}>;
|
|
30
|
-
export declare const ClaudeCodeStreamParams: z.ZodObject<{
|
|
31
|
-
prompt: z.ZodString;
|
|
32
|
-
workFolder: z.ZodOptional<z.ZodString>;
|
|
33
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
34
|
-
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
35
|
-
debugMode: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
-
claudePath: z.ZodOptional<z.ZodString>;
|
|
37
|
-
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
38
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
prompt: string;
|
|
41
|
-
sessionId?: string | undefined;
|
|
42
|
-
workFolder?: string | undefined;
|
|
43
|
-
allowedTools?: string[] | undefined;
|
|
44
|
-
debugMode?: boolean | undefined;
|
|
45
|
-
claudePath?: string | undefined;
|
|
46
|
-
maxRetries?: number | undefined;
|
|
47
|
-
timeout?: number | undefined;
|
|
48
|
-
}, {
|
|
49
|
-
prompt: string;
|
|
50
|
-
sessionId?: string | undefined;
|
|
51
|
-
workFolder?: string | undefined;
|
|
52
|
-
allowedTools?: string[] | undefined;
|
|
53
|
-
debugMode?: boolean | undefined;
|
|
54
|
-
claudePath?: string | undefined;
|
|
55
|
-
maxRetries?: number | undefined;
|
|
56
|
-
timeout?: number | undefined;
|
|
57
|
-
}>;
|
|
58
|
-
type ClaudeCodeParams = z.infer<typeof ClaudeCodeParams>;
|
|
59
|
-
/**
|
|
60
|
-
* Main Claude Code tool that uses the direct SDK integration
|
|
61
|
-
* Provides seamless integration with Claude Code's capabilities through the official SDK
|
|
62
|
-
*/
|
|
63
|
-
export declare const claudeCode: {
|
|
64
|
-
name: string;
|
|
65
|
-
description: string;
|
|
66
|
-
parameters: z.ZodObject<{
|
|
67
|
-
prompt: z.ZodString;
|
|
68
|
-
workFolder: z.ZodOptional<z.ZodString>;
|
|
69
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
70
|
-
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
71
|
-
debugMode: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
-
claudePath: z.ZodOptional<z.ZodString>;
|
|
73
|
-
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
74
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
75
|
-
}, "strip", z.ZodTypeAny, {
|
|
76
|
-
prompt: string;
|
|
77
|
-
sessionId?: string | undefined;
|
|
78
|
-
workFolder?: string | undefined;
|
|
79
|
-
allowedTools?: string[] | undefined;
|
|
80
|
-
debugMode?: boolean | undefined;
|
|
81
|
-
claudePath?: string | undefined;
|
|
82
|
-
maxRetries?: number | undefined;
|
|
83
|
-
timeout?: number | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
prompt: string;
|
|
86
|
-
sessionId?: string | undefined;
|
|
87
|
-
workFolder?: string | undefined;
|
|
88
|
-
allowedTools?: string[] | undefined;
|
|
89
|
-
debugMode?: boolean | undefined;
|
|
90
|
-
claudePath?: string | undefined;
|
|
91
|
-
maxRetries?: number | undefined;
|
|
92
|
-
timeout?: number | undefined;
|
|
93
|
-
}>;
|
|
94
|
-
execute: (args: ClaudeCodeParams) => Promise<string>;
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* Session management tool for Claude Code conversations
|
|
98
|
-
* Allows listing, resuming, and managing conversation sessions
|
|
99
|
-
*/
|
|
100
|
-
export declare const claudeCodeSessions: {
|
|
101
|
-
name: string;
|
|
102
|
-
description: string;
|
|
103
|
-
parameters: z.ZodObject<{
|
|
104
|
-
action: z.ZodEnum<["list", "info", "cleanup", "export", "import", "stats"]>;
|
|
105
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
106
|
-
filter: z.ZodOptional<z.ZodObject<{
|
|
107
|
-
project: z.ZodOptional<z.ZodString>;
|
|
108
|
-
dateRange: z.ZodOptional<z.ZodObject<{
|
|
109
|
-
start: z.ZodOptional<z.ZodString>;
|
|
110
|
-
end: z.ZodOptional<z.ZodString>;
|
|
111
|
-
}, "strip", z.ZodTypeAny, {
|
|
112
|
-
start?: string | undefined;
|
|
113
|
-
end?: string | undefined;
|
|
114
|
-
}, {
|
|
115
|
-
start?: string | undefined;
|
|
116
|
-
end?: string | undefined;
|
|
117
|
-
}>>;
|
|
118
|
-
sizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
119
|
-
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
project?: string | undefined;
|
|
121
|
-
dateRange?: {
|
|
122
|
-
start?: string | undefined;
|
|
123
|
-
end?: string | undefined;
|
|
124
|
-
} | undefined;
|
|
125
|
-
sizeLimit?: number | undefined;
|
|
126
|
-
}, {
|
|
127
|
-
project?: string | undefined;
|
|
128
|
-
dateRange?: {
|
|
129
|
-
start?: string | undefined;
|
|
130
|
-
end?: string | undefined;
|
|
131
|
-
} | undefined;
|
|
132
|
-
sizeLimit?: number | undefined;
|
|
133
|
-
}>>;
|
|
134
|
-
cleanupOptions: z.ZodOptional<z.ZodObject<{
|
|
135
|
-
maxAgeDays: z.ZodOptional<z.ZodNumber>;
|
|
136
|
-
maxSessions: z.ZodOptional<z.ZodNumber>;
|
|
137
|
-
}, "strip", z.ZodTypeAny, {
|
|
138
|
-
maxAgeDays?: number | undefined;
|
|
139
|
-
maxSessions?: number | undefined;
|
|
140
|
-
}, {
|
|
141
|
-
maxAgeDays?: number | undefined;
|
|
142
|
-
maxSessions?: number | undefined;
|
|
143
|
-
}>>;
|
|
144
|
-
exportPath: z.ZodOptional<z.ZodString>;
|
|
145
|
-
importPath: z.ZodOptional<z.ZodString>;
|
|
146
|
-
}, "strip", z.ZodTypeAny, {
|
|
147
|
-
action: "info" | "list" | "cleanup" | "export" | "import" | "stats";
|
|
148
|
-
filter?: {
|
|
149
|
-
project?: string | undefined;
|
|
150
|
-
dateRange?: {
|
|
151
|
-
start?: string | undefined;
|
|
152
|
-
end?: string | undefined;
|
|
153
|
-
} | undefined;
|
|
154
|
-
sizeLimit?: number | undefined;
|
|
155
|
-
} | undefined;
|
|
156
|
-
sessionId?: string | undefined;
|
|
157
|
-
cleanupOptions?: {
|
|
158
|
-
maxAgeDays?: number | undefined;
|
|
159
|
-
maxSessions?: number | undefined;
|
|
160
|
-
} | undefined;
|
|
161
|
-
exportPath?: string | undefined;
|
|
162
|
-
importPath?: string | undefined;
|
|
163
|
-
}, {
|
|
164
|
-
action: "info" | "list" | "cleanup" | "export" | "import" | "stats";
|
|
165
|
-
filter?: {
|
|
166
|
-
project?: string | undefined;
|
|
167
|
-
dateRange?: {
|
|
168
|
-
start?: string | undefined;
|
|
169
|
-
end?: string | undefined;
|
|
170
|
-
} | undefined;
|
|
171
|
-
sizeLimit?: number | undefined;
|
|
172
|
-
} | undefined;
|
|
173
|
-
sessionId?: string | undefined;
|
|
174
|
-
cleanupOptions?: {
|
|
175
|
-
maxAgeDays?: number | undefined;
|
|
176
|
-
maxSessions?: number | undefined;
|
|
177
|
-
} | undefined;
|
|
178
|
-
exportPath?: string | undefined;
|
|
179
|
-
importPath?: string | undefined;
|
|
180
|
-
}>;
|
|
181
|
-
execute: (args: {
|
|
182
|
-
action: "list" | "info" | "cleanup" | "export" | "import" | "stats";
|
|
183
|
-
sessionId?: string;
|
|
184
|
-
filter?: {
|
|
185
|
-
project?: string;
|
|
186
|
-
dateRange?: {
|
|
187
|
-
start?: string;
|
|
188
|
-
end?: string;
|
|
189
|
-
};
|
|
190
|
-
sizeLimit?: number;
|
|
191
|
-
};
|
|
192
|
-
cleanupOptions?: {
|
|
193
|
-
maxAgeDays?: number;
|
|
194
|
-
maxSessions?: number;
|
|
195
|
-
};
|
|
196
|
-
exportPath?: string;
|
|
197
|
-
importPath?: string;
|
|
198
|
-
}) => Promise<string>;
|
|
199
|
-
};
|
|
200
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { RequirementStorage } from "./storage";
|
|
2
|
-
export declare const storage: RequirementStorage;
|
|
3
|
-
export interface RequirementEntry {
|
|
4
|
-
timestamp: string;
|
|
5
|
-
category?: string;
|
|
6
|
-
content: string;
|
|
7
|
-
design_focus?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface Requirements {
|
|
10
|
-
project_overview: RequirementEntry[];
|
|
11
|
-
functional_requirements: RequirementEntry[];
|
|
12
|
-
technical_requirements: RequirementEntry[];
|
|
13
|
-
design_requirements: RequirementEntry[];
|
|
14
|
-
deployment_requirements: RequirementEntry[];
|
|
15
|
-
ai_constraints: RequirementEntry[];
|
|
16
|
-
clarification_history: RequirementEntry[];
|
|
17
|
-
architecture_designs: RequirementEntry[];
|
|
18
|
-
requirement_analysis: RequirementEntry[];
|
|
19
|
-
last_updated: string | null;
|
|
20
|
-
project_id: string | null;
|
|
21
|
-
}
|
|
22
|
-
export declare const currentRequirements: Requirements;
|
|
23
|
-
/**
|
|
24
|
-
* 统计当前需求数量
|
|
25
|
-
*/
|
|
26
|
-
export declare function countRequirements(requirements: Requirements): number;
|
|
27
|
-
/**
|
|
28
|
-
* 添加需求条目
|
|
29
|
-
*/
|
|
30
|
-
export declare function addRequirementEntry(type: string, category: string, content: string): Requirements;
|
|
31
|
-
/**
|
|
32
|
-
* 格式化需求更新响应信息
|
|
33
|
-
*/
|
|
34
|
-
export declare function formatRequirementUpdateResponse(category: string, content: string, requirements: Requirements, requirementsFile: string, historyFile: string): string;
|
|
35
|
-
/**
|
|
36
|
-
* 格式化需求状态报告
|
|
37
|
-
*/
|
|
38
|
-
export declare function formatRequirementsStatusReport(requirements: Requirements, storageDir: string, requirementsFile: string, historyFile: string): string;
|
package/dist/utils/storage.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Requirements } from "../utils/requirements-utils";
|
|
2
|
-
export declare class RequirementStorage {
|
|
3
|
-
storageDir: string;
|
|
4
|
-
private _requirementsFile;
|
|
5
|
-
private _historyFile;
|
|
6
|
-
constructor();
|
|
7
|
-
get requirementsFile(): string;
|
|
8
|
-
get historyFile(): string;
|
|
9
|
-
get storageDirectory(): string;
|
|
10
|
-
loadRequirements(): void;
|
|
11
|
-
saveRequirements(currentRequirements: Requirements): void;
|
|
12
|
-
exportFinalDocument(currentRequirements: Requirements): string | null;
|
|
13
|
-
private generateMarkdownReport;
|
|
14
|
-
}
|
|
File without changes
|