@symerian/symi 2.0.5 → 2.0.6
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/{agents-CY07X24i.js → agents-CypLQ-TX.js} +4 -4
- package/dist/{agents.config-DXm0itk8.js → agents.config-DWqwPV32.js} +1 -1
- package/dist/{agents.config-B9gQawzG.js → agents.config-S5g63_Ww.js} +1 -1
- package/dist/{audio-preflight-B8ffbICW.js → audio-preflight-Cq4C-m27.js} +4 -4
- package/dist/{auth-choice-CmzYHI9W.js → auth-choice-1csNxn5J.js} +1 -1
- package/dist/{auth-choice-BL5iKbOi.js → auth-choice-DxhF9BuU.js} +1 -1
- package/dist/{banner-ZI2qDzNS.js → banner-CV_YEEQe.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-CBjB0Gat.js → channel-options-DN7ZZEMr.js} +1 -1
- package/dist/{channel-options-BoQfMXlN.js → channel-options-NbbM348A.js} +1 -1
- package/dist/{channel-web-BAXp3QOw.js → channel-web-BUODlmfF.js} +1 -1
- package/dist/{channels-cli-CdNqd2p-.js → channels-cli-6MNbtk6T.js} +4 -4
- package/dist/{channels-cli-DDX2Mnw5.js → channels-cli-DOoGJd4k.js} +4 -4
- package/dist/{chrome-B_zrSLce.js → chrome-h6BnL8Lp.js} +7 -7
- package/dist/{cli-U17c6jdJ.js → cli-DxHEDvD7.js} +1 -1
- package/dist/{cli-Dt0gEtAK.js → cli-TVchR8N9.js} +1 -1
- package/dist/{command-registry-CPE-hn3o.js → command-registry-S2yEeoft.js} +9 -9
- package/dist/{completion-cli-CcOS-aPd.js → completion-cli-BrgaQVPk.js} +1 -1
- package/dist/{completion-cli-DwcosLcg.js → completion-cli-u1z9O4lQ.js} +2 -2
- package/dist/{config-cli-B7C8rH_M.js → config-cli-CUdFNGGC.js} +1 -1
- package/dist/{config-cli-kyOQ8cyG.js → config-cli-CipxRDcw.js} +1 -1
- package/dist/{configure-t1L_p7YR.js → configure-B2DVh1MI.js} +3 -3
- package/dist/{configure-DMiMX73I.js → configure-D9n_M6Ra.js} +3 -3
- package/dist/{deliver-CkjSfucB.js → deliver-CZF9f8aC.js} +1 -1
- package/dist/{doctor-completion-Clr-M__Q.js → doctor-completion-94bdxcgy.js} +1 -1
- package/dist/{doctor-completion-D4wXWeDY.js → doctor-completion-Beg_3VG2.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{gateway-cli-DhjW9OPH.js → gateway-cli-BkfAKxxR.js} +9 -9
- package/dist/{gateway-cli-CRyelGVH.js → gateway-cli-CKIJn013.js} +9 -9
- package/dist/{glass-ui-ws-CEx9ErgA.js → glass-ui-ws-BQ6j-PII.js} +7 -7
- package/dist/{glass-ui-ws-BBoT-xnq.js → glass-ui-ws-BrvN2A06.js} +7 -7
- package/dist/{health-BqurBycG.js → health-9kUMJPU4.js} +1 -1
- package/dist/{health-DeTRr2Yi.js → health-BUaaGug2.js} +1 -1
- package/dist/{hooks-cli-CxNUfUAl.js → hooks-cli-CBkjAKu_.js} +2 -2
- package/dist/{hooks-cli-CyX25xDg.js → hooks-cli-CxqrpSnT.js} +2 -2
- package/dist/{image-CSeAnozE.js → image-DOnOTocl.js} +1 -1
- package/dist/index.js +6 -6
- package/dist/llm-slug-generator.js +1 -1
- package/dist/{models-DNAE1N7V.js → models-CZSMuo5B.js} +2 -2
- package/dist/{models-cli-D4r8mM-2.js → models-cli-Ds23awjm.js} +3 -3
- package/dist/{models-cli-8eJPrb5l.js → models-cli-MqWvGB7f.js} +2 -2
- package/dist/{onboard-D0g_JIWM.js → onboard-D3oW4O-4.js} +2 -2
- package/dist/{onboard-BpaRZUFQ.js → onboard-G9IN6QQx.js} +2 -2
- package/dist/{onboard-channels-CB-ZyCGr.js → onboard-channels-dfTDyb59.js} +1 -1
- package/dist/{onboard-channels-ZvSuUl2b.js → onboard-channels-oFTqVfhO.js} +1 -1
- package/dist/{onboarding-CyOPHuUh.js → onboarding-Ckpz4QDg.js} +3 -3
- package/dist/{onboarding-IkxPm5gV.js → onboarding-g2bI9l8x.js} +3 -3
- package/dist/{onboarding.finalize-5dMqw7-V.js → onboarding.finalize-C1lR3Y__.js} +6 -6
- package/dist/{onboarding.finalize-lCFDn1Vv.js → onboarding.finalize-MWEKi_hL.js} +5 -5
- package/dist/{pi-embedded-B17xy2tl.js → pi-embedded-BJC3CNWN.js} +24 -2
- package/dist/{pi-embedded-CG1sbHWR.js → pi-embedded-Cll2enMR.js} +38 -16
- package/dist/{pi-embedded-helpers-BmYZe8o8.js → pi-embedded-helpers--yFTAWwW.js} +4 -4
- package/dist/{plugin-registry-utopggWM.js → plugin-registry-C5KPfoPc.js} +1 -1
- package/dist/{plugin-registry-JZqN81Bo.js → plugin-registry-KUffgxdX.js} +1 -1
- package/dist/plugin-sdk/{channel-web-8rBzJFux.js → channel-web-DTV6QoJV.js} +1 -1
- package/dist/plugin-sdk/index.js +2 -2
- package/dist/plugin-sdk/{reply-1OERlD_o.js → reply-CzCsghFB.js} +24 -2
- package/dist/plugin-sdk/{web-BwotpS8M.js → web-BLcsH45O.js} +2 -2
- package/dist/{plugins-cli-3juF8qAN.js → plugins-cli-BIHhue19.js} +2 -2
- package/dist/{plugins-cli-VgPcQbvD.js → plugins-cli-DRDUAaBR.js} +2 -2
- package/dist/{program-D--d7gXJ.js → program-BCEnYzi8.js} +7 -7
- package/dist/{program-context-6lrCsf93.js → program-context-CS1wSnZE.js} +17 -17
- package/dist/{prompt-select-styled-BDPi1gAG.js → prompt-select-styled-99u32PPK.js} +4 -4
- package/dist/{prompt-select-styled-B7Ou3g-A.js → prompt-select-styled-AZW_g_xe.js} +4 -4
- package/dist/{provider-auth-helpers-D8shQq80.js → provider-auth-helpers-CeJqzcdK.js} +1 -1
- package/dist/{provider-auth-helpers-DVt5O7L_.js → provider-auth-helpers-DqJ69hdw.js} +1 -1
- package/dist/{push-apns-CBcDG6uB.js → push-apns-C5xLtVxl.js} +1 -1
- package/dist/{push-apns-CZnm2rUK.js → push-apns-Dwt-_Kns.js} +1 -1
- package/dist/{pw-ai-s-d46DCX.js → pw-ai-C_C5as1t.js} +1 -1
- package/dist/{register.agent-D7-4LkI4.js → register.agent-Cyq17z22.js} +6 -6
- package/dist/{register.agent-BWc0MoWn.js → register.agent-nnrj8tc5.js} +5 -5
- package/dist/{register.configure-DCjQSKxq.js → register.configure-D1zZ3jgM.js} +6 -6
- package/dist/{register.configure-BV-ZFMB7.js → register.configure-DSknC_88.js} +6 -6
- package/dist/{register.maintenance-CVi1e2Ji.js → register.maintenance-ClQi_hVH.js} +7 -7
- package/dist/{register.maintenance-C5sEBWXo.js → register.maintenance-Dt1AUhn3.js} +8 -8
- package/dist/{register.message-0N9DueQZ.js → register.message-C0R7nCJf.js} +2 -2
- package/dist/{register.message-DFRfxv1G.js → register.message-x7nPJjwN.js} +2 -2
- package/dist/{register.onboard-DrrdbypK.js → register.onboard-BOXdnoFU.js} +4 -4
- package/dist/{register.onboard-CW1Uz6hU.js → register.onboard-Bry0wxl_.js} +4 -4
- package/dist/{register.setup-DfWYqqXp.js → register.setup-C5d8909b.js} +4 -4
- package/dist/{register.setup-rFeo1KBD.js → register.setup-fPrs1eMy.js} +4 -4
- package/dist/{register.status-health-sessions-D775ye0Z.js → register.status-health-sessions-Bg3bAzzg.js} +3 -3
- package/dist/{register.status-health-sessions-B1AYiTUy.js → register.status-health-sessions-C6FKgGFx.js} +3 -3
- package/dist/{register.subclis-J68HyfeW.js → register.subclis-BrOWQICr.js} +9 -9
- package/dist/{reply-D3vL1h90.js → reply-D_FZec1Q.js} +24 -2
- package/dist/{run-main-sIDR93j4.js → run-main-BNSY40iN.js} +14 -14
- package/dist/{runner-CJJY2r19.js → runner-uDZlTCm2.js} +1 -1
- package/dist/{server-methods-BFzqiN9K.js → server-methods-BBkI0oCw.js} +7 -7
- package/dist/{server-methods-BLiOVI3R.js → server-methods-CQo9n7_8.js} +7 -7
- package/dist/{server-node-events-Culy5cRa.js → server-node-events-DBIaf_Oj.js} +2 -2
- package/dist/{server-node-events-DPZocSBy.js → server-node-events-DXVd5rRh.js} +2 -2
- package/dist/{status-Bwu1EbC5.js → status-B77mKduK.js} +1 -1
- package/dist/{status-BG-HNnfA.js → status-Be3sgGJN.js} +1 -1
- package/dist/{status-D7_avdQF.js → status-CqnXLNV0.js} +2 -2
- package/dist/{status-CFu6iTAd.js → status-CsoUJxpm.js} +2 -2
- package/dist/{subagent-registry-CQ_bEF7T.js → subagent-registry-BH79W7i1.js} +24 -2
- package/dist/{update-cli-CxaBQq_C.js → update-cli-BhPzUXNP.js} +7 -7
- package/dist/{update-cli-BYU_o1qK.js → update-cli-Ce9xf_CT.js} +8 -8
- package/dist/{update-runner-IitPp27-.js → update-runner-BpQxWph5.js} +1 -1
- package/dist/{update-runner-DMFIbvG9.js → update-runner-DYnn5y5L.js} +1 -1
- package/dist/{web-JrjUXFo9.js → web-07aQbQrq.js} +6 -6
- package/dist/{web-C_4x-6nn.js → web-D3J3pm9B.js} +1 -1
- package/dist/{web-CfxeKotB.js → web-sN6ARhg2.js} +1 -1
- package/dist/{web-Bv6joRhQ.js → web-uh4O13Iu.js} +2 -2
- package/docs/reference/templates/SYMIPULSE.md +57 -39
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ import "./pairing-token-Byh6drgn.js";
|
|
|
21
21
|
import { t as safeEqualSecret } from "./secret-equal-CbntzRkh.js";
|
|
22
22
|
import { a as isValidIPv4, c as resolveClientIp, d as resolveHostName, f as rawDataToString, i as isTrustedProxyAddress, l as resolveGatewayBindHost, n as isLoopbackHost, o as normalizeHostHeader, t as isLoopbackAddress, u as resolveGatewayListenHosts } from "./net-DZ5Ayk-W.js";
|
|
23
23
|
import { n as pickPrimaryTailnetIPv4, r as pickPrimaryTailnetIPv6 } from "./tailnet-Cmumpn76.js";
|
|
24
|
-
import { $ as runCliAgent, An as extractImageContentFromSource, At as normalizePayloadToSystemText, Bt as getHookType, C as sleepWithAbort, Ct as normalizeHttpWebhookUrl, Dn as DEFAULT_INPUT_MAX_REDIRECTS, Dt as normalizeOptionalAgentId, En as DEFAULT_INPUT_IMAGE_MIMES, Et as inferLegacyName, Ft as stripLegacyDeliveryFields, G as getTotalPendingReplies, Gt as deferGatewayRestartUntilIdle, Jt as markGatewaySigusr1RestartHandled, Kt as emitGatewayRestart, Mn as resolveInputFileLimits, Mt as migrateLegacyCronPayload, Nt as buildDeliveryFromLegacyPayload, O as createOutboundSendDeps, On as DEFAULT_INPUT_TIMEOUT_MS, Ot as normalizeOptionalSessionKey, Pn as resolveAgentTimeoutMs, Pt as hasLegacyDeliveryHints, Q as setCliSessionId, R as buildHistoryContextFromEntries, Rt as buildSafeExternalPrompt, S as computeBackoff, Sr as registerAgentRunContext, Tn as DEFAULT_INPUT_IMAGE_MAX_BYTES, Vt as isExternalHookSession, Wt as consumeGatewaySigusr1RestartAuthorization, X as resolveCronStyleNow, Xt as setGatewaySigusr1RestartPolicy, Z as getCliSessionId, Zt as setPreRestartDeferralCheck, _ as loadSymiPlugins, _r as stripHeartbeatToken, b as readJsonBodyWithLimit, br as getAgentRunContext, bt as summarizeRestartSentinel, c as runEmbeddedPiAgent, cr as getTotalQueueSize, dr as waitForActiveTasks, f as applyToolPolicyPipeline, fr as CommandLane, ft as resetDirectoryCache, gt as consumeRestartSentinel, h as getPluginToolMeta, j as resolveAgentAvatar, jn as normalizeMimeList, jt as normalizeRequiredName, k as createDefaultDeps, kn as extractFileContentFromSource, kt as normalizeOptionalText, ln as requestHeartbeatNow, lr as resetAllLanes, lt as resolveOutboundTarget, mt as runWithModelFallback, n as initSubagentRegistry, nt as readLatestAssistantReply, o as runSubagentAnnounceFlow, or as getActiveTaskCount, ot as resolveOutboundSessionRoute, p as buildDefaultToolPolicyPipelineSteps, pr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, qt as isGatewaySigusr1RestartExternallyAllowed, r as listDescendantRunsForRequester, rt as resolveAnnounceTargetFromKey, t as countActiveDescendantRuns, tt as createSymiTools, u as getActiveEmbeddedRunCount, ur as setCommandLaneConcurrency, ut as resolveSessionDeliveryTarget, vr as clearAgentRunContext, vt as formatRestartSentinelMessage, w as agentCommand, x as requestBodyErrorToText, xn as enqueueSystemEvent, xr as onAgentEvent, y as handleSlackHttpRequest, yr as emitAgentEvent, zt as detectSuspiciousPatterns } from "./subagent-registry-
|
|
24
|
+
import { $ as runCliAgent, An as extractImageContentFromSource, At as normalizePayloadToSystemText, Bt as getHookType, C as sleepWithAbort, Ct as normalizeHttpWebhookUrl, Dn as DEFAULT_INPUT_MAX_REDIRECTS, Dt as normalizeOptionalAgentId, En as DEFAULT_INPUT_IMAGE_MIMES, Et as inferLegacyName, Ft as stripLegacyDeliveryFields, G as getTotalPendingReplies, Gt as deferGatewayRestartUntilIdle, Jt as markGatewaySigusr1RestartHandled, Kt as emitGatewayRestart, Mn as resolveInputFileLimits, Mt as migrateLegacyCronPayload, Nt as buildDeliveryFromLegacyPayload, O as createOutboundSendDeps, On as DEFAULT_INPUT_TIMEOUT_MS, Ot as normalizeOptionalSessionKey, Pn as resolveAgentTimeoutMs, Pt as hasLegacyDeliveryHints, Q as setCliSessionId, R as buildHistoryContextFromEntries, Rt as buildSafeExternalPrompt, S as computeBackoff, Sr as registerAgentRunContext, Tn as DEFAULT_INPUT_IMAGE_MAX_BYTES, Vt as isExternalHookSession, Wt as consumeGatewaySigusr1RestartAuthorization, X as resolveCronStyleNow, Xt as setGatewaySigusr1RestartPolicy, Z as getCliSessionId, Zt as setPreRestartDeferralCheck, _ as loadSymiPlugins, _r as stripHeartbeatToken, b as readJsonBodyWithLimit, br as getAgentRunContext, bt as summarizeRestartSentinel, c as runEmbeddedPiAgent, cr as getTotalQueueSize, dr as waitForActiveTasks, f as applyToolPolicyPipeline, fr as CommandLane, ft as resetDirectoryCache, gt as consumeRestartSentinel, h as getPluginToolMeta, j as resolveAgentAvatar, jn as normalizeMimeList, jt as normalizeRequiredName, k as createDefaultDeps, kn as extractFileContentFromSource, kt as normalizeOptionalText, ln as requestHeartbeatNow, lr as resetAllLanes, lt as resolveOutboundTarget, mt as runWithModelFallback, n as initSubagentRegistry, nt as readLatestAssistantReply, o as runSubagentAnnounceFlow, or as getActiveTaskCount, ot as resolveOutboundSessionRoute, p as buildDefaultToolPolicyPipelineSteps, pr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, qt as isGatewaySigusr1RestartExternallyAllowed, r as listDescendantRunsForRequester, rt as resolveAnnounceTargetFromKey, t as countActiveDescendantRuns, tt as createSymiTools, u as getActiveEmbeddedRunCount, ur as setCommandLaneConcurrency, ut as resolveSessionDeliveryTarget, vr as clearAgentRunContext, vt as formatRestartSentinelMessage, w as agentCommand, x as requestBodyErrorToText, xn as enqueueSystemEvent, xr as onAgentEvent, y as handleSlackHttpRequest, yr as emitAgentEvent, zt as detectSuspiciousPatterns } from "./subagent-registry-BH79W7i1.js";
|
|
25
25
|
import { D as resolveSessionResetPolicy, F as resolveMainSessionKey, H as cleanStaleLockFiles, I as resolveMainSessionKeyFromConfig, K as mergeDeliveryContext, M as canonicalizeMainSessionAlias, N as resolveAgentMainSessionKey, T as evaluateSessionFreshness, W as deliveryContextFromSession, d as updateSessionStore, n as parseSessionThreadInfo, o as loadSessionStore } from "./sessions-DJAxaVI7.js";
|
|
26
26
|
import { a as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-Csntmwwn.js";
|
|
27
27
|
import { n as listChannelPlugins, o as normalizeWhatsAppTarget, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-CwSlLxM8.js";
|
|
@@ -130,20 +130,20 @@ import { n as resolveWideAreaDiscoveryDomain, r as writeWideAreaGatewayZone } fr
|
|
|
130
130
|
import { i as toOptionString, n as extractGatewayMiskeys, r as maybeExplainGatewayServiceStop, t as describeUnknownError } from "./shared-BtG9rny3.js";
|
|
131
131
|
import { c as probeGateway, s as resolveNodeCommandAllowlist } from "./audit-DKUpFt8z.js";
|
|
132
132
|
import { t as discoverGatewayBeacons } from "./bonjour-discovery-CA_XIzr_.js";
|
|
133
|
-
import { i as pickGatewaySelfPresence } from "./status-
|
|
134
|
-
import { a as styleHealthChannelLine, l as startHeartbeatRunner, n as getHealthSnapshot, s as runHeartbeatOnce, t as formatHealthChannelLines } from "./health-
|
|
133
|
+
import { i as pickGatewaySelfPresence } from "./status-CqnXLNV0.js";
|
|
134
|
+
import { a as styleHealthChannelLine, l as startHeartbeatRunner, n as getHealthSnapshot, s as runHeartbeatOnce, t as formatHealthChannelLines } from "./health-BUaaGug2.js";
|
|
135
135
|
import { a as resolveControlUiRootSync, i as resolveControlUiRootOverrideSync, t as ensureControlUiAssetsBuilt } from "./control-ui-assets-BseSWee1.js";
|
|
136
136
|
import { a as resolveNpmChannelTag, c as DEFAULT_PACKAGE_CHANNEL, m as normalizeUpdateChannel, n as compareSemverStrings, t as checkUpdateStatus } from "./update-check-ZdimP1aU.js";
|
|
137
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
138
|
-
import { _ as getHandshakeTimeoutMs, a as DEFAULT_ASSISTANT_IDENTITY, b as resolveCronRunLogPath, c as upsertPresence, d as DEDUPE_MAX, f as DEDUPE_TTL_MS, g as TICK_INTERVAL_MS, h as MAX_PAYLOAD_BYTES, i as safeParseJson, l as formatError, m as MAX_BUFFERED_BYTES, n as handleGatewayRequest, o as resolveAssistantIdentity, p as HEALTH_REFRESH_INTERVAL_MS, r as broadcastPresenceSnapshot, s as listSystemPresence, t as coreGatewayHandlers, u as loadVoiceWakeConfig, v as abortChatRunById, x as startGatewayConfigReloader, y as appendCronRunLog } from "./server-methods-
|
|
139
|
-
import { d as shouldLogWs, f as summarizeAgentEventForWsLog, l as formatForLog, p as setGatewayWsLogStyle, u as logWs } from "./push-apns-
|
|
137
|
+
import { t as runOnboardingWizard } from "./onboarding-g2bI9l8x.js";
|
|
138
|
+
import { _ as getHandshakeTimeoutMs, a as DEFAULT_ASSISTANT_IDENTITY, b as resolveCronRunLogPath, c as upsertPresence, d as DEDUPE_MAX, f as DEDUPE_TTL_MS, g as TICK_INTERVAL_MS, h as MAX_PAYLOAD_BYTES, i as safeParseJson, l as formatError, m as MAX_BUFFERED_BYTES, n as handleGatewayRequest, o as resolveAssistantIdentity, p as HEALTH_REFRESH_INTERVAL_MS, r as broadcastPresenceSnapshot, s as listSystemPresence, t as coreGatewayHandlers, u as loadVoiceWakeConfig, v as abortChatRunById, x as startGatewayConfigReloader, y as appendCronRunLog } from "./server-methods-CQo9n7_8.js";
|
|
139
|
+
import { d as shouldLogWs, f as summarizeAgentEventForWsLog, l as formatForLog, p as setGatewayWsLogStyle, u as logWs } from "./push-apns-Dwt-_Kns.js";
|
|
140
140
|
import { T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, i as ensureTailscaleEndpoint, v as buildGogWatchStartArgs } from "./gmail-setup-utils-CzWeiE-Y.js";
|
|
141
|
-
import "./agents.config-
|
|
141
|
+
import "./agents.config-DWqwPV32.js";
|
|
142
142
|
import "./dm-policy-shared-BovJdm5T.js";
|
|
143
143
|
import "./node-service-fcZExd22.js";
|
|
144
144
|
import "./status.update-BXs3adtg.js";
|
|
145
145
|
import "./skills-install-1ZdwGTnh.js";
|
|
146
|
-
import "./update-runner-
|
|
146
|
+
import "./update-runner-BpQxWph5.js";
|
|
147
147
|
import { t as resolveAgentSessionDirs } from "./session-dirs-DWgIYmAt.js";
|
|
148
148
|
import { i as shouldIncludeHook, r as resolveHookConfig, t as loadWorkspaceHookEntries } from "./workspace-B51TF6q3.js";
|
|
149
149
|
import { n as forceFreePortAndWait } from "./ports-Dn122MUd.js";
|
|
@@ -11630,7 +11630,7 @@ async function startGatewayServer(port = 18789, opts = {}) {
|
|
|
11630
11630
|
});
|
|
11631
11631
|
let glassUiBridgeCleanup = null;
|
|
11632
11632
|
if (!minimalTestGateway) {
|
|
11633
|
-
const { createGlassUiBridge } = await import("./glass-ui-ws-
|
|
11633
|
+
const { createGlassUiBridge } = await import("./glass-ui-ws-BQ6j-PII.js");
|
|
11634
11634
|
glassUiBridgeCleanup = createGlassUiBridge({
|
|
11635
11635
|
wss: glassUiWss,
|
|
11636
11636
|
context: gatewayRequestContext,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as expandHomePrefix, g as resolveStateDir, i as isNixMode, l as resolveGatewayLockDir, o as resolveConfigPath, r as STATE_DIR, t as CONFIG_PATH, u as resolveGatewayPort } from "./paths-Cqn-zk3M.js";
|
|
2
2
|
import { B as theme, E as truncateUtf16Safe, H as getLogger, P as setVerbose, R as colorize, S as shortenHomePath, U as getResolvedLoggerSettings, V as getChildLogger, c as ensureDir, t as CONFIG_DIR, y as resolveUserPath, z as isRich } from "./utils-B-0b9bGM.js";
|
|
3
3
|
import { d as supportsXHighThinking, l as normalizeVerboseLevel, s as normalizeThinkLevel } from "./thinking-EAliFiVK.js";
|
|
4
|
-
import { $ as normalizeOptionalText, $n as getActiveTaskCount, $t as buildSafeExternalPrompt, A as resetDirectoryCache, Ar as resolveInputFileLimits, At as agentCommand, B as consumeRestartSentinel, Cr as DEFAULT_INPUT_IMAGE_MAX_BYTES, Dn as countActiveDescendantRuns, Dr as extractFileContentFromSource, Dt as requestBodyErrorToText, Er as DEFAULT_INPUT_TIMEOUT_MS, Et as readJsonBodyWithLimit, F as isGatewaySigusr1RestartExternallyAllowed, Fn as emitAgentEvent, Gt as setCliSessionId, H as formatRestartSentinelMessage, I as markGatewaySigusr1RestartHandled, In as getAgentRunContext, It as resolveOutboundTarget, Kt as runCliAgent, Ln as onAgentEvent, Lt as resolveSessionDeliveryTarget, M as consumeGatewaySigusr1RestartAuthorization, Mn as runSubagentAnnounceFlow, Mr as resolveAgentTimeoutMs, N as deferGatewayRestartUntilIdle, Nn as readLatestAssistantReply, O as resolveOutboundSessionRoute, On as initSubagentRegistry, Or as extractImageContentFromSource, Ot as computeBackoff, P as emitGatewayRestart, Pn as clearAgentRunContext, Q as normalizeOptionalSessionKey, R as setGatewaySigusr1RestartPolicy, Rn as registerAgentRunContext, Rt as createOutboundSendDeps, S as loadSessionEntry, Tr as DEFAULT_INPUT_MAX_REDIRECTS, Tt as handleSlackHttpRequest, Ut as runWithModelFallback, Vt as createDefaultDeps, W as summarizeRestartSentinel, Wt as getCliSessionId, X as inferLegacyName, Yt as resolveAgentAvatar, Z as normalizeOptionalAgentId, ar as CommandLane, at as stripLegacyDeliveryFields, d as getActiveEmbeddedRunCount, dr as lookupContextTokens, dt as requestHeartbeatNow, en as detectSuspiciousPatterns, et as normalizePayloadToSystemText, g as resolveAnnounceTargetFromKey, gt as loadSymiPlugins, h as createSymiTools, i as resolveCronStyleNow, ir as waitForActiveTasks, it as hasLegacyDeliveryHints, kn as listDescendantRunsForRequester, kr as normalizeMimeList, kt as sleepWithAbort, l as runEmbeddedPiAgent, m as buildDefaultToolPolicyPipelineSteps, mn as getTotalPendingReplies, mt as getPluginToolMeta, nn as isExternalHookSession, nr as resetAllLanes, nt as migrateLegacyCronPayload, or as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, p as applyToolPolicyPipeline, q as normalizeHttpWebhookUrl, rr as setCommandLaneConcurrency, rt as buildDeliveryFromLegacyPayload, sn as buildHistoryContextFromEntries, tn as getHookType, tr as getTotalQueueSize, tt as normalizeRequiredName, ur as stripHeartbeatToken, wr as DEFAULT_INPUT_IMAGE_MIMES, yr as enqueueSystemEvent, z as setPreRestartDeferralCheck } from "./reply-
|
|
4
|
+
import { $ as normalizeOptionalText, $n as getActiveTaskCount, $t as buildSafeExternalPrompt, A as resetDirectoryCache, Ar as resolveInputFileLimits, At as agentCommand, B as consumeRestartSentinel, Cr as DEFAULT_INPUT_IMAGE_MAX_BYTES, Dn as countActiveDescendantRuns, Dr as extractFileContentFromSource, Dt as requestBodyErrorToText, Er as DEFAULT_INPUT_TIMEOUT_MS, Et as readJsonBodyWithLimit, F as isGatewaySigusr1RestartExternallyAllowed, Fn as emitAgentEvent, Gt as setCliSessionId, H as formatRestartSentinelMessage, I as markGatewaySigusr1RestartHandled, In as getAgentRunContext, It as resolveOutboundTarget, Kt as runCliAgent, Ln as onAgentEvent, Lt as resolveSessionDeliveryTarget, M as consumeGatewaySigusr1RestartAuthorization, Mn as runSubagentAnnounceFlow, Mr as resolveAgentTimeoutMs, N as deferGatewayRestartUntilIdle, Nn as readLatestAssistantReply, O as resolveOutboundSessionRoute, On as initSubagentRegistry, Or as extractImageContentFromSource, Ot as computeBackoff, P as emitGatewayRestart, Pn as clearAgentRunContext, Q as normalizeOptionalSessionKey, R as setGatewaySigusr1RestartPolicy, Rn as registerAgentRunContext, Rt as createOutboundSendDeps, S as loadSessionEntry, Tr as DEFAULT_INPUT_MAX_REDIRECTS, Tt as handleSlackHttpRequest, Ut as runWithModelFallback, Vt as createDefaultDeps, W as summarizeRestartSentinel, Wt as getCliSessionId, X as inferLegacyName, Yt as resolveAgentAvatar, Z as normalizeOptionalAgentId, ar as CommandLane, at as stripLegacyDeliveryFields, d as getActiveEmbeddedRunCount, dr as lookupContextTokens, dt as requestHeartbeatNow, en as detectSuspiciousPatterns, et as normalizePayloadToSystemText, g as resolveAnnounceTargetFromKey, gt as loadSymiPlugins, h as createSymiTools, i as resolveCronStyleNow, ir as waitForActiveTasks, it as hasLegacyDeliveryHints, kn as listDescendantRunsForRequester, kr as normalizeMimeList, kt as sleepWithAbort, l as runEmbeddedPiAgent, m as buildDefaultToolPolicyPipelineSteps, mn as getTotalPendingReplies, mt as getPluginToolMeta, nn as isExternalHookSession, nr as resetAllLanes, nt as migrateLegacyCronPayload, or as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, p as applyToolPolicyPipeline, q as normalizeHttpWebhookUrl, rr as setCommandLaneConcurrency, rt as buildDeliveryFromLegacyPayload, sn as buildHistoryContextFromEntries, tn as getHookType, tr as getTotalQueueSize, tt as normalizeRequiredName, ur as stripHeartbeatToken, wr as DEFAULT_INPUT_IMAGE_MIMES, yr as enqueueSystemEvent, z as setPreRestartDeferralCheck } from "./reply-D_FZec1Q.js";
|
|
5
5
|
import { S as parseAgentSessionKey, c as normalizeMainKey, f as toAgentRequestSessionKey, l as resolveAgentIdFromSessionKey, m as DEFAULT_ACCOUNT_ID, p as toAgentStoreSessionKey, r as buildAgentMainSessionKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID, x as isSubagentSessionKey, y as isCronRunSessionKey } from "./session-key-DCt45XZa.js";
|
|
6
6
|
import { r as matchesSkillFilter, t as resolveSymiPackageRoot } from "./symi-root-CrGJbkzf.js";
|
|
7
7
|
import { C as createInternalHookEvent, S as clearInternalHooks, T as triggerInternalHook, m as createEmptyPluginRegistry, r as DEFAULT_CHAT_CHANNEL, w as registerInternalHook } from "./registry-Cja8eT7G.js";
|
|
@@ -135,20 +135,20 @@ import { n as resolveWideAreaDiscoveryDomain, r as writeWideAreaGatewayZone } fr
|
|
|
135
135
|
import { i as toOptionString, n as extractGatewayMiskeys, r as maybeExplainGatewayServiceStop, t as describeUnknownError } from "./shared-BJvwnR5z.js";
|
|
136
136
|
import { c as probeGateway, s as resolveNodeCommandAllowlist } from "./audit-CiugrQda.js";
|
|
137
137
|
import { t as discoverGatewayBeacons } from "./bonjour-discovery-BHTF5p0X.js";
|
|
138
|
-
import { r as pickGatewaySelfPresence } from "./status-
|
|
139
|
-
import { c as startHeartbeatRunner, i as styleHealthChannelLine, n as getHealthSnapshot, o as runHeartbeatOnce, t as formatHealthChannelLines } from "./health-
|
|
138
|
+
import { r as pickGatewaySelfPresence } from "./status-CsoUJxpm.js";
|
|
139
|
+
import { c as startHeartbeatRunner, i as styleHealthChannelLine, n as getHealthSnapshot, o as runHeartbeatOnce, t as formatHealthChannelLines } from "./health-9kUMJPU4.js";
|
|
140
140
|
import { a as resolveControlUiRootSync, i as resolveControlUiRootOverrideSync, t as ensureControlUiAssetsBuilt } from "./control-ui-assets-Z947tKLt.js";
|
|
141
141
|
import { a as resolveNpmChannelTag, c as DEFAULT_PACKAGE_CHANNEL, m as normalizeUpdateChannel, n as compareSemverStrings, t as checkUpdateStatus } from "./update-check-CtckACbb.js";
|
|
142
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
143
|
-
import { _ as getHandshakeTimeoutMs, a as DEFAULT_ASSISTANT_IDENTITY, b as resolveCronRunLogPath, c as upsertPresence, d as DEDUPE_MAX, f as DEDUPE_TTL_MS, g as TICK_INTERVAL_MS, h as MAX_PAYLOAD_BYTES, i as safeParseJson, l as formatError, m as MAX_BUFFERED_BYTES, n as handleGatewayRequest, o as resolveAssistantIdentity, p as HEALTH_REFRESH_INTERVAL_MS, r as broadcastPresenceSnapshot, s as listSystemPresence, t as coreGatewayHandlers, u as loadVoiceWakeConfig, v as abortChatRunById, x as startGatewayConfigReloader, y as appendCronRunLog } from "./server-methods-
|
|
144
|
-
import { d as shouldLogWs, f as summarizeAgentEventForWsLog, l as formatForLog, p as setGatewayWsLogStyle, u as logWs } from "./push-apns-
|
|
142
|
+
import { t as runOnboardingWizard } from "./onboarding-Ckpz4QDg.js";
|
|
143
|
+
import { _ as getHandshakeTimeoutMs, a as DEFAULT_ASSISTANT_IDENTITY, b as resolveCronRunLogPath, c as upsertPresence, d as DEDUPE_MAX, f as DEDUPE_TTL_MS, g as TICK_INTERVAL_MS, h as MAX_PAYLOAD_BYTES, i as safeParseJson, l as formatError, m as MAX_BUFFERED_BYTES, n as handleGatewayRequest, o as resolveAssistantIdentity, p as HEALTH_REFRESH_INTERVAL_MS, r as broadcastPresenceSnapshot, s as listSystemPresence, t as coreGatewayHandlers, u as loadVoiceWakeConfig, v as abortChatRunById, x as startGatewayConfigReloader, y as appendCronRunLog } from "./server-methods-BBkI0oCw.js";
|
|
144
|
+
import { d as shouldLogWs, f as summarizeAgentEventForWsLog, l as formatForLog, p as setGatewayWsLogStyle, u as logWs } from "./push-apns-C5xLtVxl.js";
|
|
145
145
|
import { T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, i as ensureTailscaleEndpoint, v as buildGogWatchStartArgs } from "./gmail-setup-utils-Bv0M7ka7.js";
|
|
146
|
-
import "./agents.config-
|
|
146
|
+
import "./agents.config-S5g63_Ww.js";
|
|
147
147
|
import "./dm-policy-shared-DckBYBwg.js";
|
|
148
148
|
import "./node-service-Cxz4e-Qd.js";
|
|
149
149
|
import "./status.update-DlaskfTr.js";
|
|
150
150
|
import "./skills-install-D67isO1L.js";
|
|
151
|
-
import "./update-runner-
|
|
151
|
+
import "./update-runner-DYnn5y5L.js";
|
|
152
152
|
import { t as resolveAgentSessionDirs } from "./session-dirs-DWgIYmAt.js";
|
|
153
153
|
import { i as shouldIncludeHook, r as resolveHookConfig, t as loadWorkspaceHookEntries } from "./workspace-CYxdoAlY.js";
|
|
154
154
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -11634,7 +11634,7 @@ async function startGatewayServer(port = 18789, opts = {}) {
|
|
|
11634
11634
|
});
|
|
11635
11635
|
let glassUiBridgeCleanup = null;
|
|
11636
11636
|
if (!minimalTestGateway) {
|
|
11637
|
-
const { createGlassUiBridge } = await import("./glass-ui-ws-
|
|
11637
|
+
const { createGlassUiBridge } = await import("./glass-ui-ws-BrvN2A06.js");
|
|
11638
11638
|
glassUiBridgeCleanup = createGlassUiBridge({
|
|
11639
11639
|
wss: glassUiWss,
|
|
11640
11640
|
context: gatewayRequestContext,
|
|
@@ -13,7 +13,7 @@ import "./client-LeVQns9-.js";
|
|
|
13
13
|
import "./call-BQiCOxB6.js";
|
|
14
14
|
import "./message-channel-C9dERklz.js";
|
|
15
15
|
import "./pairing-token-Byh6drgn.js";
|
|
16
|
-
import "./subagent-registry-
|
|
16
|
+
import "./subagent-registry-BH79W7i1.js";
|
|
17
17
|
import "./sessions-DJAxaVI7.js";
|
|
18
18
|
import "./tokens-Csntmwwn.js";
|
|
19
19
|
import "./plugins-CwSlLxM8.js";
|
|
@@ -108,18 +108,18 @@ import "./service-Cm9j9WzQ.js";
|
|
|
108
108
|
import "./diagnostics-CS1ov_hH.js";
|
|
109
109
|
import "./table-D01d2GuY.js";
|
|
110
110
|
import "./audit-DKUpFt8z.js";
|
|
111
|
-
import "./status-
|
|
112
|
-
import "./health-
|
|
111
|
+
import "./status-CqnXLNV0.js";
|
|
112
|
+
import "./health-BUaaGug2.js";
|
|
113
113
|
import "./control-ui-assets-BseSWee1.js";
|
|
114
114
|
import "./update-check-ZdimP1aU.js";
|
|
115
|
-
import { n as handleGatewayRequest } from "./server-methods-
|
|
116
|
-
import "./push-apns-
|
|
117
|
-
import "./agents.config-
|
|
115
|
+
import { n as handleGatewayRequest } from "./server-methods-CQo9n7_8.js";
|
|
116
|
+
import "./push-apns-Dwt-_Kns.js";
|
|
117
|
+
import "./agents.config-DWqwPV32.js";
|
|
118
118
|
import "./dm-policy-shared-BovJdm5T.js";
|
|
119
119
|
import "./node-service-fcZExd22.js";
|
|
120
120
|
import "./status.update-BXs3adtg.js";
|
|
121
121
|
import "./skills-install-1ZdwGTnh.js";
|
|
122
|
-
import "./update-runner-
|
|
122
|
+
import "./update-runner-BpQxWph5.js";
|
|
123
123
|
|
|
124
124
|
//#region src/gateway/glass-ui-ws.ts
|
|
125
125
|
const SESSION_KEY = "agent:main:main";
|
|
@@ -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-D_FZec1Q.js";
|
|
5
5
|
import "./registry-Cja8eT7G.js";
|
|
6
6
|
import "./subsystem-D9vIQve0.js";
|
|
7
7
|
import "./exec-CWkblSrI.js";
|
|
@@ -113,18 +113,18 @@ import "./service-Cl74hx8J.js";
|
|
|
113
113
|
import "./diagnostics-BAMlsVVX.js";
|
|
114
114
|
import "./table-BTgkRafz.js";
|
|
115
115
|
import "./audit-CiugrQda.js";
|
|
116
|
-
import "./status-
|
|
117
|
-
import "./health-
|
|
116
|
+
import "./status-CsoUJxpm.js";
|
|
117
|
+
import "./health-9kUMJPU4.js";
|
|
118
118
|
import "./control-ui-assets-Z947tKLt.js";
|
|
119
119
|
import "./update-check-CtckACbb.js";
|
|
120
|
-
import { n as handleGatewayRequest } from "./server-methods-
|
|
121
|
-
import "./push-apns-
|
|
122
|
-
import "./agents.config-
|
|
120
|
+
import { n as handleGatewayRequest } from "./server-methods-BBkI0oCw.js";
|
|
121
|
+
import "./push-apns-C5xLtVxl.js";
|
|
122
|
+
import "./agents.config-S5g63_Ww.js";
|
|
123
123
|
import "./dm-policy-shared-DckBYBwg.js";
|
|
124
124
|
import "./node-service-Cxz4e-Qd.js";
|
|
125
125
|
import "./status.update-DlaskfTr.js";
|
|
126
126
|
import "./skills-install-D67isO1L.js";
|
|
127
|
-
import "./update-runner-
|
|
127
|
+
import "./update-runner-DYnn5y5L.js";
|
|
128
128
|
|
|
129
129
|
//#region src/gateway/glass-ui-ws.ts
|
|
130
130
|
const SESSION_KEY = "agent:main:main";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as theme, k as info, l as escapeRegExp, z as isRich } from "./utils-B-0b9bGM.js";
|
|
2
|
-
import { Ft as resolveHeartbeatSenderContext, Pt as resolveHeartbeatDeliveryTarget, ar as CommandLane, cr as isHeartbeatContentEffectivelyEmpty, dt as requestHeartbeatNow, er as getQueueSize, ft as setHeartbeatWakeHandler, lr as resolveHeartbeatPrompt$1, or as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, pt as resolveHeartbeatReasonKind, r as appendCronStyleCurrentTimeLine, sr as DEFAULT_HEARTBEAT_EVERY, t as getReplyFromConfig, ur as stripHeartbeatToken, xr as peekSystemEventEntries, zn as resolveUserTimezone } from "./reply-
|
|
2
|
+
import { Ft as resolveHeartbeatSenderContext, Pt as resolveHeartbeatDeliveryTarget, ar as CommandLane, cr as isHeartbeatContentEffectivelyEmpty, dt as requestHeartbeatNow, er as getQueueSize, ft as setHeartbeatWakeHandler, lr as resolveHeartbeatPrompt$1, or as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, pt as resolveHeartbeatReasonKind, r as appendCronStyleCurrentTimeLine, sr as DEFAULT_HEARTBEAT_EVERY, t as getReplyFromConfig, ur as stripHeartbeatToken, xr as peekSystemEventEntries, zn as resolveUserTimezone } from "./reply-D_FZec1Q.js";
|
|
3
3
|
import { l as resolveAgentIdFromSessionKey, p as toAgentStoreSessionKey, s as normalizeAgentId } from "./session-key-DCt45XZa.js";
|
|
4
4
|
import { f as defaultRuntime, t as createSubsystemLogger } from "./subsystem-D9vIQve0.js";
|
|
5
5
|
import { b as DEFAULT_SYMIPULSE_FILENAME, c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId, r as resolveAgentConfig } from "./agent-scope-CgUHAtCo.js";
|
|
@@ -4,7 +4,7 @@ import { l as resolveAgentIdFromSessionKey, p as toAgentStoreSessionKey, s as no
|
|
|
4
4
|
import { b as DEFAULT_SYMIPULSE_FILENAME, c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId, r as resolveAgentConfig } from "./agent-scope-D-jRCY0d.js";
|
|
5
5
|
import { C as parseDurationMs, i as loadConfig } from "./config-amjzHiWZ.js";
|
|
6
6
|
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-BQiCOxB6.js";
|
|
7
|
-
import { Cn as peekSystemEventEntries, Kn as resolveUserTimezone, Y as appendCronStyleCurrentTimeLine, _r as stripHeartbeatToken, ct as resolveHeartbeatSenderContext, dn as resolveHeartbeatReasonKind, fr as CommandLane, gr as resolveHeartbeatPrompt$1, hr as isHeartbeatContentEffectivelyEmpty, ln as requestHeartbeatNow, mr as DEFAULT_HEARTBEAT_EVERY, pr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, q as getReplyFromConfig, sr as getQueueSize, st as resolveHeartbeatDeliveryTarget, un as setHeartbeatWakeHandler } from "./subagent-registry-
|
|
7
|
+
import { Cn as peekSystemEventEntries, Kn as resolveUserTimezone, Y as appendCronStyleCurrentTimeLine, _r as stripHeartbeatToken, ct as resolveHeartbeatSenderContext, dn as resolveHeartbeatReasonKind, fr as CommandLane, gr as resolveHeartbeatPrompt$1, hr as isHeartbeatContentEffectivelyEmpty, ln as requestHeartbeatNow, mr as DEFAULT_HEARTBEAT_EVERY, pr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, q as getReplyFromConfig, sr as getQueueSize, st as resolveHeartbeatDeliveryTarget, un as setHeartbeatWakeHandler } from "./subagent-registry-BH79W7i1.js";
|
|
8
8
|
import { M as canonicalizeMainSessionAlias, N as resolveAgentMainSessionKey, d as updateSessionStore, l as saveSessionStore, o as loadSessionStore } from "./sessions-DJAxaVI7.js";
|
|
9
9
|
import { r as SYMIPULSE_TOKEN } from "./tokens-Csntmwwn.js";
|
|
10
10
|
import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-CwSlLxM8.js";
|
|
@@ -15,7 +15,7 @@ import "./client-LeVQns9-.js";
|
|
|
15
15
|
import "./call-BQiCOxB6.js";
|
|
16
16
|
import "./message-channel-C9dERklz.js";
|
|
17
17
|
import "./pairing-token-Byh6drgn.js";
|
|
18
|
-
import "./subagent-registry-
|
|
18
|
+
import "./subagent-registry-BH79W7i1.js";
|
|
19
19
|
import "./sessions-DJAxaVI7.js";
|
|
20
20
|
import "./tokens-Csntmwwn.js";
|
|
21
21
|
import "./plugins-CwSlLxM8.js";
|
|
@@ -104,7 +104,7 @@ import { a as installPackageDir, i as withTempDir, n as installFromNpmSpecArchiv
|
|
|
104
104
|
import { t as renderTable } from "./table-D01d2GuY.js";
|
|
105
105
|
import { a as parseFrontmatter, t as loadWorkspaceHookEntries } from "./workspace-B51TF6q3.js";
|
|
106
106
|
import { t as buildWorkspaceHookStatus } from "./hooks-status-CEoLdlyb.js";
|
|
107
|
-
import { t as buildPluginStatusReport } from "./status-
|
|
107
|
+
import { t as buildPluginStatusReport } from "./status-B77mKduK.js";
|
|
108
108
|
import path from "node:path";
|
|
109
109
|
import fs from "node:fs";
|
|
110
110
|
import fs$1 from "node:fs/promises";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./paths-Cqn-zk3M.js";
|
|
2
2
|
import { B as theme, S as shortenHomePath, t as CONFIG_DIR, y as resolveUserPath } from "./utils-B-0b9bGM.js";
|
|
3
3
|
import "./thinking-EAliFiVK.js";
|
|
4
|
-
import "./reply-
|
|
4
|
+
import "./reply-D_FZec1Q.js";
|
|
5
5
|
import "./registry-Cja8eT7G.js";
|
|
6
6
|
import { f as defaultRuntime } from "./subsystem-D9vIQve0.js";
|
|
7
7
|
import "./exec-CWkblSrI.js";
|
|
@@ -108,7 +108,7 @@ import { a as installPackageDir, i as withTempDir, n as installFromNpmSpecArchiv
|
|
|
108
108
|
import { t as renderTable } from "./table-BTgkRafz.js";
|
|
109
109
|
import { a as parseFrontmatter, t as loadWorkspaceHookEntries } from "./workspace-CYxdoAlY.js";
|
|
110
110
|
import { t as buildWorkspaceHookStatus } from "./hooks-status-BqLZtMLa.js";
|
|
111
|
-
import { t as buildPluginStatusReport } from "./status-
|
|
111
|
+
import { t as buildPluginStatusReport } from "./status-Be3sgGJN.js";
|
|
112
112
|
import fs from "node:fs";
|
|
113
113
|
import path from "node:path";
|
|
114
114
|
import fs$1 from "node:fs/promises";
|
|
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { D as isRecord, I as shortenHomeInString } from "./registry-BhoUuugi.js";
|
|
3
3
|
import { G as resolveSymiAgentDir, S as getApiKeyForModel, Y as normalizeSecretInput, _ as resolveImplicitBedrockProvider, g as normalizeProviders, v as resolveImplicitCopilotProvider, w as requireApiKey, y as resolveImplicitProviders } from "./model-selection--4t4F87n.js";
|
|
4
4
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-j5tVLINv.js";
|
|
5
|
-
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers
|
|
5
|
+
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers--yFTAWwW.js";
|
|
6
6
|
import { n as loadConfig } from "./config-BjGo9GnL.js";
|
|
7
7
|
import { n as redactToolDetail } from "./redact-1NGYV_8p.js";
|
|
8
8
|
import path from "node:path";
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./paths-Cqn-zk3M.js";
|
|
3
3
|
import { B as theme, P as setVerbose, T as toWhatsappJid, l as escapeRegExp, m as normalizeE164, n as assertWebChannel, z as isRich } from "./utils-B-0b9bGM.js";
|
|
4
4
|
import "./thinking-EAliFiVK.js";
|
|
5
|
-
import { Vt as createDefaultDeps, t as getReplyFromConfig, wt as resolveCommitHash } from "./reply-
|
|
5
|
+
import { Vt as createDefaultDeps, t as getReplyFromConfig, wt as resolveCommitHash } from "./reply-D_FZec1Q.js";
|
|
6
6
|
import "./registry-Cja8eT7G.js";
|
|
7
7
|
import { f as defaultRuntime, r as enableConsoleCapture, u as visibleWidth } from "./subsystem-D9vIQve0.js";
|
|
8
8
|
import { n as runExec, t as runCommandWithTimeout } from "./exec-CWkblSrI.js";
|
|
@@ -103,7 +103,7 @@ import "./pi-tools.policy-DPmdlOwE.js";
|
|
|
103
103
|
import "./control-service-DMz_CcLi.js";
|
|
104
104
|
import "./stagger-BUClb97_.js";
|
|
105
105
|
import "./channel-selection-DuWs0Aak.js";
|
|
106
|
-
import { r as waitForever, t as monitorWebChannel } from "./channel-web-
|
|
106
|
+
import { r as waitForever, t as monitorWebChannel } from "./channel-web-BUODlmfF.js";
|
|
107
107
|
import "./outbound-DfOF58G2.js";
|
|
108
108
|
import "./session-BeJq-MLE.js";
|
|
109
109
|
import "./login-CXSct1EH.js";
|
|
@@ -112,10 +112,10 @@ import { t as ensureSymiCliOnPath } from "./path-env-MnzRq6nD.js";
|
|
|
112
112
|
import { t as assertSupportedRuntime } from "./runtime-guard-B37eizu-.js";
|
|
113
113
|
import "./ports-BX0kKI0g.js";
|
|
114
114
|
import { a as hasFlag, i as getVerboseFlag, n as getCommandPath, o as hasHelpOrVersion, s as hasRootVersionAlias } from "./argv-C6ovOie2.js";
|
|
115
|
-
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-
|
|
115
|
+
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-CS1wSnZE.js";
|
|
116
116
|
import "./catalog-RiADx7MA.js";
|
|
117
|
-
import "./plugin-registry-
|
|
118
|
-
import { n as resolveCliChannelOptions } from "./channel-options-
|
|
117
|
+
import "./plugin-registry-C5KPfoPc.js";
|
|
118
|
+
import { n as resolveCliChannelOptions } from "./channel-options-DN7ZZEMr.js";
|
|
119
119
|
import process$1 from "node:process";
|
|
120
120
|
import { fileURLToPath } from "node:url";
|
|
121
121
|
import { Command } from "commander";
|
|
@@ -515,7 +515,7 @@ function registerPreActionHooks(program, programVersion) {
|
|
|
515
515
|
commandPath
|
|
516
516
|
});
|
|
517
517
|
if (PLUGIN_REQUIRED_COMMANDS.has(commandPath[0])) {
|
|
518
|
-
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-
|
|
518
|
+
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-C5KPfoPc.js").then((n) => n.n);
|
|
519
519
|
ensurePluginRegistryLoaded();
|
|
520
520
|
}
|
|
521
521
|
});
|
|
@@ -4,7 +4,7 @@ import { c as resolveDefaultAgentId, r as resolveAgentDir, s as resolveAgentWork
|
|
|
4
4
|
import "./subsystem-Bs9YvKLa.js";
|
|
5
5
|
import "./workspace-wAaHI8-5.js";
|
|
6
6
|
import "./tokens-H1H1LiSQ.js";
|
|
7
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
7
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-BJC3CNWN.js";
|
|
8
8
|
import "./plugins-DQYI3Fr-.js";
|
|
9
9
|
import "./accounts-tNElYrCH.js";
|
|
10
10
|
import "./boolean-B8-BqKGQ.js";
|
|
@@ -7,7 +7,7 @@ import { t as ensurePiAuthJsonFromAuthProfiles } from "./pi-auth-json-CNgAAznq.j
|
|
|
7
7
|
import { i as resolveForwardCompatModel, r as ANTIGRAVITY_OPUS_46_FORWARD_COMPAT_CANDIDATES } from "./model-DaukLY-k.js";
|
|
8
8
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-Do3xMEtM.js";
|
|
9
9
|
import { C as parseDurationMs, i as loadConfig } from "./config-amjzHiWZ.js";
|
|
10
|
-
import { _n as formatRemainingShort, c as runEmbeddedPiAgent, gn as buildAuthHealthSummary, hn as DEFAULT_OAUTH_WARN_MS, ht as describeFailoverError, in as resolveUsageProviderId, mn as maskApiKey, rn as formatUsageWindowSummary, tn as loadProviderUsageSummary } from "./subagent-registry-
|
|
10
|
+
import { _n as formatRemainingShort, c as runEmbeddedPiAgent, gn as buildAuthHealthSummary, hn as DEFAULT_OAUTH_WARN_MS, ht as describeFailoverError, in as resolveUsageProviderId, mn as maskApiKey, rn as formatUsageWindowSummary, tn as loadProviderUsageSummary } from "./subagent-registry-BH79W7i1.js";
|
|
11
11
|
import { i as resolveSessionTranscriptPath, s as resolveSessionTranscriptsDirForAgent } from "./paths-DNdWAq7b.js";
|
|
12
12
|
import { t as ensureSymiModelsJson } from "./models-config-Cb41NmVa.js";
|
|
13
13
|
import { n as loadModelCatalog } from "./model-catalog-Dj5pIc1G.js";
|
|
@@ -21,7 +21,7 @@ import { n as redactSecrets } from "./format-DVLB9DNB.js";
|
|
|
21
21
|
import { a as isLocalBaseUrl, c as normalizeAlias, d as resolveModelTarget, f as updateConfig, i as formatTokenK, l as resolveKnownAgentId, n as ensureFlagCompatibility, o as loadValidConfigOrThrow, r as formatMs, s as mergePrimaryFallbackConfig, t as applyDefaultModelPrimaryUpdate, u as resolveModelKeysFromEntries } from "./shared-CLXhDldI.js";
|
|
22
22
|
import { d as applyAuthProfileConfig, n as validateAnthropicSetupToken } from "./auth-token-CNnt7guc.js";
|
|
23
23
|
import { n as logConfigUpdated } from "./logging-BGewRZy0.js";
|
|
24
|
-
import { a as createVpsAwareOAuthHandlers, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-
|
|
24
|
+
import { a as createVpsAwareOAuthHandlers, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-DqJ69hdw.js";
|
|
25
25
|
import path from "node:path";
|
|
26
26
|
import fs from "node:fs/promises";
|
|
27
27
|
import { complete, getEnvApiKey, getModel } from "@mariozechner/pi-ai";
|
|
@@ -14,7 +14,7 @@ import "./client-LeVQns9-.js";
|
|
|
14
14
|
import "./call-BQiCOxB6.js";
|
|
15
15
|
import "./message-channel-C9dERklz.js";
|
|
16
16
|
import "./pairing-token-Byh6drgn.js";
|
|
17
|
-
import "./subagent-registry-
|
|
17
|
+
import "./subagent-registry-BH79W7i1.js";
|
|
18
18
|
import "./sessions-DJAxaVI7.js";
|
|
19
19
|
import "./tokens-Csntmwwn.js";
|
|
20
20
|
import "./plugins-CwSlLxM8.js";
|
|
@@ -104,8 +104,8 @@ import "./table-D01d2GuY.js";
|
|
|
104
104
|
import "./shared-CLXhDldI.js";
|
|
105
105
|
import "./auth-token-CNnt7guc.js";
|
|
106
106
|
import "./logging-BGewRZy0.js";
|
|
107
|
-
import { c as githubCopilotLoginCommand } from "./provider-auth-helpers-
|
|
108
|
-
import { C as modelsAliasesListCommand, S as modelsAliasesAddCommand, _ as modelsAuthOrderSetCommand, a as modelsStatusCommand, b as modelsAuthPasteTokenCommand, c as modelsImageFallbacksClearCommand, d as modelsFallbacksAddCommand, f as modelsFallbacksClearCommand, g as modelsAuthOrderGetCommand, h as modelsAuthOrderClearCommand, i as modelsScanCommand, l as modelsImageFallbacksListCommand, m as modelsFallbacksRemoveCommand, n as modelsSetImageCommand, o as modelsListCommand, p as modelsFallbacksListCommand, r as modelsSetCommand, s as modelsImageFallbacksAddCommand, u as modelsImageFallbacksRemoveCommand, v as modelsAuthAddCommand, w as modelsAliasesRemoveCommand, x as modelsAuthSetupTokenCommand, y as modelsAuthLoginCommand } from "./models-
|
|
107
|
+
import { c as githubCopilotLoginCommand } from "./provider-auth-helpers-DqJ69hdw.js";
|
|
108
|
+
import { C as modelsAliasesListCommand, S as modelsAliasesAddCommand, _ as modelsAuthOrderSetCommand, a as modelsStatusCommand, b as modelsAuthPasteTokenCommand, c as modelsImageFallbacksClearCommand, d as modelsFallbacksAddCommand, f as modelsFallbacksClearCommand, g as modelsAuthOrderGetCommand, h as modelsAuthOrderClearCommand, i as modelsScanCommand, l as modelsImageFallbacksListCommand, m as modelsFallbacksRemoveCommand, n as modelsSetImageCommand, o as modelsListCommand, p as modelsFallbacksListCommand, r as modelsSetCommand, s as modelsImageFallbacksAddCommand, u as modelsImageFallbacksRemoveCommand, v as modelsAuthAddCommand, w as modelsAliasesRemoveCommand, x as modelsAuthSetupTokenCommand, y as modelsAuthLoginCommand } from "./models-CZSMuo5B.js";
|
|
109
109
|
|
|
110
110
|
//#region src/cli/models-cli.ts
|
|
111
111
|
function runModelsCommand(action) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as CONFIG_PATH } from "./paths-Cqn-zk3M.js";
|
|
2
2
|
import { B as theme, R as colorize, S as shortenHomePath, z as isRich$1 } from "./utils-B-0b9bGM.js";
|
|
3
3
|
import "./thinking-EAliFiVK.js";
|
|
4
|
-
import { Ct as resolveUsageProviderId, Jt as describeFailoverError, St as formatUsageWindowSummary, bt as loadProviderUsageSummary, fr as maskApiKey, hr as formatRemainingShort, l as runEmbeddedPiAgent, mr as buildAuthHealthSummary, pr as DEFAULT_OAUTH_WARN_MS } from "./reply-
|
|
4
|
+
import { Ct as resolveUsageProviderId, Jt as describeFailoverError, St as formatUsageWindowSummary, bt as loadProviderUsageSummary, fr as maskApiKey, hr as formatRemainingShort, l as runEmbeddedPiAgent, mr as buildAuthHealthSummary, pr as DEFAULT_OAUTH_WARN_MS } from "./reply-D_FZec1Q.js";
|
|
5
5
|
import "./registry-Cja8eT7G.js";
|
|
6
6
|
import { f as defaultRuntime } from "./subsystem-D9vIQve0.js";
|
|
7
7
|
import "./exec-CWkblSrI.js";
|
|
@@ -110,7 +110,7 @@ import { n as redactSecrets } from "./format-yQZNwAF2.js";
|
|
|
110
110
|
import { a as isLocalBaseUrl, c as normalizeAlias, d as resolveModelTarget, f as updateConfig, i as formatTokenK, l as resolveKnownAgentId, n as ensureFlagCompatibility, o as loadValidConfigOrThrow, r as formatMs, s as mergePrimaryFallbackConfig, t as applyDefaultModelPrimaryUpdate, u as resolveModelKeysFromEntries } from "./shared-CMw4odDH.js";
|
|
111
111
|
import { d as applyAuthProfileConfig, n as validateAnthropicSetupToken } from "./auth-token-BrlnZiCq.js";
|
|
112
112
|
import { n as logConfigUpdated } from "./logging-BzzwiKjv.js";
|
|
113
|
-
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-
|
|
113
|
+
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-CeJqzcdK.js";
|
|
114
114
|
import { t as ensurePiAuthJsonFromAuthProfiles } from "./system-cli-BMrwtPdR.js";
|
|
115
115
|
import path from "node:path";
|
|
116
116
|
import fs from "node:fs/promises";
|
|
@@ -11,8 +11,8 @@ import { t as createClackPrompter } from "./clack-prompter-B7pN13HV.js";
|
|
|
11
11
|
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-CjgoCPLb.js";
|
|
12
12
|
import { r as isSystemdUserServiceAvailable } from "./systemd-riq8uNJQ.js";
|
|
13
13
|
import { t as resolveGatewayService } from "./service-Cl74hx8J.js";
|
|
14
|
-
import { r as healthCommand } from "./health-
|
|
15
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
14
|
+
import { r as healthCommand } from "./health-9kUMJPU4.js";
|
|
15
|
+
import { t as runOnboardingWizard } from "./onboarding-Ckpz4QDg.js";
|
|
16
16
|
import { $ as setHuggingfaceApiKey, A as applyXaiConfig, B as applyVercelAiGatewayConfig, E as applyTogetherConfig, I as applyLitellmConfig, M as applyXiaomiConfig, O as applyVeniceConfig, P as applyZaiConfig, Q as setGeminiApiKey, R as applyCloudflareAiGatewayConfig, S as applyQianfanConfig, X as setAnthropicApiKey, Z as setCloudflareAiGatewayConfig, _ as applyMoonshotConfigCn, a as applyMinimaxApiConfig, at as setOpenrouterApiKey, b as applyOpenrouterConfig, ct as setTogetherApiKey, d as applyAuthProfileConfig, dt as setXaiApiKey, et as setKimiCodingApiKey, f as applyHuggingfaceConfig, ft as setXiaomiApiKey, g as applyMoonshotConfig, it as setOpencodeZenApiKey, l as applyMinimaxConfig, lt as setVeniceApiKey, m as applyKimiCodeConfig, n as validateAnthropicSetupToken, nt as setMinimaxApiKey, o as applyMinimaxApiConfigCn, ot as setQianfanApiKey, pt as setZaiApiKey, r as applyOpencodeZenConfig, rt as setMoonshotApiKey, st as setSyntheticApiKey, t as buildTokenProfileId, tt as setLitellmApiKey, ut as setVercelAiGatewayApiKey, w as applySyntheticConfig } from "./auth-token-BrlnZiCq.js";
|
|
17
17
|
import { n as logConfigUpdated } from "./logging-BzzwiKjv.js";
|
|
18
18
|
import { n as isDeprecatedAuthChoice, r as normalizeLegacyOnboardAuthChoice } from "./auth-choice-legacy-Ch38-Kbr.js";
|
|
@@ -9,8 +9,8 @@ import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, r as isGate
|
|
|
9
9
|
import { t as assertSupportedRuntime } from "./runtime-guard-D7waq_Ho.js";
|
|
10
10
|
import { r as isSystemdUserServiceAvailable } from "./systemd-DlMdyFDY.js";
|
|
11
11
|
import { t as resolveGatewayService } from "./service-Cm9j9WzQ.js";
|
|
12
|
-
import { r as healthCommand } from "./health-
|
|
13
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
12
|
+
import { r as healthCommand } from "./health-BUaaGug2.js";
|
|
13
|
+
import { t as runOnboardingWizard } from "./onboarding-g2bI9l8x.js";
|
|
14
14
|
import { $ as setHuggingfaceApiKey, A as applyXaiConfig, B as applyVercelAiGatewayConfig, E as applyTogetherConfig, I as applyLitellmConfig, M as applyXiaomiConfig, O as applyVeniceConfig, P as applyZaiConfig, Q as setGeminiApiKey, R as applyCloudflareAiGatewayConfig, S as applyQianfanConfig, X as setAnthropicApiKey, Z as setCloudflareAiGatewayConfig, _ as applyMoonshotConfigCn, a as applyMinimaxApiConfig, at as setOpenrouterApiKey, b as applyOpenrouterConfig, ct as setTogetherApiKey, d as applyAuthProfileConfig, dt as setXaiApiKey, et as setKimiCodingApiKey, f as applyHuggingfaceConfig, ft as setXiaomiApiKey, g as applyMoonshotConfig, it as setOpencodeZenApiKey, l as applyMinimaxConfig, lt as setVeniceApiKey, m as applyKimiCodeConfig, n as validateAnthropicSetupToken, nt as setMinimaxApiKey, o as applyMinimaxApiConfigCn, ot as setQianfanApiKey, pt as setZaiApiKey, r as applyOpencodeZenConfig, rt as setMoonshotApiKey, st as setSyntheticApiKey, t as buildTokenProfileId, tt as setLitellmApiKey, ut as setVercelAiGatewayApiKey, w as applySyntheticConfig } from "./auth-token-CNnt7guc.js";
|
|
15
15
|
import { n as logConfigUpdated } from "./logging-BGewRZy0.js";
|
|
16
16
|
import { n as isDeprecatedAuthChoice, r as normalizeLegacyOnboardAuthChoice } from "./auth-choice-legacy-BKXTgyr4.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { gt as loadSymiPlugins, ht as createPluginLoaderLogger } from "./reply-
|
|
2
|
+
import { gt as loadSymiPlugins, ht as createPluginLoaderLogger } from "./reply-D_FZec1Q.js";
|
|
3
3
|
import { h as normalizeAccountId, m as DEFAULT_ACCOUNT_ID } from "./session-key-DCt45XZa.js";
|
|
4
4
|
import { a as formatChannelSelectionLine, i as formatChannelPrimerLine, s as listChatChannels } from "./registry-Cja8eT7G.js";
|
|
5
5
|
import { t as createSubsystemLogger } from "./subsystem-D9vIQve0.js";
|
|
@@ -3,7 +3,7 @@ import { E as formatChannelSelectionLine, O as listChatChannels, T as formatChan
|
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-BtYOfWxC.js";
|
|
4
4
|
import { h as normalizeAccountId, m as DEFAULT_ACCOUNT_ID } from "./session-key-DjZ7Z1hW.js";
|
|
5
5
|
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-D-jRCY0d.js";
|
|
6
|
-
import { _ as loadSymiPlugins, g as createPluginLoaderLogger } from "./subagent-registry-
|
|
6
|
+
import { _ as loadSymiPlugins, g as createPluginLoaderLogger } from "./subagent-registry-BH79W7i1.js";
|
|
7
7
|
import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-CwSlLxM8.js";
|
|
8
8
|
import { t as formatDocsLink } from "./links-DlWpl9Yv.js";
|
|
9
9
|
import { r as listChannelPluginCatalogEntries } from "./catalog-DLQFKucJ.js";
|
|
@@ -225,7 +225,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
225
225
|
const { ensureAuthProfileStore } = await import("./model-selection-Csawd2_i.js").then((n) => n.dt);
|
|
226
226
|
const { promptAuthChoiceGrouped } = await import("./auth-choice-prompt-BLzEBA1v.js").then((n) => n.t);
|
|
227
227
|
const { promptCustomApiConfig } = await import("./onboard-custom-DoIhWPnb.js").then((n) => n.r);
|
|
228
|
-
const { applyAuthChoice, resolvePreferredProviderForAuthChoice, warnIfModelConfigLooksOff } = await import("./auth-choice-
|
|
228
|
+
const { applyAuthChoice, resolvePreferredProviderForAuthChoice, warnIfModelConfigLooksOff } = await import("./auth-choice-DxhF9BuU.js").then((n) => n.t);
|
|
229
229
|
const { applyPrimaryModel, promptDefaultModel } = await import("./model-picker-DXwUsLAy.js").then((n) => n.i);
|
|
230
230
|
const authStore = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false });
|
|
231
231
|
const authChoiceFromPrompt = opts.authChoice === void 0;
|
|
@@ -278,7 +278,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
278
278
|
if (opts.skipChannels ?? opts.skipProviders) await prompter.note("Skipping channel setup.", "Channels");
|
|
279
279
|
else {
|
|
280
280
|
const { listChannelPlugins } = await import("./plugins-DKDeQZF0.js").then((n) => n.i);
|
|
281
|
-
const { setupChannels } = await import("./onboard-channels-
|
|
281
|
+
const { setupChannels } = await import("./onboard-channels-dfTDyb59.js").then((n) => n.n);
|
|
282
282
|
const quickstartAllowFromChannels = flow === "quickstart" ? listChannelPlugins().filter((plugin) => plugin.meta.quickstartAllowFrom).map((plugin) => plugin.id) : [];
|
|
283
283
|
nextConfig = await setupChannels(nextConfig, runtime, prompter, {
|
|
284
284
|
allowSignalInstall: true,
|
|
@@ -304,7 +304,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
304
304
|
mode
|
|
305
305
|
});
|
|
306
306
|
await writeConfigFile(nextConfig);
|
|
307
|
-
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-
|
|
307
|
+
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-MWEKi_hL.js");
|
|
308
308
|
const { launchedTui } = await finalizeOnboardingWizard({
|
|
309
309
|
flow,
|
|
310
310
|
opts,
|
|
@@ -223,7 +223,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
223
223
|
const { ensureAuthProfileStore } = await import("./auth-profiles-BD22fK4p.js").then((n) => n.t);
|
|
224
224
|
const { promptAuthChoiceGrouped } = await import("./auth-choice-prompt-DVcYPG2v.js").then((n) => n.t);
|
|
225
225
|
const { promptCustomApiConfig } = await import("./onboard-custom-BKR6vm2R.js").then((n) => n.r);
|
|
226
|
-
const { applyAuthChoice, resolvePreferredProviderForAuthChoice, warnIfModelConfigLooksOff } = await import("./auth-choice-
|
|
226
|
+
const { applyAuthChoice, resolvePreferredProviderForAuthChoice, warnIfModelConfigLooksOff } = await import("./auth-choice-1csNxn5J.js").then((n) => n.t);
|
|
227
227
|
const { applyPrimaryModel, promptDefaultModel } = await import("./model-picker-ay4NPk8S.js").then((n) => n.i);
|
|
228
228
|
const authStore = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false });
|
|
229
229
|
const authChoiceFromPrompt = opts.authChoice === void 0;
|
|
@@ -276,7 +276,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
276
276
|
if (opts.skipChannels ?? opts.skipProviders) await prompter.note("Skipping channel setup.", "Channels");
|
|
277
277
|
else {
|
|
278
278
|
const { listChannelPlugins } = await import("./plugins-CwSlLxM8.js").then((n) => n.i);
|
|
279
|
-
const { setupChannels } = await import("./onboard-channels-
|
|
279
|
+
const { setupChannels } = await import("./onboard-channels-oFTqVfhO.js").then((n) => n.n);
|
|
280
280
|
const quickstartAllowFromChannels = flow === "quickstart" ? listChannelPlugins().filter((plugin) => plugin.meta.quickstartAllowFrom).map((plugin) => plugin.id) : [];
|
|
281
281
|
nextConfig = await setupChannels(nextConfig, runtime, prompter, {
|
|
282
282
|
allowSignalInstall: true,
|
|
@@ -302,7 +302,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
302
302
|
mode
|
|
303
303
|
});
|
|
304
304
|
await writeConfigFile(nextConfig);
|
|
305
|
-
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-
|
|
305
|
+
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-C1lR3Y__.js");
|
|
306
306
|
const { launchedTui } = await finalizeOnboardingWizard({
|
|
307
307
|
flow,
|
|
308
308
|
opts,
|
|
@@ -14,7 +14,7 @@ import "./client-LeVQns9-.js";
|
|
|
14
14
|
import "./call-BQiCOxB6.js";
|
|
15
15
|
import "./message-channel-C9dERklz.js";
|
|
16
16
|
import "./pairing-token-Byh6drgn.js";
|
|
17
|
-
import "./subagent-registry-
|
|
17
|
+
import "./subagent-registry-BH79W7i1.js";
|
|
18
18
|
import "./sessions-DJAxaVI7.js";
|
|
19
19
|
import "./tokens-Csntmwwn.js";
|
|
20
20
|
import "./plugins-CwSlLxM8.js";
|
|
@@ -99,18 +99,18 @@ import "./prompt-style-DwCXob2h.js";
|
|
|
99
99
|
import "./pairing-labels-sIj1ZLt-.js";
|
|
100
100
|
import "./pi-tools.policy-T6Z5F-_n.js";
|
|
101
101
|
import "./note-DDecZomM.js";
|
|
102
|
-
import "./register.subclis-
|
|
103
|
-
import "./command-registry-
|
|
102
|
+
import "./register.subclis-BrOWQICr.js";
|
|
103
|
+
import "./command-registry-S2yEeoft.js";
|
|
104
104
|
import "./program-context-CqzR_m-7.js";
|
|
105
|
-
import { r as installCompletion } from "./completion-cli-
|
|
105
|
+
import { r as installCompletion } from "./completion-cli-u1z9O4lQ.js";
|
|
106
106
|
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-B38pOixq.js";
|
|
107
107
|
import "./runtime-guard-D7waq_Ho.js";
|
|
108
108
|
import { r as isSystemdUserServiceAvailable } from "./systemd-DlMdyFDY.js";
|
|
109
109
|
import { t as resolveGatewayService } from "./service-Cm9j9WzQ.js";
|
|
110
|
-
import { r as healthCommand } from "./health-
|
|
110
|
+
import { r as healthCommand } from "./health-BUaaGug2.js";
|
|
111
111
|
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-BseSWee1.js";
|
|
112
112
|
import { t as formatHealthCheckFailure } from "./health-format-CzgUHmmX.js";
|
|
113
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
113
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-Beg_3VG2.js";
|
|
114
114
|
import { t as runTui } from "./tui-0rURH3b3.js";
|
|
115
115
|
import os from "node:os";
|
|
116
116
|
import path from "node:path";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./paths-Cqn-zk3M.js";
|
|
2
2
|
import { h as pathExists, y as resolveUserPath } from "./utils-B-0b9bGM.js";
|
|
3
3
|
import "./thinking-EAliFiVK.js";
|
|
4
|
-
import "./reply-
|
|
4
|
+
import "./reply-D_FZec1Q.js";
|
|
5
5
|
import "./registry-Cja8eT7G.js";
|
|
6
6
|
import { p as restoreTerminalState } from "./subsystem-D9vIQve0.js";
|
|
7
7
|
import "./exec-CWkblSrI.js";
|
|
@@ -103,16 +103,16 @@ import "./control-service-DMz_CcLi.js";
|
|
|
103
103
|
import "./stagger-BUClb97_.js";
|
|
104
104
|
import "./channel-selection-DuWs0Aak.js";
|
|
105
105
|
import "./runtime-guard-B37eizu-.js";
|
|
106
|
-
import "./program-context-
|
|
106
|
+
import "./program-context-CS1wSnZE.js";
|
|
107
107
|
import "./note-DeHoW7xO.js";
|
|
108
|
-
import { r as installCompletion } from "./completion-cli-
|
|
108
|
+
import { r as installCompletion } from "./completion-cli-BrgaQVPk.js";
|
|
109
109
|
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-CjgoCPLb.js";
|
|
110
110
|
import { r as isSystemdUserServiceAvailable } from "./systemd-riq8uNJQ.js";
|
|
111
111
|
import { t as resolveGatewayService } from "./service-Cl74hx8J.js";
|
|
112
|
-
import { r as healthCommand } from "./health-
|
|
112
|
+
import { r as healthCommand } from "./health-9kUMJPU4.js";
|
|
113
113
|
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-Z947tKLt.js";
|
|
114
114
|
import { t as formatHealthCheckFailure } from "./health-format-DSwnXZPU.js";
|
|
115
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
115
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-94bdxcgy.js";
|
|
116
116
|
import { t as runTui } from "./tui-CcirlGg5.js";
|
|
117
117
|
import os from "node:os";
|
|
118
118
|
import path from "node:path";
|
|
@@ -51483,7 +51483,7 @@ function isVoiceChannelType(type) {
|
|
|
51483
51483
|
function createDefaultDeps() {
|
|
51484
51484
|
return {
|
|
51485
51485
|
sendMessageWhatsApp: async (...args) => {
|
|
51486
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
51486
|
+
const { sendMessageWhatsApp } = await import("./web-D3J3pm9B.js");
|
|
51487
51487
|
return await sendMessageWhatsApp(...args);
|
|
51488
51488
|
},
|
|
51489
51489
|
sendMessageTelegram: async (...args) => {
|
|
@@ -66762,7 +66762,7 @@ function loadWebLoginQr() {
|
|
|
66762
66762
|
return webLoginQrPromise;
|
|
66763
66763
|
}
|
|
66764
66764
|
function loadWebChannel() {
|
|
66765
|
-
webChannelPromise ??= import("./web-
|
|
66765
|
+
webChannelPromise ??= import("./web-D3J3pm9B.js");
|
|
66766
66766
|
return webChannelPromise;
|
|
66767
66767
|
}
|
|
66768
66768
|
function loadWhatsAppActions() {
|
|
@@ -75820,6 +75820,28 @@ async function runEmbeddedAttempt(params) {
|
|
|
75820
75820
|
effectivePrompt = `${hookResult.prependContext}\n\n${params.prompt}`;
|
|
75821
75821
|
log$2.debug(`hooks: prepended context to prompt (${hookResult.prependContext.length} chars)`);
|
|
75822
75822
|
}
|
|
75823
|
+
{
|
|
75824
|
+
const autoRecallAgentId = normalizeAgentId(params.sessionKey);
|
|
75825
|
+
if ((params.config ? resolveMemorySearchConfig(params.config, autoRecallAgentId) : null) && params.config) try {
|
|
75826
|
+
const { manager } = await getMemorySearchManager({
|
|
75827
|
+
cfg: params.config,
|
|
75828
|
+
agentId: autoRecallAgentId
|
|
75829
|
+
});
|
|
75830
|
+
if (manager) {
|
|
75831
|
+
const recallResults = await manager.search(params.prompt, {
|
|
75832
|
+
maxResults: 4,
|
|
75833
|
+
sessionKey: params.sessionKey
|
|
75834
|
+
});
|
|
75835
|
+
if (recallResults.length > 0) {
|
|
75836
|
+
const recallBlock = `<memory_context>\nThe following memory snippets were automatically retrieved as relevant context:\n\n${recallResults.map((r) => `[${r.path}#L${r.startLine}-L${r.endLine}]\n${r.snippet}`).join("\n---\n")}\n</memory_context>`;
|
|
75837
|
+
effectivePrompt = `${recallBlock}\n\n${effectivePrompt}`;
|
|
75838
|
+
log$2.debug(`auto-recall: injected ${recallResults.length} snippets (${recallBlock.length} chars)`);
|
|
75839
|
+
}
|
|
75840
|
+
}
|
|
75841
|
+
} catch (recallErr) {
|
|
75842
|
+
log$2.debug(`auto-recall: skipped (${String(recallErr)})`);
|
|
75843
|
+
}
|
|
75844
|
+
}
|
|
75823
75845
|
log$2.debug(`embedded run prompt start: runId=${params.runId} sessionId=${params.sessionId}`);
|
|
75824
75846
|
cacheTrace?.recordStage("prompt:before", {
|
|
75825
75847
|
prompt: effectivePrompt,
|