@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/cli.js
CHANGED
|
@@ -2361,9 +2361,7 @@ var DEFAULT_COMMANDS = [
|
|
|
2361
2361
|
|
|
2362
2362
|
## Workflow
|
|
2363
2363
|
|
|
2364
|
-
|
|
2365
|
-
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!
|
|
2366
|
-
- The arguments contain the task description you should create
|
|
2364
|
+
Task description: $ARGUMENTS
|
|
2367
2365
|
|
|
2368
2366
|
1. Create a new bead file with unique ID
|
|
2369
2367
|
2. Add task description, status, and notes
|
|
@@ -2385,9 +2383,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2385
2383
|
|
|
2386
2384
|
## Workflow
|
|
2387
2385
|
|
|
2388
|
-
|
|
2389
|
-
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!
|
|
2390
|
-
- The arguments contain the feature/task description you should create a plan for
|
|
2386
|
+
Feature or task to plan: $ARGUMENTS
|
|
2391
2387
|
|
|
2392
2388
|
1. UNDERSTAND: Clarify requirements through Socratic questioning
|
|
2393
2389
|
2. RESEARCH: Check existing patterns and dependencies
|
|
@@ -2429,9 +2425,7 @@ Brief description of the goal.
|
|
|
2429
2425
|
|
|
2430
2426
|
## Workflow
|
|
2431
2427
|
|
|
2432
|
-
|
|
2433
|
-
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!
|
|
2434
|
-
- The arguments contain the task reference (e.g., task-001) or task description to implement
|
|
2428
|
+
Task reference or description: $ARGUMENTS
|
|
2435
2429
|
|
|
2436
2430
|
1. LOAD: Get task details from .beads/ or plan
|
|
2437
2431
|
2. TEST: Write failing tests first (RED)
|
|
@@ -2530,9 +2524,7 @@ Before marking complete:
|
|
|
2530
2524
|
|
|
2531
2525
|
## Workflow
|
|
2532
2526
|
|
|
2533
|
-
|
|
2534
|
-
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!
|
|
2535
|
-
- The arguments contain the task description to execute
|
|
2527
|
+
Task description: $ARGUMENTS
|
|
2536
2528
|
|
|
2537
2529
|
**Phase 1: Requirements Gathering**
|
|
2538
2530
|
- Interactive selection of task type (Feature, Bug Fix, Refactoring, etc.)
|
|
@@ -2622,9 +2614,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2622
2614
|
|
|
2623
2615
|
## Workflow
|
|
2624
2616
|
|
|
2625
|
-
|
|
2626
|
-
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!
|
|
2627
|
-
- The arguments contain the issue description you should fix
|
|
2617
|
+
Issue description: $ARGUMENTS
|
|
2628
2618
|
|
|
2629
2619
|
1. Identify issue
|
|
2630
2620
|
2. Make minimal change to fix
|
|
@@ -2641,10 +2631,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2641
2631
|
|
|
2642
2632
|
## Workflow
|
|
2643
2633
|
|
|
2644
|
-
|
|
2645
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user has provided optional file argument. Use it if provided!
|
|
2646
|
-
- If a file argument is provided, focus on fixing types in that specific file
|
|
2647
|
-
- If no file argument is provided, fix all type errors in the project
|
|
2634
|
+
Optional file argument: $ARGUMENTS
|
|
2648
2635
|
|
|
2649
2636
|
1. Run \`npm run typecheck\`
|
|
2650
2637
|
2. Parse error output
|
|
@@ -2679,10 +2666,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2679
2666
|
|
|
2680
2667
|
## Workflow
|
|
2681
2668
|
|
|
2682
|
-
|
|
2683
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user may have provided a commit message. Use it if provided!
|
|
2684
|
-
- If a commit message is provided, use that message directly
|
|
2685
|
-
- If no message is provided, generate a conventional commit message based on changes
|
|
2669
|
+
Optional commit message: $ARGUMENTS
|
|
2686
2670
|
|
|
2687
2671
|
1. Stage changes: \`git add -A\`
|
|
2688
2672
|
2. Generate commit message following conventional commits:
|
|
@@ -2704,10 +2688,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user may have pro
|
|
|
2704
2688
|
|
|
2705
2689
|
## Workflow
|
|
2706
2690
|
|
|
2707
|
-
|
|
2708
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user may have provided a PR title. Use it if provided!
|
|
2709
|
-
- If a title is provided, use that as the PR title
|
|
2710
|
-
- If no title is provided, generate a title based on changes
|
|
2691
|
+
Optional PR title: $ARGUMENTS
|
|
2711
2692
|
|
|
2712
2693
|
1. Push current branch
|
|
2713
2694
|
2. Generate PR description:
|
|
@@ -2728,9 +2709,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user may have pro
|
|
|
2728
2709
|
|
|
2729
2710
|
## Workflow
|
|
2730
2711
|
|
|
2731
|
-
|
|
2732
|
-
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!
|
|
2733
|
-
- The arguments contain the topic you should research
|
|
2712
|
+
Research topic: $ARGUMENTS
|
|
2734
2713
|
|
|
2735
2714
|
1. Search documentation and resources
|
|
2736
2715
|
2. Find code examples and patterns
|
|
@@ -2770,10 +2749,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2770
2749
|
|
|
2771
2750
|
## Workflow
|
|
2772
2751
|
|
|
2773
|
-
|
|
2774
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user may have provided a path. Use it if provided!
|
|
2775
|
-
- If a path is provided, review code in that specific directory
|
|
2776
|
-
- If no path is provided, review the entire codebase
|
|
2752
|
+
Optional path: $ARGUMENTS
|
|
2777
2753
|
|
|
2778
2754
|
1. Check code quality metrics
|
|
2779
2755
|
2. Identify:
|
|
@@ -2795,9 +2771,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user may have pro
|
|
|
2795
2771
|
|
|
2796
2772
|
## Workflow
|
|
2797
2773
|
|
|
2798
|
-
|
|
2799
|
-
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!
|
|
2800
|
-
- The arguments contain the feature you should design
|
|
2774
|
+
Feature to design: $ARGUMENTS
|
|
2801
2775
|
|
|
2802
2776
|
1. Requirements gathering (Socratic questioning)
|
|
2803
2777
|
2. Research existing solutions
|
|
@@ -2821,9 +2795,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2821
2795
|
|
|
2822
2796
|
## Workflow
|
|
2823
2797
|
|
|
2824
|
-
|
|
2825
|
-
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!
|
|
2826
|
-
- The arguments contain the problem you should brainstorm ideas for
|
|
2798
|
+
Problem to brainstorm: $ARGUMENTS
|
|
2827
2799
|
|
|
2828
2800
|
1. Define problem clearly
|
|
2829
2801
|
2. Generate diverse ideas (no judgement)
|
|
@@ -2842,9 +2814,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2842
2814
|
|
|
2843
2815
|
## Workflow
|
|
2844
2816
|
|
|
2845
|
-
|
|
2846
|
-
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!
|
|
2847
|
-
- The arguments contain the branch name to create
|
|
2817
|
+
Branch name: $ARGUMENTS
|
|
2848
2818
|
|
|
2849
2819
|
1. Ensure clean working directory
|
|
2850
2820
|
2. Pull latest main/master
|
|
@@ -2865,10 +2835,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
2865
2835
|
|
|
2866
2836
|
## Workflow
|
|
2867
2837
|
|
|
2868
|
-
|
|
2869
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user may have provided a target branch. Use it if provided!
|
|
2870
|
-
- If a target branch is provided, merge to that branch
|
|
2871
|
-
- If no target is provided, default to merging to main/master
|
|
2838
|
+
Optional target branch: $ARGUMENTS
|
|
2872
2839
|
|
|
2873
2840
|
1. Run quality gates first
|
|
2874
2841
|
2. Commit any pending changes
|
|
@@ -3061,10 +3028,7 @@ The analysis will be saved automatically for later reference.`
|
|
|
3061
3028
|
|
|
3062
3029
|
## Workflow
|
|
3063
3030
|
|
|
3064
|
-
|
|
3065
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user has provided optional file or pattern argument. Use it if provided!
|
|
3066
|
-
- If a file/pattern argument is provided, focus refactoring on that specific target
|
|
3067
|
-
- If no argument is provided, identify refactoring opportunities across the codebase
|
|
3031
|
+
Optional file or pattern: $ARGUMENTS
|
|
3068
3032
|
|
|
3069
3033
|
1. Ensure tests are in place
|
|
3070
3034
|
2. Identify refactoring opportunities
|
|
@@ -3082,10 +3046,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
3082
3046
|
|
|
3083
3047
|
## Workflow
|
|
3084
3048
|
|
|
3085
|
-
|
|
3086
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user has provided optional pattern argument. Use it if provided!
|
|
3087
|
-
- If a pattern argument is provided, run tests matching that pattern
|
|
3088
|
-
- If no argument is provided, run the full test suite
|
|
3049
|
+
Optional pattern: $ARGUMENTS
|
|
3089
3050
|
|
|
3090
3051
|
1. Run test command: \`npm run test\`
|
|
3091
3052
|
2. Parse and display results
|
|
@@ -3103,10 +3064,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user has provided
|
|
|
3103
3064
|
|
|
3104
3065
|
## Workflow
|
|
3105
3066
|
|
|
3106
|
-
|
|
3107
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user may have provided --fix flag. Check for it!
|
|
3108
|
-
- If --fix flag is provided, automatically fix issues
|
|
3109
|
-
- If no --fix flag is provided, only report issues without fixing
|
|
3067
|
+
Optional flags: $ARGUMENTS
|
|
3110
3068
|
|
|
3111
3069
|
1. Run linter: \`npm run lint\`
|
|
3112
3070
|
2. Parse errors and warnings
|
|
@@ -3124,10 +3082,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user may have pro
|
|
|
3124
3082
|
|
|
3125
3083
|
## Workflow
|
|
3126
3084
|
|
|
3127
|
-
|
|
3128
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user may have provided an environment. Use it if provided!
|
|
3129
|
-
- If an environment is provided, deploy to that environment
|
|
3130
|
-
- If no environment is provided, default to production or prompt user
|
|
3085
|
+
Optional environment: $ARGUMENTS
|
|
3131
3086
|
|
|
3132
3087
|
1. Run quality gates (test, lint, build)
|
|
3133
3088
|
2. Check for uncommitted changes
|
|
@@ -3145,10 +3100,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user may have pro
|
|
|
3145
3100
|
|
|
3146
3101
|
## Workflow
|
|
3147
3102
|
|
|
3148
|
-
|
|
3149
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user may have provided a version. Use it if provided!
|
|
3150
|
-
- If a version is provided, rollback to that specific version
|
|
3151
|
-
- If no version is provided, list available versions and prompt user
|
|
3103
|
+
Optional version: $ARGUMENTS
|
|
3152
3104
|
|
|
3153
3105
|
1. Identify current version
|
|
3154
3106
|
2. List available versions
|
|
@@ -3166,11 +3118,7 @@ IMPORTANT: Look at the "Arguments Provided" section below. The user may have pro
|
|
|
3166
3118
|
|
|
3167
3119
|
## Workflow
|
|
3168
3120
|
|
|
3169
|
-
|
|
3170
|
-
IMPORTANT: Look at the "Arguments Provided" section below. The user may have provided flags. Check for them!
|
|
3171
|
-
- If --tail N is provided, show only the last N lines
|
|
3172
|
-
- If --follow is provided, stream live log updates
|
|
3173
|
-
- If no flags are provided, show standard log output
|
|
3121
|
+
Optional flags: $ARGUMENTS
|
|
3174
3122
|
|
|
3175
3123
|
1. Determine log location
|
|
3176
3124
|
2. Apply filters if specified
|
|
@@ -3277,6 +3225,11 @@ Describe what this command does.
|
|
|
3277
3225
|
* Format command for agent consumption
|
|
3278
3226
|
*/
|
|
3279
3227
|
formatForAgent(command, args) {
|
|
3228
|
+
let content = command.content;
|
|
3229
|
+
if (args && args.trim()) {
|
|
3230
|
+
const argParts = args.trim().split(/\s+/);
|
|
3231
|
+
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] || "");
|
|
3232
|
+
}
|
|
3280
3233
|
let output = `# Command: /${command.name}
|
|
3281
3234
|
|
|
3282
3235
|
## Usage
|
|
@@ -3289,14 +3242,11 @@ ${command.description}
|
|
|
3289
3242
|
${command.examples.map((e) => `- \`${e}\``).join("\n")}
|
|
3290
3243
|
|
|
3291
3244
|
## Workflow
|
|
3292
|
-
${
|
|
3245
|
+
${content}
|
|
3293
3246
|
`;
|
|
3294
3247
|
if (args && args.trim()) {
|
|
3295
3248
|
output += `
|
|
3296
|
-
|
|
3297
|
-
\`${args}\`
|
|
3298
|
-
|
|
3299
|
-
**IMPORTANT**: The user provided these arguments with the command. Use them in the workflow as needed.
|
|
3249
|
+
User arguments are : ${args.trim()}
|
|
3300
3250
|
`;
|
|
3301
3251
|
}
|
|
3302
3252
|
return output;
|