skykoi 2026.3.65 → 2026.3.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acp-cli-Du2RJCQX.js → acp-cli-BvtcQ6QA.js} +2 -2
- package/dist/{agent-C5rvN62j.js → agent-stNlSToT.js} +6 -6
- package/dist/{audit-BtURmB_h.js → audit-DKgbT-wM.js} +4 -4
- package/dist/build-info.json +3 -3
- package/dist/{call-By16F5xH.js → call-DFJUfGIg.js} +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-DgWnYlJu.js → channel-options-Cz2C_f2h.js} +1 -1
- package/dist/{channel-summary-BmfuvIGX.js → channel-summary-CFQ_gBp4.js} +3 -3
- package/dist/{channels-cli-DOpyVQdc.js → channels-cli-mWoIXsN6.js} +16 -16
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-DvJk20ED.js → cli-CDZtTOxe.js} +13 -13
- package/dist/{completion-cli-30EnJVZr.js → completion-cli-DF8Znlfs.js} +1 -1
- package/dist/{config-CpHfNaCN.js → config-CgWHdv8s.js} +52 -2
- package/dist/{config-guard-BkRC7DXe.js → config-guard-BQ3F1sEN.js} +18 -18
- package/dist/{configure-kRfW6gLi.js → configure-DvztYrKh.js} +6 -6
- package/dist/{control-service-F1hXO840.js → control-service-CnFnB762.js} +1 -1
- package/dist/{cron-cli-By6cR-DN.js → cron-cli-6nXh_nRK.js} +3 -3
- package/dist/{daemon-cli-BV9YOWy8.js → daemon-cli-DnUeyO6P.js} +7 -7
- package/dist/{daemon-runtime-B_TQaj6I.js → daemon-runtime-DaZmt_Yr.js} +1 -1
- package/dist/{deliver-CDmkEUmX.js → deliver-B-eXx792.js} +4 -4
- package/dist/{deps-ZIxC0Doy.js → deps-hbqMdN9V.js} +2 -2
- package/dist/{devices-cli-DV-jUaYf.js → devices-cli-CGtI0HNa.js} +2 -2
- package/dist/{directory-cli-B7UysPY4.js → directory-cli-D9vOC56P.js} +1 -1
- package/dist/{dispatcher-DhvRKBDI.js → dispatcher-DdQs4d94.js} +1 -1
- package/dist/{dns-cli-DXMtN9Gb.js → dns-cli-BP5cOMpD.js} +1 -1
- package/dist/{doctor-BPysfaXg.js → doctor-COzR3rO_.js} +9 -9
- package/dist/entry.js +1 -1
- package/dist/{exec-approvals-cli-C79HOdTk.js → exec-approvals-cli-D4c11kAz.js} +4 -4
- package/dist/extensionAPI.js +13 -13
- package/dist/{gateway-cli-BuADJnDC.js → gateway-cli-BLMx21bb.js} +36 -31
- package/dist/{gateway-rpc-Q2jRyeTQ.js → gateway-rpc-DZTU9EBI.js} +1 -1
- package/dist/{github-copilot-auth-Cti6h6hR.js → github-copilot-auth-ClKHOqGs.js} +3 -3
- package/dist/{health-format-zv0U_Wk-.js → health-format-CrVRhXGw.js} +5 -5
- package/dist/{hooks-cli-FT9SxygW.js → hooks-cli-CSbGcMmI.js} +14 -14
- package/dist/{image-Bvu2zE0c.js → image-DiprSuat.js} +2 -2
- package/dist/index.js +34 -34
- package/dist/{login-qr-Jbq8o2T7.js → login-qr-BEZFkHQ_.js} +1 -1
- package/dist/{logs-cli-DCI04-8V.js → logs-cli-B65eJVf0.js} +3 -3
- package/dist/{models-cli-2aFtgkEw.js → models-cli-BJmMfeA-.js} +14 -14
- package/dist/{node-cli-DBm2sjIk.js → node-cli-v8AVxZMO.js} +6 -6
- package/dist/{nodes-cli-B7KX0bhJ.js → nodes-cli-CDeXf2F9.js} +3 -3
- package/dist/{onboard-channels-COgGS3B0.js → onboard-channels-BElsfAzW.js} +1 -1
- package/dist/{onboard-skills-BfxKgirC.js → onboard-skills-CAm2N04Z.js} +4 -4
- package/dist/{onboarding-80vA3gyG.js → onboarding-BtoPzRPZ.js} +14 -14
- package/dist/{pairing-cli-2TcZOibe.js → pairing-cli-B-FEPiJG.js} +1 -1
- package/dist/{pi-embedded-helpers-CmQ40165.js → pi-embedded-helpers-DCX5TPc7.js} +2 -2
- package/dist/{pi-tools.policy-BraJfuOR.js → pi-tools.policy-DFj-oHuw.js} +1 -1
- package/dist/{plugin-registry-tckct7u6.js → plugin-registry-l--pqq8k.js} +2 -2
- package/dist/plugin-sdk/config/io.d.ts +5 -0
- package/dist/plugin-sdk/index.js +39 -1
- package/dist/{plugins-cli-DgoV0zOX.js → plugins-cli-j6BdNkwd.js} +14 -14
- package/dist/{program-DWl-e3xa.js → program-DQ0g9nMq.js} +6 -6
- package/dist/{register.subclis-BxBALLZR.js → register.subclis-B6jWYX0i.js} +27 -27
- package/dist/{reply-Ce68Ven8.js → reply-BL-ogLps.js} +51 -26
- package/dist/{routes-BszYJpxb.js → routes-BrlbTsiP.js} +1 -1
- package/dist/{rpc-b5BzR2Vo.js → rpc-XrQWTWoQ.js} +1 -1
- package/dist/{run-main-hW9M5FTH.js → run-main-B66EkQ15.js} +36 -36
- package/dist/{runner-CRnfmHT3.js → runner-BsSJlmQ2.js} +4 -4
- package/dist/{sandbox-BJ--pf0e.js → sandbox-DS5mqKzv.js} +2 -2
- package/dist/{sandbox-cli-CdyhlNOv.js → sandbox-cli-CpqB1TeB.js} +3 -3
- package/dist/{security-cli-Bw6LFRbO.js → security-cli-Bv51lfE_.js} +6 -6
- package/dist/{server-node-events-qFcSpKDt.js → server-node-events-mVsfQkSl.js} +15 -15
- package/dist/{service-audit-DFAlRrsm.js → service-audit-CUqbLFMz.js} +1 -1
- package/dist/{skills-cli-BZHfQyHh.js → skills-cli-Bfa3zmB2.js} +1 -1
- package/dist/{status-BhcYP6q-.js → status-ulWpUbgl.js} +2 -2
- package/dist/{system-cli-CwE8679w.js → system-cli-M66q4Sz4.js} +3 -3
- package/dist/{tui-BHq0_ym0.js → tui-CkOuHXCO.js} +4 -4
- package/dist/{tui-cli-C_SSlLHP.js → tui-cli-C039s5Yd.js} +7 -7
- package/dist/{update-cli-DdhnmT8x.js → update-cli-aBEek8Rt.js} +22 -22
- package/dist/{update-runner-Dr-JFGwB.js → update-runner-DYPUi2xy.js} +5 -5
- package/dist/{webhooks-cli-DgpUR3KT.js → webhooks-cli-DAg2JGSJ.js} +1 -1
- package/package.json +1 -1
|
@@ -7,12 +7,12 @@ import "./model-selection-xc0Vw_As.js";
|
|
|
7
7
|
import "./boolean-CE7i9tBR.js";
|
|
8
8
|
import "./env-BQxOAG1F.js";
|
|
9
9
|
import "./github-copilot-token-D90Fbndb.js";
|
|
10
|
-
import {
|
|
10
|
+
import { M as VERSION, a as loadConfig } from "./config-CgWHdv8s.js";
|
|
11
11
|
import "./manifest-registry-uUzDX3Gd.js";
|
|
12
12
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BCHir3OL.js";
|
|
13
13
|
import "./device-identity-aE-A60n7.js";
|
|
14
14
|
import { l as GatewayClient } from "./net-CsaQoINS.js";
|
|
15
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
15
|
+
import { t as buildGatewayConnectionDetails } from "./call-DFJUfGIg.js";
|
|
16
16
|
import { t as formatDocsLink } from "./links-cV6JsVBw.js";
|
|
17
17
|
import "./tailscale-Def5VnFl.js";
|
|
18
18
|
import { t as isMainModule } from "./is-main-B7kvxVXR.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { H as normalizeThinkLevel, I as formatThinkingLevels, K as supportsXHighThinking, L as formatXHighModelHint, W as normalizeVerboseLevel } from "./pi-embedded-helpers-
|
|
2
|
-
import { Cn as emitAgentEvent, En as registerAgentRunContext, I as runWithModelFallback, M as resolveSessionDeliveryTarget, Pr as resolveAgentTimeoutMs, Rt as getRemoteSkillEligibility, Sn as clearAgentRunContext, Wt as getSkillsSnapshotVersion, c as runEmbeddedPiAgent, dr as lookupContextTokens, fr as clearSessionAuthProfileOverride, i as runCliAgent, j as resolveOutboundTarget, mr as applyVerboseOverride, n as getCliSessionId, o as resolveSendPolicy, pr as applyModelOverrideToSessionEntry, r as setCliSessionId, xn as AGENT_LANE_NESTED, yr as loadModelCatalog } from "./reply-
|
|
1
|
+
import { H as normalizeThinkLevel, I as formatThinkingLevels, K as supportsXHighThinking, L as formatXHighModelHint, W as normalizeVerboseLevel } from "./pi-embedded-helpers-DCX5TPc7.js";
|
|
2
|
+
import { Cn as emitAgentEvent, En as registerAgentRunContext, I as runWithModelFallback, M as resolveSessionDeliveryTarget, Pr as resolveAgentTimeoutMs, Rt as getRemoteSkillEligibility, Sn as clearAgentRunContext, Wt as getSkillsSnapshotVersion, c as runEmbeddedPiAgent, dr as lookupContextTokens, fr as clearSessionAuthProfileOverride, i as runCliAgent, j as resolveOutboundTarget, mr as applyVerboseOverride, n as getCliSessionId, o as resolveSendPolicy, pr as applyModelOverrideToSessionEntry, r as setCliSessionId, xn as AGENT_LANE_NESTED, yr as loadModelCatalog } from "./reply-BL-ogLps.js";
|
|
3
3
|
import { d as resolveAgentIdFromSessionKey, l as normalizeAgentId, u as normalizeMainKey } from "./session-key-DrNCyvP1.js";
|
|
4
4
|
import { c as defaultRuntime, h as DEFAULT_CHAT_CHANNEL } from "./subsystem-B6KC_eUM.js";
|
|
5
5
|
import { a as resolveAgentModelPrimary, i as resolveAgentModelFallbacksOverride, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, x as ensureAgentWorkspace } from "./agent-scope-3sZP3REv.js";
|
|
6
6
|
import { Ct as DEFAULT_PROVIDER, St as DEFAULT_MODEL, a as isCliProvider, d as resolveConfiguredModelRef, h as resolveThinkingDefault, o as modelKey, ot as ensureAuthProfileStore, t as buildAllowedModelSet, xt as DEFAULT_CONTEXT_TOKENS } from "./model-selection-xc0Vw_As.js";
|
|
7
7
|
import { t as formatCliCommand } from "./command-format-BLvzhUfu.js";
|
|
8
|
-
import {
|
|
8
|
+
import { a as loadConfig } from "./config-CgWHdv8s.js";
|
|
9
9
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-uDxYPKIa.js";
|
|
10
|
-
import { A as resolveSessionResetPolicy, D as resolveSessionKey, I as resolveExplicitAgentSessionKey, O as evaluateSessionFreshness, T as normalizeAccountId, d as loadSessionStore, g as updateSessionStore, j as resolveSessionResetType, k as resolveChannelResetConfig } from "./sandbox-
|
|
10
|
+
import { A as resolveSessionResetPolicy, D as resolveSessionKey, I as resolveExplicitAgentSessionKey, O as evaluateSessionFreshness, T as normalizeAccountId, d as loadSessionStore, g as updateSessionStore, j as resolveSessionResetType, k as resolveChannelResetConfig } from "./sandbox-DS5mqKzv.js";
|
|
11
11
|
import { r as buildWorkspaceSkillSnapshot } from "./skills-C3S-FLEI.js";
|
|
12
12
|
import { a as isInternalMessageChannel, d as resolveMessageChannel, i as isGatewayMessageChannel, l as normalizeMessageChannel, n as isDeliverableMessageChannel, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-BCHir3OL.js";
|
|
13
13
|
import { n as resolveSessionFilePath, o as resolveStorePath } from "./paths-BZlP-7cc.js";
|
|
14
|
-
import { a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-
|
|
14
|
+
import { a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-B-eXx792.js";
|
|
15
15
|
import { l as hasNonzeroUsage } from "./session-cost-usage-DYHjmlkU.js";
|
|
16
|
-
import { t as createDefaultDeps } from "./deps-
|
|
16
|
+
import { t as createDefaultDeps } from "./deps-hbqMdN9V.js";
|
|
17
17
|
import crypto from "node:crypto";
|
|
18
18
|
|
|
19
19
|
//#region src/cli/outbound-send-deps.ts
|
|
@@ -3,17 +3,17 @@ import { l as normalizeAgentId } from "./session-key-DrNCyvP1.js";
|
|
|
3
3
|
import { n as runExec } from "./exec-B_35B71R.js";
|
|
4
4
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-3sZP3REv.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-BLvzhUfu.js";
|
|
6
|
-
import { D as
|
|
6
|
+
import { D as INCLUDE_KEY, O as MAX_INCLUDE_DEPTH, i as createConfigIO } from "./config-CgWHdv8s.js";
|
|
7
7
|
import { a as MANIFEST_KEY } from "./manifest-registry-uUzDX3Gd.js";
|
|
8
8
|
import { n as listChannelPlugins } from "./plugins-uDxYPKIa.js";
|
|
9
|
-
import { $ as resolveSandboxToolPolicyForAgent, Z as resolveSandboxConfigForAgent, ot as resolveToolProfilePolicy } from "./sandbox-
|
|
9
|
+
import { $ as resolveSandboxToolPolicyForAgent, Z as resolveSandboxConfigForAgent, ot as resolveToolProfilePolicy } from "./sandbox-DS5mqKzv.js";
|
|
10
10
|
import { i as loadWorkspaceSkillEntries } from "./skills-C3S-FLEI.js";
|
|
11
11
|
import { a as resolveProfile, i as resolveBrowserConfig } from "./server-context-DrJx4mRd.js";
|
|
12
12
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BCHir3OL.js";
|
|
13
13
|
import { l as GatewayClient } from "./net-CsaQoINS.js";
|
|
14
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
14
|
+
import { t as buildGatewayConnectionDetails } from "./call-DFJUfGIg.js";
|
|
15
15
|
import { i as readChannelAllowFromStore } from "./pairing-store-CS_zR9vE.js";
|
|
16
|
-
import { c as resolveNativeSkillsEnabled, n as isToolAllowedByPolicies, s as resolveNativeCommandsEnabled } from "./pi-tools.policy-
|
|
16
|
+
import { c as resolveNativeSkillsEnabled, n as isToolAllowedByPolicies, s as resolveNativeCommandsEnabled } from "./pi-tools.policy-DFj-oHuw.js";
|
|
17
17
|
import { t as resolveChannelDefaultAccountId } from "./helpers-HriWLZBX.js";
|
|
18
18
|
import { t as scanDirectoryWithSummary } from "./skill-scanner-BnI6aQLs.js";
|
|
19
19
|
import { i as resolveGatewayAuth } from "./auth-C-G9cBrK.js";
|
package/dist/build-info.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as resolveStateDir, o as resolveConfigPath, u as resolveGatewayPort } from "./paths-BP5k1v-m.js";
|
|
2
2
|
import { g as shortenHomeInString, h as resolveUserPath, s as ensureDir, t as CONFIG_DIR } from "./utils-CV3CeN0V.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as loadConfig } from "./config-CgWHdv8s.js";
|
|
4
4
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BCHir3OL.js";
|
|
5
5
|
import { r as loadOrCreateDeviceIdentity } from "./device-identity-aE-A60n7.js";
|
|
6
6
|
import { t as pickPrimaryTailnetIPv4 } from "./tailnet-DpzsRR75.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d1ffdae095c3c9d00438c874386c64a77c5620f83a5a6d66cc66216d52eda1bb
|
|
@@ -2,7 +2,7 @@ import { m as CHAT_CHANNEL_ORDER } from "./subsystem-B6KC_eUM.js";
|
|
|
2
2
|
import { t as isTruthyEnvValue } from "./env-BQxOAG1F.js";
|
|
3
3
|
import { n as listChannelPlugins } from "./plugins-uDxYPKIa.js";
|
|
4
4
|
import { i as listChannelPluginCatalogEntries } from "./plugin-auto-enable-DUTyTPD1.js";
|
|
5
|
-
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-
|
|
5
|
+
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-l--pqq8k.js";
|
|
6
6
|
|
|
7
7
|
//#region src/cli/channel-options.ts
|
|
8
8
|
function dedupe(values) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as formatRawAssistantErrorForUi, z as listThinkingLevels } from "./pi-embedded-helpers-
|
|
1
|
+
import { g as formatRawAssistantErrorForUi, z as listThinkingLevels } from "./pi-embedded-helpers-DCX5TPc7.js";
|
|
2
2
|
import { t as DEFAULT_ACCOUNT_ID } from "./session-key-DrNCyvP1.js";
|
|
3
3
|
import { C as getActivePluginRegistry, R as theme } from "./subsystem-B6KC_eUM.js";
|
|
4
4
|
import { Ct as DEFAULT_PROVIDER, St as DEFAULT_MODEL, d as resolveConfiguredModelRef } from "./model-selection-xc0Vw_As.js";
|
|
5
|
-
import {
|
|
5
|
+
import { a as loadConfig } from "./config-CgWHdv8s.js";
|
|
6
6
|
import { n as listChannelPlugins } from "./plugins-uDxYPKIa.js";
|
|
7
|
-
import { H as listChannelDocks } from "./sandbox-
|
|
7
|
+
import { H as listChannelDocks } from "./sandbox-DS5mqKzv.js";
|
|
8
8
|
import { n as formatTokenCount } from "./usage-format-Dz6XXVQ6.js";
|
|
9
9
|
import { createRequire } from "node:module";
|
|
10
10
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./pi-embedded-helpers-
|
|
2
|
-
import { An as createSlackWebClient, dt as formatUsageReportLines, mn as fetchChannelPermissionsDiscord, pn as parseDiscordTarget, ut as loadProviderUsageSummary } from "./reply-
|
|
1
|
+
import "./pi-embedded-helpers-DCX5TPc7.js";
|
|
2
|
+
import { An as createSlackWebClient, dt as formatUsageReportLines, mn as fetchChannelPermissionsDiscord, pn as parseDiscordTarget, ut as loadProviderUsageSummary } from "./reply-BL-ogLps.js";
|
|
3
3
|
import "./paths-BP5k1v-m.js";
|
|
4
4
|
import { c as normalizeAccountId, t as DEFAULT_ACCOUNT_ID } from "./session-key-DrNCyvP1.js";
|
|
5
5
|
import { E as danger, M as setVerbose, R as theme, V as getResolvedLoggerSettings, c as defaultRuntime, h as DEFAULT_CHAT_CHANNEL } from "./subsystem-B6KC_eUM.js";
|
|
@@ -11,15 +11,15 @@ import { t as formatCliCommand } from "./command-format-BLvzhUfu.js";
|
|
|
11
11
|
import "./boolean-CE7i9tBR.js";
|
|
12
12
|
import "./env-BQxOAG1F.js";
|
|
13
13
|
import "./github-copilot-token-D90Fbndb.js";
|
|
14
|
-
import {
|
|
14
|
+
import { a as loadConfig, l as writeConfigFile, s as readConfigFileSnapshot } from "./config-CgWHdv8s.js";
|
|
15
15
|
import "./manifest-registry-uUzDX3Gd.js";
|
|
16
16
|
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-uDxYPKIa.js";
|
|
17
|
-
import "./sandbox-
|
|
18
|
-
import "./image-
|
|
17
|
+
import "./sandbox-DS5mqKzv.js";
|
|
18
|
+
import "./image-DiprSuat.js";
|
|
19
19
|
import "./pi-model-discovery-OxEqphjo.js";
|
|
20
20
|
import "./chrome-D0I92fvk.js";
|
|
21
21
|
import "./skills-C3S-FLEI.js";
|
|
22
|
-
import "./routes-
|
|
22
|
+
import "./routes-BrlbTsiP.js";
|
|
23
23
|
import "./server-context-DrJx4mRd.js";
|
|
24
24
|
import "./message-channel-BCHir3OL.js";
|
|
25
25
|
import "./logging-kuFzZMsG.js";
|
|
@@ -27,38 +27,38 @@ import "./accounts-CJZF-b3E.js";
|
|
|
27
27
|
import "./paths-BZlP-7cc.js";
|
|
28
28
|
import "./redact-CVRUv382.js";
|
|
29
29
|
import "./tool-display-BW1qxxfx.js";
|
|
30
|
-
import "./deliver-
|
|
31
|
-
import "./dispatcher-
|
|
30
|
+
import "./deliver-B-eXx792.js";
|
|
31
|
+
import "./dispatcher-DdQs4d94.js";
|
|
32
32
|
import "./manager--ouv-6e_.js";
|
|
33
33
|
import "./sqlite-D2EkGm7d.js";
|
|
34
34
|
import "./warnings-jB6BCcga.js";
|
|
35
|
-
import { n as formatAge } from "./channel-summary-
|
|
35
|
+
import { n as formatAge } from "./channel-summary-CFQ_gBp4.js";
|
|
36
36
|
import "./device-identity-aE-A60n7.js";
|
|
37
37
|
import "./net-CsaQoINS.js";
|
|
38
|
-
import { n as callGateway } from "./call-
|
|
39
|
-
import "./login-qr-
|
|
38
|
+
import { n as callGateway } from "./call-DFJUfGIg.js";
|
|
39
|
+
import "./login-qr-BEZFkHQ_.js";
|
|
40
40
|
import "./pairing-store-CS_zR9vE.js";
|
|
41
41
|
import { t as formatDocsLink } from "./links-cV6JsVBw.js";
|
|
42
42
|
import { n as runCommandWithRuntime } from "./cli-utils-BrEIqBi3.js";
|
|
43
43
|
import { n as withProgress } from "./progress-CiypNTfY.js";
|
|
44
44
|
import "./node-pairing-D51n6tIn.js";
|
|
45
|
-
import "./pi-tools.policy-
|
|
45
|
+
import "./pi-tools.policy-DFj-oHuw.js";
|
|
46
46
|
import "./prompt-style-DhjhBSRa.js";
|
|
47
47
|
import "./pairing-labels-BTF0bDvV.js";
|
|
48
48
|
import "./session-cost-usage-DYHjmlkU.js";
|
|
49
|
-
import "./control-service-
|
|
49
|
+
import "./control-service-CnFnB762.js";
|
|
50
50
|
import { n as resolveMessageChannelSelection } from "./channel-selection-CfqNgoNx.js";
|
|
51
51
|
import { t as resolveChannelDefaultAccountId } from "./helpers-HriWLZBX.js";
|
|
52
52
|
import "./note-DI6zNEMc.js";
|
|
53
53
|
import { t as createClackPrompter } from "./clack-prompter-BpHuetXx.js";
|
|
54
|
-
import { i as reloadOnboardingPluginRegistry, n as setupChannels, r as ensureOnboardingPluginInstalled } from "./onboard-channels-
|
|
54
|
+
import { i as reloadOnboardingPluginRegistry, n as setupChannels, r as ensureOnboardingPluginInstalled } from "./onboard-channels-BElsfAzW.js";
|
|
55
55
|
import { i as listChannelPluginCatalogEntries } from "./plugin-auto-enable-DUTyTPD1.js";
|
|
56
56
|
import "./archive-Dr_Qif_v.js";
|
|
57
57
|
import "./skill-scanner-BnI6aQLs.js";
|
|
58
58
|
import "./installs-B8AeWOJf.js";
|
|
59
59
|
import { t as collectChannelStatusIssues } from "./channels-status-issues-DZ5LPoTk.js";
|
|
60
|
-
import { n as hasExplicitOptions } from "./plugin-registry-
|
|
61
|
-
import { t as formatCliChannelOptions } from "./channel-options-
|
|
60
|
+
import { n as hasExplicitOptions } from "./plugin-registry-l--pqq8k.js";
|
|
61
|
+
import { t as formatCliChannelOptions } from "./channel-options-Cz2C_f2h.js";
|
|
62
62
|
import { t as buildChannelAccountSnapshot } from "./status-BRd7gvby.js";
|
|
63
63
|
import { t as parseLogLine } from "./parse-log-line-C5ba0mHJ.js";
|
|
64
64
|
import fs from "node:fs/promises";
|
package/dist/cli/daemon-cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Legacy shim for pre-tsdown update-cli imports.
|
|
2
|
-
export { registerDaemonCli, runDaemonInstall, runDaemonRestart, runDaemonStart, runDaemonStatus, runDaemonStop, runDaemonUninstall } from "../daemon-cli-
|
|
2
|
+
export { registerDaemonCli, runDaemonInstall, runDaemonRestart, runDaemonStart, runDaemonStatus, runDaemonStop, runDaemonUninstall } from "../daemon-cli-DnUeyO6P.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./pi-embedded-helpers-
|
|
2
|
-
import { lt as loadSKYKOIPlugins } from "./reply-
|
|
1
|
+
import "./pi-embedded-helpers-DCX5TPc7.js";
|
|
2
|
+
import { lt as loadSKYKOIPlugins } from "./reply-BL-ogLps.js";
|
|
3
3
|
import "./paths-BP5k1v-m.js";
|
|
4
4
|
import { t as createSubsystemLogger } from "./subsystem-B6KC_eUM.js";
|
|
5
5
|
import "./utils-CV3CeN0V.js";
|
|
@@ -9,15 +9,15 @@ import "./model-selection-xc0Vw_As.js";
|
|
|
9
9
|
import "./boolean-CE7i9tBR.js";
|
|
10
10
|
import "./env-BQxOAG1F.js";
|
|
11
11
|
import "./github-copilot-token-D90Fbndb.js";
|
|
12
|
-
import {
|
|
12
|
+
import { a as loadConfig } from "./config-CgWHdv8s.js";
|
|
13
13
|
import "./manifest-registry-uUzDX3Gd.js";
|
|
14
14
|
import "./plugins-uDxYPKIa.js";
|
|
15
|
-
import "./sandbox-
|
|
16
|
-
import "./image-
|
|
15
|
+
import "./sandbox-DS5mqKzv.js";
|
|
16
|
+
import "./image-DiprSuat.js";
|
|
17
17
|
import "./pi-model-discovery-OxEqphjo.js";
|
|
18
18
|
import "./chrome-D0I92fvk.js";
|
|
19
19
|
import "./skills-C3S-FLEI.js";
|
|
20
|
-
import "./routes-
|
|
20
|
+
import "./routes-BrlbTsiP.js";
|
|
21
21
|
import "./server-context-DrJx4mRd.js";
|
|
22
22
|
import "./message-channel-BCHir3OL.js";
|
|
23
23
|
import "./logging-kuFzZMsG.js";
|
|
@@ -25,25 +25,25 @@ import "./accounts-CJZF-b3E.js";
|
|
|
25
25
|
import "./paths-BZlP-7cc.js";
|
|
26
26
|
import "./redact-CVRUv382.js";
|
|
27
27
|
import "./tool-display-BW1qxxfx.js";
|
|
28
|
-
import "./deliver-
|
|
29
|
-
import "./dispatcher-
|
|
28
|
+
import "./deliver-B-eXx792.js";
|
|
29
|
+
import "./dispatcher-DdQs4d94.js";
|
|
30
30
|
import "./manager--ouv-6e_.js";
|
|
31
31
|
import "./sqlite-D2EkGm7d.js";
|
|
32
32
|
import "./warnings-jB6BCcga.js";
|
|
33
|
-
import "./channel-summary-
|
|
33
|
+
import "./channel-summary-CFQ_gBp4.js";
|
|
34
34
|
import "./device-identity-aE-A60n7.js";
|
|
35
35
|
import "./net-CsaQoINS.js";
|
|
36
|
-
import "./call-
|
|
37
|
-
import "./login-qr-
|
|
36
|
+
import "./call-DFJUfGIg.js";
|
|
37
|
+
import "./login-qr-BEZFkHQ_.js";
|
|
38
38
|
import "./pairing-store-CS_zR9vE.js";
|
|
39
39
|
import "./links-cV6JsVBw.js";
|
|
40
40
|
import "./progress-CiypNTfY.js";
|
|
41
41
|
import "./node-pairing-D51n6tIn.js";
|
|
42
|
-
import "./pi-tools.policy-
|
|
42
|
+
import "./pi-tools.policy-DFj-oHuw.js";
|
|
43
43
|
import "./prompt-style-DhjhBSRa.js";
|
|
44
44
|
import "./pairing-labels-BTF0bDvV.js";
|
|
45
45
|
import "./session-cost-usage-DYHjmlkU.js";
|
|
46
|
-
import "./control-service-
|
|
46
|
+
import "./control-service-CnFnB762.js";
|
|
47
47
|
import "./channel-selection-CfqNgoNx.js";
|
|
48
48
|
|
|
49
49
|
//#region src/plugins/cli.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
2
|
import { g as resolveStateDir } from "./paths-BP5k1v-m.js";
|
|
3
|
-
import { n as registerSubCliByName, t as getSubCliEntries } from "./register.subclis-
|
|
3
|
+
import { n as registerSubCliByName, t as getSubCliEntries } from "./register.subclis-B6jWYX0i.js";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
@@ -4587,6 +4587,39 @@ function parseConfigJson5(raw, json5 = JSON5) {
|
|
|
4587
4587
|
};
|
|
4588
4588
|
}
|
|
4589
4589
|
}
|
|
4590
|
+
/**
|
|
4591
|
+
* Attempt to restore a valid config from backup files when the primary config is corrupt.
|
|
4592
|
+
* Tries .bak, .bak.1, .bak.2, etc. in order (most recent first).
|
|
4593
|
+
* If a valid backup is found, copies it over the corrupt config and loads it.
|
|
4594
|
+
* Returns the loaded config or null if no valid backup exists.
|
|
4595
|
+
*/
|
|
4596
|
+
function tryRestoreConfigFromBackup(configPath, deps) {
|
|
4597
|
+
const backupBase = `${configPath}.bak`;
|
|
4598
|
+
const candidates = [`${configPath}.pre-restart`, backupBase];
|
|
4599
|
+
for (let i = 1; i < CONFIG_BACKUP_COUNT; i++) candidates.push(`${backupBase}.${i}`);
|
|
4600
|
+
for (const backupPath of candidates) try {
|
|
4601
|
+
if (!deps.fs.existsSync(backupPath)) continue;
|
|
4602
|
+
const raw = deps.fs.readFileSync(backupPath, "utf-8");
|
|
4603
|
+
const parsed = deps.json5.parse(raw);
|
|
4604
|
+
if (typeof parsed !== "object" || parsed === null) continue;
|
|
4605
|
+
const validated = validateConfigObjectWithPlugins(parsed);
|
|
4606
|
+
if (!validated.ok) continue;
|
|
4607
|
+
deps.logger.warn(`Config corrupted; auto-restoring from backup: ${backupPath}`);
|
|
4608
|
+
try {
|
|
4609
|
+
deps.fs.copyFileSync(backupPath, configPath);
|
|
4610
|
+
} catch (copyErr) {
|
|
4611
|
+
deps.logger.error(`Failed to restore config from ${backupPath}: ${String(copyErr)}`);
|
|
4612
|
+
continue;
|
|
4613
|
+
}
|
|
4614
|
+
const cfg = applyModelDefaults(applyCompactionDefaults(applyContextPruningDefaults(applyAgentDefaults(applySessionDefaults(applyLoggingDefaults(applyMessageDefaults(validated.config)))))));
|
|
4615
|
+
normalizeConfigPaths(cfg);
|
|
4616
|
+
applyConfigEnv(cfg, deps.env);
|
|
4617
|
+
return applyConfigOverrides(cfg);
|
|
4618
|
+
} catch {
|
|
4619
|
+
continue;
|
|
4620
|
+
}
|
|
4621
|
+
return null;
|
|
4622
|
+
}
|
|
4590
4623
|
function createConfigIO(overrides = {}) {
|
|
4591
4624
|
const deps = normalizeDeps(overrides);
|
|
4592
4625
|
const requestedConfigPath = resolveConfigPathForDeps(deps);
|
|
@@ -4655,7 +4688,12 @@ function createConfigIO(overrides = {}) {
|
|
|
4655
4688
|
deps.logger.error(err.message);
|
|
4656
4689
|
throw err;
|
|
4657
4690
|
}
|
|
4658
|
-
|
|
4691
|
+
const error = err;
|
|
4692
|
+
if (error?.code === "INVALID_CONFIG" || !error?.code) {
|
|
4693
|
+
const restored = tryRestoreConfigFromBackup(configPath, deps);
|
|
4694
|
+
if (restored) return restored;
|
|
4695
|
+
}
|
|
4696
|
+
if (error?.code === "INVALID_CONFIG") return {};
|
|
4659
4697
|
deps.logger.error(`Failed to read config at ${configPath}`, err);
|
|
4660
4698
|
return {};
|
|
4661
4699
|
}
|
|
@@ -4878,6 +4916,18 @@ async function writeConfigFile(cfg) {
|
|
|
4878
4916
|
clearConfigCache();
|
|
4879
4917
|
await createConfigIO().writeConfigFile(cfg);
|
|
4880
4918
|
}
|
|
4919
|
+
/**
|
|
4920
|
+
* Create a backup of the current config file before a restart/update operation.
|
|
4921
|
+
* This ensures we have a known-good config to restore from if the restart corrupts it.
|
|
4922
|
+
*/
|
|
4923
|
+
function backupConfigBeforeRestart() {
|
|
4924
|
+
const configPath = createConfigIO().configPath;
|
|
4925
|
+
if (!fs.existsSync(configPath)) return;
|
|
4926
|
+
const backupPath = `${configPath}.pre-restart`;
|
|
4927
|
+
try {
|
|
4928
|
+
fs.copyFileSync(configPath, backupPath);
|
|
4929
|
+
} catch {}
|
|
4930
|
+
}
|
|
4881
4931
|
|
|
4882
4932
|
//#endregion
|
|
4883
4933
|
//#region src/config/legacy-migrate.ts
|
|
@@ -4929,4 +4979,4 @@ var config_exports = /* @__PURE__ */ __exportAll({
|
|
|
4929
4979
|
});
|
|
4930
4980
|
|
|
4931
4981
|
//#endregion
|
|
4932
|
-
export {
|
|
4982
|
+
export { resolveAgentMaxConcurrent as A, parseConfigPath as C, INCLUDE_KEY as D, applyLegacyMigrations as E, VERSION as M, MAX_INCLUDE_DEPTH as O, getConfigValueAtPath as S, unsetConfigValueAtPath as T, validateJsonSchemaValue as _, loadConfig as a, setConfigOverride as b, resolveConfigSnapshotHash as c, SKYKOISchema as d, TELEGRAM_COMMAND_NAME_PATTERN as f, parseDurationMs as g, isSafeExecutableValue as h, createConfigIO as i, resolveSubagentMaxConcurrent as j, collectConfigEnvVars as k, writeConfigFile as l, resolveTelegramCustomCommands as m, migrateLegacyConfig as n, parseConfigJson5 as o, normalizeTelegramCommandName as p, backupConfigBeforeRestart as r, readConfigFileSnapshot as s, config_exports as t, validateConfigObjectWithPlugins as u, getConfigOverrides as v, setConfigValueAtPath as w, unsetConfigOverride as x, resetConfigOverrides as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as resolveControlUiLinks, Ct as handleReset, E as runMessageAction, Et as openUrl, F as CHANNEL_MESSAGE_ACTION_NAMES, N as formatTargetDisplay, Nt as waitForGatewayReachable, Xt as registerMemoryCli, Zt as runMemoryStatus, _t as applyWizardMetadata, at as CHANNEL_TARGET_DESCRIPTION, bt as ensureWorkspaceAndSessions, dr as lookupContextTokens, gt as DEFAULT_WORKSPACE, it as CHANNEL_TARGETS_DESCRIPTION, kt as randomToken, wt as moveToTrash, xt as formatControlUiSshHint, yt as detectBrowserOpenSupport } from "./reply-
|
|
1
|
+
import { At as resolveControlUiLinks, Ct as handleReset, E as runMessageAction, Et as openUrl, F as CHANNEL_MESSAGE_ACTION_NAMES, N as formatTargetDisplay, Nt as waitForGatewayReachable, Xt as registerMemoryCli, Zt as runMemoryStatus, _t as applyWizardMetadata, at as CHANNEL_TARGET_DESCRIPTION, bt as ensureWorkspaceAndSessions, dr as lookupContextTokens, gt as DEFAULT_WORKSPACE, it as CHANNEL_TARGETS_DESCRIPTION, kt as randomToken, wt as moveToTrash, xt as formatControlUiSshHint, yt as detectBrowserOpenSupport } from "./reply-BL-ogLps.js";
|
|
2
2
|
import { g as resolveStateDir, i as isNixMode, m as resolveOAuthDir, o as resolveConfigPath, r as STATE_DIR, u as resolveGatewayPort } from "./paths-BP5k1v-m.js";
|
|
3
3
|
import { l as normalizeAgentId, n as DEFAULT_AGENT_ID, t as DEFAULT_ACCOUNT_ID } from "./session-key-DrNCyvP1.js";
|
|
4
4
|
import { D as info, E as danger, I as colorize, L as isRich, M as setVerbose, R as theme, S as normalizeChatChannelId, c as defaultRuntime, h as DEFAULT_CHAT_CHANNEL, l as restoreTerminalState, v as getChatChannelMeta } from "./subsystem-B6KC_eUM.js";
|
|
@@ -8,40 +8,40 @@ import { c as resolveDefaultAgentId, f as DEFAULT_AGENT_WORKSPACE_DIR, h as DEFA
|
|
|
8
8
|
import { Ct as DEFAULT_PROVIDER, G as resolveAuthProfileOrder, H as resolveEnvApiKey, St as DEFAULT_MODEL, X as resolveApiKeyForProfile, at as upsertAuthProfile, d as resolveConfiguredModelRef, lt as resolveAuthStorePath, ot as ensureAuthProfileStore, s as normalizeProviderId, xt as DEFAULT_CONTEXT_TOKENS } from "./model-selection-xc0Vw_As.js";
|
|
9
9
|
import { t as formatCliCommand } from "./command-format-BLvzhUfu.js";
|
|
10
10
|
import { t as parseBooleanValue } from "./boolean-CE7i9tBR.js";
|
|
11
|
-
import {
|
|
11
|
+
import { a as loadConfig, g as parseDurationMs, i as createConfigIO, l as writeConfigFile, s as readConfigFileSnapshot } from "./config-CgWHdv8s.js";
|
|
12
12
|
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-uDxYPKIa.js";
|
|
13
|
-
import { d as loadSessionStore } from "./sandbox-
|
|
13
|
+
import { d as loadSessionStore } from "./sandbox-DS5mqKzv.js";
|
|
14
14
|
import { n as movePathToTrash } from "./server-context-DrJx4mRd.js";
|
|
15
15
|
import { h as GATEWAY_CLIENT_NAMES, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES } from "./message-channel-BCHir3OL.js";
|
|
16
16
|
import { a as resolveSessionTranscriptsDirForAgent, i as resolveSessionTranscriptsDir, o as resolveStorePath } from "./paths-BZlP-7cc.js";
|
|
17
|
-
import { i as randomIdempotencyKey, n as callGateway } from "./call-
|
|
17
|
+
import { i as randomIdempotencyKey, n as callGateway } from "./call-DFJUfGIg.js";
|
|
18
18
|
import { t as formatDocsLink } from "./links-cV6JsVBw.js";
|
|
19
19
|
import { n as runCommandWithRuntime } from "./cli-utils-BrEIqBi3.js";
|
|
20
20
|
import { n as withProgress } from "./progress-CiypNTfY.js";
|
|
21
21
|
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-DhjhBSRa.js";
|
|
22
|
-
import { t as createDefaultDeps } from "./deps-
|
|
23
|
-
import { a as gatewayInstallErrorHint, g as assertSupportedRuntime, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
22
|
+
import { t as createDefaultDeps } from "./deps-hbqMdN9V.js";
|
|
23
|
+
import { a as gatewayInstallErrorHint, g as assertSupportedRuntime, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-DaZmt_Yr.js";
|
|
24
24
|
import { t as resolveChannelDefaultAccountId } from "./helpers-HriWLZBX.js";
|
|
25
25
|
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-d9dIkkjl.js";
|
|
26
26
|
import { t as WizardCancelledError } from "./prompts-Bs5fh5rY.js";
|
|
27
27
|
import { t as createClackPrompter } from "./clack-prompter-BpHuetXx.js";
|
|
28
|
-
import { a as buildAgentSummaries, c as loadAgentIdentity, f as parseIdentityMarkdown, i as applyAgentConfig, l as pruneAgentConfig, n as statusCommand, o as findAgentEntryIndex, s as listAgentEntries, t as runOnboardingWizard, u as identityHasValues } from "./onboarding-
|
|
29
|
-
import { d as applyAuthChoice, f as applyOpenAIConfig, h as promptAuthChoiceGrouped, m as applyGoogleGeminiModelDefault, p as upsertSharedEnvVar, u as warnIfModelConfigLooksOff } from "./onboard-skills-
|
|
30
|
-
import { $ as setOpenrouterApiKey, C as applyMoonshotConfig, D as applyOpenrouterConfig, F as applyVercelAiGatewayConfig, J as setGeminiApiKey, K as setAnthropicApiKey, L as applyXaiConfig, N as applyVeniceConfig, Q as setOpencodeZenApiKey, V as applyZaiConfig, X as setMinimaxApiKey, Y as setKimiCodingApiKey, Z as setMoonshotApiKey, at as setXiaomiApiKey, et as setQianfanApiKey, f as applyOpencodeZenConfig, ft as buildTokenProfileId, g as applyMinimaxConfig, it as setXaiApiKey, j as applySyntheticConfig, k as applyQianfanConfig, m as applyMinimaxApiConfig, nt as setVeniceApiKey, ot as setZaiApiKey, pt as validateAnthropicSetupToken, q as setCloudflareAiGatewayConfig, rt as setVercelAiGatewayApiKey, tt as setSyntheticApiKey, v as applyAuthProfileConfig, w as applyMoonshotConfigCn, x as applyKimiCodeConfig, y as applyCloudflareAiGatewayConfig, z as applyXiaomiConfig } from "./github-copilot-auth-
|
|
31
|
-
import { n as setupChannels } from "./onboard-channels-
|
|
32
|
-
import { l as healthCommand } from "./health-format-
|
|
28
|
+
import { a as buildAgentSummaries, c as loadAgentIdentity, f as parseIdentityMarkdown, i as applyAgentConfig, l as pruneAgentConfig, n as statusCommand, o as findAgentEntryIndex, s as listAgentEntries, t as runOnboardingWizard, u as identityHasValues } from "./onboarding-BtoPzRPZ.js";
|
|
29
|
+
import { d as applyAuthChoice, f as applyOpenAIConfig, h as promptAuthChoiceGrouped, m as applyGoogleGeminiModelDefault, p as upsertSharedEnvVar, u as warnIfModelConfigLooksOff } from "./onboard-skills-CAm2N04Z.js";
|
|
30
|
+
import { $ as setOpenrouterApiKey, C as applyMoonshotConfig, D as applyOpenrouterConfig, F as applyVercelAiGatewayConfig, J as setGeminiApiKey, K as setAnthropicApiKey, L as applyXaiConfig, N as applyVeniceConfig, Q as setOpencodeZenApiKey, V as applyZaiConfig, X as setMinimaxApiKey, Y as setKimiCodingApiKey, Z as setMoonshotApiKey, at as setXiaomiApiKey, et as setQianfanApiKey, f as applyOpencodeZenConfig, ft as buildTokenProfileId, g as applyMinimaxConfig, it as setXaiApiKey, j as applySyntheticConfig, k as applyQianfanConfig, m as applyMinimaxApiConfig, nt as setVeniceApiKey, ot as setZaiApiKey, pt as validateAnthropicSetupToken, q as setCloudflareAiGatewayConfig, rt as setVercelAiGatewayApiKey, tt as setSyntheticApiKey, v as applyAuthProfileConfig, w as applyMoonshotConfigCn, x as applyKimiCodeConfig, y as applyCloudflareAiGatewayConfig, z as applyXiaomiConfig } from "./github-copilot-auth-ClKHOqGs.js";
|
|
31
|
+
import { n as setupChannels } from "./onboard-channels-BElsfAzW.js";
|
|
32
|
+
import { l as healthCommand } from "./health-format-CrVRhXGw.js";
|
|
33
33
|
import { t as renderTable } from "./table-B8cW-QyF.js";
|
|
34
34
|
import { t as resolveGatewayService } from "./service-B1ZPoIQg.js";
|
|
35
35
|
import { r as isSystemdUserServiceAvailable } from "./systemd-4vDc7_PJ.js";
|
|
36
|
-
import { l as getVerboseFlag, o as getFlagValue, r as registerSubCliCommands, s as getPositiveIntFlagValue, u as hasFlag } from "./register.subclis-
|
|
37
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
36
|
+
import { l as getVerboseFlag, o as getFlagValue, r as registerSubCliCommands, s as getPositiveIntFlagValue, u as hasFlag } from "./register.subclis-B6jWYX0i.js";
|
|
37
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-DZTU9EBI.js";
|
|
38
38
|
import { t as formatHelpExamples } from "./help-format-BVyRekoh.js";
|
|
39
|
-
import { a as createOutboundSendDeps, n as resolveSessionKeyForRequest, t as agentCommand } from "./agent-
|
|
40
|
-
import { n as hasExplicitOptions, t as ensurePluginRegistryLoaded } from "./plugin-registry-
|
|
39
|
+
import { a as createOutboundSendDeps, n as resolveSessionKeyForRequest, t as agentCommand } from "./agent-stNlSToT.js";
|
|
40
|
+
import { n as hasExplicitOptions, t as ensurePluginRegistryLoaded } from "./plugin-registry-l--pqq8k.js";
|
|
41
41
|
import { n as parsePositiveIntOrUndefined, t as collectOption } from "./helpers-9N2Q5aZj.js";
|
|
42
|
-
import { i as CONFIGURE_WIZARD_SECTIONS, n as configureCommand, r as configureCommandWithSections } from "./configure-
|
|
42
|
+
import { i as CONFIGURE_WIZARD_SECTIONS, n as configureCommand, r as configureCommandWithSections } from "./configure-DvztYrKh.js";
|
|
43
43
|
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-Im_PrEMf.js";
|
|
44
|
-
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-
|
|
44
|
+
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-COzR3rO_.js";
|
|
45
45
|
import { fileURLToPath } from "node:url";
|
|
46
46
|
import path from "node:path";
|
|
47
47
|
import fs from "node:fs";
|
|
@@ -2792,7 +2792,7 @@ async function loadValidConfig() {
|
|
|
2792
2792
|
}
|
|
2793
2793
|
function registerConfigCli(program) {
|
|
2794
2794
|
const cmd = program.command("config").description("Config helpers (get/set/unset). Run without subcommand for the wizard.").addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/config", "docs.skykoi.com/cli/config")}\n`).option("--section <section>", "Configure wizard sections (repeatable). Use with no subcommand.", (value, previous) => [...previous, value], []).action(async (opts) => {
|
|
2795
|
-
const { CONFIGURE_WIZARD_SECTIONS, configureCommand, configureCommandWithSections } = await import("./configure-
|
|
2795
|
+
const { CONFIGURE_WIZARD_SECTIONS, configureCommand, configureCommandWithSections } = await import("./configure-DvztYrKh.js").then((n) => n.t);
|
|
2796
2796
|
const sections = Array.isArray(opts.section) ? opts.section.map((value) => typeof value === "string" ? value.trim() : "").filter(Boolean) : [];
|
|
2797
2797
|
if (sections.length === 0) {
|
|
2798
2798
|
await configureCommand(defaultRuntime);
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
|
-
import { At as resolveControlUiLinks, Dt as printWizardHeader, Mt as summarizeExistingConfig, Nt as waitForGatewayReachable, Ot as probeGatewayReachable, St as guardCancel, Tt as normalizeGatewayTokenInput, _t as applyWizardMetadata, bt as ensureWorkspaceAndSessions, gt as DEFAULT_WORKSPACE, kt as randomToken } from "./reply-
|
|
2
|
+
import { At as resolveControlUiLinks, Dt as printWizardHeader, Mt as summarizeExistingConfig, Nt as waitForGatewayReachable, Ot as probeGatewayReachable, St as guardCancel, Tt as normalizeGatewayTokenInput, _t as applyWizardMetadata, bt as ensureWorkspaceAndSessions, gt as DEFAULT_WORKSPACE, kt as randomToken } from "./reply-BL-ogLps.js";
|
|
3
3
|
import { t as CONFIG_PATH, u as resolveGatewayPort } from "./paths-BP5k1v-m.js";
|
|
4
4
|
import { c as defaultRuntime } from "./subsystem-B6KC_eUM.js";
|
|
5
5
|
import { _ as shortenHomePath, h as resolveUserPath } from "./utils-CV3CeN0V.js";
|
|
6
6
|
import { ot as ensureAuthProfileStore } from "./model-selection-xc0Vw_As.js";
|
|
7
7
|
import { t as formatCliCommand } from "./command-format-BLvzhUfu.js";
|
|
8
|
-
import {
|
|
8
|
+
import { a as loadConfig, l as writeConfigFile, s as readConfigFileSnapshot } from "./config-CgWHdv8s.js";
|
|
9
9
|
import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-uDxYPKIa.js";
|
|
10
10
|
import { n as withProgress } from "./progress-CiypNTfY.js";
|
|
11
11
|
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-DhjhBSRa.js";
|
|
12
12
|
import { a as findTailscaleBinary } from "./tailscale-Def5VnFl.js";
|
|
13
|
-
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
13
|
+
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-DaZmt_Yr.js";
|
|
14
14
|
import { n as logConfigUpdated } from "./logging-d9dIkkjl.js";
|
|
15
15
|
import { t as note$1 } from "./note-DI6zNEMc.js";
|
|
16
16
|
import { t as WizardCancelledError } from "./prompts-Bs5fh5rY.js";
|
|
17
17
|
import { t as createClackPrompter } from "./clack-prompter-BpHuetXx.js";
|
|
18
|
-
import { a as applyModelFallbacksFromSelection, c as promptModelAllowlist, d as applyAuthChoice, h as promptAuthChoiceGrouped, i as applyModelAllowlist, l as resolvePreferredProviderForAuthChoice, o as applyPrimaryModel, r as promptRemoteGatewayConfig, s as promptDefaultModel, t as setupSkills } from "./onboard-skills-
|
|
19
|
-
import { n as setupChannels, t as noteChannelStatus } from "./onboard-channels-
|
|
20
|
-
import { l as healthCommand, n as ensureControlUiAssetsBuilt, t as formatHealthCheckFailure } from "./health-format-
|
|
18
|
+
import { a as applyModelFallbacksFromSelection, c as promptModelAllowlist, d as applyAuthChoice, h as promptAuthChoiceGrouped, i as applyModelAllowlist, l as resolvePreferredProviderForAuthChoice, o as applyPrimaryModel, r as promptRemoteGatewayConfig, s as promptDefaultModel, t as setupSkills } from "./onboard-skills-CAm2N04Z.js";
|
|
19
|
+
import { n as setupChannels, t as noteChannelStatus } from "./onboard-channels-BElsfAzW.js";
|
|
20
|
+
import { l as healthCommand, n as ensureControlUiAssetsBuilt, t as formatHealthCheckFailure } from "./health-format-CrVRhXGw.js";
|
|
21
21
|
import { t as resolveGatewayService } from "./service-B1ZPoIQg.js";
|
|
22
22
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-Im_PrEMf.js";
|
|
23
23
|
import { confirm, intro, outro, select, text } from "@clack/prompts";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-B6KC_eUM.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as loadConfig } from "./config-CgWHdv8s.js";
|
|
4
4
|
import { S as ensureChromeExtensionRelayServer } from "./chrome-D0I92fvk.js";
|
|
5
5
|
import { a as resolveProfile, i as resolveBrowserConfig, t as createBrowserRouteContext } from "./server-context-DrJx4mRd.js";
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ import "./model-selection-xc0Vw_As.js";
|
|
|
8
8
|
import "./boolean-CE7i9tBR.js";
|
|
9
9
|
import "./env-BQxOAG1F.js";
|
|
10
10
|
import "./github-copilot-token-D90Fbndb.js";
|
|
11
|
-
import "./config-
|
|
11
|
+
import "./config-CgWHdv8s.js";
|
|
12
12
|
import "./manifest-registry-uUzDX3Gd.js";
|
|
13
13
|
import { n as listChannelPlugins } from "./plugins-uDxYPKIa.js";
|
|
14
14
|
import "./message-channel-BCHir3OL.js";
|
|
@@ -16,11 +16,11 @@ import "./logging-kuFzZMsG.js";
|
|
|
16
16
|
import "./accounts-CJZF-b3E.js";
|
|
17
17
|
import "./device-identity-aE-A60n7.js";
|
|
18
18
|
import "./net-CsaQoINS.js";
|
|
19
|
-
import "./call-
|
|
19
|
+
import "./call-DFJUfGIg.js";
|
|
20
20
|
import { t as formatDocsLink } from "./links-cV6JsVBw.js";
|
|
21
21
|
import "./progress-CiypNTfY.js";
|
|
22
22
|
import { t as parseAbsoluteTimeMs } from "./parse-ioZhOtha.js";
|
|
23
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
23
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-DZTU9EBI.js";
|
|
24
24
|
import { n as parsePositiveIntOrUndefined } from "./helpers-9N2Q5aZj.js";
|
|
25
25
|
|
|
26
26
|
//#region src/cli/cron-cli/shared.ts
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
|
-
import { At as resolveControlUiLinks } from "./reply-
|
|
2
|
+
import { At as resolveControlUiLinks } from "./reply-BL-ogLps.js";
|
|
3
3
|
import { d as resolveIsNixMode, g as resolveStateDir, o as resolveConfigPath, u as resolveGatewayPort } from "./paths-BP5k1v-m.js";
|
|
4
4
|
import { I as colorize, L as isRich, R as theme, V as getResolvedLoggerSettings, c as defaultRuntime } from "./subsystem-B6KC_eUM.js";
|
|
5
5
|
import { _ as shortenHomePath } from "./utils-CV3CeN0V.js";
|
|
6
6
|
import { t as formatCliCommand } from "./command-format-BLvzhUfu.js";
|
|
7
|
-
import {
|
|
7
|
+
import { a as loadConfig, i as createConfigIO } from "./config-CgWHdv8s.js";
|
|
8
8
|
import { d as inspectPortUsage, p as formatPortDiagnostics } from "./chrome-D0I92fvk.js";
|
|
9
9
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BCHir3OL.js";
|
|
10
|
-
import { n as isWSL, r as isWSLEnv } from "./dispatcher-
|
|
10
|
+
import { n as isWSL, r as isWSLEnv } from "./dispatcher-DdQs4d94.js";
|
|
11
11
|
import { t as pickPrimaryTailnetIPv4 } from "./tailnet-DpzsRR75.js";
|
|
12
12
|
import { o as resolveGatewayBindHost } from "./net-CsaQoINS.js";
|
|
13
|
-
import { n as callGateway } from "./call-
|
|
13
|
+
import { n as callGateway } from "./call-DFJUfGIg.js";
|
|
14
14
|
import { t as formatDocsLink } from "./links-cV6JsVBw.js";
|
|
15
15
|
import { n as withProgress } from "./progress-CiypNTfY.js";
|
|
16
16
|
import { d as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel } from "./constants-CTwd2ito.js";
|
|
17
|
-
import { t as createDefaultDeps } from "./deps-
|
|
18
|
-
import { i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
17
|
+
import { t as createDefaultDeps } from "./deps-hbqMdN9V.js";
|
|
18
|
+
import { i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-DaZmt_Yr.js";
|
|
19
19
|
import { o as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-B1ZPoIQg.js";
|
|
20
20
|
import { r as isSystemdUserServiceAvailable } from "./systemd-4vDc7_PJ.js";
|
|
21
|
-
import { a as renderGatewayServiceCleanupHints, i as findExtraGatewayServices, n as auditGatewayServiceConfig, o as readLastGatewayErrorLine } from "./service-audit-
|
|
21
|
+
import { a as renderGatewayServiceCleanupHints, i as findExtraGatewayServices, n as auditGatewayServiceConfig, o as readLastGatewayErrorLine } from "./service-audit-CUqbLFMz.js";
|
|
22
22
|
import { n as renderSystemdUnavailableHints, t as isSystemdUnavailableDetail } from "./systemd-hints-Df7nLBgA.js";
|
|
23
23
|
import { a as parsePortFromArgs, c as renderRuntimeHints, d as createNullWriter, f as emitDaemonActionJson, i as parsePort, l as safeDaemonEnv, n as formatRuntimeStatus, o as pickProbeHostForBind, r as normalizeListenerAddress, s as renderGatewayServiceStartHints, t as filterDaemonEnv, u as buildDaemonServiceSnapshot } from "./shared-EaA-hq6q.js";
|
|
24
24
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as defaultRuntime } from "./subsystem-B6KC_eUM.js";
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-BLvzhUfu.js";
|
|
3
|
-
import {
|
|
3
|
+
import { M as VERSION, k as collectConfigEnvVars } from "./config-CgWHdv8s.js";
|
|
4
4
|
import { a as NODE_SERVICE_MARKER, d as resolveGatewaySystemdServiceName, g as resolveNodeWindowsTaskName, h as resolveNodeSystemdServiceName, i as NODE_SERVICE_KIND, l as resolveGatewayLaunchAgentLabel, m as resolveNodeLaunchAgentLabel, n as GATEWAY_SERVICE_KIND, o as NODE_WINDOWS_TASK_SCRIPT_NAME, r as GATEWAY_SERVICE_MARKER } from "./constants-CTwd2ito.js";
|
|
5
5
|
import process$1 from "node:process";
|
|
6
6
|
import path from "node:path";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
|
-
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-
|
|
2
|
+
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-DCX5TPc7.js";
|
|
3
3
|
import { c as normalizeAccountId$1 } from "./session-key-DrNCyvP1.js";
|
|
4
4
|
import { A as logVerbose, C as getActivePluginRegistry, N as shouldLogVerbose } from "./subsystem-B6KC_eUM.js";
|
|
5
5
|
import { h as resolveUserPath } from "./utils-CV3CeN0V.js";
|
|
6
|
-
import {
|
|
6
|
+
import { a as loadConfig } from "./config-CgWHdv8s.js";
|
|
7
7
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-uDxYPKIa.js";
|
|
8
|
-
import { V as getChannelDock, l as appendAssistantMessageToSessionTranscript, q as resolveSignalAccount, u as resolveMirroredTranscriptText } from "./sandbox-
|
|
9
|
-
import { C as resolvePinnedHostnameWithPolicy, S as resolvePinnedHostname, _ as maxBytesForKind, a as optimizeImageToPng, b as closeDispatcher, c as saveMediaBuffer, i as hasAlphaChannel, l as detectMime, n as convertHeicToJpeg, o as resizeToJpeg, u as extensionForMime, v as mediaKindFromMime, x as createPinnedDispatcher } from "./routes-
|
|
8
|
+
import { V as getChannelDock, l as appendAssistantMessageToSessionTranscript, q as resolveSignalAccount, u as resolveMirroredTranscriptText } from "./sandbox-DS5mqKzv.js";
|
|
9
|
+
import { C as resolvePinnedHostnameWithPolicy, S as resolvePinnedHostname, _ as maxBytesForKind, a as optimizeImageToPng, b as closeDispatcher, c as saveMediaBuffer, i as hasAlphaChannel, l as detectMime, n as convertHeicToJpeg, o as resizeToJpeg, u as extensionForMime, v as mediaKindFromMime, x as createPinnedDispatcher } from "./routes-BrlbTsiP.js";
|
|
10
10
|
import { t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-BCHir3OL.js";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
12
12
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dn as sendMessageWhatsApp, dn as sendMessageDiscord, ht as sendMessageIMessage, kn as sendMessageSlack, un as sendMessageTelegram } from "./reply-
|
|
2
|
-
import { b as sendMessageSignal } from "./deliver-
|
|
1
|
+
import { Dn as sendMessageWhatsApp, dn as sendMessageDiscord, ht as sendMessageIMessage, kn as sendMessageSlack, un as sendMessageTelegram } from "./reply-BL-ogLps.js";
|
|
2
|
+
import { b as sendMessageSignal } from "./deliver-B-eXx792.js";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/deps.ts
|
|
5
5
|
function createDefaultDeps() {
|
|
@@ -7,12 +7,12 @@ import "./model-selection-xc0Vw_As.js";
|
|
|
7
7
|
import "./boolean-CE7i9tBR.js";
|
|
8
8
|
import "./env-BQxOAG1F.js";
|
|
9
9
|
import "./github-copilot-token-D90Fbndb.js";
|
|
10
|
-
import "./config-
|
|
10
|
+
import "./config-CgWHdv8s.js";
|
|
11
11
|
import "./manifest-registry-uUzDX3Gd.js";
|
|
12
12
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BCHir3OL.js";
|
|
13
13
|
import "./device-identity-aE-A60n7.js";
|
|
14
14
|
import "./net-CsaQoINS.js";
|
|
15
|
-
import { n as callGateway } from "./call-
|
|
15
|
+
import { n as callGateway } from "./call-DFJUfGIg.js";
|
|
16
16
|
import { n as withProgress } from "./progress-CiypNTfY.js";
|
|
17
17
|
import { t as renderTable } from "./table-B8cW-QyF.js";
|
|
18
18
|
|
|
@@ -7,7 +7,7 @@ import "./model-selection-xc0Vw_As.js";
|
|
|
7
7
|
import "./boolean-CE7i9tBR.js";
|
|
8
8
|
import "./env-BQxOAG1F.js";
|
|
9
9
|
import "./github-copilot-token-D90Fbndb.js";
|
|
10
|
-
import {
|
|
10
|
+
import { a as loadConfig } from "./config-CgWHdv8s.js";
|
|
11
11
|
import "./manifest-registry-uUzDX3Gd.js";
|
|
12
12
|
import { t as getChannelPlugin } from "./plugins-uDxYPKIa.js";
|
|
13
13
|
import "./message-channel-BCHir3OL.js";
|