@simpletoolsindiaorg/engi-mcp 1.0.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.
Files changed (116) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/LICENSE +21 -0
  3. package/README.md +592 -0
  4. package/dist/bin.d.ts +3 -0
  5. package/dist/bin.d.ts.map +1 -0
  6. package/dist/bin.js +6 -0
  7. package/dist/bin.js.map +1 -0
  8. package/dist/capabilities/analysis/analysis.d.ts +223 -0
  9. package/dist/capabilities/analysis/analysis.d.ts.map +1 -0
  10. package/dist/capabilities/analysis/analysis.js +202 -0
  11. package/dist/capabilities/analysis/analysis.js.map +1 -0
  12. package/dist/capabilities/analysis/index.d.ts +2 -0
  13. package/dist/capabilities/analysis/index.d.ts.map +1 -0
  14. package/dist/capabilities/analysis/index.js +19 -0
  15. package/dist/capabilities/analysis/index.js.map +1 -0
  16. package/dist/capabilities/documentation/documentation.d.ts +107 -0
  17. package/dist/capabilities/documentation/documentation.d.ts.map +1 -0
  18. package/dist/capabilities/documentation/documentation.js +112 -0
  19. package/dist/capabilities/documentation/documentation.js.map +1 -0
  20. package/dist/capabilities/documentation/index.d.ts +2 -0
  21. package/dist/capabilities/documentation/index.d.ts.map +1 -0
  22. package/dist/capabilities/documentation/index.js +19 -0
  23. package/dist/capabilities/documentation/index.js.map +1 -0
  24. package/dist/capabilities/execution/execution.d.ts +96 -0
  25. package/dist/capabilities/execution/execution.d.ts.map +1 -0
  26. package/dist/capabilities/execution/execution.js +175 -0
  27. package/dist/capabilities/execution/execution.js.map +1 -0
  28. package/dist/capabilities/execution/index.d.ts +2 -0
  29. package/dist/capabilities/execution/index.d.ts.map +1 -0
  30. package/dist/capabilities/execution/index.js +19 -0
  31. package/dist/capabilities/execution/index.js.map +1 -0
  32. package/dist/capabilities/memory/index.d.ts +2 -0
  33. package/dist/capabilities/memory/index.d.ts.map +1 -0
  34. package/dist/capabilities/memory/index.js +19 -0
  35. package/dist/capabilities/memory/index.js.map +1 -0
  36. package/dist/capabilities/memory/memory.d.ts +227 -0
  37. package/dist/capabilities/memory/memory.d.ts.map +1 -0
  38. package/dist/capabilities/memory/memory.js +106 -0
  39. package/dist/capabilities/memory/memory.js.map +1 -0
  40. package/dist/capabilities/planning/index.d.ts +2 -0
  41. package/dist/capabilities/planning/index.d.ts.map +1 -0
  42. package/dist/capabilities/planning/index.js +19 -0
  43. package/dist/capabilities/planning/index.js.map +1 -0
  44. package/dist/capabilities/planning/planning.d.ts +131 -0
  45. package/dist/capabilities/planning/planning.d.ts.map +1 -0
  46. package/dist/capabilities/planning/planning.js +179 -0
  47. package/dist/capabilities/planning/planning.js.map +1 -0
  48. package/dist/core/index.d.ts +2 -0
  49. package/dist/core/index.d.ts.map +1 -0
  50. package/dist/core/index.js +19 -0
  51. package/dist/core/index.js.map +1 -0
  52. package/dist/core/indexer/index.d.ts +2 -0
  53. package/dist/core/indexer/index.d.ts.map +1 -0
  54. package/dist/core/indexer/index.js +9 -0
  55. package/dist/core/indexer/index.js.map +1 -0
  56. package/dist/core/indexer/indexer.d.ts +35 -0
  57. package/dist/core/indexer/indexer.d.ts.map +1 -0
  58. package/dist/core/indexer/indexer.js +377 -0
  59. package/dist/core/indexer/indexer.js.map +1 -0
  60. package/dist/core/retrieval/index.d.ts +2 -0
  61. package/dist/core/retrieval/index.d.ts.map +1 -0
  62. package/dist/core/retrieval/index.js +8 -0
  63. package/dist/core/retrieval/index.js.map +1 -0
  64. package/dist/core/retrieval/retriever.d.ts +28 -0
  65. package/dist/core/retrieval/retriever.d.ts.map +1 -0
  66. package/dist/core/retrieval/retriever.js +258 -0
  67. package/dist/core/retrieval/retriever.js.map +1 -0
  68. package/dist/core/summarizer/index.d.ts +2 -0
  69. package/dist/core/summarizer/index.d.ts.map +1 -0
  70. package/dist/core/summarizer/index.js +8 -0
  71. package/dist/core/summarizer/index.js.map +1 -0
  72. package/dist/core/summarizer/summarizer.d.ts +33 -0
  73. package/dist/core/summarizer/summarizer.d.ts.map +1 -0
  74. package/dist/core/summarizer/summarizer.js +341 -0
  75. package/dist/core/summarizer/summarizer.js.map +1 -0
  76. package/dist/core/types.d.ts +224 -0
  77. package/dist/core/types.d.ts.map +1 -0
  78. package/dist/core/types.js +4 -0
  79. package/dist/core/types.js.map +1 -0
  80. package/dist/index.d.ts +2 -0
  81. package/dist/index.d.ts.map +1 -0
  82. package/dist/index.js +127 -0
  83. package/dist/index.js.map +1 -0
  84. package/dist/memory/index.d.ts +2 -0
  85. package/dist/memory/index.d.ts.map +1 -0
  86. package/dist/memory/index.js +9 -0
  87. package/dist/memory/index.js.map +1 -0
  88. package/dist/memory/memory.d.ts +59 -0
  89. package/dist/memory/memory.d.ts.map +1 -0
  90. package/dist/memory/memory.js +212 -0
  91. package/dist/memory/memory.js.map +1 -0
  92. package/dist/resources/index.d.ts +3 -0
  93. package/dist/resources/index.d.ts.map +1 -0
  94. package/dist/resources/index.js +16 -0
  95. package/dist/resources/index.js.map +1 -0
  96. package/dist/resources/resources.d.ts +86 -0
  97. package/dist/resources/resources.d.ts.map +1 -0
  98. package/dist/resources/resources.js +285 -0
  99. package/dist/resources/resources.js.map +1 -0
  100. package/dist/utils/formatter.d.ts +26 -0
  101. package/dist/utils/formatter.d.ts.map +1 -0
  102. package/dist/utils/formatter.js +56 -0
  103. package/dist/utils/formatter.js.map +1 -0
  104. package/dist/utils/index.d.ts +7 -0
  105. package/dist/utils/index.d.ts.map +1 -0
  106. package/dist/utils/index.js +17 -0
  107. package/dist/utils/index.js.map +1 -0
  108. package/dist/utils/logger.d.ts +21 -0
  109. package/dist/utils/logger.d.ts.map +1 -0
  110. package/dist/utils/logger.js +44 -0
  111. package/dist/utils/logger.js.map +1 -0
  112. package/dist/utils/token-counter.d.ts +24 -0
  113. package/dist/utils/token-counter.d.ts.map +1 -0
  114. package/dist/utils/token-counter.js +49 -0
  115. package/dist/utils/token-counter.js.map +1 -0
  116. package/package.json +70 -0
