skykoi 2026.3.156 → 2026.3.158
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/{archive-CJE6qfUF.js → archive-BAGcK16l.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-DoSTLMZp.js → channel-options-B1bT5seT.js} +1 -1
- package/dist/{channels-cli-Cb9gne4P.js → channels-cli-D5PJ80yl.js} +7 -7
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-hZA2E9-j.js → cli-DWxyIl8K.js} +2 -2
- package/dist/{completion-cli-HN6DFXD9.js → completion-cli-CZh0lnav.js} +1 -1
- package/dist/{config-guard-DwDEj7Ci.js → config-guard-Cma8HKux.js} +13 -13
- package/dist/{configure-DlMIEQWa.js → configure-49IDHX06.js} +4 -4
- package/dist/{daemon-cli-BGL_hfq9.js → daemon-cli-D-HBzGUv.js} +2 -2
- package/dist/{deps-C3KXLAIC.js → deps-Cv_7DVoO.js} +1 -1
- package/dist/{doctor-D5jYt1j4.js → doctor-Dvswp4EE.js} +3 -3
- package/dist/entry.js +1 -1
- package/dist/extension-api.js +2 -2
- package/dist/{gateway-cli-Br3cxDJh.js → gateway-cli-DZtXHvpM.js} +87 -42
- package/dist/{github-copilot-auth-D4IO7PUT.js → github-copilot-auth-BeMUEd7V.js} +1 -1
- package/dist/{health-format-DySpZd8K.js → health-format-04uv1lDP.js} +1 -1
- package/dist/{hooks-cli-C7jpGmRZ.js → hooks-cli-DI4qlg23.js} +4 -4
- package/dist/index.js +20 -20
- package/dist/{installs-C1Ft8dtv.js → installs-D01R-UrZ.js} +1 -1
- package/dist/{koi-D-MfbiyL.js → koi-CaQDw4W_.js} +5 -4
- package/dist/{koi-event-bridge-DD0aDBHE.js → koi-event-bridge-nfwMM723.js} +1 -1
- package/dist/{koi-events-CA5YtglQ.js → koi-events-Cx85mo2K.js} +1 -0
- package/dist/{models-cli-D2YBvsFs.js → models-cli-C8Sjr9Zi.js} +3 -3
- package/dist/{onboard-channels-BbZ4mKyR.js → onboard-channels-DvDDRanI.js} +2 -2
- package/dist/{onboard-skills-qsve2vGf.js → onboard-skills-CyULo6No.js} +3 -3
- package/dist/{onboarding-QjjRi54s.js → onboarding-L9hTgOLO.js} +6 -6
- package/dist/{plugin-registry-XGYtzjOF.js → plugin-registry-CWA7GRB2.js} +1 -1
- package/dist/plugin-sdk/index.js +7 -7
- package/dist/plugin-sdk/infra/koi-events.d.ts +8 -0
- package/dist/{plugins-cli-Bg1XDg0L.js → plugins-cli-Dy6TdfPZ.js} +6 -6
- package/dist/{program-DVLtTun9.js → program-5lXCtD54.js} +4 -4
- package/dist/{register.subclis-CMi_LCDA.js → register.subclis-BXB593SL.js} +10 -10
- package/dist/{reply-DXPSuon-.js → reply-dpYcwbNy.js} +1 -1
- package/dist/{run-main-DWD2_J3p.js → run-main-BHFFPZ40.js} +21 -21
- package/dist/{server-node-events-BaKf-HVq.js → server-node-events-DI83hSuG.js} +4 -4
- package/dist/{status-_SsuJdd4.js → status-BbhFVMa_.js} +1 -1
- package/dist/{update-imNyCIX1.js → update-DQojJVeM.js} +1 -1
- package/dist/{update-cli-b4Y9yLUA.js → update-cli-CWyG8CMj.js} +12 -12
- package/dist/{update-runner-CSi_sX1a.js → update-runner-CIT8jMvy.js} +3 -3
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "./chunk-D_gEzPfs.js";
|
|
2
|
-
import { xt as require_inherits } from "./reply-
|
|
2
|
+
import { xt as require_inherits } from "./reply-dpYcwbNy.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
import * as tar from "tar";
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ef2bc5b187da55ce9717a9a6a24899c39ebf1cd3e4dfebab4b011dc97aa76b45
|
|
@@ -2,7 +2,7 @@ import { M as CHAT_CHANNEL_ORDER } from "./subsystem-RXphV8Xh.js";
|
|
|
2
2
|
import { t as isTruthyEnvValue } from "./env-Bj0uZSiW.js";
|
|
3
3
|
import { n as listChannelPlugins } from "./plugins-DUZvbUrn.js";
|
|
4
4
|
import { i as listChannelPluginCatalogEntries } from "./plugin-auto-enable-BmXyiOxr.js";
|
|
5
|
-
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-
|
|
5
|
+
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-CWA7GRB2.js";
|
|
6
6
|
|
|
7
7
|
//#region src/cli/channel-options.ts
|
|
8
8
|
function dedupe(values) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./pi-embedded-helpers-1Nerrhel.js";
|
|
2
|
-
import { Pn as createSlackWebClient, _t as formatUsageReportLines, bn as parseDiscordTarget, gt as loadProviderUsageSummary, xn as fetchChannelPermissionsDiscord } from "./reply-
|
|
2
|
+
import { Pn as createSlackWebClient, _t as formatUsageReportLines, bn as parseDiscordTarget, gt as loadProviderUsageSummary, xn as fetchChannelPermissionsDiscord } from "./reply-dpYcwbNy.js";
|
|
3
3
|
import { N as DEFAULT_CHAT_CHANNEL, O as getResolvedLoggerSettings, T as theme, c as defaultRuntime, p as danger, y as setVerbose } from "./subsystem-RXphV8Xh.js";
|
|
4
4
|
import "./paths-VdmjGGyc.js";
|
|
5
5
|
import { c as normalizeAccountId, t as DEFAULT_ACCOUNT_ID } from "./session-key-DvA8Pdt6.js";
|
|
@@ -45,7 +45,7 @@ import { n as formatAge } from "./channel-summary-DjJ3lkCW.js";
|
|
|
45
45
|
import "./device-identity-zXWmZUVz.js";
|
|
46
46
|
import "./net-Cmh623y0.js";
|
|
47
47
|
import { n as callGateway } from "./call-ByTcqcvV.js";
|
|
48
|
-
import "./koi-events-
|
|
48
|
+
import "./koi-events-Cx85mo2K.js";
|
|
49
49
|
import "./pairing-store-BpSDb0uv.js";
|
|
50
50
|
import { t as formatDocsLink } from "./links-D5FJjx5x.js";
|
|
51
51
|
import { n as runCommandWithRuntime } from "./cli-utils-C1YHVD4o.js";
|
|
@@ -62,14 +62,14 @@ import "./event-log-DtrKraIx.js";
|
|
|
62
62
|
import { t as resolveChannelDefaultAccountId } from "./helpers-BMifWcsO.js";
|
|
63
63
|
import "./note-CbRknFZ7.js";
|
|
64
64
|
import { t as createClackPrompter } from "./clack-prompter-BxHCh6Tn.js";
|
|
65
|
-
import { i as reloadOnboardingPluginRegistry, n as setupChannels, r as ensureOnboardingPluginInstalled } from "./onboard-channels-
|
|
65
|
+
import { i as reloadOnboardingPluginRegistry, n as setupChannels, r as ensureOnboardingPluginInstalled } from "./onboard-channels-DvDDRanI.js";
|
|
66
66
|
import { i as listChannelPluginCatalogEntries } from "./plugin-auto-enable-BmXyiOxr.js";
|
|
67
|
-
import "./archive-
|
|
67
|
+
import "./archive-BAGcK16l.js";
|
|
68
68
|
import "./skill-scanner-WnNLktfw.js";
|
|
69
|
-
import "./installs-
|
|
69
|
+
import "./installs-D01R-UrZ.js";
|
|
70
70
|
import { t as collectChannelStatusIssues } from "./channels-status-issues-GKs-LbrV.js";
|
|
71
|
-
import { n as hasExplicitOptions } from "./plugin-registry-
|
|
72
|
-
import { t as formatCliChannelOptions } from "./channel-options-
|
|
71
|
+
import { n as hasExplicitOptions } from "./plugin-registry-CWA7GRB2.js";
|
|
72
|
+
import { t as formatCliChannelOptions } from "./channel-options-B1bT5seT.js";
|
|
73
73
|
import { t as buildChannelAccountSnapshot } from "./status-BA0KgRIG.js";
|
|
74
74
|
import { t as parseLogLine } from "./parse-log-line-Btq1hVHj.js";
|
|
75
75
|
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-D-HBzGUv.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./pi-embedded-helpers-1Nerrhel.js";
|
|
2
|
-
import { ht as loadSKYKOIPlugins } from "./reply-
|
|
2
|
+
import { ht as loadSKYKOIPlugins } from "./reply-dpYcwbNy.js";
|
|
3
3
|
import { t as createSubsystemLogger } from "./subsystem-RXphV8Xh.js";
|
|
4
4
|
import "./paths-VdmjGGyc.js";
|
|
5
5
|
import "./utils-rBzA-VDv.js";
|
|
@@ -43,7 +43,7 @@ import "./channel-summary-DjJ3lkCW.js";
|
|
|
43
43
|
import "./device-identity-zXWmZUVz.js";
|
|
44
44
|
import "./net-Cmh623y0.js";
|
|
45
45
|
import "./call-ByTcqcvV.js";
|
|
46
|
-
import "./koi-events-
|
|
46
|
+
import "./koi-events-Cx85mo2K.js";
|
|
47
47
|
import "./pairing-store-BpSDb0uv.js";
|
|
48
48
|
import "./links-D5FJjx5x.js";
|
|
49
49
|
import "./progress-CIrle3FT.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-BXB593SL.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 { At as handleReset, Bt as waitForGatewayReachable, Ct as DEFAULT_WORKSPACE, Dt as ensureWorkspaceAndSessions, Et as detectBrowserOpenSupport, It as randomToken, Lt as resolveControlUiLinks, M as runMessageAction, Nt as openUrl, Ot as formatControlUiSshHint, V as CHANNEL_MESSAGE_ACTION_NAMES, dt as CHANNEL_TARGET_DESCRIPTION, gr as lookupContextTokens, in as runMemoryStatus, jt as moveToTrash, rn as registerMemoryCli, ut as CHANNEL_TARGETS_DESCRIPTION, wt as applyWizardMetadata, z as formatTargetDisplay } from "./reply-
|
|
1
|
+
import { At as handleReset, Bt as waitForGatewayReachable, Ct as DEFAULT_WORKSPACE, Dt as ensureWorkspaceAndSessions, Et as detectBrowserOpenSupport, It as randomToken, Lt as resolveControlUiLinks, M as runMessageAction, Nt as openUrl, Ot as formatControlUiSshHint, V as CHANNEL_MESSAGE_ACTION_NAMES, dt as CHANNEL_TARGET_DESCRIPTION, gr as lookupContextTokens, in as runMemoryStatus, jt as moveToTrash, rn as registerMemoryCli, ut as CHANNEL_TARGETS_DESCRIPTION, wt as applyWizardMetadata, z as formatTargetDisplay } from "./reply-dpYcwbNy.js";
|
|
2
2
|
import { B as normalizeChatChannelId, C as colorize, I as getChatChannelMeta, N as DEFAULT_CHAT_CHANNEL, T as theme, c as defaultRuntime, l as restoreTerminalState, m as info, p as danger, w as isRich, y as setVerbose } from "./subsystem-RXphV8Xh.js";
|
|
3
3
|
import { g as resolveStateDir, i as isNixMode, m as resolveOAuthDir, o as resolveConfigPath, r as STATE_DIR, u as resolveGatewayPort } from "./paths-VdmjGGyc.js";
|
|
4
4
|
import { l as normalizeKoiId, n as DEFAULT_KOI_ID, t as DEFAULT_ACCOUNT_ID } from "./session-key-DvA8Pdt6.js";
|
|
@@ -19,29 +19,29 @@ import { t as formatDocsLink } from "./links-D5FJjx5x.js";
|
|
|
19
19
|
import { n as runCommandWithRuntime } from "./cli-utils-C1YHVD4o.js";
|
|
20
20
|
import { n as withProgress } from "./progress-CIrle3FT.js";
|
|
21
21
|
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-BJmW_JM3.js";
|
|
22
|
-
import { t as createDefaultDeps } from "./deps-
|
|
22
|
+
import { t as createDefaultDeps } from "./deps-Cv_7DVoO.js";
|
|
23
23
|
import { a as gatewayInstallErrorHint, g as assertSupportedRuntime, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-DkLy62aK.js";
|
|
24
24
|
import { t as resolveChannelDefaultAccountId } from "./helpers-BMifWcsO.js";
|
|
25
25
|
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-BusiCyt_.js";
|
|
26
26
|
import { t as WizardCancelledError } from "./prompts-DxnxCHKt.js";
|
|
27
27
|
import { t as createClackPrompter } from "./clack-prompter-BxHCh6Tn.js";
|
|
28
|
-
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-
|
|
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 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-L9hTgOLO.js";
|
|
29
|
+
import { d as applyAuthChoice, f as applyOpenAIConfig, h as promptAuthChoiceGrouped, m as applyGoogleGeminiModelDefault, p as upsertSharedEnvVar, u as warnIfModelConfigLooksOff } from "./onboard-skills-CyULo6No.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-BeMUEd7V.js";
|
|
31
|
+
import { n as setupChannels } from "./onboard-channels-DvDDRanI.js";
|
|
32
|
+
import { l as healthCommand } from "./health-format-04uv1lDP.js";
|
|
33
33
|
import { t as renderTable } from "./table-CgHdpI6b.js";
|
|
34
34
|
import { t as resolveGatewayService } from "./service-CTrRN1-T.js";
|
|
35
35
|
import { r as isSystemdUserServiceAvailable } from "./systemd-BuS1yu_z.js";
|
|
36
|
-
import { l as getVerboseFlag, o as getFlagValue, r as registerSubCliCommands, s as getPositiveIntFlagValue, u as hasFlag } from "./register.subclis-
|
|
36
|
+
import { l as getVerboseFlag, o as getFlagValue, r as registerSubCliCommands, s as getPositiveIntFlagValue, u as hasFlag } from "./register.subclis-BXB593SL.js";
|
|
37
37
|
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-GLatQ1eS.js";
|
|
38
38
|
import { t as formatHelpExamples } from "./help-format-Cbr54gLP.js";
|
|
39
|
-
import { a as createOutboundSendDeps, n as resolveSessionKeyForRequest, t as koiCommand } from "./koi-
|
|
40
|
-
import { n as hasExplicitOptions, t as ensurePluginRegistryLoaded } from "./plugin-registry-
|
|
39
|
+
import { a as createOutboundSendDeps, n as resolveSessionKeyForRequest, t as koiCommand } from "./koi-CaQDw4W_.js";
|
|
40
|
+
import { n as hasExplicitOptions, t as ensurePluginRegistryLoaded } from "./plugin-registry-CWA7GRB2.js";
|
|
41
41
|
import { n as parsePositiveIntOrUndefined, t as collectOption } from "./helpers-CgAOTnxe.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-49IDHX06.js";
|
|
43
43
|
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-BLQwmm6k.js";
|
|
44
|
-
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-
|
|
44
|
+
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-Dvswp4EE.js";
|
|
45
45
|
import { fileURLToPath } from "node:url";
|
|
46
46
|
import fs from "node:fs";
|
|
47
47
|
import path from "node:path";
|
|
@@ -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-49IDHX06.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,5 +1,5 @@
|
|
|
1
1
|
import { r as __exportAll } from "./chunk-D_gEzPfs.js";
|
|
2
|
-
import { Bt as waitForGatewayReachable, Ct as DEFAULT_WORKSPACE, Dt as ensureWorkspaceAndSessions, Ft as probeGatewayReachable, It as randomToken, Lt as resolveControlUiLinks, Mt as normalizeGatewayTokenInput, Pt as printWizardHeader, kt as guardCancel, wt as applyWizardMetadata, zt as summarizeExistingConfig } from "./reply-
|
|
2
|
+
import { Bt as waitForGatewayReachable, Ct as DEFAULT_WORKSPACE, Dt as ensureWorkspaceAndSessions, Ft as probeGatewayReachable, It as randomToken, Lt as resolveControlUiLinks, Mt as normalizeGatewayTokenInput, Pt as printWizardHeader, kt as guardCancel, wt as applyWizardMetadata, zt as summarizeExistingConfig } from "./reply-dpYcwbNy.js";
|
|
3
3
|
import { c as defaultRuntime } from "./subsystem-RXphV8Xh.js";
|
|
4
4
|
import { t as CONFIG_PATH, u as resolveGatewayPort } from "./paths-VdmjGGyc.js";
|
|
5
5
|
import { h as resolveUserPath, y as shortenHomePath } from "./utils-rBzA-VDv.js";
|
|
@@ -15,9 +15,9 @@ import { n as logConfigUpdated } from "./logging-BusiCyt_.js";
|
|
|
15
15
|
import { t as note$1 } from "./note-CbRknFZ7.js";
|
|
16
16
|
import { t as WizardCancelledError } from "./prompts-DxnxCHKt.js";
|
|
17
17
|
import { t as createClackPrompter } from "./clack-prompter-BxHCh6Tn.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-CyULo6No.js";
|
|
19
|
+
import { n as setupChannels, t as noteChannelStatus } from "./onboard-channels-DvDDRanI.js";
|
|
20
|
+
import { l as healthCommand, n as ensureControlUiAssetsBuilt, t as formatHealthCheckFailure } from "./health-format-04uv1lDP.js";
|
|
21
21
|
import { t as resolveGatewayService } from "./service-CTrRN1-T.js";
|
|
22
22
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-BLQwmm6k.js";
|
|
23
23
|
import { confirm, intro, outro, select, text } from "@clack/prompts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __exportAll } from "./chunk-D_gEzPfs.js";
|
|
2
|
-
import { Lt as resolveControlUiLinks } from "./reply-
|
|
2
|
+
import { Lt as resolveControlUiLinks } from "./reply-dpYcwbNy.js";
|
|
3
3
|
import { C as colorize, O as getResolvedLoggerSettings, T as theme, c as defaultRuntime, w as isRich } from "./subsystem-RXphV8Xh.js";
|
|
4
4
|
import { d as resolveIsNixMode, g as resolveStateDir, o as resolveConfigPath, u as resolveGatewayPort } from "./paths-VdmjGGyc.js";
|
|
5
5
|
import { y as shortenHomePath } from "./utils-rBzA-VDv.js";
|
|
@@ -14,7 +14,7 @@ import { n as callGateway } from "./call-ByTcqcvV.js";
|
|
|
14
14
|
import { t as formatDocsLink } from "./links-D5FJjx5x.js";
|
|
15
15
|
import { n as withProgress } from "./progress-CIrle3FT.js";
|
|
16
16
|
import { d as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel } from "./constants-QCWVHQSI.js";
|
|
17
|
-
import { t as createDefaultDeps } from "./deps-
|
|
17
|
+
import { t as createDefaultDeps } from "./deps-Cv_7DVoO.js";
|
|
18
18
|
import { i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-DkLy62aK.js";
|
|
19
19
|
import { o as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-CTrRN1-T.js";
|
|
20
20
|
import { r as isSystemdUserServiceAvailable } from "./systemd-BuS1yu_z.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Nn as sendMessageSlack, St as sendMessageIMessage, _n as sendMessageTelegram, jn as sendMessageWhatsApp, vn as sendMessageDiscord } from "./reply-
|
|
1
|
+
import { Nn as sendMessageSlack, St as sendMessageIMessage, _n as sendMessageTelegram, jn as sendMessageWhatsApp, vn as sendMessageDiscord } from "./reply-dpYcwbNy.js";
|
|
2
2
|
import { b as sendMessageSignal } from "./deliver-CJ2Pjcyz.js";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/deps.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { It as randomToken, Pt as printWizardHeader, ht as loadSKYKOIPlugins, kt as guardCancel, wr as loadModelCatalog, wt as applyWizardMetadata } from "./reply-
|
|
1
|
+
import { It as randomToken, Pt as printWizardHeader, ht as loadSKYKOIPlugins, kt as guardCancel, wr as loadModelCatalog, wt as applyWizardMetadata } from "./reply-dpYcwbNy.js";
|
|
2
2
|
import { O as getResolvedLoggerSettings, c as defaultRuntime } from "./subsystem-RXphV8Xh.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-DvA8Pdt6.js";
|
|
@@ -25,8 +25,8 @@ import { t as resolveChannelDefaultAccountId } from "./helpers-BMifWcsO.js";
|
|
|
25
25
|
import { n as logConfigUpdated } from "./logging-BusiCyt_.js";
|
|
26
26
|
import { t as note$1 } from "./note-CbRknFZ7.js";
|
|
27
27
|
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-BmXyiOxr.js";
|
|
28
|
-
import { i as resolveControlUiDistIndexPathForRoot, l as healthCommand, r as resolveControlUiDistIndexHealth, t as formatHealthCheckFailure } from "./health-format-
|
|
29
|
-
import { c as doctorShellCompletion, t as runGatewayUpdate } from "./update-runner-
|
|
28
|
+
import { i as resolveControlUiDistIndexPathForRoot, l as healthCommand, r as resolveControlUiDistIndexHealth, t as formatHealthCheckFailure } from "./health-format-04uv1lDP.js";
|
|
29
|
+
import { c as doctorShellCompletion, t as runGatewayUpdate } from "./update-runner-CIT8jMvy.js";
|
|
30
30
|
import { i as resolveGatewayAuth } from "./auth-DQvUzR68.js";
|
|
31
31
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-PwtGQTh5.js";
|
|
32
32
|
import { a as repairLaunchAgentBootstrap, i as launchAgentPlistExists, n as isLaunchAgentListed, o as resolveGatewayLogPaths, r as isLaunchAgentLoaded, t as resolveGatewayService } from "./service-CTrRN1-T.js";
|
package/dist/entry.js
CHANGED
|
@@ -244,7 +244,7 @@ if (!ensureExperimentalWarningSuppressed()) {
|
|
|
244
244
|
applyCliProfileEnv({ profile: parsed.profile });
|
|
245
245
|
process$1.argv = parsed.argv;
|
|
246
246
|
}
|
|
247
|
-
import("./run-main-
|
|
247
|
+
import("./run-main-BHFFPZ40.js").then(({ runCli }) => runCli(process$1.argv)).catch((error) => {
|
|
248
248
|
console.error("[SKYKOI] Failed to start CLI:", error instanceof Error ? error.stack ?? error.message : error);
|
|
249
249
|
process$1.exitCode = 1;
|
|
250
250
|
});
|
package/dist/extension-api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./pi-embedded-helpers-1Nerrhel.js";
|
|
2
|
-
import { Ln as resolveKoiIdentity, c as runEmbeddedPiKoi, zr as resolveKoiTimeoutMs } from "./reply-
|
|
2
|
+
import { Ln as resolveKoiIdentity, c as runEmbeddedPiKoi, zr as resolveKoiTimeoutMs } from "./reply-dpYcwbNy.js";
|
|
3
3
|
import "./subsystem-RXphV8Xh.js";
|
|
4
4
|
import "./paths-VdmjGGyc.js";
|
|
5
5
|
import "./utils-rBzA-VDv.js";
|
|
@@ -43,7 +43,7 @@ import "./channel-summary-DjJ3lkCW.js";
|
|
|
43
43
|
import "./device-identity-zXWmZUVz.js";
|
|
44
44
|
import "./net-Cmh623y0.js";
|
|
45
45
|
import "./call-ByTcqcvV.js";
|
|
46
|
-
import "./koi-events-
|
|
46
|
+
import "./koi-events-Cx85mo2K.js";
|
|
47
47
|
import "./pairing-store-BpSDb0uv.js";
|
|
48
48
|
import "./links-D5FJjx5x.js";
|
|
49
49
|
import "./progress-CIrle3FT.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as __toESM } from "./chunk-D_gEzPfs.js";
|
|
2
2
|
import { B as normalizeElevatedLevel, H as normalizeThinkLevel, I as formatThinkingLevels, K as supportsXHighThinking, L as formatXHighModelHint, U as normalizeUsageDisplay, V as normalizeReasoningLevel, W as normalizeVerboseLevel } from "./pi-embedded-helpers-1Nerrhel.js";
|
|
3
|
-
import { $ as summarizeRestartSentinel, $n as resolveTtsPrefsPath, $t as buildSafeExternalPrompt, A as resolveSessionTranscriptCandidates, Ar as DEFAULT_INPUT_MAX_REDIRECTS, At as handleReset, B as resetDirectoryCache, Bn as resolveUserTimezone, C as loadSessionEntry, Cn as createReplyDispatcher, D as capArrayByJsonBytes, Dn as findSubkoiRunByChildSessionKey, Dr as DEFAULT_INPUT_FILE_MIMES, E as archiveFileOnDisk, En as stopSubkoisForRequester, Er as DEFAULT_INPUT_FILE_MAX_CHARS, Fr as extractFileContentFromSource, G as consumeGatewaySigusr1RestartAuthorization, Gn as OPENAI_TTS_MODELS, Gt as getRemoteSkillEligibility, H as runWithModelFallback, Hn as createInternalHookEvent, Ht as buildControlUiAvatarUrl, Ir as extractImageContentFromSource, J as setGatewaySigusr1RestartPolicy, Jn as isTtsEnabled, Jt as refreshRemoteBinsForConnectedNodes, K as isGatewaySigusr1RestartExternallyAllowed, Kn as OPENAI_TTS_VOICES, Kt as primeRemoteSkillsCache, L as resolveOutboundTarget, Ln as resolveKoiIdentity, Lr as normalizeMimeList, Mn as normalizePollInput, Mr as DEFAULT_INPUT_PDF_MAX_PIXELS, N as ensureOutboundSessionEntry, Nr as DEFAULT_INPUT_PDF_MIN_TEXT_CHARS, O as readSessionMessages, On as findSubkoiRunByRunId, Or as DEFAULT_INPUT_IMAGE_MAX_BYTES, P as resolveOutboundSessionRoute, Pr as DEFAULT_INPUT_TIMEOUT_MS, Qn as resolveTtsConfig, Qt as registerSkillsChangeListener, R as resolveSessionDeliveryTarget, Rn as formatUserTime, S as loadCombinedSessionStoreForGateway, Sn as dispatchInboundMessage, Sr as isSystemEventContextChanged, T as resolveSessionModelRef, Tn as isAbortTrigger, Tr as DEFAULT_INPUT_FILE_MAX_BYTES, Un as registerInternalHook, Ut as normalizeControlUiBasePath, Vn as clearInternalHooks, Vt as CONTROL_UI_AVATAR_PREFIX, W as authorizeGatewaySigusr1Restart, Wn as triggerInternalHook, Wt as resolveAssistantAvatarUrl, X as formatDoctorNonInteractiveHint, Xn as resolveTtsApiKey, Xt as setSkillsRemoteRegistry, Y as consumeRestartSentinel, Yn as isTtsProviderConfigured, Yt as refreshRemoteNodeBins, Z as formatRestartSentinelMessage, Zn as resolveTtsAutoMode, Zt as getSkillsSnapshotVersion, _ as onCanvasChange, a as normalizeSendPolicy, at as normalizeOptionalKoiId, b as listKoisForGateway, br as parseVerboseOverride, bt as handleSlackHttpRequest, c as runEmbeddedPiKoi, cr as startDiagnosticHeartbeat, ct as normalizeRequiredName, d as waitForEmbeddedPiRunEnd, dn as buildHistoryContextFromEntries, dr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, en as detectSuspiciousPatterns, er as resolveTtsProviderOrder, fn as resolveHeartbeatVisibility, ft as requestHeartbeatNow, g as listCanvasUris, gr as lookupContextTokens, gt as loadProviderUsageSummary, h as getCanvasResource, hn as onHeartbeatEvent, hr as stripHeartbeatToken, ht as loadSKYKOIPlugins, i as runCliKoi, it as inferLegacyName, j as stripEnvelopeFromMessages, jr as DEFAULT_INPUT_PDF_MAX_PAGES, k as readSessionPreviewItemsFromTranscript, kn as initSubkoiRegistry, kr as DEFAULT_INPUT_IMAGE_MIMES, l as abortEmbeddedPiRun, ln as registerUnhandledRejectionHandler, lr as stopDiagnosticHeartbeat, lt as migrateLegacyCronPayload, m as canvasUri, mn as getLastHeartbeatEvent, mt as getPluginToolMeta, n as getCliSessionId, nn as isExternalHookSession, nr as setTtsProvider, nt as normalizeCronJobCreate, o as resolveSendPolicy, on as createReplyPrefixOptions, or as setCommandLaneConcurrency, ot as normalizeOptionalText, p as createSKYKOITools, q as scheduleGatewaySigusr1Restart, qn as getTtsProvider, qt as recordRemoteNodeInfo, r as setCliSessionId, rr as textToSpeech, rt as normalizeCronJobPatch, s as clearSessionQueues, sn as normalizeGroupActivation, sr as CommandLane, st as normalizePayloadToSystemText, tn as getHookType, tr as setTtsEnabled, tt as writeRestartSentinel, ur as isDiagnosticsEnabled, v as replaceCanvasResource, vr as applyModelOverrideToSessionEntry, w as resolveGatewaySessionStoreTarget, wn as formatZonedTimestamp, wr as loadModelCatalog, x as listSessionsFromStore, xr as enqueueSystemEvent, y as resolveAnnounceTargetFromKey, yn as getChannelActivity, yr as applyVerboseOverride, zn as resolveUserTimeFormat, zr as resolveKoiTimeoutMs } from "./reply-
|
|
3
|
+
import { $ as summarizeRestartSentinel, $n as resolveTtsPrefsPath, $t as buildSafeExternalPrompt, A as resolveSessionTranscriptCandidates, Ar as DEFAULT_INPUT_MAX_REDIRECTS, At as handleReset, B as resetDirectoryCache, Bn as resolveUserTimezone, C as loadSessionEntry, Cn as createReplyDispatcher, D as capArrayByJsonBytes, Dn as findSubkoiRunByChildSessionKey, Dr as DEFAULT_INPUT_FILE_MIMES, E as archiveFileOnDisk, En as stopSubkoisForRequester, Er as DEFAULT_INPUT_FILE_MAX_CHARS, Fr as extractFileContentFromSource, G as consumeGatewaySigusr1RestartAuthorization, Gn as OPENAI_TTS_MODELS, Gt as getRemoteSkillEligibility, H as runWithModelFallback, Hn as createInternalHookEvent, Ht as buildControlUiAvatarUrl, Ir as extractImageContentFromSource, J as setGatewaySigusr1RestartPolicy, Jn as isTtsEnabled, Jt as refreshRemoteBinsForConnectedNodes, K as isGatewaySigusr1RestartExternallyAllowed, Kn as OPENAI_TTS_VOICES, Kt as primeRemoteSkillsCache, L as resolveOutboundTarget, Ln as resolveKoiIdentity, Lr as normalizeMimeList, Mn as normalizePollInput, Mr as DEFAULT_INPUT_PDF_MAX_PIXELS, N as ensureOutboundSessionEntry, Nr as DEFAULT_INPUT_PDF_MIN_TEXT_CHARS, O as readSessionMessages, On as findSubkoiRunByRunId, Or as DEFAULT_INPUT_IMAGE_MAX_BYTES, P as resolveOutboundSessionRoute, Pr as DEFAULT_INPUT_TIMEOUT_MS, Qn as resolveTtsConfig, Qt as registerSkillsChangeListener, R as resolveSessionDeliveryTarget, Rn as formatUserTime, S as loadCombinedSessionStoreForGateway, Sn as dispatchInboundMessage, Sr as isSystemEventContextChanged, T as resolveSessionModelRef, Tn as isAbortTrigger, Tr as DEFAULT_INPUT_FILE_MAX_BYTES, Un as registerInternalHook, Ut as normalizeControlUiBasePath, Vn as clearInternalHooks, Vt as CONTROL_UI_AVATAR_PREFIX, W as authorizeGatewaySigusr1Restart, Wn as triggerInternalHook, Wt as resolveAssistantAvatarUrl, X as formatDoctorNonInteractiveHint, Xn as resolveTtsApiKey, Xt as setSkillsRemoteRegistry, Y as consumeRestartSentinel, Yn as isTtsProviderConfigured, Yt as refreshRemoteNodeBins, Z as formatRestartSentinelMessage, Zn as resolveTtsAutoMode, Zt as getSkillsSnapshotVersion, _ as onCanvasChange, a as normalizeSendPolicy, at as normalizeOptionalKoiId, b as listKoisForGateway, br as parseVerboseOverride, bt as handleSlackHttpRequest, c as runEmbeddedPiKoi, cr as startDiagnosticHeartbeat, ct as normalizeRequiredName, d as waitForEmbeddedPiRunEnd, dn as buildHistoryContextFromEntries, dr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, en as detectSuspiciousPatterns, er as resolveTtsProviderOrder, fn as resolveHeartbeatVisibility, ft as requestHeartbeatNow, g as listCanvasUris, gr as lookupContextTokens, gt as loadProviderUsageSummary, h as getCanvasResource, hn as onHeartbeatEvent, hr as stripHeartbeatToken, ht as loadSKYKOIPlugins, i as runCliKoi, it as inferLegacyName, j as stripEnvelopeFromMessages, jr as DEFAULT_INPUT_PDF_MAX_PAGES, k as readSessionPreviewItemsFromTranscript, kn as initSubkoiRegistry, kr as DEFAULT_INPUT_IMAGE_MIMES, l as abortEmbeddedPiRun, ln as registerUnhandledRejectionHandler, lr as stopDiagnosticHeartbeat, lt as migrateLegacyCronPayload, m as canvasUri, mn as getLastHeartbeatEvent, mt as getPluginToolMeta, n as getCliSessionId, nn as isExternalHookSession, nr as setTtsProvider, nt as normalizeCronJobCreate, o as resolveSendPolicy, on as createReplyPrefixOptions, or as setCommandLaneConcurrency, ot as normalizeOptionalText, p as createSKYKOITools, q as scheduleGatewaySigusr1Restart, qn as getTtsProvider, qt as recordRemoteNodeInfo, r as setCliSessionId, rr as textToSpeech, rt as normalizeCronJobPatch, s as clearSessionQueues, sn as normalizeGroupActivation, sr as CommandLane, st as normalizePayloadToSystemText, tn as getHookType, tr as setTtsEnabled, tt as writeRestartSentinel, ur as isDiagnosticsEnabled, v as replaceCanvasResource, vr as applyModelOverrideToSessionEntry, w as resolveGatewaySessionStoreTarget, wn as formatZonedTimestamp, wr as loadModelCatalog, x as listSessionsFromStore, xr as enqueueSystemEvent, y as resolveAnnounceTargetFromKey, yn as getChannelActivity, yr as applyVerboseOverride, zn as resolveUserTimeFormat, zr as resolveKoiTimeoutMs } from "./reply-dpYcwbNy.js";
|
|
4
4
|
import { C as colorize, D as getLogger, E as getChildLogger, N as DEFAULT_CHAT_CHANNEL, O as getResolvedLoggerSettings, T as theme, V as getActivePluginRegistry, a as setConsoleTimestampPrefix, c as defaultRuntime, i as setConsoleSubsystemFilter, j as CHANNEL_IDS, n as runtimeForLogger, t as createSubsystemLogger, w as isRich, y as setVerbose } from "./subsystem-RXphV8Xh.js";
|
|
5
5
|
import { g as resolveStateDir, i as isNixMode, l as resolveGatewayLockDir, o as resolveConfigPath, r as STATE_DIR, t as CONFIG_PATH, u as resolveGatewayPort } from "./paths-VdmjGGyc.js";
|
|
6
6
|
import { _ as isSubkoiSessionKey, a as buildKoiMainSessionKey, d as resolveKoiIdFromSessionKey, l as normalizeKoiId, m as toKoiRequestSessionKey, n as DEFAULT_KOI_ID, t as DEFAULT_ACCOUNT_ID, u as normalizeMainKey, v as parseKoiSessionKey } from "./session-key-DvA8Pdt6.js";
|
|
@@ -49,7 +49,7 @@ import { i as normalizeDevicePublicKeyBase64Url, s as verifyDeviceSignature, t a
|
|
|
49
49
|
import { n as pickPrimaryTailnetIPv6, t as pickPrimaryTailnetIPv4 } from "./tailnet-DEIxPaFW.js";
|
|
50
50
|
import { $ as validateNodeDescribeParams, A as validateDevicePairApproveParams, At as validateWizardCancelParams, B as validateExecApprovalsSetParams, C as validateCronAddParams, Ct as validateSkillsStatusParams, D as validateCronRunsParams, Dt as validateWakeParams, E as validateCronRunParams, Et as validateUpdateRunParams, F as validateExecApprovalRequestParams, Ft as ErrorCodes, G as validateKoiFilesSetParams, H as validateKoiDeleteParams, I as validateExecApprovalResolveParams, It as errorShape, J as validateKoiParams, K as validateKoiIdentityParams, L as validateExecApprovalsGetParams, M as validateDevicePairRejectParams, Mt as validateWizardStartParams, N as validateDeviceTokenRevokeParams, Nt as validateWizardStatusParams, O as validateCronStatusParams, Ot as validateWebLoginStartParams, P as validateDeviceTokenRotateParams, Pt as PROTOCOL_VERSION, Q as validateModelsListParams, R as validateExecApprovalsNodeGetParams, Rt as parseSessionLabel, S as validateConnectParams, St as validateSkillsInstallParams, T as validateCronRemoveParams, Tt as validateTalkModeParams, U as validateKoiFilesGetParams, V as validateKoiCreateParams, W as validateKoiFilesListParams, X as validateKoiWaitParams, Y as validateKoiUpdateParams, Z as validateLogsTailParams, _ as validateConfigApplyParams, _t as validateSessionsPreviewParams, at as validateNodePairListParams, b as validateConfigSchemaParams, bt as validateSessionsUsageParams, c as resolveGatewayListenHosts, ct as validateNodePairVerifyParams, d as validateChannelsLogoutParams, dt as validateRequestFrame, et as validateNodeEventParams, f as validateChannelsStatusParams, ft as validateSendParams, g as validateChatSendParams, gt as validateSessionsPatchParams, h as validateChatInjectParams, ht as validateSessionsListParams, it as validateNodePairApproveParams, j as validateDevicePairListParams, jt as validateWizardNextParams, k as validateCronUpdateParams, kt as validateWebLoginWaitParams, l as GatewayClient, lt as validateNodeRenameParams, m as validateChatHistoryParams, mt as validateSessionsDeleteParams, n as isLoopbackHost$2, nt as validateNodeInvokeResultParams, o as resolveGatewayBindHost, ot as validateNodePairRejectParams, p as validateChatAbortParams, pt as validateSessionsCompactParams, q as validateKoiListParams, r as isTrustedProxyAddress, rt as validateNodeListParams, s as resolveGatewayClientIp, st as validateNodePairRequestParams, t as isLoopbackAddress, tt as validateNodeInvokeParams, u as formatValidationErrors, ut as validatePollParams, v as validateConfigGetParams, vt as validateSessionsResetParams, w as validateCronListParams, wt as validateSkillsUpdateParams, x as validateConfigSetParams, xt as validateSkillsBinsParams, y as validateConfigPatchParams, yt as validateSessionsResolveParams, z as validateExecApprovalsNodeSetParams, zt as buildDeviceAuthPayload } from "./net-Cmh623y0.js";
|
|
51
51
|
import { n as callGateway, s as loadGatewayTlsRuntime$1 } from "./call-ByTcqcvV.js";
|
|
52
|
-
import { a as onKoiEvent, i as getKoiRunContext, n as emitKoiEvent, o as registerKoiRunContext, t as clearKoiRunContext } from "./koi-events-
|
|
52
|
+
import { a as onKoiEvent, i as getKoiRunContext, n as emitKoiEvent, o as registerKoiRunContext, t as clearKoiRunContext } from "./koi-events-Cx85mo2K.js";
|
|
53
53
|
import "./pairing-store-BpSDb0uv.js";
|
|
54
54
|
import { t as formatDocsLink } from "./links-D5FJjx5x.js";
|
|
55
55
|
import { n as runCommandWithRuntime } from "./cli-utils-C1YHVD4o.js";
|
|
@@ -66,7 +66,7 @@ import { n as createBrowserControlContext, r as startBrowserControlServiceFromCo
|
|
|
66
66
|
import { t as parseAbsoluteTimeMs } from "./parse-DbwfoyR_.js";
|
|
67
67
|
import { n as resolveMessageChannelSelection } from "./channel-selection-B5tUOB8t.js";
|
|
68
68
|
import { n as hydrateSession, r as readEventsSince, t as appendEvent } from "./event-log-DtrKraIx.js";
|
|
69
|
-
import { n as createOutboundSendDeps, t as createDefaultDeps } from "./deps-
|
|
69
|
+
import { n as createOutboundSendDeps, t as createDefaultDeps } from "./deps-Cv_7DVoO.js";
|
|
70
70
|
import { i as enableTailscaleServe, n as disableTailscaleServe, o as getTailnetHostname, r as enableTailscaleFunnel, t as disableTailscaleFunnel } from "./tailscale-4hm01eUI.js";
|
|
71
71
|
import { t as ensureSKYKOICliOnPath } from "./path-env-B1xMZ4TX.js";
|
|
72
72
|
import "./daemon-runtime-DkLy62aK.js";
|
|
@@ -75,16 +75,16 @@ import { t as resolveChannelDefaultAccountId } from "./helpers-BMifWcsO.js";
|
|
|
75
75
|
import "./logging-BusiCyt_.js";
|
|
76
76
|
import "./note-CbRknFZ7.js";
|
|
77
77
|
import { t as WizardCancelledError } from "./prompts-DxnxCHKt.js";
|
|
78
|
-
import { c as loadKoiIdentity, d as loadKoiIdentityFromWorkspace, i as applyKoiConfig, l as pruneKoiConfig, o as findKoiEntryIndex, r as getStatusSummary, s as listKoiEntries, t as runOnboardingWizard } from "./onboarding-
|
|
79
|
-
import { n as installSkill } from "./onboard-skills-
|
|
80
|
-
import "./github-copilot-auth-
|
|
81
|
-
import "./onboard-channels-
|
|
78
|
+
import { c as loadKoiIdentity, d as loadKoiIdentityFromWorkspace, i as applyKoiConfig, l as pruneKoiConfig, o as findKoiEntryIndex, r as getStatusSummary, s as listKoiEntries, t as runOnboardingWizard } from "./onboarding-L9hTgOLO.js";
|
|
79
|
+
import { n as installSkill } from "./onboard-skills-CyULo6No.js";
|
|
80
|
+
import "./github-copilot-auth-BeMUEd7V.js";
|
|
81
|
+
import "./onboard-channels-DvDDRanI.js";
|
|
82
82
|
import { r as buildChannelUiCatalog, t as applyPluginAutoEnable } from "./plugin-auto-enable-BmXyiOxr.js";
|
|
83
|
-
import "./archive-
|
|
83
|
+
import "./archive-BAGcK16l.js";
|
|
84
84
|
import "./skill-scanner-WnNLktfw.js";
|
|
85
|
-
import "./installs-
|
|
86
|
-
import { a as resolveControlUiRootOverrideSync, c as getHealthSnapshot, d as runHeartbeatOnce, f as setHeartbeatsEnabled, n as ensureControlUiAssetsBuilt, o as resolveControlUiRootSync, p as startHeartbeatRunner, s as formatHealthChannelLines } from "./health-format-
|
|
87
|
-
import { S as normalizeUpdateChannel, _ as resolveNpmChannelTag, h as compareSemverStrings, m as checkUpdateStatus, t as runGatewayUpdate, y as DEFAULT_PACKAGE_CHANNEL } from "./update-runner-
|
|
85
|
+
import "./installs-D01R-UrZ.js";
|
|
86
|
+
import { a as resolveControlUiRootOverrideSync, c as getHealthSnapshot, d as runHeartbeatOnce, f as setHeartbeatsEnabled, n as ensureControlUiAssetsBuilt, o as resolveControlUiRootSync, p as startHeartbeatRunner, s as formatHealthChannelLines } from "./health-format-04uv1lDP.js";
|
|
87
|
+
import { S as normalizeUpdateChannel, _ as resolveNpmChannelTag, h as compareSemverStrings, m as checkUpdateStatus, t as runGatewayUpdate, y as DEFAULT_PACKAGE_CHANNEL } from "./update-runner-CIT8jMvy.js";
|
|
88
88
|
import { i as resolveGatewayAuth, n as authorizeGatewayConnect, r as isLocalDirectRequest, t as assertGatewayAuthConfigured } from "./auth-DQvUzR68.js";
|
|
89
89
|
import { i as probeGateway } from "./audit-C0ixMaLQ.js";
|
|
90
90
|
import "./table-CgHdpI6b.js";
|
|
@@ -94,16 +94,16 @@ import { p as resolveGatewayStateDir } from "./systemd-BuS1yu_z.js";
|
|
|
94
94
|
import "./service-audit-CN0kFCuS.js";
|
|
95
95
|
import "./node-service-DfmbTqpi.js";
|
|
96
96
|
import "./channels-status-issues-GKs-LbrV.js";
|
|
97
|
-
import "./register.subclis-
|
|
98
|
-
import { a as createOutboundSendDeps$1, i as resolveKoiOutboundTarget, r as resolveKoiDeliveryPlan, t as koiCommand } from "./koi-
|
|
97
|
+
import "./register.subclis-BXB593SL.js";
|
|
98
|
+
import { a as createOutboundSendDeps$1, i as resolveKoiOutboundTarget, r as resolveKoiDeliveryPlan, t as koiCommand } from "./koi-CaQDw4W_.js";
|
|
99
99
|
import { n as resolveWideAreaDiscoveryDomain, r as writeWideAreaGatewayZone } from "./widearea-dns-DMja3M8B.js";
|
|
100
100
|
import { n as discoverGatewayBeacons } from "./bonjour-discovery-D_eYlsQc.js";
|
|
101
|
-
import "./completion-cli-
|
|
101
|
+
import "./completion-cli-CZh0lnav.js";
|
|
102
102
|
import { i as shouldIncludeHook, n as loadWorkspaceHookEntries, r as resolveHookConfig } from "./hooks-status-Q-UXhKBw.js";
|
|
103
103
|
import "./tui-9aUeGcxw.js";
|
|
104
104
|
import { t as buildChannelAccountSnapshot } from "./status-BA0KgRIG.js";
|
|
105
105
|
import "./shared-DCuTTPOy.js";
|
|
106
|
-
import { a as runDaemonStop, i as runDaemonStart, n as runDaemonStatus, o as runDaemonUninstall, r as runDaemonRestart, s as runDaemonInstall } from "./daemon-cli-
|
|
106
|
+
import { a as runDaemonStop, i as runDaemonStart, n as runDaemonStatus, o as runDaemonUninstall, r as runDaemonRestart, s as runDaemonInstall } from "./daemon-cli-D-HBzGUv.js";
|
|
107
107
|
import { a as toOptionString, i as parsePort$1, n as extractGatewayMiskeys, r as maybeExplainGatewayServiceStop, t as describeUnknownError } from "./shared-18N_WkHM.js";
|
|
108
108
|
import { i as setGatewayWsLogStyle, n as logWs, r as summarizeKoiEventForWsLog, t as formatForLog } from "./ws-log-BhaGKxqL.js";
|
|
109
109
|
import { T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, i as ensureTailscaleEndpoint, v as buildGogWatchStartArgs } from "./gmail-setup-utils-BYWNnNLn.js";
|
|
@@ -2108,18 +2108,23 @@ function createKoiEventHandler({ broadcast, broadcastToConnIds, nodeSendToSessio
|
|
|
2108
2108
|
chatRunState.buffers.delete(clientRunId);
|
|
2109
2109
|
chatRunState.deltaSentAt.delete(clientRunId);
|
|
2110
2110
|
if (jobState === "done") {
|
|
2111
|
+
const runCtx = getKoiRunContext(clientRunId);
|
|
2112
|
+
if (/^\[?SILENT\]?$/i.test(text)) return;
|
|
2113
|
+
const speakerKoiId = runCtx?.speakerKoiId;
|
|
2111
2114
|
const payload = {
|
|
2112
2115
|
runId: clientRunId,
|
|
2113
2116
|
sessionKey,
|
|
2114
2117
|
seq,
|
|
2115
2118
|
state: "final",
|
|
2119
|
+
speakerKoiId,
|
|
2116
2120
|
message: text ? {
|
|
2117
2121
|
role: "assistant",
|
|
2118
2122
|
content: [{
|
|
2119
2123
|
type: "text",
|
|
2120
2124
|
text
|
|
2121
2125
|
}],
|
|
2122
|
-
timestamp: Date.now()
|
|
2126
|
+
timestamp: Date.now(),
|
|
2127
|
+
...speakerKoiId ? { koiId: speakerKoiId } : {}
|
|
2123
2128
|
} : void 0,
|
|
2124
2129
|
usage: billing?.usage,
|
|
2125
2130
|
model: billing?.model,
|
|
@@ -6572,10 +6577,15 @@ const koiHandlers = {
|
|
|
6572
6577
|
});
|
|
6573
6578
|
respond(true, accepted, void 0, { runId });
|
|
6574
6579
|
const resolvedThreadId = explicitThreadId ?? deliveryPlan.resolvedThreadId;
|
|
6575
|
-
|
|
6580
|
+
const rosterAll = listKoiIds(cfg);
|
|
6581
|
+
const sessionKoi = requestedSessionKey ? resolveKoiIdFromSessionKey(requestedSessionKey) : void 0;
|
|
6582
|
+
const broadcastRoster = explicitKoiId ? [explicitKoiId] : rosterAll.length > 0 ? rosterAll : sessionKoi ? [sessionKoi] : [];
|
|
6583
|
+
const broadcastTurn = broadcastRoster.length > 1;
|
|
6584
|
+
const SILENT_GATE = `\n\n[multi-koi collab gate]\nYou are one of several specialist koi sharing this conversation. The user can read every koi, so only speak when the latest message is genuinely within your specialty. If your contribution would be marginal, off-topic, or a duplicate of what another koi is better suited to give, reply with EXACTLY the token [SILENT] (uppercase, square brackets, NO other text — no leading whitespace, no trailing punctuation). Otherwise reply normally in your role's voice. The user has @-mentioned ${mentionMatch ? `${mentionMatch.companionName} so unless you have something essential to add, prefer [SILENT]` : "no koi by name; use your judgement"}.`;
|
|
6585
|
+
const buildOpts = (speakerKoiId, childRunId) => ({
|
|
6576
6586
|
message,
|
|
6577
6587
|
images,
|
|
6578
|
-
koiId,
|
|
6588
|
+
koiId: speakerKoiId,
|
|
6579
6589
|
to: resolvedTo,
|
|
6580
6590
|
sessionId: resolvedSessionId,
|
|
6581
6591
|
sessionKey: requestedSessionKey,
|
|
@@ -6600,15 +6610,67 @@ const koiHandlers = {
|
|
|
6600
6610
|
timeout: request.timeout?.toString(),
|
|
6601
6611
|
bestEffortDeliver,
|
|
6602
6612
|
messageChannel: resolvedChannel,
|
|
6603
|
-
runId,
|
|
6613
|
+
runId: childRunId,
|
|
6604
6614
|
lane: request.lane,
|
|
6605
|
-
extraSystemPrompt: request.extraSystemPrompt
|
|
6606
|
-
}
|
|
6615
|
+
extraSystemPrompt: (request.extraSystemPrompt ?? "") + (broadcastTurn ? SILENT_GATE : "")
|
|
6616
|
+
});
|
|
6617
|
+
if (!broadcastTurn) {
|
|
6618
|
+
koiCommand(buildOpts(broadcastRoster[0] ?? sessionKoi ?? "main", runId), defaultRuntime, context.deps).then((result) => {
|
|
6619
|
+
const payload = {
|
|
6620
|
+
runId,
|
|
6621
|
+
status: "ok",
|
|
6622
|
+
summary: "completed",
|
|
6623
|
+
result
|
|
6624
|
+
};
|
|
6625
|
+
context.dedupe.set(`koi:${idem}`, {
|
|
6626
|
+
ts: Date.now(),
|
|
6627
|
+
ok: true,
|
|
6628
|
+
payload
|
|
6629
|
+
});
|
|
6630
|
+
respond(true, payload, void 0, { runId });
|
|
6631
|
+
}).catch((err) => {
|
|
6632
|
+
const error = errorShape(ErrorCodes.UNAVAILABLE, String(err));
|
|
6633
|
+
const payload = {
|
|
6634
|
+
runId,
|
|
6635
|
+
status: "error",
|
|
6636
|
+
summary: String(err)
|
|
6637
|
+
};
|
|
6638
|
+
context.dedupe.set(`koi:${idem}`, {
|
|
6639
|
+
ts: Date.now(),
|
|
6640
|
+
ok: false,
|
|
6641
|
+
payload,
|
|
6642
|
+
error
|
|
6643
|
+
});
|
|
6644
|
+
respond(false, payload, error, {
|
|
6645
|
+
runId,
|
|
6646
|
+
error: formatForLog(err)
|
|
6647
|
+
});
|
|
6648
|
+
});
|
|
6649
|
+
return;
|
|
6650
|
+
}
|
|
6651
|
+
context.logGateway.info(`koi: broadcasting to ${broadcastRoster.length} kois (${broadcastRoster.join(", ")})`);
|
|
6652
|
+
const startedAt = Date.now();
|
|
6653
|
+
const fanoutPromises = broadcastRoster.map((speakerKoiId) => {
|
|
6654
|
+
const childRunId = randomUUID();
|
|
6655
|
+
return koiCommand(buildOpts(speakerKoiId, childRunId), defaultRuntime, context.deps).then(() => ({
|
|
6656
|
+
ok: true,
|
|
6657
|
+
speakerKoiId,
|
|
6658
|
+
childRunId
|
|
6659
|
+
})).catch((err) => {
|
|
6660
|
+
context.logGateway.warn(`koi: broadcast leg ${speakerKoiId} failed — ${formatForLog(err)}`);
|
|
6661
|
+
return {
|
|
6662
|
+
ok: false,
|
|
6663
|
+
speakerKoiId,
|
|
6664
|
+
childRunId,
|
|
6665
|
+
error: String(err)
|
|
6666
|
+
};
|
|
6667
|
+
});
|
|
6668
|
+
});
|
|
6669
|
+
Promise.allSettled(fanoutPromises).then(() => {
|
|
6607
6670
|
const payload = {
|
|
6608
6671
|
runId,
|
|
6609
6672
|
status: "ok",
|
|
6610
|
-
summary:
|
|
6611
|
-
result
|
|
6673
|
+
summary: `broadcast completed in ${Date.now() - startedAt}ms`
|
|
6612
6674
|
};
|
|
6613
6675
|
context.dedupe.set(`koi:${idem}`, {
|
|
6614
6676
|
ts: Date.now(),
|
|
@@ -6616,23 +6678,6 @@ const koiHandlers = {
|
|
|
6616
6678
|
payload
|
|
6617
6679
|
});
|
|
6618
6680
|
respond(true, payload, void 0, { runId });
|
|
6619
|
-
}).catch((err) => {
|
|
6620
|
-
const error = errorShape(ErrorCodes.UNAVAILABLE, String(err));
|
|
6621
|
-
const payload = {
|
|
6622
|
-
runId,
|
|
6623
|
-
status: "error",
|
|
6624
|
-
summary: String(err)
|
|
6625
|
-
};
|
|
6626
|
-
context.dedupe.set(`koi:${idem}`, {
|
|
6627
|
-
ts: Date.now(),
|
|
6628
|
-
ok: false,
|
|
6629
|
-
payload,
|
|
6630
|
-
error
|
|
6631
|
-
});
|
|
6632
|
-
respond(false, payload, error, {
|
|
6633
|
-
runId,
|
|
6634
|
-
error: formatForLog(err)
|
|
6635
|
-
});
|
|
6636
6681
|
});
|
|
6637
6682
|
},
|
|
6638
6683
|
"koi.identity.get": ({ params, respond }) => {
|
|
@@ -10955,7 +11000,7 @@ const nodeHandlers = {
|
|
|
10955
11000
|
const p = params;
|
|
10956
11001
|
const payloadJSON = typeof p.payloadJSON === "string" ? p.payloadJSON : p.payload !== void 0 ? JSON.stringify(p.payload) : null;
|
|
10957
11002
|
await respondUnavailableOnThrow(respond, async () => {
|
|
10958
|
-
const { handleNodeEvent } = await import("./server-node-events-
|
|
11003
|
+
const { handleNodeEvent } = await import("./server-node-events-DI83hSuG.js");
|
|
10959
11004
|
const nodeId = client?.connect?.device?.id ?? client?.connect?.client?.id ?? "node";
|
|
10960
11005
|
await handleNodeEvent({
|
|
10961
11006
|
deps: context.deps,
|
|
@@ -19733,7 +19778,7 @@ async function startGatewayServer(port = 18789, opts = {}) {
|
|
|
19733
19778
|
const heartbeatUnsub = onHeartbeatEvent((evt) => {
|
|
19734
19779
|
broadcast("heartbeat", evt, { dropIfSlow: true });
|
|
19735
19780
|
});
|
|
19736
|
-
const sessionBridgeUnsub = (await import("./koi-event-bridge-
|
|
19781
|
+
const sessionBridgeUnsub = (await import("./koi-event-bridge-nfwMM723.js")).startKoiEventBridge();
|
|
19737
19782
|
let utteranceTriggerUnsub = null;
|
|
19738
19783
|
let heartbeatRunner = startHeartbeatRunner({ cfg: cfgAtStart });
|
|
19739
19784
|
cron.start().catch((err) => logCron.error(`failed to start: ${String(err)}`));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ht as loadSKYKOIPlugins } from "./reply-
|
|
1
|
+
import { ht as loadSKYKOIPlugins } from "./reply-dpYcwbNy.js";
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-RXphV8Xh.js";
|
|
3
3
|
import { l as normalizeKoiId } from "./session-key-DvA8Pdt6.js";
|
|
4
4
|
import { b as sleep } from "./utils-rBzA-VDv.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bn as resolveUserTimezone, Cr as peekSystemEvents, F as resolveHeartbeatDeliveryTarget, I as resolveHeartbeatSenderContext, In as resolveEffectiveMessagesConfig, ar as getQueueSize, dr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, fn as resolveHeartbeatVisibility, fr as DEFAULT_HEARTBEAT_EVERY, ft as requestHeartbeatNow, gn as resolveIndicatorType, hr as stripHeartbeatToken, ir as enqueueCommandInLane, mr as resolveHeartbeatPrompt$1, pn as emitHeartbeatEvent, pr as isHeartbeatContentEffectivelyEmpty, pt as setHeartbeatWakeHandler, sr as CommandLane, t as getReplyFromConfig, u as isEmbeddedPiRunActive } from "./reply-
|
|
1
|
+
import { Bn as resolveUserTimezone, Cr as peekSystemEvents, F as resolveHeartbeatDeliveryTarget, I as resolveHeartbeatSenderContext, In as resolveEffectiveMessagesConfig, ar as getQueueSize, dr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, fn as resolveHeartbeatVisibility, fr as DEFAULT_HEARTBEAT_EVERY, ft as requestHeartbeatNow, gn as resolveIndicatorType, hr as stripHeartbeatToken, ir as enqueueCommandInLane, mr as resolveHeartbeatPrompt$1, pn as emitHeartbeatEvent, pr as isHeartbeatContentEffectivelyEmpty, pt as setHeartbeatWakeHandler, sr as CommandLane, t as getReplyFromConfig, u as isEmbeddedPiRunActive } from "./reply-dpYcwbNy.js";
|
|
2
2
|
import { C as colorize, T as theme, c as defaultRuntime, m as info, t as createSubsystemLogger, w as isRich } from "./subsystem-RXphV8Xh.js";
|
|
3
3
|
import { d as resolveKoiIdFromSessionKey, h as toKoiStoreSessionKey, l as normalizeKoiId } from "./session-key-DvA8Pdt6.js";
|
|
4
4
|
import { t as runCommandWithTimeout } from "./exec-BE7MIgZB.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./pi-embedded-helpers-1Nerrhel.js";
|
|
2
|
-
import "./reply-
|
|
2
|
+
import "./reply-dpYcwbNy.js";
|
|
3
3
|
import { T as theme, c as defaultRuntime } from "./subsystem-RXphV8Xh.js";
|
|
4
4
|
import "./paths-VdmjGGyc.js";
|
|
5
5
|
import { h as resolveUserPath, t as CONFIG_DIR, y as shortenHomePath } from "./utils-rBzA-VDv.js";
|
|
@@ -44,7 +44,7 @@ import "./channel-summary-DjJ3lkCW.js";
|
|
|
44
44
|
import "./device-identity-zXWmZUVz.js";
|
|
45
45
|
import "./net-Cmh623y0.js";
|
|
46
46
|
import "./call-ByTcqcvV.js";
|
|
47
|
-
import "./koi-events-
|
|
47
|
+
import "./koi-events-Cx85mo2K.js";
|
|
48
48
|
import "./pairing-store-BpSDb0uv.js";
|
|
49
49
|
import { t as formatDocsLink } from "./links-D5FJjx5x.js";
|
|
50
50
|
import "./progress-CIrle3FT.js";
|
|
@@ -57,10 +57,10 @@ import "./session-cost-usage-CbribqqH.js";
|
|
|
57
57
|
import "./control-service-DnzgVIyk.js";
|
|
58
58
|
import "./channel-selection-B5tUOB8t.js";
|
|
59
59
|
import "./event-log-DtrKraIx.js";
|
|
60
|
-
import { a as resolvePackedRootDir, i as resolveArchiveKind, n as fileExists, r as readJsonFile, t as extractArchive } from "./archive-
|
|
60
|
+
import { a as resolvePackedRootDir, i as resolveArchiveKind, n as fileExists, r as readJsonFile, t as extractArchive } from "./archive-BAGcK16l.js";
|
|
61
61
|
import { t as renderTable } from "./table-CgHdpI6b.js";
|
|
62
62
|
import { a as parseFrontmatter, n as loadWorkspaceHookEntries, t as buildWorkspaceHookStatus } from "./hooks-status-Q-UXhKBw.js";
|
|
63
|
-
import { t as buildPluginStatusReport } from "./status-
|
|
63
|
+
import { t as buildPluginStatusReport } from "./status-BbhFVMa_.js";
|
|
64
64
|
import fs from "node:fs";
|
|
65
65
|
import path from "node:path";
|
|
66
66
|
import os from "node:os";
|