@tdsoft-tech/aikit 0.1.11 → 0.1.13
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/CHANGELOG.md +9 -0
- package/dist/cli.js +1389 -1352
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +11 -7
- package/dist/index.js +50 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp-server.js +122 -1
- package/dist/mcp-server.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -19,11 +19,11 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
19
19
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
20
20
|
default: z.ZodDefault<z.ZodString>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
default: string;
|
|
23
22
|
enabled: boolean;
|
|
23
|
+
default: string;
|
|
24
24
|
}, {
|
|
25
|
-
default?: string | undefined;
|
|
26
25
|
enabled?: boolean | undefined;
|
|
26
|
+
default?: string | undefined;
|
|
27
27
|
}>>;
|
|
28
28
|
commands: z.ZodDefault<z.ZodObject<{
|
|
29
29
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -95,14 +95,15 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
95
95
|
githubGrep?: boolean | undefined;
|
|
96
96
|
gkg?: boolean | undefined;
|
|
97
97
|
}>>;
|
|
98
|
+
mode: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
98
99
|
}, "strip", z.ZodTypeAny, {
|
|
99
100
|
skills: {
|
|
100
101
|
enabled: boolean;
|
|
101
102
|
directory?: string | undefined;
|
|
102
103
|
};
|
|
103
104
|
agents: {
|
|
104
|
-
default: string;
|
|
105
105
|
enabled: boolean;
|
|
106
|
+
default: string;
|
|
106
107
|
};
|
|
107
108
|
commands: {
|
|
108
109
|
enabled: boolean;
|
|
@@ -118,11 +119,11 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
118
119
|
enabled: boolean;
|
|
119
120
|
maxSize?: number | undefined;
|
|
120
121
|
};
|
|
122
|
+
version: string;
|
|
121
123
|
beads: {
|
|
122
124
|
enabled: boolean;
|
|
123
125
|
autoInit: boolean;
|
|
124
126
|
};
|
|
125
|
-
version: string;
|
|
126
127
|
antiHallucination: {
|
|
127
128
|
enabled: boolean;
|
|
128
129
|
specFile: string;
|
|
@@ -133,6 +134,7 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
133
134
|
githubGrep: boolean;
|
|
134
135
|
gkg: boolean;
|
|
135
136
|
} | undefined;
|
|
137
|
+
mode?: string | undefined;
|
|
136
138
|
}, {
|
|
137
139
|
version: string;
|
|
138
140
|
skills?: {
|
|
@@ -140,8 +142,8 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
140
142
|
directory?: string | undefined;
|
|
141
143
|
} | undefined;
|
|
142
144
|
agents?: {
|
|
143
|
-
default?: string | undefined;
|
|
144
145
|
enabled?: boolean | undefined;
|
|
146
|
+
default?: string | undefined;
|
|
145
147
|
} | undefined;
|
|
146
148
|
commands?: {
|
|
147
149
|
enabled?: boolean | undefined;
|
|
@@ -171,6 +173,7 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
171
173
|
githubGrep?: boolean | undefined;
|
|
172
174
|
gkg?: boolean | undefined;
|
|
173
175
|
} | undefined;
|
|
176
|
+
mode?: string | undefined;
|
|
174
177
|
}>;
|
|
175
178
|
type AIKitConfig = z.infer<typeof ConfigSchema> & {
|
|
176
179
|
configPath: string;
|
|
@@ -188,8 +191,8 @@ declare class Config {
|
|
|
188
191
|
directory?: string | undefined;
|
|
189
192
|
};
|
|
190
193
|
get agents(): {
|
|
191
|
-
default: string;
|
|
192
194
|
enabled: boolean;
|
|
195
|
+
default: string;
|
|
193
196
|
};
|
|
194
197
|
get commands(): {
|
|
195
198
|
enabled: boolean;
|
|
@@ -214,6 +217,7 @@ declare class Config {
|
|
|
214
217
|
specFile: string;
|
|
215
218
|
reviewFile: string;
|
|
216
219
|
};
|
|
220
|
+
get mode(): string | undefined;
|
|
217
221
|
get configPath(): string;
|
|
218
222
|
get projectPath(): string;
|
|
219
223
|
/**
|
|
@@ -292,7 +296,7 @@ declare class SkillEngine {
|
|
|
292
296
|
/**
|
|
293
297
|
* Agent types available in AIKit
|
|
294
298
|
*/
|
|
295
|
-
type AgentType = 'planner' | 'build' | 'rush' | 'review' | 'scout' | 'explore' | 'vision';
|
|
299
|
+
type AgentType = 'planner' | 'build' | 'rush' | 'review' | 'scout' | 'explore' | 'vision' | 'one-shot';
|
|
296
300
|
/**
|
|
297
301
|
* Agent definition
|
|
298
302
|
*/
|
package/dist/index.js
CHANGED
|
@@ -989,7 +989,8 @@ var ConfigSchema = z.object({
|
|
|
989
989
|
context7: z.boolean().default(false),
|
|
990
990
|
githubGrep: z.boolean().default(false),
|
|
991
991
|
gkg: z.boolean().default(false)
|
|
992
|
-
}).optional()
|
|
992
|
+
}).optional(),
|
|
993
|
+
mode: z.string().default("build").optional()
|
|
993
994
|
});
|
|
994
995
|
var Config = class {
|
|
995
996
|
config;
|
|
@@ -1023,6 +1024,9 @@ var Config = class {
|
|
|
1023
1024
|
get antiHallucination() {
|
|
1024
1025
|
return this.config.antiHallucination;
|
|
1025
1026
|
}
|
|
1027
|
+
get mode() {
|
|
1028
|
+
return this.config.mode;
|
|
1029
|
+
}
|
|
1026
1030
|
get configPath() {
|
|
1027
1031
|
return this.config.configPath;
|
|
1028
1032
|
}
|
|
@@ -1494,6 +1498,51 @@ For diagrams:
|
|
|
1494
1498
|
- Map to code structure
|
|
1495
1499
|
- Note data flow`,
|
|
1496
1500
|
delegatesTo: []
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
name: "one-shot",
|
|
1504
|
+
displayName: "@one-shot",
|
|
1505
|
+
description: "End-to-end autonomous task execution (beta)",
|
|
1506
|
+
useWhen: "Complete tasks autonomously from start to finish with minimal intervention",
|
|
1507
|
+
capabilities: [
|
|
1508
|
+
"Gather requirements interactively",
|
|
1509
|
+
"Create detailed implementation plans",
|
|
1510
|
+
"Execute tasks with dynamic agent selection",
|
|
1511
|
+
"Run quality gates until all pass",
|
|
1512
|
+
"Multi-level verification",
|
|
1513
|
+
"Auto-recovery from failures",
|
|
1514
|
+
"Generate completion proof"
|
|
1515
|
+
],
|
|
1516
|
+
systemPrompt: `You are the one-shot agent. Your role is to execute tasks autonomously from start to finish.
|
|
1517
|
+
|
|
1518
|
+
## Workflow Phases
|
|
1519
|
+
|
|
1520
|
+
1. **REQUIREMENTS**: Gather task type, scope, dependencies, success criteria
|
|
1521
|
+
2. **PLANNING**: Create detailed plan with @planner, recommend skills/tools
|
|
1522
|
+
3. **COMPLEXITY**: Auto-split large tasks (>30min, >10 files, >500 lines)
|
|
1523
|
+
4. **EXECUTION**: Execute with parallel tasks, dynamic agent delegation
|
|
1524
|
+
5. **TESTING**: Run quality gates (typecheck, test, lint, build) until all pass
|
|
1525
|
+
6. **VERIFICATION**: Multi-level verification (gates + manual + deployment)
|
|
1526
|
+
7. **COMPLETION**: Generate proof, update tracking, collect feedback
|
|
1527
|
+
|
|
1528
|
+
## Quality Gates (Must ALL Pass)
|
|
1529
|
+
- npm run typecheck - No type errors
|
|
1530
|
+
- npm run test - All tests pass
|
|
1531
|
+
- npm run lint - No linting errors
|
|
1532
|
+
- npm run build - Build succeeds
|
|
1533
|
+
|
|
1534
|
+
## Error Recovery (3 Levels)
|
|
1535
|
+
- Level 1: Auto-fix (type errors, lint --fix)
|
|
1536
|
+
- Level 2: Alternative approach via @review
|
|
1537
|
+
- Level 3: User intervention + follow-up task creation
|
|
1538
|
+
|
|
1539
|
+
## Best Practices
|
|
1540
|
+
- Use for straightforward tasks first
|
|
1541
|
+
- Consider /plan + /implement for complex features
|
|
1542
|
+
- Review changes before final approval
|
|
1543
|
+
|
|
1544
|
+
\u26A0\uFE0F This mode is experimental. Start with simpler tasks.`,
|
|
1545
|
+
delegatesTo: ["planner", "build", "review", "scout", "explore", "vision"]
|
|
1497
1546
|
}
|
|
1498
1547
|
];
|
|
1499
1548
|
var AgentManager = class {
|