@visorcraft/idlehands 4.0.16 → 4.0.18
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/CHANGELOG.md +15 -0
- package/dist/{accounts-Dk8mJIrQ.js → accounts-CRDMZUcg.js} +6 -6
- package/dist/{accounts-BDVs8LTu.js → accounts-upx5iuke.js} +1 -1
- package/dist/{accounts-CIvVRRHb.js → accounts-yD5yI-jP.js} +1 -1
- package/dist/{agent-scope-DyP_tr7s.js → agent-scope-BVeQuh5x.js} +4 -4
- package/dist/{agent-via-gateway-Ceb_VeXS.js → agent-via-gateway-CC37LlPd.js} +3 -2
- package/dist/{agent-via-gateway-DIfwOe7Y.js → agent-via-gateway-Cl2YwlXJ.js} +2 -1
- package/dist/{agent-via-gateway-F1Zu0slF.js → agent-via-gateway-ClQrLbgo.js} +2 -1
- package/dist/{agent-via-gateway-7SDhvcBa.js → agent-via-gateway-pMCfUzW-.js} +61 -60
- package/dist/{agents-idaLog48.js → agents-DrnGQroU.js} +4 -4
- package/dist/{agents.config-w0ZcfpyW.js → agents.config-BZPnYIMF.js} +1 -1
- package/dist/{agents.config-DP_bqTwg.js → agents.config-DfWZrbXn.js} +1 -1
- package/dist/{anton-CzWIEEiT.js → anton-B-I7rEtn.js} +44 -15
- package/dist/{anton-B7VZSQo-.js → anton-BfrX2FMd.js} +40 -11
- package/dist/{anton-Cs1JPzv4.js → anton-BgKjig3B.js} +40 -11
- package/dist/{anton-BomwkDBv.js → anton-BrY-bWgq.js} +40 -11
- package/dist/{audio-preflight-BSlR2jEq.js → audio-preflight-aBtF0cRI.js} +35 -35
- package/dist/{auth-choice-D-TtZtMR.js → auth-choice-DtvI4epn.js} +1 -1
- package/dist/{auth-choice-C49o8owq.js → auth-choice-_C22dz9o.js} +1 -1
- package/dist/{auth-store-DXT-l7fO.js → auth-store-DQAd4LSE.js} +12 -12
- package/dist/{banner-DmFqQvFd.js → banner-B-UYZG8d.js} +1 -1
- package/dist/{bindings-D3b5Fmc9.js → bindings-B9L4cqmm.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/{channel-activity-D_TMOGQ0.js → channel-activity-DOLX-uK1.js} +3 -3
- package/dist/{channel-options-CsEgIwgu.js → channel-options-BbwNg4q_.js} +1 -1
- package/dist/{channel-options-1Dqo0zkg.js → channel-options-C0iwLcfC.js} +1 -1
- package/dist/{channel-web-BicbbO9_.js → channel-web-BLxKeCXF.js} +2 -2
- package/dist/{channel-web-C7s5QLXL.js → channel-web-q6Ugfiks.js} +2 -2
- package/dist/{channels-cli-CWb-B8BT.js → channels-cli-BtL1XuuK.js} +7 -7
- package/dist/{channels-cli-REwO9h_a.js → channels-cli-DaRR8vAs.js} +7 -7
- package/dist/{chrome-_2tzVjVl.js → chrome-D_SXDetO.js} +17 -17
- package/dist/{chunk-CMpX7Jaz.js → chunk-BgScV6uo.js} +1 -1
- package/dist/{cli-B9ARC6CF.js → cli-BjhrdeVd.js} +2 -2
- package/dist/{cli-B4rP4MXJ.js → cli-CrUoGRuS.js} +2 -2
- package/dist/{command-registry-0e5VHciB.js → command-registry-BZNlvfaM.js} +10 -10
- package/dist/{commands-registry-j4vAzcF2.js → commands-registry-CK7aj_ri.js} +5 -5
- package/dist/{completion-cli-C1StqVUs.js → completion-cli-BIabgt7h.js} +1 -1
- package/dist/{completion-cli-BTtvgatl.js → completion-cli-p9W-g1Pe.js} +2 -2
- package/dist/{config-cli-C3As38Z_.js → config-cli-B4nNEjK9.js} +1 -1
- package/dist/{config-cli-B-yirt2T.js → config-cli-u4zbdm-e.js} +1 -1
- package/dist/{configure-Cw6aeqBy.js → configure-BbDbMd5G.js} +3 -3
- package/dist/{configure-BEd8nUOe.js → configure-Dj1JdeEI.js} +3 -3
- package/dist/{deliver-CVTXl0Cv.js → deliver-CJaM2zRY.js} +20 -20
- package/dist/{deps-C28cWNmF.js → deps-BMWq0kjy.js} +1 -1
- package/dist/{deps-Cn32rOjf.js → deps-BuRud-p8.js} +1 -1
- package/dist/{deps-CVb-kfIX.js → deps-CQzDLqTz.js} +6 -6
- package/dist/{deps-CYAKIzhf.js → deps-Dr9GpASq.js} +1 -1
- package/dist/{diagnostic-4owMk4vH.js → diagnostic-lz5wKsEe.js} +1 -1
- package/dist/{dock-BgOmHcbh.js → dock-6MgvdSqu.js} +6 -6
- package/dist/{doctor-completion-o6QBkVYG.js → doctor-completion-BLRGmusD.js} +1 -1
- package/dist/{doctor-completion-T5sq7t8L.js → doctor-completion-BeZMlZPb.js} +1 -1
- package/dist/{emergency-stop-CMeSxuEg.js → emergency-stop-BEsjWvQL.js} +2 -2
- package/dist/{emergency-stop-h5_WOPZT.js → emergency-stop-BU-Vbk3V.js} +2 -2
- package/dist/{emergency-stop-D-dp9zCO.js → emergency-stop-CSSPAKHr.js} +2 -2
- package/dist/emergency-stop-JXB5jZyK.js +113 -0
- package/dist/entry.js +1 -1
- package/dist/{env-B5G1qwGc.js → env-B7b7MKfk.js} +1 -1
- package/dist/{errors-C_0nm4TJ.js → errors--Eb33_ji.js} +1 -1
- package/dist/extensionAPI.js +2 -2
- package/dist/{fetch-guard-iuQsIjqN.js → fetch-guard-OZ_PCUyr.js} +1 -1
- package/dist/{frontmatter-BOudmHMS.js → frontmatter-p8nPDprK.js} +2 -2
- package/dist/{fs-safe-CYUaAFO9.js → fs-safe-BEl8T_Vc.js} +2 -2
- package/dist/{gateway-cli-Dxoh3sSC.js → gateway-cli-BCHdAJHS.js} +9 -9
- package/dist/{gateway-cli-bZXsaQkU.js → gateway-cli-Dumy2IVU.js} +9 -9
- package/dist/{gemini-auth-CIyaa44H.js → gemini-auth-CA0K3QXj.js} +2 -2
- package/dist/{github-copilot-token-Dgt6cnsM.js → github-copilot-token-DCg9Q9Ll.js} +7 -7
- package/dist/{health-dLZas7f8.js → health-B3kk7l82.js} +1 -1
- package/dist/{health-OvNY74XL.js → health-CqdQAURH.js} +1 -1
- package/dist/{hooks-cli-DZr1MB1B.js → hooks-cli-Ba4woLl0.js} +3 -3
- package/dist/{hooks-cli-DOH-i33b.js → hooks-cli-jMG5GST1.js} +3 -3
- package/dist/{image-COw__ACq.js → image-BQ3RQWD8.js} +6 -6
- package/dist/{image-ops-D1KtygWz.js → image-ops-ZNtLhD4c.js} +1 -1
- package/dist/index.js +7 -7
- package/dist/{ir-B7IBoKLy.js → ir-DnyYtX4H.js} +5 -5
- package/dist/llm-slug-generator.js +60 -60
- package/dist/{local-roots-KN4Hp1yZ.js → local-roots-C9CA2f0R.js} +5 -5
- package/dist/{login-CFr5vJmR.js → login-Cn1vc1bn.js} +6 -6
- package/dist/{login-qr-CFFFOjOl.js → login-qr-Dj0NmRdg.js} +11 -11
- package/dist/{manager-BE_76jWB.js → manager-DBd_2F6j.js} +15 -15
- package/dist/{markdown-tables-CzsockiZ.js → markdown-tables-CsrsXS80.js} +1 -1
- package/dist/{message-channel-C8QtrwEU.js → message-channel-Cg9KtLfy.js} +1 -1
- package/dist/{model-selection-1MMYqY6M.js → model-selection-Vtu6d5Um.js} +41 -41
- package/dist/{models-Dvyot3-o.js → models-C6GypzZ1.js} +2 -2
- package/dist/{models-cli-Dtzht0md.js → models-cli-BaR1RccY.js} +4 -4
- package/dist/{models-cli-CKRL4j3x.js → models-cli-iLP9BnPA.js} +3 -3
- package/dist/{npm-resolution-BpruvRIr.js → npm-resolution-CWxaTTrT.js} +1 -1
- package/dist/{npm-resolution-iEXmU1Ol.js → npm-resolution-DYUWHUe5.js} +1 -1
- package/dist/{onboard-CS6IQorr.js → onboard-CinZ4CuY.js} +2 -2
- package/dist/{onboard-Ck4SwhZB.js → onboard-DdBsJgzg.js} +2 -2
- package/dist/{onboard-channels-CM4puuWQ.js → onboard-channels-9XAEsgO-.js} +1 -1
- package/dist/{onboard-channels-DzNjXM6f.js → onboard-channels-Bnwwq6TK.js} +1 -1
- package/dist/{onboarding-DMEJRAg4.js → onboarding-C4oujn63.js} +3 -3
- package/dist/{onboarding-0Pop0Cex.js → onboarding-DFvHWFqL.js} +3 -3
- package/dist/{onboarding.finalize-f2qChM_N.js → onboarding.finalize-BDWHPpyn.js} +6 -6
- package/dist/{onboarding.finalize-BZW1kZw7.js → onboarding.finalize-DMhdDTvo.js} +7 -7
- package/dist/{outbound-BNh6PpQb.js → outbound-BYm4JJli.js} +6 -6
- package/dist/{outbound-attachment-3I6GzwDe.js → outbound-attachment-DwaqvYNG.js} +2 -2
- package/dist/{path-alias-guards-Cu1nXNMM.js → path-alias-guards-BnjbJzIQ.js} +1 -1
- package/dist/{paths-D_qUel1T.js → paths-0fcEvxu4.js} +3 -3
- package/dist/{paths-BYNVLNi_.js → paths-CkTEyLTV.js} +5 -5
- package/dist/{pi-embedded-Oto02Ard.js → pi-embedded-BDp9JsrM.js} +175 -175
- package/dist/{pi-embedded-BKTKQn_9.js → pi-embedded-Dap1HAGA.js} +11 -11
- package/dist/{pi-embedded-helpers-CyTpDKo5.js → pi-embedded-helpers-B1CKQ81Y.js} +24 -24
- package/dist/{pi-model-discovery-Bb__OY-j.js → pi-model-discovery-DBHbwKOo.js} +7 -7
- package/dist/{plugin-registry-BfNJBiAr.js → plugin-registry-CGFy1ugt.js} +1 -1
- package/dist/{plugin-registry-PcN7mK-d.js → plugin-registry-LYzfPk35.js} +1 -1
- package/dist/plugin-sdk/{agent-via-gateway-l3LvRB7r.js → agent-via-gateway-De4e2_-W.js} +3 -2
- package/dist/plugin-sdk/{anton-DJn2RPpW.js → anton-BO16dWNw.js} +40 -11
- package/dist/plugin-sdk/{channel-web-DvztgyXI.js → channel-web-Cd-eamYe.js} +2 -2
- package/dist/plugin-sdk/commands/agent-via-gateway.d.ts +1 -0
- package/dist/plugin-sdk/{deps-B1DxdYuU.js → deps-D6VWIdk7.js} +1 -1
- package/dist/plugin-sdk/{emergency-stop-CVZuzTM7.js → emergency-stop-w-HD2bz4.js} +2 -2
- package/dist/plugin-sdk/index.js +3 -3
- package/dist/plugin-sdk/{reply-BhGucE6k.js → reply-BqAPyIsz.js} +11 -11
- package/dist/plugin-sdk/{web-BzmXmmAo.js → web-Dj_tThNQ.js} +3 -3
- package/dist/{plugins-CRB60mCJ.js → plugins-Bb6_uisJ.js} +10 -10
- package/dist/{plugins-cli-DOTZBHc7.js → plugins-cli-BCAcCeRZ.js} +3 -3
- package/dist/{plugins-cli-s1bEnfMn.js → plugins-cli-BQKfJ9aF.js} +3 -3
- package/dist/{program-Blak4A0H.js → program-Df-zk5RB.js} +8 -8
- package/dist/{program-context-DtHO30yM.js → program-context-DBOEyhi4.js} +18 -18
- package/dist/{prompt-select-styled-DuHE5c_O.js → prompt-select-styled-B0FsbRWb.js} +4 -4
- package/dist/{prompt-select-styled-D8vDTRY8.js → prompt-select-styled-DJVZSK4X.js} +4 -4
- package/dist/{provider-auth-helpers-PdlgGx1Z.js → provider-auth-helpers-Aojd4jNn.js} +1 -1
- package/dist/{provider-auth-helpers-CnqcE5__.js → provider-auth-helpers-D0cQmJkF.js} +1 -1
- package/dist/{push-apns-DkGS3lmo.js → push-apns-BtI9tV7C.js} +1 -1
- package/dist/{push-apns-CNVtKEbW.js → push-apns-qzriU6TC.js} +1 -1
- package/dist/{pw-ai-CowTfhOG.js → pw-ai-BKPa5DlF.js} +13 -13
- package/dist/{qmd-manager-B_GgyQQ0.js → qmd-manager-DEJVRLvM.js} +8 -8
- package/dist/{query-expansion-DEq020GG.js → query-expansion-CW7PqIXL.js} +5 -5
- package/dist/{redact-Bvpf-ATQ.js → redact-D1Ebz_iR.js} +1 -1
- package/dist/{register.agent-BGs6wEo-.js → register.agent-ButiRGeg.js} +9 -9
- package/dist/{register.agent-DliuXWG0.js → register.agent-Xdy9Gu3H.js} +8 -8
- package/dist/{register.configure-D9bNPRml.js → register.configure-f4xr9iKB.js} +8 -8
- package/dist/{register.configure-DJsShg2l.js → register.configure-m5qhbCOO.js} +8 -8
- package/dist/{register.maintenance-B-36Avrl.js → register.maintenance-BA4e0HDc.js} +8 -8
- package/dist/{register.maintenance-B7ZM7NqF.js → register.maintenance-N55abUee.js} +9 -9
- package/dist/{register.message-CmEzaYEw.js → register.message-DaVB6EYW.js} +3 -3
- package/dist/{register.message-Cm5P_dls.js → register.message-Zta0bYh0.js} +3 -3
- package/dist/{register.onboard-ByUSn1hy.js → register.onboard-BHKf5Emm.js} +2 -2
- package/dist/{register.onboard-cB-UkXhL.js → register.onboard-BikBO9Gs.js} +2 -2
- package/dist/{register.orchestrator-anton-D_mAceTk.js → register.orchestrator-anton-DtPFOV9F.js} +2 -2
- package/dist/{register.orchestrator-anton-CADua5Nr.js → register.orchestrator-anton-x3yGok7b.js} +2 -2
- package/dist/{register.setup-CA3WwC1V.js → register.setup-BeRMjZaz.js} +2 -2
- package/dist/{register.setup-DOnWysTP.js → register.setup-DCIPrpG0.js} +2 -2
- package/dist/{register.status-health-sessions-DgR30NBl.js → register.status-health-sessions-CA5wMwpi.js} +4 -4
- package/dist/{register.status-health-sessions-Dsvbkrhh.js → register.status-health-sessions-I0YSjY_V.js} +4 -4
- package/dist/{register.subclis-CvN5J3oh.js → register.subclis-DZkq_g35.js} +9 -9
- package/dist/{replies-6_GxvQYe.js → replies-CXcxPRWk.js} +3 -3
- package/dist/{reply-D6y5faqD.js → reply-DlS9HBVo.js} +11 -11
- package/dist/{reply-prefix-BUgeSN2R.js → reply-prefix-49q2WQ2B.js} +1 -1
- package/dist/{resolve-route-DuttYY7A.js → resolve-route-Dr-fqH39.js} +4 -4
- package/dist/{retry-BeB9WenR.js → retry-DWN-e4ja.js} +1 -1
- package/dist/{run-main-BBYeikWD.js → run-main-B75ak_hb.js} +15 -15
- package/dist/{runner-BzNdfqDz.js → runner-DO528Ump.js} +11 -11
- package/dist/{send-BeIZJuy4.js → send-BspIjWIY.js} +7 -7
- package/dist/{send-DmLC7aEF.js → send-BypmtKl1.js} +10 -10
- package/dist/{send-D4bMycQu.js → send-CRnMBrJ2.js} +7 -7
- package/dist/{send-Dfa3sn6r.js → send-De8xTUIV.js} +24 -24
- package/dist/{send-C1hvd3bt.js → send-szC_vYk_.js} +6 -6
- package/dist/{server-node-events-CcAiA2an.js → server-node-events-B1RPoseF.js} +3 -3
- package/dist/{server-node-events-DeBYOK05.js → server-node-events-CufCnFp4.js} +3 -3
- package/dist/{session-F_YDS_1V.js → session-CKiIT4OY.js} +7 -7
- package/dist/{sessions-3ioSeOA1.js → sessions-BgxmLQuf.js} +41 -41
- package/dist/{skill-commands-Ck3flWX7.js → skill-commands-BOUMR5De.js} +9 -9
- package/dist/{skills-CnAPWfca.js → skills-OsjsCf_S.js} +22 -22
- package/dist/{status-Dd0rJBTD.js → status-ERmEJYw1.js} +2 -2
- package/dist/{status-BW8aF7xu.js → status-hXjECVBh.js} +2 -2
- package/dist/{store-CvMgrKWx.js → store-B4rHJvSg.js} +2 -2
- package/dist/{subagent-registry-DeXWDNty.js → subagent-registry-CcxZYIwL.js} +11 -11
- package/dist/{subsystem-tzu-rIAJ.js → subsystem-B98oWbbO.js} +1 -1
- package/dist/{tables-5k-zOZ-s.js → tables-DuOExt0S.js} +1 -1
- package/dist/{target-errors-BPfQrPim.js → target-errors-CWZr3RMI.js} +2 -2
- package/dist/{tokens-BRLyURxW.js → tokens-B9ArFCMX.js} +1 -1
- package/dist/{tool-images-CcGZpzmq.js → tool-images-DLiBUCZb.js} +2 -2
- package/dist/{tool-loop-detection-BNGetx3Z.js → tool-loop-detection-j48jLTrr.js} +3 -3
- package/dist/{update-cli-C97163Ne.js → update-cli-DROtjWg7.js} +9 -9
- package/dist/{update-cli-DLWAR9u6.js → update-cli-Rnv68OR6.js} +8 -8
- package/dist/{update-runner-Cft2lh5r.js → update-runner-BWxBVG9j.js} +1 -1
- package/dist/{update-runner-BV9LWTCG.js → update-runner-CqeNDbPD.js} +1 -1
- package/dist/{utils-CTFLl_ji.js → utils-ChNzRVsg.js} +18 -18
- package/dist/{web-BwZ1OGaX.js → web-5ddwA0bs.js} +66 -66
- package/dist/{web-D8zB-Qkg.js → web-BMSzFWiF.js} +3 -3
- package/dist/{web-DGPTqAhk.js → web-BQLIquZA.js} +3 -3
- package/dist/{web-Da_aB4Vm.js → web-CnzKMZK0.js} +3 -3
- package/dist/{whatsapp-actions-DbPcN6JQ.js → whatsapp-actions-CYraflBZ.js} +25 -25
- package/dist/{workspace-DBFSzT6O.js → workspace-AM44PzIs.js} +18 -18
- package/extensions/acpx/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/hand/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +12 -0
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +12 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +12 -0
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +12 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +12 -0
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +12 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +12 -0
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/emergency-stop-w0AyIMs7.js +0 -113
|
@@ -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-CkTEyLTV.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-B98oWbbO.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-ChNzRVsg.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 fsSync 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 = fsSync.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) && !fsSync.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 (!fsSync.existsSync(cursor)) return normalized;
|
|
342
342
|
try {
|
|
343
|
-
const resolvedAncestor = path.resolve(
|
|
343
|
+
const resolvedAncestor = path.resolve(fsSync.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 ? fsSync.lstatSync(absolutePath) : fsSync.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(fsSync.realpathSync(symlinkPath));
|
|
429
429
|
} catch (error) {
|
|
430
430
|
if (!isNotFoundPathError(error)) throw error;
|
|
431
|
-
const linkTarget =
|
|
431
|
+
const linkTarget = fsSync.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 ?? fsSync;
|
|
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 ?? fsSync;
|
|
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 = fsSync.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 = fsSync.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
|
+
fsSync.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 = fsSync.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
|
+
fsSync.closeSync(opened.fd);
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
1040
|
function stripFrontMatter(content) {
|
package/package.json
CHANGED