@unity-china/codely-cli 1.0.0-beta.48 → 1.0.0-beta.50
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/bundle/gemini.js +1955 -1625
- package/bundle/gemini.js.LEGAL.txt +162 -183
- package/bundle/policies/plan.toml +113 -0
- package/bundle/policies/read-only.toml +61 -0
- package/bundle/policies/write.toml +44 -0
- package/bundle/policies/yolo.toml +9 -0
- package/bundle/web-ui/dist/public/app.css +536 -1
- package/bundle/web-ui/dist/public/app.js +44 -42
- package/package.json +8 -7
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 Qwen
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
6
11
|
/**
|
|
7
12
|
* @license
|
|
8
13
|
* Copyright 2025 Codely
|
|
@@ -21,159 +26,25 @@
|
|
|
21
26
|
*/
|
|
22
27
|
/**
|
|
23
28
|
* @license
|
|
24
|
-
* Copyright
|
|
29
|
+
* Copyright 2026 Google LLC
|
|
25
30
|
* SPDX-License-Identifier: Apache-2.0
|
|
26
31
|
*/
|
|
27
32
|
/**
|
|
28
33
|
* @license
|
|
29
|
-
* Copyright 2026
|
|
34
|
+
* Copyright 2026
|
|
35
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* @license
|
|
39
|
+
* Copyright 2026 Codely
|
|
30
40
|
* SPDX-License-Identifier: Apache-2.0
|
|
31
41
|
*/
|
|
32
42
|
|
|
33
43
|
Bundled license information:
|
|
34
44
|
|
|
35
|
-
react/cjs/react.production.js:
|
|
36
|
-
/**
|
|
37
|
-
* @license React
|
|
38
|
-
* react.production.js
|
|
39
|
-
*
|
|
40
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
41
|
-
*
|
|
42
|
-
* This source code is licensed under the MIT license found in the
|
|
43
|
-
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
react/cjs/react.development.js:
|
|
47
|
-
/**
|
|
48
|
-
* @license React
|
|
49
|
-
* react.development.js
|
|
50
|
-
*
|
|
51
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
52
|
-
*
|
|
53
|
-
* This source code is licensed under the MIT license found in the
|
|
54
|
-
* LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
react-reconciler/cjs/react-reconciler-constants.production.js:
|
|
58
|
-
/**
|
|
59
|
-
* @license React
|
|
60
|
-
* react-reconciler-constants.production.js
|
|
61
|
-
*
|
|
62
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the MIT license found in the
|
|
65
|
-
* LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/
|
|
67
|
-
|
|
68
|
-
react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
69
|
-
/**
|
|
70
|
-
* @license React
|
|
71
|
-
* react-reconciler-constants.development.js
|
|
72
|
-
*
|
|
73
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
74
|
-
*
|
|
75
|
-
* This source code is licensed under the MIT license found in the
|
|
76
|
-
* LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/
|
|
78
|
-
|
|
79
|
-
scheduler/cjs/scheduler.production.js:
|
|
80
|
-
/**
|
|
81
|
-
* @license React
|
|
82
|
-
* scheduler.production.js
|
|
83
|
-
*
|
|
84
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
85
|
-
*
|
|
86
|
-
* This source code is licensed under the MIT license found in the
|
|
87
|
-
* LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/
|
|
89
|
-
|
|
90
|
-
scheduler/cjs/scheduler.development.js:
|
|
91
|
-
/**
|
|
92
|
-
* @license React
|
|
93
|
-
* scheduler.development.js
|
|
94
|
-
*
|
|
95
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the MIT license found in the
|
|
98
|
-
* LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/
|
|
100
|
-
|
|
101
|
-
react-reconciler/cjs/react-reconciler.production.js:
|
|
102
|
-
/**
|
|
103
|
-
* @license React
|
|
104
|
-
* react-reconciler.production.js
|
|
105
|
-
*
|
|
106
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the MIT license found in the
|
|
109
|
-
* LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/
|
|
111
|
-
|
|
112
|
-
react-reconciler/cjs/react-reconciler.development.js:
|
|
113
|
-
/**
|
|
114
|
-
* @license React
|
|
115
|
-
* react-reconciler.development.js
|
|
116
|
-
*
|
|
117
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
118
|
-
*
|
|
119
|
-
* This source code is licensed under the MIT license found in the
|
|
120
|
-
* LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/
|
|
122
|
-
|
|
123
|
-
react-devtools-core/dist/backend.js:
|
|
124
|
-
/**
|
|
125
|
-
* @license React
|
|
126
|
-
* react-debug-tools.production.js
|
|
127
|
-
*
|
|
128
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
129
|
-
*
|
|
130
|
-
* This source code is licensed under the MIT license found in the
|
|
131
|
-
* LICENSE file in the root directory of this source tree.
|
|
132
|
-
*/
|
|
133
|
-
/**
|
|
134
|
-
* @license React
|
|
135
|
-
* react.production.js
|
|
136
|
-
*
|
|
137
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
138
|
-
*
|
|
139
|
-
* This source code is licensed under the MIT license found in the
|
|
140
|
-
* LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/
|
|
142
|
-
|
|
143
45
|
safe-buffer/index.js:
|
|
144
46
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
145
47
|
|
|
146
|
-
@google/genai/dist/node/index.mjs:
|
|
147
|
-
@google/genai/dist/node/index.mjs:
|
|
148
|
-
@google/genai/dist/node/index.mjs:
|
|
149
|
-
@google/genai/dist/node/index.mjs:
|
|
150
|
-
@google/genai/dist/node/index.mjs:
|
|
151
|
-
@google/genai/dist/node/index.mjs:
|
|
152
|
-
@google/genai/dist/node/index.mjs:
|
|
153
|
-
@google/genai/dist/node/index.mjs:
|
|
154
|
-
@google/genai/dist/node/index.mjs:
|
|
155
|
-
@google/genai/dist/node/index.mjs:
|
|
156
|
-
@google/genai/dist/node/index.mjs:
|
|
157
|
-
@google/genai/dist/node/index.mjs:
|
|
158
|
-
@google/genai/dist/node/index.mjs:
|
|
159
|
-
@google/genai/dist/node/index.mjs:
|
|
160
|
-
@google/genai/dist/node/index.mjs:
|
|
161
|
-
@google/genai/dist/node/index.mjs:
|
|
162
|
-
@google/genai/dist/node/index.mjs:
|
|
163
|
-
@google/genai/dist/node/index.mjs:
|
|
164
|
-
@google/genai/dist/node/index.mjs:
|
|
165
|
-
@google/genai/dist/node/index.mjs:
|
|
166
|
-
@google/genai/dist/node/index.mjs:
|
|
167
|
-
@google/genai/dist/node/index.mjs:
|
|
168
|
-
@google/genai/dist/node/index.mjs:
|
|
169
|
-
@google/genai/dist/node/index.mjs:
|
|
170
|
-
@google/genai/dist/node/index.mjs:
|
|
171
|
-
@google/genai/dist/node/index.mjs:
|
|
172
|
-
@google/genai/dist/node/index.mjs:
|
|
173
|
-
@google/genai/dist/node/index.mjs:
|
|
174
|
-
@google/genai/dist/node/index.mjs:
|
|
175
|
-
@google/genai/dist/node/index.mjs:
|
|
176
|
-
@google/genai/dist/node/index.mjs:
|
|
177
48
|
@google/genai/dist/node/index.mjs:
|
|
178
49
|
@google/genai/dist/node/index.mjs:
|
|
179
50
|
/**
|
|
@@ -224,7 +95,6 @@ long/umd/index.js:
|
|
|
224
95
|
*/
|
|
225
96
|
|
|
226
97
|
uri-js/dist/es5/uri.all.js:
|
|
227
|
-
mcp-proxy/dist/stdio-CfAxSAGj.js:
|
|
228
98
|
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
|
229
99
|
|
|
230
100
|
mime-db/index.js:
|
|
@@ -303,10 +173,53 @@ fzf/dist/fzf.es.js:
|
|
|
303
173
|
* Licensed under BSD 3-Clause
|
|
304
174
|
*/
|
|
305
175
|
|
|
306
|
-
|
|
176
|
+
yargs-parser/build/lib/string-utils.js:
|
|
177
|
+
yargs-parser/build/lib/tokenize-arg-string.js:
|
|
178
|
+
yargs-parser/build/lib/yargs-parser-types.js:
|
|
179
|
+
yargs-parser/build/lib/yargs-parser.js:
|
|
180
|
+
/**
|
|
181
|
+
* @license
|
|
182
|
+
* Copyright (c) 2016, Contributors
|
|
183
|
+
* SPDX-License-Identifier: ISC
|
|
184
|
+
*/
|
|
185
|
+
|
|
186
|
+
yargs-parser/build/lib/index.js:
|
|
187
|
+
/**
|
|
188
|
+
* @fileoverview Main entrypoint for libraries using yargs-parser in Node.js
|
|
189
|
+
* CJS and ESM environments.
|
|
190
|
+
*
|
|
191
|
+
* @license
|
|
192
|
+
* Copyright (c) 2016, Contributors
|
|
193
|
+
* SPDX-License-Identifier: ISC
|
|
194
|
+
*/
|
|
195
|
+
|
|
196
|
+
mcp-proxy/dist/stdio-CfAxSAGj.js:
|
|
197
|
+
/*!
|
|
198
|
+
* depd
|
|
199
|
+
* Copyright(c) 2014-2018 Douglas Christopher Wilson
|
|
200
|
+
* MIT Licensed
|
|
201
|
+
*/
|
|
202
|
+
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
|
203
|
+
|
|
204
|
+
web-streams-polyfill/dist/ponyfill.es2018.js:
|
|
205
|
+
/**
|
|
206
|
+
* @license
|
|
207
|
+
* web-streams-polyfill v3.3.3
|
|
208
|
+
* Copyright 2024 Mattias Buelens, Diwank Singh Tomer and other contributors.
|
|
209
|
+
* This code is released under the MIT license.
|
|
210
|
+
* SPDX-License-Identifier: MIT
|
|
211
|
+
*/
|
|
212
|
+
|
|
213
|
+
fetch-blob/index.js:
|
|
214
|
+
/*! fetch-blob. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
|
215
|
+
|
|
216
|
+
node-domexception/index.js:
|
|
217
|
+
/*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
|
218
|
+
|
|
219
|
+
react/cjs/react.production.js:
|
|
307
220
|
/**
|
|
308
221
|
* @license React
|
|
309
|
-
* react
|
|
222
|
+
* react.production.js
|
|
310
223
|
*
|
|
311
224
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
312
225
|
*
|
|
@@ -314,10 +227,10 @@ react/cjs/react-jsx-runtime.production.js:
|
|
|
314
227
|
* LICENSE file in the root directory of this source tree.
|
|
315
228
|
*/
|
|
316
229
|
|
|
317
|
-
react/cjs/react
|
|
230
|
+
react/cjs/react.development.js:
|
|
318
231
|
/**
|
|
319
232
|
* @license React
|
|
320
|
-
* react
|
|
233
|
+
* react.development.js
|
|
321
234
|
*
|
|
322
235
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
323
236
|
*
|
|
@@ -325,20 +238,113 @@ react/cjs/react-jsx-runtime.development.js:
|
|
|
325
238
|
* LICENSE file in the root directory of this source tree.
|
|
326
239
|
*/
|
|
327
240
|
|
|
328
|
-
|
|
241
|
+
react-reconciler/cjs/react-reconciler-constants.production.js:
|
|
329
242
|
/**
|
|
330
|
-
* @license
|
|
331
|
-
*
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
*
|
|
243
|
+
* @license React
|
|
244
|
+
* react-reconciler-constants.production.js
|
|
245
|
+
*
|
|
246
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
247
|
+
*
|
|
248
|
+
* This source code is licensed under the MIT license found in the
|
|
249
|
+
* LICENSE file in the root directory of this source tree.
|
|
335
250
|
*/
|
|
336
251
|
|
|
337
|
-
|
|
338
|
-
|
|
252
|
+
react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
253
|
+
/**
|
|
254
|
+
* @license React
|
|
255
|
+
* react-reconciler-constants.development.js
|
|
256
|
+
*
|
|
257
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
258
|
+
*
|
|
259
|
+
* This source code is licensed under the MIT license found in the
|
|
260
|
+
* LICENSE file in the root directory of this source tree.
|
|
261
|
+
*/
|
|
339
262
|
|
|
340
|
-
|
|
341
|
-
|
|
263
|
+
scheduler/cjs/scheduler.production.js:
|
|
264
|
+
/**
|
|
265
|
+
* @license React
|
|
266
|
+
* scheduler.production.js
|
|
267
|
+
*
|
|
268
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
269
|
+
*
|
|
270
|
+
* This source code is licensed under the MIT license found in the
|
|
271
|
+
* LICENSE file in the root directory of this source tree.
|
|
272
|
+
*/
|
|
273
|
+
|
|
274
|
+
scheduler/cjs/scheduler.development.js:
|
|
275
|
+
/**
|
|
276
|
+
* @license React
|
|
277
|
+
* scheduler.development.js
|
|
278
|
+
*
|
|
279
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
280
|
+
*
|
|
281
|
+
* This source code is licensed under the MIT license found in the
|
|
282
|
+
* LICENSE file in the root directory of this source tree.
|
|
283
|
+
*/
|
|
284
|
+
|
|
285
|
+
react-reconciler/cjs/react-reconciler.production.js:
|
|
286
|
+
/**
|
|
287
|
+
* @license React
|
|
288
|
+
* react-reconciler.production.js
|
|
289
|
+
*
|
|
290
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
291
|
+
*
|
|
292
|
+
* This source code is licensed under the MIT license found in the
|
|
293
|
+
* LICENSE file in the root directory of this source tree.
|
|
294
|
+
*/
|
|
295
|
+
|
|
296
|
+
react-reconciler/cjs/react-reconciler.development.js:
|
|
297
|
+
/**
|
|
298
|
+
* @license React
|
|
299
|
+
* react-reconciler.development.js
|
|
300
|
+
*
|
|
301
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
302
|
+
*
|
|
303
|
+
* This source code is licensed under the MIT license found in the
|
|
304
|
+
* LICENSE file in the root directory of this source tree.
|
|
305
|
+
*/
|
|
306
|
+
|
|
307
|
+
react-devtools-core/dist/backend.js:
|
|
308
|
+
/**
|
|
309
|
+
* @license React
|
|
310
|
+
* react-debug-tools.production.js
|
|
311
|
+
*
|
|
312
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
313
|
+
*
|
|
314
|
+
* This source code is licensed under the MIT license found in the
|
|
315
|
+
* LICENSE file in the root directory of this source tree.
|
|
316
|
+
*/
|
|
317
|
+
/**
|
|
318
|
+
* @license React
|
|
319
|
+
* react.production.js
|
|
320
|
+
*
|
|
321
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
322
|
+
*
|
|
323
|
+
* This source code is licensed under the MIT license found in the
|
|
324
|
+
* LICENSE file in the root directory of this source tree.
|
|
325
|
+
*/
|
|
326
|
+
|
|
327
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
328
|
+
/**
|
|
329
|
+
* @license React
|
|
330
|
+
* react-jsx-runtime.production.js
|
|
331
|
+
*
|
|
332
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
333
|
+
*
|
|
334
|
+
* This source code is licensed under the MIT license found in the
|
|
335
|
+
* LICENSE file in the root directory of this source tree.
|
|
336
|
+
*/
|
|
337
|
+
|
|
338
|
+
react/cjs/react-jsx-runtime.development.js:
|
|
339
|
+
/**
|
|
340
|
+
* @license React
|
|
341
|
+
* react-jsx-runtime.development.js
|
|
342
|
+
*
|
|
343
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
344
|
+
*
|
|
345
|
+
* This source code is licensed under the MIT license found in the
|
|
346
|
+
* LICENSE file in the root directory of this source tree.
|
|
347
|
+
*/
|
|
342
348
|
|
|
343
349
|
react-is/cjs/react-is.production.min.js:
|
|
344
350
|
/** @license React v16.13.1
|
|
@@ -366,30 +372,3 @@ object-assign/index.js:
|
|
|
366
372
|
(c) Sindre Sorhus
|
|
367
373
|
@license MIT
|
|
368
374
|
*/
|
|
369
|
-
|
|
370
|
-
yargs-parser/build/lib/string-utils.js:
|
|
371
|
-
yargs-parser/build/lib/tokenize-arg-string.js:
|
|
372
|
-
yargs-parser/build/lib/yargs-parser-types.js:
|
|
373
|
-
yargs-parser/build/lib/yargs-parser.js:
|
|
374
|
-
/**
|
|
375
|
-
* @license
|
|
376
|
-
* Copyright (c) 2016, Contributors
|
|
377
|
-
* SPDX-License-Identifier: ISC
|
|
378
|
-
*/
|
|
379
|
-
|
|
380
|
-
yargs-parser/build/lib/index.js:
|
|
381
|
-
/**
|
|
382
|
-
* @fileoverview Main entrypoint for libraries using yargs-parser in Node.js
|
|
383
|
-
* CJS and ESM environments.
|
|
384
|
-
*
|
|
385
|
-
* @license
|
|
386
|
-
* Copyright (c) 2016, Contributors
|
|
387
|
-
* SPDX-License-Identifier: ISC
|
|
388
|
-
*/
|
|
389
|
-
|
|
390
|
-
mcp-proxy/dist/stdio-CfAxSAGj.js:
|
|
391
|
-
/*!
|
|
392
|
-
* depd
|
|
393
|
-
* Copyright(c) 2014-2018 Douglas Christopher Wilson
|
|
394
|
-
* MIT Licensed
|
|
395
|
-
*/
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Plan Mode policy: deny-all + read-only whitelist + plans dir write exception.
|
|
2
|
+
# Active only when ApprovalMode = "plan".
|
|
3
|
+
#
|
|
4
|
+
# Priority bands (tiers):
|
|
5
|
+
# - Default policies (TOML): 1 + priority/1000
|
|
6
|
+
# 60: Catch-all deny for plan mode (becomes 1.060)
|
|
7
|
+
# 70: Explicit allows for plan mode (becomes 1.070, overrides deny)
|
|
8
|
+
|
|
9
|
+
# --- Catch-all deny for plan mode ---
|
|
10
|
+
[[rule]]
|
|
11
|
+
decision = "deny"
|
|
12
|
+
priority = 60
|
|
13
|
+
modes = ["plan"]
|
|
14
|
+
deny_message = "You are in Plan Mode. Only read/search tools and writing plans to the plans directory are allowed. Use exit_plan_mode to request approval for your plan."
|
|
15
|
+
|
|
16
|
+
# --- Read-only tools allowed in plan mode ---
|
|
17
|
+
[[rule]]
|
|
18
|
+
toolName = "glob"
|
|
19
|
+
decision = "allow"
|
|
20
|
+
priority = 70
|
|
21
|
+
modes = ["plan"]
|
|
22
|
+
|
|
23
|
+
[[rule]]
|
|
24
|
+
toolName = "search_file_content"
|
|
25
|
+
decision = "allow"
|
|
26
|
+
priority = 70
|
|
27
|
+
modes = ["plan"]
|
|
28
|
+
|
|
29
|
+
[[rule]]
|
|
30
|
+
toolName = "list_directory"
|
|
31
|
+
decision = "allow"
|
|
32
|
+
priority = 70
|
|
33
|
+
modes = ["plan"]
|
|
34
|
+
|
|
35
|
+
[[rule]]
|
|
36
|
+
toolName = "read_file"
|
|
37
|
+
decision = "allow"
|
|
38
|
+
priority = 70
|
|
39
|
+
modes = ["plan"]
|
|
40
|
+
|
|
41
|
+
[[rule]]
|
|
42
|
+
toolName = "read_many_files"
|
|
43
|
+
decision = "allow"
|
|
44
|
+
priority = 70
|
|
45
|
+
modes = ["plan"]
|
|
46
|
+
|
|
47
|
+
[[rule]]
|
|
48
|
+
toolName = "web_search"
|
|
49
|
+
decision = "allow"
|
|
50
|
+
priority = 70
|
|
51
|
+
modes = ["plan"]
|
|
52
|
+
|
|
53
|
+
[[rule]]
|
|
54
|
+
toolName = "sequential_thinking"
|
|
55
|
+
decision = "allow"
|
|
56
|
+
priority = 70
|
|
57
|
+
modes = ["plan"]
|
|
58
|
+
|
|
59
|
+
[[rule]]
|
|
60
|
+
toolName = "todo_write"
|
|
61
|
+
decision = "allow"
|
|
62
|
+
priority = 70
|
|
63
|
+
modes = ["plan"]
|
|
64
|
+
|
|
65
|
+
# --- Allow writing plan files (.md) to the plans directory only ---
|
|
66
|
+
# The argsPattern matches the JSON-serialized file_path within:
|
|
67
|
+
# ~/.codely-cli/tmp/<64-hex-project-hash>/plans/<name>.md
|
|
68
|
+
# Supports both / and escaped \\ separators.
|
|
69
|
+
[[rule]]
|
|
70
|
+
toolName = "write_file"
|
|
71
|
+
decision = "allow"
|
|
72
|
+
priority = 70
|
|
73
|
+
modes = ["plan"]
|
|
74
|
+
argsPattern = "\"file_path\"\\s*:\\s*\"[^\"]*[/\\\\]+\\.codely-cli[/\\\\]+tmp[/\\\\]+[a-f0-9]{64}[/\\\\]+plans[/\\\\]+[a-zA-Z0-9_\\-][a-zA-Z0-9_\\-.]*\\.md\""
|
|
75
|
+
|
|
76
|
+
[[rule]]
|
|
77
|
+
toolName = "replace"
|
|
78
|
+
decision = "allow"
|
|
79
|
+
priority = 70
|
|
80
|
+
modes = ["plan"]
|
|
81
|
+
argsPattern = "\"file_path\"\\s*:\\s*\"[^\"]*[/\\\\]+\\.codely-cli[/\\\\]+tmp[/\\\\]+[a-f0-9]{64}[/\\\\]+plans[/\\\\]+[a-zA-Z0-9_\\-][a-zA-Z0-9_\\-.]*\\.md\""
|
|
82
|
+
|
|
83
|
+
# --- exit_plan_mode requires user approval ---
|
|
84
|
+
[[rule]]
|
|
85
|
+
toolName = "exit_plan_mode"
|
|
86
|
+
decision = "ask_user"
|
|
87
|
+
priority = 70
|
|
88
|
+
modes = ["plan"]
|
|
89
|
+
|
|
90
|
+
[[rule]]
|
|
91
|
+
toolName = "ask_user"
|
|
92
|
+
decision = "ask_user"
|
|
93
|
+
priority = 70
|
|
94
|
+
modes = ["plan"]
|
|
95
|
+
|
|
96
|
+
# --- Task dispatch allowed in plan mode (for exploration / context gathering) ---
|
|
97
|
+
[[rule]]
|
|
98
|
+
toolName = "task"
|
|
99
|
+
decision = "allow"
|
|
100
|
+
priority = 70
|
|
101
|
+
modes = ["plan"]
|
|
102
|
+
|
|
103
|
+
[[rule]]
|
|
104
|
+
toolName = "task_output"
|
|
105
|
+
decision = "allow"
|
|
106
|
+
priority = 70
|
|
107
|
+
modes = ["plan"]
|
|
108
|
+
|
|
109
|
+
[[rule]]
|
|
110
|
+
toolName = "task_stop"
|
|
111
|
+
decision = "allow"
|
|
112
|
+
priority = 70
|
|
113
|
+
modes = ["plan"]
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Read-only tools that are always allowed without confirmation.
|
|
2
|
+
# These tools only read data and cannot modify the filesystem or execute commands.
|
|
3
|
+
#
|
|
4
|
+
# Priority bands (tiers):
|
|
5
|
+
# - Default policies (TOML): 1 + priority/1000 (e.g., priority 50 → 1.050)
|
|
6
|
+
# - User policies (TOML): 2 + priority/1000
|
|
7
|
+
# - Admin policies (TOML): 3 + priority/1000
|
|
8
|
+
|
|
9
|
+
[[rule]]
|
|
10
|
+
toolName = "glob"
|
|
11
|
+
decision = "allow"
|
|
12
|
+
priority = 50
|
|
13
|
+
|
|
14
|
+
[[rule]]
|
|
15
|
+
toolName = "search_file_content"
|
|
16
|
+
decision = "allow"
|
|
17
|
+
priority = 50
|
|
18
|
+
|
|
19
|
+
[[rule]]
|
|
20
|
+
toolName = "list_directory"
|
|
21
|
+
decision = "allow"
|
|
22
|
+
priority = 50
|
|
23
|
+
|
|
24
|
+
[[rule]]
|
|
25
|
+
toolName = "read_file"
|
|
26
|
+
decision = "allow"
|
|
27
|
+
priority = 50
|
|
28
|
+
|
|
29
|
+
[[rule]]
|
|
30
|
+
toolName = "read_many_files"
|
|
31
|
+
decision = "allow"
|
|
32
|
+
priority = 50
|
|
33
|
+
|
|
34
|
+
[[rule]]
|
|
35
|
+
toolName = "web_search"
|
|
36
|
+
decision = "allow"
|
|
37
|
+
priority = 50
|
|
38
|
+
|
|
39
|
+
[[rule]]
|
|
40
|
+
toolName = "sequential_thinking"
|
|
41
|
+
decision = "allow"
|
|
42
|
+
priority = 50
|
|
43
|
+
|
|
44
|
+
[[rule]]
|
|
45
|
+
toolName = "analyze_multimedia"
|
|
46
|
+
decision = "allow"
|
|
47
|
+
priority = 50
|
|
48
|
+
|
|
49
|
+
# todo_write is a planning/tracking tool that doesn't modify the filesystem.
|
|
50
|
+
# It was always auto-approved (shouldConfirmExecute returns false).
|
|
51
|
+
[[rule]]
|
|
52
|
+
toolName = "todo_write"
|
|
53
|
+
decision = "allow"
|
|
54
|
+
priority = 50
|
|
55
|
+
|
|
56
|
+
# web_fetch is a read operation (fetching content from the web).
|
|
57
|
+
# It was auto-approved in autoEdit mode; treating it as read-equivalent.
|
|
58
|
+
[[rule]]
|
|
59
|
+
toolName = "web_fetch"
|
|
60
|
+
decision = "allow"
|
|
61
|
+
priority = 50
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Write/mutating tools that require user confirmation by default.
|
|
2
|
+
# In autoEdit mode, replace and write_file are auto-approved.
|
|
3
|
+
#
|
|
4
|
+
# Priority bands (tiers):
|
|
5
|
+
# - Default policies (TOML): 1 + priority/1000
|
|
6
|
+
# 10: Write tools default to ASK_USER (becomes 1.010)
|
|
7
|
+
# 15: Auto-edit tool override (becomes 1.015)
|
|
8
|
+
|
|
9
|
+
[[rule]]
|
|
10
|
+
toolName = "replace"
|
|
11
|
+
decision = "ask_user"
|
|
12
|
+
priority = 10
|
|
13
|
+
|
|
14
|
+
[[rule]]
|
|
15
|
+
toolName = "replace"
|
|
16
|
+
decision = "allow"
|
|
17
|
+
priority = 15
|
|
18
|
+
modes = ["autoEdit"]
|
|
19
|
+
|
|
20
|
+
[[rule]]
|
|
21
|
+
toolName = "write_file"
|
|
22
|
+
decision = "ask_user"
|
|
23
|
+
priority = 10
|
|
24
|
+
|
|
25
|
+
[[rule]]
|
|
26
|
+
toolName = "write_file"
|
|
27
|
+
decision = "allow"
|
|
28
|
+
priority = 15
|
|
29
|
+
modes = ["autoEdit"]
|
|
30
|
+
|
|
31
|
+
[[rule]]
|
|
32
|
+
toolName = "run_shell_command"
|
|
33
|
+
decision = "ask_user"
|
|
34
|
+
priority = 10
|
|
35
|
+
|
|
36
|
+
[[rule]]
|
|
37
|
+
toolName = "save_memory"
|
|
38
|
+
decision = "ask_user"
|
|
39
|
+
priority = 10
|
|
40
|
+
|
|
41
|
+
[[rule]]
|
|
42
|
+
toolName = "activate_skill"
|
|
43
|
+
decision = "ask_user"
|
|
44
|
+
priority = 10
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# YOLO mode: allow all tools without confirmation.
|
|
2
|
+
# This rule has the highest default-tier priority (999 → 1.999).
|
|
3
|
+
# It only applies when the approval mode is "yolo".
|
|
4
|
+
|
|
5
|
+
[[rule]]
|
|
6
|
+
decision = "allow"
|
|
7
|
+
priority = 999
|
|
8
|
+
modes = ["yolo"]
|
|
9
|
+
allow_redirection = true
|