@symerian/symi 2.6.10 → 2.6.12
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/{acp-cli-DT0rEuUE.js → acp-cli-Cu4icbJT.js} +2 -2
- package/dist/{agents-DDqXWXbP.js → agents-Cz2na8n6.js} +4 -4
- package/dist/{agents.config-Bu_N-bn_.js → agents.config-BeOO73lT.js} +1 -1
- package/dist/{agents.config-CEt-ES9z.js → agents.config-BoP9QtHX.js} +1 -1
- package/dist/{audio-preflight-C40mKAp7.js → audio-preflight-CPBOQV4I.js} +4 -4
- package/dist/{audio-preflight-BcSzL_0I.js → audio-preflight-CWnxkaac.js} +8 -8
- package/dist/{audio-preflight-BVaaZWkg.js → audio-preflight-DHTaS5U1.js} +4 -4
- package/dist/{audit-BIE9JAxf.js → audit-CrITRV6w.js} +5 -5
- package/dist/{auth-choice-Djy_YmfW.js → auth-choice-D-czhFdL.js} +4 -4
- package/dist/{auth-choice-Bmd-rbuU.js → auth-choice-DTe3UF8T.js} +1 -1
- package/dist/{banner-BNkhjU8E.js → banner-CSZ39UAE.js} +1 -1
- package/dist/{browser-cli-nNQ60Koh.js → browser-cli-BG4qPxpM.js} +3 -3
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +6 -6
- package/dist/bundled/session-memory/handler.js +6 -6
- package/dist/{call-7djMRPgl.js → call-CJaS1iRF.js} +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-D8ByM6g0.js → channel-options-CySdnaWJ.js} +1 -1
- package/dist/{channel-options-NLrg-j_d.js → channel-options-FlKM6QP8.js} +1 -1
- package/dist/{channel-web-BUQWBln9.js → channel-web-BEFE-0qE.js} +2 -2
- package/dist/{channels-cli-C5DWcDDG.js → channels-cli-D6zAPAP3.js} +4 -4
- package/dist/{channels-cli-qBgicVqp.js → channels-cli-RkhiaITs.js} +19 -19
- package/dist/{chrome-CDJYxX5a.js → chrome-D2SKJnR7.js} +7 -7
- package/dist/{chrome-DkaXoP36.js → chrome-DYZwl5Gv.js} +7 -7
- package/dist/{chrome-DBKZkx0x.js → chrome-DtPkPq9T.js} +7 -7
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-UHMMUbWL.js → cli-Bjw4Mr_t.js} +16 -16
- package/dist/{cli-Bx78WeyO.js → cli-v8nSF61Z.js} +1 -1
- package/dist/{client-Z6SFrwob.js → client-CQSyCS4M.js} +3 -3
- package/dist/{command-registry-BSGsNY71.js → command-registry-CojVJ8At.js} +9 -9
- package/dist/{completion-cli-B915TqN4.js → completion-cli-D3N7Bpqe.js} +2 -2
- package/dist/{completion-cli-CajQzz5J.js → completion-cli-rD9RSIqQ.js} +1 -1
- package/dist/{config-cli-BM9FX48b.js → config-cli-CCG1Hizl.js} +1 -1
- package/dist/{config-cli-CeErUiHR.js → config-cli-DFYbGvDQ.js} +1 -1
- package/dist/{configure-DggNPSKd.js → configure-DdWNM_S-.js} +3 -3
- package/dist/{configure-CbiNzEIk.js → configure-v2ocSUJ3.js} +8 -8
- package/dist/{control-service-DdeFa44u.js → control-service-Bz7rxLWq.js} +3 -3
- package/dist/{cron-cli-C_1RndRW.js → cron-cli-DBIlCvp3.js} +3 -3
- package/dist/{daemon-cli-C2fkpr13.js → daemon-cli-DscwlsKW.js} +2 -2
- package/dist/{deliver-BH0l3UKW.js → deliver-C-37cZUe.js} +1 -1
- package/dist/{deliver-Bu624MY6.js → deliver-CWR_98sK.js} +1 -1
- package/dist/{deliver-C46-vyqg.js → deliver-dODxSv3b.js} +1 -1
- package/dist/{devices-cli-ERMql8Dq.js → devices-cli-Dds-25Ve.js} +2 -2
- package/dist/{doctor-completion-BfLDfA98.js → doctor-completion-F_AI3hun.js} +1 -1
- package/dist/{doctor-completion-BP_qD5Bt.js → doctor-completion-vTHV1Opp.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/{exec-approvals-cli-BEU-xJFu.js → exec-approvals-cli-BliRl8VB.js} +4 -4
- package/dist/extensionAPI.js +6 -6
- package/dist/{gateway-cli-LmMxDk7B.js → gateway-cli-DLaTC2ps.js} +28 -28
- package/dist/{gateway-cli-qMBjCmLH.js → gateway-cli-Di1ExMCg.js} +9 -9
- package/dist/{gateway-rpc-BWZzo3L9.js → gateway-rpc-BxkKeCZ0.js} +1 -1
- package/dist/{glass-ui-ws-CXpW0epd.js → glass-ui-ws-Bfn56Lok.js} +7 -7
- package/dist/{glass-ui-ws-DbV46Nrg.js → glass-ui-ws-CbaWZjN3.js} +23 -23
- package/dist/{health-BctmvDJ0.js → health-CqQIZeIm.js} +1 -1
- package/dist/{health-pukFTT09.js → health-DbJOe12X.js} +3 -3
- package/dist/{hooks-cli-BMQOn6QU.js → hooks-cli-B9pOqbW_.js} +17 -17
- package/dist/{hooks-cli-DcQN6UeT.js → hooks-cli-D60an6P1.js} +2 -2
- package/dist/{image-CuzFLQWC.js → image-CXu8W39c.js} +1 -1
- package/dist/{image-CtCUVPCD.js → image-D9uvDTrc.js} +1 -1
- package/dist/{image-CHzdaNJ4.js → image-DcpMiprB.js} +1 -1
- package/dist/index.js +21 -21
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{logs-cli-V5qUbmVy.js → logs-cli-xOzIPrHm.js} +3 -3
- package/dist/{model-catalog-Da6fXK5K.js → model-catalog-DvBJ8pMD.js} +1 -1
- package/dist/{model-picker-B6QoK7pe.js → model-picker-Ddo3jHe-.js} +1 -1
- package/dist/{models-cli-DAKvip7R.js → models-cli-4EwiSo4p.js} +18 -18
- package/dist/{models-cli-DHOMkJmd.js → models-cli-Du60Ivll.js} +3 -3
- package/dist/{models-yF2XRbPQ.js → models-hMbDU9ot.js} +2 -2
- package/dist/{node-cli-r5-MNz9_.js → node-cli-C_G-Q3h-.js} +6 -6
- package/dist/{nodes-cli-DQed-Snk.js → nodes-cli-BcnuJajV.js} +3 -3
- package/dist/{onboard-BhqTlAS0.js → onboard-5yW9nvG6.js} +2 -2
- package/dist/{onboard-BafMA6T9.js → onboard-DJqYAPxi.js} +5 -5
- package/dist/{onboard-channels-CHe-XSLv.js → onboard-channels-B39Hvc_L.js} +1 -1
- package/dist/{onboard-channels-CZB5bhSJ.js → onboard-channels-BSzHnDcL.js} +1 -1
- package/dist/{onboard-custom-BduhuM_4.js → onboard-custom-C7O-zfQ1.js} +1 -1
- package/dist/{onboard-helpers-CiLCJJVQ.js → onboard-helpers-ZmZYzlq3.js} +1 -1
- package/dist/{onboard-remote-C1nRkyWo.js → onboard-remote-zUjD7UtM.js} +1 -1
- package/dist/{onboard-skills-9GLwG44a.js → onboard-skills-BB0YhUmF.js} +1 -1
- package/dist/{onboarding-D5yCx7Yb.js → onboarding-C7g_ZvRW.js} +9 -9
- package/dist/{onboarding-BXVYtRYj.js → onboarding-D7Y_e4zX.js} +3 -3
- package/dist/{onboarding.finalize-BX4DUaoK.js → onboarding.finalize-C3rqwVvV.js} +21 -21
- package/dist/{onboarding.finalize-DF5Zx0Zc.js → onboarding.finalize-OYNmD4ly.js} +6 -6
- package/dist/{onboarding.gateway-config-TSh7IejG.js → onboarding.gateway-config-CJUgDC6Y.js} +3 -3
- package/dist/{pi-auth-json-Tqz9D47K.js → pi-auth-json-DayrlDg_.js} +1 -1
- package/dist/{pi-embedded-DV6dp0BP.js → pi-embedded-Bp_9g-wj.js} +68 -17
- package/dist/{pi-embedded-helpers-lgx_U5KS.js → pi-embedded-helpers-B8kqLWns.js} +4 -4
- package/dist/{pi-embedded-helpers-D-dUrQOR.js → pi-embedded-helpers-CNPyv_ax.js} +1 -1
- package/dist/{pi-embedded-helpers-CfqDGQ9J.js → pi-embedded-helpers-pubKo8HQ.js} +4 -4
- package/dist/{pi-tools.policy-CgGK6Jq8.js → pi-tools.policy-CIDBbw6x.js} +1 -1
- package/dist/{plugin-registry-BSmy8tIV.js → plugin-registry-C4lpIiGz.js} +1 -1
- package/dist/{plugin-registry-BwnzEvIz.js → plugin-registry-CUjBEHAz.js} +1 -1
- package/dist/plugin-sdk/{channel-web-BdY2z7lg.js → channel-web-CQNBQiKF.js} +1 -1
- package/dist/plugin-sdk/index.js +2 -2
- package/dist/plugin-sdk/{reply-BvxntA3R.js → reply-S1JHdV1Y.js} +54 -3
- package/dist/plugin-sdk/{web-CorFnJCI.js → web-GZFVijBY.js} +2 -2
- package/dist/{plugins-cli-BMmiYArH.js → plugins-cli-1pbqkgc2.js} +17 -17
- package/dist/{plugins-cli-CrN718uZ.js → plugins-cli-NpSGD1FH.js} +2 -2
- package/dist/{program-NGbjPxJh.js → program-CvHqOriK.js} +7 -7
- package/dist/{program-context-BqxG0w61.js → program-context-gkaZBN4U.js} +30 -30
- package/dist/{prompt-select-styled-B7SzTPf7.js → prompt-select-styled-DNaDChFa.js} +8 -8
- package/dist/{prompt-select-styled-B1LZVYl0.js → prompt-select-styled-We9EmwdJ.js} +4 -4
- package/dist/{provider-auth-helpers--A-4LKUl.js → provider-auth-helpers-BD1qo8xm.js} +1 -1
- package/dist/{provider-auth-helpers-CNEhLjMl.js → provider-auth-helpers-aA2Nm1dz.js} +1 -1
- package/dist/{push-apns-DgT_gz_P.js → push-apns-Cp9F-674.js} +1 -1
- package/dist/{push-apns-Cem8OlK7.js → push-apns-DseyExUl.js} +1 -1
- package/dist/{pw-ai-De-KR9_s.js → pw-ai-1htA-NnS.js} +1 -1
- package/dist/{pw-ai-m0mj2KWK.js → pw-ai-B5asscAD.js} +1 -1
- package/dist/{pw-ai-CC0xm0TY.js → pw-ai-DqL87js3.js} +1 -1
- package/dist/{register.agent-vP7gkHzk.js → register.agent-BQ2_6Nm3.js} +6 -6
- package/dist/{register.agent-DT0doE92.js → register.agent-CBYb5PmK.js} +21 -21
- package/dist/{register.configure-B_W1y_ag.js → register.configure-CjLPSjMa.js} +6 -6
- package/dist/{register.configure-BnkkCig3.js → register.configure-o-37DMn9.js} +25 -25
- package/dist/{register.maintenance-C0akYVa2.js → register.maintenance-B119maJ4.js} +22 -22
- package/dist/{register.maintenance-Br5q9f-j.js → register.maintenance-B5VGGPfr.js} +8 -8
- package/dist/{register.message-CRaEakG_.js → register.message-C0vKP2cl.js} +2 -2
- package/dist/{register.message-mCGVBJsU.js → register.message-Dqit98AR.js} +17 -17
- package/dist/{register.onboard-CV_3MiHm.js → register.onboard-BHj8YY-f.js} +4 -4
- package/dist/{register.onboard-BvsYOovb.js → register.onboard-DfCy6ZXS.js} +21 -21
- package/dist/{register.setup-DFcMhPAd.js → register.setup-BO4Kdk1x.js} +4 -4
- package/dist/{register.setup-BQqw49hm.js → register.setup-CUK-FwzD.js} +21 -21
- package/dist/{register.status-health-sessions-DlgKRa9S.js → register.status-health-sessions-BIXO_68y.js} +3 -3
- package/dist/{register.status-health-sessions-SAm9yGnr.js → register.status-health-sessions-CvcX-h97.js} +19 -19
- package/dist/{register.subclis-CdANuuHY.js → register.subclis-B0T9tMmL.js} +9 -9
- package/dist/{reply-CiPQDsZl.js → reply-DPaH7oQp.js} +75 -24
- package/dist/{routes-BO8eMYxn.js → routes-Ba9CUQ8M.js} +2 -2
- package/dist/{rpc-BcyzUwtC.js → rpc-BfhojW8g.js} +1 -1
- package/dist/{run-main-z8u07ybv.js → run-main-DLFhMwmE.js} +14 -14
- package/dist/{runner-DUBExAb5.js → runner-BcQ0sF9T.js} +1 -1
- package/dist/{runner-DxdRmWfW.js → runner-CUglpiFP.js} +2 -2
- package/dist/{runner-CU9l0uJh.js → runner-WAG0M5s9.js} +1 -1
- package/dist/{sandbox-B7qoYkRl.js → sandbox-C-T6hOMv.js} +3 -3
- package/dist/{sandbox-cli-C-hbJJWM.js → sandbox-cli-BllVdQzR.js} +4 -4
- package/dist/{security-cli-CNzBZn7V.js → security-cli-BFLtWWHy.js} +8 -8
- package/dist/{server-context-B-ra1emS.js → server-context-CEpFjqSk.js} +4 -4
- package/dist/{server-methods-D9jBWl7O.js → server-methods-CCAxdyvF.js} +14 -14
- package/dist/{server-methods-Dwsrsy7D.js → server-methods-DMIR4YTm.js} +7 -7
- package/dist/{server-node-events-9T-Sm9Q4.js → server-node-events-BQ7wsfbY.js} +17 -17
- package/dist/{server-node-events-CUKIb7Xq.js → server-node-events-BvOiDPkg.js} +2 -2
- package/dist/{status-UWWMuety.js → status-BPGU6b1g.js} +5 -5
- package/dist/{status-CB6N6XaA.js → status-CpCo3PvK.js} +1 -1
- package/dist/{status-Dqm_DV3z.js → status-D4RE4eR4.js} +2 -2
- package/dist/{status-DPk2qV91.js → status-gpmp_Ca5.js} +1 -1
- package/dist/{subagent-registry-DTIudfq4.js → subagent-registry-CzBf7A_o.js} +54 -3
- package/dist/{system-cli-_0h_FSPB.js → system-cli-UMsMEurS.js} +3 -3
- package/dist/{tui-D0s_9S8b.js → tui-CriznorL.js} +3 -3
- package/dist/{tui-cli-gm9fv3M8.js → tui-cli-CSIdfCTR.js} +8 -8
- package/dist/{unified-runner-DdeRGc1w.js → unified-runner-CnKhgGr-.js} +68 -17
- package/dist/{update-cli-C55vGnoj.js → update-cli-16QmlAYc.js} +8 -8
- package/dist/{update-cli-D8jX4yKe.js → update-cli-B8lzwxOj.js} +23 -23
- package/dist/{update-runner-B0ORHPYT.js → update-runner-CEjq0Uxs.js} +1 -1
- package/dist/{update-runner-CGsqW9Gu.js → update-runner-DLCpL3Pj.js} +1 -1
- package/dist/{web-DsGfc1GN.js → web-BPQuKyCM.js} +17 -17
- package/dist/{web-CRFt1vNo.js → web-BiZqjSRz.js} +1 -1
- package/dist/{web-nKQzj7wJ.js → web-CQ7OlTVM.js} +6 -6
- package/dist/{web-BC4kDUZw.js → web-D7tHOzz3.js} +6 -6
- package/dist/{with-timeout-BFdGltxb.js → with-timeout-gmK6RciS.js} +1 -1
- package/package.json +1 -1
|
@@ -10,10 +10,10 @@ import { $ as resolveSymiAgentDir, B as resolveApiKeyForProvider, C as normalize
|
|
|
10
10
|
import { n as formatCliCommand, r as resolveCliName, t as isTruthyEnvValue } from "./env-BDXYbTKj.js";
|
|
11
11
|
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-cCYzSU9h.js";
|
|
12
12
|
import { t as parseBooleanValue$1 } from "./boolean-CE7i9tBR.js";
|
|
13
|
-
import { $ as normalizeDeliveryContext, A as isTransientHttpError, At as DEFAULT_UPLOAD_DIR, Bt as expandToolGroups, C as isContextOverflowError, Ct as resolveGroupSessionKey, D as isRateLimitAssistantError, Dt as registerBrowserRoutes, E as isLikelyContextOverflowError, Et as createBrowserRouteContext, F as resolveSandboxContext, Ft as resolveSandboxConfigForAgent, G as updateLastRoute, Gt as compileGlobPatterns, H as loadSessionStore, Ht as normalizeToolName, I as resolveSandboxRuntimeStatus, It as applyOwnerOnlyToolPolicy, J as isCacheEnabled, Jt as ensureSessionHeader, K as updateSessionStore, Kt as matchesAnyGlobPattern, L as extractDeliveryInfo, Lt as buildPluginToolGroups, M as parseImageSizeError, Mt as getBridgeAuthForPort, N as sanitizeUserFacingText, Nt as ensureBrowserControlAuth, O as isRawApiErrorPayload, Ot as resolveBrowserConfig, P as ensureSandboxWorkspaceForSession, Pt as resolveBrowserControlAuth, Q as mergeDeliveryContext, R as parseSessionThreadInfo, Rt as collectExplicitAllowlist, S as isCompactionFailureError, St as deriveSessionMetaPatch, T as isFailoverErrorMessage, Tt as resolveSessionLockMaxHoldFromTimeout, U as readSessionUpdatedAt, Ut as resolveToolProfilePolicy, V as resolveAndPersistSessionFile, Vt as mergeAlsoAllowPolicy, W as recordSessionMetaFromInbound, Wt as stripPluginOnlyAllowlist, X as deliveryContextFromSession, Xt as resolveBootstrapTotalMaxChars, Y as resolveCacheTtlMs$1, Yt as resolveBootstrapMaxChars, Z as deliveryContextKey, Zt as sanitizeGoogleTurnOrdering, _ as formatRawAssistantErrorForUi, _t as resolveFreshSessionTotalTokens, a as isMessagingToolDuplicateNormalized, at as extractToolCallNames, b as isBillingAssistantError, bt as resolveExplicitAgentSessionKey, c as extractToolCallsFromAssistant, ct as hasInterSessionUserProvenance, d as isAntigravityClaude, dt as evaluateSessionFreshness, et as normalizeSessionDeliveryFields, f as isGoogleModelApi, ft as resolveChannelResetConfig, g as formatBillingErrorMessage, gt as DEFAULT_RESET_TRIGGERS, h as formatAssistantErrorText, ht as resolveThreadFlag, it as countToolResults, j as parseImageDimensionError, jt as resolveExistingPathsWithinRoot, k as isTimeoutErrorMessage, kt as resolveProfile, l as extractToolResultId, lt as normalizeInputProvenance, m as classifyFailoverReason, mt as resolveSessionResetType, n as validateGeminiTurns, nt as archiveSessionTranscripts, o as normalizeTextForComparison, ot as INPUT_PROVENANCE_KIND_VALUES, p as BILLING_ERROR_USER_MESSAGE, pt as resolveSessionResetPolicy, q as updateSessionStoreEntry, qt as buildBootstrapContextFiles, r as pickFallbackThinkingLevel, rt as capArrayByJsonBytes, s as sanitizeSessionMessagesImages, st as applyInputProvenanceToUserMessage, t as validateAnthropicTurns, tt as normalizeAccountId$3, u as downgradeOpenAIReasoningBlocks, ut as resolveSessionKey, v as getApiErrorPayloadFingerprint, vt as canonicalizeMainSessionAlias, w as isFailoverAssistantError, wt as acquireSessionWriteLock, x as isCloudCodeAssistFormatError, xt as resolveMainSessionKey, y as isAuthAssistantError, z as appendAssistantMessageToSessionTranscript, zt as expandPolicyWithPluginGroups } from "./pi-embedded-helpers-
|
|
13
|
+
import { $ as normalizeDeliveryContext, A as isTransientHttpError, At as DEFAULT_UPLOAD_DIR, Bt as expandToolGroups, C as isContextOverflowError, Ct as resolveGroupSessionKey, D as isRateLimitAssistantError, Dt as registerBrowserRoutes, E as isLikelyContextOverflowError, Et as createBrowserRouteContext, F as resolveSandboxContext, Ft as resolveSandboxConfigForAgent, G as updateLastRoute, Gt as compileGlobPatterns, H as loadSessionStore, Ht as normalizeToolName, I as resolveSandboxRuntimeStatus, It as applyOwnerOnlyToolPolicy, J as isCacheEnabled, Jt as ensureSessionHeader, K as updateSessionStore, Kt as matchesAnyGlobPattern, L as extractDeliveryInfo, Lt as buildPluginToolGroups, M as parseImageSizeError, Mt as getBridgeAuthForPort, N as sanitizeUserFacingText, Nt as ensureBrowserControlAuth, O as isRawApiErrorPayload, Ot as resolveBrowserConfig, P as ensureSandboxWorkspaceForSession, Pt as resolveBrowserControlAuth, Q as mergeDeliveryContext, R as parseSessionThreadInfo, Rt as collectExplicitAllowlist, S as isCompactionFailureError, St as deriveSessionMetaPatch, T as isFailoverErrorMessage, Tt as resolveSessionLockMaxHoldFromTimeout, U as readSessionUpdatedAt, Ut as resolveToolProfilePolicy, V as resolveAndPersistSessionFile, Vt as mergeAlsoAllowPolicy, W as recordSessionMetaFromInbound, Wt as stripPluginOnlyAllowlist, X as deliveryContextFromSession, Xt as resolveBootstrapTotalMaxChars, Y as resolveCacheTtlMs$1, Yt as resolveBootstrapMaxChars, Z as deliveryContextKey, Zt as sanitizeGoogleTurnOrdering, _ as formatRawAssistantErrorForUi, _t as resolveFreshSessionTotalTokens, a as isMessagingToolDuplicateNormalized, at as extractToolCallNames, b as isBillingAssistantError, bt as resolveExplicitAgentSessionKey, c as extractToolCallsFromAssistant, ct as hasInterSessionUserProvenance, d as isAntigravityClaude, dt as evaluateSessionFreshness, et as normalizeSessionDeliveryFields, f as isGoogleModelApi, ft as resolveChannelResetConfig, g as formatBillingErrorMessage, gt as DEFAULT_RESET_TRIGGERS, h as formatAssistantErrorText, ht as resolveThreadFlag, it as countToolResults, j as parseImageDimensionError, jt as resolveExistingPathsWithinRoot, k as isTimeoutErrorMessage, kt as resolveProfile, l as extractToolResultId, lt as normalizeInputProvenance, m as classifyFailoverReason, mt as resolveSessionResetType, n as validateGeminiTurns, nt as archiveSessionTranscripts, o as normalizeTextForComparison, ot as INPUT_PROVENANCE_KIND_VALUES, p as BILLING_ERROR_USER_MESSAGE, pt as resolveSessionResetPolicy, q as updateSessionStoreEntry, qt as buildBootstrapContextFiles, r as pickFallbackThinkingLevel, rt as capArrayByJsonBytes, s as sanitizeSessionMessagesImages, st as applyInputProvenanceToUserMessage, t as validateAnthropicTurns, tt as normalizeAccountId$3, u as downgradeOpenAIReasoningBlocks, ut as resolveSessionKey, v as getApiErrorPayloadFingerprint, vt as canonicalizeMainSessionAlias, w as isFailoverAssistantError, wt as acquireSessionWriteLock, x as isCloudCodeAssistFormatError, xt as resolveMainSessionKey, y as isAuthAssistantError, z as appendAssistantMessageToSessionTranscript, zt as expandPolicyWithPluginGroups } from "./pi-embedded-helpers-pubKo8HQ.js";
|
|
14
14
|
import { A as VERSION, C as getConfigValueAtPath, D as isSafeExecutableValue, E as unsetConfigValueAtPath, O as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, S as unsetConfigOverride, T as setConfigValueAtPath, _ as parseDurationMs, a as writeConfigFile, b as resetConfigOverrides, c as TELEGRAM_COMMAND_NAME_PATTERN, f as isInboundPathAllowed, g as normalizeScpRemoteHost, h as resolveIMessageRemoteAttachmentRoots, i as resolveConfigSnapshotHash, k as resolveAgentMaxConcurrent, l as normalizeTelegramCommandName, m as resolveIMessageAttachmentRoots, n as loadConfig, o as validateConfigObjectWithPlugins, r as readConfigFileSnapshot, u as resolveTelegramCustomCommands, v as validateJsonSchemaValue, w as parseConfigPath, x as setConfigOverride, y as getConfigOverrides } from "./config-5SdHIcHU.js";
|
|
15
15
|
import { a as applyTestPluginDefaults, c as resolveMemorySlotDecision, d as isDangerousHostEnvVarName, i as safeStatSync, n as discoverSymiPlugins, o as normalizePluginsConfig, r as isPathInside, s as resolveEnableState, t as loadPluginManifestRegistry, u as isPathInsideWithRealpath } from "./manifest-registry-yb7sAlu4.js";
|
|
16
|
-
import { C as rawDataToString, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as isSecureWebSocketUrl, x as ensureChromeExtensionRelayServer } from "./chrome-
|
|
16
|
+
import { C as rawDataToString, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as isSecureWebSocketUrl, x as ensureChromeExtensionRelayServer } from "./chrome-DYZwl5Gv.js";
|
|
17
17
|
import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-Bs0AW1g3.js";
|
|
18
18
|
import { n as formatErrorMessage, r as formatUncaughtError } from "./errors-XIsvXeC-.js";
|
|
19
19
|
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-C7CauEK8.js";
|
|
@@ -31,10 +31,10 @@ import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i
|
|
|
31
31
|
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as allowListMatches$1, d as parseDiscordModalCustomId, dt as normalizeDiscordSlug, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordAllowListMatch, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordMemberAccessState, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordComponentEntry, mt as resolveDiscordGuildEntry, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordAllowList, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-CvhXrdgS.js";
|
|
32
32
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-BBh3Gsrx.js";
|
|
33
33
|
import { i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, r as sanitizeToolResultImages } from "./tool-images-SqqWIT22.js";
|
|
34
|
-
import { C as getGlobalHookRunner, S as parseInlineDirectives$1, _ as normalizeTargetForProvider, a as normalizeOutboundPayloadsForJson, b as MEDIA_TOKEN_RE, c as applyReplyThreading, d as isRenderablePayload, f as shouldSuppressMessagingToolReplies, g as normalizeChannelTargetInput, h as buildTargetResolverSignature, i as normalizeOutboundPayloads, l as filterMessagingToolDuplicates, m as resolveReplyToMode, o as normalizeReplyPayloadsForDelivery, p as createReplyToModeFilterForChannel, r as formatOutboundPayloadLog, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as filterMessagingToolMediaDuplicates, v as throwIfAborted, w as initializeGlobalHookRunner, x as splitMediaFromOutput, y as parseReplyDirectives } from "./deliver-
|
|
34
|
+
import { C as getGlobalHookRunner, S as parseInlineDirectives$1, _ as normalizeTargetForProvider, a as normalizeOutboundPayloadsForJson, b as MEDIA_TOKEN_RE, c as applyReplyThreading, d as isRenderablePayload, f as shouldSuppressMessagingToolReplies, g as normalizeChannelTargetInput, h as buildTargetResolverSignature, i as normalizeOutboundPayloads, l as filterMessagingToolDuplicates, m as resolveReplyToMode, o as normalizeReplyPayloadsForDelivery, p as createReplyToModeFilterForChannel, r as formatOutboundPayloadLog, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as filterMessagingToolMediaDuplicates, v as throwIfAborted, w as initializeGlobalHookRunner, x as splitMediaFromOutput, y as parseReplyDirectives } from "./deliver-dODxSv3b.js";
|
|
35
35
|
import { a as logMessageProcessed, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, i as logLaneEnqueue, l as logWebhookProcessed, m as isDiagnosticsEnabled, o as logMessageQueued, p as emitDiagnosticEvent, r as logLaneDequeue, s as logSessionStateChange, t as diag, u as logWebhookReceived } from "./diagnostic-rPhsBoZz.js";
|
|
36
36
|
import { r as getDiagnosticSessionState } from "./diagnostic-session-state-Zw87xFym.js";
|
|
37
|
-
import { S as ensureSymiModelsJson, _ as stripMinimaxToolCallXml, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripDowngradedToolCallText, h as promoteThinkingTagsToBlocks, i as coerceImageModelConfig, l as extractAssistantThinking, m as isAssistantMessage, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as stripThinkingTagsFromText, x as extractTextFromChatContent, y as resolveToolDisplay } from "./image-
|
|
37
|
+
import { S as ensureSymiModelsJson, _ as stripMinimaxToolCallXml, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripDowngradedToolCallText, h as promoteThinkingTagsToBlocks, i as coerceImageModelConfig, l as extractAssistantThinking, m as isAssistantMessage, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as stripThinkingTagsFromText, x as extractTextFromChatContent, y as resolveToolDisplay } from "./image-CXu8W39c.js";
|
|
38
38
|
import { a as isSilentReplyText, i as isSilentReplyPrefixText, n as SILENT_REPLY_TOKEN, r as SYMIPULSE_TOKEN, t as HEARTBEAT_TOKEN } from "./tokens-Bux9Y_xD.js";
|
|
39
39
|
import { $ as isVoiceCompatibleAudio, A as extractTelegramLocation, B as normalizeAllowFromWithStore$1, C as buildTelegramGroupFrom, D as buildTypingThreadParams, E as buildTelegramThreadParams, F as resolveTelegramMediaPlaceholder, G as formatLocationText, H as firstDefined$1, I as resolveTelegramReplyId, J as readChannelAllowFromStore, K as toLocationContext, L as resolveTelegramStreamMode, M as normalizeForwardedContext, N as resolveTelegramForumThreadId, O as describeReplyTarget, P as resolveTelegramGroupAllowFromContext, Q as listPairingChannels, R as resolveTelegramThreadSpec, S as buildSenderName, T as buildTelegramParentPeer, U as isSenderIdAllowed, V as resolveSenderAllowMatch, W as mergeAllowFromSources, X as upsertChannelPairingRequest, Y as removeChannelAllowFromStoreEntry, Z as getPairingAdapter, _ as resolveTelegramFetch, a as reactMessageTelegram, b as buildGroupLabel, c as sendStickerTelegram, d as wasSentByBot, et as parseTelegramTarget, f as isRecoverableTelegramNetworkError, g as wrapFileReferencesInHtml, h as renderTelegramHtmlText, i as editMessageTelegram, j as hasBotMention, k as expandTextLinks, m as markdownToTelegramHtml, n as createForumTopicTelegram, o as sendMessageTelegram, p as markdownToTelegramChunks, q as addChannelAllowFromStoreEntry, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, tt as resolveTelegramTargetChatType, u as resolveTelegramVoiceSend, v as splitTelegramCaption, w as buildTelegramGroupPeerId, x as buildSenderLabel, y as withTelegramApiErrorLogging, z as isSenderAllowed$1 } from "./send-DYj_o4_F.js";
|
|
40
40
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-Bv5YDJc8.js";
|
|
@@ -49,7 +49,7 @@ import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-DL3f
|
|
|
49
49
|
import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, o as fetchWithSsrFGuard, t as getAgentScopedMediaLocalRoots } from "./local-roots-DhZz0Ybs.js";
|
|
50
50
|
import { a as loadWebMedia, i as getDefaultLocalRoots } from "./ir-CTiz95Vb.js";
|
|
51
51
|
import { _ as resolveNativeCommandsEnabled, a as listChatCommandsForConfig, c as normalizeCommandBody, d as resolveCommandArgMenu, f as serializeCommandArgs, g as isRestartEnabled, h as isNativeCommandsExplicitlyDisabled, i as listChatCommands, l as parseCommandArgs, m as isCommandFlagEnabled, o as listNativeCommandSpecs, p as shouldHandleTextCommands, r as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as resolveCommandArgChoices, v as resolveNativeSkillsEnabled } from "./commands-registry-Bfc7Uz0o.js";
|
|
52
|
-
import { _ as CLI_OUTPUT_MAX_BUFFER, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as buildRandomTempFilePath, g as resolveMediaUnderstandingScope, h as normalizeMediaUnderstandingChatType, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveTimeoutMs$1, n as createMediaAttachmentCache, o as runCapability, p as resolveConcurrency, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as applyTemplate, y as registerUnhandledRejectionHandler } from "./runner-
|
|
52
|
+
import { _ as CLI_OUTPUT_MAX_BUFFER, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as buildRandomTempFilePath, g as resolveMediaUnderstandingScope, h as normalizeMediaUnderstandingChatType, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveTimeoutMs$1, n as createMediaAttachmentCache, o as runCapability, p as resolveConcurrency, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as applyTemplate, y as registerUnhandledRejectionHandler } from "./runner-WAG0M5s9.js";
|
|
53
53
|
import { c as getSkillsSnapshotVersion, d as createAsyncLock, f as readJsonFile, i as resolveSkillCommandInvocation, l as pruneExpiredPending, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, p as writeJsonAtomic, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as resolvePairingPaths } from "./skill-commands-DcVwOafC.js";
|
|
54
54
|
import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-DSDTl6Kj.js";
|
|
55
55
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-Bso4i15F.js";
|
|
@@ -80,7 +80,7 @@ import AjvPkg from "ajv";
|
|
|
80
80
|
import { CURRENT_SESSION_VERSION, DefaultResourceLoader, SessionManager, SettingsManager, codingTools, createAgentSession, createEditTool, createReadTool, createWriteTool, estimateTokens, generateSummary, readTool } from "@mariozechner/pi-coding-agent";
|
|
81
81
|
import { createServer } from "node:http";
|
|
82
82
|
import { ProxyAgent, fetch as fetch$1 } from "undici";
|
|
83
|
-
import WebSocket
|
|
83
|
+
import WebSocket, { WebSocket as WebSocket$1 } from "ws";
|
|
84
84
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
85
85
|
import { EdgeTTS } from "node-edge-tts";
|
|
86
86
|
import { createJiti } from "jiti";
|
|
@@ -8636,7 +8636,7 @@ var GatewayClient = class {
|
|
|
8636
8636
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
8637
8637
|
});
|
|
8638
8638
|
}
|
|
8639
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
8639
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
8640
8640
|
this.ws.on("open", () => {
|
|
8641
8641
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
8642
8642
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -8855,7 +8855,7 @@ var GatewayClient = class {
|
|
|
8855
8855
|
return null;
|
|
8856
8856
|
}
|
|
8857
8857
|
async request(method, params, opts) {
|
|
8858
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
8858
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
|
|
8859
8859
|
const id = randomUUID();
|
|
8860
8860
|
const frame = {
|
|
8861
8861
|
type: "req",
|
|
@@ -10121,7 +10121,7 @@ async function routeReply(params) {
|
|
|
10121
10121
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
10122
10122
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
10123
10123
|
try {
|
|
10124
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
10124
|
+
const { deliverOutboundPayloads } = await import("./deliver-dODxSv3b.js").then((n) => n.n);
|
|
10125
10125
|
return {
|
|
10126
10126
|
ok: true,
|
|
10127
10127
|
messageId: (await deliverOutboundPayloads({
|
|
@@ -43560,7 +43560,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
43560
43560
|
return;
|
|
43561
43561
|
}
|
|
43562
43562
|
try {
|
|
43563
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
43563
|
+
const { deliverOutboundPayloads } = await import("./deliver-dODxSv3b.js").then((n) => n.n);
|
|
43564
43564
|
await deliverOutboundPayloads({
|
|
43565
43565
|
cfg: params.cfg,
|
|
43566
43566
|
channel,
|
|
@@ -47006,7 +47006,7 @@ async function describeStickerImage(params) {
|
|
|
47006
47006
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
47007
47007
|
try {
|
|
47008
47008
|
const buffer = await fs$1.readFile(imagePath);
|
|
47009
|
-
const { describeImageWithModel } = await import("./image-
|
|
47009
|
+
const { describeImageWithModel } = await import("./image-CXu8W39c.js").then((n) => n.n);
|
|
47010
47010
|
return (await describeImageWithModel({
|
|
47011
47011
|
buffer,
|
|
47012
47012
|
fileName: "sticker.webp",
|
|
@@ -49668,7 +49668,7 @@ async function preflightDiscordMessage(params) {
|
|
|
49668
49668
|
let preflightTranscript;
|
|
49669
49669
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
49670
49670
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
49671
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
49671
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-DHTaS5U1.js");
|
|
49672
49672
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
49673
49673
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
49674
49674
|
ctx: {
|
|
@@ -53674,7 +53674,7 @@ function isVoiceChannelType(type) {
|
|
|
53674
53674
|
function createDefaultDeps() {
|
|
53675
53675
|
return {
|
|
53676
53676
|
sendMessageWhatsApp: async (...args) => {
|
|
53677
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
53677
|
+
const { sendMessageWhatsApp } = await import("./web-CQ7OlTVM.js");
|
|
53678
53678
|
return await sendMessageWhatsApp(...args);
|
|
53679
53679
|
},
|
|
53680
53680
|
sendMessageTelegram: async (...args) => {
|
|
@@ -56579,7 +56579,7 @@ function createDiscordGatewayPlugin(params) {
|
|
|
56579
56579
|
super(options);
|
|
56580
56580
|
}
|
|
56581
56581
|
createWebSocket(url) {
|
|
56582
|
-
return new WebSocket
|
|
56582
|
+
return new WebSocket(url, { agent });
|
|
56583
56583
|
}
|
|
56584
56584
|
}
|
|
56585
56585
|
return new ProxyGatewayPlugin();
|
|
@@ -66797,7 +66797,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, storeAllowFro
|
|
|
66797
66797
|
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
|
66798
66798
|
let preflightTranscript;
|
|
66799
66799
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
|
|
66800
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
66800
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-DHTaS5U1.js");
|
|
66801
66801
|
preflightTranscript = await transcribeFirstAudio({
|
|
66802
66802
|
ctx: {
|
|
66803
66803
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -68954,7 +68954,7 @@ function loadWebLoginQr() {
|
|
|
68954
68954
|
return webLoginQrPromise;
|
|
68955
68955
|
}
|
|
68956
68956
|
function loadWebChannel() {
|
|
68957
|
-
webChannelPromise ??= import("./web-
|
|
68957
|
+
webChannelPromise ??= import("./web-CQ7OlTVM.js");
|
|
68958
68958
|
return webChannelPromise;
|
|
68959
68959
|
}
|
|
68960
68960
|
function loadWhatsAppActions() {
|
|
@@ -75534,6 +75534,16 @@ function validateShellCommand(command) {
|
|
|
75534
75534
|
//#endregion
|
|
75535
75535
|
//#region src/agents/pi-tools.validate-wrapper.ts
|
|
75536
75536
|
const log = createSubsystemLogger("agents/tool-validate");
|
|
75537
|
+
/** Return a properly formatted tool result error that pi-agent-core can process. */
|
|
75538
|
+
function toolError(message) {
|
|
75539
|
+
return {
|
|
75540
|
+
content: [{
|
|
75541
|
+
type: "text",
|
|
75542
|
+
text: message
|
|
75543
|
+
}],
|
|
75544
|
+
details: {}
|
|
75545
|
+
};
|
|
75546
|
+
}
|
|
75537
75547
|
const EXEC_TOOL_NAMES = new Set(["exec", "bash"]);
|
|
75538
75548
|
const GEMMA_MODEL_ID = "gemma";
|
|
75539
75549
|
/**
|
|
@@ -75589,15 +75599,56 @@ function sanitizeParams(params) {
|
|
|
75589
75599
|
};
|
|
75590
75600
|
}
|
|
75591
75601
|
/**
|
|
75602
|
+
* Build a usage example string from a tool's JSON schema for helpful error messages.
|
|
75603
|
+
* Returns something like: web_search({ query: "<search terms>" })
|
|
75604
|
+
*/
|
|
75605
|
+
function buildToolUsageExample(toolName, schema) {
|
|
75606
|
+
const props = schema?.properties;
|
|
75607
|
+
if (!props || typeof props !== "object") return `${toolName}({ ... })`;
|
|
75608
|
+
return `${toolName}({ ${Object.entries(props).slice(0, 4).map(([key, def]) => {
|
|
75609
|
+
const typeDef = def;
|
|
75610
|
+
if (Array.isArray(typeDef?.enum)) return `${key}: "${typeDef.enum[0]}"`;
|
|
75611
|
+
if (typeDef?.type === "string") return `${key}: "<${typeof typeDef.description === "string" ? typeDef.description.slice(0, 30) : key}>"`;
|
|
75612
|
+
return `${key}: ...`;
|
|
75613
|
+
}).join(", ")} })`;
|
|
75614
|
+
}
|
|
75615
|
+
/**
|
|
75616
|
+
* Extract required fields from a tool's JSON schema.
|
|
75617
|
+
*/
|
|
75618
|
+
function getRequiredFields(schema) {
|
|
75619
|
+
const required = schema?.required;
|
|
75620
|
+
return Array.isArray(required) ? required.filter((r) => typeof r === "string") : [];
|
|
75621
|
+
}
|
|
75622
|
+
/**
|
|
75623
|
+
* Create a relaxed copy of a tool schema with required fields removed.
|
|
75624
|
+
* This allows args with missing fields to pass pi-agent-core's schema
|
|
75625
|
+
* validation, reaching our execute() wrapper where we can return a
|
|
75626
|
+
* helpful error message with a usage example.
|
|
75627
|
+
*/
|
|
75628
|
+
function relaxSchema(schema) {
|
|
75629
|
+
if (!schema || typeof schema !== "object") return schema;
|
|
75630
|
+
const copy = { ...schema };
|
|
75631
|
+
delete copy.required;
|
|
75632
|
+
return copy;
|
|
75633
|
+
}
|
|
75634
|
+
/**
|
|
75592
75635
|
* Wrap a single tool with universal argument sanitization.
|
|
75593
75636
|
*/
|
|
75594
75637
|
function wrapToolWithArgValidation(tool) {
|
|
75595
75638
|
const toolName = (tool.name ?? "").toLowerCase().trim();
|
|
75596
75639
|
const isExecTool = EXEC_TOOL_NAMES.has(toolName);
|
|
75640
|
+
const originalRequired = getRequiredFields(tool.parameters);
|
|
75641
|
+
const usageExample = buildToolUsageExample(toolName, tool.parameters);
|
|
75597
75642
|
const originalExecute = tool.execute;
|
|
75598
75643
|
return {
|
|
75599
75644
|
...tool,
|
|
75645
|
+
parameters: relaxSchema(tool.parameters),
|
|
75600
75646
|
execute(toolCallId, params, ...rest) {
|
|
75647
|
+
const missingFields = originalRequired.filter((field) => params[field] === void 0 || params[field] === null);
|
|
75648
|
+
if (missingFields.length > 0) {
|
|
75649
|
+
log.warn(`[validate] ${toolName} missing required fields: ${missingFields.join(", ")}`);
|
|
75650
|
+
return Promise.resolve(toolError(`Error: Missing required argument${missingFields.length > 1 ? "s" : ""}: ${missingFields.join(", ")}. Please try again with all required arguments.\nExample: ${usageExample}`));
|
|
75651
|
+
}
|
|
75601
75652
|
const { cleaned, changed } = sanitizeParams(params);
|
|
75602
75653
|
if (changed) log.debug(`[validate] sanitized args for ${toolName}: ${Object.keys(params).filter((k) => cleaned[k] !== params[k]).join(",")}`);
|
|
75603
75654
|
const effectiveParams = changed ? cleaned : params;
|
|
@@ -75610,7 +75661,7 @@ function wrapToolWithArgValidation(tool) {
|
|
|
75610
75661
|
const result = validateShellCommand(command);
|
|
75611
75662
|
if (!result.valid) {
|
|
75612
75663
|
log.warn(`[validate] exec command rejected: reason=${result.reason} raw=${command.slice(0, 100)}`);
|
|
75613
|
-
return Promise.resolve(
|
|
75664
|
+
return Promise.resolve(toolError(`Error: ${result.reason}. The command appears to contain model control tokens. Please provide a clean shell command without any <|, |>, or XML-like tags. Only valid shell syntax is accepted.`));
|
|
75614
75665
|
}
|
|
75615
75666
|
if (result.cleaned !== command) {
|
|
75616
75667
|
log.debug(`[validate] exec command cleaned: raw=${command.slice(0, 80)} → cleaned=${result.cleaned.slice(0, 80)}`);
|
|
@@ -16,7 +16,7 @@ import "./client-DMBZpU6X.js";
|
|
|
16
16
|
import "./call-BcE47FtD.js";
|
|
17
17
|
import "./message-channel-C9dERklz.js";
|
|
18
18
|
import "./pairing-token-Byh6drgn.js";
|
|
19
|
-
import { Ct as trimLogTail } from "./subagent-registry-
|
|
19
|
+
import { Ct as trimLogTail } from "./subagent-registry-CzBf7A_o.js";
|
|
20
20
|
import "./sessions-CJXnZVjR.js";
|
|
21
21
|
import "./tokens-Csntmwwn.js";
|
|
22
22
|
import "./plugins-CwSlLxM8.js";
|
|
@@ -111,10 +111,10 @@ import "./npm-registry-spec-DkaZNHAW.js";
|
|
|
111
111
|
import "./skill-scanner-BGWOBqLY.js";
|
|
112
112
|
import "./installs-CgQpVncj.js";
|
|
113
113
|
import "./channels-status-issues-c7qZbYG5.js";
|
|
114
|
-
import "./register.subclis-
|
|
115
|
-
import "./command-registry-
|
|
114
|
+
import "./register.subclis-B0T9tMmL.js";
|
|
115
|
+
import "./command-registry-CojVJ8At.js";
|
|
116
116
|
import "./program-context-CqzR_m-7.js";
|
|
117
|
-
import { r as installCompletion } from "./completion-cli-
|
|
117
|
+
import { r as installCompletion } from "./completion-cli-D3N7Bpqe.js";
|
|
118
118
|
import "./daemon-runtime-CfRwa6qh.js";
|
|
119
119
|
import { r as parseSemver } from "./runtime-guard-D7waq_Ho.js";
|
|
120
120
|
import "./systemd-DlMdyFDY.js";
|
|
@@ -124,19 +124,19 @@ import "./systemd-hints-sQipWGd1.js";
|
|
|
124
124
|
import { i as runDaemonInstall, r as runDaemonRestart } from "./daemon-cli-wWnBIQtk.js";
|
|
125
125
|
import "./diagnostics-CS1ov_hH.js";
|
|
126
126
|
import { t as renderTable } from "./table-D01d2GuY.js";
|
|
127
|
-
import "./health-
|
|
127
|
+
import "./health-CqQIZeIm.js";
|
|
128
128
|
import "./control-ui-assets-BseSWee1.js";
|
|
129
129
|
import { a as resolveNpmChannelTag, c as DEFAULT_PACKAGE_CHANNEL, d as formatUpdateChannelLabel, g as resolveUpdateChannelDisplay, h as resolveEffectiveUpdateChannel, m as normalizeUpdateChannel, n as compareSemverStrings, r as fetchNpmTagVersion, s as DEFAULT_GIT_CHANNEL, t as checkUpdateStatus, u as channelToNpmTag } from "./update-check-ZdimP1aU.js";
|
|
130
130
|
import "./dm-policy-shared-DJ-61hCT.js";
|
|
131
131
|
import { i as resolveUpdateAvailability, n as formatUpdateOneLiner, t as formatUpdateAvailableHint } from "./status.update-DbmZz0Aq.js";
|
|
132
|
-
import { a as globalInstallArgs, c as readPackageVersion, i as detectGlobalInstallManagerForRoot, n as cleanupGlobalRenameDirs, o as resolveGlobalPackageRoot, r as detectGlobalInstallManagerByPresence, s as readPackageName, t as runGatewayUpdate } from "./update-runner-
|
|
132
|
+
import { a as globalInstallArgs, c as readPackageVersion, i as detectGlobalInstallManagerForRoot, n as cleanupGlobalRenameDirs, o as resolveGlobalPackageRoot, r as detectGlobalInstallManagerByPresence, s as readPackageName, t as runGatewayUpdate } from "./update-runner-CEjq0Uxs.js";
|
|
133
133
|
import "./logging-BGewRZy0.js";
|
|
134
134
|
import { n as updateNpmInstalledPlugins, t as syncPluginsForUpdateChannel } from "./update-DEMKx4eC.js";
|
|
135
135
|
import "./doctor-config-flow-CA3eiKhd.js";
|
|
136
136
|
import "./systemd-linger-DA_LW52P.js";
|
|
137
137
|
import "./health-format-CzgUHmmX.js";
|
|
138
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
139
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
138
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-We9EmwdJ.js";
|
|
139
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-F_AI3hun.js";
|
|
140
140
|
import { spawn, spawnSync } from "node:child_process";
|
|
141
141
|
import os from "node:os";
|
|
142
142
|
import path from "node:path";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as resolveStateDir } from "./paths-Cqn-zk3M.js";
|
|
2
2
|
import { B as theme, h as pathExists } from "./utils-B-0b9bGM.js";
|
|
3
3
|
import "./thinking-EAliFiVK.js";
|
|
4
|
-
import { V as trimLogTail } from "./reply-
|
|
4
|
+
import { V as trimLogTail } from "./reply-DPaH7oQp.js";
|
|
5
5
|
import { t as resolveSymiPackageRoot } from "./symi-root-CrGJbkzf.js";
|
|
6
6
|
import "./registry-Cja8eT7G.js";
|
|
7
7
|
import { f as defaultRuntime } from "./subsystem-D9vIQve0.js";
|
|
@@ -16,19 +16,19 @@ import "./message-channel-aT-I_DTX.js";
|
|
|
16
16
|
import "./send-CZr1hVHY.js";
|
|
17
17
|
import { l as writeConfigFile, o as readConfigFileSnapshot } from "./config-CHwyw6l5.js";
|
|
18
18
|
import "./manifest-registry-C4BxOMWX.js";
|
|
19
|
-
import "./runner-
|
|
20
|
-
import "./image-
|
|
19
|
+
import "./runner-CUglpiFP.js";
|
|
20
|
+
import "./image-D9uvDTrc.js";
|
|
21
21
|
import "./models-config-qyOXrOli.js";
|
|
22
22
|
import "./pi-model-discovery-4uUnLc3n.js";
|
|
23
|
-
import "./pi-embedded-helpers-
|
|
24
|
-
import "./sandbox-
|
|
25
|
-
import "./chrome-
|
|
23
|
+
import "./pi-embedded-helpers-CNPyv_ax.js";
|
|
24
|
+
import "./sandbox-C-T6hOMv.js";
|
|
25
|
+
import "./chrome-DtPkPq9T.js";
|
|
26
26
|
import "./tailscale-D5dKabOc.js";
|
|
27
27
|
import "./auth-B741uFtk.js";
|
|
28
|
-
import "./server-context-
|
|
28
|
+
import "./server-context-CEpFjqSk.js";
|
|
29
29
|
import "./frontmatter-DWQhtOo7.js";
|
|
30
30
|
import "./skills-6jdJQ5ZL.js";
|
|
31
|
-
import "./routes-
|
|
31
|
+
import "./routes-Ba9CUQ8M.js";
|
|
32
32
|
import "./redact-f-Q-hFt_.js";
|
|
33
33
|
import "./errors-BF3TeRH2.js";
|
|
34
34
|
import "./fs-safe-CUjO1ca2.js";
|
|
@@ -54,10 +54,10 @@ import "./fetch-guard-DOPkVbh3.js";
|
|
|
54
54
|
import "./api-key-rotation-CzuPlV2t.js";
|
|
55
55
|
import "./local-roots-aAFLQGkY.js";
|
|
56
56
|
import "./sqlite-Dx3J_aSE.js";
|
|
57
|
-
import "./model-catalog-
|
|
57
|
+
import "./model-catalog-DvBJ8pMD.js";
|
|
58
58
|
import "./tokens-BuceUQDl.js";
|
|
59
|
-
import "./with-timeout-
|
|
60
|
-
import "./deliver-
|
|
59
|
+
import "./with-timeout-gmK6RciS.js";
|
|
60
|
+
import "./deliver-CWR_98sK.js";
|
|
61
61
|
import "./diagnostic-DjBRPfu9.js";
|
|
62
62
|
import "./diagnostic-session-state-CUslJyKP.js";
|
|
63
63
|
import "./send-Cutb0ZDY.js";
|
|
@@ -73,8 +73,8 @@ import "./ir-DZam9q5M.js";
|
|
|
73
73
|
import "./render-CXDO_kgw.js";
|
|
74
74
|
import "./commands-BNLCWX6e.js";
|
|
75
75
|
import "./commands-registry-BT0-zzs3.js";
|
|
76
|
-
import "./client-
|
|
77
|
-
import "./call-
|
|
76
|
+
import "./client-CQSyCS4M.js";
|
|
77
|
+
import "./call-CJaS1iRF.js";
|
|
78
78
|
import "./pairing-token-CX3NN_qj.js";
|
|
79
79
|
import "./channel-activity-BOiuJS3t.js";
|
|
80
80
|
import "./fetch-DTNGXEzX.js";
|
|
@@ -95,18 +95,18 @@ import "./session-cost-usage-UxUgrslM.js";
|
|
|
95
95
|
import "./outbound-attachment-mQQiYZ3C.js";
|
|
96
96
|
import "./delivery-queue-CxuV9EeG.js";
|
|
97
97
|
import "./send-DWYkPSUs.js";
|
|
98
|
-
import "./onboard-helpers-
|
|
98
|
+
import "./onboard-helpers-ZmZYzlq3.js";
|
|
99
99
|
import { n as stylePromptMessage } from "./prompt-style-8JqOYj0q.js";
|
|
100
100
|
import "./pairing-labels-2S6x2UoV.js";
|
|
101
101
|
import "./exec-approvals-Kn31mBcW.js";
|
|
102
102
|
import "./nodes-screen-VBGXKdLk.js";
|
|
103
|
-
import "./pi-tools.policy-
|
|
104
|
-
import "./control-service-
|
|
103
|
+
import "./pi-tools.policy-CIDBbw6x.js";
|
|
104
|
+
import "./control-service-Bz7rxLWq.js";
|
|
105
105
|
import "./stagger-BUClb97_.js";
|
|
106
106
|
import { c as resolveGatewayLaunchAgentLabel, d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName } from "./constants-C8_BLnaW.js";
|
|
107
107
|
import "./channel-selection-DuWs0Aak.js";
|
|
108
108
|
import { r as parseSemver } from "./runtime-guard-B37eizu-.js";
|
|
109
|
-
import "./program-context-
|
|
109
|
+
import "./program-context-gkaZBN4U.js";
|
|
110
110
|
import "./catalog-RiADx7MA.js";
|
|
111
111
|
import "./skills-status-CURJKnyY.js";
|
|
112
112
|
import { n as inheritOptionFromParent } from "./command-options-BtDai3oC.js";
|
|
@@ -117,28 +117,28 @@ import "./npm-registry-spec-C2JDdSZS.js";
|
|
|
117
117
|
import "./skill-scanner-CLs8u6vQ.js";
|
|
118
118
|
import "./installs-C1Cebk97.js";
|
|
119
119
|
import "./channels-status-issues-B_kBkl_u.js";
|
|
120
|
-
import { r as installCompletion } from "./completion-cli-
|
|
120
|
+
import { r as installCompletion } from "./completion-cli-rD9RSIqQ.js";
|
|
121
121
|
import "./daemon-runtime-2mwX-jqj.js";
|
|
122
122
|
import "./systemd-riq8uNJQ.js";
|
|
123
123
|
import { t as resolveGatewayService } from "./service-Cl74hx8J.js";
|
|
124
124
|
import "./lifecycle-core-D6LYXpFj.js";
|
|
125
125
|
import "./systemd-hints-BR6gChwm.js";
|
|
126
|
-
import { i as runDaemonInstall, r as runDaemonRestart } from "./daemon-cli-
|
|
126
|
+
import { i as runDaemonInstall, r as runDaemonRestart } from "./daemon-cli-DscwlsKW.js";
|
|
127
127
|
import "./diagnostics-BAMlsVVX.js";
|
|
128
128
|
import { t as renderTable } from "./table-BTgkRafz.js";
|
|
129
|
-
import "./health-
|
|
129
|
+
import "./health-DbJOe12X.js";
|
|
130
130
|
import "./control-ui-assets-Z947tKLt.js";
|
|
131
131
|
import { a as resolveNpmChannelTag, c as DEFAULT_PACKAGE_CHANNEL, d as formatUpdateChannelLabel, g as resolveUpdateChannelDisplay, h as resolveEffectiveUpdateChannel, m as normalizeUpdateChannel, n as compareSemverStrings, r as fetchNpmTagVersion, s as DEFAULT_GIT_CHANNEL, t as checkUpdateStatus, u as channelToNpmTag } from "./update-check-CtckACbb.js";
|
|
132
132
|
import "./dm-policy-shared-Bh3TbexU.js";
|
|
133
133
|
import { i as resolveUpdateAvailability, n as formatUpdateOneLiner, t as formatUpdateAvailableHint } from "./status.update-DtwCUTf-.js";
|
|
134
|
-
import { a as globalInstallArgs, c as readPackageVersion, i as detectGlobalInstallManagerForRoot, n as cleanupGlobalRenameDirs, o as resolveGlobalPackageRoot, r as detectGlobalInstallManagerByPresence, s as readPackageName, t as runGatewayUpdate } from "./update-runner-
|
|
134
|
+
import { a as globalInstallArgs, c as readPackageVersion, i as detectGlobalInstallManagerForRoot, n as cleanupGlobalRenameDirs, o as resolveGlobalPackageRoot, r as detectGlobalInstallManagerByPresence, s as readPackageName, t as runGatewayUpdate } from "./update-runner-DLCpL3Pj.js";
|
|
135
135
|
import "./logging-BzzwiKjv.js";
|
|
136
136
|
import { n as updateNpmInstalledPlugins, t as syncPluginsForUpdateChannel } from "./update-rw7wJwHd.js";
|
|
137
137
|
import "./doctor-config-flow-QnaBd8kL.js";
|
|
138
138
|
import "./systemd-linger-aQ75ZlXY.js";
|
|
139
139
|
import "./health-format-DSwnXZPU.js";
|
|
140
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
141
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
140
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-DNaDChFa.js";
|
|
141
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-vTHV1Opp.js";
|
|
142
142
|
import os from "node:os";
|
|
143
143
|
import path from "node:path";
|
|
144
144
|
import fs from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { nt as pathExists } from "./entry.js";
|
|
2
2
|
import { t as runCommandWithTimeout } from "./exec-CBKBIMpA.js";
|
|
3
|
-
import { Ct as trimLogTail } from "./subagent-registry-
|
|
3
|
+
import { Ct as trimLogTail } from "./subagent-registry-CzBf7A_o.js";
|
|
4
4
|
import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-BseSWee1.js";
|
|
5
5
|
import { c as DEFAULT_PACKAGE_CHANNEL, f as isBetaTag, l as DEV_BRANCH, n as compareSemverStrings, o as detectPackageManager$1, p as isStableTag, u as channelToNpmTag } from "./update-check-ZdimP1aU.js";
|
|
6
6
|
import os from "node:os";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as pathExists } from "./utils-B-0b9bGM.js";
|
|
2
|
-
import { V as trimLogTail } from "./reply-
|
|
2
|
+
import { V as trimLogTail } from "./reply-DPaH7oQp.js";
|
|
3
3
|
import { t as runCommandWithTimeout } from "./exec-CWkblSrI.js";
|
|
4
4
|
import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-Z947tKLt.js";
|
|
5
5
|
import { c as DEFAULT_PACKAGE_CHANNEL, f as isBetaTag, l as DEV_BRANCH, n as compareSemverStrings, o as detectPackageManager$1, p as isStableTag, u as channelToNpmTag } from "./update-check-CtckACbb.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./paths-Cqn-zk3M.js";
|
|
2
2
|
import "./utils-B-0b9bGM.js";
|
|
3
3
|
import "./thinking-EAliFiVK.js";
|
|
4
|
-
import "./reply-
|
|
4
|
+
import "./reply-DPaH7oQp.js";
|
|
5
5
|
import "./registry-Cja8eT7G.js";
|
|
6
6
|
import "./subsystem-D9vIQve0.js";
|
|
7
7
|
import "./exec-CWkblSrI.js";
|
|
@@ -14,19 +14,19 @@ import "./message-channel-aT-I_DTX.js";
|
|
|
14
14
|
import "./send-CZr1hVHY.js";
|
|
15
15
|
import "./config-CHwyw6l5.js";
|
|
16
16
|
import "./manifest-registry-C4BxOMWX.js";
|
|
17
|
-
import "./runner-
|
|
18
|
-
import "./image-
|
|
17
|
+
import "./runner-CUglpiFP.js";
|
|
18
|
+
import "./image-D9uvDTrc.js";
|
|
19
19
|
import "./models-config-qyOXrOli.js";
|
|
20
20
|
import "./pi-model-discovery-4uUnLc3n.js";
|
|
21
|
-
import "./pi-embedded-helpers-
|
|
22
|
-
import "./sandbox-
|
|
23
|
-
import "./chrome-
|
|
21
|
+
import "./pi-embedded-helpers-CNPyv_ax.js";
|
|
22
|
+
import "./sandbox-C-T6hOMv.js";
|
|
23
|
+
import "./chrome-DtPkPq9T.js";
|
|
24
24
|
import "./tailscale-D5dKabOc.js";
|
|
25
25
|
import "./auth-B741uFtk.js";
|
|
26
|
-
import "./server-context-
|
|
26
|
+
import "./server-context-CEpFjqSk.js";
|
|
27
27
|
import "./frontmatter-DWQhtOo7.js";
|
|
28
28
|
import "./skills-6jdJQ5ZL.js";
|
|
29
|
-
import "./routes-
|
|
29
|
+
import "./routes-Ba9CUQ8M.js";
|
|
30
30
|
import "./redact-f-Q-hFt_.js";
|
|
31
31
|
import "./errors-BF3TeRH2.js";
|
|
32
32
|
import "./fs-safe-CUjO1ca2.js";
|
|
@@ -52,10 +52,10 @@ import "./fetch-guard-DOPkVbh3.js";
|
|
|
52
52
|
import "./api-key-rotation-CzuPlV2t.js";
|
|
53
53
|
import "./local-roots-aAFLQGkY.js";
|
|
54
54
|
import "./sqlite-Dx3J_aSE.js";
|
|
55
|
-
import "./model-catalog-
|
|
55
|
+
import "./model-catalog-DvBJ8pMD.js";
|
|
56
56
|
import "./tokens-BuceUQDl.js";
|
|
57
|
-
import "./with-timeout-
|
|
58
|
-
import "./deliver-
|
|
57
|
+
import "./with-timeout-gmK6RciS.js";
|
|
58
|
+
import "./deliver-CWR_98sK.js";
|
|
59
59
|
import "./diagnostic-DjBRPfu9.js";
|
|
60
60
|
import "./diagnostic-session-state-CUslJyKP.js";
|
|
61
61
|
import "./send-Cutb0ZDY.js";
|
|
@@ -71,8 +71,8 @@ import "./ir-DZam9q5M.js";
|
|
|
71
71
|
import "./render-CXDO_kgw.js";
|
|
72
72
|
import "./commands-BNLCWX6e.js";
|
|
73
73
|
import "./commands-registry-BT0-zzs3.js";
|
|
74
|
-
import "./client-
|
|
75
|
-
import "./call-
|
|
74
|
+
import "./client-CQSyCS4M.js";
|
|
75
|
+
import "./call-CJaS1iRF.js";
|
|
76
76
|
import "./pairing-token-CX3NN_qj.js";
|
|
77
77
|
import "./channel-activity-BOiuJS3t.js";
|
|
78
78
|
import "./fetch-DTNGXEzX.js";
|
|
@@ -92,16 +92,16 @@ import "./session-cost-usage-UxUgrslM.js";
|
|
|
92
92
|
import "./outbound-attachment-mQQiYZ3C.js";
|
|
93
93
|
import "./delivery-queue-CxuV9EeG.js";
|
|
94
94
|
import "./send-DWYkPSUs.js";
|
|
95
|
-
import "./onboard-helpers-
|
|
95
|
+
import "./onboard-helpers-ZmZYzlq3.js";
|
|
96
96
|
import "./prompt-style-8JqOYj0q.js";
|
|
97
97
|
import "./pairing-labels-2S6x2UoV.js";
|
|
98
98
|
import "./exec-approvals-Kn31mBcW.js";
|
|
99
99
|
import "./nodes-screen-VBGXKdLk.js";
|
|
100
|
-
import "./pi-tools.policy-
|
|
101
|
-
import "./control-service-
|
|
100
|
+
import "./pi-tools.policy-CIDBbw6x.js";
|
|
101
|
+
import "./control-service-Bz7rxLWq.js";
|
|
102
102
|
import "./stagger-BUClb97_.js";
|
|
103
103
|
import "./channel-selection-DuWs0Aak.js";
|
|
104
|
-
import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-
|
|
104
|
+
import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-BEFE-0qE.js";
|
|
105
105
|
import { n as sendMessageWhatsApp } from "./outbound-DB5Zus0-.js";
|
|
106
106
|
import { i as waitForWaConnection, t as createWaSocket } from "./session-DIBTkyvE.js";
|
|
107
107
|
import { t as loginWeb } from "./login-dIlDkG4X.js";
|
|
@@ -15,7 +15,7 @@ import "./client-DMBZpU6X.js";
|
|
|
15
15
|
import "./call-BcE47FtD.js";
|
|
16
16
|
import "./message-channel-C9dERklz.js";
|
|
17
17
|
import "./pairing-token-Byh6drgn.js";
|
|
18
|
-
import { Bn as resolveEnvelopeFormatOptions, Cn as enqueueSystemEvent, F as buildHistoryContextFromEntries, Hn as hasControlCommand, I as recordPendingHistoryEntryIfEnabled, Kn as buildMentionRegexes, L as shouldAckReactionForWhatsApp, Ln as createInboundDebouncer, M as buildPairingReply, N as resolveMentionGating, P as DEFAULT_GROUP_HISTORY_LIMIT, R as dispatchReplyWithBufferedBlockDispatcher, Rn as resolveInboundDebounceMs, U as createDedupeCache, Un as shouldComputeCommandAuthorized, W as getReplyFromConfig, b as sleepWithAbort, nn as parseActivationCommand, qn as normalizeMentionText, tn as normalizeGroupActivation, y as computeBackoff, zn as formatInboundEnvelope } from "./subagent-registry-
|
|
18
|
+
import { Bn as resolveEnvelopeFormatOptions, Cn as enqueueSystemEvent, F as buildHistoryContextFromEntries, Hn as hasControlCommand, I as recordPendingHistoryEntryIfEnabled, Kn as buildMentionRegexes, L as shouldAckReactionForWhatsApp, Ln as createInboundDebouncer, M as buildPairingReply, N as resolveMentionGating, P as DEFAULT_GROUP_HISTORY_LIMIT, R as dispatchReplyWithBufferedBlockDispatcher, Rn as resolveInboundDebounceMs, U as createDedupeCache, Un as shouldComputeCommandAuthorized, W as getReplyFromConfig, b as sleepWithAbort, nn as parseActivationCommand, qn as normalizeMentionText, tn as normalizeGroupActivation, y as computeBackoff, zn as formatInboundEnvelope } from "./subagent-registry-CzBf7A_o.js";
|
|
19
19
|
import { B as resolveGroupSessionKey, c as recordSessionMetaFromInbound, o as loadSessionStore, s as readSessionUpdatedAt, u as updateLastRoute } from "./sessions-CJXnZVjR.js";
|
|
20
20
|
import "./tokens-Csntmwwn.js";
|
|
21
21
|
import "./plugins-CwSlLxM8.js";
|
|
@@ -4,16 +4,16 @@ import { A as isSelfChatMode, B as sleep, C as clamp, F as resolveJidToE164, H a
|
|
|
4
4
|
import "./agent-scope-CpEJ0B88.js";
|
|
5
5
|
import { r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-BjyjJF-d.js";
|
|
6
6
|
import "./workspace-DscDraUb.js";
|
|
7
|
-
import { C as resolveEnvelopeFormatOptions, D as normalizeMentionText, E as buildMentionRegexes, S as formatInboundEnvelope, T as shouldComputeCommandAuthorized, _ as parseActivationCommand, b as createInboundDebouncer, c as DEFAULT_GROUP_HISTORY_LIMIT, d as shouldAckReactionForWhatsApp, f as dispatchReplyWithBufferedBlockDispatcher, g as normalizeGroupActivation, h as getReplyFromConfig, l as buildHistoryContextFromEntries, m as createDedupeCache, n as computeBackoff, o as buildPairingReply, r as sleepWithAbort, s as resolveMentionGating, u as recordPendingHistoryEntryIfEnabled, v as formatDurationPrecise, w as hasControlCommand, x as resolveInboundDebounceMs, y as enqueueSystemEvent } from "./unified-runner-
|
|
7
|
+
import { C as resolveEnvelopeFormatOptions, D as normalizeMentionText, E as buildMentionRegexes, S as formatInboundEnvelope, T as shouldComputeCommandAuthorized, _ as parseActivationCommand, b as createInboundDebouncer, c as DEFAULT_GROUP_HISTORY_LIMIT, d as shouldAckReactionForWhatsApp, f as dispatchReplyWithBufferedBlockDispatcher, g as normalizeGroupActivation, h as getReplyFromConfig, l as buildHistoryContextFromEntries, m as createDedupeCache, n as computeBackoff, o as buildPairingReply, r as sleepWithAbort, s as resolveMentionGating, u as recordPendingHistoryEntryIfEnabled, v as formatDurationPrecise, w as hasControlCommand, x as resolveInboundDebounceMs, y as enqueueSystemEvent } from "./unified-runner-CnKhgGr-.js";
|
|
8
8
|
import { s as resolveStorePath } from "./paths-CbQV9WEg.js";
|
|
9
9
|
import "./auth-profiles-DdK1Hxaa.js";
|
|
10
10
|
import { n as formatCliCommand } from "./env-BDXYbTKj.js";
|
|
11
11
|
import "./github-copilot-token-cCYzSU9h.js";
|
|
12
12
|
import "./boolean-CE7i9tBR.js";
|
|
13
|
-
import { Ct as resolveGroupSessionKey, G as updateLastRoute, H as loadSessionStore, U as readSessionUpdatedAt, W as recordSessionMetaFromInbound } from "./pi-embedded-helpers-
|
|
13
|
+
import { Ct as resolveGroupSessionKey, G as updateLastRoute, H as loadSessionStore, U as readSessionUpdatedAt, W as recordSessionMetaFromInbound } from "./pi-embedded-helpers-pubKo8HQ.js";
|
|
14
14
|
import { n as loadConfig } from "./config-5SdHIcHU.js";
|
|
15
15
|
import "./manifest-registry-yb7sAlu4.js";
|
|
16
|
-
import "./chrome-
|
|
16
|
+
import "./chrome-DYZwl5Gv.js";
|
|
17
17
|
import "./frontmatter-CTR5f_Ez.js";
|
|
18
18
|
import "./skills-Bs0AW1g3.js";
|
|
19
19
|
import "./redact-BDMXB06K.js";
|
|
@@ -31,10 +31,10 @@ import "./bindings-BsHoBLIE.js";
|
|
|
31
31
|
import "./send-CVMyYPQw.js";
|
|
32
32
|
import "./send-CvhXrdgS.js";
|
|
33
33
|
import "./tool-images-SqqWIT22.js";
|
|
34
|
-
import "./deliver-
|
|
34
|
+
import "./deliver-dODxSv3b.js";
|
|
35
35
|
import "./diagnostic-rPhsBoZz.js";
|
|
36
36
|
import "./diagnostic-session-state-Zw87xFym.js";
|
|
37
|
-
import "./image-
|
|
37
|
+
import "./image-CXu8W39c.js";
|
|
38
38
|
import "./tokens-Bux9Y_xD.js";
|
|
39
39
|
import { G as formatLocationText, J as readChannelAllowFromStore, K as toLocationContext, X as upsertChannelPairingRequest } from "./send-DYj_o4_F.js";
|
|
40
40
|
import "./pi-model-discovery-Bv5YDJc8.js";
|
|
@@ -50,7 +50,7 @@ import { t as getAgentScopedMediaLocalRoots } from "./local-roots-DhZz0Ybs.js";
|
|
|
50
50
|
import { a as loadWebMedia } from "./ir-CTiz95Vb.js";
|
|
51
51
|
import "./render-CDCvpfhh.js";
|
|
52
52
|
import "./commands-registry-Bfc7Uz0o.js";
|
|
53
|
-
import { y as registerUnhandledRejectionHandler } from "./runner-
|
|
53
|
+
import { y as registerUnhandledRejectionHandler } from "./runner-WAG0M5s9.js";
|
|
54
54
|
import "./skill-commands-DcVwOafC.js";
|
|
55
55
|
import { t as finalizeInboundContext } from "./inbound-context-DSDTl6Kj.js";
|
|
56
56
|
import "./fetch-Bso4i15F.js";
|
|
@@ -8,13 +8,13 @@ import { c as resolveIdentityNamePrefix, l as resolveMessagePrefix, t as createR
|
|
|
8
8
|
import "./github-copilot-token-BbsJ0Qbo.js";
|
|
9
9
|
import { r as formatCliCommand } from "./env-CQ_DQOwT.js";
|
|
10
10
|
import "./tokens-Cn6drXx2.js";
|
|
11
|
-
import { C as shouldComputeCommandAuthorized, S as hasControlCommand, T as normalizeMentionText, _ as enqueueSystemEvent, a as DEFAULT_GROUP_HISTORY_LIMIT, b as formatInboundEnvelope, c as shouldAckReactionForWhatsApp, d as createDedupeCache, f as getReplyFromConfig, g as formatDurationPrecise, h as parseActivationCommand, i as resolveMentionGating, l as dispatchReplyWithBufferedBlockDispatcher, m as normalizeGroupActivation, n as sleepWithAbort, o as buildHistoryContextFromEntries, r as buildPairingReply, s as recordPendingHistoryEntryIfEnabled, t as computeBackoff, v as createInboundDebouncer, w as buildMentionRegexes, x as resolveEnvelopeFormatOptions, y as resolveInboundDebounceMs } from "./pi-embedded-
|
|
11
|
+
import { C as shouldComputeCommandAuthorized, S as hasControlCommand, T as normalizeMentionText, _ as enqueueSystemEvent, a as DEFAULT_GROUP_HISTORY_LIMIT, b as formatInboundEnvelope, c as shouldAckReactionForWhatsApp, d as createDedupeCache, f as getReplyFromConfig, g as formatDurationPrecise, h as parseActivationCommand, i as resolveMentionGating, l as dispatchReplyWithBufferedBlockDispatcher, m as normalizeGroupActivation, n as sleepWithAbort, o as buildHistoryContextFromEntries, r as buildPairingReply, s as recordPendingHistoryEntryIfEnabled, t as computeBackoff, v as createInboundDebouncer, w as buildMentionRegexes, x as resolveEnvelopeFormatOptions, y as resolveInboundDebounceMs } from "./pi-embedded-Bp_9g-wj.js";
|
|
12
12
|
import "./plugins-71oIavrF.js";
|
|
13
13
|
import { i as logWebSelfId, l as readWebSelfId, n as WA_WEB_AUTH_DIR, p as webAuthExists, r as getWebAuthAgeMs, s as pickWebChannel, t as resolveWhatsAppAccount } from "./accounts-DDEyGwby.js";
|
|
14
14
|
import "./bindings-DYVakimr.js";
|
|
15
15
|
import "./send-D-hWrHoH.js";
|
|
16
16
|
import "./send-C1IYd3g7.js";
|
|
17
|
-
import "./deliver-
|
|
17
|
+
import "./deliver-C-37cZUe.js";
|
|
18
18
|
import "./diagnostic-D0xmLpej.js";
|
|
19
19
|
import "./diagnostic-session-state-C1vRJs5w.js";
|
|
20
20
|
import "./accounts-8zZqL37v.js";
|
|
@@ -22,10 +22,10 @@ import { G as formatLocationText, J as readChannelAllowFromStore, K as toLocatio
|
|
|
22
22
|
import "./image-ops-ByaQt43P.js";
|
|
23
23
|
import "./pi-model-discovery-j5tVLINv.js";
|
|
24
24
|
import "./message-channel-BQINJQIT.js";
|
|
25
|
-
import { Ct as resolveGroupSessionKey, H as loadSessionStore, K as updateLastRoute, U as readSessionUpdatedAt, W as recordSessionMetaFromInbound } from "./pi-embedded-helpers-
|
|
25
|
+
import { Ct as resolveGroupSessionKey, H as loadSessionStore, K as updateLastRoute, U as readSessionUpdatedAt, W as recordSessionMetaFromInbound } from "./pi-embedded-helpers-B8kqLWns.js";
|
|
26
26
|
import { n as loadConfig } from "./config-BmV60pPT.js";
|
|
27
27
|
import "./manifest-registry-D-mTF1cj.js";
|
|
28
|
-
import "./chrome-
|
|
28
|
+
import "./chrome-D2SKJnR7.js";
|
|
29
29
|
import "./skills-BNpGMnp-.js";
|
|
30
30
|
import "./redact-1NGYV_8p.js";
|
|
31
31
|
import "./errors-CPfngF0S.js";
|
|
@@ -35,7 +35,7 @@ import { h as resolveChannelGroupRequireMention, m as resolveChannelGroupPolicy
|
|
|
35
35
|
import "./accounts-DImOt9jX.js";
|
|
36
36
|
import { s as resolveStorePath } from "./paths-DkMamAQ-.js";
|
|
37
37
|
import "./tool-images-ChC2CXaN.js";
|
|
38
|
-
import "./image-
|
|
38
|
+
import "./image-DcpMiprB.js";
|
|
39
39
|
import "./manager-jpn5vRTY.js";
|
|
40
40
|
import "./gemini-auth-CSlZZ1Pw.js";
|
|
41
41
|
import "./sqlite-BNh23mUR.js";
|
|
@@ -49,7 +49,7 @@ import "./render-B1VqYyvo.js";
|
|
|
49
49
|
import "./commands-registry-C_aYUwpl.js";
|
|
50
50
|
import "./skill-commands-DklY7Cj7.js";
|
|
51
51
|
import { t as finalizeInboundContext } from "./inbound-context-QOi5vzUt.js";
|
|
52
|
-
import { p as registerUnhandledRejectionHandler } from "./runner-
|
|
52
|
+
import { p as registerUnhandledRejectionHandler } from "./runner-BcQ0sF9T.js";
|
|
53
53
|
import "./fetch-DtLn7YU3.js";
|
|
54
54
|
import { n as recordChannelActivity } from "./channel-activity-D9q-fIPB.js";
|
|
55
55
|
import { t as convertMarkdownTables } from "./tables-COnZ169v.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as escapeRegExp } from "./utils-B-0b9bGM.js";
|
|
2
|
-
import { t as registerBrowserRoutes } from "./routes-
|
|
2
|
+
import { t as registerBrowserRoutes } from "./routes-Ba9CUQ8M.js";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import { execFile } from "node:child_process";
|
|
5
5
|
import { promisify } from "node:util";
|