@tdsoft-tech/aikit 0.1.15 → 0.1.16
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/dist/cli.js +27 -77
- package/dist/cli.js.map +1 -1
- package/dist/index.js +27 -77
- package/dist/index.js.map +1 -1
- package/dist/mcp-server.js +27 -77
- package/dist/mcp-server.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2083,9 +2083,7 @@ var DEFAULT_COMMANDS = [
|
|
|
2083
2083
|
|
|
2084
2084
|
## Workflow
|
|
2085
2085
|
|
|
2086
|
-
|
|
2087
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user has provided the task description with this command. Use it directly - do NOT ask the user for a task description!
|
|
2088
|
-
- The arguments contain the task description you should create
|
|
2086
|
+
Task description: $ARGUMENTS
|
|
2089
2087
|
|
|
2090
2088
|
1. Create a new bead file with unique ID
|
|
2091
2089
|
2. Add task description, status, and notes
|
|
@@ -2107,9 +2105,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2107
2105
|
|
|
2108
2106
|
## Workflow
|
|
2109
2107
|
|
|
2110
|
-
|
|
2111
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user has provided the feature or task to plan. Use it directly - do NOT ask the user what to plan!
|
|
2112
|
-
- The arguments contain the feature/task description you should create a plan for
|
|
2108
|
+
Feature or task to plan: $ARGUMENTS
|
|
2113
2109
|
|
|
2114
2110
|
1. UNDERSTAND: Clarify requirements through Socratic questioning
|
|
2115
2111
|
2. RESEARCH: Check existing patterns and dependencies
|
|
@@ -2151,9 +2147,7 @@ Brief description of the goal.
|
|
|
2151
2147
|
|
|
2152
2148
|
## Workflow
|
|
2153
2149
|
|
|
2154
|
-
|
|
2155
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user has provided the task reference or description. Use it directly - do NOT ask the user which task to implement!
|
|
2156
|
-
- The arguments contain the task reference (e.g., task-001) or task description to implement
|
|
2150
|
+
Task reference or description: $ARGUMENTS
|
|
2157
2151
|
|
|
2158
2152
|
1. LOAD: Get task details from .beads/ or plan
|
|
2159
2153
|
2. TEST: Write failing tests first (RED)
|
|
@@ -2252,9 +2246,7 @@ Before marking complete:
|
|
|
2252
2246
|
|
|
2253
2247
|
## Workflow
|
|
2254
2248
|
|
|
2255
|
-
|
|
2256
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user has provided the task description. Use it directly - do NOT ask the user what task to perform!
|
|
2257
|
-
- The arguments contain the task description to execute
|
|
2249
|
+
Task description: $ARGUMENTS
|
|
2258
2250
|
|
|
2259
2251
|
**Phase 1: Requirements Gathering**
|
|
2260
2252
|
- Interactive selection of task type (Feature, Bug Fix, Refactoring, etc.)
|
|
@@ -2344,9 +2336,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2344
2336
|
|
|
2345
2337
|
## Workflow
|
|
2346
2338
|
|
|
2347
|
-
|
|
2348
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user has provided the issue description. Use it directly - do NOT ask user what to fix!
|
|
2349
|
-
- The arguments contain the issue description you should fix
|
|
2339
|
+
Issue description: $ARGUMENTS
|
|
2350
2340
|
|
|
2351
2341
|
1. Identify issue
|
|
2352
2342
|
2. Make minimal change to fix
|
|
@@ -2363,10 +2353,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2363
2353
|
|
|
2364
2354
|
## Workflow
|
|
2365
2355
|
|
|
2366
|
-
|
|
2367
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user has provided optional file argument. Use it if provided!
|
|
2368
|
-
- If a file argument is provided, focus on fixing types in that specific file
|
|
2369
|
-
- If no file argument is provided, fix all type errors in the project
|
|
2356
|
+
Optional file argument: $ARGUMENTS
|
|
2370
2357
|
|
|
2371
2358
|
1. Run \`npm run typecheck\`
|
|
2372
2359
|
2. Parse error output
|
|
@@ -2401,10 +2388,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2401
2388
|
|
|
2402
2389
|
## Workflow
|
|
2403
2390
|
|
|
2404
|
-
|
|
2405
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user may have provided a commit message. Use it if provided!
|
|
2406
|
-
- If a commit message is provided, use that message directly
|
|
2407
|
-
- If no message is provided, generate a conventional commit message based on changes
|
|
2391
|
+
Optional commit message: $ARGUMENTS
|
|
2408
2392
|
|
|
2409
2393
|
1. Stage changes: \`git add -A\`
|
|
2410
2394
|
2. Generate commit message following conventional commits:
|
|
@@ -2426,10 +2410,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user may have pro
|
|
|
2426
2410
|
|
|
2427
2411
|
## Workflow
|
|
2428
2412
|
|
|
2429
|
-
|
|
2430
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user may have provided a PR title. Use it if provided!
|
|
2431
|
-
- If a title is provided, use that as the PR title
|
|
2432
|
-
- If no title is provided, generate a title based on changes
|
|
2413
|
+
Optional PR title: $ARGUMENTS
|
|
2433
2414
|
|
|
2434
2415
|
1. Push current branch
|
|
2435
2416
|
2. Generate PR description:
|
|
@@ -2450,9 +2431,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user may have pro
|
|
|
2450
2431
|
|
|
2451
2432
|
## Workflow
|
|
2452
2433
|
|
|
2453
|
-
|
|
2454
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user has provided the research topic. Use it directly - do NOT ask user what to research!
|
|
2455
|
-
- The arguments contain the topic you should research
|
|
2434
|
+
Research topic: $ARGUMENTS
|
|
2456
2435
|
|
|
2457
2436
|
1. Search documentation and resources
|
|
2458
2437
|
2. Find code examples and patterns
|
|
@@ -2492,10 +2471,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2492
2471
|
|
|
2493
2472
|
## Workflow
|
|
2494
2473
|
|
|
2495
|
-
|
|
2496
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user may have provided a path. Use it if provided!
|
|
2497
|
-
- If a path is provided, review code in that specific directory
|
|
2498
|
-
- If no path is provided, review the entire codebase
|
|
2474
|
+
Optional path: $ARGUMENTS
|
|
2499
2475
|
|
|
2500
2476
|
1. Check code quality metrics
|
|
2501
2477
|
2. Identify:
|
|
@@ -2517,9 +2493,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user may have pro
|
|
|
2517
2493
|
|
|
2518
2494
|
## Workflow
|
|
2519
2495
|
|
|
2520
|
-
|
|
2521
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user has provided the feature to design. Use it directly - do NOT ask user what to design!
|
|
2522
|
-
- The arguments contain the feature you should design
|
|
2496
|
+
Feature to design: $ARGUMENTS
|
|
2523
2497
|
|
|
2524
2498
|
1. Requirements gathering (Socratic questioning)
|
|
2525
2499
|
2. Research existing solutions
|
|
@@ -2543,9 +2517,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2543
2517
|
|
|
2544
2518
|
## Workflow
|
|
2545
2519
|
|
|
2546
|
-
|
|
2547
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user has provided a problem. Use it directly - do NOT ask the user what to brainstorm about!
|
|
2548
|
-
- The arguments contain the problem you should brainstorm ideas for
|
|
2520
|
+
Problem to brainstorm: $ARGUMENTS
|
|
2549
2521
|
|
|
2550
2522
|
1. Define problem clearly
|
|
2551
2523
|
2. Generate diverse ideas (no judgement)
|
|
@@ -2564,9 +2536,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2564
2536
|
|
|
2565
2537
|
## Workflow
|
|
2566
2538
|
|
|
2567
|
-
|
|
2568
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user has provided the branch name. Use it directly - do NOT ask user what to name the branch!
|
|
2569
|
-
- The arguments contain the branch name to create
|
|
2539
|
+
Branch name: $ARGUMENTS
|
|
2570
2540
|
|
|
2571
2541
|
1. Ensure clean working directory
|
|
2572
2542
|
2. Pull latest main/master
|
|
@@ -2587,10 +2557,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2587
2557
|
|
|
2588
2558
|
## Workflow
|
|
2589
2559
|
|
|
2590
|
-
|
|
2591
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user may have provided a target branch. Use it if provided!
|
|
2592
|
-
- If a target branch is provided, merge to that branch
|
|
2593
|
-
- If no target is provided, default to merging to main/master
|
|
2560
|
+
Optional target branch: $ARGUMENTS
|
|
2594
2561
|
|
|
2595
2562
|
1. Run quality gates first
|
|
2596
2563
|
2. Commit any pending changes
|
|
@@ -2783,10 +2750,7 @@ The analysis will be saved automatically for later reference.`
|
|
|
2783
2750
|
|
|
2784
2751
|
## Workflow
|
|
2785
2752
|
|
|
2786
|
-
|
|
2787
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user has provided optional file or pattern argument. Use it if provided!
|
|
2788
|
-
- If a file/pattern argument is provided, focus refactoring on that specific target
|
|
2789
|
-
- If no argument is provided, identify refactoring opportunities across the codebase
|
|
2753
|
+
Optional file or pattern: $ARGUMENTS
|
|
2790
2754
|
|
|
2791
2755
|
1. Ensure tests are in place
|
|
2792
2756
|
2. Identify refactoring opportunities
|
|
@@ -2804,10 +2768,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2804
2768
|
|
|
2805
2769
|
## Workflow
|
|
2806
2770
|
|
|
2807
|
-
|
|
2808
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user has provided optional pattern argument. Use it if provided!
|
|
2809
|
-
- If a pattern argument is provided, run tests matching that pattern
|
|
2810
|
-
- If no argument is provided, run the full test suite
|
|
2771
|
+
Optional pattern: $ARGUMENTS
|
|
2811
2772
|
|
|
2812
2773
|
1. Run test command: \`npm run test\`
|
|
2813
2774
|
2. Parse and display results
|
|
@@ -2825,10 +2786,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2825
2786
|
|
|
2826
2787
|
## Workflow
|
|
2827
2788
|
|
|
2828
|
-
|
|
2829
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user may have provided --fix flag. Check for it!
|
|
2830
|
-
- If --fix flag is provided, automatically fix issues
|
|
2831
|
-
- If no --fix flag is provided, only report issues without fixing
|
|
2789
|
+
Optional flags: $ARGUMENTS
|
|
2832
2790
|
|
|
2833
2791
|
1. Run linter: \`npm run lint\`
|
|
2834
2792
|
2. Parse errors and warnings
|
|
@@ -2846,10 +2804,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user may have pro
|
|
|
2846
2804
|
|
|
2847
2805
|
## Workflow
|
|
2848
2806
|
|
|
2849
|
-
|
|
2850
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user may have provided an environment. Use it if provided!
|
|
2851
|
-
- If an environment is provided, deploy to that environment
|
|
2852
|
-
- If no environment is provided, default to production or prompt user
|
|
2807
|
+
Optional environment: $ARGUMENTS
|
|
2853
2808
|
|
|
2854
2809
|
1. Run quality gates (test, lint, build)
|
|
2855
2810
|
2. Check for uncommitted changes
|
|
@@ -2867,10 +2822,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user may have pro
|
|
|
2867
2822
|
|
|
2868
2823
|
## Workflow
|
|
2869
2824
|
|
|
2870
|
-
|
|
2871
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user may have provided a version. Use it if provided!
|
|
2872
|
-
- If a version is provided, rollback to that specific version
|
|
2873
|
-
- If no version is provided, list available versions and prompt user
|
|
2825
|
+
Optional version: $ARGUMENTS
|
|
2874
2826
|
|
|
2875
2827
|
1. Identify current version
|
|
2876
2828
|
2. List available versions
|
|
@@ -2888,11 +2840,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user may have pro
|
|
|
2888
2840
|
|
|
2889
2841
|
## Workflow
|
|
2890
2842
|
|
|
2891
|
-
|
|
2892
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user may have provided flags. Check for them!
|
|
2893
|
-
- If --tail N is provided, show only the last N lines
|
|
2894
|
-
- If --follow is provided, stream live log updates
|
|
2895
|
-
- If no flags are provided, show standard log output
|
|
2843
|
+
Optional flags: $ARGUMENTS
|
|
2896
2844
|
|
|
2897
2845
|
1. Determine log location
|
|
2898
2846
|
2. Apply filters if specified
|
|
@@ -2999,6 +2947,11 @@ Describe what this command does.
|
|
|
2999
2947
|
* Format command for agent consumption
|
|
3000
2948
|
*/
|
|
3001
2949
|
formatForAgent(command, args) {
|
|
2950
|
+
let content = command.content;
|
|
2951
|
+
if (args && args.trim()) {
|
|
2952
|
+
const argParts = args.trim().split(/\s+/);
|
|
2953
|
+
content = content.replace(/\$ARGUMENTS/g, args.trim()).replace(/\$1/g, argParts[0] || "").replace(/\$2/g, argParts[1] || "").replace(/\$3/g, argParts[2] || "").replace(/\$4/g, argParts[3] || "").replace(/\$5/g, argParts[4] || "");
|
|
2954
|
+
}
|
|
3002
2955
|
let output = `# Command: /${command.name}
|
|
3003
2956
|
|
|
3004
2957
|
## Usage
|
|
@@ -3011,14 +2964,11 @@ ${command.description}
|
|
|
3011
2964
|
${command.examples.map((e) => `- \`${e}\``).join("\n")}
|
|
3012
2965
|
|
|
3013
2966
|
## Workflow
|
|
3014
|
-
${
|
|
2967
|
+
${content}
|
|
3015
2968
|
`;
|
|
3016
2969
|
if (args && args.trim()) {
|
|
3017
2970
|
output += `
|
|
3018
|
-
|
|
3019
|
-
\`${args}\`
|
|
3020
|
-
|
|
3021
|
-
**IMPORTANT**: The user provided these arguments with the command. Use them in the workflow as needed.
|
|
2971
|
+
User arguments are : ${args.trim()}
|
|
3022
2972
|
`;
|
|
3023
2973
|
}
|
|
3024
2974
|
return output;
|