aiwcli 0.9.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.
- package/README.md +1248 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +16 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +19 -0
- package/dist/commands/branch.d.ts +45 -0
- package/dist/commands/branch.js +488 -0
- package/dist/commands/clean.d.ts +34 -0
- package/dist/commands/clean.js +186 -0
- package/dist/commands/clear.d.ts +51 -0
- package/dist/commands/clear.js +835 -0
- package/dist/commands/init/index.d.ts +107 -0
- package/dist/commands/init/index.js +565 -0
- package/dist/commands/launch.d.ts +21 -0
- package/dist/commands/launch.js +108 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/base-command.d.ts +114 -0
- package/dist/lib/base-command.js +153 -0
- package/dist/lib/bmad-installer.d.ts +38 -0
- package/dist/lib/bmad-installer.js +145 -0
- package/dist/lib/claude-settings-types.d.ts +102 -0
- package/dist/lib/claude-settings-types.js +5 -0
- package/dist/lib/config.d.ts +25 -0
- package/dist/lib/config.js +46 -0
- package/dist/lib/debug.d.ts +39 -0
- package/dist/lib/debug.js +74 -0
- package/dist/lib/env-compat.d.ts +26 -0
- package/dist/lib/env-compat.js +35 -0
- package/dist/lib/errors.d.ts +126 -0
- package/dist/lib/errors.js +145 -0
- package/dist/lib/generic-merge.d.ts +74 -0
- package/dist/lib/generic-merge.js +105 -0
- package/dist/lib/git/branch.d.ts +67 -0
- package/dist/lib/git/branch.js +155 -0
- package/dist/lib/git/index.d.ts +11 -0
- package/dist/lib/git/index.js +13 -0
- package/dist/lib/git/safety-checks.d.ts +44 -0
- package/dist/lib/git/safety-checks.js +102 -0
- package/dist/lib/git/types.d.ts +31 -0
- package/dist/lib/git/types.js +6 -0
- package/dist/lib/git/worktree.d.ts +67 -0
- package/dist/lib/git/worktree.js +220 -0
- package/dist/lib/gitignore-manager.d.ts +10 -0
- package/dist/lib/gitignore-manager.js +60 -0
- package/dist/lib/hooks-merger.d.ts +28 -0
- package/dist/lib/hooks-merger.js +94 -0
- package/dist/lib/ide-path-resolver.d.ts +102 -0
- package/dist/lib/ide-path-resolver.js +129 -0
- package/dist/lib/index.d.ts +13 -0
- package/dist/lib/index.js +22 -0
- package/dist/lib/output.d.ts +51 -0
- package/dist/lib/output.js +76 -0
- package/dist/lib/paths.d.ts +66 -0
- package/dist/lib/paths.js +136 -0
- package/dist/lib/quiet.d.ts +12 -0
- package/dist/lib/quiet.js +17 -0
- package/dist/lib/settings-hierarchy.d.ts +42 -0
- package/dist/lib/settings-hierarchy.js +105 -0
- package/dist/lib/spawn.d.ts +105 -0
- package/dist/lib/spawn.js +157 -0
- package/dist/lib/spinner.d.ts +19 -0
- package/dist/lib/spinner.js +34 -0
- package/dist/lib/stdin.d.ts +48 -0
- package/dist/lib/stdin.js +60 -0
- package/dist/lib/template-installer.d.ts +92 -0
- package/dist/lib/template-installer.js +375 -0
- package/dist/lib/template-linter.d.ts +49 -0
- package/dist/lib/template-linter.js +173 -0
- package/dist/lib/template-merger.d.ts +47 -0
- package/dist/lib/template-merger.js +173 -0
- package/dist/lib/template-resolver.d.ts +20 -0
- package/dist/lib/template-resolver.js +60 -0
- package/dist/lib/terminal.d.ts +102 -0
- package/dist/lib/terminal.js +245 -0
- package/dist/lib/tty-detection.d.ts +62 -0
- package/dist/lib/tty-detection.js +83 -0
- package/dist/lib/user-utils.d.ts +5 -0
- package/dist/lib/user-utils.js +23 -0
- package/dist/lib/version.d.ts +99 -0
- package/dist/lib/version.js +144 -0
- package/dist/lib/watch-templates.d.ts +6 -0
- package/dist/lib/watch-templates.js +73 -0
- package/dist/lib/windsurf-hooks-hierarchy.d.ts +30 -0
- package/dist/lib/windsurf-hooks-hierarchy.js +66 -0
- package/dist/lib/windsurf-hooks-merger.d.ts +26 -0
- package/dist/lib/windsurf-hooks-merger.js +53 -0
- package/dist/lib/windsurf-hooks-types.d.ts +33 -0
- package/dist/lib/windsurf-hooks-types.js +5 -0
- package/dist/templates/CLAUDE.md +174 -0
- package/dist/templates/_shared/.claude/commands/handoff.md +14 -0
- package/dist/templates/_shared/.claude/settings.json +61 -0
- package/dist/templates/_shared/.codex/workflows/handoff.md +14 -0
- package/dist/templates/_shared/.windsurf/workflows/handoff.md +14 -0
- package/dist/templates/_shared/hooks/__init__.py +16 -0
- package/dist/templates/_shared/hooks/archive_plan.py +270 -0
- package/dist/templates/_shared/hooks/context_enforcer.py +621 -0
- package/dist/templates/_shared/hooks/context_monitor.py +322 -0
- package/dist/templates/_shared/hooks/file-suggestion.py +188 -0
- package/dist/templates/_shared/hooks/task_create_capture.py +194 -0
- package/dist/templates/_shared/hooks/task_update_capture.py +254 -0
- package/dist/templates/_shared/hooks/user_prompt_submit.py +157 -0
- package/dist/templates/_shared/lib/__init__.py +1 -0
- package/dist/templates/_shared/lib/base/__init__.py +49 -0
- package/dist/templates/_shared/lib/base/__pycache__/constants.cpython-313.pyc +0 -0
- package/dist/templates/_shared/lib/base/atomic_write.py +180 -0
- package/dist/templates/_shared/lib/base/constants.py +299 -0
- package/dist/templates/_shared/lib/base/inference.py +189 -0
- package/dist/templates/_shared/lib/base/utils.py +216 -0
- package/dist/templates/_shared/lib/context/__init__.py +119 -0
- package/dist/templates/_shared/lib/context/__pycache__/__init__.cpython-313.pyc +0 -0
- package/dist/templates/_shared/lib/context/__pycache__/cache.cpython-313.pyc +0 -0
- package/dist/templates/_shared/lib/context/__pycache__/context_manager.cpython-313.pyc +0 -0
- package/dist/templates/_shared/lib/context/__pycache__/event_log.cpython-313.pyc +0 -0
- package/dist/templates/_shared/lib/context/cache.py +446 -0
- package/dist/templates/_shared/lib/context/context_manager.py +1171 -0
- package/dist/templates/_shared/lib/context/discovery.py +486 -0
- package/dist/templates/_shared/lib/context/event_log.py +308 -0
- package/dist/templates/_shared/lib/context/plan_archive.py +247 -0
- package/dist/templates/_shared/lib/context/task_sync.py +367 -0
- package/dist/templates/_shared/lib/handoff/__init__.py +22 -0
- package/dist/templates/_shared/lib/handoff/document_generator.py +307 -0
- package/dist/templates/_shared/lib/templates/README.md +215 -0
- package/dist/templates/_shared/lib/templates/__init__.py +40 -0
- package/dist/templates/_shared/lib/templates/formatters.py +147 -0
- package/dist/templates/_shared/lib/templates/plan_context.py +119 -0
- package/dist/templates/_shared/scripts/save_handoff.py +99 -0
- package/dist/templates/_shared/workflows/handoff.md +212 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/ACCESSIBILITY-TESTER.md +80 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/ARCHITECT-REVIEWER.md +75 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/ASSUMPTION-CHAIN-TRACER.md +239 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/CLARITY-AUDITOR.md +109 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/CODE-REVIEWER.md +71 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/COMPLETENESS-CHECKER.md +104 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/CONTEXT-EXTRACTOR.md +93 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/DEVILS-ADVOCATE.md +223 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/DOCUMENTATION-REVIEWER.md +73 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/FEASIBILITY-ANALYST.md +93 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/FRESH-PERSPECTIVE.md +103 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/HANDOFF-READINESS.md +145 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/HIDDEN-COMPLEXITY-DETECTOR.md +248 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/INCENTIVE-MAPPER.md +235 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/PENETRATION-TESTER.md +80 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/PERFORMANCE-ENGINEER.md +76 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/PLAN-ORCHESTRATOR.md +141 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/PRECEDENT-FINDER.md +240 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/REVERSIBILITY-ANALYST.md +211 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/RISK-ASSESSOR.md +101 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/SECOND-ORDER-ANALYST.md +197 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/SIMPLICITY-GUARDIAN.md +97 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/SKEPTIC.md +349 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/STAKEHOLDER-ADVOCATE.md +106 -0
- package/dist/templates/cc-native/.claude/agents/cc-native/TRADE-OFF-ILLUMINATOR.md +205 -0
- package/dist/templates/cc-native/.claude/commands/cc-native/fresh-perspective.md +8 -0
- package/dist/templates/cc-native/.claude/commands/cc-native/specdev.md +10 -0
- package/dist/templates/cc-native/.claude/settings.json +119 -0
- package/dist/templates/cc-native/.windsurf/workflows/cc-native/fix.md +8 -0
- package/dist/templates/cc-native/.windsurf/workflows/cc-native/fresh-perspective.md +8 -0
- package/dist/templates/cc-native/.windsurf/workflows/cc-native/implement.md +8 -0
- package/dist/templates/cc-native/.windsurf/workflows/cc-native/research.md +8 -0
- package/dist/templates/cc-native/CC-NATIVE-README.md +192 -0
- package/dist/templates/cc-native/MIGRATION.md +86 -0
- package/dist/templates/cc-native/TEMPLATE-SCHEMA.md +331 -0
- package/dist/templates/cc-native/_cc-native/docs/PERMISSION_REQUEST_VERIFICATION.md +147 -0
- package/dist/templates/cc-native/_cc-native/hooks/__pycache__/add_plan_context.cpython-313.pyc +0 -0
- package/dist/templates/cc-native/_cc-native/hooks/__pycache__/archive_plan.cpython-313.pyc +0 -0
- package/dist/templates/cc-native/_cc-native/hooks/__pycache__/cc-native-agent-review.cpython-313.pyc +0 -0
- package/dist/templates/cc-native/_cc-native/hooks/__pycache__/cc-native-plan-review.cpython-313.pyc +0 -0
- package/dist/templates/cc-native/_cc-native/hooks/__pycache__/test_permission_request.cpython-313.pyc +0 -0
- package/dist/templates/cc-native/_cc-native/hooks/add_plan_context.py +150 -0
- package/dist/templates/cc-native/_cc-native/hooks/cc-native-plan-review.py +746 -0
- package/dist/templates/cc-native/_cc-native/hooks/suggest-fresh-perspective.py +339 -0
- package/dist/templates/cc-native/_cc-native/lib/__init__.py +57 -0
- package/dist/templates/cc-native/_cc-native/lib/__pycache__/__init__.cpython-313.pyc +0 -0
- package/dist/templates/cc-native/_cc-native/lib/__pycache__/orchestrator.cpython-313.pyc +0 -0
- package/dist/templates/cc-native/_cc-native/lib/__pycache__/state.cpython-313.pyc +0 -0
- package/dist/templates/cc-native/_cc-native/lib/__pycache__/utils.cpython-313.pyc +0 -0
- package/dist/templates/cc-native/_cc-native/lib/async_archive.py +68 -0
- package/dist/templates/cc-native/_cc-native/lib/atomic_write.py +98 -0
- package/dist/templates/cc-native/_cc-native/lib/constants.py +45 -0
- package/dist/templates/cc-native/_cc-native/lib/orchestrator.py +273 -0
- package/dist/templates/cc-native/_cc-native/lib/reviewers/__init__.py +28 -0
- package/dist/templates/cc-native/_cc-native/lib/reviewers/__pycache__/__init__.cpython-313.pyc +0 -0
- package/dist/templates/cc-native/_cc-native/lib/reviewers/__pycache__/agent.cpython-313.pyc +0 -0
- package/dist/templates/cc-native/_cc-native/lib/reviewers/__pycache__/base.cpython-313.pyc +0 -0
- package/dist/templates/cc-native/_cc-native/lib/reviewers/__pycache__/codex.cpython-313.pyc +0 -0
- package/dist/templates/cc-native/_cc-native/lib/reviewers/__pycache__/gemini.cpython-313.pyc +0 -0
- package/dist/templates/cc-native/_cc-native/lib/reviewers/agent.py +164 -0
- package/dist/templates/cc-native/_cc-native/lib/reviewers/base.py +89 -0
- package/dist/templates/cc-native/_cc-native/lib/reviewers/codex.py +119 -0
- package/dist/templates/cc-native/_cc-native/lib/reviewers/gemini.py +103 -0
- package/dist/templates/cc-native/_cc-native/lib/state.py +251 -0
- package/dist/templates/cc-native/_cc-native/lib/utils.py +830 -0
- package/dist/templates/cc-native/_cc-native/plan-review.config.json +76 -0
- package/dist/templates/cc-native/_cc-native/scripts/__pycache__/aggregate_agents.cpython-313.pyc +0 -0
- package/dist/templates/cc-native/_cc-native/scripts/aggregate_agents.py +151 -0
- package/dist/templates/cc-native/_cc-native/workflows/fresh-perspective.md +134 -0
- package/dist/templates/cc-native/_cc-native/workflows/specdev.md +9 -0
- package/dist/types/exit-codes.d.ts +11 -0
- package/dist/types/exit-codes.js +10 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.js +7 -0
- package/oclif.manifest.json +405 -0
- package/package.json +109 -0
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"branch": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {
|
|
6
|
+
"branchName": {
|
|
7
|
+
"description": "Name of the branch for worktree creation or deletion",
|
|
8
|
+
"name": "branchName",
|
|
9
|
+
"required": false
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"description": "Manage git branches with worktree support or launch in main/master\n\nMODES\n --main/-m: Launch aiw in main/master branch in new terminal\n --launch/-l <branch>: Create/open git worktree in sibling folder\n --delete/-d <branch>: Delete git branch and worktree folder\n --delete --all: Clean up all worktrees (soft delete, safe mode)\n\nSOFT DELETE (--delete --all)\n Safely removes worktrees that meet ALL criteria:\n • Not main/master branch\n • No unpushed commits to remote\n • No open pull requests\n • Not the current working directory\n Outputs summary of deleted and preserved worktrees\n\nREQUIREMENTS\n • Must be in a git repository\n • For --main: Must be on a branch (not already on main/master)\n • For --main: main or master branch must exist\n • For --delete: Must not be in the branch being deleted\n\nEXIT CODES\n 0 Success - Operation completed\n 1 General error - unexpected runtime failure\n 2 Invalid usage - requirements not met\n 3 Environment error - git not found or not a git repository",
|
|
13
|
+
"examples": [
|
|
14
|
+
"<%= config.bin %> <%= command.id %> --main",
|
|
15
|
+
"<%= config.bin %> <%= command.id %> --main --debug # Enable verbose logging",
|
|
16
|
+
"<%= config.bin %> <%= command.id %> --launch feature-name",
|
|
17
|
+
"<%= config.bin %> <%= command.id %> -l fix-bug-123",
|
|
18
|
+
"<%= config.bin %> <%= command.id %> --delete feature-branch",
|
|
19
|
+
"<%= config.bin %> <%= command.id %> -d fix-bug-123",
|
|
20
|
+
"<%= config.bin %> <%= command.id %> --delete --all # Clean up all safe-to-delete worktrees",
|
|
21
|
+
"<%= config.bin %> <%= command.id %> -d -a # Same as above, using short flags"
|
|
22
|
+
],
|
|
23
|
+
"flags": {
|
|
24
|
+
"debug": {
|
|
25
|
+
"char": "d",
|
|
26
|
+
"description": "Enable verbose debug logging",
|
|
27
|
+
"name": "debug",
|
|
28
|
+
"allowNo": false,
|
|
29
|
+
"type": "boolean"
|
|
30
|
+
},
|
|
31
|
+
"help": {
|
|
32
|
+
"char": "h",
|
|
33
|
+
"description": "Show help for command",
|
|
34
|
+
"name": "help",
|
|
35
|
+
"allowNo": false,
|
|
36
|
+
"type": "boolean"
|
|
37
|
+
},
|
|
38
|
+
"quiet": {
|
|
39
|
+
"char": "q",
|
|
40
|
+
"description": "Suppress informational output (errors still shown)",
|
|
41
|
+
"name": "quiet",
|
|
42
|
+
"allowNo": false,
|
|
43
|
+
"type": "boolean"
|
|
44
|
+
},
|
|
45
|
+
"main": {
|
|
46
|
+
"char": "m",
|
|
47
|
+
"description": "Launch aiw in main/master branch in new terminal",
|
|
48
|
+
"exclusive": [
|
|
49
|
+
"launch",
|
|
50
|
+
"delete"
|
|
51
|
+
],
|
|
52
|
+
"name": "main",
|
|
53
|
+
"allowNo": false,
|
|
54
|
+
"type": "boolean"
|
|
55
|
+
},
|
|
56
|
+
"launch": {
|
|
57
|
+
"char": "l",
|
|
58
|
+
"description": "Create git worktree in sibling folder or open if exists",
|
|
59
|
+
"exclusive": [
|
|
60
|
+
"main",
|
|
61
|
+
"delete"
|
|
62
|
+
],
|
|
63
|
+
"name": "launch",
|
|
64
|
+
"allowNo": false,
|
|
65
|
+
"type": "boolean"
|
|
66
|
+
},
|
|
67
|
+
"delete": {
|
|
68
|
+
"char": "d",
|
|
69
|
+
"description": "Delete git branch and worktree folder",
|
|
70
|
+
"exclusive": [
|
|
71
|
+
"main",
|
|
72
|
+
"launch"
|
|
73
|
+
],
|
|
74
|
+
"name": "delete",
|
|
75
|
+
"allowNo": false,
|
|
76
|
+
"type": "boolean"
|
|
77
|
+
},
|
|
78
|
+
"all": {
|
|
79
|
+
"char": "a",
|
|
80
|
+
"dependsOn": [
|
|
81
|
+
"delete"
|
|
82
|
+
],
|
|
83
|
+
"description": "With --delete: clean up all worktrees (soft delete, skips unpushed commits and open PRs)",
|
|
84
|
+
"name": "all",
|
|
85
|
+
"allowNo": false,
|
|
86
|
+
"type": "boolean"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"hasDynamicHelp": false,
|
|
90
|
+
"hiddenAliases": [],
|
|
91
|
+
"id": "branch",
|
|
92
|
+
"pluginAlias": "aiwcli",
|
|
93
|
+
"pluginName": "aiwcli",
|
|
94
|
+
"pluginType": "core",
|
|
95
|
+
"strict": true,
|
|
96
|
+
"enableJsonFlag": false,
|
|
97
|
+
"isESM": true,
|
|
98
|
+
"relativePath": [
|
|
99
|
+
"dist",
|
|
100
|
+
"commands",
|
|
101
|
+
"branch.js"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"clean": {
|
|
105
|
+
"aliases": [],
|
|
106
|
+
"args": {},
|
|
107
|
+
"description": "Clean output folder(s) for a specific method or all methods",
|
|
108
|
+
"examples": [
|
|
109
|
+
"<%= config.bin %> <%= command.id %> --method cc-native",
|
|
110
|
+
"<%= config.bin %> <%= command.id %> -m cc-native",
|
|
111
|
+
"<%= config.bin %> <%= command.id %> --all",
|
|
112
|
+
"<%= config.bin %> <%= command.id %> -a --dry-run",
|
|
113
|
+
"<%= config.bin %> <%= command.id %> --method cc-native --dry-run",
|
|
114
|
+
"<%= config.bin %> <%= command.id %> -m cc-native --force"
|
|
115
|
+
],
|
|
116
|
+
"flags": {
|
|
117
|
+
"debug": {
|
|
118
|
+
"char": "d",
|
|
119
|
+
"description": "Enable verbose debug logging",
|
|
120
|
+
"name": "debug",
|
|
121
|
+
"allowNo": false,
|
|
122
|
+
"type": "boolean"
|
|
123
|
+
},
|
|
124
|
+
"help": {
|
|
125
|
+
"char": "h",
|
|
126
|
+
"description": "Show help for command",
|
|
127
|
+
"name": "help",
|
|
128
|
+
"allowNo": false,
|
|
129
|
+
"type": "boolean"
|
|
130
|
+
},
|
|
131
|
+
"quiet": {
|
|
132
|
+
"char": "q",
|
|
133
|
+
"description": "Suppress informational output (errors still shown)",
|
|
134
|
+
"name": "quiet",
|
|
135
|
+
"allowNo": false,
|
|
136
|
+
"type": "boolean"
|
|
137
|
+
},
|
|
138
|
+
"all": {
|
|
139
|
+
"char": "a",
|
|
140
|
+
"description": "Clean all output folders",
|
|
141
|
+
"exclusive": [
|
|
142
|
+
"method"
|
|
143
|
+
],
|
|
144
|
+
"name": "all",
|
|
145
|
+
"allowNo": false,
|
|
146
|
+
"type": "boolean"
|
|
147
|
+
},
|
|
148
|
+
"dry-run": {
|
|
149
|
+
"char": "n",
|
|
150
|
+
"description": "Show what would be deleted without actually deleting",
|
|
151
|
+
"name": "dry-run",
|
|
152
|
+
"allowNo": false,
|
|
153
|
+
"type": "boolean"
|
|
154
|
+
},
|
|
155
|
+
"force": {
|
|
156
|
+
"char": "f",
|
|
157
|
+
"description": "Skip confirmation prompt",
|
|
158
|
+
"name": "force",
|
|
159
|
+
"allowNo": false,
|
|
160
|
+
"type": "boolean"
|
|
161
|
+
},
|
|
162
|
+
"method": {
|
|
163
|
+
"char": "m",
|
|
164
|
+
"description": "Method name whose output folder to clean (e.g., cc-native)",
|
|
165
|
+
"exclusive": [
|
|
166
|
+
"all"
|
|
167
|
+
],
|
|
168
|
+
"name": "method",
|
|
169
|
+
"hasDynamicHelp": false,
|
|
170
|
+
"multiple": false,
|
|
171
|
+
"type": "option"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"hasDynamicHelp": false,
|
|
175
|
+
"hiddenAliases": [],
|
|
176
|
+
"id": "clean",
|
|
177
|
+
"pluginAlias": "aiwcli",
|
|
178
|
+
"pluginName": "aiwcli",
|
|
179
|
+
"pluginType": "core",
|
|
180
|
+
"strict": true,
|
|
181
|
+
"enableJsonFlag": false,
|
|
182
|
+
"isESM": true,
|
|
183
|
+
"relativePath": [
|
|
184
|
+
"dist",
|
|
185
|
+
"commands",
|
|
186
|
+
"clean.js"
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
"clear": {
|
|
190
|
+
"aliases": [],
|
|
191
|
+
"args": {},
|
|
192
|
+
"description": "Clear workflow folders, output folders, IDE method folders (.claude/.windsurf), and update configurations",
|
|
193
|
+
"examples": [
|
|
194
|
+
"<%= config.bin %> <%= command.id %>",
|
|
195
|
+
"<%= config.bin %> <%= command.id %> --template cc-native",
|
|
196
|
+
"<%= config.bin %> <%= command.id %> -t cc-native",
|
|
197
|
+
"<%= config.bin %> <%= command.id %> --dry-run",
|
|
198
|
+
"<%= config.bin %> <%= command.id %> --force"
|
|
199
|
+
],
|
|
200
|
+
"flags": {
|
|
201
|
+
"debug": {
|
|
202
|
+
"char": "d",
|
|
203
|
+
"description": "Enable verbose debug logging",
|
|
204
|
+
"name": "debug",
|
|
205
|
+
"allowNo": false,
|
|
206
|
+
"type": "boolean"
|
|
207
|
+
},
|
|
208
|
+
"help": {
|
|
209
|
+
"char": "h",
|
|
210
|
+
"description": "Show help for command",
|
|
211
|
+
"name": "help",
|
|
212
|
+
"allowNo": false,
|
|
213
|
+
"type": "boolean"
|
|
214
|
+
},
|
|
215
|
+
"quiet": {
|
|
216
|
+
"char": "q",
|
|
217
|
+
"description": "Suppress informational output (errors still shown)",
|
|
218
|
+
"name": "quiet",
|
|
219
|
+
"allowNo": false,
|
|
220
|
+
"type": "boolean"
|
|
221
|
+
},
|
|
222
|
+
"dry-run": {
|
|
223
|
+
"char": "n",
|
|
224
|
+
"description": "Show what would be deleted without actually deleting",
|
|
225
|
+
"name": "dry-run",
|
|
226
|
+
"allowNo": false,
|
|
227
|
+
"type": "boolean"
|
|
228
|
+
},
|
|
229
|
+
"force": {
|
|
230
|
+
"char": "f",
|
|
231
|
+
"description": "Skip confirmation prompt",
|
|
232
|
+
"name": "force",
|
|
233
|
+
"allowNo": false,
|
|
234
|
+
"type": "boolean"
|
|
235
|
+
},
|
|
236
|
+
"template": {
|
|
237
|
+
"char": "t",
|
|
238
|
+
"description": "Clear only a specific template (e.g., cc-native)",
|
|
239
|
+
"name": "template",
|
|
240
|
+
"hasDynamicHelp": false,
|
|
241
|
+
"multiple": false,
|
|
242
|
+
"type": "option"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"hasDynamicHelp": false,
|
|
246
|
+
"hiddenAliases": [],
|
|
247
|
+
"id": "clear",
|
|
248
|
+
"pluginAlias": "aiwcli",
|
|
249
|
+
"pluginName": "aiwcli",
|
|
250
|
+
"pluginType": "core",
|
|
251
|
+
"strict": true,
|
|
252
|
+
"enableJsonFlag": false,
|
|
253
|
+
"isESM": true,
|
|
254
|
+
"relativePath": [
|
|
255
|
+
"dist",
|
|
256
|
+
"commands",
|
|
257
|
+
"clear.js"
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
"launch": {
|
|
261
|
+
"aliases": [],
|
|
262
|
+
"args": {},
|
|
263
|
+
"description": "Launch Claude Code or Codex with AIW configuration (sandbox disabled, supports parallel sessions)\n\nFLAGS\n --codex/-c: Launch Codex instead of Claude Code (uses --yolo flag)\n --new/-n: Open a new terminal in the current directory and launch there\n\nEXIT CODES\n 0 Success - AI assistant launched and exited successfully\n 1 General error - unexpected runtime failure\n 2 Invalid usage - check your arguments and flags\n 3 Environment error - CLI not found (install Claude Code from https://claude.ai/download or Codex from npm)",
|
|
264
|
+
"examples": [
|
|
265
|
+
"<%= config.bin %> <%= command.id %>",
|
|
266
|
+
"<%= config.bin %> <%= command.id %> --codex # Launch Codex with --yolo flag",
|
|
267
|
+
"<%= config.bin %> <%= command.id %> -c # Short form for --codex",
|
|
268
|
+
"<%= config.bin %> <%= command.id %> --new # Launch in a new terminal window",
|
|
269
|
+
"<%= config.bin %> <%= command.id %> -n # Short form for --new",
|
|
270
|
+
"<%= config.bin %> <%= command.id %> --codex --new # Launch Codex in new terminal",
|
|
271
|
+
"<%= config.bin %> <%= command.id %> --debug # Enable verbose logging",
|
|
272
|
+
"# Check exit code in Bash\n<%= config.bin %> <%= command.id %>\necho $?",
|
|
273
|
+
"# Check exit code in PowerShell\n<%= config.bin %> <%= command.id %>\necho $LASTEXITCODE"
|
|
274
|
+
],
|
|
275
|
+
"flags": {
|
|
276
|
+
"debug": {
|
|
277
|
+
"char": "d",
|
|
278
|
+
"description": "Enable verbose debug logging",
|
|
279
|
+
"name": "debug",
|
|
280
|
+
"allowNo": false,
|
|
281
|
+
"type": "boolean"
|
|
282
|
+
},
|
|
283
|
+
"help": {
|
|
284
|
+
"char": "h",
|
|
285
|
+
"description": "Show help for command",
|
|
286
|
+
"name": "help",
|
|
287
|
+
"allowNo": false,
|
|
288
|
+
"type": "boolean"
|
|
289
|
+
},
|
|
290
|
+
"quiet": {
|
|
291
|
+
"char": "q",
|
|
292
|
+
"description": "Suppress informational output (errors still shown)",
|
|
293
|
+
"name": "quiet",
|
|
294
|
+
"allowNo": false,
|
|
295
|
+
"type": "boolean"
|
|
296
|
+
},
|
|
297
|
+
"codex": {
|
|
298
|
+
"char": "c",
|
|
299
|
+
"description": "Launch Codex instead of Claude Code (uses --yolo flag for full auto mode)",
|
|
300
|
+
"name": "codex",
|
|
301
|
+
"allowNo": false,
|
|
302
|
+
"type": "boolean"
|
|
303
|
+
},
|
|
304
|
+
"new": {
|
|
305
|
+
"char": "n",
|
|
306
|
+
"description": "Open a new terminal in the current directory and run aiw launch there",
|
|
307
|
+
"name": "new",
|
|
308
|
+
"allowNo": false,
|
|
309
|
+
"type": "boolean"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"hasDynamicHelp": false,
|
|
313
|
+
"hiddenAliases": [],
|
|
314
|
+
"id": "launch",
|
|
315
|
+
"pluginAlias": "aiwcli",
|
|
316
|
+
"pluginName": "aiwcli",
|
|
317
|
+
"pluginType": "core",
|
|
318
|
+
"strict": true,
|
|
319
|
+
"enableJsonFlag": false,
|
|
320
|
+
"isESM": true,
|
|
321
|
+
"relativePath": [
|
|
322
|
+
"dist",
|
|
323
|
+
"commands",
|
|
324
|
+
"launch.js"
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
"init": {
|
|
328
|
+
"aliases": [],
|
|
329
|
+
"args": {},
|
|
330
|
+
"description": "Initialize AIW tools and integrations with specified template method",
|
|
331
|
+
"examples": [
|
|
332
|
+
"<%= config.bin %> <%= command.id %> --interactive",
|
|
333
|
+
"<%= config.bin %> <%= command.id %> --method cc-native",
|
|
334
|
+
"<%= config.bin %> <%= command.id %> --method cc-native --ide windsurf",
|
|
335
|
+
"<%= config.bin %> <%= command.id %> --method cc-native --ide claude --ide windsurf"
|
|
336
|
+
],
|
|
337
|
+
"flags": {
|
|
338
|
+
"debug": {
|
|
339
|
+
"char": "d",
|
|
340
|
+
"description": "Enable verbose debug logging",
|
|
341
|
+
"name": "debug",
|
|
342
|
+
"allowNo": false,
|
|
343
|
+
"type": "boolean"
|
|
344
|
+
},
|
|
345
|
+
"help": {
|
|
346
|
+
"char": "h",
|
|
347
|
+
"description": "Show help for command",
|
|
348
|
+
"name": "help",
|
|
349
|
+
"allowNo": false,
|
|
350
|
+
"type": "boolean"
|
|
351
|
+
},
|
|
352
|
+
"quiet": {
|
|
353
|
+
"char": "q",
|
|
354
|
+
"description": "Suppress informational output (errors still shown)",
|
|
355
|
+
"name": "quiet",
|
|
356
|
+
"allowNo": false,
|
|
357
|
+
"type": "boolean"
|
|
358
|
+
},
|
|
359
|
+
"interactive": {
|
|
360
|
+
"char": "I",
|
|
361
|
+
"description": "Run interactive setup wizard",
|
|
362
|
+
"name": "interactive",
|
|
363
|
+
"allowNo": false,
|
|
364
|
+
"type": "boolean"
|
|
365
|
+
},
|
|
366
|
+
"method": {
|
|
367
|
+
"char": "m",
|
|
368
|
+
"description": "Template method to initialize",
|
|
369
|
+
"name": "method",
|
|
370
|
+
"required": false,
|
|
371
|
+
"hasDynamicHelp": false,
|
|
372
|
+
"multiple": false,
|
|
373
|
+
"type": "option"
|
|
374
|
+
},
|
|
375
|
+
"ide": {
|
|
376
|
+
"char": "i",
|
|
377
|
+
"description": "IDEs to configure (specify multiple: --ide claude --ide windsurf)",
|
|
378
|
+
"name": "ide",
|
|
379
|
+
"default": [
|
|
380
|
+
"claude"
|
|
381
|
+
],
|
|
382
|
+
"hasDynamicHelp": false,
|
|
383
|
+
"multiple": true,
|
|
384
|
+
"type": "option"
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"hasDynamicHelp": false,
|
|
388
|
+
"hiddenAliases": [],
|
|
389
|
+
"id": "init",
|
|
390
|
+
"pluginAlias": "aiwcli",
|
|
391
|
+
"pluginName": "aiwcli",
|
|
392
|
+
"pluginType": "core",
|
|
393
|
+
"strict": true,
|
|
394
|
+
"enableJsonFlag": false,
|
|
395
|
+
"isESM": true,
|
|
396
|
+
"relativePath": [
|
|
397
|
+
"dist",
|
|
398
|
+
"commands",
|
|
399
|
+
"init",
|
|
400
|
+
"index.js"
|
|
401
|
+
]
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"version": "0.9.0"
|
|
405
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "aiwcli",
|
|
3
|
+
"description": "AI Workflow CLI - Command-line interface for AI-powered workflows",
|
|
4
|
+
"version": "0.9.0",
|
|
5
|
+
"author": "jofu-tofu",
|
|
6
|
+
"bin": {
|
|
7
|
+
"aiw": "./bin/run.js"
|
|
8
|
+
},
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/jofu-tofu/AI-Workflow-CLI/issues"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@inquirer/prompts": "^8.2.0",
|
|
14
|
+
"@oclif/core": "^4",
|
|
15
|
+
"@oclif/plugin-autocomplete": "^3.2.39",
|
|
16
|
+
"@oclif/plugin-help": "^6",
|
|
17
|
+
"@oclif/plugin-plugins": "^5",
|
|
18
|
+
"chalk": "^5.6.2",
|
|
19
|
+
"clipboardy": "^5.0.2",
|
|
20
|
+
"ora": "^9.0.0"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@eslint/compat": "^1",
|
|
24
|
+
"@oclif/prettier-config": "^0.2.1",
|
|
25
|
+
"@oclif/test": "^4",
|
|
26
|
+
"@types/chai": "^4",
|
|
27
|
+
"@types/mocha": "^10",
|
|
28
|
+
"@types/node": "^18",
|
|
29
|
+
"@types/sinon": "^21.0.0",
|
|
30
|
+
"c8": "^10.1.3",
|
|
31
|
+
"chai": "^4",
|
|
32
|
+
"chokidar": "^5.0.0",
|
|
33
|
+
"eslint": "^9",
|
|
34
|
+
"eslint-config-oclif": "^6",
|
|
35
|
+
"eslint-config-prettier": "^10",
|
|
36
|
+
"mocha": "^10",
|
|
37
|
+
"npm-run-all2": "^8.0.4",
|
|
38
|
+
"oclif": "^4",
|
|
39
|
+
"prettier": "^3.7.4",
|
|
40
|
+
"shx": "^0.3.3",
|
|
41
|
+
"sinon": "^21.0.1",
|
|
42
|
+
"stdout-stderr": "^0.1.13",
|
|
43
|
+
"strip-ansi": "^7.1.2",
|
|
44
|
+
"ts-node": "^10",
|
|
45
|
+
"typescript": "^5"
|
|
46
|
+
},
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">=18.0.0"
|
|
49
|
+
},
|
|
50
|
+
"files": [
|
|
51
|
+
"./bin",
|
|
52
|
+
"./dist",
|
|
53
|
+
"./oclif.manifest.json"
|
|
54
|
+
],
|
|
55
|
+
"homepage": "https://github.com/jofu-tofu/AI-Workflow-CLI#readme",
|
|
56
|
+
"keywords": [
|
|
57
|
+
"oclif",
|
|
58
|
+
"cli",
|
|
59
|
+
"aiwcli",
|
|
60
|
+
"ai-workflow",
|
|
61
|
+
"claude-code",
|
|
62
|
+
"ai-cli"
|
|
63
|
+
],
|
|
64
|
+
"license": "MIT",
|
|
65
|
+
"main": "dist/index.js",
|
|
66
|
+
"type": "module",
|
|
67
|
+
"oclif": {
|
|
68
|
+
"bin": "aiw",
|
|
69
|
+
"dirname": "aiw",
|
|
70
|
+
"commands": "./dist/commands",
|
|
71
|
+
"plugins": [
|
|
72
|
+
"@oclif/plugin-autocomplete",
|
|
73
|
+
"@oclif/plugin-help",
|
|
74
|
+
"@oclif/plugin-plugins"
|
|
75
|
+
],
|
|
76
|
+
"repositoryPrefix": "https://github.com/jofu-tofu/AI-Workflow-CLI/blob/main/<%- commandPath %>",
|
|
77
|
+
"topicSeparator": " "
|
|
78
|
+
},
|
|
79
|
+
"repository": {
|
|
80
|
+
"type": "git",
|
|
81
|
+
"url": "git+https://github.com/jofu-tofu/AI-Workflow-CLI.git"
|
|
82
|
+
},
|
|
83
|
+
"scripts": {
|
|
84
|
+
"build": "shx rm -rf dist && tsc -b && npm run build:templates",
|
|
85
|
+
"build:templates": "shx mkdir -p dist/templates && shx cp -r src/templates/_shared dist/templates/ && shx cp -r src/templates/cc-native dist/templates/ && shx cp src/templates/CLAUDE.md dist/templates/",
|
|
86
|
+
"build:watch": "tsc -b --watch",
|
|
87
|
+
"check": "npm run lint && npm run build",
|
|
88
|
+
"clean": "shx rm -rf dist",
|
|
89
|
+
"dev": "npm run build && node --loader ts-node/esm bin/dev.js",
|
|
90
|
+
"dev:watch": "run-p build:watch templates:watch",
|
|
91
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
92
|
+
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
93
|
+
"lint": "eslint",
|
|
94
|
+
"lint:fix": "eslint --fix",
|
|
95
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
96
|
+
"posttest": "npm run lint",
|
|
97
|
+
"prepack": "oclif manifest && oclif readme",
|
|
98
|
+
"templates:watch": "node --loader ts-node/esm src/lib/watch-templates.ts",
|
|
99
|
+
"test": "npm run test:build && mocha --forbid-only \"dist-test/test/**/*.test.js\"",
|
|
100
|
+
"test:build": "tsc -p tsconfig.test.json && shx cp -r src/templates dist-test/src/",
|
|
101
|
+
"test:coverage": "c8 npm test",
|
|
102
|
+
"test:integration": "npm run test:build && mocha \"dist-test/test/integration/**/*.test.js\"",
|
|
103
|
+
"test:unit": "npm run test:build && mocha \"dist-test/test/{commands,lib,types}/**/*.test.js\"",
|
|
104
|
+
"test:watch": "run-p \"tsc -p tsconfig.test.json --watch\" \"mocha --watch dist-test/test/{commands,lib}/**/*.test.js\"",
|
|
105
|
+
"version": "oclif readme && git add README.md",
|
|
106
|
+
"watch": "run-p dev:watch test:watch"
|
|
107
|
+
},
|
|
108
|
+
"types": "dist/index.d.ts"
|
|
109
|
+
}
|