skykoi 2026.3.328 → 2026.3.330
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-swqAIiOP.js → acp-cli-tnmY2RYM.js} +2 -1
- package/dist/{admin-unlock--4SPdpdy.js → admin-unlock-CQOg2Vub.js} +1 -1
- package/dist/{archive-Bas2p11h.js → archive-DzcSwtim.js} +1 -1
- package/dist/{audit-B5CUzM1R.js → audit-DV5HL3bN.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-B-frTCMg.js → channel-options-Bf9REuY0.js} +1 -1
- package/dist/{channel-summary-1rzVva2g.js → channel-summary-D6QH5Efh.js} +17 -2
- package/dist/{channels-cli-CEsdLO4u.js → channels-cli-GMguue-U.js} +18 -18
- package/dist/{chrome-CROsH9kD.js → chrome-B-IUYNJz.js} +3 -1
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-B7CvzPIH.js → cli-BKREBf_h.js} +11 -11
- package/dist/{completion-cli-BYQkLKmc.js → completion-cli-Bbx_wcCt.js} +1 -1
- package/dist/{config-guard-D084wMHJ.js → config-guard-D1LtkAha.js} +19 -19
- package/dist/{configure-DZuk6ZD7.js → configure-V5rR9cVf.js} +4 -4
- package/dist/{control-service-DQtH-td4.js → control-service-CA_ju030.js} +3 -3
- package/dist/{daemon-cli-DtC6nvZl.js → daemon-cli-CJ4w0VtT.js} +4 -4
- package/dist/{daemon-runtime-BTR2GDIQ.js → daemon-runtime-CyWCBhlo.js} +5 -2
- package/dist/{deliver-CkS1xVhO.js → deliver-CyCC5657.js} +2 -2
- package/dist/{deps-C5RzjFf6.js → deps-vM_BrivB.js} +2 -2
- package/dist/{dispatcher-CoG7Bmmx.js → dispatcher-8Dh_IWHi.js} +1 -1
- package/dist/{doctor-5PJfsWTb.js → doctor-Dfv8q8UY.js} +7 -7
- package/dist/{doctor-completion-CwhXOuzD.js → doctor-completion-mCH7_wEn.js} +1 -1
- package/dist/{ensure-local-gateway-CWMjpIBa.js → ensure-local-gateway-C0w2QZKQ.js} +3 -2
- package/dist/entry.js +1 -1
- package/dist/extension-api.js +11 -11
- package/dist/{gateway-cli-l3h56jJN.js → gateway-cli-sNAU8NqJ.js} +32 -32
- package/dist/{github-copilot-auth-DiJZzIt7.js → github-copilot-auth-D2XNjkeb.js} +1 -1
- package/dist/{health-format-C3dVRxd4.js → health-format-CY2Jhd0G.js} +3 -3
- package/dist/{hooks-cli-DxYZZbBZ.js → hooks-cli-C1oy4Dp1.js} +13 -13
- package/dist/{image-DYRH6hYg.js → image-DMNpiWIt.js} +1 -1
- package/dist/index.js +37 -37
- package/dist/{installs-CfsRWUif.js → installs-DuILh0SM.js} +1 -1
- package/dist/{koi-BxvMMX6h.js → koi-BfZH83Xx.js} +4 -4
- package/dist/{login-BPXcLBkt.js → login-CeuNNf3r.js} +83 -21
- package/dist/{models-cli-CjsZpw3C.js → models-cli-br-yPimK.js} +12 -12
- package/dist/{node-cli-Bn12zM-f.js → node-cli-r1Vx_ThU.js} +7 -7
- package/dist/{onboard-channels-D44IxIRM.js → onboard-channels-uKuldc5S.js} +2 -2
- package/dist/{onboard-skills-9T_vz5u4.js → onboard-skills-BV6EVzp_.js} +4 -4
- package/dist/{onboarding-Dnbh6SQ9.js → onboarding-27hek4bE.js} +11 -11
- package/dist/{pi-embedded-helpers-C7GyAcoc.js → pi-embedded-helpers-wHze4-BZ.js} +1 -1
- package/dist/{plugin-registry-DixoyyVh.js → plugin-registry-BFDnc0tv.js} +1 -1
- package/dist/plugin-sdk/index.js +10 -9
- package/dist/plugin-sdk/{pi-model-discovery-CBWcyyqn.js → pi-model-discovery-szlzYGsC.js} +3 -3
- package/dist/{plugins-cli-6DHNdqZc.js → plugins-cli-CXexCIXi.js} +15 -15
- package/dist/{ports-wWIKjGeR.js → ports-Bd1_aERh.js} +5 -2
- package/dist/{program-BlWoQPUR.js → program-CIXBD44b.js} +5 -5
- package/dist/{pw-ai-C0AXqpSx.js → pw-ai-BlGajQyy.js} +1 -1
- package/dist/{register.subclis-D8CZXdnJ.js → register.subclis-BzUtPkWH.js} +15 -15
- package/dist/{reply-BWSAGy7K.js → reply-BUvlULit.js} +18 -16
- package/dist/{routes-DP4mWBwK.js → routes-BXMxqB-n.js} +2 -2
- package/dist/{run-main-CoD7O1CE.js → run-main-DXzUKwyA.js} +39 -39
- package/dist/{runner-DONMmmV4.js → runner-CxSOzhvl.js} +61 -18
- package/dist/{sandbox-BeaBvIJZ.js → sandbox-DC0I_Yic.js} +11 -8
- package/dist/{sandbox-cli-lDveomII.js → sandbox-cli-B6Ig3mU2.js} +4 -4
- package/dist/{security-cli-DAluWMGq.js → security-cli-CvQbY2_B.js} +5 -5
- package/dist/{server-context-0I52nf-b.js → server-context-CTfZn3Uv.js} +4 -4
- package/dist/{server-node-events-DXCPo-AH.js → server-node-events-DCYM6ncm.js} +13 -13
- package/dist/{service-audit-D1ElVIM8.js → service-audit-C7Wq0dp9.js} +1 -1
- package/dist/{status-BaEHysmJ.js → status-D7NV3qSJ.js} +1 -1
- package/dist/{tui-DuN1eZNC.js → tui-B7JUY3KY.js} +13 -7
- package/dist/{tui-cli-BWvlg7_q.js → tui-cli-kt89fx37.js} +7 -7
- package/dist/{update-BnN26txU.js → update-DkqukI1o.js} +1 -1
- package/dist/{update-cli-_p859fze.js → update-cli-Br4JEyFs.js} +23 -23
- package/package.json +1 -1
|
@@ -2467,7 +2467,8 @@ async function createAcpClient(opts = {}) {
|
|
|
2467
2467
|
"pipe",
|
|
2468
2468
|
"inherit"
|
|
2469
2469
|
],
|
|
2470
|
-
cwd
|
|
2470
|
+
cwd,
|
|
2471
|
+
windowsHide: true
|
|
2471
2472
|
});
|
|
2472
2473
|
if (!koi.stdin || !koi.stdout) throw new Error("Failed to create ACP stdio pipes");
|
|
2473
2474
|
const client = new ClientSideConnection(() => ({
|
|
@@ -130,7 +130,7 @@ async function adminUnlock(opts = {}) {
|
|
|
130
130
|
error: err?.message ?? "Failed to write config"
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
const { ensureLocalGatewayRunning } = await import("./ensure-local-gateway-
|
|
133
|
+
const { ensureLocalGatewayRunning } = await import("./ensure-local-gateway-C0w2QZKQ.js").then((n) => n.n);
|
|
134
134
|
const gw = await ensureLocalGatewayRunning();
|
|
135
135
|
if (!gw.ok) return {
|
|
136
136
|
ok: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "./chunk-D_gEzPfs.js";
|
|
2
|
-
import { Ot as require_inherits } from "./reply-
|
|
2
|
+
import { Ot as require_inherits } from "./reply-BUvlULit.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
import * as tar from "tar";
|
|
@@ -6,10 +6,10 @@ import { t as formatCliCommand } from "./command-format-DOYW_19_.js";
|
|
|
6
6
|
import { O as INCLUDE_KEY, a as createConfigIO, k as MAX_INCLUDE_DEPTH } from "./config-ZjEd8561.js";
|
|
7
7
|
import { a as MANIFEST_KEY } from "./manifest-registry-DEGu_o5t.js";
|
|
8
8
|
import { n as listChannelPlugins } from "./plugins-Ct7Mnq1x.js";
|
|
9
|
-
import { d as resolveSandboxToolPolicyForKoi, l as resolveSandboxConfigForKoi } from "./sandbox-
|
|
9
|
+
import { d as resolveSandboxToolPolicyForKoi, l as resolveSandboxConfigForKoi } from "./sandbox-DC0I_Yic.js";
|
|
10
10
|
import { s as resolveToolProfilePolicy } from "./tool-policy-D7sC9oiD.js";
|
|
11
11
|
import { i as loadWorkspaceSkillEntries } from "./skills-D0qJwRRD.js";
|
|
12
|
-
import { i as resolveBrowserConfig, o as resolveProfile } from "./server-context-
|
|
12
|
+
import { i as resolveBrowserConfig, o as resolveProfile } from "./server-context-CTfZn3Uv.js";
|
|
13
13
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-CaDAAMe0.js";
|
|
14
14
|
import { n as GatewayClient } from "./client-BM6xyPUD.js";
|
|
15
15
|
import { t as buildGatewayConnectionDetails } from "./call-JFo1_L0m.js";
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ce62a56a6b0e892e84fdc60418f8aeb0182c62948b0fe9e189d65902c871c545
|
|
@@ -2,7 +2,7 @@ import { O as CHAT_CHANNEL_ORDER } from "./subsystem-hATE68va.js";
|
|
|
2
2
|
import { t as isTruthyEnvValue } from "./env-ChCKTuXK.js";
|
|
3
3
|
import { n as listChannelPlugins } from "./plugins-Ct7Mnq1x.js";
|
|
4
4
|
import { i as listChannelPluginCatalogEntries } from "./plugin-auto-enable-WPZfV7Dp.js";
|
|
5
|
-
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-
|
|
5
|
+
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-BFDnc0tv.js";
|
|
6
6
|
|
|
7
7
|
//#region src/cli/channel-options.ts
|
|
8
8
|
function dedupe(values) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as listThinkingLevels, m as formatRawAssistantErrorForUi } from "./pi-embedded-helpers-
|
|
1
|
+
import { L as listThinkingLevels, m as formatRawAssistantErrorForUi } from "./pi-embedded-helpers-wHze4-BZ.js";
|
|
2
2
|
import { L as getActivePluginRegistry } from "./subsystem-hATE68va.js";
|
|
3
3
|
import { r as theme } from "./theme-C5EwWDWE.js";
|
|
4
4
|
import { t as DEFAULT_ACCOUNT_ID } from "./session-key-B2OXLVi_.js";
|
|
@@ -1043,10 +1043,25 @@ function extractTextBlocks(content, opts) {
|
|
|
1043
1043
|
showThinking: opts?.includeThinking ?? false
|
|
1044
1044
|
});
|
|
1045
1045
|
}
|
|
1046
|
+
/**
|
|
1047
|
+
* Strip the leading "System: …" context block the runtime prepends to a user
|
|
1048
|
+
* turn (recent exec results, message activity). The koi receives it, but the
|
|
1049
|
+
* owner must NEVER see it in their chat. Every line of the block is
|
|
1050
|
+
* "System: "-prefixed (see prependSystemEvents), so drop the contiguous leading
|
|
1051
|
+
* run of them plus the blank separator before the user's real text.
|
|
1052
|
+
*/
|
|
1053
|
+
function stripLeadingSystemContext(text) {
|
|
1054
|
+
if (!text.startsWith("System: ")) return text;
|
|
1055
|
+
const lines = text.split("\n");
|
|
1056
|
+
let i = 0;
|
|
1057
|
+
while (i < lines.length && lines[i].startsWith("System: ")) i++;
|
|
1058
|
+
while (i < lines.length && lines[i].trim() === "") i++;
|
|
1059
|
+
return lines.slice(i).join("\n");
|
|
1060
|
+
}
|
|
1046
1061
|
function extractTextFromMessage(message, opts) {
|
|
1047
1062
|
if (!message || typeof message !== "object") return "";
|
|
1048
1063
|
const record = message;
|
|
1049
|
-
const text = extractTextBlocks(record.content, opts);
|
|
1064
|
+
const text = stripLeadingSystemContext(extractTextBlocks(record.content, opts));
|
|
1050
1065
|
if (text) return text;
|
|
1051
1066
|
if ((typeof record.stopReason === "string" ? record.stopReason : "") !== "error") return "";
|
|
1052
1067
|
return formatRawAssistantErrorForUi(typeof record.errorMessage === "string" ? record.errorMessage : "");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./pi-embedded-helpers-
|
|
2
|
-
import { $ as writeNylasGrant, Ct as loadProviderUsageSummary, J as nylasLinked, K as DEFAULT_NYLAS_API_URI, L as sendMessage, Q as sendMessage$1, X as readNylasGrant, Z as resolveNylasConfig, an as parseDiscordTarget, on as fetchChannelPermissionsDiscord, q as nylasConfigured, wt as formatUsageReportLines, yn as createSlackWebClient } from "./reply-
|
|
1
|
+
import "./pi-embedded-helpers-wHze4-BZ.js";
|
|
2
|
+
import { $ as writeNylasGrant, Ct as loadProviderUsageSummary, J as nylasLinked, K as DEFAULT_NYLAS_API_URI, L as sendMessage, Q as sendMessage$1, X as readNylasGrant, Z as resolveNylasConfig, an as parseDiscordTarget, on as fetchChannelPermissionsDiscord, q as nylasConfigured, wt as formatUsageReportLines, yn as createSlackWebClient } from "./reply-BUvlULit.js";
|
|
3
3
|
import { b as success, f as danger, k as DEFAULT_CHAT_CHANNEL, p as info, s as defaultRuntime, v as setVerbose, w as getResolvedLoggerSettings } from "./subsystem-hATE68va.js";
|
|
4
4
|
import "./paths-VdmjGGyc.js";
|
|
5
5
|
import { r as theme } from "./theme-C5EwWDWE.js";
|
|
@@ -21,17 +21,17 @@ import { c as readConfigFileSnapshot, o as loadConfig, u as writeConfigFile } fr
|
|
|
21
21
|
import "./manifest-registry-DEGu_o5t.js";
|
|
22
22
|
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-Ct7Mnq1x.js";
|
|
23
23
|
import "./sessions-COz6-MPd.js";
|
|
24
|
-
import "./image-
|
|
24
|
+
import "./image-DMNpiWIt.js";
|
|
25
25
|
import "./dist-nhxaQYGz.js";
|
|
26
26
|
import "./lib-pS0Bd7GL.js";
|
|
27
27
|
import "./src-ByySp9O0.js";
|
|
28
28
|
import "./core-B7QS0Vnt.js";
|
|
29
29
|
import "./pi-model-discovery-Cy-rVVvR.js";
|
|
30
|
-
import "./sandbox-
|
|
31
|
-
import "./chrome-
|
|
30
|
+
import "./sandbox-DC0I_Yic.js";
|
|
31
|
+
import "./chrome-B-IUYNJz.js";
|
|
32
32
|
import "./skills-D0qJwRRD.js";
|
|
33
|
-
import "./routes-
|
|
34
|
-
import "./server-context-
|
|
33
|
+
import "./routes-BXMxqB-n.js";
|
|
34
|
+
import "./server-context-CTfZn3Uv.js";
|
|
35
35
|
import "./image-ops-CQFojSu1.js";
|
|
36
36
|
import "./message-channel-CaDAAMe0.js";
|
|
37
37
|
import "./logging-ADUQX6n5.js";
|
|
@@ -40,8 +40,8 @@ import "./paths-DLKQOevr.js";
|
|
|
40
40
|
import "./tool-images-DlkXfMNL.js";
|
|
41
41
|
import "./redact-1AXapBET.js";
|
|
42
42
|
import "./tool-display-DYOxwSs6.js";
|
|
43
|
-
import "./deliver-
|
|
44
|
-
import "./dispatcher-
|
|
43
|
+
import "./deliver-CyCC5657.js";
|
|
44
|
+
import "./dispatcher-8Dh_IWHi.js";
|
|
45
45
|
import "./dist-B556KqJe.js";
|
|
46
46
|
import "./pi-tool-definition-adapter-CnsO-0rY.js";
|
|
47
47
|
import "./manager-6pqEqm7q.js";
|
|
@@ -49,7 +49,7 @@ import "./sqlite-CYnXobrn.js";
|
|
|
49
49
|
import "./warnings-Ds_WSeah.js";
|
|
50
50
|
import "./proxy-from-env-DxUIcU4P.js";
|
|
51
51
|
import "./login-qr-ekueLD_2.js";
|
|
52
|
-
import { n as formatAge } from "./channel-summary-
|
|
52
|
+
import { n as formatAge } from "./channel-summary-D6QH5Efh.js";
|
|
53
53
|
import "./device-identity-CpMBJtRJ.js";
|
|
54
54
|
import "./client-BM6xyPUD.js";
|
|
55
55
|
import { n as callGateway } from "./call-JFo1_L0m.js";
|
|
@@ -65,26 +65,26 @@ import "./prompt-style-hXUwxLRe.js";
|
|
|
65
65
|
import "./pairing-labels-DLc3GnhN.js";
|
|
66
66
|
import "./satisfies-Dp_OBiSc.js";
|
|
67
67
|
import "./session-cost-usage-BNV86lI0.js";
|
|
68
|
-
import "./control-service-
|
|
68
|
+
import "./control-service-CA_ju030.js";
|
|
69
69
|
import "./restart-sentinel-BqQzvk3k.js";
|
|
70
70
|
import { n as resolveMessageChannelSelection } from "./channel-selection-DhBJOelv.js";
|
|
71
71
|
import "./event-log-CL2tmo5v.js";
|
|
72
72
|
import { t as resolveChannelDefaultAccountId } from "./helpers-Cg7M1qEA.js";
|
|
73
73
|
import "./note-DdyFyHLV.js";
|
|
74
74
|
import { t as createClackPrompter } from "./clack-prompter-CCgKKgnN.js";
|
|
75
|
-
import { i as reloadOnboardingPluginRegistry, n as setupChannels, r as ensureOnboardingPluginInstalled } from "./onboard-channels-
|
|
75
|
+
import { i as reloadOnboardingPluginRegistry, n as setupChannels, r as ensureOnboardingPluginInstalled } from "./onboard-channels-uKuldc5S.js";
|
|
76
76
|
import { i as listChannelPluginCatalogEntries } from "./plugin-auto-enable-WPZfV7Dp.js";
|
|
77
|
-
import "./archive-
|
|
77
|
+
import "./archive-DzcSwtim.js";
|
|
78
78
|
import "./skill-scanner-BCGU84pB.js";
|
|
79
|
-
import "./installs-
|
|
79
|
+
import "./installs-DuILh0SM.js";
|
|
80
80
|
import "./service-CgbWVYSz.js";
|
|
81
81
|
import "./systemd-CKUsCXqF.js";
|
|
82
82
|
import "./diagnostics-CBJs_eaH.js";
|
|
83
83
|
import { t as collectChannelStatusIssues } from "./channels-status-issues-D_rjAibL.js";
|
|
84
|
-
import { n as hasExplicitOptions } from "./plugin-registry-
|
|
85
|
-
import "./daemon-runtime-
|
|
86
|
-
import { t as ensureLocalGatewayRunning } from "./ensure-local-gateway-
|
|
87
|
-
import { t as formatCliChannelOptions } from "./channel-options-
|
|
84
|
+
import { n as hasExplicitOptions } from "./plugin-registry-BFDnc0tv.js";
|
|
85
|
+
import "./daemon-runtime-CyWCBhlo.js";
|
|
86
|
+
import { t as ensureLocalGatewayRunning } from "./ensure-local-gateway-C0w2QZKQ.js";
|
|
87
|
+
import { t as formatCliChannelOptions } from "./channel-options-Bf9REuY0.js";
|
|
88
88
|
import { t as buildChannelAccountSnapshot } from "./status-CoVkpNVT.js";
|
|
89
89
|
import { t as parseLogLine } from "./parse-log-line-Bd_MyTAW.js";
|
|
90
90
|
import process$1 from "node:process";
|
|
@@ -897,7 +897,8 @@ function execText(command, args, timeoutMs = 1200, maxBuffer = 1024 * 1024) {
|
|
|
897
897
|
const output = execFileSync(command, args, {
|
|
898
898
|
timeout: timeoutMs,
|
|
899
899
|
encoding: "utf8",
|
|
900
|
-
maxBuffer
|
|
900
|
+
maxBuffer,
|
|
901
|
+
windowsHide: true
|
|
901
902
|
});
|
|
902
903
|
return String(output ?? "").trim() || null;
|
|
903
904
|
} catch {
|
|
@@ -1893,6 +1894,7 @@ async function launchSKYKOIChrome(resolved, profile) {
|
|
|
1893
1894
|
args.push("about:blank");
|
|
1894
1895
|
return spawn(exe.path, args, {
|
|
1895
1896
|
stdio: "pipe",
|
|
1897
|
+
windowsHide: true,
|
|
1896
1898
|
env: {
|
|
1897
1899
|
...process.env,
|
|
1898
1900
|
HOME: os.homedir()
|
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-CJ4w0VtT.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./pi-embedded-helpers-
|
|
2
|
-
import { St as loadSKYKOIPlugins } from "./reply-
|
|
1
|
+
import "./pi-embedded-helpers-wHze4-BZ.js";
|
|
2
|
+
import { St as loadSKYKOIPlugins } from "./reply-BUvlULit.js";
|
|
3
3
|
import { t as createSubsystemLogger } from "./subsystem-hATE68va.js";
|
|
4
4
|
import "./paths-VdmjGGyc.js";
|
|
5
5
|
import "./theme-C5EwWDWE.js";
|
|
@@ -19,17 +19,17 @@ import { o as loadConfig } from "./config-ZjEd8561.js";
|
|
|
19
19
|
import "./manifest-registry-DEGu_o5t.js";
|
|
20
20
|
import "./plugins-Ct7Mnq1x.js";
|
|
21
21
|
import "./sessions-COz6-MPd.js";
|
|
22
|
-
import "./image-
|
|
22
|
+
import "./image-DMNpiWIt.js";
|
|
23
23
|
import "./dist-nhxaQYGz.js";
|
|
24
24
|
import "./lib-pS0Bd7GL.js";
|
|
25
25
|
import "./src-ByySp9O0.js";
|
|
26
26
|
import "./core-B7QS0Vnt.js";
|
|
27
27
|
import "./pi-model-discovery-Cy-rVVvR.js";
|
|
28
|
-
import "./sandbox-
|
|
29
|
-
import "./chrome-
|
|
28
|
+
import "./sandbox-DC0I_Yic.js";
|
|
29
|
+
import "./chrome-B-IUYNJz.js";
|
|
30
30
|
import "./skills-D0qJwRRD.js";
|
|
31
|
-
import "./routes-
|
|
32
|
-
import "./server-context-
|
|
31
|
+
import "./routes-BXMxqB-n.js";
|
|
32
|
+
import "./server-context-CTfZn3Uv.js";
|
|
33
33
|
import "./image-ops-CQFojSu1.js";
|
|
34
34
|
import "./message-channel-CaDAAMe0.js";
|
|
35
35
|
import "./logging-ADUQX6n5.js";
|
|
@@ -38,8 +38,8 @@ import "./paths-DLKQOevr.js";
|
|
|
38
38
|
import "./tool-images-DlkXfMNL.js";
|
|
39
39
|
import "./redact-1AXapBET.js";
|
|
40
40
|
import "./tool-display-DYOxwSs6.js";
|
|
41
|
-
import "./deliver-
|
|
42
|
-
import "./dispatcher-
|
|
41
|
+
import "./deliver-CyCC5657.js";
|
|
42
|
+
import "./dispatcher-8Dh_IWHi.js";
|
|
43
43
|
import "./dist-B556KqJe.js";
|
|
44
44
|
import "./pi-tool-definition-adapter-CnsO-0rY.js";
|
|
45
45
|
import "./manager-6pqEqm7q.js";
|
|
@@ -47,7 +47,7 @@ import "./sqlite-CYnXobrn.js";
|
|
|
47
47
|
import "./warnings-Ds_WSeah.js";
|
|
48
48
|
import "./proxy-from-env-DxUIcU4P.js";
|
|
49
49
|
import "./login-qr-ekueLD_2.js";
|
|
50
|
-
import "./channel-summary-
|
|
50
|
+
import "./channel-summary-D6QH5Efh.js";
|
|
51
51
|
import "./device-identity-CpMBJtRJ.js";
|
|
52
52
|
import "./client-BM6xyPUD.js";
|
|
53
53
|
import "./call-JFo1_L0m.js";
|
|
@@ -62,7 +62,7 @@ import "./prompt-style-hXUwxLRe.js";
|
|
|
62
62
|
import "./pairing-labels-DLc3GnhN.js";
|
|
63
63
|
import "./satisfies-Dp_OBiSc.js";
|
|
64
64
|
import "./session-cost-usage-BNV86lI0.js";
|
|
65
|
-
import "./control-service-
|
|
65
|
+
import "./control-service-CA_ju030.js";
|
|
66
66
|
import "./restart-sentinel-BqQzvk3k.js";
|
|
67
67
|
import "./channel-selection-DhBJOelv.js";
|
|
68
68
|
import "./event-log-CL2tmo5v.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as __exportAll } from "./chunk-D_gEzPfs.js";
|
|
2
2
|
import { g as resolveStateDir } from "./paths-VdmjGGyc.js";
|
|
3
|
-
import { n as registerSubCliByName, t as getSubCliEntries } from "./register.subclis-
|
|
3
|
+
import { n as registerSubCliByName, t as getSubCliEntries } from "./register.subclis-BzUtPkWH.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as formatTargetDisplay, Ht as registerMemoryCli, P as runMessageAction, Ut as runMemoryStatus, W as CHANNEL_MESSAGE_ACTION_NAMES, _t as CHANNEL_TARGETS_DESCRIPTION, tr as lookupContextTokens, vt as CHANNEL_TARGET_DESCRIPTION } from "./reply-
|
|
1
|
+
import { H as formatTargetDisplay, Ht as registerMemoryCli, P as runMessageAction, Ut as runMemoryStatus, W as CHANNEL_MESSAGE_ACTION_NAMES, _t as CHANNEL_TARGETS_DESCRIPTION, tr as lookupContextTokens, vt as CHANNEL_TARGET_DESCRIPTION } from "./reply-BUvlULit.js";
|
|
2
2
|
import { I as normalizeChatChannelId, M as getChatChannelMeta, c as restoreTerminalState, f as danger, k as DEFAULT_CHAT_CHANNEL, p as info, s as defaultRuntime, v as setVerbose } from "./subsystem-hATE68va.js";
|
|
3
3
|
import { g as resolveStateDir, i as isNixMode, m as resolveOAuthDir, o as resolveConfigPath, r as STATE_DIR, t as CONFIG_PATH, u as resolveGatewayPort } from "./paths-VdmjGGyc.js";
|
|
4
4
|
import { n as isRich, r as theme, t as colorize } from "./theme-C5EwWDWE.js";
|
|
@@ -12,7 +12,7 @@ import { t as parseBooleanValue } from "./boolean-D-3joTkO.js";
|
|
|
12
12
|
import { D as applyLegacyMigrations, _ as parseDurationMs, a as createConfigIO, c as readConfigFileSnapshot, o as loadConfig, u as writeConfigFile } from "./config-ZjEd8561.js";
|
|
13
13
|
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-Ct7Mnq1x.js";
|
|
14
14
|
import { i as loadSessionStore } from "./sessions-COz6-MPd.js";
|
|
15
|
-
import { n as movePathToTrash } from "./server-context-
|
|
15
|
+
import { n as movePathToTrash } from "./server-context-CTfZn3Uv.js";
|
|
16
16
|
import { h as GATEWAY_CLIENT_NAMES, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES } from "./message-channel-CaDAAMe0.js";
|
|
17
17
|
import { a as resolveSessionTranscriptsDirForKoi, i as resolveSessionTranscriptsDir, o as resolveStorePath } from "./paths-DLKQOevr.js";
|
|
18
18
|
import { a as randomIdempotencyKey, n as callGateway } from "./call-JFo1_L0m.js";
|
|
@@ -21,32 +21,32 @@ import { n as runCommandWithRuntime } from "./cli-utils-DnPwZrf6.js";
|
|
|
21
21
|
import { n as withProgress } from "./progress-EICDZThJ.js";
|
|
22
22
|
import { a as ensureWorkspaceAndSessions, c as handleReset, d as openUrl, h as resolveControlUiLinks, i as detectBrowserOpenSupport, l as moveToTrash, m as randomToken, n as applyWizardMetadata, o as formatControlUiSshHint, t as DEFAULT_WORKSPACE, v as waitForGatewayReachable } from "./onboard-helpers-FO60qqTG.js";
|
|
23
23
|
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-hXUwxLRe.js";
|
|
24
|
-
import { t as createDefaultDeps } from "./deps-
|
|
24
|
+
import { t as createDefaultDeps } from "./deps-vM_BrivB.js";
|
|
25
25
|
import { t as assertSupportedRuntime } from "./runtime-guard-Btp4Sks0.js";
|
|
26
26
|
import { t as resolveChannelDefaultAccountId } from "./helpers-Cg7M1qEA.js";
|
|
27
27
|
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-CSvbGeqF.js";
|
|
28
28
|
import { t as WizardCancelledError } from "./prompts-B1n8UQzX.js";
|
|
29
29
|
import { t as createClackPrompter } from "./clack-prompter-CCgKKgnN.js";
|
|
30
|
-
import { a as buildKoiSummaries, c as loadKoiIdentity, f as parseIdentityMarkdown, i as applyKoiConfig, l as pruneKoiConfig, n as statusCommand, o as findKoiEntryIndex, s as listKoiEntries, t as runOnboardingWizard, u as identityHasValues } from "./onboarding-
|
|
31
|
-
import { d as applyAuthChoice, f as applyOpenAIConfig, h as promptAuthChoiceGrouped, m as applyGoogleGeminiModelDefault, p as upsertSharedEnvVar, u as warnIfModelConfigLooksOff } from "./onboard-skills-
|
|
32
|
-
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-
|
|
33
|
-
import { n as setupChannels } from "./onboard-channels-
|
|
34
|
-
import { i as healthCommand } from "./health-format-
|
|
30
|
+
import { a as buildKoiSummaries, c as loadKoiIdentity, f as parseIdentityMarkdown, i as applyKoiConfig, l as pruneKoiConfig, n as statusCommand, o as findKoiEntryIndex, s as listKoiEntries, t as runOnboardingWizard, u as identityHasValues } from "./onboarding-27hek4bE.js";
|
|
31
|
+
import { d as applyAuthChoice, f as applyOpenAIConfig, h as promptAuthChoiceGrouped, m as applyGoogleGeminiModelDefault, p as upsertSharedEnvVar, u as warnIfModelConfigLooksOff } from "./onboard-skills-BV6EVzp_.js";
|
|
32
|
+
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-D2XNjkeb.js";
|
|
33
|
+
import { n as setupChannels } from "./onboard-channels-uKuldc5S.js";
|
|
34
|
+
import { i as healthCommand } from "./health-format-CY2Jhd0G.js";
|
|
35
35
|
import { t as renderTable } from "./table-C-_kZeNX.js";
|
|
36
36
|
import { t as resolveGatewayService } from "./service-CgbWVYSz.js";
|
|
37
37
|
import { r as isSystemdUserServiceAvailable } from "./systemd-CKUsCXqF.js";
|
|
38
|
-
import { l as getVerboseFlag, o as getFlagValue, r as registerSubCliCommands, s as getPositiveIntFlagValue, u as hasFlag } from "./register.subclis-
|
|
38
|
+
import { l as getVerboseFlag, o as getFlagValue, r as registerSubCliCommands, s as getPositiveIntFlagValue, u as hasFlag } from "./register.subclis-BzUtPkWH.js";
|
|
39
39
|
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-BLmNrKaj.js";
|
|
40
40
|
import { t as formatHelpExamples } from "./help-format-BgbvAVIq.js";
|
|
41
|
-
import { t as adminUnlockCommand } from "./admin-unlock
|
|
42
|
-
import { a as createOutboundSendDeps, n as resolveSessionKeyForRequest, t as koiCommand } from "./koi-
|
|
43
|
-
import { n as hasExplicitOptions, t as ensurePluginRegistryLoaded } from "./plugin-registry-
|
|
41
|
+
import { t as adminUnlockCommand } from "./admin-unlock-CQOg2Vub.js";
|
|
42
|
+
import { a as createOutboundSendDeps, n as resolveSessionKeyForRequest, t as koiCommand } from "./koi-BfZH83Xx.js";
|
|
43
|
+
import { n as hasExplicitOptions, t as ensurePluginRegistryLoaded } from "./plugin-registry-BFDnc0tv.js";
|
|
44
44
|
import { n as parsePositiveIntOrUndefined, t as collectOption } from "./helpers-fRxKNzeV.js";
|
|
45
|
-
import { i as CONFIGURE_WIZARD_SECTIONS, n as configureCommand, r as configureCommandWithSections } from "./configure-
|
|
46
|
-
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
45
|
+
import { i as CONFIGURE_WIZARD_SECTIONS, n as configureCommand, r as configureCommandWithSections } from "./configure-V5rR9cVf.js";
|
|
46
|
+
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-CyWCBhlo.js";
|
|
47
47
|
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-Cu8buxAR.js";
|
|
48
|
-
import { t as loginCommand } from "./login-
|
|
49
|
-
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-
|
|
48
|
+
import { t as loginCommand } from "./login-CeuNNf3r.js";
|
|
49
|
+
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-Dfv8q8UY.js";
|
|
50
50
|
import { fileURLToPath } from "node:url";
|
|
51
51
|
import fs from "node:fs";
|
|
52
52
|
import path from "node:path";
|
|
@@ -2797,7 +2797,7 @@ async function loadValidConfig() {
|
|
|
2797
2797
|
}
|
|
2798
2798
|
function registerConfigCli(program) {
|
|
2799
2799
|
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) => {
|
|
2800
|
-
const { CONFIGURE_WIZARD_SECTIONS, configureCommand, configureCommandWithSections } = await import("./configure-
|
|
2800
|
+
const { CONFIGURE_WIZARD_SECTIONS, configureCommand, configureCommandWithSections } = await import("./configure-V5rR9cVf.js").then((n) => n.t);
|
|
2801
2801
|
const sections = Array.isArray(opts.section) ? opts.section.map((value) => typeof value === "string" ? value.trim() : "").filter(Boolean) : [];
|
|
2802
2802
|
if (sections.length === 0) {
|
|
2803
2803
|
await configureCommand(defaultRuntime);
|
|
@@ -3105,7 +3105,7 @@ function registerLoginCommand(program) {
|
|
|
3105
3105
|
console.log(theme.muted(` user=${result.userId} org=${result.orgId}`));
|
|
3106
3106
|
}
|
|
3107
3107
|
if (opts.chat !== false && result.gatewayUrl && process.stdin.isTTY && process.stdout.isTTY) {
|
|
3108
|
-
const { runTui } = await import("./tui-
|
|
3108
|
+
const { runTui } = await import("./tui-B7JUY3KY.js").then((n) => n.n);
|
|
3109
3109
|
console.log(theme.muted("\n Opening your koi chat…\n"));
|
|
3110
3110
|
await runTui({
|
|
3111
3111
|
url: result.gatewayUrl,
|
|
@@ -3130,7 +3130,7 @@ function registerLoginCommand(program) {
|
|
|
3130
3130
|
}
|
|
3131
3131
|
});
|
|
3132
3132
|
program.command("whoami").description("Show the currently-logged-in SkyKoi account").action(async () => {
|
|
3133
|
-
const { readAuthFile } = await import("./login-
|
|
3133
|
+
const { readAuthFile } = await import("./login-CeuNNf3r.js").then((n) => n.n);
|
|
3134
3134
|
const auth = await readAuthFile();
|
|
3135
3135
|
if (!auth) {
|
|
3136
3136
|
console.log(theme.muted("Not logged in. Run `skykoi login`."));
|
|
@@ -14,12 +14,12 @@ import { n as logConfigUpdated } from "./logging-CSvbGeqF.js";
|
|
|
14
14
|
import { t as note$1 } from "./note-DdyFyHLV.js";
|
|
15
15
|
import { t as WizardCancelledError } from "./prompts-B1n8UQzX.js";
|
|
16
16
|
import { t as createClackPrompter } from "./clack-prompter-CCgKKgnN.js";
|
|
17
|
-
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-
|
|
18
|
-
import { n as setupChannels, t as noteChannelStatus } from "./onboard-channels-
|
|
19
|
-
import { i as healthCommand, t as formatHealthCheckFailure } from "./health-format-
|
|
17
|
+
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-BV6EVzp_.js";
|
|
18
|
+
import { n as setupChannels, t as noteChannelStatus } from "./onboard-channels-uKuldc5S.js";
|
|
19
|
+
import { i as healthCommand, t as formatHealthCheckFailure } from "./health-format-CY2Jhd0G.js";
|
|
20
20
|
import { t as resolveGatewayService } from "./service-CgbWVYSz.js";
|
|
21
21
|
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-C6cSlkkc.js";
|
|
22
|
-
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
22
|
+
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-CyWCBhlo.js";
|
|
23
23
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-Cu8buxAR.js";
|
|
24
24
|
import { confirm, intro, outro, select, text } from "@clack/prompts";
|
|
25
25
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as __exportAll } from "./chunk-D_gEzPfs.js";
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-hATE68va.js";
|
|
3
3
|
import { o as loadConfig } from "./config-ZjEd8561.js";
|
|
4
|
-
import { S as ensureChromeExtensionRelayServer } from "./chrome-
|
|
5
|
-
import { i as resolveBrowserConfig, o as resolveProfile, t as createBrowserRouteContext } from "./server-context-
|
|
4
|
+
import { S as ensureChromeExtensionRelayServer } from "./chrome-B-IUYNJz.js";
|
|
5
|
+
import { i as resolveBrowserConfig, o as resolveProfile, t as createBrowserRouteContext } from "./server-context-CTfZn3Uv.js";
|
|
6
6
|
|
|
7
7
|
//#region src/browser/control-service.ts
|
|
8
8
|
var control_service_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -53,7 +53,7 @@ async function stopBrowserControlService() {
|
|
|
53
53
|
}
|
|
54
54
|
state = null;
|
|
55
55
|
try {
|
|
56
|
-
await (await import("./pw-ai-
|
|
56
|
+
await (await import("./pw-ai-BlGajQyy.js")).closePlaywrightBrowserConnection();
|
|
57
57
|
} catch {}
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -5,7 +5,7 @@ import { n as isRich, r as theme, t as colorize } from "./theme-C5EwWDWE.js";
|
|
|
5
5
|
import { y as shortenHomePath } from "./utils-D019Z2NU.js";
|
|
6
6
|
import { t as formatCliCommand } from "./command-format-DOYW_19_.js";
|
|
7
7
|
import { a as createConfigIO, o as loadConfig } from "./config-ZjEd8561.js";
|
|
8
|
-
import { d as inspectPortUsage, p as formatPortDiagnostics } from "./chrome-
|
|
8
|
+
import { d as inspectPortUsage, p as formatPortDiagnostics } from "./chrome-B-IUYNJz.js";
|
|
9
9
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-CaDAAMe0.js";
|
|
10
10
|
import { t as pickPrimaryTailnetIPv4 } from "./tailnet-DSvf7Jwy.js";
|
|
11
11
|
import { n as callGateway } from "./call-JFo1_L0m.js";
|
|
@@ -15,13 +15,13 @@ import { n as withProgress } from "./progress-EICDZThJ.js";
|
|
|
15
15
|
import { h as resolveControlUiLinks } from "./onboard-helpers-FO60qqTG.js";
|
|
16
16
|
import { n as isWSLEnv, t as isWSL } from "./wsl-HoIhaCSz.js";
|
|
17
17
|
import { d as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel } from "./constants-FTouVoUS.js";
|
|
18
|
-
import { t as createDefaultDeps } from "./deps-
|
|
18
|
+
import { t as createDefaultDeps } from "./deps-vM_BrivB.js";
|
|
19
19
|
import { o as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-CgbWVYSz.js";
|
|
20
20
|
import { r as isSystemdUserServiceAvailable } from "./systemd-CKUsCXqF.js";
|
|
21
21
|
import { t as readLastGatewayErrorLine } from "./diagnostics-CBJs_eaH.js";
|
|
22
|
-
import { i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
22
|
+
import { i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-CyWCBhlo.js";
|
|
23
23
|
import { n as renderSystemdUnavailableHints, t as isSystemdUnavailableDetail } from "./systemd-hints-vhH0G2VV.js";
|
|
24
|
-
import { a as renderGatewayServiceCleanupHints, i as findExtraGatewayServices, n as auditGatewayServiceConfig } from "./service-audit-
|
|
24
|
+
import { a as renderGatewayServiceCleanupHints, i as findExtraGatewayServices, n as auditGatewayServiceConfig } from "./service-audit-C7Wq0dp9.js";
|
|
25
25
|
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-CsHmFsvZ.js";
|
|
26
26
|
|
|
27
27
|
//#region src/cli/daemon-cli/install.ts
|
|
@@ -94,10 +94,13 @@ async function resolveNodePath() {
|
|
|
94
94
|
return await resolveBinaryPath("node");
|
|
95
95
|
}
|
|
96
96
|
async function resolveBinaryPath(binary) {
|
|
97
|
-
const {
|
|
97
|
+
const { execFileSync } = await import("node:child_process");
|
|
98
98
|
const cmd = process.platform === "win32" ? "where" : "which";
|
|
99
99
|
try {
|
|
100
|
-
const resolved =
|
|
100
|
+
const resolved = execFileSync(cmd, [binary], {
|
|
101
|
+
encoding: "utf8",
|
|
102
|
+
windowsHide: true
|
|
103
|
+
}).trim().split(/\r?\n/)[0]?.trim();
|
|
101
104
|
if (!resolved) throw new Error("empty");
|
|
102
105
|
await fs.access(resolved);
|
|
103
106
|
return resolved;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { o as __toESM, r as __exportAll, t as __commonJSMin } from "./chunk-D_gEzPfs.js";
|
|
2
|
-
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-
|
|
2
|
+
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-wHze4-BZ.js";
|
|
3
3
|
import { L as getActivePluginRegistry, g as logVerbose, y as shouldLogVerbose } from "./subsystem-hATE68va.js";
|
|
4
4
|
import { c as normalizeAccountId$1 } from "./session-key-B2OXLVi_.js";
|
|
5
5
|
import { h as resolveUserPath } from "./utils-D019Z2NU.js";
|
|
6
6
|
import { o as loadConfig } from "./config-ZjEd8561.js";
|
|
7
7
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-Ct7Mnq1x.js";
|
|
8
8
|
import { F as getChannelDock, V as resolveSignalAccount, n as appendAssistantMessageToSessionTranscript, r as resolveMirroredTranscriptText } from "./sessions-COz6-MPd.js";
|
|
9
|
-
import { a as closeDispatcher, c as resolvePinnedHostnameWithPolicy, o as createPinnedDispatcher, r as saveMediaBuffer, s as resolvePinnedHostname } from "./routes-
|
|
9
|
+
import { a as closeDispatcher, c as resolvePinnedHostnameWithPolicy, o as createPinnedDispatcher, r as saveMediaBuffer, s as resolvePinnedHostname } from "./routes-BXMxqB-n.js";
|
|
10
10
|
import { a as resizeToJpeg, h as mediaKindFromMime, i as optimizeImageToPng, m as maxBytesForKind, o as detectMime, r as hasAlphaChannel, s as extensionForMime, t as convertHeicToJpeg } from "./image-ops-CQFojSu1.js";
|
|
11
11
|
import { t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-CaDAAMe0.js";
|
|
12
12
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { gn as sendMessageWhatsApp, kt as sendMessageIMessage, nn as sendMessageTelegram, rn as sendMessageDiscord, vn as sendMessageSlack } from "./reply-
|
|
2
|
-
import { b as sendMessageSignal } from "./deliver-
|
|
1
|
+
import { gn as sendMessageWhatsApp, kt as sendMessageIMessage, nn as sendMessageTelegram, rn as sendMessageDiscord, vn as sendMessageSlack } from "./reply-BUvlULit.js";
|
|
2
|
+
import { b as sendMessageSignal } from "./deliver-CyCC5657.js";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/deps.ts
|
|
5
5
|
function createDefaultDeps() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { St as loadSKYKOIPlugins, lr as loadModelCatalog } from "./reply-
|
|
1
|
+
import { St as loadSKYKOIPlugins, lr as loadModelCatalog } from "./reply-BUvlULit.js";
|
|
2
2
|
import { s as defaultRuntime, w as getResolvedLoggerSettings } from "./subsystem-hATE68va.js";
|
|
3
3
|
import { d as resolveIsNixMode, f as resolveLegacyStateDirs, g as resolveStateDir, m as resolveOAuthDir, p as resolveNewStateDir, t as CONFIG_PATH, u as resolveGatewayPort } from "./paths-VdmjGGyc.js";
|
|
4
4
|
import { a as buildKoiMainSessionKey, l as normalizeKoiId, r as DEFAULT_MAIN_KEY, t as DEFAULT_ACCOUNT_ID } from "./session-key-B2OXLVi_.js";
|
|
@@ -12,8 +12,8 @@ import { t as isTruthyEnvValue } from "./env-ChCKTuXK.js";
|
|
|
12
12
|
import { c as readConfigFileSnapshot, f as SKYKOISchema, n as migrateLegacyConfig, u as writeConfigFile } from "./config-ZjEd8561.js";
|
|
13
13
|
import { n as listChannelPlugins } from "./plugins-Ct7Mnq1x.js";
|
|
14
14
|
import { O as canonicalizeMainSessionAlias, i as loadSessionStore, j as resolveMainSessionKey, s as saveSessionStore } from "./sessions-COz6-MPd.js";
|
|
15
|
-
import { f as DEFAULT_SANDBOX_BROWSER_IMAGE, m as DEFAULT_SANDBOX_IMAGE, p as DEFAULT_SANDBOX_COMMON_IMAGE, u as resolveSandboxScope } from "./sandbox-
|
|
16
|
-
import { d as inspectPortUsage, p as formatPortDiagnostics } from "./chrome-
|
|
15
|
+
import { f as DEFAULT_SANDBOX_BROWSER_IMAGE, m as DEFAULT_SANDBOX_IMAGE, p as DEFAULT_SANDBOX_COMMON_IMAGE, u as resolveSandboxScope } from "./sandbox-DC0I_Yic.js";
|
|
16
|
+
import { d as inspectPortUsage, p as formatPortDiagnostics } from "./chrome-B-IUYNJz.js";
|
|
17
17
|
import { a as resolveSessionTranscriptsDirForKoi, n as resolveSessionFilePath, o as resolveStorePath } from "./paths-DLKQOevr.js";
|
|
18
18
|
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-JFo1_L0m.js";
|
|
19
19
|
import { n as isLoopbackHost, o as resolveGatewayBindHost } from "./net-CfmVEZqQ.js";
|
|
@@ -26,7 +26,7 @@ import { t as resolveChannelDefaultAccountId } from "./helpers-Cg7M1qEA.js";
|
|
|
26
26
|
import { n as logConfigUpdated } from "./logging-CSvbGeqF.js";
|
|
27
27
|
import { t as note$1 } from "./note-DdyFyHLV.js";
|
|
28
28
|
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-WPZfV7Dp.js";
|
|
29
|
-
import { i as healthCommand, t as formatHealthCheckFailure } from "./health-format-
|
|
29
|
+
import { i as healthCommand, t as formatHealthCheckFailure } from "./health-format-CY2Jhd0G.js";
|
|
30
30
|
import { t as runGatewayUpdate } from "./update-runner-BF2ZUZuV.js";
|
|
31
31
|
import { i as resolveGatewayAuth } from "./auth-CeZ-Kq3Y.js";
|
|
32
32
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-B0uJbSLd.js";
|
|
@@ -34,13 +34,13 @@ import { a as repairLaunchAgentBootstrap, i as launchAgentPlistExists, n as isLa
|
|
|
34
34
|
import { r as isSystemdUserServiceAvailable } from "./systemd-CKUsCXqF.js";
|
|
35
35
|
import { t as readLastGatewayErrorLine } from "./diagnostics-CBJs_eaH.js";
|
|
36
36
|
import { t as collectChannelStatusIssues } from "./channels-status-issues-D_rjAibL.js";
|
|
37
|
-
import { n as doctorShellCompletion } from "./doctor-completion-
|
|
37
|
+
import { n as doctorShellCompletion } from "./doctor-completion-mCH7_wEn.js";
|
|
38
38
|
import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-C6cSlkkc.js";
|
|
39
|
-
import { a as gatewayInstallErrorHint, d as renderSystemNodeWarning, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, p as resolveSystemNodeInfo, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
39
|
+
import { a as gatewayInstallErrorHint, d as renderSystemNodeWarning, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, p as resolveSystemNodeInfo, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-CyWCBhlo.js";
|
|
40
40
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-Cu8buxAR.js";
|
|
41
41
|
import { n as buildAuthHealthSummary, r as formatRemainingShort, t as DEFAULT_OAUTH_WARN_MS } from "./auth-health-BQXG_lTS.js";
|
|
42
42
|
import { n as renderSystemdUnavailableHints, t as isSystemdUnavailableDetail } from "./systemd-hints-vhH0G2VV.js";
|
|
43
|
-
import { a as renderGatewayServiceCleanupHints, i as findExtraGatewayServices, n as auditGatewayServiceConfig, r as needsNodeRuntimeMigration, t as SERVICE_AUDIT_CODES } from "./service-audit-
|
|
43
|
+
import { a as renderGatewayServiceCleanupHints, i as findExtraGatewayServices, n as auditGatewayServiceConfig, r as needsNodeRuntimeMigration, t as SERVICE_AUDIT_CODES } from "./service-audit-C7Wq0dp9.js";
|
|
44
44
|
import fs from "node:fs";
|
|
45
45
|
import path from "node:path";
|
|
46
46
|
import JSON5 from "json5";
|
|
@@ -3,7 +3,7 @@ import { r as resolveCliName, t as formatCliCommand } from "./command-format-DOY
|
|
|
3
3
|
import { t as VERSION } from "./version-BKRSzdyx.js";
|
|
4
4
|
import { t as note } from "./note-DdyFyHLV.js";
|
|
5
5
|
import { c as compareSemverStrings, s as checkUpdateStatus } from "./update-runner-BF2ZUZuV.js";
|
|
6
|
-
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-
|
|
6
|
+
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-Bbx_wcCt.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { spawnSync } from "node:child_process";
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ import { o as loadConfig, u as writeConfigFile } from "./config-ZjEd8561.js";
|
|
|
4
4
|
import { h as resolveControlUiLinks, m as randomToken, p as probeGatewayReachable, v as waitForGatewayReachable } from "./onboard-helpers-FO60qqTG.js";
|
|
5
5
|
import { o as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-CgbWVYSz.js";
|
|
6
6
|
import { t as readLastGatewayErrorLine } from "./diagnostics-CBJs_eaH.js";
|
|
7
|
-
import { i as buildGatewayInstallPlan, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
7
|
+
import { i as buildGatewayInstallPlan, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-CyWCBhlo.js";
|
|
8
8
|
import process from "node:process";
|
|
9
9
|
import { mkdirSync, openSync } from "node:fs";
|
|
10
10
|
import { spawn } from "node:child_process";
|
|
@@ -152,7 +152,8 @@ async function ensureLocalGatewayRunning() {
|
|
|
152
152
|
...plan.environment
|
|
153
153
|
},
|
|
154
154
|
detached: true,
|
|
155
|
-
stdio
|
|
155
|
+
stdio,
|
|
156
|
+
windowsHide: true
|
|
156
157
|
}).unref();
|
|
157
158
|
} catch (err) {
|
|
158
159
|
return {
|
package/dist/entry.js
CHANGED
|
@@ -247,7 +247,7 @@ if (!ensureExperimentalWarningSuppressed()) {
|
|
|
247
247
|
applyCliProfileEnv({ profile: parsed.profile });
|
|
248
248
|
process$1.argv = parsed.argv;
|
|
249
249
|
}
|
|
250
|
-
import("./run-main-
|
|
250
|
+
import("./run-main-DXzUKwyA.js").then(({ runCli }) => runCli(process$1.argv)).catch((error) => {
|
|
251
251
|
console.error("[SKYKOI] Failed to start CLI:", error instanceof Error ? error.stack ?? error.message : error);
|
|
252
252
|
process$1.exitCode = 1;
|
|
253
253
|
});
|