@hasna/assistants 0.6.53 → 0.6.54
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/dist/index.js +11 -4
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -118690,7 +118690,7 @@ function formatAge(ms) {
|
|
|
118690
118690
|
return `${days}d`;
|
|
118691
118691
|
}
|
|
118692
118692
|
// packages/core/src/commands/builtin.ts
|
|
118693
|
-
var VERSION = "0.6.
|
|
118693
|
+
var VERSION = "0.6.54";
|
|
118694
118694
|
function resolveAuthTimeout(resolve5) {
|
|
118695
118695
|
resolve5({ exitCode: 1, stdout: { toString: () => "{}" } });
|
|
118696
118696
|
}
|
|
@@ -150447,6 +150447,7 @@ function App2({ cwd: cwd2, version: version3 }) {
|
|
|
150447
150447
|
}, []);
|
|
150448
150448
|
const turnIdRef = import_react33.useRef(0);
|
|
150449
150449
|
const initStateRef = import_react33.useRef("idle");
|
|
150450
|
+
const isMountedRef = import_react33.useRef(true);
|
|
150450
150451
|
import_react33.useEffect(() => {
|
|
150451
150452
|
isProcessingRef.current = isProcessing;
|
|
150452
150453
|
}, [isProcessing]);
|
|
@@ -150785,9 +150786,15 @@ function App2({ cwd: cwd2, version: version3 }) {
|
|
|
150785
150786
|
initSession();
|
|
150786
150787
|
return () => {
|
|
150787
150788
|
cancelled = true;
|
|
150788
|
-
registry.closeAll();
|
|
150789
150789
|
};
|
|
150790
150790
|
}, [cwd2, registry, handleChunk, finalizeResponse, resetTurnState, loadSessionMetadata, beginAskUser]);
|
|
150791
|
+
import_react33.useEffect(() => {
|
|
150792
|
+
isMountedRef.current = true;
|
|
150793
|
+
return () => {
|
|
150794
|
+
isMountedRef.current = false;
|
|
150795
|
+
registry.closeAll();
|
|
150796
|
+
};
|
|
150797
|
+
}, [registry]);
|
|
150791
150798
|
const processQueue = import_react33.useCallback(async () => {
|
|
150792
150799
|
const activeSession2 = registryRef.current.getActiveSession();
|
|
150793
150800
|
if (!activeSession2 || !activeSessionId)
|
|
@@ -151488,7 +151495,7 @@ function sanitizeTerminalOutput(chunk) {
|
|
|
151488
151495
|
// packages/terminal/src/index.tsx
|
|
151489
151496
|
var jsx_dev_runtime13 = __toESM(require_jsx_dev_runtime(), 1);
|
|
151490
151497
|
setRuntime(bunRuntime);
|
|
151491
|
-
var VERSION3 = "0.6.
|
|
151498
|
+
var VERSION3 = "0.6.54";
|
|
151492
151499
|
var SYNC_START = "\x1B[?2026h";
|
|
151493
151500
|
var SYNC_END = "\x1B[?2026l";
|
|
151494
151501
|
function enableSynchronizedOutput() {
|
|
@@ -151684,4 +151691,4 @@ if (options.print !== null) {
|
|
|
151684
151691
|
});
|
|
151685
151692
|
}
|
|
151686
151693
|
|
|
151687
|
-
//# debugId=
|
|
151694
|
+
//# debugId=779BE5D95D2D703764756E2164756E21
|