@visorcraft/idlehands 4.2.6 → 4.2.7
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/{accounts-B8cGzkjD.js → accounts-BDVs8LTu.js} +1 -1
- package/dist/{accounts-D5tB_lO0.js → accounts-CIvVRRHb.js} +1 -1
- package/dist/{accounts-BQC_GRUB.js → accounts-Dk8mJIrQ.js} +6 -6
- package/dist/{agent-scope-Bxq1eWbA.js → agent-scope-DyP_tr7s.js} +4 -4
- package/dist/{agent-via-gateway-B_XqJoXa.js → agent-via-gateway-BMsMjnWe.js} +7 -7
- package/dist/{agent-via-gateway-BTaqOj5m.js → agent-via-gateway-CW7FhqaW.js} +60 -60
- package/dist/{anton-BvT9_aWG.js → anton-BDDjbZ5H.js} +1 -1
- package/dist/{anton-QvQ90n78.js → anton-C33_8bVg.js} +5 -5
- package/dist/{audio-preflight-qkU2lsDn.js → audio-preflight-BSlR2jEq.js} +35 -35
- package/dist/{audio-preflight-CSSlgO89.js → audio-preflight-vD3mDc6w.js} +4 -4
- package/dist/{auth-store-Bb4aajHu.js → auth-store-DXT-l7fO.js} +12 -12
- package/dist/{bindings-CLZIJ0Eo.js → bindings-D3b5Fmc9.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +60 -60
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +3 -3
- package/dist/bundled/session-memory/handler.js +60 -60
- package/dist/{plugin-sdk/channel-activity-TcS_VfJk.js → channel-activity-D_TMOGQ0.js} +3 -3
- package/dist/{chrome-Do5potHV.js → chrome-DEnkfZ9p.js} +9 -9
- package/dist/{chrome-CT_a9OgI.js → chrome-_2tzVjVl.js} +26 -26
- package/dist/{chunk-Djk-9JeT.js → chunk-CMpX7Jaz.js} +1 -1
- package/dist/{commands-registry-_TBHHpvt.js → commands-registry-j4vAzcF2.js} +5 -5
- package/dist/{deliver-whAbSPLk.js → deliver-5FLCa6tB.js} +1 -1
- package/dist/{deliver-Db2xqgLg.js → deliver-CVTXl0Cv.js} +20 -20
- package/dist/{deps-BO1TSzg3.js → deps-Bp-zobQ9.js} +1 -1
- package/dist/{plugin-sdk/deps-DHns5FkJ.js → deps-k7zLO-No.js} +6 -6
- package/dist/{diagnostic-BvlZ0Sot.js → diagnostic-4owMk4vH.js} +1 -1
- package/dist/{dock-ejUetwTC.js → dock-BgOmHcbh.js} +6 -6
- package/dist/emergency-stop-Bqex5qoB.js +113 -0
- package/dist/{emergency-stop-C_7XuwW8.js → emergency-stop-CHHSptxF.js} +7 -7
- package/dist/{env-q-PhWbb_.js → env-B5G1qwGc.js} +1 -1
- package/dist/{plugin-sdk/errors-UqLewZJL.js → errors-C_0nm4TJ.js} +1 -1
- package/dist/extensionAPI.js +7 -7
- package/dist/{fetch-guard-CcfDZXe9.js → fetch-guard-iuQsIjqN.js} +1 -1
- package/dist/{frontmatter-pTUG4Sx_.js → frontmatter-BOudmHMS.js} +2 -2
- package/dist/{fs-safe-2l05hI1Y.js → fs-safe-CYUaAFO9.js} +2 -2
- package/dist/{gemini-auth-DLSGffQK.js → gemini-auth-CIyaa44H.js} +2 -2
- package/dist/{github-copilot-token-BjmEQcmi.js → github-copilot-token-Dgt6cnsM.js} +7 -7
- package/dist/{image-Dlu13Ebx.js → image-COw__ACq.js} +6 -6
- package/dist/{image-BAsQlUqT.js → image-C_aN5P6-.js} +1 -1
- package/dist/{image-ops-J8P5zOFm.js → image-ops-D1KtygWz.js} +1 -1
- package/dist/{plugin-sdk/ir-Bv0Zbp2E.js → ir-B7IBoKLy.js} +6 -6
- package/dist/llm-slug-generator.js +60 -60
- package/dist/{local-roots-d4y0lvs2.js → local-roots-KN4Hp1yZ.js} +5 -5
- package/dist/{login-C2X0In6m.js → login-CFr5vJmR.js} +6 -6
- package/dist/{login-qr-C17PY0rr.js → login-qr-CFFFOjOl.js} +11 -11
- package/dist/{manager-CgzA1hKo.js → manager-BE_76jWB.js} +15 -15
- package/dist/{markdown-tables-R8VTpfE9.js → markdown-tables-CzsockiZ.js} +1 -1
- package/dist/{message-channel-ZdI1-uUh.js → message-channel-C8QtrwEU.js} +1 -1
- package/dist/{model-selection-C5hI1dum.js → model-selection-1MMYqY6M.js} +41 -41
- package/dist/{outbound-CdY_AskB.js → outbound-BNh6PpQb.js} +6 -6
- package/dist/{outbound-attachment-IfeZJAKk.js → outbound-attachment-3I6GzwDe.js} +2 -2
- package/dist/{path-alias-guards-BZmt6hFb.js → path-alias-guards-Cu1nXNMM.js} +1 -1
- package/dist/{paths-DQpv9a3Q.js → paths-BYNVLNi_.js} +5 -5
- package/dist/{paths-D3p7ZvM6.js → paths-D_qUel1T.js} +3 -3
- package/dist/{pi-embedded-Cfe7sfXp.js → pi-embedded-BYtUxbhJ.js} +26 -26
- package/dist/{pi-embedded-CQoT3WaM.js → pi-embedded-CIJj8Clt.js} +184 -184
- package/dist/{pi-embedded-helpers-Ct2rwp-P.js → pi-embedded-helpers-C2j0LfJC.js} +4 -4
- package/dist/{pi-embedded-helpers-B3ceCcxm.js → pi-embedded-helpers-CyTpDKo5.js} +24 -24
- package/dist/{pi-model-discovery-Dlx4RLWo.js → pi-model-discovery-Bb__OY-j.js} +7 -7
- package/dist/plugin-sdk/{accounts-Kt6ygPsC.js → accounts-BLYMokxV.js} +2 -2
- package/dist/plugin-sdk/{accounts-mjFAny5F.js → accounts-C5tHm1UI.js} +1 -1
- package/dist/plugin-sdk/{accounts-B9nfRzyn.js → accounts-CBVAw5_G.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-CU41EMlR.js → agent-scope-jl80I5G9.js} +2 -2
- package/dist/plugin-sdk/{agent-via-gateway-DgS1tFFD.js → agent-via-gateway-RUSmiQPF.js} +55 -55
- package/dist/plugin-sdk/{anton-CNaMAyWx.js → anton-BluQsLu2.js} +4 -4
- package/dist/plugin-sdk/{api-key-rotation-CZhCWd61.js → api-key-rotation-D6nK54XH.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-CRgDehfO.js → audio-preflight-CKqqN8ty.js} +30 -30
- package/dist/plugin-sdk/{auth-store-DycBvVqL.js → auth-store-DaPWgQTx.js} +1 -1
- package/dist/plugin-sdk/{bindings-BDKKHGv-.js → bindings-xXgmJGxj.js} +2 -2
- package/dist/{channel-activity-DdL3RAv_.js → plugin-sdk/channel-activity-loOg1DRw.js} +3 -3
- package/dist/plugin-sdk/{channel-web-DwpLcf95.js → channel-web-Dn0OzSFP.js} +24 -24
- package/dist/plugin-sdk/{chrome-BCTizrZD.js → chrome-Cb9FgiCI.js} +6 -6
- package/dist/plugin-sdk/{chunk-DZr5xuqv.js → chunk-PW4MBmaN.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-BqJLwZYh.js → commands-registry-B5m2EsHz.js} +5 -5
- package/dist/plugin-sdk/{config-BzPMtEKA.js → config-CEgzwk0J.js} +10 -10
- package/dist/plugin-sdk/{deliver-Cfc1UCre.js → deliver-BNfMF0Nb.js} +10 -10
- package/dist/{deps-BQsD8-_C.js → plugin-sdk/deps-C8qACokW.js} +6 -6
- package/dist/plugin-sdk/{diagnostic-B8VzcqLf.js → diagnostic-ByA6zvzu.js} +1 -1
- package/dist/plugin-sdk/{dock-CMURqoee.js → dock-DKQYtT6-.js} +6 -6
- package/dist/plugin-sdk/{emergency-stop-BV2NiRit.js → emergency-stop-DylRK_E8.js} +55 -55
- package/dist/plugin-sdk/{env-qurSiOO2.js → env-5XecRTLs.js} +1 -1
- package/dist/{errors-C4SHjIZK.js → plugin-sdk/errors-CMcD8Lhh.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-C174s8ZV.js → fetch-guard-DwdUEdmT.js} +1 -1
- package/dist/plugin-sdk/{fs-safe-CCXTOK7j.js → fs-safe-qsx2_8-o.js} +2 -2
- package/dist/plugin-sdk/{image-DDuK8tyO.js → image-C_1tftC8.js} +6 -6
- package/dist/plugin-sdk/{image-ops-BRYGGDwL.js → image-ops-CXSUo-AM.js} +1 -1
- package/dist/plugin-sdk/index.js +60 -60
- package/dist/{ir-BT5aAdU9.js → plugin-sdk/ir-kdDGpPMq.js} +6 -6
- package/dist/plugin-sdk/{local-roots-bHCsSVt_.js → local-roots-DjB6DYeI.js} +4 -4
- package/dist/plugin-sdk/{login-CkQrnY2G.js → login-DIwO5D5Y.js} +6 -6
- package/dist/plugin-sdk/{login-qr-DAeHibH_.js → login-qr-CpCAJuvT.js} +8 -8
- package/dist/plugin-sdk/{manager-CTC1S_c9.js → manager-Dox9r7og.js} +10 -10
- package/dist/plugin-sdk/{markdown-tables-DfUQHRZY.js → markdown-tables-Drtwd4J5.js} +1 -1
- package/dist/plugin-sdk/{message-channel-DiMXmQeQ.js → message-channel-CQ0qkGHj.js} +1 -1
- package/dist/plugin-sdk/{outbound-B1twcfz5.js → outbound-Dx_q6JAI.js} +6 -6
- package/dist/plugin-sdk/{outbound-attachment-Bs7fNaqv.js → outbound-attachment-BisU5Vji.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-yyy61qHh.js → path-alias-guards-C_uBEYb4.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-BAm9cWol.js → pi-embedded-helpers-B68z4sHq.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-Bt6JtUFr.js → pi-model-discovery-Dt6899be.js} +1 -1
- package/dist/plugin-sdk/{plugins-DRPlVBr_.js → plugins-NTjIvHYk.js} +5 -5
- package/dist/plugin-sdk/{pw-ai-CY0evCZ2.js → pw-ai-Dk2PTZzq.js} +10 -10
- package/dist/plugin-sdk/{qmd-manager-BckPBwZX.js → qmd-manager-juzrnopq.js} +5 -5
- package/dist/plugin-sdk/{query-expansion-CPqK-tTR.js → query-expansion-xBXvzdkL.js} +2 -2
- package/dist/plugin-sdk/{redact-Ub8sMBBC.js → redact-B6VQH3UQ.js} +1 -1
- package/dist/plugin-sdk/{replies-DwTNZJgi.js → replies-ZovJp-3F.js} +3 -3
- package/dist/plugin-sdk/{reply-B_cEB9MH.js → reply-DhycbFxW.js} +95 -95
- package/dist/plugin-sdk/{reply-prefix-BqV0o7_7.js → reply-prefix--mxmTL7A.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-DAdNGEqG.js → resolve-outbound-target-CnUtsDch.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-C5mAwY-o.js → resolve-route-BZABUE4J.js} +3 -3
- package/dist/plugin-sdk/{retry-2OVzZJMZ.js → retry-Bh7jveNm.js} +1 -1
- package/dist/plugin-sdk/{runner-Ck0w3rcz.js → runner-CZz1tOIR.js} +10 -10
- package/dist/plugin-sdk/{send-BBD-m-nM.js → send-0EVlThEG.js} +10 -10
- package/dist/plugin-sdk/{send-CaPoBwby.js → send-B26cNPqY.js} +6 -6
- package/dist/plugin-sdk/{send-CPeuqOlq.js → send-BCjVQhp3.js} +13 -13
- package/dist/plugin-sdk/{send-SsqudCMv.js → send-CHUGIZs9.js} +7 -7
- package/dist/plugin-sdk/{send-A4Lv5nrg.js → send-Cb5NIN8s.js} +7 -7
- package/dist/plugin-sdk/{session-DpL4uk1J.js → session-DdJj6_DW.js} +3 -3
- package/dist/plugin-sdk/{sessions-CQ5iD4Uq.js → sessions-DNx9c2O2.js} +6 -6
- package/dist/plugin-sdk/{skill-commands-C_O9I71g.js → skill-commands-DorIK8kn.js} +5 -5
- package/dist/plugin-sdk/{skills-DmiIiX4l.js → skills-Dh_Cf2PA.js} +8 -8
- package/dist/plugin-sdk/{store-BI3rLJdW.js → store-CCCXwngh.js} +2 -2
- package/dist/plugin-sdk/{subsystem-lJo9gqAK.js → subsystem-DWPzKeZ0.js} +1 -1
- package/dist/plugin-sdk/{tables-C4X_nAUQ.js → tables-CF9W23Rd.js} +1 -1
- package/dist/plugin-sdk/{target-errors-CXh6e9ZE.js → target-errors-DaH0qYtL.js} +2 -2
- package/dist/{tokens-DGajj8M9.js → plugin-sdk/tokens-Y97UKh4C.js} +1 -1
- package/dist/plugin-sdk/{tool-images-Cf9aWlVu.js → tool-images-BMRkn_yk.js} +2 -2
- package/dist/plugin-sdk/{tool-loop-detection-DuwkSqZL.js → tool-loop-detection-Cv8wyfAi.js} +2 -2
- package/dist/plugin-sdk/{utils-dP-FpIgu.js → utils-Dyj2wV4e.js} +2 -2
- package/dist/plugin-sdk/web-yryYzFPs.js +71 -0
- package/dist/plugin-sdk/{whatsapp-actions-Bcknq6EZ.js → whatsapp-actions-B5g-Rywy.js} +23 -23
- package/dist/{plugins-DYr-HHj0.js → plugins-CRB60mCJ.js} +10 -10
- package/dist/{pw-ai-DIV4PcIo.js → pw-ai-CowTfhOG.js} +13 -13
- package/dist/{pw-ai-yrIWfcWX.js → pw-ai-DjmrIQle.js} +1 -1
- package/dist/{qmd-manager-BRvg3Rx2.js → qmd-manager-B_GgyQQ0.js} +8 -8
- package/dist/{query-expansion-DHuNyU-_.js → query-expansion-DEq020GG.js} +5 -5
- package/dist/{redact-1Y0KPNtr.js → redact-Bvpf-ATQ.js} +1 -1
- package/dist/{replies-2C16fnBP.js → replies-6_GxvQYe.js} +3 -3
- package/dist/{reply-prefix-DCljZiIB.js → reply-prefix-BUgeSN2R.js} +1 -1
- package/dist/{resolve-route-ClcifpKn.js → resolve-route-DuttYY7A.js} +4 -4
- package/dist/{retry-CG6cMRDQ.js → retry-BeB9WenR.js} +1 -1
- package/dist/{runner-BkCU-kqs.js → runner-BzNdfqDz.js} +11 -11
- package/dist/{runner-Bv_BA3vd.js → runner-CZW_eyf2.js} +1 -1
- package/dist/{send-DZa8fWSm.js → send-BeIZJuy4.js} +7 -7
- package/dist/{send-Y1hD4tQ1.js → send-C1hvd3bt.js} +6 -6
- package/dist/{send-BOxJ4QXF.js → send-D4bMycQu.js} +7 -7
- package/dist/{send-FLdrx-oF.js → send-Dfa3sn6r.js} +24 -24
- package/dist/{send-IlPMLAH-.js → send-DmLC7aEF.js} +10 -10
- package/dist/{session-nUPBXeEa.js → session-F_YDS_1V.js} +7 -7
- package/dist/{sessions-DRA4oaxz.js → sessions-3ioSeOA1.js} +41 -41
- package/dist/{skill-commands-BHTBXXVn.js → skill-commands-Ck3flWX7.js} +9 -9
- package/dist/{skills-umlGvChF.js → skills-CnAPWfca.js} +22 -22
- package/dist/{store-D-ZicQeo.js → store-CvMgrKWx.js} +2 -2
- package/dist/{subsystem-D7ZepYT1.js → subsystem-tzu-rIAJ.js} +1 -1
- package/dist/{tables-Co_R_WKs.js → tables-5k-zOZ-s.js} +1 -1
- package/dist/{target-errors-B1mcM4WR.js → target-errors-BPfQrPim.js} +2 -2
- package/dist/{plugin-sdk/tokens-CU9S3S7t.js → tokens-BRLyURxW.js} +1 -1
- package/dist/{tool-images-Duuqr4bN.js → tool-images-CcGZpzmq.js} +2 -2
- package/dist/{tool-loop-detection-CjWRg_4q.js → tool-loop-detection-BNGetx3Z.js} +3 -3
- package/dist/{utils-D9wGoiU9.js → utils-CTFLl_ji.js} +18 -18
- package/dist/{web-D3gOCfby.js → web-BsIp9miY.js} +8 -8
- package/dist/{web-D7J5iB9K.js → web-JPsGpVZ5.js} +66 -66
- package/dist/{whatsapp-actions-BJ6kVDXi.js → whatsapp-actions-DbPcN6JQ.js} +25 -25
- package/dist/{workspace-tAtkoD_r.js → workspace-DBFSzT6O.js} +18 -18
- package/package.json +1 -1
- package/dist/emergency-stop-DVyGxgzf.js +0 -113
- package/dist/plugin-sdk/web-B-hYOnMb.js +0 -71
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { m as resolveRequiredHomeDir } from "./paths-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { A as shouldLogVerbose, L as getLogger, M as warn, O as logVerboseConsole, T as info, f as pathExists$1, h as resolveUserPath, w as danger } from "./utils-
|
|
1
|
+
import { m as resolveRequiredHomeDir } from "./paths-BYNVLNi_.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-tzu-rIAJ.js";
|
|
3
|
+
import { A as shouldLogVerbose, L as getLogger, M as warn, O as logVerboseConsole, T as info, f as pathExists$1, h as resolveUserPath, w as danger } from "./utils-CTFLl_ji.js";
|
|
4
4
|
import { n as defaultRuntime } from "./runtime-8mi3mpYB.js";
|
|
5
5
|
import { b as isSubagentSessionKey, y as isCronSessionKey } from "./session-key-CuLPSMu_.js";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import os from "node:os";
|
|
8
8
|
import path from "node:path";
|
|
9
|
-
import
|
|
9
|
+
import syncFs from "node:fs";
|
|
10
10
|
import { promisify } from "node:util";
|
|
11
11
|
import { execFile, spawn } from "node:child_process";
|
|
12
12
|
import { fileURLToPath } from "node:url";
|
|
@@ -226,7 +226,7 @@ function resolveBoundaryPathLexicalSync(params) {
|
|
|
226
226
|
lexicalCursor = path.join(lexicalCursor, segment);
|
|
227
227
|
let stat;
|
|
228
228
|
try {
|
|
229
|
-
stat =
|
|
229
|
+
stat = syncFs.lstatSync(lexicalCursor);
|
|
230
230
|
} catch (error) {
|
|
231
231
|
if (isNotFoundPathError(error)) {
|
|
232
232
|
const missingSuffix = segments.slice(idx);
|
|
@@ -332,15 +332,15 @@ function resolvePathViaExistingAncestorSync(targetPath) {
|
|
|
332
332
|
const normalized = path.resolve(targetPath);
|
|
333
333
|
let cursor = normalized;
|
|
334
334
|
const missingSuffix = [];
|
|
335
|
-
while (!isFilesystemRoot(cursor) && !
|
|
335
|
+
while (!isFilesystemRoot(cursor) && !syncFs.existsSync(cursor)) {
|
|
336
336
|
missingSuffix.unshift(path.basename(cursor));
|
|
337
337
|
const parent = path.dirname(cursor);
|
|
338
338
|
if (parent === cursor) break;
|
|
339
339
|
cursor = parent;
|
|
340
340
|
}
|
|
341
|
-
if (!
|
|
341
|
+
if (!syncFs.existsSync(cursor)) return normalized;
|
|
342
342
|
try {
|
|
343
|
-
const resolvedAncestor = path.resolve(
|
|
343
|
+
const resolvedAncestor = path.resolve(syncFs.realpathSync(cursor));
|
|
344
344
|
if (missingSuffix.length === 0) return resolvedAncestor;
|
|
345
345
|
return path.resolve(resolvedAncestor, ...missingSuffix);
|
|
346
346
|
} catch {
|
|
@@ -365,7 +365,7 @@ function getPathKindSync(absolutePath, preserveFinalSymlink) {
|
|
|
365
365
|
try {
|
|
366
366
|
return {
|
|
367
367
|
exists: true,
|
|
368
|
-
kind: toResolvedKind(preserveFinalSymlink ?
|
|
368
|
+
kind: toResolvedKind(preserveFinalSymlink ? syncFs.lstatSync(absolutePath) : syncFs.statSync(absolutePath))
|
|
369
369
|
};
|
|
370
370
|
} catch (error) {
|
|
371
371
|
if (isNotFoundPathError(error)) return {
|
|
@@ -425,10 +425,10 @@ async function resolveSymlinkHopPath(symlinkPath) {
|
|
|
425
425
|
}
|
|
426
426
|
function resolveSymlinkHopPathSync(symlinkPath) {
|
|
427
427
|
try {
|
|
428
|
-
return path.resolve(
|
|
428
|
+
return path.resolve(syncFs.realpathSync(symlinkPath));
|
|
429
429
|
} catch (error) {
|
|
430
430
|
if (!isNotFoundPathError(error)) throw error;
|
|
431
|
-
const linkTarget =
|
|
431
|
+
const linkTarget = syncFs.readlinkSync(symlinkPath);
|
|
432
432
|
return resolvePathViaExistingAncestorSync(path.resolve(path.dirname(symlinkPath), linkTarget));
|
|
433
433
|
}
|
|
434
434
|
}
|
|
@@ -454,7 +454,7 @@ function sameFileIdentity(left, right) {
|
|
|
454
454
|
return sameFileIdentity$1(left, right);
|
|
455
455
|
}
|
|
456
456
|
function openVerifiedFileSync(params) {
|
|
457
|
-
const ioFs = params.ioFs ??
|
|
457
|
+
const ioFs = params.ioFs ?? syncFs;
|
|
458
458
|
const openReadFlags = ioFs.constants.O_RDONLY | (typeof ioFs.constants.O_NOFOLLOW === "number" ? ioFs.constants.O_NOFOLLOW : 0);
|
|
459
459
|
let fd = null;
|
|
460
460
|
try {
|
|
@@ -526,7 +526,7 @@ function canUseBoundaryFileOpen(ioFs) {
|
|
|
526
526
|
return typeof ioFs.openSync === "function" && typeof ioFs.closeSync === "function" && typeof ioFs.fstatSync === "function" && typeof ioFs.lstatSync === "function" && typeof ioFs.realpathSync === "function" && typeof ioFs.readFileSync === "function" && typeof ioFs.constants === "object" && ioFs.constants !== null;
|
|
527
527
|
}
|
|
528
528
|
function openBoundaryFileSync(params) {
|
|
529
|
-
const ioFs = params.ioFs ??
|
|
529
|
+
const ioFs = params.ioFs ?? syncFs;
|
|
530
530
|
const absolutePath = path.resolve(params.absolutePath);
|
|
531
531
|
let resolvedPath;
|
|
532
532
|
let rootRealPath;
|
|
@@ -864,7 +864,7 @@ async function readPackageName(dir) {
|
|
|
864
864
|
}
|
|
865
865
|
function readPackageNameSync(dir) {
|
|
866
866
|
try {
|
|
867
|
-
const raw =
|
|
867
|
+
const raw = syncFs.readFileSync(path.join(dir, "package.json"), "utf-8");
|
|
868
868
|
const parsed = JSON.parse(raw);
|
|
869
869
|
return typeof parsed.name === "string" ? parsed.name : null;
|
|
870
870
|
} catch {
|
|
@@ -898,7 +898,7 @@ function candidateDirsFromArgv1(argv1) {
|
|
|
898
898
|
const normalized = path.resolve(argv1);
|
|
899
899
|
const candidates = [path.dirname(normalized)];
|
|
900
900
|
try {
|
|
901
|
-
const resolved =
|
|
901
|
+
const resolved = syncFs.realpathSync(normalized);
|
|
902
902
|
if (resolved !== normalized) candidates.push(path.dirname(resolved));
|
|
903
903
|
} catch {}
|
|
904
904
|
const parts = normalized.split(path.sep);
|
|
@@ -1010,14 +1010,14 @@ async function readWorkspaceFileWithGuards(params) {
|
|
|
1010
1010
|
const identity = workspaceFileIdentity(opened.stat, opened.path);
|
|
1011
1011
|
const cached = workspaceFileCache.get(params.filePath);
|
|
1012
1012
|
if (cached && cached.identity === identity) {
|
|
1013
|
-
|
|
1013
|
+
syncFs.closeSync(opened.fd);
|
|
1014
1014
|
return {
|
|
1015
1015
|
ok: true,
|
|
1016
1016
|
content: cached.content
|
|
1017
1017
|
};
|
|
1018
1018
|
}
|
|
1019
1019
|
try {
|
|
1020
|
-
const content =
|
|
1020
|
+
const content = syncFs.readFileSync(opened.fd, "utf-8");
|
|
1021
1021
|
workspaceFileCache.set(params.filePath, {
|
|
1022
1022
|
content,
|
|
1023
1023
|
identity
|
|
@@ -1034,7 +1034,7 @@ async function readWorkspaceFileWithGuards(params) {
|
|
|
1034
1034
|
error
|
|
1035
1035
|
};
|
|
1036
1036
|
} finally {
|
|
1037
|
-
|
|
1037
|
+
syncFs.closeSync(opened.fd);
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
1040
|
function stripFrontMatter(content) {
|
package/package.json
CHANGED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import "./agent-scope-Bxq1eWbA.js";
|
|
2
|
-
import "./paths-DQpv9a3Q.js";
|
|
3
|
-
import "./subsystem-D7ZepYT1.js";
|
|
4
|
-
import { D as logVerbose } from "./utils-D9wGoiU9.js";
|
|
5
|
-
import "./runtime-8mi3mpYB.js";
|
|
6
|
-
import "./workspace-tAtkoD_r.js";
|
|
7
|
-
import "./model-selection-C5hI1dum.js";
|
|
8
|
-
import "./github-copilot-token-BjmEQcmi.js";
|
|
9
|
-
import "./boolean-CE7i9tBR.js";
|
|
10
|
-
import "./env-q-PhWbb_.js";
|
|
11
|
-
import "./dock-ejUetwTC.js";
|
|
12
|
-
import "./tokens-DGajj8M9.js";
|
|
13
|
-
import { B as clearSessionQueues, F as isAbortRequestText, I as stopSubagentsForRequester, P as formatAbortReplyText, n as abortEmbeddedPiRun } from "./pi-embedded-CQoT3WaM.js";
|
|
14
|
-
import "./plugins-DYr-HHj0.js";
|
|
15
|
-
import "./accounts-BQC_GRUB.js";
|
|
16
|
-
import "./bindings-CLZIJ0Eo.js";
|
|
17
|
-
import "./auth-store-Bb4aajHu.js";
|
|
18
|
-
import "./send-DZa8fWSm.js";
|
|
19
|
-
import "./send-IlPMLAH-.js";
|
|
20
|
-
import "./deliver-Db2xqgLg.js";
|
|
21
|
-
import "./diagnostic-BvlZ0Sot.js";
|
|
22
|
-
import "./diagnostic-session-state-BGF2r-kt.js";
|
|
23
|
-
import "./accounts-B8cGzkjD.js";
|
|
24
|
-
import "./send-FLdrx-oF.js";
|
|
25
|
-
import "./image-ops-J8P5zOFm.js";
|
|
26
|
-
import "./pi-model-discovery-Dlx4RLWo.js";
|
|
27
|
-
import "./message-channel-ZdI1-uUh.js";
|
|
28
|
-
import "./pi-embedded-helpers-B3ceCcxm.js";
|
|
29
|
-
import "./chrome-CT_a9OgI.js";
|
|
30
|
-
import "./ssrf-CZeHDwVZ.js";
|
|
31
|
-
import "./frontmatter-pTUG4Sx_.js";
|
|
32
|
-
import "./skills-umlGvChF.js";
|
|
33
|
-
import "./path-alias-guards-BZmt6hFb.js";
|
|
34
|
-
import "./redact-1Y0KPNtr.js";
|
|
35
|
-
import "./errors-C4SHjIZK.js";
|
|
36
|
-
import "./fs-safe-2l05hI1Y.js";
|
|
37
|
-
import "./store-D-ZicQeo.js";
|
|
38
|
-
import { s as loadSessionStore } from "./sessions-DRA4oaxz.js";
|
|
39
|
-
import "./accounts-D5tB_lO0.js";
|
|
40
|
-
import { r as resolveDefaultSessionStorePath } from "./paths-D3p7ZvM6.js";
|
|
41
|
-
import "./tool-images-Duuqr4bN.js";
|
|
42
|
-
import "./thinking-z4_linel.js";
|
|
43
|
-
import "./image-Dlu13Ebx.js";
|
|
44
|
-
import "./reply-prefix-DCljZiIB.js";
|
|
45
|
-
import "./manager-CgzA1hKo.js";
|
|
46
|
-
import "./gemini-auth-DLSGffQK.js";
|
|
47
|
-
import "./fetch-guard-CcfDZXe9.js";
|
|
48
|
-
import "./query-expansion-DHuNyU-_.js";
|
|
49
|
-
import "./retry-CG6cMRDQ.js";
|
|
50
|
-
import "./target-errors-B1mcM4WR.js";
|
|
51
|
-
import "./chunk-Djk-9JeT.js";
|
|
52
|
-
import "./markdown-tables-R8VTpfE9.js";
|
|
53
|
-
import "./local-roots-d4y0lvs2.js";
|
|
54
|
-
import "./ir-BT5aAdU9.js";
|
|
55
|
-
import "./render-MTSxc7LK.js";
|
|
56
|
-
import "./commands-registry-_TBHHpvt.js";
|
|
57
|
-
import "./skill-commands-BHTBXXVn.js";
|
|
58
|
-
import "./runner-BkCU-kqs.js";
|
|
59
|
-
import "./fetch-CsfR_943.js";
|
|
60
|
-
import "./channel-activity-DdL3RAv_.js";
|
|
61
|
-
import "./tables-Co_R_WKs.js";
|
|
62
|
-
import "./send-Y1hD4tQ1.js";
|
|
63
|
-
import "./outbound-attachment-IfeZJAKk.js";
|
|
64
|
-
import "./send-BOxJ4QXF.js";
|
|
65
|
-
import "./resolve-route-ClcifpKn.js";
|
|
66
|
-
import "./proxy-CRB9oCP5.js";
|
|
67
|
-
import "./replies-2C16fnBP.js";
|
|
68
|
-
import "./deps-BQsD8-_C.js";
|
|
69
|
-
|
|
70
|
-
//#region src/auto-reply/reply/emergency-stop.ts
|
|
71
|
-
/**
|
|
72
|
-
* Emergency stop — bypass all queues and debouncing.
|
|
73
|
-
* Called at the earliest ingress point (before debouncer) to guarantee immediate execution.
|
|
74
|
-
*/
|
|
75
|
-
/**
|
|
76
|
-
* Execute an emergency stop for a session.
|
|
77
|
-
* Clears all queues, aborts embedded runs, and stops subagents.
|
|
78
|
-
* Returns the reply text to send to the user.
|
|
79
|
-
*/
|
|
80
|
-
function emergencyStop(params) {
|
|
81
|
-
const { cfg, sessionKey, sessionId } = params;
|
|
82
|
-
const cleared = clearSessionQueues([sessionKey, sessionId]);
|
|
83
|
-
if (cleared.followupCleared > 0 || cleared.laneCleared > 0) logVerbose(`emergency-stop: cleared followups=${cleared.followupCleared} lane=${cleared.laneCleared} keys=${cleared.keys.join(",")}`);
|
|
84
|
-
if (sessionId) abortEmbeddedPiRun(sessionId);
|
|
85
|
-
const { stopped } = stopSubagentsForRequester({
|
|
86
|
-
cfg,
|
|
87
|
-
requesterSessionKey: sessionKey
|
|
88
|
-
});
|
|
89
|
-
logVerbose(`emergency-stop: sessionKey=${sessionKey} sessionId=${sessionId} stoppedSubagents=${stopped}`);
|
|
90
|
-
return {
|
|
91
|
-
aborted: true,
|
|
92
|
-
replyText: formatAbortReplyText(stopped),
|
|
93
|
-
sessionKey
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Resolve session info from the session store for emergency stop.
|
|
98
|
-
* Lightweight — just reads the store, no locks.
|
|
99
|
-
*/
|
|
100
|
-
function resolveSessionForEmergencyStop(sessionKey) {
|
|
101
|
-
try {
|
|
102
|
-
const store = loadSessionStore(resolveDefaultSessionStorePath());
|
|
103
|
-
return {
|
|
104
|
-
sessionId: store[sessionKey]?.sessionId,
|
|
105
|
-
store
|
|
106
|
-
};
|
|
107
|
-
} catch {
|
|
108
|
-
return {};
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
//#endregion
|
|
113
|
-
export { emergencyStop, isAbortRequestText, resolveSessionForEmergencyStop };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import "./accounts-Kt6ygPsC.js";
|
|
2
|
-
import "./reply-B_cEB9MH.js";
|
|
3
|
-
import "./paths-CtGV5i8O.js";
|
|
4
|
-
import "./github-copilot-token-CY2euW0d.js";
|
|
5
|
-
import "./config-BzPMtEKA.js";
|
|
6
|
-
import "./utils-dP-FpIgu.js";
|
|
7
|
-
import "./subsystem-lJo9gqAK.js";
|
|
8
|
-
import "./runtime-CjfcfOBD.js";
|
|
9
|
-
import "./env-qurSiOO2.js";
|
|
10
|
-
import "./agent-scope-CU41EMlR.js";
|
|
11
|
-
import "./dock-CMURqoee.js";
|
|
12
|
-
import "./message-channel-DiMXmQeQ.js";
|
|
13
|
-
import "./sessions-CQ5iD4Uq.js";
|
|
14
|
-
import "./plugins-DRPlVBr_.js";
|
|
15
|
-
import "./accounts-B9nfRzyn.js";
|
|
16
|
-
import "./accounts-mjFAny5F.js";
|
|
17
|
-
import "./bindings-BDKKHGv-.js";
|
|
18
|
-
import { i as logWebSelfId, p as webAuthExists, s as pickWebChannel, t as WA_WEB_AUTH_DIR } from "./auth-store-DycBvVqL.js";
|
|
19
|
-
import "./send-BBD-m-nM.js";
|
|
20
|
-
import "./paths-CSpzSLh8.js";
|
|
21
|
-
import "./fetch-Bdjb7Pke.js";
|
|
22
|
-
import "./retry-2OVzZJMZ.js";
|
|
23
|
-
import "./redact-Ub8sMBBC.js";
|
|
24
|
-
import "./errors-UqLewZJL.js";
|
|
25
|
-
import "./channel-activity-TcS_VfJk.js";
|
|
26
|
-
import "./path-alias-guards-yyy61qHh.js";
|
|
27
|
-
import "./fs-safe-CCXTOK7j.js";
|
|
28
|
-
import "./image-ops-BRYGGDwL.js";
|
|
29
|
-
import "./ssrf-C3kIyB5u.js";
|
|
30
|
-
import "./fetch-guard-C174s8ZV.js";
|
|
31
|
-
import "./local-roots-bHCsSVt_.js";
|
|
32
|
-
import "./ir-Bv0Zbp2E.js";
|
|
33
|
-
import "./chunk-DZr5xuqv.js";
|
|
34
|
-
import "./markdown-tables-DfUQHRZY.js";
|
|
35
|
-
import "./render-latcSJiL.js";
|
|
36
|
-
import "./tables-C4X_nAUQ.js";
|
|
37
|
-
import "./send-SsqudCMv.js";
|
|
38
|
-
import "./send-CPeuqOlq.js";
|
|
39
|
-
import "./tool-images-Cf9aWlVu.js";
|
|
40
|
-
import "./target-errors-CXh6e9ZE.js";
|
|
41
|
-
import "./send-A4Lv5nrg.js";
|
|
42
|
-
import "./runner-Ck0w3rcz.js";
|
|
43
|
-
import "./reply-prefix-BqV0o7_7.js";
|
|
44
|
-
import "./tokens-CU9S3S7t.js";
|
|
45
|
-
import "./skill-commands-C_O9I71g.js";
|
|
46
|
-
import "./skills-DmiIiX4l.js";
|
|
47
|
-
import "./chrome-BCTizrZD.js";
|
|
48
|
-
import "./deliver-Cfc1UCre.js";
|
|
49
|
-
import "./diagnostic-B8VzcqLf.js";
|
|
50
|
-
import "./store-BI3rLJdW.js";
|
|
51
|
-
import "./pi-embedded-helpers-BAm9cWol.js";
|
|
52
|
-
import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-DwpLcf95.js";
|
|
53
|
-
import "./thinking-g4Rrlwu4.js";
|
|
54
|
-
import "./image-DDuK8tyO.js";
|
|
55
|
-
import "./pi-model-discovery-Bt6JtUFr.js";
|
|
56
|
-
import "./api-key-rotation-CZhCWd61.js";
|
|
57
|
-
import "./commands-registry-BqJLwZYh.js";
|
|
58
|
-
import "./diagnostic-session-state-Br7SziNV.js";
|
|
59
|
-
import "./manager-CTC1S_c9.js";
|
|
60
|
-
import "./query-expansion-CPqK-tTR.js";
|
|
61
|
-
import "./send-CaPoBwby.js";
|
|
62
|
-
import "./proxy-C4ewPdlN.js";
|
|
63
|
-
import "./resolve-route-C5mAwY-o.js";
|
|
64
|
-
import "./replies-DwTNZJgi.js";
|
|
65
|
-
import "./deps-DHns5FkJ.js";
|
|
66
|
-
import "./outbound-attachment-Bs7fNaqv.js";
|
|
67
|
-
import { n as sendMessageWhatsApp } from "./outbound-B1twcfz5.js";
|
|
68
|
-
import { i as waitForWaConnection, t as createWaSocket } from "./session-DpL4uk1J.js";
|
|
69
|
-
import { t as loginWeb } from "./login-CkQrnY2G.js";
|
|
70
|
-
|
|
71
|
-
export { WA_WEB_AUTH_DIR, createWaSocket, logWebSelfId, loginWeb, monitorWebChannel, monitorWebInbox, pickWebChannel, sendMessageWhatsApp, waitForWaConnection, webAuthExists };
|