@symerian/symi 2.6.6 → 2.6.8
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-DPdRUY_O.js → agents-DUCHzmZ7.js} +4 -4
- package/dist/{agents.config-Cr6DcdaD.js → agents.config-CHQebF9q.js} +1 -1
- package/dist/{agents.config-DIumfxnN.js → agents.config-CwoBiqZ_.js} +1 -1
- package/dist/{auth-choice-C5etRQcH.js → auth-choice-B1zaWakt.js} +1 -1
- package/dist/{auth-choice-z3-Baeyd.js → auth-choice-DGzjLihE.js} +1 -1
- package/dist/{banner-om7BRUIc.js → banner-Dy01rdll.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-BqnokE7_.js → channel-options-Ba5tfq9-.js} +1 -1
- package/dist/{channel-options-Cb1PgfNV.js → channel-options-Cte5qJHT.js} +1 -1
- package/dist/{channel-web-DztB2W6w.js → channel-web-NGDI-tJN.js} +1 -1
- package/dist/{channels-cli-xlZ2mjBu.js → channels-cli-BDlDCL3R.js} +4 -4
- package/dist/{channels-cli-R2PHQWVd.js → channels-cli-CgNtcB-z.js} +4 -4
- package/dist/{cli-DLly6H0w.js → cli-C2ZGBmO9.js} +1 -1
- package/dist/{cli-DNGrFH7L.js → cli-Da_Dnvvp.js} +1 -1
- package/dist/{command-registry-xEOR2NPq.js → command-registry-CLcFUFJs.js} +9 -9
- package/dist/{completion-cli-CRhFwMiA.js → completion-cli-BzXhONEe.js} +2 -2
- package/dist/{completion-cli-CFJbuU6i.js → completion-cli-MbaQCbTj.js} +1 -1
- package/dist/{config-cli-CbdeNt0M.js → config-cli-BHHGJx1I.js} +1 -1
- package/dist/{config-cli-BaH8OVQ-.js → config-cli-CT6Q4rhy.js} +1 -1
- package/dist/{configure-BmNOfGox.js → configure-BOLt9A-A.js} +3 -3
- package/dist/{configure-D5dSJprr.js → configure-CVcHuLVe.js} +3 -3
- package/dist/{doctor-completion-DCc4SxWN.js → doctor-completion-BZ-FYLu9.js} +1 -1
- package/dist/{doctor-completion-D0L7wK2h.js → doctor-completion-CislKWHy.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +1 -1
- package/dist/{gateway-cli-DYXn5A0z.js → gateway-cli-2yQf_hKZ.js} +168 -35
- package/dist/{gateway-cli-zN6V2qw8.js → gateway-cli-Bzz6Rduw.js} +167 -34
- package/dist/{glass-ui-ws-Cj9wbO1L.js → glass-ui-ws-ibSNo7RU.js} +7 -7
- package/dist/{glass-ui-ws-B7V2wHEu.js → glass-ui-ws-uRv3KH-0.js} +7 -7
- package/dist/{health-DUKLANXu.js → health-CBwxQHlQ.js} +1 -1
- package/dist/{health-BPOuBmYt.js → health-D4ySlvOE.js} +1 -1
- package/dist/{hooks-cli-BF0mbqlZ.js → hooks-cli-BFN2xMj8.js} +2 -2
- package/dist/{hooks-cli-BpfIySkB.js → hooks-cli-CreZeBlG.js} +2 -2
- package/dist/index.js +6 -6
- package/dist/llm-slug-generator.js +1 -1
- package/dist/{models-Bt8lm_nD.js → models-Dk7Q5cSF.js} +2 -2
- package/dist/{models-cli-bHYoiL5x.js → models-cli-C9Y-HfLg.js} +2 -2
- package/dist/{models-cli-BmBmBUgl.js → models-cli-DzSb3Scm.js} +3 -3
- package/dist/{onboard-ttzux1w7.js → onboard-D_PsLQiw.js} +2 -2
- package/dist/{onboard-i7lit3dF.js → onboard-N-KB8jvT.js} +2 -2
- package/dist/{onboard-channels-DEFF3Rjo.js → onboard-channels-Bp74i8iG.js} +1 -1
- package/dist/{onboard-channels-D0RHtaJE.js → onboard-channels-VuJyK9g-.js} +1 -1
- package/dist/{onboarding-CAlILYcN.js → onboarding-CRAQ2s_3.js} +3 -3
- package/dist/{onboarding-By0D-QmK.js → onboarding-D1AsOvXd.js} +3 -3
- package/dist/{onboarding.finalize-DSNIp08z.js → onboarding.finalize-DLUoLFNl.js} +6 -6
- package/dist/{onboarding.finalize-BDmc4k2T.js → onboarding.finalize-ZYLgVmdn.js} +5 -5
- package/dist/{pi-embedded-BzE5v-JN.js → pi-embedded-BSoqm4lP.js} +47 -52
- package/dist/{plugin-registry-C1ghjhOE.js → plugin-registry-CTu9B9S3.js} +1 -1
- package/dist/{plugin-registry-CDIOKK_i.js → plugin-registry-DDIcHkNU.js} +1 -1
- package/dist/plugin-sdk/{accounts-BToL3HlP.js → accounts-BtaOa4z_.js} +1 -1
- package/dist/plugin-sdk/{accounts-D9zGZU5t.js → accounts-Ddm33hQm.js} +3 -3
- package/dist/plugin-sdk/{accounts-Dtszw3Zn.js → accounts-s-AdhXVR.js} +1 -1
- package/dist/plugin-sdk/{active-listener-bEk__wbB.js → active-listener-BXYeALs0.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-C3gMMKCU.js → agent-scope-CYYpcO9W.js} +2 -2
- package/dist/plugin-sdk/agents/pi-tools.validate-wrapper.d.ts +8 -8
- package/dist/plugin-sdk/{api-key-rotation-CVBMpnPc.js → api-key-rotation-D_sMvI5W.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-DoQQKlxa.js → audio-preflight-VpItkiy3.js} +24 -24
- package/dist/plugin-sdk/{bindings-BbwoUGPx.js → bindings-C7hRtgYW.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-Ji7f0gqq.js → channel-activity-DoC1xtDu.js} +1 -1
- package/dist/plugin-sdk/{channel-web-CxwLjrWk.js → channel-web-BmV3Tuy0.js} +22 -22
- package/dist/plugin-sdk/{chrome-C7c_0I5M.js → chrome-B7RdxmJ0.js} +3 -3
- package/dist/plugin-sdk/{chunk-jvk9axTQ.js → chunk-Dw2XBYXv.js} +1 -1
- package/dist/plugin-sdk/{command-format-DSdvQ_M5.js → command-format-GKSevep4.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-CQFbmUMs.js → commands-registry-COIaslGl.js} +4 -4
- package/dist/plugin-sdk/{config-DDkdiUOR.js → config-KlTNfkFF.js} +9 -9
- package/dist/plugin-sdk/{deliver-BZ6iNLl7.js → deliver-BZ99UKQq.js} +10 -10
- package/dist/plugin-sdk/{diagnostic-mFf4i4G9.js → diagnostic-05pm5Rxi.js} +1 -1
- package/dist/plugin-sdk/{image-BOYy0Ump.js → image-CLOPx7yW.js} +4 -4
- package/dist/plugin-sdk/{image-ops-Bnp6LXEx.js → image-ops-BlQR__MN.js} +1 -1
- package/dist/plugin-sdk/index.js +53 -53
- package/dist/plugin-sdk/{ir-Fb3qpcis.js → ir-BJ6BHE5b.js} +4 -4
- package/dist/plugin-sdk/{local-roots-Ckk1QfzI.js → local-roots-BHLNSI8U.js} +3 -3
- package/dist/plugin-sdk/{login-Bh3DZPam.js → login-DQMXuxOk.js} +7 -7
- package/dist/plugin-sdk/{login-qr-DbR7odSr.js → login-qr-BjVZSoCi.js} +9 -9
- package/dist/plugin-sdk/{manager-DckktAQ3.js → manager-CBSBFuFz.js} +8 -8
- package/dist/plugin-sdk/{manifest-registry-B3ugY9-f.js → manifest-registry-CPnHl_K3.js} +1 -1
- package/dist/plugin-sdk/{markdown-tables-Dfaqilz6.js → markdown-tables-BoYFajMu.js} +1 -1
- package/dist/plugin-sdk/{message-channel-BdI5Ra9S.js → message-channel-COTAJzHd.js} +1 -1
- package/dist/plugin-sdk/{model-selection-OpU8HN50.js → model-selection-CsbEfrS0.js} +4 -4
- package/dist/plugin-sdk/{outbound-rF6G8Xpr.js → outbound-B0e8KdaR.js} +7 -7
- package/dist/plugin-sdk/{outbound-attachment-DnVQfTG2.js → outbound-attachment-CnslKL38.js} +2 -2
- package/dist/plugin-sdk/{pi-auth-json-CJk8t14T.js → pi-auth-json-qWi7ZIYV.js} +5 -5
- package/dist/plugin-sdk/{pi-embedded-helpers-BveUP4hk.js → pi-embedded-helpers-CW630epe.js} +17 -17
- package/dist/plugin-sdk/{plugins-BbAvhC25.js → plugins-BNByVCIH.js} +4 -4
- package/dist/plugin-sdk/{pw-ai-DjGUsee-.js → pw-ai-CnbPIPY9.js} +8 -8
- package/dist/plugin-sdk/{qmd-manager-mjKcdwVr.js → qmd-manager-CH0XbIHf.js} +4 -4
- package/dist/plugin-sdk/{registry--_pGht6S.js → registry-D0xTnUWt.js} +2 -2
- package/dist/plugin-sdk/{replies-fI39rPGa.js → replies-LLcQL3w6.js} +3 -3
- package/dist/plugin-sdk/{reply-CyZfsjrl.js → reply-LQcs9anV.js} +123 -128
- package/dist/plugin-sdk/{reply-prefix-BHuV5t70.js → reply-prefix-uxfMZW4p.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-BkCUbYGV.js → resolve-outbound-target-BiyAyTWz.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-D3JH_D2N.js → resolve-route-B3CCBumQ.js} +3 -3
- package/dist/plugin-sdk/{retry-ilSJqnz9.js → retry-CwQ_iIj8.js} +1 -1
- package/dist/plugin-sdk/{runner-BVqnEfNe.js → runner-CGBT7tgF.js} +9 -9
- package/dist/plugin-sdk/{send-BtANzsAo.js → send-B2CEnVLL.js} +6 -6
- package/dist/plugin-sdk/{send-BHbXh8Ly.js → send-C5h_YxNb.js} +7 -7
- package/dist/plugin-sdk/{send-D6LMZJ_h.js → send-CRsR8-vO.js} +10 -10
- package/dist/plugin-sdk/{send-Bxdu6ZZy.js → send-CjOBB3Vo.js} +10 -10
- package/dist/plugin-sdk/{send-BMfJIhCk.js → send-pYqe432l.js} +6 -6
- package/dist/plugin-sdk/{session-kI0tzViQ.js → session-BsOrxiMj.js} +4 -4
- package/dist/plugin-sdk/{skill-commands-DCNXVERE.js → skill-commands-ff_01_r3.js} +5 -5
- package/dist/plugin-sdk/{skills-B1GeRYlu.js → skills-_yTP47Cd.js} +7 -7
- package/dist/plugin-sdk/{sqlite-Cq_7Cg4E.js → sqlite-CxAR5ttJ.js} +1 -1
- package/dist/plugin-sdk/{store-Do3t33-c.js → store-BdrNabcU.js} +2 -2
- package/dist/plugin-sdk/{subsystem-Coz2AgU8.js → subsystem-B2uDN3TV.js} +1 -1
- package/dist/plugin-sdk/{tables-DR0NmBeH.js → tables-DNwXwNFa.js} +1 -1
- package/dist/plugin-sdk/{target-errors-B7YyMnIi.js → target-errors-Paro1BjP.js} +2 -2
- package/dist/plugin-sdk/{thinking-DCNUIAHY.js → thinking-CXqf7WTe.js} +5 -5
- package/dist/plugin-sdk/{tokens-CWMflosr.js → tokens-bC3UVmVH.js} +1 -1
- package/dist/plugin-sdk/{tool-images-D7Lno-TE.js → tool-images-HJ2sfZDV.js} +2 -2
- package/dist/plugin-sdk/{tool-loop-detection-DU5sTIKg.js → tool-loop-detection-at_K42K7.js} +2 -2
- package/dist/plugin-sdk/web-DvzecOyx.js +65 -0
- package/dist/plugin-sdk/{whatsapp-actions-CcBzDuL-.js → whatsapp-actions-DfseosPO.js} +21 -21
- package/dist/{plugins-cli-BFCJyRBX.js → plugins-cli-DJUkvonf.js} +2 -2
- package/dist/{plugins-cli-jv-Bqq1t.js → plugins-cli-DdfBwKlP.js} +2 -2
- package/dist/{program-sDlUcw2S.js → program-DyPb-tj_.js} +7 -7
- package/dist/{program-context-N9-4Ubpp.js → program-context-Bz_GuT_l.js} +17 -17
- package/dist/{prompt-select-styled-BtG_t1Tf.js → prompt-select-styled-BKnaBZhj.js} +4 -4
- package/dist/{prompt-select-styled-eBoNrCn6.js → prompt-select-styled-CghdSf8F.js} +4 -4
- package/dist/{provider-auth-helpers-CqDTEFnD.js → provider-auth-helpers-BdNgfdWd.js} +1 -1
- package/dist/{provider-auth-helpers-CfBPNN7J.js → provider-auth-helpers-CXKXgdFl.js} +1 -1
- package/dist/{push-apns-CVRC-O3Q.js → push-apns-A--Taj2b.js} +1 -1
- package/dist/{push-apns-CHIVwHRD.js → push-apns-Cdjd6L8R.js} +1 -1
- package/dist/{register.agent-B0ExzmtM.js → register.agent-BLWVTdIg.js} +6 -6
- package/dist/{register.agent-DD2QErXm.js → register.agent-C4tjED3B.js} +5 -5
- package/dist/{register.configure-ByNKeAo7.js → register.configure-De6KxZc8.js} +6 -6
- package/dist/{register.configure-DpHCcS5d.js → register.configure-DkNQpMco.js} +6 -6
- package/dist/{register.maintenance-BMrBjqU4.js → register.maintenance-B7dlUmZQ.js} +7 -7
- package/dist/{register.maintenance-_S91q7Rv.js → register.maintenance-el_O34pN.js} +8 -8
- package/dist/{register.message-DZ45n1GX.js → register.message-Bg38q7xU.js} +2 -2
- package/dist/{register.message-BveFb6IW.js → register.message-CNub6pDr.js} +2 -2
- package/dist/{register.onboard-CLGWOBoy.js → register.onboard-DUIvvhd3.js} +4 -4
- package/dist/{register.onboard-CUTbssYt.js → register.onboard-OXQpAbIU.js} +4 -4
- package/dist/{register.setup-B_cLbC3d.js → register.setup-BAZ3txi6.js} +4 -4
- package/dist/{register.setup-CcDqU6WR.js → register.setup-BQLAOnSQ.js} +4 -4
- package/dist/{register.status-health-sessions-DgNzHYE-.js → register.status-health-sessions-BU25Fv8p.js} +3 -3
- package/dist/{register.status-health-sessions-CMJ_l4rs.js → register.status-health-sessions-bw_2svPd.js} +3 -3
- package/dist/{register.subclis-D6LLN38B.js → register.subclis-Bop-tTBx.js} +9 -9
- package/dist/{reply-DcyKvFor.js → reply-BR3MMmPE.js} +47 -52
- package/dist/{run-main-QW59Pk-I.js → run-main-DFp18fyd.js} +14 -14
- package/dist/{server-methods-D1W-tViM.js → server-methods-B7KrCq1B.js} +7 -7
- package/dist/{server-methods-BdXCfO_O.js → server-methods-BMrgMa55.js} +7 -7
- package/dist/{server-node-events-BwGehjys.js → server-node-events-DcIWSJrb.js} +2 -2
- package/dist/{server-node-events-DqVmWjof.js → server-node-events-tKdBKitQ.js} +2 -2
- package/dist/{status-CfLq5R5j.js → status-CChK9DsL.js} +2 -2
- package/dist/{status-BY4CnB2O.js → status-DAeh7JKa.js} +2 -2
- package/dist/{status-kPaSg3RB.js → status-DkAuXji3.js} +1 -1
- package/dist/{status-BvnWSBQl.js → status-Ta_hiT2w.js} +1 -1
- package/dist/{subagent-registry-CVQOC9Jw.js → subagent-registry-DovA8Baf.js} +47 -52
- package/dist/{unified-runner-DpWGASP3.js → unified-runner-OplgmcEq.js} +47 -52
- package/dist/{update-cli-DcUr7_Lg.js → update-cli-DPewzEht.js} +8 -8
- package/dist/{update-cli-BpSFY22r.js → update-cli-hfO-LduQ.js} +7 -7
- package/dist/{update-runner-DdPdhkw5.js → update-runner-DvkWGO1t.js} +1 -1
- package/dist/{update-runner-CPOm0f_6.js → update-runner-WFWqzZw8.js} +1 -1
- package/dist/{web-DhofKbBh.js → web-BbEzqR_T.js} +1 -1
- package/dist/{web-DqjNQqGK.js → web-CEP_xmdJ.js} +2 -2
- package/dist/{web-ZnFT5LP9.js → web-DMBrhq3h.js} +1 -1
- package/dist/{web-CHV60IdQ.js → web-WfZujXg4.js} +1 -1
- package/package.json +1 -1
- package/dist/plugin-sdk/web-C2OyRvIo.js +0 -65
|
@@ -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 buildDeliveryFromLegacyPayload, A as emitGatewayRestart, An as initSubagentRegistry, Ar as extractImageContentFromSource, B as summarizeRestartSentinel, Bn as registerAgentRunContext, Ct as requestBodyErrorToText, Dr as DEFAULT_INPUT_MAX_REDIRECTS, E as resetDirectoryCache, Er as DEFAULT_INPUT_IMAGE_MIMES, Et as agentCommand, F as setPreRestartDeferralCheck, Fn as readLatestAssistantReply, Gt as getCliSessionId, I as consumeRestartSentinel, In as clearAgentRunContext, J as normalizeOptionalSessionKey, K as inferLegacyName, Kt as setCliSessionId, Ln as emitAgentEvent, Lt as createDefaultDeps, M as markGatewaySigusr1RestartHandled, Mr as resolveInputFileLimits, Mt as resolveOutboundTarget, Nt as resolveSessionDeliveryTarget, O as consumeGatewaySigusr1RestartAuthorization, On as countActiveDescendantRuns, Or as DEFAULT_INPUT_TIMEOUT_MS, P as setGatewaySigusr1RestartPolicy, Pn as runSubagentAnnounceFlow, Pr as resolveAgentTimeoutMs, Pt as createOutboundSendDeps, Q as migrateLegacyCronPayload, R as formatRestartSentinelMessage, Rn as getAgentRunContext, St as readJsonBodyWithLimit, Tr as DEFAULT_INPUT_IMAGE_MAX_BYTES, Tt as sleepWithAbort, U as normalizeHttpWebhookUrl, Ut as resolveModelProfile, Vt as getActiveEmbeddedRunCount, Wt as runWithModelFallback, X as normalizePayloadToSystemText, Xt as resolveAgentAvatar, Y as normalizeOptionalText, Z as normalizeRequiredName, ar as setCommandLaneConcurrency, cn as buildHistoryContextFromEntries, cr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, d as createSymiTools, en as buildSafeExternalPrompt, et as hasLegacyDeliveryHints, f as resolveAnnounceTargetFromKey, fr as stripHeartbeatToken, ft as loadSymiPlugins, hn as getTotalPendingReplies, i as resolveCronStyleNow, ir as resetAllLanes, j as isGatewaySigusr1RestartExternallyAllowed, jn as listDescendantRunsForRequester, jr as normalizeMimeList, k as deferGatewayRestartUntilIdle, kn as countActiveRunsForSession, kr as extractFileContentFromSource, l as applyToolPolicyPipeline, nn as getHookType, or as waitForActiveTasks, pr as lookupContextTokens, q as normalizeOptionalAgentId, qt as runCliAgent, rn as isExternalHookSession, rr as getTotalQueueSize, sr as CommandLane, st as requestHeartbeatNow, tn as detectSuspiciousPatterns, tr as getActiveTaskCount, tt as stripLegacyDeliveryFields, u as buildDefaultToolPolicyPipelineSteps, ut as getPluginToolMeta, v as loadSessionEntry, w as resolveOutboundSessionRoute, wt as computeBackoff, xr as enqueueSystemEvent, xt as handleSlackHttpRequest, zn as onAgentEvent, zt as runAgentTurn } from "./reply-
|
|
4
|
+
import { $ as buildDeliveryFromLegacyPayload, A as emitGatewayRestart, An as initSubagentRegistry, Ar as extractImageContentFromSource, B as summarizeRestartSentinel, Bn as registerAgentRunContext, Ct as requestBodyErrorToText, Dr as DEFAULT_INPUT_MAX_REDIRECTS, E as resetDirectoryCache, Er as DEFAULT_INPUT_IMAGE_MIMES, Et as agentCommand, F as setPreRestartDeferralCheck, Fn as readLatestAssistantReply, Gt as getCliSessionId, I as consumeRestartSentinel, In as clearAgentRunContext, J as normalizeOptionalSessionKey, K as inferLegacyName, Kt as setCliSessionId, Ln as emitAgentEvent, Lt as createDefaultDeps, M as markGatewaySigusr1RestartHandled, Mr as resolveInputFileLimits, Mt as resolveOutboundTarget, Nt as resolveSessionDeliveryTarget, O as consumeGatewaySigusr1RestartAuthorization, On as countActiveDescendantRuns, Or as DEFAULT_INPUT_TIMEOUT_MS, P as setGatewaySigusr1RestartPolicy, Pn as runSubagentAnnounceFlow, Pr as resolveAgentTimeoutMs, Pt as createOutboundSendDeps, Q as migrateLegacyCronPayload, R as formatRestartSentinelMessage, Rn as getAgentRunContext, St as readJsonBodyWithLimit, Tr as DEFAULT_INPUT_IMAGE_MAX_BYTES, Tt as sleepWithAbort, U as normalizeHttpWebhookUrl, Ut as resolveModelProfile, Vt as getActiveEmbeddedRunCount, Wt as runWithModelFallback, X as normalizePayloadToSystemText, Xt as resolveAgentAvatar, Y as normalizeOptionalText, Z as normalizeRequiredName, _ as loadCombinedSessionStoreForGateway, ar as setCommandLaneConcurrency, cn as buildHistoryContextFromEntries, cr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, d as createSymiTools, en as buildSafeExternalPrompt, et as hasLegacyDeliveryHints, f as resolveAnnounceTargetFromKey, fr as stripHeartbeatToken, ft as loadSymiPlugins, g as listSessionsFromStore, hn as getTotalPendingReplies, i as resolveCronStyleNow, ir as resetAllLanes, j as isGatewaySigusr1RestartExternallyAllowed, jn as listDescendantRunsForRequester, jr as normalizeMimeList, k as deferGatewayRestartUntilIdle, kn as countActiveRunsForSession, kr as extractFileContentFromSource, l as applyToolPolicyPipeline, nn as getHookType, or as waitForActiveTasks, pr as lookupContextTokens, q as normalizeOptionalAgentId, qt as runCliAgent, rn as isExternalHookSession, rr as getTotalQueueSize, sr as CommandLane, st as requestHeartbeatNow, tn as detectSuspiciousPatterns, tr as getActiveTaskCount, tt as stripLegacyDeliveryFields, u as buildDefaultToolPolicyPipelineSteps, ut as getPluginToolMeta, v as loadSessionEntry, w as resolveOutboundSessionRoute, wt as computeBackoff, xr as enqueueSystemEvent, xt as handleSlackHttpRequest, zn as onAgentEvent, zt as runAgentTurn } from "./reply-BR3MMmPE.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";
|
|
@@ -52,7 +52,7 @@ import "./accounts-DyJN4_vR.js";
|
|
|
52
52
|
import { t as buildChannelAccountBindings } from "./bindings-DFaVVCsf.js";
|
|
53
53
|
import "./logging-w5jq5901.js";
|
|
54
54
|
import "./send-CPF8hSFp.js";
|
|
55
|
-
import { c as resolveStorePath, i as resolveSessionTranscriptPath } from "./paths-CyhzMxFA.js";
|
|
55
|
+
import { c as resolveStorePath, i as resolveSessionTranscriptPath, s as resolveSessionTranscriptsDirForAgent } from "./paths-CyhzMxFA.js";
|
|
56
56
|
import "./tool-images-DvUBlqjX.js";
|
|
57
57
|
import "./tool-display-D8N3rsYt.js";
|
|
58
58
|
import { t as fetchWithSsrFGuard } from "./fetch-guard-DOPkVbh3.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-CrITRV6w.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-DAeh7JKa.js";
|
|
139
|
+
import { c as startHeartbeatRunner, i as styleHealthChannelLine, n as getHealthSnapshot, o as runHeartbeatOnce, t as formatHealthChannelLines } from "./health-D4ySlvOE.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-CRAQ2s_3.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-BMrgMa55.js";
|
|
144
|
+
import { d as shouldLogWs, f as summarizeAgentEventForWsLog, l as formatForLog, p as setGatewayWsLogStyle, u as logWs } from "./push-apns-Cdjd6L8R.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-CHQebF9q.js";
|
|
147
147
|
import "./dm-policy-shared-Bh3TbexU.js";
|
|
148
148
|
import "./node-service-Cxz4e-Qd.js";
|
|
149
149
|
import "./status.update-DtwCUTf-.js";
|
|
150
150
|
import "./skills-install-D67isO1L.js";
|
|
151
|
-
import "./update-runner-
|
|
151
|
+
import "./update-runner-WFWqzZw8.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";
|
|
@@ -7325,7 +7325,7 @@ function applyControlUiSecurityHeaders(res) {
|
|
|
7325
7325
|
res.setHeader("X-Content-Type-Options", "nosniff");
|
|
7326
7326
|
res.setHeader("Referrer-Policy", "no-referrer");
|
|
7327
7327
|
}
|
|
7328
|
-
function sendJson$
|
|
7328
|
+
function sendJson$3(res, status, body) {
|
|
7329
7329
|
res.statusCode = status;
|
|
7330
7330
|
res.setHeader("Content-Type", "application/json; charset=utf-8");
|
|
7331
7331
|
res.setHeader("Cache-Control", "no-cache");
|
|
@@ -7352,7 +7352,7 @@ function handleControlUiAvatarRequest(req, res, opts) {
|
|
|
7352
7352
|
}
|
|
7353
7353
|
if (url.searchParams.get("meta") === "1") {
|
|
7354
7354
|
const resolved = opts.resolveAvatar(agentId);
|
|
7355
|
-
sendJson$
|
|
7355
|
+
sendJson$3(res, 200, { avatarUrl: resolved.kind === "local" ? buildControlUiAvatarUrl(basePath, agentId) : resolved.kind === "remote" || resolved.kind === "data" ? resolved.url : null });
|
|
7356
7356
|
return true;
|
|
7357
7357
|
}
|
|
7358
7358
|
const resolved = opts.resolveAvatar(agentId);
|
|
@@ -7448,7 +7448,7 @@ function handleControlUiHttpRequest(req, res, opts) {
|
|
|
7448
7448
|
assistantAgentId: identity.agentId
|
|
7449
7449
|
};
|
|
7450
7450
|
if (opts?.isLocalClient && opts?.gatewayToken) bootstrapConfig.gatewayToken = opts.gatewayToken;
|
|
7451
|
-
sendJson$
|
|
7451
|
+
sendJson$3(res, 200, bootstrapConfig);
|
|
7452
7452
|
return true;
|
|
7453
7453
|
}
|
|
7454
7454
|
const rootState = opts?.root;
|
|
@@ -7525,7 +7525,7 @@ function setDefaultSecurityHeaders(res) {
|
|
|
7525
7525
|
res.setHeader("X-Content-Type-Options", "nosniff");
|
|
7526
7526
|
res.setHeader("Referrer-Policy", "no-referrer");
|
|
7527
7527
|
}
|
|
7528
|
-
function sendJson$
|
|
7528
|
+
function sendJson$2(res, status, body) {
|
|
7529
7529
|
res.statusCode = status;
|
|
7530
7530
|
res.setHeader("Content-Type", "application/json; charset=utf-8");
|
|
7531
7531
|
res.end(JSON.stringify(body));
|
|
@@ -7540,14 +7540,14 @@ function sendMethodNotAllowed(res, allow = "POST") {
|
|
|
7540
7540
|
sendText(res, 405, "Method Not Allowed");
|
|
7541
7541
|
}
|
|
7542
7542
|
function sendUnauthorized(res) {
|
|
7543
|
-
sendJson$
|
|
7543
|
+
sendJson$2(res, 401, { error: {
|
|
7544
7544
|
message: "Unauthorized",
|
|
7545
7545
|
type: "unauthorized"
|
|
7546
7546
|
} });
|
|
7547
7547
|
}
|
|
7548
7548
|
function sendRateLimited(res, retryAfterMs) {
|
|
7549
7549
|
if (retryAfterMs && retryAfterMs > 0) res.setHeader("Retry-After", String(Math.ceil(retryAfterMs / 1e3)));
|
|
7550
|
-
sendJson$
|
|
7550
|
+
sendJson$2(res, 429, { error: {
|
|
7551
7551
|
message: "Too many failed authentication attempts. Please try again later.",
|
|
7552
7552
|
type: "rate_limited"
|
|
7553
7553
|
} });
|
|
@@ -7560,7 +7560,7 @@ function sendGatewayAuthFailure(res, authResult) {
|
|
|
7560
7560
|
sendUnauthorized(res);
|
|
7561
7561
|
}
|
|
7562
7562
|
function sendInvalidRequest(res, message) {
|
|
7563
|
-
sendJson$
|
|
7563
|
+
sendJson$2(res, 400, { error: {
|
|
7564
7564
|
message,
|
|
7565
7565
|
type: "invalid_request_error"
|
|
7566
7566
|
} });
|
|
@@ -7569,14 +7569,14 @@ async function readJsonBodyOrError(req, res, maxBytes) {
|
|
|
7569
7569
|
const body = await readJsonBody(req, maxBytes);
|
|
7570
7570
|
if (!body.ok) {
|
|
7571
7571
|
if (body.error === "payload too large") {
|
|
7572
|
-
sendJson$
|
|
7572
|
+
sendJson$2(res, 413, { error: {
|
|
7573
7573
|
message: "Payload too large",
|
|
7574
7574
|
type: "invalid_request_error"
|
|
7575
7575
|
} });
|
|
7576
7576
|
return;
|
|
7577
7577
|
}
|
|
7578
7578
|
if (body.error === "request body timeout") {
|
|
7579
|
-
sendJson$
|
|
7579
|
+
sendJson$2(res, 408, { error: {
|
|
7580
7580
|
message: "Request body timeout",
|
|
7581
7581
|
type: "invalid_request_error"
|
|
7582
7582
|
} });
|
|
@@ -7806,7 +7806,7 @@ async function handleOpenAiHttpRequest(req, res, opts) {
|
|
|
7806
7806
|
});
|
|
7807
7807
|
const prompt = buildAgentPrompt$1(payload.messages);
|
|
7808
7808
|
if (!prompt.message) {
|
|
7809
|
-
sendJson$
|
|
7809
|
+
sendJson$2(res, 400, { error: {
|
|
7810
7810
|
message: "Missing user message in `messages`.",
|
|
7811
7811
|
type: "invalid_request_error"
|
|
7812
7812
|
} });
|
|
@@ -7825,7 +7825,7 @@ async function handleOpenAiHttpRequest(req, res, opts) {
|
|
|
7825
7825
|
messageChannel: "webchat",
|
|
7826
7826
|
bestEffortDeliver: false
|
|
7827
7827
|
}, defaultRuntime, deps));
|
|
7828
|
-
sendJson$
|
|
7828
|
+
sendJson$2(res, 200, {
|
|
7829
7829
|
id: runId,
|
|
7830
7830
|
object: "chat.completion",
|
|
7831
7831
|
created: Math.floor(Date.now() / 1e3),
|
|
@@ -7846,7 +7846,7 @@ async function handleOpenAiHttpRequest(req, res, opts) {
|
|
|
7846
7846
|
});
|
|
7847
7847
|
} catch (err) {
|
|
7848
7848
|
logWarn(`openai-compat: chat completion failed: ${String(err)}`);
|
|
7849
|
-
sendJson$
|
|
7849
|
+
sendJson$2(res, 500, { error: {
|
|
7850
7850
|
message: "internal error",
|
|
7851
7851
|
type: "api_error"
|
|
7852
7852
|
} });
|
|
@@ -8410,7 +8410,7 @@ async function handleOpenResponsesHttpRequest(req, res, opts) {
|
|
|
8410
8410
|
const parseResult = CreateResponseBodySchema.safeParse(handled.body);
|
|
8411
8411
|
if (!parseResult.success) {
|
|
8412
8412
|
const issue = parseResult.error.issues[0];
|
|
8413
|
-
sendJson$
|
|
8413
|
+
sendJson$2(res, 400, { error: {
|
|
8414
8414
|
message: issue ? `${issue.path.join(".")}: ${issue.message}` : "Invalid request body",
|
|
8415
8415
|
type: "invalid_request_error"
|
|
8416
8416
|
} });
|
|
@@ -8467,7 +8467,7 @@ async function handleOpenResponsesHttpRequest(req, res, opts) {
|
|
|
8467
8467
|
}
|
|
8468
8468
|
} catch (err) {
|
|
8469
8469
|
logWarn(`openresponses: request parsing failed: ${String(err)}`);
|
|
8470
|
-
sendJson$
|
|
8470
|
+
sendJson$2(res, 400, { error: {
|
|
8471
8471
|
message: "invalid request",
|
|
8472
8472
|
type: "invalid_request_error"
|
|
8473
8473
|
} });
|
|
@@ -8485,7 +8485,7 @@ async function handleOpenResponsesHttpRequest(req, res, opts) {
|
|
|
8485
8485
|
toolChoicePrompt = toolChoiceResult.extraSystemPrompt;
|
|
8486
8486
|
} catch (err) {
|
|
8487
8487
|
logWarn(`openresponses: tool configuration failed: ${String(err)}`);
|
|
8488
|
-
sendJson$
|
|
8488
|
+
sendJson$2(res, 400, { error: {
|
|
8489
8489
|
message: "invalid tool configuration",
|
|
8490
8490
|
type: "invalid_request_error"
|
|
8491
8491
|
} });
|
|
@@ -8509,7 +8509,7 @@ async function handleOpenResponsesHttpRequest(req, res, opts) {
|
|
|
8509
8509
|
fileContext
|
|
8510
8510
|
].filter(Boolean).join("\n\n");
|
|
8511
8511
|
if (!prompt.message) {
|
|
8512
|
-
sendJson$
|
|
8512
|
+
sendJson$2(res, 400, { error: {
|
|
8513
8513
|
message: "Missing user message in `input`.",
|
|
8514
8514
|
type: "invalid_request_error"
|
|
8515
8515
|
} });
|
|
@@ -8538,7 +8538,7 @@ async function handleOpenResponsesHttpRequest(req, res, opts) {
|
|
|
8538
8538
|
const pendingToolCalls = meta && typeof meta === "object" ? meta.pendingToolCalls : void 0;
|
|
8539
8539
|
if (stopReason === "tool_calls" && pendingToolCalls && pendingToolCalls.length > 0) {
|
|
8540
8540
|
const functionCall = pendingToolCalls[0];
|
|
8541
|
-
sendJson$
|
|
8541
|
+
sendJson$2(res, 200, createResponseResource({
|
|
8542
8542
|
id: responseId,
|
|
8543
8543
|
model,
|
|
8544
8544
|
status: "incomplete",
|
|
@@ -8553,7 +8553,7 @@ async function handleOpenResponsesHttpRequest(req, res, opts) {
|
|
|
8553
8553
|
}));
|
|
8554
8554
|
return true;
|
|
8555
8555
|
}
|
|
8556
|
-
sendJson$
|
|
8556
|
+
sendJson$2(res, 200, createResponseResource({
|
|
8557
8557
|
id: responseId,
|
|
8558
8558
|
model,
|
|
8559
8559
|
status: "completed",
|
|
@@ -8566,7 +8566,7 @@ async function handleOpenResponsesHttpRequest(req, res, opts) {
|
|
|
8566
8566
|
}));
|
|
8567
8567
|
} catch (err) {
|
|
8568
8568
|
logWarn(`openresponses: non-stream response failed: ${String(err)}`);
|
|
8569
|
-
sendJson$
|
|
8569
|
+
sendJson$2(res, 500, createResponseResource({
|
|
8570
8570
|
id: responseId,
|
|
8571
8571
|
model,
|
|
8572
8572
|
status: "failed",
|
|
@@ -8833,6 +8833,138 @@ async function handleOpenResponsesHttpRequest(req, res, opts) {
|
|
|
8833
8833
|
return true;
|
|
8834
8834
|
}
|
|
8835
8835
|
|
|
8836
|
+
//#endregion
|
|
8837
|
+
//#region src/gateway/server-sessions-api.ts
|
|
8838
|
+
/**
|
|
8839
|
+
* HTTP API for session history — serves the Glass UI History drawer.
|
|
8840
|
+
*
|
|
8841
|
+
* GET /api/sessions — List all sessions with metadata
|
|
8842
|
+
* GET /api/transcript?file=<filename> — Read a session transcript
|
|
8843
|
+
*
|
|
8844
|
+
* Both endpoints are read-only and serve data from the existing session
|
|
8845
|
+
* store and .jsonl transcript files.
|
|
8846
|
+
*
|
|
8847
|
+
* @module
|
|
8848
|
+
*/
|
|
8849
|
+
/**
|
|
8850
|
+
* Handle /api/sessions and /api/transcript HTTP requests.
|
|
8851
|
+
* Returns true if the request was handled, false otherwise.
|
|
8852
|
+
*/
|
|
8853
|
+
function handleSessionsApiRequest(req, res, cfg) {
|
|
8854
|
+
const url = new URL(req.url ?? "/", "http://localhost");
|
|
8855
|
+
if (url.pathname === "/api/sessions" && req.method === "GET") {
|
|
8856
|
+
handleListSessions(res, cfg);
|
|
8857
|
+
return true;
|
|
8858
|
+
}
|
|
8859
|
+
if (url.pathname === "/api/transcript" && req.method === "GET") {
|
|
8860
|
+
handleTranscript(res, cfg, url.searchParams.get("file"));
|
|
8861
|
+
return true;
|
|
8862
|
+
}
|
|
8863
|
+
return false;
|
|
8864
|
+
}
|
|
8865
|
+
function sendJson$1(res, data, status = 200) {
|
|
8866
|
+
res.writeHead(status, { "Content-Type": "application/json" });
|
|
8867
|
+
res.end(JSON.stringify(data));
|
|
8868
|
+
}
|
|
8869
|
+
function handleListSessions(res, cfg) {
|
|
8870
|
+
try {
|
|
8871
|
+
const sessionsDir = resolveSessionTranscriptsDirForAgent(resolveDefaultAgentId(cfg));
|
|
8872
|
+
const { storePath, store } = loadCombinedSessionStoreForGateway(cfg);
|
|
8873
|
+
const storeSessions = listSessionsFromStore({
|
|
8874
|
+
cfg,
|
|
8875
|
+
storePath,
|
|
8876
|
+
store,
|
|
8877
|
+
opts: {
|
|
8878
|
+
includeDerivedTitles: true,
|
|
8879
|
+
includeLastMessage: true
|
|
8880
|
+
}
|
|
8881
|
+
}).sessions.map((s) => ({
|
|
8882
|
+
file: s.sessionId ? `${s.sessionId}.jsonl` : void 0,
|
|
8883
|
+
sessionId: s.sessionId,
|
|
8884
|
+
sessionKey: s.key,
|
|
8885
|
+
isArchived: false,
|
|
8886
|
+
mtime: s.updatedAt ? new Date(s.updatedAt).toISOString() : void 0,
|
|
8887
|
+
preview: s.lastMessagePreview || s.derivedTitle || s.displayName || s.label || void 0,
|
|
8888
|
+
msgCount: (s.inputTokens ?? 0) > 0 || (s.outputTokens ?? 0) > 0 ? void 0 : void 0,
|
|
8889
|
+
size: void 0,
|
|
8890
|
+
model: s.model,
|
|
8891
|
+
modelProvider: s.modelProvider
|
|
8892
|
+
}));
|
|
8893
|
+
const archivedSessions = [];
|
|
8894
|
+
if (fs.existsSync(sessionsDir)) {
|
|
8895
|
+
const files = fs.readdirSync(sessionsDir);
|
|
8896
|
+
for (const file of files) {
|
|
8897
|
+
if (!file.includes(".jsonl.")) continue;
|
|
8898
|
+
const parts = file.split(".jsonl.");
|
|
8899
|
+
if (parts.length < 2 || !parts[1]) continue;
|
|
8900
|
+
const filePath = path.join(sessionsDir, file);
|
|
8901
|
+
try {
|
|
8902
|
+
const stat = fs.statSync(filePath);
|
|
8903
|
+
const lines = fs.readFileSync(filePath, "utf-8").split(/\r?\n/).filter((l) => l.trim());
|
|
8904
|
+
let preview;
|
|
8905
|
+
let msgCount = 0;
|
|
8906
|
+
for (const line of lines) try {
|
|
8907
|
+
const parsed = JSON.parse(line);
|
|
8908
|
+
if (parsed?.message?.role === "user" || parsed?.message?.role === "assistant") msgCount++;
|
|
8909
|
+
if (!preview && parsed?.message?.role === "user") preview = (typeof parsed.message.content === "string" ? parsed.message.content : Array.isArray(parsed.message.content) ? parsed.message.content.filter((b) => b.type === "text").map((b) => b.text ?? "").join(" ") : "").trim().slice(0, 80) || void 0;
|
|
8910
|
+
} catch {}
|
|
8911
|
+
const suffix = parts[1];
|
|
8912
|
+
const dotIdx = suffix.indexOf(".");
|
|
8913
|
+
const archivedAt = dotIdx >= 0 ? suffix.slice(dotIdx + 1).replace(/-(?=\d{2}[T:-])/g, ":") : void 0;
|
|
8914
|
+
archivedSessions.push({
|
|
8915
|
+
file,
|
|
8916
|
+
sessionId: parts[0],
|
|
8917
|
+
isArchived: true,
|
|
8918
|
+
archivedAt: archivedAt || stat.mtime.toISOString(),
|
|
8919
|
+
mtime: stat.mtime.toISOString(),
|
|
8920
|
+
preview,
|
|
8921
|
+
msgCount,
|
|
8922
|
+
size: stat.size
|
|
8923
|
+
});
|
|
8924
|
+
} catch {}
|
|
8925
|
+
}
|
|
8926
|
+
}
|
|
8927
|
+
sendJson$1(res, [...storeSessions.filter((s) => s.sessionId), ...archivedSessions].toSorted((a, b) => {
|
|
8928
|
+
const aArchived = Boolean(a.isArchived);
|
|
8929
|
+
const bArchived = Boolean(b.isArchived);
|
|
8930
|
+
if (!aArchived && bArchived) return -1;
|
|
8931
|
+
if (aArchived && !bArchived) return 1;
|
|
8932
|
+
const aDate = typeof a.mtime === "string" ? a.mtime : typeof a.archivedAt === "string" ? a.archivedAt : "";
|
|
8933
|
+
return (typeof b.mtime === "string" ? b.mtime : typeof b.archivedAt === "string" ? b.archivedAt : "").localeCompare(aDate);
|
|
8934
|
+
}));
|
|
8935
|
+
} catch (err) {
|
|
8936
|
+
sendJson$1(res, { error: String(err) }, 500);
|
|
8937
|
+
}
|
|
8938
|
+
}
|
|
8939
|
+
function handleTranscript(res, cfg, file) {
|
|
8940
|
+
if (!file) {
|
|
8941
|
+
sendJson$1(res, { error: "Missing file parameter" }, 400);
|
|
8942
|
+
return;
|
|
8943
|
+
}
|
|
8944
|
+
const basename = path.basename(file);
|
|
8945
|
+
if (basename !== file || file.includes("..")) {
|
|
8946
|
+
sendJson$1(res, { error: "Invalid file parameter" }, 400);
|
|
8947
|
+
return;
|
|
8948
|
+
}
|
|
8949
|
+
try {
|
|
8950
|
+
const sessionsDir = resolveSessionTranscriptsDirForAgent(resolveDefaultAgentId(cfg));
|
|
8951
|
+
const filePath = path.join(sessionsDir, basename);
|
|
8952
|
+
if (!fs.existsSync(filePath)) {
|
|
8953
|
+
sendJson$1(res, { error: "Session file not found" }, 404);
|
|
8954
|
+
return;
|
|
8955
|
+
}
|
|
8956
|
+
const lines = fs.readFileSync(filePath, "utf-8").split(/\r?\n/).filter((l) => l.trim());
|
|
8957
|
+
const messages = [];
|
|
8958
|
+
for (const line of lines) try {
|
|
8959
|
+
const parsed = JSON.parse(line);
|
|
8960
|
+
if (parsed?.message?.role) messages.push(parsed.message);
|
|
8961
|
+
} catch {}
|
|
8962
|
+
sendJson$1(res, { messages });
|
|
8963
|
+
} catch (err) {
|
|
8964
|
+
sendJson$1(res, { error: String(err) }, 500);
|
|
8965
|
+
}
|
|
8966
|
+
}
|
|
8967
|
+
|
|
8836
8968
|
//#endregion
|
|
8837
8969
|
//#region src/gateway/tools-invoke-http.ts
|
|
8838
8970
|
const DEFAULT_BODY_BYTES = 2 * 1024 * 1024;
|
|
@@ -8915,7 +9047,7 @@ async function handleToolsInvokeHttpRequest(req, res, opts) {
|
|
|
8915
9047
|
if (process.env.VITEST && MEMORY_TOOL_NAMES.has(toolName)) {
|
|
8916
9048
|
const reasons = resolveMemoryToolDisableReasons(cfg);
|
|
8917
9049
|
if (reasons.length > 0) {
|
|
8918
|
-
sendJson$
|
|
9050
|
+
sendJson$2(res, 400, {
|
|
8919
9051
|
ok: false,
|
|
8920
9052
|
error: {
|
|
8921
9053
|
type: "invalid_request",
|
|
@@ -8987,7 +9119,7 @@ async function handleToolsInvokeHttpRequest(req, res, opts) {
|
|
|
8987
9119
|
const gatewayDenySet = new Set(gatewayDenyNames);
|
|
8988
9120
|
const tool = subagentFiltered.filter((t) => !gatewayDenySet.has(t.name)).find((t) => t.name === toolName);
|
|
8989
9121
|
if (!tool) {
|
|
8990
|
-
sendJson$
|
|
9122
|
+
sendJson$2(res, 404, {
|
|
8991
9123
|
ok: false,
|
|
8992
9124
|
error: {
|
|
8993
9125
|
type: "not_found",
|
|
@@ -9002,14 +9134,14 @@ async function handleToolsInvokeHttpRequest(req, res, opts) {
|
|
|
9002
9134
|
action,
|
|
9003
9135
|
args
|
|
9004
9136
|
});
|
|
9005
|
-
sendJson$
|
|
9137
|
+
sendJson$2(res, 200, {
|
|
9006
9138
|
ok: true,
|
|
9007
9139
|
result: await tool.execute?.(`http-${Date.now()}`, toolArgs)
|
|
9008
9140
|
});
|
|
9009
9141
|
} catch (err) {
|
|
9010
9142
|
const inputStatus = resolveToolInputErrorStatus(err);
|
|
9011
9143
|
if (inputStatus !== null) {
|
|
9012
|
-
sendJson$
|
|
9144
|
+
sendJson$2(res, inputStatus, {
|
|
9013
9145
|
ok: false,
|
|
9014
9146
|
error: {
|
|
9015
9147
|
type: "tool_error",
|
|
@@ -9019,7 +9151,7 @@ async function handleToolsInvokeHttpRequest(req, res, opts) {
|
|
|
9019
9151
|
return true;
|
|
9020
9152
|
}
|
|
9021
9153
|
logWarn(`tools-invoke: tool execution failed: ${String(err)}`);
|
|
9022
|
-
sendJson$
|
|
9154
|
+
sendJson$2(res, 500, {
|
|
9023
9155
|
ok: false,
|
|
9024
9156
|
error: {
|
|
9025
9157
|
type: "tool_error",
|
|
@@ -9439,6 +9571,7 @@ function createGatewayHttpServer(opts) {
|
|
|
9439
9571
|
if (await handleA2uiHttpRequest(req, res)) return;
|
|
9440
9572
|
if (await canvasHost.handleHttpRequest(req, res)) return;
|
|
9441
9573
|
}
|
|
9574
|
+
if (controlUiEnabled && handleSessionsApiRequest(req, res, configSnapshot)) return;
|
|
9442
9575
|
if (controlUiEnabled) {
|
|
9443
9576
|
if (handleControlUiAvatarRequest(req, res, {
|
|
9444
9577
|
basePath: controlUiBasePath,
|
|
@@ -11706,7 +11839,7 @@ async function startGatewayServer(port = 18789, opts = {}) {
|
|
|
11706
11839
|
});
|
|
11707
11840
|
let glassUiBridgeCleanup = null;
|
|
11708
11841
|
if (!minimalTestGateway) {
|
|
11709
|
-
const { createGlassUiBridge } = await import("./glass-ui-ws-
|
|
11842
|
+
const { createGlassUiBridge } = await import("./glass-ui-ws-uRv3KH-0.js");
|
|
11710
11843
|
glassUiBridgeCleanup = createGlassUiBridge({
|
|
11711
11844
|
wss: glassUiWss,
|
|
11712
11845
|
context: gatewayRequestContext,
|
|
@@ -13,7 +13,7 @@ import "./client-DMBZpU6X.js";
|
|
|
13
13
|
import "./call-BcE47FtD.js";
|
|
14
14
|
import "./message-channel-C9dERklz.js";
|
|
15
15
|
import "./pairing-token-Byh6drgn.js";
|
|
16
|
-
import "./subagent-registry-
|
|
16
|
+
import "./subagent-registry-DovA8Baf.js";
|
|
17
17
|
import "./sessions-CJXnZVjR.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-Byo5jCLN.js";
|
|
111
|
-
import "./status-
|
|
112
|
-
import "./health-
|
|
111
|
+
import "./status-CChK9DsL.js";
|
|
112
|
+
import "./health-CBwxQHlQ.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-B7KrCq1B.js";
|
|
116
|
+
import "./push-apns-A--Taj2b.js";
|
|
117
|
+
import "./agents.config-CwoBiqZ_.js";
|
|
118
118
|
import "./dm-policy-shared-DJ-61hCT.js";
|
|
119
119
|
import "./node-service-fcZExd22.js";
|
|
120
120
|
import "./status.update-DbmZz0Aq.js";
|
|
121
121
|
import "./skills-install-1ZdwGTnh.js";
|
|
122
|
-
import "./update-runner-
|
|
122
|
+
import "./update-runner-DvkWGO1t.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-BR3MMmPE.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-CrITRV6w.js";
|
|
116
|
-
import "./status-
|
|
117
|
-
import "./health-
|
|
116
|
+
import "./status-DAeh7JKa.js";
|
|
117
|
+
import "./health-D4ySlvOE.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-BMrgMa55.js";
|
|
121
|
+
import "./push-apns-Cdjd6L8R.js";
|
|
122
|
+
import "./agents.config-CHQebF9q.js";
|
|
123
123
|
import "./dm-policy-shared-Bh3TbexU.js";
|
|
124
124
|
import "./node-service-Cxz4e-Qd.js";
|
|
125
125
|
import "./status.update-DtwCUTf-.js";
|
|
126
126
|
import "./skills-install-D67isO1L.js";
|
|
127
|
-
import "./update-runner-
|
|
127
|
+
import "./update-runner-WFWqzZw8.js";
|
|
128
128
|
|
|
129
129
|
//#region src/gateway/glass-ui-ws.ts
|
|
130
130
|
const SESSION_KEY = "agent:main:main";
|
|
@@ -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-DHBLS1Hl.js";
|
|
6
6
|
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-BcE47FtD.js";
|
|
7
|
-
import { Jn as resolveUserTimezone, K as appendCronStyleCurrentTimeLine, Tn as peekSystemEventEntries, W as getReplyFromConfig, _r as isHeartbeatContentEffectivelyEmpty, dn as requestHeartbeatNow, fn as setHeartbeatWakeHandler, gr as DEFAULT_HEARTBEAT_EVERY, hr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, lr as getQueueSize, lt as resolveHeartbeatDeliveryTarget, mr as CommandLane, pn as resolveHeartbeatReasonKind, ut as resolveHeartbeatSenderContext, vr as resolveHeartbeatPrompt$1, yr as stripHeartbeatToken } from "./subagent-registry-
|
|
7
|
+
import { Jn as resolveUserTimezone, K as appendCronStyleCurrentTimeLine, Tn as peekSystemEventEntries, W as getReplyFromConfig, _r as isHeartbeatContentEffectivelyEmpty, dn as requestHeartbeatNow, fn as setHeartbeatWakeHandler, gr as DEFAULT_HEARTBEAT_EVERY, hr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, lr as getQueueSize, lt as resolveHeartbeatDeliveryTarget, mr as CommandLane, pn as resolveHeartbeatReasonKind, ut as resolveHeartbeatSenderContext, vr as resolveHeartbeatPrompt$1, yr as stripHeartbeatToken } from "./subagent-registry-DovA8Baf.js";
|
|
8
8
|
import { M as canonicalizeMainSessionAlias, N as resolveAgentMainSessionKey, d as updateSessionStore, l as saveSessionStore, o as loadSessionStore } from "./sessions-CJXnZVjR.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";
|
|
@@ -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 { At as resolveHeartbeatDeliveryTarget, Cr as peekSystemEventEntries, Vn as resolveUserTimezone, cr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, ct as setHeartbeatWakeHandler, dr as resolveHeartbeatPrompt$1, fr as stripHeartbeatToken, jt as resolveHeartbeatSenderContext, lr as DEFAULT_HEARTBEAT_EVERY, lt as resolveHeartbeatReasonKind, nr as getQueueSize, r as appendCronStyleCurrentTimeLine, sr as CommandLane, st as requestHeartbeatNow, t as getReplyFromConfig, ur as isHeartbeatContentEffectivelyEmpty } from "./reply-
|
|
2
|
+
import { At as resolveHeartbeatDeliveryTarget, Cr as peekSystemEventEntries, Vn as resolveUserTimezone, cr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, ct as setHeartbeatWakeHandler, dr as resolveHeartbeatPrompt$1, fr as stripHeartbeatToken, jt as resolveHeartbeatSenderContext, lr as DEFAULT_HEARTBEAT_EVERY, lt as resolveHeartbeatReasonKind, nr as getQueueSize, r as appendCronStyleCurrentTimeLine, sr as CommandLane, st as requestHeartbeatNow, t as getReplyFromConfig, ur as isHeartbeatContentEffectivelyEmpty } from "./reply-BR3MMmPE.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";
|
|
@@ -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-BR3MMmPE.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-Ta_hiT2w.js";
|
|
112
112
|
import fs from "node:fs";
|
|
113
113
|
import path from "node:path";
|
|
114
114
|
import fs$1 from "node:fs/promises";
|
|
@@ -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 "./subagent-registry-
|
|
18
|
+
import "./subagent-registry-DovA8Baf.js";
|
|
19
19
|
import "./sessions-CJXnZVjR.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-DkAuXji3.js";
|
|
108
108
|
import path from "node:path";
|
|
109
109
|
import fs from "node:fs";
|
|
110
110
|
import fs$1 from "node:fs/promises";
|
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 { Lt as createDefaultDeps, bt as resolveCommitHash, t as getReplyFromConfig } from "./reply-
|
|
5
|
+
import { Lt as createDefaultDeps, bt as resolveCommitHash, t as getReplyFromConfig } from "./reply-BR3MMmPE.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-CIDBbw6x.js";
|
|
|
103
103
|
import "./control-service-Bz7rxLWq.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-NGDI-tJN.js";
|
|
107
107
|
import "./outbound-DB5Zus0-.js";
|
|
108
108
|
import "./session-DIBTkyvE.js";
|
|
109
109
|
import "./login-dIlDkG4X.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-Bz_GuT_l.js";
|
|
116
116
|
import "./catalog-RiADx7MA.js";
|
|
117
|
-
import "./plugin-registry-
|
|
118
|
-
import { n as resolveCliChannelOptions } from "./channel-options-
|
|
117
|
+
import "./plugin-registry-DDIcHkNU.js";
|
|
118
|
+
import { n as resolveCliChannelOptions } from "./channel-options-Ba5tfq9-.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-DDIcHkNU.js").then((n) => n.n);
|
|
519
519
|
ensurePluginRegistryLoaded();
|
|
520
520
|
}
|
|
521
521
|
});
|
|
@@ -3,7 +3,7 @@ import "./registry-DYq1AYOv.js";
|
|
|
3
3
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-CpEJ0B88.js";
|
|
4
4
|
import "./subsystem-BjyjJF-d.js";
|
|
5
5
|
import "./workspace-DscDraUb.js";
|
|
6
|
-
import { t as runAgentTurn } from "./unified-runner-
|
|
6
|
+
import { t as runAgentTurn } from "./unified-runner-OplgmcEq.js";
|
|
7
7
|
import "./paths-CbQV9WEg.js";
|
|
8
8
|
import "./auth-profiles-DdK1Hxaa.js";
|
|
9
9
|
import "./env-BDXYbTKj.js";
|
|
@@ -7,7 +7,7 @@ import { t as ensurePiAuthJsonFromAuthProfiles } from "./pi-auth-json-CaX_1WHk.j
|
|
|
7
7
|
import { i as resolveForwardCompatModel, r as ANTIGRAVITY_OPUS_46_FORWARD_COMPAT_CANDIDATES } from "./model-DiCH8rkE.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-DHBLS1Hl.js";
|
|
10
|
-
import { J as runAgentTurn, _n as DEFAULT_OAUTH_WARN_MS, _t as describeFailoverError, an as formatUsageWindowSummary, gn as maskApiKey, on as resolveUsageProviderId, rn as loadProviderUsageSummary, vn as buildAuthHealthSummary, yn as formatRemainingShort } from "./subagent-registry-
|
|
10
|
+
import { J as runAgentTurn, _n as DEFAULT_OAUTH_WARN_MS, _t as describeFailoverError, an as formatUsageWindowSummary, gn as maskApiKey, on as resolveUsageProviderId, rn as loadProviderUsageSummary, vn as buildAuthHealthSummary, yn as formatRemainingShort } from "./subagent-registry-DovA8Baf.js";
|
|
11
11
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-DNdWAq7b.js";
|
|
12
12
|
import { t as ensureSymiModelsJson } from "./models-config-CCMpqFyr.js";
|
|
13
13
|
import { n as loadModelCatalog } from "./model-catalog-CqCsARJX.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-D8K9MkWg.js";
|
|
22
22
|
import { d as applyAuthProfileConfig, n as validateAnthropicSetupToken } from "./auth-token-Cmrk2TPo.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-BdNgfdWd.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";
|
|
@@ -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 { Yt as describeFailoverError, _r as formatRemainingShort, gr as buildAuthHealthSummary, gt as loadProviderUsageSummary, hr as DEFAULT_OAUTH_WARN_MS, mr as maskApiKey, vt as formatUsageWindowSummary, yt as resolveUsageProviderId, zt as runAgentTurn } from "./reply-
|
|
4
|
+
import { Yt as describeFailoverError, _r as formatRemainingShort, gr as buildAuthHealthSummary, gt as loadProviderUsageSummary, hr as DEFAULT_OAUTH_WARN_MS, mr as maskApiKey, vt as formatUsageWindowSummary, yt as resolveUsageProviderId, zt as runAgentTurn } from "./reply-BR3MMmPE.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-Knv1hy6h.js";
|
|
111
111
|
import { d as applyAuthProfileConfig, n as validateAnthropicSetupToken } from "./auth-token-BnOynwk4.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-CXKXgdFl.js";
|
|
114
114
|
import { t as ensurePiAuthJsonFromAuthProfiles } from "./system-cli-UMsMEurS.js";
|
|
115
115
|
import path from "node:path";
|
|
116
116
|
import fs from "node:fs/promises";
|