openclaw-multi-auto 1.8.0 → 1.8.3
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/{agent-BomWJjOy.js → agent-ef71Xoo3.js} +10 -10
- package/dist/{audio-preflight-GAYJDgGF.js → audio-preflight-BK4MI6Gs.js} +1 -1
- package/dist/{audio-preflight-CZHCr2-5.js → audio-preflight-BQoP-O-0.js} +9 -9
- package/dist/{audio-preflight-SOY4qjTl.js → audio-preflight-DcneE70v.js} +6 -6
- package/dist/{audit-membership-runtime-fBOVjLNx.js → audit-membership-runtime-0b4ZhE41.js} +4 -4
- package/dist/{audit-membership-runtime-BQmoiW7f.js → audit-membership-runtime-BDoMjPgy.js} +3 -3
- package/dist/{auth-profiles-CEEqFOKJ.js → auth-profiles-Dta-Mhaw.js} +438 -438
- package/dist/auth-profiles.runtime-CLSx3zsq.js +7 -0
- package/dist/auth-profiles.runtime-CuInvQ6F.js +11 -0
- package/dist/{auth-profiles.runtime-IXde-3_L.js → auth-profiles.runtime-DEhTAVAo.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +10 -10
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +9 -9
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/compact.runtime-BOg89Gro.js +11 -0
- package/dist/compact.runtime-BgRco6mO.js +7 -0
- package/dist/{compact.runtime-BCHQpekB.js → compact.runtime-CH24Vvny.js} +1 -1
- package/dist/daemon-cli.js +53 -53
- package/dist/{deliver-runtime-Bm3VqH55.js → deliver-runtime-6WeFOxSI.js} +1 -1
- package/dist/deliver-runtime-BBwve6gL.js +7 -0
- package/dist/deliver-runtime-CUrIlSzN.js +11 -0
- package/dist/extensionAPI.js +1 -1
- package/dist/{fetch-wjPVlu-r.js → fetch-Bdod8UI1.js} +3 -3
- package/dist/{fetch-BdTTF2z-.js → fetch-sH_NN8SV.js} +2 -2
- package/dist/{frontmatter-DZlWsaUx.js → frontmatter-DhmdUnBP.js} +3 -3
- package/dist/{github-copilot-token-C-NbPL95.js → github-copilot-token-368sRGBD.js} +2 -2
- package/dist/{github-copilot-token-BeFx3MLn.js → github-copilot-token-BgPOyCXe.js} +7 -7
- package/dist/{image-runtime-CReMeTZL.js → image-runtime-BwzYRCA5.js} +1 -1
- package/dist/image-runtime-DiA6CU2y.js +7 -0
- package/dist/image-runtime-Dur8cmII.js +11 -0
- package/dist/llm-slug-generator.js +9 -9
- package/dist/{logger-mQKrXyAc.js → logger-Budylr6i.js} +18 -18
- package/dist/{logger-DCBlX1uz.js → logger-C0l_Gj8Y.js} +7 -7
- package/dist/{login-xsvrgJJt.js → login-BEOnxdap.js} +2 -2
- package/dist/{login-Ctt81ov4.js → login-Bk8BjEUN.js} +3 -3
- package/dist/{login-CKmmxErc.js → login-CvFRLU0k.js} +4 -4
- package/dist/{login-qr-CHrXhUJY.js → login-qr-CVQlH0l0.js} +7 -7
- package/dist/{login-qr-KVA4wuh0.js → login-qr-D-_3HfJq.js} +10 -10
- package/dist/{login-qr-D2jYdV8v.js → login-qr-FW_sLvPl.js} +2 -2
- package/dist/manager-runtime-BW_M_Kzt.js +7 -0
- package/dist/manager-runtime-CfBjUnwB.js +11 -0
- package/dist/{manager-runtime-BBxiBzvv.js → manager-runtime-DV0_pZDZ.js} +1 -1
- package/dist/{manager.runtime-CF3GyuMb.js → manager.runtime-CynsHdcO.js} +7 -7
- package/dist/{manager.runtime-BV-CBNb2.js → manager.runtime-DF-LRAbL.js} +10 -10
- package/dist/{manager.runtime-C5odxL4B.js → manager.runtime-KPIwNjNW.js} +12 -12
- package/dist/{model-selection-CNRMBWfR.js → model-selection-C9tlIhgN.js} +271 -271
- package/dist/{model-selection-BQm6_iuT.js → model-selection-qaBek98Q.js} +43 -43
- package/dist/{paths-jtwudEDq.js → paths-BnSNMlFT.js} +5 -5
- package/dist/{paths-CNIc83Pn.js → paths-BwJ6yG6k.js} +5 -5
- package/dist/pi-model-discovery-runtime-CK36RhYz.js +11 -0
- package/dist/{pi-model-discovery-runtime-C-YPAOQR.js → pi-model-discovery-runtime-CLfgSk3o.js} +6 -6
- package/dist/{pi-model-discovery-runtime-DeRljgTs.js → pi-model-discovery-runtime-Q0BoklY3.js} +1 -1
- package/dist/{pi-tools.before-tool-call.runtime-PhxG0y1R.js → pi-tools.before-tool-call.runtime-B_uML_Gt.js} +1 -1
- package/dist/{pi-tools.before-tool-call.runtime-CWgsv7kC.js → pi-tools.before-tool-call.runtime-CKzFGrVv.js} +6 -6
- package/dist/{pi-tools.before-tool-call.runtime-DgAiY2la.js → pi-tools.before-tool-call.runtime-CLRTNt4A.js} +9 -9
- package/dist/plugin-sdk/{audio-preflight-yyFn-I5K.js → audio-preflight-CVWl4NKo.js} +12 -12
- package/dist/plugin-sdk/{audit-membership-runtime-DHo6vLy0.js → audit-membership-runtime-D1VvFm38.js} +5 -5
- package/dist/plugin-sdk/{auth-profiles.runtime-DN3bNNeo.js → auth-profiles.runtime-Cy2e2Wah.js} +12 -12
- package/dist/plugin-sdk/{bluebubbles-BPDNQxEz.js → bluebubbles-B_tcmPhi.js} +1 -1
- package/dist/plugin-sdk/bluebubbles.js +15 -15
- package/dist/plugin-sdk/{channel-access-BaZDvsTA.js → channel-access-GDk6vyOi.js} +1 -1
- package/dist/plugin-sdk/{channel-access-configure-DLZc22_m.js → channel-access-configure-CerQrsyV.js} +1 -1
- package/dist/plugin-sdk/{channel-config-helpers-CFkTEzkz.js → channel-config-helpers-CX9AfjCJ.js} +3 -3
- package/dist/plugin-sdk/{compact.runtime-D1HfZ8IJ.js → compact.runtime-0XuiRVw-.js} +12 -12
- package/dist/plugin-sdk/compat.js +28 -28
- package/dist/plugin-sdk/core.js +14 -14
- package/dist/plugin-sdk/{deliver-runtime-DrD2s_GI.js → deliver-runtime-D37pd8wU.js} +12 -12
- package/dist/plugin-sdk/device-pair.js +5 -5
- package/dist/plugin-sdk/diagnostics-otel.js +2 -2
- package/dist/plugin-sdk/{discord-BZR9M1Ft.js → discord-dU71XVvQ.js} +4 -4
- package/dist/plugin-sdk/discord.js +16 -16
- package/dist/plugin-sdk/{exec-BvTkR9oI.js → exec-88qB5pUO.js} +2 -2
- package/dist/plugin-sdk/feishu.js +14 -14
- package/dist/plugin-sdk/{fetch-yk-axchG.js → fetch-Cqwcg-Kq.js} +2 -2
- package/dist/plugin-sdk/{fetch-guard-Cwx1pJhf.js → fetch-guard-DEyOIg88.js} +1 -1
- package/dist/plugin-sdk/google-gemini-cli-auth.js +4 -4
- package/dist/plugin-sdk/googlechat.js +14 -14
- package/dist/plugin-sdk/{helpers-Cj2lgcNt.js → helpers-zm9M-XCJ.js} +1 -1
- package/dist/plugin-sdk/{http-registry-DyBqqyPO.js → http-registry-CR-l0QpT.js} +2 -2
- package/dist/plugin-sdk/{image-runtime-ChtfQsK-.js → image-runtime-CSZNFoHc.js} +12 -12
- package/dist/plugin-sdk/{imessage-DtibPuZP.js → imessage-DvtFTwJr.js} +3 -3
- package/dist/plugin-sdk/imessage.js +14 -14
- package/dist/plugin-sdk/{inbound-reply-dispatch-CfNEV0ZG.js → inbound-reply-dispatch-DpGprwTU.js} +1 -1
- package/dist/plugin-sdk/index.js +28 -28
- package/dist/plugin-sdk/irc.js +15 -15
- package/dist/plugin-sdk/{logger-C9fkmDdb.js → logger-D-go2oXy.js} +2 -2
- package/dist/plugin-sdk/{logger-DXnvMlr-.js → logger-Jt8cCPPV.js} +2 -2
- package/dist/plugin-sdk/{login-BC7QDpvj.js → login-CnT14vQ1.js} +5 -5
- package/dist/plugin-sdk/{login-qr-rnZFcwNs.js → login-qr-Di9Gqms7.js} +13 -13
- package/dist/plugin-sdk/{manager-runtime-B8O--3Jt.js → manager-runtime-DzCE2bL1.js} +12 -12
- package/dist/plugin-sdk/{manager.runtime-U_d65Qv1.js → manager.runtime-D6nT5fqn.js} +18 -18
- package/dist/plugin-sdk/matrix.js +16 -16
- package/dist/plugin-sdk/mattermost.js +14 -14
- package/dist/plugin-sdk/msteams.js +16 -16
- package/dist/plugin-sdk/nextcloud-talk.js +15 -15
- package/dist/plugin-sdk/nostr.js +4 -4
- package/dist/plugin-sdk/{outbound-media-DWtG1X8J.js → outbound-media-CN8bsq-T.js} +1 -1
- package/dist/plugin-sdk/{persistent-dedupe-BroxGf3Q.js → persistent-dedupe-CjCe_L5g.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-runtime-DWyENOD9.js → pi-model-discovery-runtime-1vkd_hCn.js} +12 -12
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-CPBeYJY2.js → pi-tools.before-tool-call.runtime-D0XEYwCa.js} +12 -12
- package/dist/plugin-sdk/{pw-ai-DR8Hjs-J.js → pw-ai-DkDE5awL.js} +12 -12
- package/dist/plugin-sdk/{qmd-manager-3qRPZ5ye.js → qmd-manager-CguAGtaF.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-BnFYorqr.js → query-expansion-ChYs46vb.js} +5 -5
- package/dist/plugin-sdk/{redact-DTcVTGFU.js → redact-CqHkGWow.js} +1 -1
- package/dist/plugin-sdk/{run-command-qzkvaQG1.js → run-command-nYfMDZC3.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-UvsfFa7Q.js +24 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-CYBj8E4x.js +23 -0
- package/dist/plugin-sdk/{send-BZgg6N38.js → send-BDZssl9O.js} +5 -5
- package/dist/plugin-sdk/{session-Dm0FT_vI.js → session-DPhL1rLb.js} +5 -5
- package/dist/plugin-sdk/{signal-Dy_XjHKL.js → signal-BKMAyRnz.js} +6 -6
- package/dist/plugin-sdk/signal.js +14 -14
- package/dist/plugin-sdk/{slack-DNwpGTSd.js → slack-jues0BBq.js} +3 -3
- package/dist/plugin-sdk/slack.js +16 -16
- package/dist/plugin-sdk/{slash-commands.runtime-Bn7T59g3.js → slash-commands.runtime-BJ6veGjC.js} +12 -12
- package/dist/plugin-sdk/{slash-dispatch.runtime-BPsvStS0.js → slash-dispatch.runtime-CyWyh0DI.js} +12 -12
- package/dist/plugin-sdk/{slash-skill-commands.runtime-TDVZ7jxr.js → slash-skill-commands.runtime-BiDqNceZ.js} +12 -12
- package/dist/plugin-sdk/{subagent-registry-runtime-D3DovVGQ.js → subagent-registry-runtime-BVsFNLUF.js} +12 -12
- package/dist/plugin-sdk/{subsystem-DXcqLSNd.js → subsystem-DOh66yR6.js} +1 -1
- package/dist/plugin-sdk/synology-chat.js +4 -4
- package/dist/plugin-sdk/{telegram-B1RGxv8p.js → telegram-D3JLaXTI.js} +4 -4
- package/dist/plugin-sdk/telegram.js +14 -14
- package/dist/plugin-sdk/{text-chunking-CaqMErUv.js → text-chunking-Bd2LMKfE.js} +1 -1
- package/dist/plugin-sdk/{thread-bindings-Bp_o0GHR.js → thread-bindings-Cc59nx4d.js} +48 -48
- package/dist/plugin-sdk/tlon.js +13 -13
- package/dist/plugin-sdk/twitch.js +14 -14
- package/dist/plugin-sdk/{utils-BQpbGej3.js → utils-BhiRkVxe.js} +1 -1
- package/dist/plugin-sdk/{vllm-setup-wjrX_svM.js → vllm-setup-R5M9rOvm.js} +2 -2
- package/dist/plugin-sdk/voice-call.js +12 -12
- package/dist/plugin-sdk/{web-Dz6AjTQn.js → web-BpHTS6sG.js} +16 -16
- package/dist/plugin-sdk/{webhook-targets-yTQuv0k1.js → webhook-targets-t3fxeJQf.js} +1 -1
- package/dist/plugin-sdk/{whatsapp-actions-C5SohPL-.js → whatsapp-actions-BAJ27s8B.js} +13 -13
- package/dist/plugin-sdk/{whatsapp-heartbeat-_Kw4PPKA.js → whatsapp-heartbeat-D6NF4OC0.js} +3 -3
- package/dist/plugin-sdk/whatsapp.js +13 -13
- package/dist/plugin-sdk/zalo.js +15 -15
- package/dist/plugin-sdk/zalouser.js +16 -16
- package/dist/{pw-ai-BFfAJexr.js → pw-ai-BZnl84YT.js} +6 -6
- package/dist/{pw-ai-3ual6adI.js → pw-ai-CRL5SGWK.js} +9 -9
- package/dist/{pw-ai-CzFFsGR7.js → pw-ai-DzdseGw2.js} +1 -1
- package/dist/{qmd-manager-rY-Y6sbN.js → qmd-manager-BmuMJQP3.js} +3 -3
- package/dist/{qmd-manager-DvglNhlJ.js → qmd-manager-CFVuAj9l.js} +5 -5
- package/dist/{query-expansion-BIMwPSMg.js → query-expansion-BMQzl41m.js} +89 -89
- package/dist/{query-expansion-DXwSmE_K.js → query-expansion-DnS6CGY2.js} +8 -8
- package/dist/runtime-whatsapp-login.runtime-CO-iUlqS.js +13 -0
- package/dist/runtime-whatsapp-login.runtime-Dd6rJjLo.js +9 -0
- package/dist/{runtime-whatsapp-login.runtime-vKFKNi8Z.js → runtime-whatsapp-login.runtime-Dsz-DNfa.js} +3 -3
- package/dist/{runtime-whatsapp-outbound.runtime-SAT-C6UE.js → runtime-whatsapp-outbound.runtime-BeZMBTt6.js} +2 -2
- package/dist/runtime-whatsapp-outbound.runtime-CatYliOE.js +8 -0
- package/dist/runtime-whatsapp-outbound.runtime-IeVUgrJu.js +12 -0
- package/dist/{send-UG1n3OAg.js → send-CHO1gc7n.js} +2 -2
- package/dist/{send-CXnKWzde.js → send-CsgNtXyY.js} +3 -3
- package/dist/{send-DGQUY-kp.js → send-DxYxezcL.js} +1 -1
- package/dist/{session-CbQ43pUq.js → session--tqRfZQU.js} +1 -1
- package/dist/{session-kt-bqE_z.js → session-BhX4LYCK.js} +7 -7
- package/dist/{session-Bpmn--zO.js → session-r38wrRC6.js} +6 -6
- package/dist/slash-commands.runtime-BTNXGYOP.js +11 -0
- package/dist/{slash-commands.runtime-DoT9bJKb.js → slash-commands.runtime-C8j-n-bX.js} +1 -1
- package/dist/{slash-commands.runtime-DIrX0Ynq.js → slash-commands.runtime-J-gBOPcL.js} +6 -6
- package/dist/{slash-dispatch.runtime--9HmQuIE.js → slash-dispatch.runtime-BA-MMy0P.js} +1 -1
- package/dist/{slash-dispatch.runtime-CG-xSDdf.js → slash-dispatch.runtime-CwO02PY8.js} +6 -6
- package/dist/{slash-dispatch.runtime-Cu8ghe1h.js → slash-dispatch.runtime-cYx62DOd.js} +9 -9
- package/dist/slash-skill-commands.runtime-BQRfyLdb.js +7 -0
- package/dist/{slash-skill-commands.runtime-BZqnnkHJ.js → slash-skill-commands.runtime-Cm8K1kWM.js} +1 -1
- package/dist/slash-skill-commands.runtime-ThOxhaze.js +11 -0
- package/dist/{subagent-registry-runtime-rBYzVSXG.js → subagent-registry-runtime-1IiL0xom.js} +6 -6
- package/dist/{subagent-registry-runtime-9WfVik2h.js → subagent-registry-runtime-DKOXxZgH.js} +1 -1
- package/dist/{subagent-registry-runtime-Z0fdsGSq.js → subagent-registry-runtime-DkamrsVw.js} +9 -9
- package/dist/{subsystem-Cr1MiLhx.js → subsystem-CDcEQtQK.js} +14 -14
- package/dist/{web-DbsQPRh2.js → web-B_GcnsRF.js} +9 -9
- package/dist/{web-B_EVHbEP.js → web-RzQ9jrtt.js} +4 -4
- package/dist/{web-CXyjF_si.js → web-bHB4SzXZ.js} +12 -12
- package/dist/{whatsapp-actions-CnWp29AN.js → whatsapp-actions-BCgsmzOa.js} +7 -7
- package/dist/{whatsapp-actions-pQqLTCXJ.js → whatsapp-actions-BmDvJijd.js} +2 -2
- package/dist/{whatsapp-actions-BUvGEDSk.js → whatsapp-actions-BqFiZbuw.js} +10 -10
- package/dist/{workspace-Bi8vpJN0.js → workspace-Cg3kGb1y.js} +20 -20
- package/package.json +1 -1
- package/scripts/create-instance.sh +21 -3
- package/dist/auth-profiles.runtime-DNqCx0L5.js +0 -11
- package/dist/auth-profiles.runtime-DXPqJP5A.js +0 -7
- package/dist/compact.runtime-DS9UVeOh.js +0 -7
- package/dist/compact.runtime-pgjSlzSY.js +0 -11
- package/dist/deliver-runtime-D4aWAXZ9.js +0 -11
- package/dist/deliver-runtime-D929PgeO.js +0 -7
- package/dist/image-runtime-Brryt_BU.js +0 -11
- package/dist/image-runtime-CkdY0-Oo.js +0 -7
- package/dist/manager-runtime-D9AEoM1M.js +0 -11
- package/dist/manager-runtime-PqJtJx-b.js +0 -7
- package/dist/pi-model-discovery-runtime-CDKkuBYh.js +0 -11
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BDbgMnYK.js +0 -24
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-BYZKJw25.js +0 -23
- package/dist/runtime-whatsapp-login.runtime-Br3SxDXL.js +0 -13
- package/dist/runtime-whatsapp-login.runtime-DeV-bhiR.js +0 -9
- package/dist/runtime-whatsapp-outbound.runtime-BFY32bnC.js +0 -8
- package/dist/runtime-whatsapp-outbound.runtime-L3Qkst0n.js +0 -12
- package/dist/slash-commands.runtime-BYfxn_xu.js +0 -11
- package/dist/slash-skill-commands.runtime-8dS5PTaH.js +0 -11
- package/dist/slash-skill-commands.runtime-JEA80FeR.js +0 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./paths-BnSNMlFT.js";
|
|
2
|
+
import "./logger-Budylr6i.js";
|
|
3
|
+
import { t as ensureAuthProfileStore } from "./auth-profiles-Dta-Mhaw.js";
|
|
4
|
+
import "./query-expansion-BMQzl41m.js";
|
|
5
|
+
import "./github-copilot-token-BgPOyCXe.js";
|
|
6
|
+
import "./fetch-Bdod8UI1.js";
|
|
7
|
+
export { ensureAuthProfileStore };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./query-expansion-DnS6CGY2.js";
|
|
2
|
+
import "./paths-BwJ6yG6k.js";
|
|
3
|
+
import "./subsystem-CDcEQtQK.js";
|
|
4
|
+
import "./workspace-Cg3kGb1y.js";
|
|
5
|
+
import "./logger-C0l_Gj8Y.js";
|
|
6
|
+
import { Si as ensureAuthProfileStore } from "./model-selection-C9tlIhgN.js";
|
|
7
|
+
import "./github-copilot-token-368sRGBD.js";
|
|
8
|
+
import "./boolean-C7Ct_klp.js";
|
|
9
|
+
import "./fetch-sH_NN8SV.js";
|
|
10
|
+
import "./frontmatter-DhmdUnBP.js";
|
|
11
|
+
export { ensureAuthProfileStore };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { _i as ensureAuthProfileStore } from "./model-selection-
|
|
4
|
+
import { _i as ensureAuthProfileStore } from "./model-selection-qaBek98Q.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
export { ensureAuthProfileStore };
|
package/dist/build-info.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Ct as resolveAgentWorkspaceDir, R as resolveStorePath, gt as listAgentIds } from "../../query-expansion-
|
|
2
|
-
import "../../paths-
|
|
3
|
-
import { a as defaultRuntime, t as createSubsystemLogger } from "../../subsystem-
|
|
4
|
-
import { U as resolveAgentIdFromSessionKey } from "../../workspace-
|
|
5
|
-
import "../../logger-
|
|
6
|
-
import { Qt as SILENT_REPLY_TOKEN, er as loadSessionStore, hr as resolveMainSessionKey, pr as resolveAgentMainSessionKey, rr as updateSessionStore } from "../../model-selection-
|
|
7
|
-
import "../../github-copilot-token-
|
|
1
|
+
import { Ct as resolveAgentWorkspaceDir, R as resolveStorePath, gt as listAgentIds } from "../../query-expansion-DnS6CGY2.js";
|
|
2
|
+
import "../../paths-BwJ6yG6k.js";
|
|
3
|
+
import { a as defaultRuntime, t as createSubsystemLogger } from "../../subsystem-CDcEQtQK.js";
|
|
4
|
+
import { U as resolveAgentIdFromSessionKey } from "../../workspace-Cg3kGb1y.js";
|
|
5
|
+
import "../../logger-C0l_Gj8Y.js";
|
|
6
|
+
import { Qt as SILENT_REPLY_TOKEN, er as loadSessionStore, hr as resolveMainSessionKey, pr as resolveAgentMainSessionKey, rr as updateSessionStore } from "../../model-selection-C9tlIhgN.js";
|
|
7
|
+
import "../../github-copilot-token-368sRGBD.js";
|
|
8
8
|
import "../../boolean-C7Ct_klp.js";
|
|
9
|
-
import "../../fetch-
|
|
10
|
-
import { _ as isGatewayStartupEvent } from "../../frontmatter-
|
|
11
|
-
import { r as createDefaultDeps, t as agentCommand } from "../../agent-
|
|
9
|
+
import "../../fetch-sH_NN8SV.js";
|
|
10
|
+
import { _ as isGatewayStartupEvent } from "../../frontmatter-DhmdUnBP.js";
|
|
11
|
+
import { r as createDefaultDeps, t as agentCommand } from "../../agent-ef71Xoo3.js";
|
|
12
12
|
import fs from "node:fs/promises";
|
|
13
13
|
import path from "node:path";
|
|
14
14
|
import crypto from "node:crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../../paths-
|
|
2
|
-
import { t as createSubsystemLogger } from "../../subsystem-
|
|
3
|
-
import { d as loadExtraBootstrapFilesWithDiagnostics, u as filterBootstrapFilesForSession } from "../../workspace-
|
|
4
|
-
import "../../logger-
|
|
1
|
+
import "../../paths-BwJ6yG6k.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "../../subsystem-CDcEQtQK.js";
|
|
3
|
+
import { d as loadExtraBootstrapFilesWithDiagnostics, u as filterBootstrapFilesForSession } from "../../workspace-Cg3kGb1y.js";
|
|
4
|
+
import "../../logger-C0l_Gj8Y.js";
|
|
5
5
|
import "../../boolean-C7Ct_klp.js";
|
|
6
|
-
import { g as isAgentBootstrapEvent } from "../../frontmatter-
|
|
6
|
+
import { g as isAgentBootstrapEvent } from "../../frontmatter-DhmdUnBP.js";
|
|
7
7
|
import { t as resolveHookConfig } from "../../config-CbHDUXAy.js";
|
|
8
8
|
//#region src/hooks/bundled/bootstrap-extra-files/handler.ts
|
|
9
9
|
const HOOK_KEY = "bootstrap-extra-files";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as resolveStateDir } from "../../paths-
|
|
2
|
-
import { t as createSubsystemLogger } from "../../subsystem-
|
|
1
|
+
import { c as resolveStateDir } from "../../paths-BwJ6yG6k.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "../../subsystem-CDcEQtQK.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Ct as resolveAgentWorkspaceDir, bt as resolveAgentIdByWorkspacePath, ot as writeFileWithinRoot } from "../../query-expansion-
|
|
2
|
-
import { c as resolveStateDir } from "../../paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "../../subsystem-
|
|
4
|
-
import { J as toAgentStoreSessionKey, U as resolveAgentIdFromSessionKey, it as parseAgentSessionKey } from "../../workspace-
|
|
5
|
-
import "../../logger-
|
|
6
|
-
import { ar as hasInterSessionUserProvenance } from "../../model-selection-
|
|
7
|
-
import "../../github-copilot-token-
|
|
1
|
+
import { Ct as resolveAgentWorkspaceDir, bt as resolveAgentIdByWorkspacePath, ot as writeFileWithinRoot } from "../../query-expansion-DnS6CGY2.js";
|
|
2
|
+
import { c as resolveStateDir } from "../../paths-BwJ6yG6k.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "../../subsystem-CDcEQtQK.js";
|
|
4
|
+
import { J as toAgentStoreSessionKey, U as resolveAgentIdFromSessionKey, it as parseAgentSessionKey } from "../../workspace-Cg3kGb1y.js";
|
|
5
|
+
import "../../logger-C0l_Gj8Y.js";
|
|
6
|
+
import { ar as hasInterSessionUserProvenance } from "../../model-selection-C9tlIhgN.js";
|
|
7
|
+
import "../../github-copilot-token-368sRGBD.js";
|
|
8
8
|
import "../../boolean-C7Ct_klp.js";
|
|
9
|
-
import "../../fetch-
|
|
10
|
-
import "../../frontmatter-
|
|
9
|
+
import "../../fetch-sH_NN8SV.js";
|
|
10
|
+
import "../../frontmatter-DhmdUnBP.js";
|
|
11
11
|
import { generateSlugViaLLM } from "../../llm-slug-generator.js";
|
|
12
12
|
import { t as resolveHookConfig } from "../../config-CbHDUXAy.js";
|
|
13
13
|
import fs from "node:fs/promises";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
6ae7078ffb37ec959f634eb3f312d1da1500e7fe4662f156bc2bc2a90fcdf940
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./query-expansion-DnS6CGY2.js";
|
|
2
|
+
import "./paths-BwJ6yG6k.js";
|
|
3
|
+
import "./subsystem-CDcEQtQK.js";
|
|
4
|
+
import "./workspace-Cg3kGb1y.js";
|
|
5
|
+
import "./logger-C0l_Gj8Y.js";
|
|
6
|
+
import { Z as compactEmbeddedPiSessionDirect } from "./model-selection-C9tlIhgN.js";
|
|
7
|
+
import "./github-copilot-token-368sRGBD.js";
|
|
8
|
+
import "./boolean-C7Ct_klp.js";
|
|
9
|
+
import "./fetch-sH_NN8SV.js";
|
|
10
|
+
import "./frontmatter-DhmdUnBP.js";
|
|
11
|
+
export { compactEmbeddedPiSessionDirect };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./paths-BnSNMlFT.js";
|
|
2
|
+
import "./logger-Budylr6i.js";
|
|
3
|
+
import { tt as compactEmbeddedPiSessionDirect } from "./auth-profiles-Dta-Mhaw.js";
|
|
4
|
+
import "./query-expansion-BMQzl41m.js";
|
|
5
|
+
import "./github-copilot-token-BgPOyCXe.js";
|
|
6
|
+
import "./fetch-Bdod8UI1.js";
|
|
7
|
+
export { compactEmbeddedPiSessionDirect };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { X as compactEmbeddedPiSessionDirect } from "./model-selection-
|
|
4
|
+
import { X as compactEmbeddedPiSessionDirect } from "./model-selection-qaBek98Q.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
export { compactEmbeddedPiSessionDirect };
|
package/dist/daemon-cli.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as resolveGatewayPort, l as resolveStateDir, o as resolveIsNixMode, r as resolveConfigPath } from "./paths-
|
|
2
|
-
import { A as shortenHomePath, G as theme, U as colorize, W as isRich, et as isBunRuntime, j as sleep, l as defaultRuntime, q as getResolvedLoggerSettings, tt as isNodeRuntime } from "./logger-
|
|
3
|
-
import { $i as resolveGatewayBindHost, $t as cleanStaleGatewayProcessesSync, Ai as formatPortDiagnostics, Ar as parseStrictPositiveInteger, C as resolveControlUiLinks, Da as formatCliCommand, Gi as resolveSecretRefValues, In as isRestartEnabled, Ji as isGatewaySecretRefUnavailableError, Jt as quoteCmdScriptArg, Ki as hasAmbiguousGatewayAuthModeConfig, Oa as formatDocsLink, Oi as inspectPortUsage, Qi as isLoopbackHost, Qt as splitArgsPreservingQuotes, S as randomToken, Xi as readGatewayTokenEnv, Xt as parseCmdSetAssignment, Yi as resolveGatewayDriftCheckCredentialsFromConfig, Yt as assertNoCmdLineBreak, Zi as trimToUndefined, Zt as renderCmdSetAssignment, _a as hasConfiguredSecretInput, _n as READ_SCOPE, an as resolveGatewayProfileSuffix, bn as killProcessTree, ca as readBestEffortConfig, cn as resolveGatewayWindowsTaskName, d as withProgress, ea as pickPrimaryTailnetIPv4, en as findGatewayPidsOnPortSync, fa as writeConfigFile, ga as sanitizeTerminalText, gn as resolveGatewayCredentialsWithSecretInputs, ha as VERSION, hn as callGateway, in as resolveGatewayLaunchAgentLabel, ki as classifyPortListener, kr as parseStrictInteger, la as readConfigFileSnapshot, ln as resolveLegacyGatewayLaunchAgentLabels, ma as collectConfigServiceEnvVars, mi as GATEWAY_CLIENT_NAMES, n as loadAuthProfileStoreForSecretsRuntime, na as formatErrorMessage, nn as GATEWAY_SERVICE_KIND, oa as createConfigIO, on as resolveGatewayServiceDescription, pa as secretRefKey, pi as GATEWAY_CLIENT_MODES, qi as resolveGatewayAuth, qt as parseCmdScriptCommandLine, rn as GATEWAY_SERVICE_MARKER, sn as resolveGatewaySystemdServiceName, tn as GATEWAY_LAUNCH_AGENT_LABEL, va as resolveSecretInputRef, vn as GatewayClient, yn as loadGatewayTlsRuntime } from "./auth-profiles-
|
|
4
|
-
import { Vt as runCommandWithTimeout } from "./query-expansion-
|
|
5
|
-
import "./github-copilot-token-
|
|
6
|
-
import { a as isWSLEnv, i as isWSL } from "./fetch-
|
|
7
|
-
import
|
|
1
|
+
import { a as resolveGatewayPort, l as resolveStateDir, o as resolveIsNixMode, r as resolveConfigPath } from "./paths-BnSNMlFT.js";
|
|
2
|
+
import { A as shortenHomePath, G as theme, U as colorize, W as isRich, et as isBunRuntime, j as sleep, l as defaultRuntime, q as getResolvedLoggerSettings, tt as isNodeRuntime } from "./logger-Budylr6i.js";
|
|
3
|
+
import { $i as resolveGatewayBindHost, $t as cleanStaleGatewayProcessesSync, Ai as formatPortDiagnostics, Ar as parseStrictPositiveInteger, C as resolveControlUiLinks, Da as formatCliCommand, Gi as resolveSecretRefValues, In as isRestartEnabled, Ji as isGatewaySecretRefUnavailableError, Jt as quoteCmdScriptArg, Ki as hasAmbiguousGatewayAuthModeConfig, Oa as formatDocsLink, Oi as inspectPortUsage, Qi as isLoopbackHost, Qt as splitArgsPreservingQuotes, S as randomToken, Xi as readGatewayTokenEnv, Xt as parseCmdSetAssignment, Yi as resolveGatewayDriftCheckCredentialsFromConfig, Yt as assertNoCmdLineBreak, Zi as trimToUndefined, Zt as renderCmdSetAssignment, _a as hasConfiguredSecretInput, _n as READ_SCOPE, an as resolveGatewayProfileSuffix, bn as killProcessTree, ca as readBestEffortConfig, cn as resolveGatewayWindowsTaskName, d as withProgress, ea as pickPrimaryTailnetIPv4, en as findGatewayPidsOnPortSync, fa as writeConfigFile, ga as sanitizeTerminalText, gn as resolveGatewayCredentialsWithSecretInputs, ha as VERSION, hn as callGateway, in as resolveGatewayLaunchAgentLabel, ki as classifyPortListener, kr as parseStrictInteger, la as readConfigFileSnapshot, ln as resolveLegacyGatewayLaunchAgentLabels, ma as collectConfigServiceEnvVars, mi as GATEWAY_CLIENT_NAMES, n as loadAuthProfileStoreForSecretsRuntime, na as formatErrorMessage, nn as GATEWAY_SERVICE_KIND, oa as createConfigIO, on as resolveGatewayServiceDescription, pa as secretRefKey, pi as GATEWAY_CLIENT_MODES, qi as resolveGatewayAuth, qt as parseCmdScriptCommandLine, rn as GATEWAY_SERVICE_MARKER, sn as resolveGatewaySystemdServiceName, tn as GATEWAY_LAUNCH_AGENT_LABEL, va as resolveSecretInputRef, vn as GatewayClient, yn as loadGatewayTlsRuntime } from "./auth-profiles-Dta-Mhaw.js";
|
|
4
|
+
import { Vt as runCommandWithTimeout } from "./query-expansion-BMQzl41m.js";
|
|
5
|
+
import "./github-copilot-token-BgPOyCXe.js";
|
|
6
|
+
import { a as isWSLEnv, i as isWSL } from "./fetch-Bdod8UI1.js";
|
|
7
|
+
import fsSync from "node:fs";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import { promisify } from "node:util";
|
|
11
|
-
import fs
|
|
11
|
+
import fs from "node:fs/promises";
|
|
12
12
|
import { execFile, spawn, spawnSync } from "node:child_process";
|
|
13
13
|
import "node:process";
|
|
14
14
|
import { randomUUID } from "node:crypto";
|
|
@@ -40,23 +40,23 @@ async function resolveCliEntrypointPathForService() {
|
|
|
40
40
|
const normalized = path.resolve(argv1);
|
|
41
41
|
const resolvedPath = await resolveRealpathSafe(normalized);
|
|
42
42
|
if (/[/\\]dist[/\\].+\.(cjs|js|mjs)$/.test(resolvedPath)) {
|
|
43
|
-
await fs
|
|
43
|
+
await fs.access(resolvedPath);
|
|
44
44
|
if (/[/\\]dist[/\\].+\.(cjs|js|mjs)$/.test(normalized) && normalized !== resolvedPath) try {
|
|
45
|
-
await fs
|
|
45
|
+
await fs.access(normalized);
|
|
46
46
|
return normalized;
|
|
47
47
|
} catch {}
|
|
48
48
|
return resolvedPath;
|
|
49
49
|
}
|
|
50
50
|
const distCandidates = buildDistCandidates(resolvedPath, normalized);
|
|
51
51
|
for (const candidate of distCandidates) try {
|
|
52
|
-
await fs
|
|
52
|
+
await fs.access(candidate);
|
|
53
53
|
return candidate;
|
|
54
54
|
} catch {}
|
|
55
55
|
throw new Error(`Cannot find built CLI at ${distCandidates.join(" or ")}. Run "pnpm build" first, or use dev mode.`);
|
|
56
56
|
}
|
|
57
57
|
async function resolveRealpathSafe(inputPath) {
|
|
58
58
|
try {
|
|
59
|
-
return await fs
|
|
59
|
+
return await fs.realpath(inputPath);
|
|
60
60
|
} catch {
|
|
61
61
|
return inputPath;
|
|
62
62
|
}
|
|
@@ -116,7 +116,7 @@ async function resolveBinaryPath(binary) {
|
|
|
116
116
|
try {
|
|
117
117
|
const resolved = execFileSync(cmd, [binary], { encoding: "utf8" }).trim().split(/\r?\n/)[0]?.trim();
|
|
118
118
|
if (!resolved) throw new Error("empty");
|
|
119
|
-
await fs
|
|
119
|
+
await fs.access(resolved);
|
|
120
120
|
return resolved;
|
|
121
121
|
} catch {
|
|
122
122
|
if (binary === "bun") throw new Error("Bun not found in PATH. Install bun: https://bun.sh");
|
|
@@ -135,7 +135,7 @@ async function resolveCliProgramArguments(params) {
|
|
|
135
135
|
if (params.dev) {
|
|
136
136
|
const repoRoot = resolveRepoRootForDev();
|
|
137
137
|
const devCliPath = path.join(repoRoot, "src", "index.ts");
|
|
138
|
-
await fs
|
|
138
|
+
await fs.access(devCliPath);
|
|
139
139
|
return {
|
|
140
140
|
programArguments: [
|
|
141
141
|
isBunRuntime(execPath) ? execPath : await resolveBunPath(),
|
|
@@ -163,7 +163,7 @@ async function resolveCliProgramArguments(params) {
|
|
|
163
163
|
}
|
|
164
164
|
const repoRoot = resolveRepoRootForDev();
|
|
165
165
|
const devCliPath = path.join(repoRoot, "src", "index.ts");
|
|
166
|
-
await fs
|
|
166
|
+
await fs.access(devCliPath);
|
|
167
167
|
if (isBunRuntime(execPath)) return {
|
|
168
168
|
programArguments: [
|
|
169
169
|
execPath,
|
|
@@ -418,13 +418,13 @@ async function resolveStableNodePath(nodePath) {
|
|
|
418
418
|
const pathModule = nodePath.includes("\\") ? path.win32 : path.posix;
|
|
419
419
|
const optPath = pathModule.join(prefix, "opt", formula, "bin", "node");
|
|
420
420
|
try {
|
|
421
|
-
await fs
|
|
421
|
+
await fs.access(optPath);
|
|
422
422
|
return optPath;
|
|
423
423
|
} catch {}
|
|
424
424
|
if (formula === "node") {
|
|
425
425
|
const binPath = pathModule.join(prefix, "bin", "node");
|
|
426
426
|
try {
|
|
427
|
-
await fs
|
|
427
|
+
await fs.access(binPath);
|
|
428
428
|
return binPath;
|
|
429
429
|
} catch {}
|
|
430
430
|
}
|
|
@@ -492,7 +492,7 @@ function isSystemNodePath(nodePath, env = process.env, platform = process.platfo
|
|
|
492
492
|
async function resolveSystemNodePath(env = process.env, platform = process.platform) {
|
|
493
493
|
const candidates = buildSystemNodeCandidates(env, platform);
|
|
494
494
|
for (const candidate of candidates) try {
|
|
495
|
-
await fs
|
|
495
|
+
await fs.access(candidate);
|
|
496
496
|
return candidate;
|
|
497
497
|
} catch {}
|
|
498
498
|
return null;
|
|
@@ -743,7 +743,7 @@ const renderEnvDict = (env) => {
|
|
|
743
743
|
};
|
|
744
744
|
async function readLaunchAgentProgramArgumentsFromFile(plistPath) {
|
|
745
745
|
try {
|
|
746
|
-
const plist = await fs
|
|
746
|
+
const plist = await fs.readFile(plistPath, "utf8");
|
|
747
747
|
const programMatch = plist.match(/<key>ProgramArguments<\/key>\s*<array>([\s\S]*?)<\/array>/i);
|
|
748
748
|
if (!programMatch) return null;
|
|
749
749
|
const args = Array.from(programMatch[1].matchAll(/<string>([\s\S]*?)<\/string>/gi)).map((match) => plistUnescape(match[1] ?? "").trim());
|
|
@@ -1028,14 +1028,14 @@ async function bootstrapLaunchAgentOrThrow(params) {
|
|
|
1028
1028
|
throw new Error(`launchctl bootstrap failed: ${detail}`);
|
|
1029
1029
|
}
|
|
1030
1030
|
async function ensureSecureDirectory(targetPath) {
|
|
1031
|
-
await fs
|
|
1031
|
+
await fs.mkdir(targetPath, {
|
|
1032
1032
|
recursive: true,
|
|
1033
1033
|
mode: LAUNCH_AGENT_DIR_MODE
|
|
1034
1034
|
});
|
|
1035
1035
|
try {
|
|
1036
|
-
const mode = (await fs
|
|
1036
|
+
const mode = (await fs.stat(targetPath)).mode & 511;
|
|
1037
1037
|
const tightenedMode = mode & -19;
|
|
1038
|
-
if (tightenedMode !== mode) await fs
|
|
1038
|
+
if (tightenedMode !== mode) await fs.chmod(targetPath, tightenedMode);
|
|
1039
1039
|
} catch {}
|
|
1040
1040
|
}
|
|
1041
1041
|
function parseLaunchctlPrint(output) {
|
|
@@ -1063,7 +1063,7 @@ async function isLaunchAgentLoaded(args) {
|
|
|
1063
1063
|
async function launchAgentPlistExists(env) {
|
|
1064
1064
|
try {
|
|
1065
1065
|
const plistPath = resolveLaunchAgentPlistPath(env);
|
|
1066
|
-
await fs
|
|
1066
|
+
await fs.access(plistPath);
|
|
1067
1067
|
return true;
|
|
1068
1068
|
} catch {
|
|
1069
1069
|
return false;
|
|
@@ -1099,7 +1099,7 @@ async function uninstallLaunchAgent({ env, stdout }) {
|
|
|
1099
1099
|
]);
|
|
1100
1100
|
await execLaunchctl(["unload", plistPath]);
|
|
1101
1101
|
try {
|
|
1102
|
-
await fs
|
|
1102
|
+
await fs.access(plistPath);
|
|
1103
1103
|
} catch {
|
|
1104
1104
|
stdout.write(`LaunchAgent not found at ${plistPath}\n`);
|
|
1105
1105
|
return;
|
|
@@ -1108,8 +1108,8 @@ async function uninstallLaunchAgent({ env, stdout }) {
|
|
|
1108
1108
|
const trashDir = path.posix.join(home, ".Trash");
|
|
1109
1109
|
const dest = path.join(trashDir, `${label}.plist`);
|
|
1110
1110
|
try {
|
|
1111
|
-
await fs
|
|
1112
|
-
await fs
|
|
1111
|
+
await fs.mkdir(trashDir, { recursive: true });
|
|
1112
|
+
await fs.rename(plistPath, dest);
|
|
1113
1113
|
stdout.write(`${formatLine("Moved LaunchAgent to Trash", dest)}\n`);
|
|
1114
1114
|
} catch {
|
|
1115
1115
|
stdout.write(`LaunchAgent remains at ${plistPath} (could not move)\n`);
|
|
@@ -1144,7 +1144,7 @@ async function installLaunchAgent({ env, stdout, programArguments, workingDirect
|
|
|
1144
1144
|
]);
|
|
1145
1145
|
await execLaunchctl(["unload", legacyPlistPath]);
|
|
1146
1146
|
try {
|
|
1147
|
-
await fs
|
|
1147
|
+
await fs.unlink(legacyPlistPath);
|
|
1148
1148
|
} catch {}
|
|
1149
1149
|
}
|
|
1150
1150
|
const plistPath = resolveLaunchAgentPlistPathForLabel(env, label);
|
|
@@ -1166,11 +1166,11 @@ async function installLaunchAgent({ env, stdout, programArguments, workingDirect
|
|
|
1166
1166
|
stderrPath,
|
|
1167
1167
|
environment
|
|
1168
1168
|
});
|
|
1169
|
-
await fs
|
|
1169
|
+
await fs.writeFile(plistPath, plist, {
|
|
1170
1170
|
encoding: "utf8",
|
|
1171
1171
|
mode: LAUNCH_AGENT_PLIST_MODE
|
|
1172
1172
|
});
|
|
1173
|
-
await fs
|
|
1173
|
+
await fs.chmod(plistPath, LAUNCH_AGENT_PLIST_MODE).catch(() => void 0);
|
|
1174
1174
|
await execLaunchctl([
|
|
1175
1175
|
"bootout",
|
|
1176
1176
|
domain,
|
|
@@ -1338,7 +1338,7 @@ function readWindowsListeningPidsOnPortSync(port) {
|
|
|
1338
1338
|
}
|
|
1339
1339
|
function readGatewayProcessArgsSync(pid) {
|
|
1340
1340
|
if (process.platform === "linux") try {
|
|
1341
|
-
return parseProcCmdline(
|
|
1341
|
+
return parseProcCmdline(fsSync.readFileSync(`/proc/${pid}/cmdline`, "utf8"));
|
|
1342
1342
|
} catch {
|
|
1343
1343
|
return null;
|
|
1344
1344
|
}
|
|
@@ -1436,7 +1436,7 @@ function resolveTaskUser(env) {
|
|
|
1436
1436
|
async function readScheduledTaskCommand(env) {
|
|
1437
1437
|
const scriptPath = resolveTaskScriptPath(env);
|
|
1438
1438
|
try {
|
|
1439
|
-
const content = await fs
|
|
1439
|
+
const content = await fs.readFile(scriptPath, "utf8");
|
|
1440
1440
|
let workingDirectory = "";
|
|
1441
1441
|
let commandLine = "";
|
|
1442
1442
|
const environment = {};
|
|
@@ -1546,7 +1546,7 @@ async function assertSchtasksAvailable() {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
async function isStartupEntryInstalled(env) {
|
|
1548
1548
|
try {
|
|
1549
|
-
await fs
|
|
1549
|
+
await fs.access(resolveStartupEntryPath(env));
|
|
1550
1550
|
return true;
|
|
1551
1551
|
} catch {
|
|
1552
1552
|
return false;
|
|
@@ -1716,7 +1716,7 @@ async function restartStartupEntry(env, stdout) {
|
|
|
1716
1716
|
async function installScheduledTask({ env, stdout, programArguments, workingDirectory, environment, description }) {
|
|
1717
1717
|
await assertSchtasksAvailable();
|
|
1718
1718
|
const scriptPath = resolveTaskScriptPath(env);
|
|
1719
|
-
await fs
|
|
1719
|
+
await fs.mkdir(path.dirname(scriptPath), { recursive: true });
|
|
1720
1720
|
const taskDescription = resolveGatewayServiceDescription({
|
|
1721
1721
|
env,
|
|
1722
1722
|
environment,
|
|
@@ -1728,7 +1728,7 @@ async function installScheduledTask({ env, stdout, programArguments, workingDire
|
|
|
1728
1728
|
workingDirectory,
|
|
1729
1729
|
environment
|
|
1730
1730
|
});
|
|
1731
|
-
await fs
|
|
1731
|
+
await fs.writeFile(scriptPath, script, "utf8");
|
|
1732
1732
|
const taskName = resolveTaskName(env);
|
|
1733
1733
|
const baseArgs = [
|
|
1734
1734
|
"/Create",
|
|
@@ -1758,12 +1758,12 @@ async function installScheduledTask({ env, stdout, programArguments, workingDire
|
|
|
1758
1758
|
detail
|
|
1759
1759
|
})) {
|
|
1760
1760
|
const startupEntryPath = resolveStartupEntryPath(env);
|
|
1761
|
-
await fs
|
|
1761
|
+
await fs.mkdir(path.dirname(startupEntryPath), { recursive: true });
|
|
1762
1762
|
const launcher = buildStartupLauncherScript({
|
|
1763
1763
|
description: taskDescription,
|
|
1764
1764
|
scriptPath
|
|
1765
1765
|
});
|
|
1766
|
-
await fs
|
|
1766
|
+
await fs.writeFile(startupEntryPath, launcher, "utf8");
|
|
1767
1767
|
launchFallbackTaskScript(scriptPath);
|
|
1768
1768
|
writeFormattedLines(stdout, [{
|
|
1769
1769
|
label: "Installed Windows login item",
|
|
@@ -1801,12 +1801,12 @@ async function uninstallScheduledTask({ env, stdout }) {
|
|
|
1801
1801
|
]);
|
|
1802
1802
|
const startupEntryPath = resolveStartupEntryPath(env);
|
|
1803
1803
|
try {
|
|
1804
|
-
await fs
|
|
1804
|
+
await fs.unlink(startupEntryPath);
|
|
1805
1805
|
stdout.write(`${formatLine("Removed Windows login item", startupEntryPath)}\n`);
|
|
1806
1806
|
} catch {}
|
|
1807
1807
|
const scriptPath = resolveTaskScriptPath(env);
|
|
1808
1808
|
try {
|
|
1809
|
-
await fs
|
|
1809
|
+
await fs.unlink(scriptPath);
|
|
1810
1810
|
stdout.write(`${formatLine("Removed task script", scriptPath)}\n`);
|
|
1811
1811
|
} catch {
|
|
1812
1812
|
stdout.write(`Task script not found at ${scriptPath}\n`);
|
|
@@ -2032,7 +2032,7 @@ function resolveSystemdUserUnitPath(env) {
|
|
|
2032
2032
|
async function readSystemdServiceExecStart(env) {
|
|
2033
2033
|
const unitPath = resolveSystemdUnitPath(env);
|
|
2034
2034
|
try {
|
|
2035
|
-
const content = await fs
|
|
2035
|
+
const content = await fs.readFile(unitPath, "utf8");
|
|
2036
2036
|
let execStart = "";
|
|
2037
2037
|
let workingDirectory = "";
|
|
2038
2038
|
const inlineEnvironment = {};
|
|
@@ -2100,7 +2100,7 @@ function parseEnvironmentFileLine(rawLine) {
|
|
|
2100
2100
|
}
|
|
2101
2101
|
async function readSystemdEnvironmentFile(pathname) {
|
|
2102
2102
|
const environment = {};
|
|
2103
|
-
const content = await fs
|
|
2103
|
+
const content = await fs.readFile(pathname, "utf8");
|
|
2104
2104
|
for (const rawLine of content.split(/\r?\n/)) {
|
|
2105
2105
|
const parsed = parseEnvironmentFileLine(rawLine);
|
|
2106
2106
|
if (!parsed) continue;
|
|
@@ -2245,12 +2245,12 @@ async function assertSystemdAvailable(env = process.env) {
|
|
|
2245
2245
|
async function installSystemdService({ env, stdout, programArguments, workingDirectory, environment, description }) {
|
|
2246
2246
|
await assertSystemdAvailable(env);
|
|
2247
2247
|
const unitPath = resolveSystemdUnitPath(env);
|
|
2248
|
-
await fs
|
|
2248
|
+
await fs.mkdir(path.dirname(unitPath), { recursive: true });
|
|
2249
2249
|
let backedUp = false;
|
|
2250
2250
|
try {
|
|
2251
|
-
await fs
|
|
2251
|
+
await fs.access(unitPath);
|
|
2252
2252
|
const backupPath = `${unitPath}.bak`;
|
|
2253
|
-
await fs
|
|
2253
|
+
await fs.copyFile(unitPath, backupPath);
|
|
2254
2254
|
backedUp = true;
|
|
2255
2255
|
} catch {}
|
|
2256
2256
|
const unit = buildSystemdUnit({
|
|
@@ -2263,7 +2263,7 @@ async function installSystemdService({ env, stdout, programArguments, workingDir
|
|
|
2263
2263
|
workingDirectory,
|
|
2264
2264
|
environment
|
|
2265
2265
|
});
|
|
2266
|
-
await fs
|
|
2266
|
+
await fs.writeFile(unitPath, unit, "utf8");
|
|
2267
2267
|
const unitName = `${resolveGatewaySystemdServiceName(env.OPENCLAW_PROFILE)}.service`;
|
|
2268
2268
|
const reload = await execSystemctlUser(env, ["daemon-reload"]);
|
|
2269
2269
|
if (reload.code !== 0) throw new Error(`systemctl daemon-reload failed: ${reload.stderr || reload.stdout}`.trim());
|
|
@@ -2289,7 +2289,7 @@ async function uninstallSystemdService({ env, stdout }) {
|
|
|
2289
2289
|
]);
|
|
2290
2290
|
const unitPath = resolveSystemdUnitPath(env);
|
|
2291
2291
|
try {
|
|
2292
|
-
await fs
|
|
2292
|
+
await fs.unlink(unitPath);
|
|
2293
2293
|
stdout.write(`${formatLine("Removed systemd service", unitPath)}\n`);
|
|
2294
2294
|
} catch {
|
|
2295
2295
|
stdout.write(`Systemd service not found at ${unitPath}\n`);
|
|
@@ -2323,7 +2323,7 @@ async function restartSystemdService({ stdout, env }) {
|
|
|
2323
2323
|
async function isSystemdServiceEnabled(args) {
|
|
2324
2324
|
const env = args.env ?? process.env;
|
|
2325
2325
|
try {
|
|
2326
|
-
await fs
|
|
2326
|
+
await fs.access(resolveSystemdUnitPath(env));
|
|
2327
2327
|
} catch (error) {
|
|
2328
2328
|
if (error.code === "ENOENT") return false;
|
|
2329
2329
|
throw error;
|
|
@@ -2956,7 +2956,7 @@ async function auditSystemdUnit(env, issues) {
|
|
|
2956
2956
|
const unitPath = resolveSystemdUserUnitPath(env);
|
|
2957
2957
|
let content = "";
|
|
2958
2958
|
try {
|
|
2959
|
-
content = await fs
|
|
2959
|
+
content = await fs.readFile(unitPath, "utf8");
|
|
2960
2960
|
} catch {
|
|
2961
2961
|
return;
|
|
2962
2962
|
}
|
|
@@ -2984,7 +2984,7 @@ async function auditLaunchdPlist(env, issues) {
|
|
|
2984
2984
|
const plistPath = resolveLaunchAgentPlistPath(env);
|
|
2985
2985
|
let content = "";
|
|
2986
2986
|
try {
|
|
2987
|
-
content = await fs
|
|
2987
|
+
content = await fs.readFile(plistPath, "utf8");
|
|
2988
2988
|
} catch {
|
|
2989
2989
|
return;
|
|
2990
2990
|
}
|
|
@@ -3872,7 +3872,7 @@ const GATEWAY_LOG_ERROR_PATTERNS = [
|
|
|
3872
3872
|
];
|
|
3873
3873
|
async function readLastLogLine(filePath) {
|
|
3874
3874
|
try {
|
|
3875
|
-
const lines = (await fs
|
|
3875
|
+
const lines = (await fs.readFile(filePath, "utf8")).split(/\r?\n/).map((line) => line.trim());
|
|
3876
3876
|
for (let i = lines.length - 1; i >= 0; i -= 1) if (lines[i]) return lines[i];
|
|
3877
3877
|
return null;
|
|
3878
3878
|
} catch {
|
|
@@ -3881,8 +3881,8 @@ async function readLastLogLine(filePath) {
|
|
|
3881
3881
|
}
|
|
3882
3882
|
async function readLastGatewayErrorLine(env) {
|
|
3883
3883
|
const { stdoutPath, stderrPath } = resolveGatewayLogPaths(env);
|
|
3884
|
-
const stderrRaw = await fs
|
|
3885
|
-
const stdoutRaw = await fs
|
|
3884
|
+
const stderrRaw = await fs.readFile(stderrPath, "utf8").catch(() => "");
|
|
3885
|
+
const stdoutRaw = await fs.readFile(stdoutPath, "utf8").catch(() => "");
|
|
3886
3886
|
const lines = [...stderrRaw.split(/\r?\n/), ...stdoutRaw.split(/\r?\n/)].map((line) => line.trim());
|
|
3887
3887
|
for (let i = lines.length - 1; i >= 0; i -= 1) {
|
|
3888
3888
|
const line = lines[i];
|
|
@@ -3960,14 +3960,14 @@ function isLegacyLabel(label) {
|
|
|
3960
3960
|
}
|
|
3961
3961
|
async function readDirEntries(dir) {
|
|
3962
3962
|
try {
|
|
3963
|
-
return await fs
|
|
3963
|
+
return await fs.readdir(dir);
|
|
3964
3964
|
} catch {
|
|
3965
3965
|
return [];
|
|
3966
3966
|
}
|
|
3967
3967
|
}
|
|
3968
3968
|
async function readUtf8File(filePath) {
|
|
3969
3969
|
try {
|
|
3970
|
-
return await fs
|
|
3970
|
+
return await fs.readFile(filePath, "utf8");
|
|
3971
3971
|
} catch {
|
|
3972
3972
|
return null;
|
|
3973
3973
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { jt as deliverOutboundPayloads } from "./model-selection-
|
|
4
|
+
import { jt as deliverOutboundPayloads } from "./model-selection-qaBek98Q.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
export { deliverOutboundPayloads };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./paths-BnSNMlFT.js";
|
|
2
|
+
import "./logger-Budylr6i.js";
|
|
3
|
+
import { Rt as deliverOutboundPayloads } from "./auth-profiles-Dta-Mhaw.js";
|
|
4
|
+
import "./query-expansion-BMQzl41m.js";
|
|
5
|
+
import "./github-copilot-token-BgPOyCXe.js";
|
|
6
|
+
import "./fetch-Bdod8UI1.js";
|
|
7
|
+
export { deliverOutboundPayloads };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./query-expansion-DnS6CGY2.js";
|
|
2
|
+
import "./paths-BwJ6yG6k.js";
|
|
3
|
+
import "./subsystem-CDcEQtQK.js";
|
|
4
|
+
import "./workspace-Cg3kGb1y.js";
|
|
5
|
+
import "./logger-C0l_Gj8Y.js";
|
|
6
|
+
import { Pt as deliverOutboundPayloads } from "./model-selection-C9tlIhgN.js";
|
|
7
|
+
import "./github-copilot-token-368sRGBD.js";
|
|
8
|
+
import "./boolean-C7Ct_klp.js";
|
|
9
|
+
import "./fetch-sH_NN8SV.js";
|
|
10
|
+
import "./frontmatter-DhmdUnBP.js";
|
|
11
|
+
export { deliverOutboundPayloads };
|
package/dist/extensionAPI.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { It as ensureAgentWorkspace, N as resolveSessionFilePath, R as resolveStorePath, St as resolveAgentWorkspaceDir, vt as resolveAgentDir } from "./query-expansion-C6UNkw7W.js";
|
|
2
2
|
import "./paths-CzCvxHkV.js";
|
|
3
3
|
import "./logger-Cmh2bFJD.js";
|
|
4
|
-
import { $n as saveSessionStore, Oi as DEFAULT_MODEL, Zn as loadSessionStore, at as resolveAgentTimeoutMs, c as resolveThinkingDefault, ki as DEFAULT_PROVIDER, q as runEmbeddedPiAgent, wi as resolveAgentIdentity } from "./model-selection-
|
|
4
|
+
import { $n as saveSessionStore, Oi as DEFAULT_MODEL, Zn as loadSessionStore, at as resolveAgentTimeoutMs, c as resolveThinkingDefault, ki as DEFAULT_PROVIDER, q as runEmbeddedPiAgent, wi as resolveAgentIdentity } from "./model-selection-qaBek98Q.js";
|
|
5
5
|
import "./github-copilot-token-xzmo0MIc.js";
|
|
6
6
|
import "./fetch-sqCl8SIJ.js";
|
|
7
7
|
export { DEFAULT_MODEL, DEFAULT_PROVIDER, ensureAgentWorkspace, loadSessionStore, resolveAgentDir, resolveAgentIdentity, resolveAgentTimeoutMs, resolveAgentWorkspaceDir, resolveSessionFilePath, resolveStorePath, resolveThinkingDefault, runEmbeddedPiAgent, saveSessionStore };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as createSubsystemLogger, i as logWarn } from "./logger-
|
|
1
|
+
import { a as createSubsystemLogger, i as logWarn } from "./logger-Budylr6i.js";
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
|
-
import fs
|
|
3
|
+
import fs from "node:fs/promises";
|
|
4
4
|
import process$1 from "node:process";
|
|
5
5
|
import { Agent, EnvHttpProxyAgent, ProxyAgent, fetch as fetch$1 } from "undici";
|
|
6
6
|
import * as dns from "node:dns";
|
|
@@ -267,7 +267,7 @@ async function isWSL() {
|
|
|
267
267
|
return wslCached;
|
|
268
268
|
}
|
|
269
269
|
try {
|
|
270
|
-
const release = await fs
|
|
270
|
+
const release = await fs.readFile("/proc/sys/kernel/osrelease", "utf8");
|
|
271
271
|
wslCached = release.toLowerCase().includes("microsoft") || release.toLowerCase().includes("wsl");
|
|
272
272
|
} catch {
|
|
273
273
|
wslCached = false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { i as logWarn } from "./logger-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-CDcEQtQK.js";
|
|
2
|
+
import { i as logWarn } from "./logger-C0l_Gj8Y.js";
|
|
3
3
|
import { t as parseBooleanValue } from "./boolean-C7Ct_klp.js";
|
|
4
4
|
import "node:fs/promises";
|
|
5
5
|
import { readFileSync } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-CDcEQtQK.js";
|
|
2
2
|
import { t as parseBooleanValue } from "./boolean-C7Ct_klp.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
import JSON5 from "json5";
|
|
6
6
|
import YAML from "yaml";
|
|
7
7
|
//#region src/hooks/internal-hooks.ts
|
|
@@ -200,7 +200,7 @@ function hasBinary(bin) {
|
|
|
200
200
|
for (const part of parts) for (const ext of extensions) {
|
|
201
201
|
const candidate = path.join(part, bin + ext);
|
|
202
202
|
try {
|
|
203
|
-
|
|
203
|
+
fs.accessSync(candidate, fs.constants.X_OK);
|
|
204
204
|
hasBinaryCache.set(bin, true);
|
|
205
205
|
return true;
|
|
206
206
|
} catch {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
|
-
import {
|
|
3
|
-
import fs from "node:fs";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-BwJ6yG6k.js";
|
|
4
3
|
import path from "node:path";
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
//#region src/infra/json-file.ts
|
|
6
6
|
function loadJsonFile(pathname) {
|
|
7
7
|
try {
|