aico-cli 2.0.36 → 2.0.38
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/chunks/simple-config.mjs +313 -83
- package/dist/cli.mjs +16 -15
- package/dist/index.d.mts +91 -41
- package/dist/index.d.ts +91 -41
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/templates/claude/CLAUDE.md +2 -0
- package/templates/claude/settings.json +98 -0
- package/templates/codebuddy/CODEBUDDY.md +2 -0
- package/templates/codebuddy/settings.json +128 -0
- package/templates/settings.json +7 -7
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sandbox": {
|
|
3
|
+
"enabled": true,
|
|
4
|
+
"autoAllowBashIfSandboxed": true,
|
|
5
|
+
"network": {
|
|
6
|
+
"allowedDomains": [],
|
|
7
|
+
"deniedDomains": [],
|
|
8
|
+
"allowLocalBinding": false,
|
|
9
|
+
"allowUnixSockets": [],
|
|
10
|
+
"allowAllUnixSockets": false
|
|
11
|
+
},
|
|
12
|
+
"filesystem": {
|
|
13
|
+
"denyRead": [
|
|
14
|
+
"~/.ssh",
|
|
15
|
+
"~/.aws",
|
|
16
|
+
"~/.gcp"
|
|
17
|
+
],
|
|
18
|
+
"allowWrite": [
|
|
19
|
+
".",
|
|
20
|
+
"/dev/stdout",
|
|
21
|
+
"/dev/stderr",
|
|
22
|
+
"/dev/null",
|
|
23
|
+
"/dev/tty",
|
|
24
|
+
"/dev/dtracehelper",
|
|
25
|
+
"/dev/autofs_nowait",
|
|
26
|
+
"/tmp/codebuddy",
|
|
27
|
+
"/private/tmp/codebuddy",
|
|
28
|
+
"~/.npm/_logs",
|
|
29
|
+
"~/.codebuddy/debug",
|
|
30
|
+
"~/.codebuddy/statsig"
|
|
31
|
+
],
|
|
32
|
+
"denyWrite": []
|
|
33
|
+
},
|
|
34
|
+
"excludedCommands": [],
|
|
35
|
+
"allowUnsandboxedCommands": true,
|
|
36
|
+
"enableWeakerNestedSandbox": false
|
|
37
|
+
},
|
|
38
|
+
"$schema": "https://json.schemastore.org/claude-code-settings.json",
|
|
39
|
+
"includeCoAuthoredBy": false,
|
|
40
|
+
"permissions": {
|
|
41
|
+
"allow": [
|
|
42
|
+
"Bash",
|
|
43
|
+
"LS",
|
|
44
|
+
"Read",
|
|
45
|
+
"Agent",
|
|
46
|
+
"Write",
|
|
47
|
+
"Edit",
|
|
48
|
+
"MultiEdit",
|
|
49
|
+
"Glob",
|
|
50
|
+
"Grep",
|
|
51
|
+
"WebFetch",
|
|
52
|
+
"WebSearch",
|
|
53
|
+
"TodoWrite",
|
|
54
|
+
"NotebookRead",
|
|
55
|
+
"NotebookEdit",
|
|
56
|
+
"mcp__intention-coding",
|
|
57
|
+
"mcp__context7",
|
|
58
|
+
"mcp__open-websearch",
|
|
59
|
+
"mcp__chrome-devtools"
|
|
60
|
+
],
|
|
61
|
+
"deny": []
|
|
62
|
+
},
|
|
63
|
+
"hooks": {
|
|
64
|
+
"PreToolUse": [
|
|
65
|
+
{
|
|
66
|
+
"matcher": "Edit|Write",
|
|
67
|
+
"hooks": [
|
|
68
|
+
{
|
|
69
|
+
"type": "command",
|
|
70
|
+
"command": "npx tsx ~/.codebuddy/hooks/scripts/PreToolUse/pre-tool-use.ts",
|
|
71
|
+
"timeout": 10
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"PostToolUse": [
|
|
77
|
+
{
|
|
78
|
+
"matcher": "Edit|Write",
|
|
79
|
+
"hooks": [
|
|
80
|
+
{
|
|
81
|
+
"type": "command",
|
|
82
|
+
"command": "npx tsx ~/.codebuddy/hooks/scripts/PostToolUse/post-tool-use.ts",
|
|
83
|
+
"timeout": 10
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"UserPromptSubmit": [
|
|
89
|
+
{
|
|
90
|
+
"hooks": [
|
|
91
|
+
{
|
|
92
|
+
"type": "command",
|
|
93
|
+
"command": "npx tsx ~/.codebuddy/hooks/scripts/UserPromptSubmit/user-prompt-submit.ts",
|
|
94
|
+
"timeout": 10
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"Notification": [
|
|
100
|
+
{
|
|
101
|
+
"hooks": [
|
|
102
|
+
{
|
|
103
|
+
"type": "command",
|
|
104
|
+
"command": "npx tsx ~/.codebuddy/hooks/scripts/Notification/notification.ts",
|
|
105
|
+
"timeout": 10
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"Stop": [
|
|
111
|
+
{
|
|
112
|
+
"hooks": [
|
|
113
|
+
{
|
|
114
|
+
"type": "command",
|
|
115
|
+
"command": "npx tsx ~/.codebuddy/hooks/scripts/Stop/stop.ts",
|
|
116
|
+
"timeout": 10
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"statusLine": {
|
|
123
|
+
"type": "command",
|
|
124
|
+
"command": "~/.codebuddy/ccline/ccline",
|
|
125
|
+
"padding": 0
|
|
126
|
+
},
|
|
127
|
+
"enterpriseEndpoint": "https://e.cnpc.com.cn/"
|
|
128
|
+
}
|
package/templates/settings.json
CHANGED
|
@@ -38,19 +38,19 @@
|
|
|
38
38
|
"hooks": [
|
|
39
39
|
{
|
|
40
40
|
"type": "command",
|
|
41
|
-
"command":
|
|
41
|
+
"command": "npx tsx ~/.claude/hooks/scripts/PreToolUse/pre-tool-use.ts",
|
|
42
42
|
"timeout": 10
|
|
43
43
|
}
|
|
44
44
|
]
|
|
45
45
|
}
|
|
46
46
|
],
|
|
47
|
-
"PostToolUse":[
|
|
47
|
+
"PostToolUse": [
|
|
48
48
|
{
|
|
49
49
|
"matcher": "Edit|Write",
|
|
50
50
|
"hooks": [
|
|
51
51
|
{
|
|
52
52
|
"type": "command",
|
|
53
|
-
"command":
|
|
53
|
+
"command": "npx tsx ~/.claude/hooks/scripts/PostToolUse/post-tool-use.ts",
|
|
54
54
|
"timeout": 10
|
|
55
55
|
}
|
|
56
56
|
]
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"hooks": [
|
|
62
62
|
{
|
|
63
63
|
"type": "command",
|
|
64
|
-
"command": "
|
|
64
|
+
"command": "npx tsx ~/.claude/hooks/scripts/UserPromptSubmit/user-prompt-submit.ts",
|
|
65
65
|
"timeout": 10
|
|
66
66
|
}
|
|
67
67
|
]
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"hooks": [
|
|
73
73
|
{
|
|
74
74
|
"type": "command",
|
|
75
|
-
"command": "
|
|
75
|
+
"command": "npx tsx ~/.claude/hooks/scripts/Notification/notification.ts",
|
|
76
76
|
"timeout": 10
|
|
77
77
|
}
|
|
78
78
|
]
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"hooks": [
|
|
84
84
|
{
|
|
85
85
|
"type": "command",
|
|
86
|
-
"command": "
|
|
86
|
+
"command": "npx tsx ~/.claude/hooks/scripts/Stop/stop.ts",
|
|
87
87
|
"timeout": 10
|
|
88
88
|
}
|
|
89
89
|
]
|
|
@@ -95,4 +95,4 @@
|
|
|
95
95
|
"command": "~/.claude/ccline/ccline",
|
|
96
96
|
"padding": 0
|
|
97
97
|
}
|
|
98
|
-
}
|
|
98
|
+
}
|