@unity-china/codely-cli 1.0.0-beta.52 → 1.0.0-rc.2
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/builtin/skill-creator/SKILL.md +381 -0
- package/bundle/builtin/skill-creator/scripts/init_skill.cjs +237 -0
- package/bundle/builtin/skill-creator/scripts/package_skill.cjs +142 -0
- package/bundle/builtin/skill-creator/scripts/validate_skill.cjs +137 -0
- package/bundle/example-prompts/analyze.toml +2 -2
- package/bundle/gemini.js +1741 -1653
- package/bundle/gemini.js.LEGAL.txt +29 -30
- package/bundle/policies/plan.toml +26 -2
- package/bundle/policies/read-only.toml +17 -3
- package/bundle/web-ui/dist/public/app.css +682 -10
- package/bundle/web-ui/dist/public/app.js +62 -44
- package/package.json +5 -1
|
@@ -5,33 +5,32 @@
|
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* @license
|
|
8
|
-
* Copyright
|
|
8
|
+
* Copyright 2026
|
|
9
9
|
* SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
*/
|
|
11
11
|
/**
|
|
12
12
|
* @license
|
|
13
|
-
* Copyright 2025
|
|
13
|
+
* Copyright 2025 Qwen
|
|
14
14
|
* SPDX-License-Identifier: Apache-2.0
|
|
15
|
-
*
|
|
16
|
-
* Modified OAuth2 implementation using direct token callback:
|
|
17
|
-
* - Instead of using redirect_uri, the callback URL is passed in the state parameter
|
|
18
|
-
* - The server returns tokens directly in the callback as base64-encoded code parameter
|
|
19
|
-
* - No token exchange step is needed, tokens are decoded directly from the callback
|
|
20
|
-
* - Implements credential caching and automatic token refresh similar to qwenOAuth2.ts
|
|
21
15
|
*/
|
|
22
16
|
/**
|
|
23
17
|
* @license
|
|
24
18
|
* Copyright 2025 Codely
|
|
25
19
|
* SPDX-License-Identifier: Apache-2.0
|
|
20
|
+
*
|
|
21
|
+
* Codely OAuth2 implementation:
|
|
22
|
+
* - Prefer device flow for IDE/CLI-friendly authentication.
|
|
23
|
+
* - Keep legacy browser callback flow as a fallback path.
|
|
24
|
+
* - Implements credential caching and automatic token refresh.
|
|
26
25
|
*/
|
|
27
26
|
/**
|
|
28
27
|
* @license
|
|
29
|
-
* Copyright
|
|
28
|
+
* Copyright 2025 Codely
|
|
30
29
|
* SPDX-License-Identifier: Apache-2.0
|
|
31
30
|
*/
|
|
32
31
|
/**
|
|
33
32
|
* @license
|
|
34
|
-
* Copyright 2026
|
|
33
|
+
* Copyright 2026 Google LLC
|
|
35
34
|
* SPDX-License-Identifier: Apache-2.0
|
|
36
35
|
*/
|
|
37
36
|
/**
|
|
@@ -238,10 +237,10 @@ react/cjs/react.development.js:
|
|
|
238
237
|
* LICENSE file in the root directory of this source tree.
|
|
239
238
|
*/
|
|
240
239
|
|
|
241
|
-
react
|
|
240
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
242
241
|
/**
|
|
243
242
|
* @license React
|
|
244
|
-
* react-
|
|
243
|
+
* react-jsx-runtime.production.js
|
|
245
244
|
*
|
|
246
245
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
247
246
|
*
|
|
@@ -249,10 +248,10 @@ react-reconciler/cjs/react-reconciler-constants.production.js:
|
|
|
249
248
|
* LICENSE file in the root directory of this source tree.
|
|
250
249
|
*/
|
|
251
250
|
|
|
252
|
-
react
|
|
251
|
+
react/cjs/react-jsx-runtime.development.js:
|
|
253
252
|
/**
|
|
254
253
|
* @license React
|
|
255
|
-
* react-
|
|
254
|
+
* react-jsx-runtime.development.js
|
|
256
255
|
*
|
|
257
256
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
258
257
|
*
|
|
@@ -260,10 +259,10 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
|
260
259
|
* LICENSE file in the root directory of this source tree.
|
|
261
260
|
*/
|
|
262
261
|
|
|
263
|
-
|
|
262
|
+
react-reconciler/cjs/react-reconciler-constants.production.js:
|
|
264
263
|
/**
|
|
265
264
|
* @license React
|
|
266
|
-
*
|
|
265
|
+
* react-reconciler-constants.production.js
|
|
267
266
|
*
|
|
268
267
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
269
268
|
*
|
|
@@ -271,10 +270,10 @@ scheduler/cjs/scheduler.production.js:
|
|
|
271
270
|
* LICENSE file in the root directory of this source tree.
|
|
272
271
|
*/
|
|
273
272
|
|
|
274
|
-
|
|
273
|
+
react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
275
274
|
/**
|
|
276
275
|
* @license React
|
|
277
|
-
*
|
|
276
|
+
* react-reconciler-constants.development.js
|
|
278
277
|
*
|
|
279
278
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
280
279
|
*
|
|
@@ -282,10 +281,10 @@ scheduler/cjs/scheduler.development.js:
|
|
|
282
281
|
* LICENSE file in the root directory of this source tree.
|
|
283
282
|
*/
|
|
284
283
|
|
|
285
|
-
|
|
284
|
+
scheduler/cjs/scheduler.production.js:
|
|
286
285
|
/**
|
|
287
286
|
* @license React
|
|
288
|
-
*
|
|
287
|
+
* scheduler.production.js
|
|
289
288
|
*
|
|
290
289
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
291
290
|
*
|
|
@@ -293,10 +292,10 @@ react-reconciler/cjs/react-reconciler.production.js:
|
|
|
293
292
|
* LICENSE file in the root directory of this source tree.
|
|
294
293
|
*/
|
|
295
294
|
|
|
296
|
-
|
|
295
|
+
scheduler/cjs/scheduler.development.js:
|
|
297
296
|
/**
|
|
298
297
|
* @license React
|
|
299
|
-
*
|
|
298
|
+
* scheduler.development.js
|
|
300
299
|
*
|
|
301
300
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
302
301
|
*
|
|
@@ -304,19 +303,21 @@ react-reconciler/cjs/react-reconciler.development.js:
|
|
|
304
303
|
* LICENSE file in the root directory of this source tree.
|
|
305
304
|
*/
|
|
306
305
|
|
|
307
|
-
react-
|
|
306
|
+
react-reconciler/cjs/react-reconciler.production.js:
|
|
308
307
|
/**
|
|
309
308
|
* @license React
|
|
310
|
-
* react-
|
|
309
|
+
* react-reconciler.production.js
|
|
311
310
|
*
|
|
312
311
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
313
312
|
*
|
|
314
313
|
* This source code is licensed under the MIT license found in the
|
|
315
314
|
* LICENSE file in the root directory of this source tree.
|
|
316
315
|
*/
|
|
316
|
+
|
|
317
|
+
react-reconciler/cjs/react-reconciler.development.js:
|
|
317
318
|
/**
|
|
318
319
|
* @license React
|
|
319
|
-
* react.
|
|
320
|
+
* react-reconciler.development.js
|
|
320
321
|
*
|
|
321
322
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
322
323
|
*
|
|
@@ -324,21 +325,19 @@ react-devtools-core/dist/backend.js:
|
|
|
324
325
|
* LICENSE file in the root directory of this source tree.
|
|
325
326
|
*/
|
|
326
327
|
|
|
327
|
-
react/
|
|
328
|
+
react-devtools-core/dist/backend.js:
|
|
328
329
|
/**
|
|
329
330
|
* @license React
|
|
330
|
-
* react-
|
|
331
|
+
* react-debug-tools.production.js
|
|
331
332
|
*
|
|
332
333
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
333
334
|
*
|
|
334
335
|
* This source code is licensed under the MIT license found in the
|
|
335
336
|
* LICENSE file in the root directory of this source tree.
|
|
336
337
|
*/
|
|
337
|
-
|
|
338
|
-
react/cjs/react-jsx-runtime.development.js:
|
|
339
338
|
/**
|
|
340
339
|
* @license React
|
|
341
|
-
* react
|
|
340
|
+
* react.production.js
|
|
342
341
|
*
|
|
343
342
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
344
343
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
decision = "deny"
|
|
12
12
|
priority = 60
|
|
13
13
|
modes = ["plan"]
|
|
14
|
-
deny_message = "You are in Plan Mode. Only read/search
|
|
14
|
+
deny_message = "You are in Plan Mode. Only approved planning tools (including read/search/multimedia) and writing plans to the plans directory are allowed. Use exit_plan_mode to request approval for your plan."
|
|
15
15
|
|
|
16
16
|
# --- Read-only tools allowed in plan mode ---
|
|
17
17
|
[[rule]]
|
|
@@ -44,6 +44,12 @@ decision = "allow"
|
|
|
44
44
|
priority = 70
|
|
45
45
|
modes = ["plan"]
|
|
46
46
|
|
|
47
|
+
[[rule]]
|
|
48
|
+
toolName = "analyze_multimedia"
|
|
49
|
+
decision = "allow"
|
|
50
|
+
priority = 70
|
|
51
|
+
modes = ["plan"]
|
|
52
|
+
|
|
47
53
|
[[rule]]
|
|
48
54
|
toolName = "web_search"
|
|
49
55
|
decision = "allow"
|
|
@@ -57,7 +63,25 @@ priority = 70
|
|
|
57
63
|
modes = ["plan"]
|
|
58
64
|
|
|
59
65
|
[[rule]]
|
|
60
|
-
toolName = "
|
|
66
|
+
toolName = "job_create"
|
|
67
|
+
decision = "allow"
|
|
68
|
+
priority = 70
|
|
69
|
+
modes = ["plan"]
|
|
70
|
+
|
|
71
|
+
[[rule]]
|
|
72
|
+
toolName = "job_get"
|
|
73
|
+
decision = "allow"
|
|
74
|
+
priority = 70
|
|
75
|
+
modes = ["plan"]
|
|
76
|
+
|
|
77
|
+
[[rule]]
|
|
78
|
+
toolName = "job_update"
|
|
79
|
+
decision = "allow"
|
|
80
|
+
priority = 70
|
|
81
|
+
modes = ["plan"]
|
|
82
|
+
|
|
83
|
+
[[rule]]
|
|
84
|
+
toolName = "job_list"
|
|
61
85
|
decision = "allow"
|
|
62
86
|
priority = 70
|
|
63
87
|
modes = ["plan"]
|
|
@@ -46,10 +46,24 @@ toolName = "analyze_multimedia"
|
|
|
46
46
|
decision = "allow"
|
|
47
47
|
priority = 50
|
|
48
48
|
|
|
49
|
-
#
|
|
50
|
-
# It was always auto-approved (shouldConfirmExecute returns false).
|
|
49
|
+
# Job tools are planning/tracking tools that don't modify the filesystem.
|
|
51
50
|
[[rule]]
|
|
52
|
-
toolName = "
|
|
51
|
+
toolName = "job_create"
|
|
52
|
+
decision = "allow"
|
|
53
|
+
priority = 50
|
|
54
|
+
|
|
55
|
+
[[rule]]
|
|
56
|
+
toolName = "job_get"
|
|
57
|
+
decision = "allow"
|
|
58
|
+
priority = 50
|
|
59
|
+
|
|
60
|
+
[[rule]]
|
|
61
|
+
toolName = "job_update"
|
|
62
|
+
decision = "allow"
|
|
63
|
+
priority = 50
|
|
64
|
+
|
|
65
|
+
[[rule]]
|
|
66
|
+
toolName = "job_list"
|
|
53
67
|
decision = "allow"
|
|
54
68
|
priority = 50
|
|
55
69
|
|