snow-ai 0.6.8 → 0.6.9
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/cli.mjs +103 -113
- package/bundle/package.json +1 -1
- package/package.json +1 -1
package/bundle/cli.mjs
CHANGED
|
@@ -1475,9 +1475,9 @@ var require_react_development = __commonJS({
|
|
|
1475
1475
|
var dispatcher = resolveDispatcher();
|
|
1476
1476
|
return dispatcher.useId();
|
|
1477
1477
|
}
|
|
1478
|
-
function useSyncExternalStore(
|
|
1478
|
+
function useSyncExternalStore(subscribe2, getSnapshot, getServerSnapshot) {
|
|
1479
1479
|
var dispatcher = resolveDispatcher();
|
|
1480
|
-
return dispatcher.useSyncExternalStore(
|
|
1480
|
+
return dispatcher.useSyncExternalStore(subscribe2, getSnapshot, getServerSnapshot);
|
|
1481
1481
|
}
|
|
1482
1482
|
var disabledDepth = 0;
|
|
1483
1483
|
var prevLog;
|
|
@@ -2765,8 +2765,8 @@ var require_signal_exit = __commonJS({
|
|
|
2765
2765
|
if (!processOk(global.process)) {
|
|
2766
2766
|
return;
|
|
2767
2767
|
}
|
|
2768
|
-
var
|
|
2769
|
-
if (
|
|
2768
|
+
var listeners2 = process20.listeners(sig);
|
|
2769
|
+
if (listeners2.length === emitter.count) {
|
|
2770
2770
|
unload();
|
|
2771
2771
|
emit("exit", null, sig);
|
|
2772
2772
|
emit("afterexit", null, sig);
|
|
@@ -15071,17 +15071,17 @@ var require_react_reconciler_development = __commonJS({
|
|
|
15071
15071
|
}
|
|
15072
15072
|
return [newState, dispatch];
|
|
15073
15073
|
}
|
|
15074
|
-
function mountMutableSource(source2, getSnapshot,
|
|
15074
|
+
function mountMutableSource(source2, getSnapshot, subscribe2) {
|
|
15075
15075
|
{
|
|
15076
15076
|
return void 0;
|
|
15077
15077
|
}
|
|
15078
15078
|
}
|
|
15079
|
-
function updateMutableSource(source2, getSnapshot,
|
|
15079
|
+
function updateMutableSource(source2, getSnapshot, subscribe2) {
|
|
15080
15080
|
{
|
|
15081
15081
|
return void 0;
|
|
15082
15082
|
}
|
|
15083
15083
|
}
|
|
15084
|
-
function mountSyncExternalStore(
|
|
15084
|
+
function mountSyncExternalStore(subscribe2, getSnapshot, getServerSnapshot) {
|
|
15085
15085
|
var fiber = currentlyRenderingFiber$1;
|
|
15086
15086
|
var hook = mountWorkInProgressHook();
|
|
15087
15087
|
var nextSnapshot;
|
|
@@ -15124,12 +15124,12 @@ var require_react_reconciler_development = __commonJS({
|
|
|
15124
15124
|
getSnapshot
|
|
15125
15125
|
};
|
|
15126
15126
|
hook.queue = inst;
|
|
15127
|
-
mountEffect(subscribeToStore.bind(null, fiber, inst,
|
|
15127
|
+
mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe2), [subscribe2]);
|
|
15128
15128
|
fiber.flags |= Passive;
|
|
15129
15129
|
pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), void 0, null);
|
|
15130
15130
|
return nextSnapshot;
|
|
15131
15131
|
}
|
|
15132
|
-
function updateSyncExternalStore(
|
|
15132
|
+
function updateSyncExternalStore(subscribe2, getSnapshot, getServerSnapshot) {
|
|
15133
15133
|
var fiber = currentlyRenderingFiber$1;
|
|
15134
15134
|
var hook = updateWorkInProgressHook();
|
|
15135
15135
|
var nextSnapshot = getSnapshot();
|
|
@@ -15149,7 +15149,7 @@ var require_react_reconciler_development = __commonJS({
|
|
|
15149
15149
|
markWorkInProgressReceivedUpdate();
|
|
15150
15150
|
}
|
|
15151
15151
|
var inst = hook.queue;
|
|
15152
|
-
updateEffect(subscribeToStore.bind(null, fiber, inst,
|
|
15152
|
+
updateEffect(subscribeToStore.bind(null, fiber, inst, subscribe2), [subscribe2]);
|
|
15153
15153
|
if (inst.getSnapshot !== getSnapshot || snapshotChanged || // Check if the susbcribe function changed. We can save some memory by
|
|
15154
15154
|
// checking whether we scheduled a subscription effect above.
|
|
15155
15155
|
workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) {
|
|
@@ -15192,13 +15192,13 @@ var require_react_reconciler_development = __commonJS({
|
|
|
15192
15192
|
forceStoreRerender(fiber);
|
|
15193
15193
|
}
|
|
15194
15194
|
}
|
|
15195
|
-
function subscribeToStore(fiber, inst,
|
|
15195
|
+
function subscribeToStore(fiber, inst, subscribe2) {
|
|
15196
15196
|
var handleStoreChange = function() {
|
|
15197
15197
|
if (checkIfSnapshotChanged(inst)) {
|
|
15198
15198
|
forceStoreRerender(fiber);
|
|
15199
15199
|
}
|
|
15200
15200
|
};
|
|
15201
|
-
return
|
|
15201
|
+
return subscribe2(handleStoreChange);
|
|
15202
15202
|
}
|
|
15203
15203
|
function checkIfSnapshotChanged(inst) {
|
|
15204
15204
|
var latestGetSnapshot = inst.getSnapshot;
|
|
@@ -15779,15 +15779,15 @@ var require_react_reconciler_development = __commonJS({
|
|
|
15779
15779
|
mountHookTypesDev();
|
|
15780
15780
|
return mountTransition();
|
|
15781
15781
|
},
|
|
15782
|
-
useMutableSource: function(source2, getSnapshot,
|
|
15782
|
+
useMutableSource: function(source2, getSnapshot, subscribe2) {
|
|
15783
15783
|
currentHookNameInDev = "useMutableSource";
|
|
15784
15784
|
mountHookTypesDev();
|
|
15785
15785
|
return mountMutableSource();
|
|
15786
15786
|
},
|
|
15787
|
-
useSyncExternalStore: function(
|
|
15787
|
+
useSyncExternalStore: function(subscribe2, getSnapshot, getServerSnapshot) {
|
|
15788
15788
|
currentHookNameInDev = "useSyncExternalStore";
|
|
15789
15789
|
mountHookTypesDev();
|
|
15790
|
-
return mountSyncExternalStore(
|
|
15790
|
+
return mountSyncExternalStore(subscribe2, getSnapshot, getServerSnapshot);
|
|
15791
15791
|
},
|
|
15792
15792
|
useId: function() {
|
|
15793
15793
|
currentHookNameInDev = "useId";
|
|
@@ -15883,15 +15883,15 @@ var require_react_reconciler_development = __commonJS({
|
|
|
15883
15883
|
updateHookTypesDev();
|
|
15884
15884
|
return mountTransition();
|
|
15885
15885
|
},
|
|
15886
|
-
useMutableSource: function(source2, getSnapshot,
|
|
15886
|
+
useMutableSource: function(source2, getSnapshot, subscribe2) {
|
|
15887
15887
|
currentHookNameInDev = "useMutableSource";
|
|
15888
15888
|
updateHookTypesDev();
|
|
15889
15889
|
return mountMutableSource();
|
|
15890
15890
|
},
|
|
15891
|
-
useSyncExternalStore: function(
|
|
15891
|
+
useSyncExternalStore: function(subscribe2, getSnapshot, getServerSnapshot) {
|
|
15892
15892
|
currentHookNameInDev = "useSyncExternalStore";
|
|
15893
15893
|
updateHookTypesDev();
|
|
15894
|
-
return mountSyncExternalStore(
|
|
15894
|
+
return mountSyncExternalStore(subscribe2, getSnapshot, getServerSnapshot);
|
|
15895
15895
|
},
|
|
15896
15896
|
useId: function() {
|
|
15897
15897
|
currentHookNameInDev = "useId";
|
|
@@ -15987,15 +15987,15 @@ var require_react_reconciler_development = __commonJS({
|
|
|
15987
15987
|
updateHookTypesDev();
|
|
15988
15988
|
return updateTransition();
|
|
15989
15989
|
},
|
|
15990
|
-
useMutableSource: function(source2, getSnapshot,
|
|
15990
|
+
useMutableSource: function(source2, getSnapshot, subscribe2) {
|
|
15991
15991
|
currentHookNameInDev = "useMutableSource";
|
|
15992
15992
|
updateHookTypesDev();
|
|
15993
15993
|
return updateMutableSource();
|
|
15994
15994
|
},
|
|
15995
|
-
useSyncExternalStore: function(
|
|
15995
|
+
useSyncExternalStore: function(subscribe2, getSnapshot, getServerSnapshot) {
|
|
15996
15996
|
currentHookNameInDev = "useSyncExternalStore";
|
|
15997
15997
|
updateHookTypesDev();
|
|
15998
|
-
return updateSyncExternalStore(
|
|
15998
|
+
return updateSyncExternalStore(subscribe2, getSnapshot);
|
|
15999
15999
|
},
|
|
16000
16000
|
useId: function() {
|
|
16001
16001
|
currentHookNameInDev = "useId";
|
|
@@ -16091,15 +16091,15 @@ var require_react_reconciler_development = __commonJS({
|
|
|
16091
16091
|
updateHookTypesDev();
|
|
16092
16092
|
return rerenderTransition();
|
|
16093
16093
|
},
|
|
16094
|
-
useMutableSource: function(source2, getSnapshot,
|
|
16094
|
+
useMutableSource: function(source2, getSnapshot, subscribe2) {
|
|
16095
16095
|
currentHookNameInDev = "useMutableSource";
|
|
16096
16096
|
updateHookTypesDev();
|
|
16097
16097
|
return updateMutableSource();
|
|
16098
16098
|
},
|
|
16099
|
-
useSyncExternalStore: function(
|
|
16099
|
+
useSyncExternalStore: function(subscribe2, getSnapshot, getServerSnapshot) {
|
|
16100
16100
|
currentHookNameInDev = "useSyncExternalStore";
|
|
16101
16101
|
updateHookTypesDev();
|
|
16102
|
-
return updateSyncExternalStore(
|
|
16102
|
+
return updateSyncExternalStore(subscribe2, getSnapshot);
|
|
16103
16103
|
},
|
|
16104
16104
|
useId: function() {
|
|
16105
16105
|
currentHookNameInDev = "useId";
|
|
@@ -16209,17 +16209,17 @@ var require_react_reconciler_development = __commonJS({
|
|
|
16209
16209
|
mountHookTypesDev();
|
|
16210
16210
|
return mountTransition();
|
|
16211
16211
|
},
|
|
16212
|
-
useMutableSource: function(source2, getSnapshot,
|
|
16212
|
+
useMutableSource: function(source2, getSnapshot, subscribe2) {
|
|
16213
16213
|
currentHookNameInDev = "useMutableSource";
|
|
16214
16214
|
warnInvalidHookAccess();
|
|
16215
16215
|
mountHookTypesDev();
|
|
16216
16216
|
return mountMutableSource();
|
|
16217
16217
|
},
|
|
16218
|
-
useSyncExternalStore: function(
|
|
16218
|
+
useSyncExternalStore: function(subscribe2, getSnapshot, getServerSnapshot) {
|
|
16219
16219
|
currentHookNameInDev = "useSyncExternalStore";
|
|
16220
16220
|
warnInvalidHookAccess();
|
|
16221
16221
|
mountHookTypesDev();
|
|
16222
|
-
return mountSyncExternalStore(
|
|
16222
|
+
return mountSyncExternalStore(subscribe2, getSnapshot, getServerSnapshot);
|
|
16223
16223
|
},
|
|
16224
16224
|
useId: function() {
|
|
16225
16225
|
currentHookNameInDev = "useId";
|
|
@@ -16330,17 +16330,17 @@ var require_react_reconciler_development = __commonJS({
|
|
|
16330
16330
|
updateHookTypesDev();
|
|
16331
16331
|
return updateTransition();
|
|
16332
16332
|
},
|
|
16333
|
-
useMutableSource: function(source2, getSnapshot,
|
|
16333
|
+
useMutableSource: function(source2, getSnapshot, subscribe2) {
|
|
16334
16334
|
currentHookNameInDev = "useMutableSource";
|
|
16335
16335
|
warnInvalidHookAccess();
|
|
16336
16336
|
updateHookTypesDev();
|
|
16337
16337
|
return updateMutableSource();
|
|
16338
16338
|
},
|
|
16339
|
-
useSyncExternalStore: function(
|
|
16339
|
+
useSyncExternalStore: function(subscribe2, getSnapshot, getServerSnapshot) {
|
|
16340
16340
|
currentHookNameInDev = "useSyncExternalStore";
|
|
16341
16341
|
warnInvalidHookAccess();
|
|
16342
16342
|
updateHookTypesDev();
|
|
16343
|
-
return updateSyncExternalStore(
|
|
16343
|
+
return updateSyncExternalStore(subscribe2, getSnapshot);
|
|
16344
16344
|
},
|
|
16345
16345
|
useId: function() {
|
|
16346
16346
|
currentHookNameInDev = "useId";
|
|
@@ -16451,17 +16451,17 @@ var require_react_reconciler_development = __commonJS({
|
|
|
16451
16451
|
updateHookTypesDev();
|
|
16452
16452
|
return rerenderTransition();
|
|
16453
16453
|
},
|
|
16454
|
-
useMutableSource: function(source2, getSnapshot,
|
|
16454
|
+
useMutableSource: function(source2, getSnapshot, subscribe2) {
|
|
16455
16455
|
currentHookNameInDev = "useMutableSource";
|
|
16456
16456
|
warnInvalidHookAccess();
|
|
16457
16457
|
updateHookTypesDev();
|
|
16458
16458
|
return updateMutableSource();
|
|
16459
16459
|
},
|
|
16460
|
-
useSyncExternalStore: function(
|
|
16460
|
+
useSyncExternalStore: function(subscribe2, getSnapshot, getServerSnapshot) {
|
|
16461
16461
|
currentHookNameInDev = "useSyncExternalStore";
|
|
16462
16462
|
warnInvalidHookAccess();
|
|
16463
16463
|
updateHookTypesDev();
|
|
16464
|
-
return updateSyncExternalStore(
|
|
16464
|
+
return updateSyncExternalStore(subscribe2, getSnapshot);
|
|
16465
16465
|
},
|
|
16466
16466
|
useId: function() {
|
|
16467
16467
|
currentHookNameInDev = "useId";
|
|
@@ -49724,8 +49724,8 @@ var require_util = __commonJS({
|
|
|
49724
49724
|
} : null;
|
|
49725
49725
|
}
|
|
49726
49726
|
function addListener(obj2, name, listener) {
|
|
49727
|
-
const
|
|
49728
|
-
|
|
49727
|
+
const listeners2 = obj2[kListeners] ??= [];
|
|
49728
|
+
listeners2.push([name, listener]);
|
|
49729
49729
|
obj2.on(name, listener);
|
|
49730
49730
|
return obj2;
|
|
49731
49731
|
}
|
|
@@ -84011,30 +84011,47 @@ var init_useGlobalNavigation = __esm({
|
|
|
84011
84011
|
});
|
|
84012
84012
|
|
|
84013
84013
|
// dist/hooks/ui/useTerminalSize.js
|
|
84014
|
-
function
|
|
84015
|
-
|
|
84014
|
+
function handleResize() {
|
|
84015
|
+
currentSize = {
|
|
84016
84016
|
columns: process.stdout.columns || 80,
|
|
84017
84017
|
rows: process.stdout.rows || 20
|
|
84018
|
-
}
|
|
84019
|
-
|
|
84020
|
-
|
|
84021
|
-
|
|
84022
|
-
|
|
84023
|
-
|
|
84024
|
-
|
|
84018
|
+
};
|
|
84019
|
+
listeners.forEach((listener) => listener(currentSize));
|
|
84020
|
+
}
|
|
84021
|
+
function subscribe(listener) {
|
|
84022
|
+
listeners.add(listener);
|
|
84023
|
+
if (!isListening) {
|
|
84024
|
+
isListening = true;
|
|
84025
|
+
process.stdout.on("resize", handleResize);
|
|
84026
|
+
}
|
|
84027
|
+
return () => {
|
|
84028
|
+
listeners.delete(listener);
|
|
84029
|
+
if (listeners.size === 0 && isListening) {
|
|
84030
|
+
isListening = false;
|
|
84031
|
+
process.stdout.off("resize", handleResize);
|
|
84025
84032
|
}
|
|
84026
|
-
|
|
84027
|
-
|
|
84028
|
-
|
|
84029
|
-
|
|
84033
|
+
};
|
|
84034
|
+
}
|
|
84035
|
+
function useTerminalSize() {
|
|
84036
|
+
const [size2, setSize] = (0, import_react56.useState)(currentSize);
|
|
84037
|
+
(0, import_react56.useEffect)(() => {
|
|
84038
|
+
setSize(currentSize);
|
|
84039
|
+
const unsubscribe = subscribe(setSize);
|
|
84040
|
+
return unsubscribe;
|
|
84030
84041
|
}, []);
|
|
84031
84042
|
return size2;
|
|
84032
84043
|
}
|
|
84033
|
-
var import_react56;
|
|
84044
|
+
var import_react56, listeners, isListening, currentSize;
|
|
84034
84045
|
var init_useTerminalSize = __esm({
|
|
84035
84046
|
"dist/hooks/ui/useTerminalSize.js"() {
|
|
84036
84047
|
"use strict";
|
|
84037
84048
|
import_react56 = __toESM(require_react(), 1);
|
|
84049
|
+
listeners = /* @__PURE__ */ new Set();
|
|
84050
|
+
isListening = false;
|
|
84051
|
+
currentSize = {
|
|
84052
|
+
columns: process.stdout.columns || 80,
|
|
84053
|
+
rows: process.stdout.rows || 20
|
|
84054
|
+
};
|
|
84038
84055
|
}
|
|
84039
84056
|
});
|
|
84040
84057
|
|
|
@@ -356820,9 +356837,9 @@ var init_rxjs = __esm({
|
|
|
356820
356837
|
return typeof Symbol === "function" && Symbol.observable || "@@observable";
|
|
356821
356838
|
})();
|
|
356822
356839
|
Observable = (function() {
|
|
356823
|
-
function Observable2(
|
|
356824
|
-
if (
|
|
356825
|
-
this._subscribe =
|
|
356840
|
+
function Observable2(subscribe2) {
|
|
356841
|
+
if (subscribe2) {
|
|
356842
|
+
this._subscribe = subscribe2;
|
|
356826
356843
|
}
|
|
356827
356844
|
}
|
|
356828
356845
|
Observable2.prototype.lift = function(operator) {
|
|
@@ -356894,8 +356911,8 @@ var init_rxjs = __esm({
|
|
|
356894
356911
|
});
|
|
356895
356912
|
});
|
|
356896
356913
|
};
|
|
356897
|
-
Observable2.create = function(
|
|
356898
|
-
return new Observable2(
|
|
356914
|
+
Observable2.create = function(subscribe2) {
|
|
356915
|
+
return new Observable2(subscribe2);
|
|
356899
356916
|
};
|
|
356900
356917
|
return Observable2;
|
|
356901
356918
|
})();
|
|
@@ -385844,7 +385861,7 @@ var require_NetworkStorage = __commonJS({
|
|
|
385844
385861
|
}
|
|
385845
385862
|
onCdpTargetCreated(cdpTarget) {
|
|
385846
385863
|
const cdpClient = cdpTarget.cdpClient;
|
|
385847
|
-
const
|
|
385864
|
+
const listeners2 = [
|
|
385848
385865
|
[
|
|
385849
385866
|
"Network.requestWillBeSent",
|
|
385850
385867
|
(params) => {
|
|
@@ -385937,7 +385954,7 @@ var require_NetworkStorage = __commonJS({
|
|
|
385937
385954
|
}
|
|
385938
385955
|
]
|
|
385939
385956
|
];
|
|
385940
|
-
for (const [event, listener] of
|
|
385957
|
+
for (const [event, listener] of listeners2) {
|
|
385941
385958
|
cdpClient.on(event, listener);
|
|
385942
385959
|
}
|
|
385943
385960
|
}
|
|
@@ -423785,22 +423802,22 @@ function launch(opts) {
|
|
|
423785
423802
|
return new Process(opts);
|
|
423786
423803
|
}
|
|
423787
423804
|
function subscribeToProcessEvent(event, handler) {
|
|
423788
|
-
const
|
|
423789
|
-
if (
|
|
423805
|
+
const listeners2 = processListeners.get(event) || [];
|
|
423806
|
+
if (listeners2.length === 0) {
|
|
423790
423807
|
process.on(event, dispatchers[event]);
|
|
423791
423808
|
}
|
|
423792
|
-
|
|
423793
|
-
processListeners.set(event,
|
|
423809
|
+
listeners2.push(handler);
|
|
423810
|
+
processListeners.set(event, listeners2);
|
|
423794
423811
|
}
|
|
423795
423812
|
function unsubscribeFromProcessEvent(event, handler) {
|
|
423796
|
-
const
|
|
423797
|
-
const existingListenerIdx =
|
|
423813
|
+
const listeners2 = processListeners.get(event) || [];
|
|
423814
|
+
const existingListenerIdx = listeners2.indexOf(handler);
|
|
423798
423815
|
if (existingListenerIdx === -1) {
|
|
423799
423816
|
return;
|
|
423800
423817
|
}
|
|
423801
|
-
|
|
423802
|
-
processListeners.set(event,
|
|
423803
|
-
if (
|
|
423818
|
+
listeners2.splice(existingListenerIdx, 1);
|
|
423819
|
+
processListeners.set(event, listeners2);
|
|
423820
|
+
if (listeners2.length === 0) {
|
|
423804
423821
|
process.off(event, dispatchers[event]);
|
|
423805
423822
|
}
|
|
423806
423823
|
}
|
|
@@ -438287,14 +438304,14 @@ var require_linkedMap = __commonJS({
|
|
|
438287
438304
|
return;
|
|
438288
438305
|
}
|
|
438289
438306
|
let current = this._head;
|
|
438290
|
-
let
|
|
438291
|
-
while (current &&
|
|
438307
|
+
let currentSize2 = this.size;
|
|
438308
|
+
while (current && currentSize2 > newSize) {
|
|
438292
438309
|
this._map.delete(current.key);
|
|
438293
438310
|
current = current.next;
|
|
438294
|
-
|
|
438311
|
+
currentSize2--;
|
|
438295
438312
|
}
|
|
438296
438313
|
this._head = current;
|
|
438297
|
-
this._size =
|
|
438314
|
+
this._size = currentSize2;
|
|
438298
438315
|
if (current) {
|
|
438299
438316
|
current.previous = void 0;
|
|
438300
438317
|
}
|
|
@@ -439590,7 +439607,7 @@ var require_connection2 = __commonJS({
|
|
|
439590
439607
|
function cancelUndispatched(_message) {
|
|
439591
439608
|
return void 0;
|
|
439592
439609
|
}
|
|
439593
|
-
function
|
|
439610
|
+
function isListening2() {
|
|
439594
439611
|
return state === ConnectionState.Listening;
|
|
439595
439612
|
}
|
|
439596
439613
|
function isClosed() {
|
|
@@ -440079,12 +440096,12 @@ ${JSON.stringify(message, null, 4)}`);
|
|
|
440079
440096
|
}
|
|
440080
440097
|
}
|
|
440081
440098
|
function throwIfListening() {
|
|
440082
|
-
if (
|
|
440099
|
+
if (isListening2()) {
|
|
440083
440100
|
throw new ConnectionError(ConnectionErrors.AlreadyListening, "Connection is already listening");
|
|
440084
440101
|
}
|
|
440085
440102
|
}
|
|
440086
440103
|
function throwIfNotListening() {
|
|
440087
|
-
if (!
|
|
440104
|
+
if (!isListening2()) {
|
|
440088
440105
|
throw new Error("Call listen() first.");
|
|
440089
440106
|
}
|
|
440090
440107
|
}
|
|
@@ -545548,9 +545565,9 @@ function ShimmerText({ text: text3 }) {
|
|
|
545548
545565
|
const char = text3[i];
|
|
545549
545566
|
const distance = Math.abs(i - frame);
|
|
545550
545567
|
if (distance <= 1) {
|
|
545551
|
-
output2 += source_default.hex("#00FFFF")(char);
|
|
545568
|
+
output2 += source_default.bold.hex("#00FFFF")(char);
|
|
545552
545569
|
} else {
|
|
545553
|
-
output2 += source_default.hex("#1ACEB0")(char);
|
|
545570
|
+
output2 += source_default.bold.hex("#1ACEB0")(char);
|
|
545554
545571
|
}
|
|
545555
545572
|
}
|
|
545556
545573
|
return import_react113.default.createElement(Text, null, output2);
|
|
@@ -545678,13 +545695,7 @@ function LoadingIndicator({ isStreaming, isStopping, isSaving, hasPendingToolCon
|
|
|
545678
545695
|
return import_react115.default.createElement(
|
|
545679
545696
|
Box_default,
|
|
545680
545697
|
{ marginBottom: 1, paddingX: 1, width: terminalWidth },
|
|
545681
|
-
import_react115.default.createElement(Text, { color: [
|
|
545682
|
-
theme14.colors.menuInfo,
|
|
545683
|
-
theme14.colors.success,
|
|
545684
|
-
theme14.colors.menuSelected,
|
|
545685
|
-
theme14.colors.menuInfo,
|
|
545686
|
-
theme14.colors.menuSecondary
|
|
545687
|
-
][animationFrame], bold: true }, "\u2746"),
|
|
545698
|
+
import_react115.default.createElement(Text, { color: ["#00FFFF", "#1ACEB0"][animationFrame % 2], bold: true }, "\u2746"),
|
|
545688
545699
|
import_react115.default.createElement(Box_default, { marginLeft: 1, marginBottom: 1, flexDirection: "column" }, isStopping ? import_react115.default.createElement(Text, { color: theme14.colors.menuSecondary, dimColor: true }, t.chatScreen.statusStopping) : isStreaming ? import_react115.default.createElement(import_react115.default.Fragment, null, retryStatus && retryStatus.isRetrying ? import_react115.default.createElement(
|
|
545689
545700
|
Box_default,
|
|
545690
545701
|
{ flexDirection: "column" },
|
|
@@ -545698,9 +545709,8 @@ function LoadingIndicator({ isStreaming, isStopping, isSaving, hasPendingToolCon
|
|
|
545698
545709
|
) : import_react115.default.createElement(Text, { color: "yellow", dimColor: true }, t.chatScreen.retryResending.replace("{current}", String(retryStatus.attempt)).replace("{max}", "5"))
|
|
545699
545710
|
) : (codebaseSearchStatus == null ? void 0 : codebaseSearchStatus.isSearching) ? import_react115.default.createElement(CodebaseSearchStatus, { status: codebaseSearchStatus }) : codebaseSearchStatus && !codebaseSearchStatus.isSearching ? import_react115.default.createElement(CodebaseSearchStatus, { status: codebaseSearchStatus }) : import_react115.default.createElement(
|
|
545700
545711
|
Text,
|
|
545701
|
-
{ color: theme14.colors.menuSecondary, dimColor: true },
|
|
545712
|
+
{ color: theme14.colors.menuSecondary, dimColor: true, bold: true },
|
|
545702
545713
|
import_react115.default.createElement(ShimmerText, { text: isReasoning ? t.chatScreen.statusDeepThinking : streamTokenCount > 0 ? t.chatScreen.statusWriting : t.chatScreen.statusThinking }),
|
|
545703
|
-
" ",
|
|
545704
545714
|
"(",
|
|
545705
545715
|
currentModel && import_react115.default.createElement(
|
|
545706
545716
|
import_react115.default.Fragment,
|
|
@@ -555691,18 +555701,18 @@ ${errorMsg}`,
|
|
|
555691
555701
|
if (!currentSession)
|
|
555692
555702
|
return;
|
|
555693
555703
|
if (selectedIndex === 0 && currentSession.compressedFrom !== void 0 && currentSession.compressedFrom !== null) {
|
|
555694
|
-
let
|
|
555704
|
+
let totalFileCount = 0;
|
|
555695
555705
|
for (const [index, count] of snapshotState.snapshotFileCount.entries()) {
|
|
555696
555706
|
if (index >= selectedIndex) {
|
|
555697
|
-
|
|
555707
|
+
totalFileCount += count;
|
|
555698
555708
|
}
|
|
555699
555709
|
}
|
|
555700
|
-
if (
|
|
555701
|
-
const
|
|
555710
|
+
if (totalFileCount > 0) {
|
|
555711
|
+
const filePaths2 = await hashBasedSnapshotManager.getFilesToRollback(currentSession.id, selectedIndex);
|
|
555702
555712
|
snapshotState.setPendingRollback({
|
|
555703
555713
|
messageIndex: selectedIndex,
|
|
555704
|
-
fileCount:
|
|
555705
|
-
filePaths,
|
|
555714
|
+
fileCount: filePaths2.length,
|
|
555715
|
+
filePaths: filePaths2,
|
|
555706
555716
|
message: cleanIDEContext(message),
|
|
555707
555717
|
images,
|
|
555708
555718
|
crossSessionRollback: true,
|
|
@@ -555734,14 +555744,8 @@ ${errorMsg}`,
|
|
|
555734
555744
|
console.error("Failed to switch to original session:", error);
|
|
555735
555745
|
}
|
|
555736
555746
|
}
|
|
555737
|
-
|
|
555738
|
-
|
|
555739
|
-
if (index >= selectedIndex) {
|
|
555740
|
-
totalFileCount += count;
|
|
555741
|
-
}
|
|
555742
|
-
}
|
|
555743
|
-
if (totalFileCount > 0) {
|
|
555744
|
-
const filePaths = await hashBasedSnapshotManager.getFilesToRollback(currentSession.id, selectedIndex);
|
|
555747
|
+
const filePaths = await hashBasedSnapshotManager.getFilesToRollback(currentSession.id, selectedIndex);
|
|
555748
|
+
if (filePaths.length > 0) {
|
|
555745
555749
|
snapshotState.setPendingRollback({
|
|
555746
555750
|
messageIndex: selectedIndex,
|
|
555747
555751
|
fileCount: filePaths.length,
|
|
@@ -556272,8 +556276,8 @@ function useStreamingState() {
|
|
|
556272
556276
|
if (!isStreaming)
|
|
556273
556277
|
return;
|
|
556274
556278
|
const interval = setInterval(() => {
|
|
556275
|
-
setAnimationFrame((prev) => (prev + 1) %
|
|
556276
|
-
},
|
|
556279
|
+
setAnimationFrame((prev) => (prev + 1) % 2);
|
|
556280
|
+
}, 500);
|
|
556277
556281
|
return () => {
|
|
556278
556282
|
clearInterval(interval);
|
|
556279
556283
|
setAnimationFrame(0);
|
|
@@ -556940,20 +556944,6 @@ function ChatScreen({ autoResume, enableYolo }) {
|
|
|
556940
556944
|
}
|
|
556941
556945
|
});
|
|
556942
556946
|
setWatcherEnabled(true);
|
|
556943
|
-
setCodebaseIndexing(true);
|
|
556944
|
-
agent.start((progressData) => {
|
|
556945
|
-
setCodebaseProgress({
|
|
556946
|
-
totalFiles: progressData.totalFiles,
|
|
556947
|
-
processedFiles: progressData.processedFiles,
|
|
556948
|
-
totalChunks: progressData.totalChunks,
|
|
556949
|
-
currentFile: progressData.currentFile,
|
|
556950
|
-
status: progressData.status,
|
|
556951
|
-
error: progressData.error
|
|
556952
|
-
});
|
|
556953
|
-
if (progressData.status === "completed" || progressData.status === "error") {
|
|
556954
|
-
setCodebaseIndexing(false);
|
|
556955
|
-
}
|
|
556956
|
-
});
|
|
556957
556947
|
return;
|
|
556958
556948
|
}
|
|
556959
556949
|
const wasWatcherEnabled = await agent.isWatcherEnabled();
|
package/bundle/package.json
CHANGED