@unity-china/codely-cli 1.0.0-rc.36 → 1.0.0-rc.37

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.
@@ -100,6 +100,53 @@
100
100
  * Copyright 2025 Google LLC
101
101
  * SPDX-License-Identifier: Apache-2.0
102
102
  */
103
+ /**
104
+ * @license
105
+ * Copyright 2026 Codely
106
+ * SPDX-License-Identifier: Apache-2.0
107
+ *
108
+ * Selection-key helpers, ported from Claude Code's ScrollKeybindingHandler.
109
+ * Used by the alt-screen keyboard handler to decide, for a keypress arriving
110
+ * while a text selection exists, whether to clear the selection and whether
111
+ * the key extends it (shift+nav). Operates on the cli `Key` (useKeypress) —
112
+ * that is the authoritative keyboard path where ctrl+c/Esc are already owned.
113
+ */
114
+ /**
115
+ * @license
116
+ * Copyright 2026 Codely
117
+ * SPDX-License-Identifier: Apache-2.0
118
+ *
119
+ * Auto-copy a text selection to the clipboard when the user finishes dragging
120
+ * (mouse-up with a non-empty selection) or multi-clicks to select a word/line.
121
+ * Mirrors iTerm2's "Copy to pasteboard on selection" — the highlight is left
122
+ * intact so the user can see what was copied. Ported from Claude Code's
123
+ * useCopyOnSelect.
124
+ *
125
+ * This is what makes copy "just work" in alt-screen: mouse tracking disables
126
+ * the terminal's native selection, and cmd+c is intercepted by the terminal's
127
+ * Edit > Copy before the pty sees it. Auto-copying on mouse-up leaves the
128
+ * system clipboard holding the right content, so cmd+c / paste behave as the
129
+ * user expects. ctrl+c (when a selection exists) also copies via the handler.
130
+ *
131
+ * Only meaningful in alt-screen mode: outside it, useSelection returns a stub
132
+ * whose hasSelection() is always false, so the subscribe callback no-ops.
133
+ */
134
+ /**
135
+ * @license
136
+ * Copyright 2026 Codely
137
+ * SPDX-License-Identifier: Apache-2.0
138
+ *
139
+ * Drag-to-scroll: auto-scroll the transcript ScrollBox when the user drags a
140
+ * text selection past its top or bottom edge (mode-1002 mouse tracking only
141
+ * reports on cell change, so a drag held off-edge needs a timer to keep
142
+ * scrolling). Ported from Claude Code's ScrollKeybindingHandler
143
+ * (dragScrollDirection + useDragToScroll).
144
+ *
145
+ * The anchor is shifted opposite the scroll so it stays on the same content,
146
+ * and rows about to scroll out are captured into the selection's
147
+ * scrolledOffAbove/Below accumulators (engine-owned) so getSelectedText can
148
+ * rejoin them — the screen buffer only holds the current viewport.
149
+ */
103
150
  /**
104
151
  * @license
105
152
  * Copyright 2025 Codely
@@ -392,49 +439,24 @@ react-reconciler/cjs/react-reconciler.development.js:
392
439
  * LICENSE file in the root directory of this source tree.
393
440
  */
394
441
 
395
- react-devtools-core/dist/backend.js:
442
+ react/cjs/react-compiler-runtime.production.js:
396
443
  /**
397
444
  * @license React
398
- * react-debug-tools.production.js
445
+ * react-compiler-runtime.production.js
399
446
  *
400
447
  * Copyright (c) Meta Platforms, Inc. and affiliates.
401
448
  *
402
449
  * This source code is licensed under the MIT license found in the
403
450
  * LICENSE file in the root directory of this source tree.
404
451
  */
452
+
453
+ react/cjs/react-compiler-runtime.development.js:
405
454
  /**
406
455
  * @license React
407
- * react.production.js
456
+ * react-compiler-runtime.development.js
408
457
  *
409
458
  * Copyright (c) Meta Platforms, Inc. and affiliates.
410
459
  *
411
460
  * This source code is licensed under the MIT license found in the
412
461
  * LICENSE file in the root directory of this source tree.
413
462
  */
414
-
415
- react-is/cjs/react-is.production.min.js:
416
- /** @license React v16.13.1
417
- * react-is.production.min.js
418
- *
419
- * Copyright (c) Facebook, Inc. and its affiliates.
420
- *
421
- * This source code is licensed under the MIT license found in the
422
- * LICENSE file in the root directory of this source tree.
423
- */
424
-
425
- react-is/cjs/react-is.development.js:
426
- /** @license React v16.13.1
427
- * react-is.development.js
428
- *
429
- * Copyright (c) Facebook, Inc. and its affiliates.
430
- *
431
- * This source code is licensed under the MIT license found in the
432
- * LICENSE file in the root directory of this source tree.
433
- */
434
-
435
- object-assign/index.js:
436
- /*
437
- object-assign
438
- (c) Sindre Sorhus
439
- @license MIT
440
- */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unity-china/codely-cli",
3
- "version": "1.0.0-rc.36",
3
+ "version": "1.0.0-rc.37",
4
4
  "engines": {
5
5
  "node": ">=20.0.0"
6
6
  },