@unity-china/codely-cli 1.0.0-rc.46 → 1.0.0-rc.49
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/codely-guide/SKILL.md +77 -0
- package/bundle/builtin/codely-guide/references/app.md +125 -0
- package/bundle/builtin/tuanjie-cli/SKILL.md +145 -0
- package/bundle/builtin/tuanjie-cli/references/commands.md +138 -0
- package/bundle/gemini.js +2126 -2078
- package/bundle/gemini.js.LEGAL.txt +128 -25
- package/package.json +3 -1
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
* Copyright 2026 Google LLC
|
|
9
9
|
* SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
*/
|
|
11
|
+
/**
|
|
12
|
+
* @license
|
|
13
|
+
* Copyright 2025 Qwen
|
|
14
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
15
|
+
*/
|
|
11
16
|
/**
|
|
12
17
|
* @license
|
|
13
18
|
* Copyright 2025 Codely
|
|
@@ -65,11 +70,6 @@
|
|
|
65
70
|
* Copyright 2026 Codely
|
|
66
71
|
* SPDX-License-Identifier: Apache-2.0
|
|
67
72
|
*/
|
|
68
|
-
/**
|
|
69
|
-
* @license
|
|
70
|
-
* Copyright 2025 Qwen
|
|
71
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
72
|
-
*/
|
|
73
73
|
/**
|
|
74
74
|
* @license
|
|
75
75
|
* Copyright 2026 Google LLC
|
|
@@ -79,6 +79,35 @@
|
|
|
79
79
|
* symbols and keeps scope helpers for its own use.
|
|
80
80
|
* SPDX-License-Identifier: Apache-2.0
|
|
81
81
|
*/
|
|
82
|
+
/**
|
|
83
|
+
* @license
|
|
84
|
+
* Copyright 2026 Codely
|
|
85
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
86
|
+
*
|
|
87
|
+
* Renderer-owned main-screen Static-split footer transaction.
|
|
88
|
+
*
|
|
89
|
+
* When non-alt `<Static>` is active the renderer yields both
|
|
90
|
+
* `frame.staticScreen` (append-only scrollback delta) and `frame.screen`
|
|
91
|
+
* (the floating live footer). This helper owns the ordered stdout write
|
|
92
|
+
* for that split so ink.tsx does not assemble park/erase/append/overwrite
|
|
93
|
+
* patches ad-hoc.
|
|
94
|
+
*
|
|
95
|
+
* Activation: caller only invokes this for `!altScreenActive`. The
|
|
96
|
+
* no-`<Static>` main-screen path and alt-screen remain outside this
|
|
97
|
+
* contract.
|
|
98
|
+
*/
|
|
99
|
+
/**
|
|
100
|
+
* @license
|
|
101
|
+
* Copyright 2026 Codely
|
|
102
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
103
|
+
*
|
|
104
|
+
* Terminal output ownership for the non-alt Static-split / LiveRoot path.
|
|
105
|
+
*
|
|
106
|
+
* While ownership mode is `split-footer`, the Ink renderer is the only
|
|
107
|
+
* writer allowed to touch the TTY. Normal child output is already piped into
|
|
108
|
+
* tool/history events; interactive external programs must use
|
|
109
|
+
* `withTerminalHandoff` so ownership is suspended for the handoff.
|
|
110
|
+
*/
|
|
82
111
|
/**
|
|
83
112
|
* @license
|
|
84
113
|
* Copyright 2026 Google LLC
|
|
@@ -100,6 +129,80 @@
|
|
|
100
129
|
* Copyright 2025 Google LLC
|
|
101
130
|
* SPDX-License-Identifier: Apache-2.0
|
|
102
131
|
*/
|
|
132
|
+
/**
|
|
133
|
+
* @license
|
|
134
|
+
* Copyright 2026 Codely
|
|
135
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
136
|
+
*
|
|
137
|
+
* LiveRoot fixed-max budget (TDD plan Phase 1). Pure, statically computable
|
|
138
|
+
* height budget for the non-alt (main-screen Static-split) LiveRoot.
|
|
139
|
+
*
|
|
140
|
+
* Model (see plans/liveroot-fixed-max-erase-tdd-plan.md):
|
|
141
|
+
*
|
|
142
|
+
* liveRootMax = min(LIVE_ROOT_MAX_ROWS, terminalHeight − 1)
|
|
143
|
+
* pendingMax = max(0, liveRootMax − dockDeclaredHeight) // streaming tools
|
|
144
|
+
*
|
|
145
|
+
* TWO physical bounds compose here:
|
|
146
|
+
*
|
|
147
|
+
* 1. `LIVE_ROOT_MAX_ROWS` — the FIXED WINDOW. Bounds the ENTIRE live region
|
|
148
|
+
* (pending streaming transcript + BottomDock) and, equivalently, the
|
|
149
|
+
* physical row span the renderer must refresh per frame. Capping to a fixed
|
|
150
|
+
* window (à la openTUI's固定 footerHeight) means pending can never grow tall
|
|
151
|
+
* enough that an incremental print scrolls the previous frame (dock
|
|
152
|
+
* included) off-screen into native scrollback. Binds on tall terminals.
|
|
153
|
+
*
|
|
154
|
+
* 2. `terminalHeight − 1` — the ENGINE bound. The ink renderer crops the
|
|
155
|
+
* non-alt live screen to `terminalRows − 1`
|
|
156
|
+
* (renderer.ts `cropLiveScreenForMainScreenStaticSplit`), and that crop
|
|
157
|
+
* drops rows from the TOP. Budgeting the full `terminalHeight` would let
|
|
158
|
+
* Yoga lay out one row more than the engine can display, so the engine
|
|
159
|
+
* would silently eat the live region's first row — the pending headline,
|
|
160
|
+
* or the dock's top row when the dock alone fills the window. The `-1` is
|
|
161
|
+
* therefore a geometric bound, not merely the legacy erase patch row, and
|
|
162
|
+
* must be honored until the engine's crop changes. Binds below 31 rows.
|
|
163
|
+
*
|
|
164
|
+
* The dock is the MUST-KEEP region — it drives its own compaction via
|
|
165
|
+
* resolveDockLayoutPlan (fold attachments → hide → reduce chrome → single-line
|
|
166
|
+
* input + "terminal too short" hint). Pending takes whatever is left inside
|
|
167
|
+
* the window and yields to 0 on tiny terminals / tall docks.
|
|
168
|
+
*/
|
|
169
|
+
/**
|
|
170
|
+
* @license
|
|
171
|
+
* Copyright 2026 Codely
|
|
172
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
173
|
+
*
|
|
174
|
+
* Non-alt Shared LiveRoot (LiveRoot plan §2/§4.1). The single Yoga subtree
|
|
175
|
+
* that bounds the ENTIRE non-alt live region — pending (streaming) transcript
|
|
176
|
+
* + BottomDock — to a FIXED physical window in one layout pass:
|
|
177
|
+
*
|
|
178
|
+
* <LiveRoot maxHeight> // hard physical bound
|
|
179
|
+
* <PendingClip shrink hidden> // pending yields to the dock
|
|
180
|
+
* <PendingContent shrink=0> // natural layout, then TAIL-cropped
|
|
181
|
+
* <Dock shrink=0> // never squeezed by pending
|
|
182
|
+
*
|
|
183
|
+
* `maxHeight` is the fixed-window bound `min(LIVE_ROOT_MAX_ROWS, terminalHeight − 1)`
|
|
184
|
+
* (see liveRootBudget.ts / App.getLiveRootMaxHeight) — NOT the legacy
|
|
185
|
+
* `terminalHeight − 1`. The old `-1` was a patch row for the model-height
|
|
186
|
+
* erase mechanism, not a geometric bound; capping the whole live region to a
|
|
187
|
+
* fixed window keeps a batch of streaming tool groups from growing tall
|
|
188
|
+
* enough that an incremental print scrolls the previous frame (dock included)
|
|
189
|
+
* off-screen into native scrollback.
|
|
190
|
+
*
|
|
191
|
+
* Invariants (plan §2.1):
|
|
192
|
+
* - LiveRoot rendered height <= maxHeight (= min(LIVE_ROOT_MAX_ROWS,
|
|
193
|
+
* terminalHeight));
|
|
194
|
+
* - PendingClip rendered height = max(0, maxHeight − dock actual height),
|
|
195
|
+
* computed by Yoga from the dock's REAL height — no measured-state
|
|
196
|
+
* feedback loop, no DOCK_CAP contract required for correctness;
|
|
197
|
+
* - the dock is flexShrink=0: pending can NEVER squeeze it. If the dock
|
|
198
|
+
* ALONE exceeds maxHeight (tiny terminal + tall dialog), the root's
|
|
199
|
+
* overflow clipping crops the dock from the BOTTOM (decision 2) — the
|
|
200
|
+
* accepted extreme-case fallback that still prevents the offscreen
|
|
201
|
+
* full-reset;
|
|
202
|
+
* - maxHeight, not height: idle/small frames keep their natural height and
|
|
203
|
+
* never pad blank rows that push the physical cursor to the viewport
|
|
204
|
+
* bottom.
|
|
205
|
+
*/
|
|
103
206
|
/**
|
|
104
207
|
* @license
|
|
105
208
|
* Copyright 2026 Codely
|
|
@@ -354,10 +457,10 @@ react/cjs/react.development.js:
|
|
|
354
457
|
* LICENSE file in the root directory of this source tree.
|
|
355
458
|
*/
|
|
356
459
|
|
|
357
|
-
react/cjs/react-
|
|
460
|
+
react-reconciler/cjs/react-reconciler-constants.production.js:
|
|
358
461
|
/**
|
|
359
462
|
* @license React
|
|
360
|
-
* react-
|
|
463
|
+
* react-reconciler-constants.production.js
|
|
361
464
|
*
|
|
362
465
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
363
466
|
*
|
|
@@ -365,10 +468,10 @@ react/cjs/react-jsx-runtime.production.js:
|
|
|
365
468
|
* LICENSE file in the root directory of this source tree.
|
|
366
469
|
*/
|
|
367
470
|
|
|
368
|
-
react/cjs/react-
|
|
471
|
+
react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
369
472
|
/**
|
|
370
473
|
* @license React
|
|
371
|
-
* react-
|
|
474
|
+
* react-reconciler-constants.development.js
|
|
372
475
|
*
|
|
373
476
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
374
477
|
*
|
|
@@ -376,10 +479,10 @@ react/cjs/react-jsx-runtime.development.js:
|
|
|
376
479
|
* LICENSE file in the root directory of this source tree.
|
|
377
480
|
*/
|
|
378
481
|
|
|
379
|
-
|
|
482
|
+
scheduler/cjs/scheduler.production.js:
|
|
380
483
|
/**
|
|
381
484
|
* @license React
|
|
382
|
-
*
|
|
485
|
+
* scheduler.production.js
|
|
383
486
|
*
|
|
384
487
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
385
488
|
*
|
|
@@ -387,10 +490,10 @@ react-reconciler/cjs/react-reconciler-constants.production.js:
|
|
|
387
490
|
* LICENSE file in the root directory of this source tree.
|
|
388
491
|
*/
|
|
389
492
|
|
|
390
|
-
|
|
493
|
+
scheduler/cjs/scheduler.development.js:
|
|
391
494
|
/**
|
|
392
495
|
* @license React
|
|
393
|
-
*
|
|
496
|
+
* scheduler.development.js
|
|
394
497
|
*
|
|
395
498
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
396
499
|
*
|
|
@@ -398,10 +501,10 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
|
398
501
|
* LICENSE file in the root directory of this source tree.
|
|
399
502
|
*/
|
|
400
503
|
|
|
401
|
-
|
|
504
|
+
react-reconciler/cjs/react-reconciler.production.js:
|
|
402
505
|
/**
|
|
403
506
|
* @license React
|
|
404
|
-
*
|
|
507
|
+
* react-reconciler.production.js
|
|
405
508
|
*
|
|
406
509
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
407
510
|
*
|
|
@@ -409,10 +512,10 @@ scheduler/cjs/scheduler.production.js:
|
|
|
409
512
|
* LICENSE file in the root directory of this source tree.
|
|
410
513
|
*/
|
|
411
514
|
|
|
412
|
-
|
|
515
|
+
react-reconciler/cjs/react-reconciler.development.js:
|
|
413
516
|
/**
|
|
414
517
|
* @license React
|
|
415
|
-
*
|
|
518
|
+
* react-reconciler.development.js
|
|
416
519
|
*
|
|
417
520
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
418
521
|
*
|
|
@@ -420,10 +523,10 @@ scheduler/cjs/scheduler.development.js:
|
|
|
420
523
|
* LICENSE file in the root directory of this source tree.
|
|
421
524
|
*/
|
|
422
525
|
|
|
423
|
-
react
|
|
526
|
+
react/cjs/react-compiler-runtime.production.js:
|
|
424
527
|
/**
|
|
425
528
|
* @license React
|
|
426
|
-
* react-
|
|
529
|
+
* react-compiler-runtime.production.js
|
|
427
530
|
*
|
|
428
531
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
429
532
|
*
|
|
@@ -431,10 +534,10 @@ react-reconciler/cjs/react-reconciler.production.js:
|
|
|
431
534
|
* LICENSE file in the root directory of this source tree.
|
|
432
535
|
*/
|
|
433
536
|
|
|
434
|
-
react
|
|
537
|
+
react/cjs/react-compiler-runtime.development.js:
|
|
435
538
|
/**
|
|
436
539
|
* @license React
|
|
437
|
-
* react-
|
|
540
|
+
* react-compiler-runtime.development.js
|
|
438
541
|
*
|
|
439
542
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
440
543
|
*
|
|
@@ -442,10 +545,10 @@ react-reconciler/cjs/react-reconciler.development.js:
|
|
|
442
545
|
* LICENSE file in the root directory of this source tree.
|
|
443
546
|
*/
|
|
444
547
|
|
|
445
|
-
react/cjs/react-
|
|
548
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
446
549
|
/**
|
|
447
550
|
* @license React
|
|
448
|
-
* react-
|
|
551
|
+
* react-jsx-runtime.production.js
|
|
449
552
|
*
|
|
450
553
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
451
554
|
*
|
|
@@ -453,10 +556,10 @@ react/cjs/react-compiler-runtime.production.js:
|
|
|
453
556
|
* LICENSE file in the root directory of this source tree.
|
|
454
557
|
*/
|
|
455
558
|
|
|
456
|
-
react/cjs/react-
|
|
559
|
+
react/cjs/react-jsx-runtime.development.js:
|
|
457
560
|
/**
|
|
458
561
|
* @license React
|
|
459
|
-
* react-
|
|
562
|
+
* react-jsx-runtime.development.js
|
|
460
563
|
*
|
|
461
564
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
462
565
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unity-china/codely-cli",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.49",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20.0.0"
|
|
6
6
|
},
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"build:sandbox": "node scripts/build_sandbox.js --skip-npm-install-build",
|
|
25
25
|
"bundle": "npm run generate && node esbuild.config.js && node scripts/copy_bundle_assets.js",
|
|
26
26
|
"build:single-exe": "node scripts/build_single_exe_bun.js",
|
|
27
|
+
"build:single-exe:sea": "node scripts/build_single_exe_sea.js",
|
|
27
28
|
"sign": "node scripts/sign-app.js",
|
|
28
29
|
"sign:check": "node scripts/sign-app.js --check",
|
|
29
30
|
"measure:startup": "node scripts/measure_startup.js",
|
|
@@ -90,6 +91,7 @@
|
|
|
90
91
|
"concurrently": "^9.2.0",
|
|
91
92
|
"cross-env": "^7.0.3",
|
|
92
93
|
"esbuild": "^0.25.0",
|
|
94
|
+
"esbuild-plugin-wasm": "^1.1.0",
|
|
93
95
|
"eslint": "^9.24.0",
|
|
94
96
|
"eslint-config-prettier": "^10.1.2",
|
|
95
97
|
"eslint-plugin-import": "^2.31.0",
|