@@ -0,0 +1,227 @@
1
+ import { z } from 'zod';
2
+ import { MemoryCheckpoint, MemoryRestoreResult, Verbosity } from '../../core/types.js';
3
+ declare const MemoryCheckpointSchema: z.ZodObject<{
4
+ taskId: z.ZodString;
5
+ taskType: z.ZodEnum<["analysis", "feature", "bug", "poc", "documentation", "mixed"]>;
6
+ files: z.ZodArray<z.ZodString, "many">;
7
+ symbols: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8
+ modules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
10
+ description: z.ZodString;
11
+ rationale: z.ZodString;
12
+ }, "strip", z.ZodTypeAny, {
13
+ description: string;
14
+ rationale: string;
15
+ }, {
16
+ description: string;
17
+ rationale: string;
18
+ }>, "many">>;
19
+ risks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20
+ pendingValidations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
21
+ pendingDocs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
22
+ notes: z.ZodOptional<z.ZodString>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ files: string[];
25
+ taskType: "analysis" | "feature" | "bug" | "poc" | "documentation" | "mixed";
26
+ taskId: string;
27
+ symbols?: string[] | undefined;
28
+ modules?: string[] | undefined;
29
+ decisions?: {
30
+ description: string;
31
+ rationale: string;
32
+ }[] | undefined;
33
+ risks?: string[] | undefined;
34
+ pendingValidations?: string[] | undefined;
35
+ pendingDocs?: string[] | undefined;
36
+ notes?: string | undefined;
37
+ }, {
38
+ files: string[];
39
+ taskType: "analysis" | "feature" | "bug" | "poc" | "documentation" | "mixed";
40
+ taskId: string;
41
+ symbols?: string[] | undefined;
42
+ modules?: string[] | undefined;
43
+ decisions?: {
44
+ description: string;
45
+ rationale: string;
46
+ }[] | undefined;
47
+ risks?: string[] | undefined;
48
+ pendingValidations?: string[] | undefined;
49
+ pendingDocs?: string[] | undefined;
50
+ notes?: string | undefined;
51
+ }>;
52
+ export type MemoryCheckpointParams = z.infer<typeof MemoryCheckpointSchema>;
53
+ export declare function memoryCheckpoint(params: MemoryCheckpointParams, verbosity?: Verbosity): Promise<MemoryCheckpoint>;
54
+ declare const MemoryRestoreSchema: z.ZodObject<{
55
+ id: z.ZodOptional<z.ZodString>;
56
+ taskId: z.ZodOptional<z.ZodString>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ id?: string | undefined;
59
+ taskId?: string | undefined;
60
+ }, {
61
+ id?: string | undefined;
62
+ taskId?: string | undefined;
63
+ }>;
64
+ export type MemoryRestoreParams = z.infer<typeof MemoryRestoreSchema>;
65
+ export declare function memoryRestore(params: MemoryRestoreParams, verbosity?: Verbosity): Promise<MemoryRestoreResult | null>;
66
+ export declare const memoryTools: {
67
+ memory_checkpoint: {
68
+ name: string;
69
+ description: string;
70
+ inputSchema: {
71
+ type: "object";
72
+ properties: {
73
+ taskId: {
74
+ type: string;
75
+ description: string;
76
+ };
77
+ taskType: {
78
+ type: string;
79
+ enum: string[];
80
+ description: string;
81
+ };
82
+ files: {
83
+ type: string;
84
+ items: {
85
+ type: string;
86
+ };
87
+ description: string;
88
+ };
89
+ symbols: {
90
+ type: string;
91
+ items: {
92
+ type: string;
93
+ };
94
+ description: string;
95
+ };
96
+ modules: {
97
+ type: string;
98
+ items: {
99
+ type: string;
100
+ };
101
+ description: string;
102
+ };
103
+ decisions: {
104
+ type: string;
105
+ items: {
106
+ type: string;
107
+ properties: {
108
+ description: {
109
+ type: string;
110
+ };
111
+ rationale: {
112
+ type: string;
113
+ };
114
+ };
115
+ };
116
+ description: string;
117
+ };
118
+ risks: {
119
+ type: string;
120
+ items: {
121
+ type: string;
122
+ };
123
+ description: string;
124
+ };
125
+ pendingValidations: {
126
+ type: string;
127
+ items: {
128
+ type: string;
129
+ };
130
+ description: string;
131
+ };
132
+ pendingDocs: {
133
+ type: string;
134
+ items: {
135
+ type: string;
136
+ };
137
+ description: string;
138
+ };
139
+ notes: {
140
+ type: string;
141
+ description: string;
142
+ };
143
+ };
144
+ required: string[];
145
+ };
146
+ handler: typeof memoryCheckpoint;
147
+ schema: z.ZodObject<{
148
+ taskId: z.ZodString;
149
+ taskType: z.ZodEnum<["analysis", "feature", "bug", "poc", "documentation", "mixed"]>;
150
+ files: z.ZodArray<z.ZodString, "many">;
151
+ symbols: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
152
+ modules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
153
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
154
+ description: z.ZodString;
155
+ rationale: z.ZodString;
156
+ }, "strip", z.ZodTypeAny, {
157
+ description: string;
158
+ rationale: string;
159
+ }, {
160
+ description: string;
161
+ rationale: string;
162
+ }>, "many">>;
163
+ risks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
164
+ pendingValidations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
165
+ pendingDocs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
166
+ notes: z.ZodOptional<z.ZodString>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ files: string[];
169
+ taskType: "analysis" | "feature" | "bug" | "poc" | "documentation" | "mixed";
170
+ taskId: string;
171
+ symbols?: string[] | undefined;
172
+ modules?: string[] | undefined;
173
+ decisions?: {
174
+ description: string;
175
+ rationale: string;
176
+ }[] | undefined;
177
+ risks?: string[] | undefined;
178
+ pendingValidations?: string[] | undefined;
179
+ pendingDocs?: string[] | undefined;
180
+ notes?: string | undefined;
181
+ }, {
182
+ files: string[];
183
+ taskType: "analysis" | "feature" | "bug" | "poc" | "documentation" | "mixed";
184
+ taskId: string;
185
+ symbols?: string[] | undefined;
186
+ modules?: string[] | undefined;
187
+ decisions?: {
188
+ description: string;
189
+ rationale: string;
190
+ }[] | undefined;
191
+ risks?: string[] | undefined;
192
+ pendingValidations?: string[] | undefined;
193
+ pendingDocs?: string[] | undefined;
194
+ notes?: string | undefined;
195
+ }>;
196
+ };
197
+ memory_restore: {
198
+ name: string;
199
+ description: string;
200
+ inputSchema: {
201
+ type: "object";
202
+ properties: {
203
+ id: {
204
+ type: string;
205
+ description: string;
206
+ };
207
+ taskId: {
208
+ type: string;
209
+ description: string;
210
+ };
211
+ };
212
+ };
213
+ handler: typeof memoryRestore;
214
+ schema: z.ZodObject<{
215
+ id: z.ZodOptional<z.ZodString>;
216
+ taskId: z.ZodOptional<z.ZodString>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ id?: string | undefined;
219
+ taskId?: string | undefined;
220
+ }, {
221
+ id?: string | undefined;
222
+ taskId?: string | undefined;
223
+ }>;
224
+ };
225
+ };
226
+ export {};
227
+ //# sourceMappingURL=memory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../src/capabilities/memory/memory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,gBAAgB,EAGhB,mBAAmB,EAEnB,SAAS,EACV,MAAM,qBAAqB,CAAC;AAO7B,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc1B,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,sBAAsB,EAAE,SAAS,GAAE,SAAqB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAsBlI;AAMD,QAAA,MAAM,mBAAmB;;;;;;;;;EAGvB,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE,wBAAsB,aAAa,CAAC,MAAM,EAAE,mBAAmB,EAAE,SAAS,GAAE,SAAqB,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAetI;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCvB,CAAC"}
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.memoryTools = void 0;
4
+ exports.memoryCheckpoint = memoryCheckpoint;
5
+ exports.memoryRestore = memoryRestore;
6
+ // Memory Capability Tools
7
+ const zod_1 = require("zod");
8
+ const memory_js_1 = require("../../memory/memory.js");
9
+ // ============================================================================
10
+ // Memory Checkpoint
11
+ // ============================================================================
12
+ const MemoryCheckpointSchema = zod_1.z.object({
13
+ taskId: zod_1.z.string().describe('Unique task identifier'),
14
+ taskType: zod_1.z.enum(['analysis', 'feature', 'bug', 'poc', 'documentation', 'mixed']).describe('Type of task'),
15
+ files: zod_1.z.array(zod_1.z.string()).describe('Files in scope'),
16
+ symbols: zod_1.z.array(zod_1.z.string()).optional().describe('Symbols in scope'),
17
+ modules: zod_1.z.array(zod_1.z.string()).optional().describe('Modules in scope'),
18
+ decisions: zod_1.z.array(zod_1.z.object({
19
+ description: zod_1.z.string(),
20
+ rationale: zod_1.z.string()
21
+ })).optional().describe('Decisions made'),
22
+ risks: zod_1.z.array(zod_1.z.string()).optional().describe('Identified risks'),
23
+ pendingValidations: zod_1.z.array(zod_1.z.string()).optional().describe('Pending validations'),
24
+ pendingDocs: zod_1.z.array(zod_1.z.string()).optional().describe('Pending documentation'),
25
+ notes: zod_1.z.string().optional().describe('Additional notes')
26
+ });
27
+ async function memoryCheckpoint(params, verbosity = 'minimal') {
28
+ const memory = (0, memory_js_1.getMemoryStore)();
29
+ const checkpointData = (0, memory_js_1.createCheckpoint)({
30
+ taskId: params.taskId,
31
+ taskType: params.taskType,
32
+ scope: {
33
+ files: params.files,
34
+ symbols: params.symbols || [],
35
+ modules: params.modules || []
36
+ },
37
+ decisions: params.decisions?.map(d => ({
38
+ ...d,
39
+ timestamp: Date.now()
40
+ })) || [],
41
+ risks: params.risks || [],
42
+ pendingValidations: params.pendingValidations || [],
43
+ pendingDocs: params.pendingDocs || [],
44
+ notes: params.notes || ''
45
+ });
46
+ return memory.saveCheckpoint(checkpointData);
47
+ }
48
+ // ============================================================================
49
+ // Memory Restore
50
+ // ============================================================================
51
+ const MemoryRestoreSchema = zod_1.z.object({
52
+ id: zod_1.z.string().optional().describe('Checkpoint ID to restore'),
53
+ taskId: zod_1.z.string().optional().describe('Task ID to restore latest checkpoint')
54
+ });
55
+ async function memoryRestore(params, verbosity = 'minimal') {
56
+ const memory = (0, memory_js_1.getMemoryStore)();
57
+ let result = null;
58
+ if (params.id) {
59
+ result = memory.restore(params.id);
60
+ }
61
+ else if (params.taskId) {
62
+ const checkpoint = memory.getLatestForTask(params.taskId);
63
+ if (checkpoint) {
64
+ result = memory.restore(checkpoint.id);
65
+ }
66
+ }
67
+ return result;
68
+ }
69
+ exports.memoryTools = {
70
+ memory_checkpoint: {
71
+ name: 'memory_checkpoint',
72
+ description: 'Store compact task state outside conversation context',
73
+ inputSchema: {
74
+ type: 'object',
75
+ properties: {
76
+ taskId: { type: 'string', description: 'Unique task identifier' },
77
+ taskType: { type: 'string', enum: ['analysis', 'feature', 'bug', 'poc', 'documentation', 'mixed'], description: 'Type of task' },
78
+ files: { type: 'array', items: { type: 'string' }, description: 'Files in scope' },
79
+ symbols: { type: 'array', items: { type: 'string' }, description: 'Symbols in scope' },
80
+ modules: { type: 'array', items: { type: 'string' }, description: 'Modules in scope' },
81
+ decisions: { type: 'array', items: { type: 'object', properties: { description: { type: 'string' }, rationale: { type: 'string' } } }, description: 'Decisions made' },
82
+ risks: { type: 'array', items: { type: 'string' }, description: 'Identified risks' },
83
+ pendingValidations: { type: 'array', items: { type: 'string' }, description: 'Pending validations' },
84
+ pendingDocs: { type: 'array', items: { type: 'string' }, description: 'Pending documentation' },
85
+ notes: { type: 'string', description: 'Additional notes' }
86
+ },
87
+ required: ['taskId', 'taskType', 'files']
88
+ },
89
+ handler: memoryCheckpoint,
90
+ schema: MemoryCheckpointSchema
91
+ },
92
+ memory_restore: {
93
+ name: 'memory_restore',
94
+ description: 'Restore compact previously saved task state',
95
+ inputSchema: {
96
+ type: 'object',
97
+ properties: {
98
+ id: { type: 'string', description: 'Checkpoint ID to restore' },
99
+ taskId: { type: 'string', description: 'Task ID to restore latest checkpoint' }
100
+ }
101
+ },
102
+ handler: memoryRestore,
103
+ schema: MemoryRestoreSchema
104
+ }
105
+ };
106
+ //# sourceMappingURL=memory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.js","sourceRoot":"","sources":["../../../src/capabilities/memory/memory.ts"],"names":[],"mappings":";;;AAkCA,4CAsBC;AAaD,sCAeC;AApFD,0BAA0B;AAC1B,6BAAwB;AASxB,sDAA0E;AAE1E,+EAA+E;AAC/E,oBAAoB;AACpB,+EAA+E;AAE/E,MAAM,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IACrD,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC;IAC1G,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IACrD,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IACpE,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CA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AAE,qBAAqB,EAAE;gBACpG,WAAW,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,uBAAuB,EAAE;gBAC/F,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,kBAAkB,EAAE;aAC3D;YACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC;SAC1C;QACD,OAAO,EAAE,gBAAgB;QACzB,MAAM,EAAE,sBAAsB;KAC/B;IACD,cAAc,EAAE;QACd,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,6CAA6C;QAC1D,WAAW,EAAE;YACX,IAAI,EAAE,QAAiB;YACvB,UAAU,EAAE;gBACV,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,0BAA0B,EAAE;gBAC/D,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sCAAsC,EAAE;aAChF;SACF;QACD,OAAO,EAAE,aAAa;QACtB,MAAM,EAAE,mBAAmB;KAC5B;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './planning.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/capabilities/planning/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // Planning capability exports
18
+ __exportStar(require("./planning.js"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/capabilities/planning/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8BAA8B;AAC9B,gDAA8B"}
@@ -0,0 +1,131 @@
1
+ import { z } from 'zod';
2
+ import { ImplementationPlan, POCPlan, Verbosity } from '../../core/types.js';
3
+ declare const ImplementationPlanSchema: z.ZodObject<{
4
+ task: z.ZodString;
5
+ taskType: z.ZodEnum<["feature", "bug"]>;
6
+ scope: z.ZodArray<z.ZodString, "many">;
7
+ existingPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ task: string;
10
+ taskType: "feature" | "bug";
11
+ scope: string[];
12
+ existingPatterns?: string[] | undefined;
13
+ }, {
14
+ task: string;
15
+ taskType: "feature" | "bug";
16
+ scope: string[];
17
+ existingPatterns?: string[] | undefined;
18
+ }>;
19
+ export type ImplementationPlanParams = z.infer<typeof ImplementationPlanSchema>;
20
+ export declare function implementationPlan(params: ImplementationPlanParams, verbosity?: Verbosity): Promise<ImplementationPlan>;
21
+ declare const POCPlanSchema: z.ZodObject<{
22
+ goal: z.ZodString;
23
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
24
+ existingCode: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ goal: string;
27
+ constraints?: string[] | undefined;
28
+ existingCode?: string[] | undefined;
29
+ }, {
30
+ goal: string;
31
+ constraints?: string[] | undefined;
32
+ existingCode?: string[] | undefined;
33
+ }>;
34
+ export type POCPlanParams = z.infer<typeof POCPlanSchema>;
35
+ export declare function pocPlan(params: POCPlanParams, verbosity?: Verbosity): Promise<POCPlan>;
36
+ export declare const planningTools: {
37
+ implementation_plan: {
38
+ name: string;
39
+ description: string;
40
+ inputSchema: {
41
+ type: "object";
42
+ properties: {
43
+ task: {
44
+ type: string;
45
+ description: string;
46
+ };
47
+ taskType: {
48
+ type: string;
49
+ enum: string[];
50
+ description: string;
51
+ };
52
+ scope: {
53
+ type: string;
54
+ items: {
55
+ type: string;
56
+ };
57
+ description: string;
58
+ };
59
+ existingPatterns: {
60
+ type: string;
61
+ items: {
62
+ type: string;
63
+ };
64
+ description: string;
65
+ };
66
+ };
67
+ required: string[];
68
+ };
69
+ handler: typeof implementationPlan;
70
+ schema: z.ZodObject<{
71
+ task: z.ZodString;
72
+ taskType: z.ZodEnum<["feature", "bug"]>;
73
+ scope: z.ZodArray<z.ZodString, "many">;
74
+ existingPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
75
+ }, "strip", z.ZodTypeAny, {
76
+ task: string;
77
+ taskType: "feature" | "bug";
78
+ scope: string[];
79
+ existingPatterns?: string[] | undefined;
80
+ }, {
81
+ task: string;
82
+ taskType: "feature" | "bug";
83
+ scope: string[];
84
+ existingPatterns?: string[] | undefined;
85
+ }>;
86
+ };
87
+ poc_plan: {
88
+ name: string;
89
+ description: string;
90
+ inputSchema: {
91
+ type: "object";
92
+ properties: {
93
+ goal: {
94
+ type: string;
95
+ description: string;
96
+ };
97
+ constraints: {
98
+ type: string;
99
+ items: {
100
+ type: string;
101
+ };
102
+ description: string;
103
+ };
104
+ existingCode: {
105
+ type: string;
106
+ items: {
107
+ type: string;
108
+ };
109
+ description: string;
110
+ };
111
+ };
112
+ required: string[];
113
+ };
114
+ handler: typeof pocPlan;
115
+ schema: z.ZodObject<{
116
+ goal: z.ZodString;
117
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
118
+ existingCode: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ goal: string;
121
+ constraints?: string[] | undefined;
122
+ existingCode?: string[] | undefined;
123
+ }, {
124
+ goal: string;
125
+ constraints?: string[] | undefined;
126
+ existingCode?: string[] | undefined;
127
+ }>;
128
+ };
129
+ };
130
+ export {};
131
+ //# sourceMappingURL=planning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"planning.d.ts","sourceRoot":"","sources":["../../../src/capabilities/planning/planning.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,kBAAkB,EAClB,OAAO,EAGP,SAAS,EACV,MAAM,qBAAqB,CAAC;AAM7B,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;EAK5B,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEhF,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,EAAE,SAAS,GAAE,SAAqB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA0ExI;AAMD,QAAA,MAAM,aAAa;;;;;;;;;;;;EAIjB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,wBAAsB,OAAO,CAAC,MAAM,EAAE,aAAa,EAAE,SAAS,GAAE,SAAqB,GAAG,OAAO,CAAC,OAAO,CAAC,CA0DvG;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCzB,CAAC"}