skykoi 2026.3.248 → 2026.3.251
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-D-evS67l.js → archive-BalvtV7n.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-DFNNFGVc.js → channel-options-DHLjjz4C.js} +1 -1
- package/dist/{channels-cli-DASvKZg7.js → channels-cli-BMmrMnyK.js} +6 -6
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-DDFTSdnp.js → cli-DoEMsZyv.js} +1 -1
- package/dist/{completion-cli-CaLwa_A3.js → completion-cli-CTVcP0FE.js} +1 -1
- package/dist/{config-guard-BadiyCg3.js → config-guard-4_-Lcm-n.js} +13 -13
- package/dist/{configure-DGPqFxFe.js → configure-U_8jrwyE.js} +4 -4
- package/dist/{daemon-cli-CZ_zkQrg.js → daemon-cli-k8OPpDVn.js} +2 -2
- package/dist/{deps-BgAo1jXJ.js → deps-CBuOPzmZ.js} +1 -1
- package/dist/{doctor-0dxNFcNA.js → doctor-j8VArGN_.js} +3 -3
- package/dist/entry.js +1 -1
- package/dist/extension-api.js +1 -1
- package/dist/{gateway-cli-DdFCJ84I.js → gateway-cli-RH_JnyNO.js} +18 -15
- package/dist/{github-copilot-auth-BPqRf--a.js → github-copilot-auth-DCIwmcwH.js} +1 -1
- package/dist/{health-format-b7EbRa3-.js → health-format-CdPqFC3y.js} +2 -2
- package/dist/{hooks-cli-CvaprO8r.js → hooks-cli-BLi_5D6B.js} +3 -3
- package/dist/index.js +19 -19
- package/dist/{installs-DGCLZfYD.js → installs-BRL6BHT1.js} +1 -1
- package/dist/{koi-CV9Gmsiz.js → koi-CFdJ5UZN.js} +2 -2
- package/dist/{models-cli-BJ9UjifQ.js → models-cli-B2-wKBUS.js} +2 -2
- package/dist/{onboard-channels-Ce0M3LTd.js → onboard-channels-ClC2kb3J.js} +2 -2
- package/dist/{onboard-skills-CzjZ1qT7.js → onboard-skills-BxV_pjk1.js} +3 -3
- package/dist/{onboarding-DNgxsQkC.js → onboarding-DN1UjD0P.js} +6 -6
- package/dist/{plugin-registry-Dk-m-vpJ.js → plugin-registry-Cr6NKZlG.js} +1 -1
- package/dist/plugin-sdk/index.js +5 -5
- package/dist/plugin-sdk/koi/pi-embedded-runner/system-prompt.d.ts +2 -0
- package/dist/plugin-sdk/koi/system-prompt.d.ts +8 -0
- package/dist/plugin-sdk/{pi-model-discovery-CeYPOTBg.js → pi-model-discovery-B1kAe0kx.js} +3 -3
- package/dist/plugin-sdk/world-model/build.d.ts +29 -0
- package/dist/plugin-sdk/world-model/renderer.d.ts +17 -0
- package/dist/plugin-sdk/world-model/runtime-context.d.ts +31 -0
- package/dist/plugin-sdk/world-model/types.d.ts +139 -0
- package/dist/{plugins-cli-CXtCP8Jm.js → plugins-cli-ClT7Jkqc.js} +5 -5
- package/dist/{program-DhTZV5nS.js → program-tnOQcaV7.js} +4 -4
- package/dist/{register.subclis-TrrMthdS.js → register.subclis-OWZZbzEg.js} +10 -10
- package/dist/{reply-BGZiRtfp.js → reply-rGYxKc7c.js} +304 -6
- package/dist/{run-main-CGXWGueU.js → run-main-Cak_D6q6.js} +20 -20
- package/dist/{server-node-events-DK7jMYgX.js → server-node-events-BU6f46kZ.js} +3 -3
- package/dist/{status-BDkIoyLe.js → status-B_UNxmC7.js} +1 -1
- package/dist/{update-cli-Dla8ZSym.js → update-cli-DKhL29ew.js} +11 -11
- package/dist/{update-runner-B3jk5bDY.js → update-runner-DJgrzqov.js} +3 -3
- package/dist/{update-CnbfInUS.js → update-v69tULVi.js} +1 -1
- 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 {
|
|
2
|
+
import { Ct as require_inherits } from "./reply-rGYxKc7c.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
|
+
5bfaaaa4f7a0cd7599fd2ec705509b7b863847c769a05772f9297718eb38079e
|
|
@@ -2,7 +2,7 @@ import { M as CHAT_CHANNEL_ORDER } from "./subsystem-RXphV8Xh.js";
|
|
|
2
2
|
import { t as isTruthyEnvValue } from "./env-BA3nu3t6.js";
|
|
3
3
|
import { n as listChannelPlugins } from "./plugins-D6P_BD0C.js";
|
|
4
4
|
import { i as listChannelPluginCatalogEntries } from "./plugin-auto-enable-PL5unXxJ.js";
|
|
5
|
-
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-
|
|
5
|
+
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-Cr6NKZlG.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-BFOvHIvC.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Cn as fetchChannelPermissionsDiscord, In as createSlackWebClient, Sn as parseDiscordTarget, vt as loadProviderUsageSummary, yt as formatUsageReportLines } from "./reply-rGYxKc7c.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";
|
|
@@ -63,14 +63,14 @@ import "./event-log-CRTHQkp5.js";
|
|
|
63
63
|
import { t as resolveChannelDefaultAccountId } from "./helpers-BNuSQH6i.js";
|
|
64
64
|
import "./note-CrS1Szhk.js";
|
|
65
65
|
import { t as createClackPrompter } from "./clack-prompter-D65FuQH4.js";
|
|
66
|
-
import { i as reloadOnboardingPluginRegistry, n as setupChannels, r as ensureOnboardingPluginInstalled } from "./onboard-channels-
|
|
66
|
+
import { i as reloadOnboardingPluginRegistry, n as setupChannels, r as ensureOnboardingPluginInstalled } from "./onboard-channels-ClC2kb3J.js";
|
|
67
67
|
import { i as listChannelPluginCatalogEntries } from "./plugin-auto-enable-PL5unXxJ.js";
|
|
68
|
-
import "./archive-
|
|
68
|
+
import "./archive-BalvtV7n.js";
|
|
69
69
|
import "./skill-scanner-C1Y-vAfe.js";
|
|
70
|
-
import "./installs-
|
|
70
|
+
import "./installs-BRL6BHT1.js";
|
|
71
71
|
import { t as collectChannelStatusIssues } from "./channels-status-issues-C88xoNq1.js";
|
|
72
|
-
import { n as hasExplicitOptions } from "./plugin-registry-
|
|
73
|
-
import { t as formatCliChannelOptions } from "./channel-options-
|
|
72
|
+
import { n as hasExplicitOptions } from "./plugin-registry-Cr6NKZlG.js";
|
|
73
|
+
import { t as formatCliChannelOptions } from "./channel-options-DHLjjz4C.js";
|
|
74
74
|
import { t as buildChannelAccountSnapshot } from "./status-jB5_YcY1.js";
|
|
75
75
|
import { t as parseLogLine } from "./parse-log-line-D-aKdxYt.js";
|
|
76
76
|
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-k8OPpDVn.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./pi-embedded-helpers-BFOvHIvC.js";
|
|
2
|
-
import {
|
|
2
|
+
import { _t as loadSKYKOIPlugins } from "./reply-rGYxKc7c.js";
|
|
3
3
|
import { t as createSubsystemLogger } from "./subsystem-RXphV8Xh.js";
|
|
4
4
|
import "./paths-VdmjGGyc.js";
|
|
5
5
|
import "./utils-rBzA-VDv.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-OWZZbzEg.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 {
|
|
1
|
+
import { At as formatControlUiSshHint, Et as applyWizardMetadata, Ft as openUrl, Ht as waitForGatewayReachable, Mt as handleReset, Nt as moveToTrash, Ot as detectBrowserOpenSupport, P as runMessageAction, Rt as randomToken, Tt as DEFAULT_WORKSPACE, U as CHANNEL_MESSAGE_ACTION_NAMES, V as formatTargetDisplay, an as registerMemoryCli, ft as CHANNEL_TARGETS_DESCRIPTION, kt as ensureWorkspaceAndSessions, on as runMemoryStatus, pt as CHANNEL_TARGET_DESCRIPTION, vr as lookupContextTokens, zt as resolveControlUiLinks } from "./reply-rGYxKc7c.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-BraPfmsh.js";
|
|
|
19
19
|
import { n as runCommandWithRuntime } from "./cli-utils-c9SIZezA.js";
|
|
20
20
|
import { n as withProgress } from "./progress-n072C1nN.js";
|
|
21
21
|
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-BioBnB_X.js";
|
|
22
|
-
import { t as createDefaultDeps } from "./deps-
|
|
22
|
+
import { t as createDefaultDeps } from "./deps-CBuOPzmZ.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-s4bEPaLr.js";
|
|
24
24
|
import { t as resolveChannelDefaultAccountId } from "./helpers-BNuSQH6i.js";
|
|
25
25
|
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-D_xKFcV1.js";
|
|
26
26
|
import { t as WizardCancelledError } from "./prompts-CL2SstQz.js";
|
|
27
27
|
import { t as createClackPrompter } from "./clack-prompter-D65FuQH4.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-DN1UjD0P.js";
|
|
29
|
+
import { d as applyAuthChoice, f as applyOpenAIConfig, h as promptAuthChoiceGrouped, m as applyGoogleGeminiModelDefault, p as upsertSharedEnvVar, u as warnIfModelConfigLooksOff } from "./onboard-skills-BxV_pjk1.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-DCIwmcwH.js";
|
|
31
|
+
import { n as setupChannels } from "./onboard-channels-ClC2kb3J.js";
|
|
32
|
+
import { l as healthCommand } from "./health-format-CdPqFC3y.js";
|
|
33
33
|
import { t as renderTable } from "./table-6UNPpVEx.js";
|
|
34
34
|
import { t as resolveGatewayService } from "./service-bz-Q1pz8.js";
|
|
35
35
|
import { r as isSystemdUserServiceAvailable } from "./systemd-WeDhEsPI.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-OWZZbzEg.js";
|
|
37
37
|
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-B5KSW1jh.js";
|
|
38
38
|
import { t as formatHelpExamples } from "./help-format-BN200Sfc.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-CFdJ5UZN.js";
|
|
40
|
+
import { n as hasExplicitOptions, t as ensurePluginRegistryLoaded } from "./plugin-registry-Cr6NKZlG.js";
|
|
41
41
|
import { n as parsePositiveIntOrUndefined, t as collectOption } from "./helpers-DUclfUl-.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-U_8jrwyE.js";
|
|
43
43
|
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-BjfFUdaX.js";
|
|
44
|
-
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-
|
|
44
|
+
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-j8VArGN_.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-U_8jrwyE.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 {
|
|
2
|
+
import { Et as applyWizardMetadata, Ht as waitForGatewayReachable, It as printWizardHeader, Lt as probeGatewayReachable, Pt as normalizeGatewayTokenInput, Rt as randomToken, Tt as DEFAULT_WORKSPACE, Vt as summarizeExistingConfig, jt as guardCancel, kt as ensureWorkspaceAndSessions, zt as resolveControlUiLinks } from "./reply-rGYxKc7c.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-D_xKFcV1.js";
|
|
|
15
15
|
import { t as note$1 } from "./note-CrS1Szhk.js";
|
|
16
16
|
import { t as WizardCancelledError } from "./prompts-CL2SstQz.js";
|
|
17
17
|
import { t as createClackPrompter } from "./clack-prompter-D65FuQH4.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-BxV_pjk1.js";
|
|
19
|
+
import { n as setupChannels, t as noteChannelStatus } from "./onboard-channels-ClC2kb3J.js";
|
|
20
|
+
import { l as healthCommand, n as ensureControlUiAssetsBuilt, t as formatHealthCheckFailure } from "./health-format-CdPqFC3y.js";
|
|
21
21
|
import { t as resolveGatewayService } from "./service-bz-Q1pz8.js";
|
|
22
22
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-BjfFUdaX.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 {
|
|
2
|
+
import { zt as resolveControlUiLinks } from "./reply-rGYxKc7c.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-B0XDsG3E.js";
|
|
|
14
14
|
import { t as formatDocsLink } from "./links-BraPfmsh.js";
|
|
15
15
|
import { n as withProgress } from "./progress-n072C1nN.js";
|
|
16
16
|
import { d as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel } from "./constants-BgaL_XFJ.js";
|
|
17
|
-
import { t as createDefaultDeps } from "./deps-
|
|
17
|
+
import { t as createDefaultDeps } from "./deps-CBuOPzmZ.js";
|
|
18
18
|
import { i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-s4bEPaLr.js";
|
|
19
19
|
import { o as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-bz-Q1pz8.js";
|
|
20
20
|
import { r as isSystemdUserServiceAvailable } from "./systemd-WeDhEsPI.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fn as sendMessageSlack, Nn as sendMessageWhatsApp, bn as sendMessageDiscord, wt as sendMessageIMessage, yn as sendMessageTelegram } from "./reply-rGYxKc7c.js";
|
|
2
2
|
import { b as sendMessageSignal } from "./deliver-CxXihUsx.js";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/deps.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Er as loadModelCatalog, Et as applyWizardMetadata, It as printWizardHeader, Rt as randomToken, _t as loadSKYKOIPlugins, jt as guardCancel } from "./reply-rGYxKc7c.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";
|
|
@@ -26,8 +26,8 @@ import { t as resolveChannelDefaultAccountId } from "./helpers-BNuSQH6i.js";
|
|
|
26
26
|
import { n as logConfigUpdated } from "./logging-D_xKFcV1.js";
|
|
27
27
|
import { t as note$1 } from "./note-CrS1Szhk.js";
|
|
28
28
|
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-PL5unXxJ.js";
|
|
29
|
-
import { i as resolveControlUiDistIndexPathForRoot, l as healthCommand, r as resolveControlUiDistIndexHealth, t as formatHealthCheckFailure } from "./health-format-
|
|
30
|
-
import { c as doctorShellCompletion, t as runGatewayUpdate } from "./update-runner-
|
|
29
|
+
import { i as resolveControlUiDistIndexPathForRoot, l as healthCommand, r as resolveControlUiDistIndexHealth, t as formatHealthCheckFailure } from "./health-format-CdPqFC3y.js";
|
|
30
|
+
import { c as doctorShellCompletion, t as runGatewayUpdate } from "./update-runner-DJgrzqov.js";
|
|
31
31
|
import { i as resolveGatewayAuth } from "./auth-DcUFkxj-.js";
|
|
32
32
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-Bk-6M9tR.js";
|
|
33
33
|
import { a as repairLaunchAgentBootstrap, i as launchAgentPlistExists, n as isLaunchAgentListed, o as resolveGatewayLogPaths, r as isLaunchAgentLoaded, t as resolveGatewayService } from "./service-bz-Q1pz8.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-Cak_D6q6.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-BFOvHIvC.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Vr as resolveKoiTimeoutMs, c as runEmbeddedPiKoi, zn as resolveKoiIdentity } from "./reply-rGYxKc7c.js";
|
|
3
3
|
import "./subsystem-RXphV8Xh.js";
|
|
4
4
|
import "./paths-VdmjGGyc.js";
|
|
5
5
|
import "./utils-rBzA-VDv.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-BFOvHIvC.js";
|
|
3
|
-
import { $n as
|
|
3
|
+
import { $ as formatRestartSentinelMessage, $n as resolveTtsAutoMode, $t as getSkillsSnapshotVersion, A as readSessionMessages, An as findSubkoiRunByRunId, Ar as DEFAULT_INPUT_IMAGE_MAX_BYTES, B as resolveSessionDeliveryTarget, Bn as formatUserTime, C as listSessionsFromStore, Cr as enqueueSystemEvent, D as resolveSessionModelRef, Dn as isAbortTrigger, Dr as DEFAULT_INPUT_FILE_MAX_BYTES, E as resolveGatewaySessionStoreTarget, En as formatZonedTimestamp, Er as loadModelCatalog, F as ensureOutboundSessionEntry, Fr as DEFAULT_INPUT_PDF_MIN_TEXT_CHARS, Gn as registerInternalHook, Gt as normalizeControlUiBasePath, H as resetDirectoryCache, Hn as resolveUserTimezone, I as resolveOutboundSessionRoute, Ir as DEFAULT_INPUT_TIMEOUT_MS, J as isGatewaySigusr1RestartExternallyAllowed, Jn as OPENAI_TTS_VOICES, Jt as primeRemoteSkillsCache, K as authorizeGatewaySigusr1Restart, Kn as triggerInternalHook, Kt as resolveAssistantAvatarUrl, Lr as extractFileContentFromSource, M as resolveSessionTranscriptCandidates, Mr as DEFAULT_INPUT_MAX_REDIRECTS, Mt as handleReset, N as stripEnvelopeFromMessages, Nr as DEFAULT_INPUT_PDF_MAX_PAGES, O as archiveFileOnDisk, On as stopSubkoisForRequester, Or as DEFAULT_INPUT_FILE_MAX_CHARS, Pn as normalizePollInput, Pr as DEFAULT_INPUT_PDF_MAX_PIXELS, Q as formatDoctorNonInteractiveHint, Qn as resolveTtsApiKey, Qt as setSkillsRemoteRegistry, Rr as extractImageContentFromSource, S as listKoisForGateway, Sr as parseVerboseOverride, St as handleSlackHttpRequest, T as loadSessionEntry, Tn as createReplyDispatcher, Un as clearInternalHooks, Ut as CONTROL_UI_AVATAR_PREFIX, Vn as resolveUserTimeFormat, Vr as resolveKoiTimeoutMs, W as runWithModelFallback, Wn as createInternalHookEvent, Wt as buildControlUiAvatarUrl, X as setGatewaySigusr1RestartPolicy, Xn as isTtsEnabled, Xt as refreshRemoteBinsForConnectedNodes, Y as scheduleGatewaySigusr1Restart, Yn as getTtsProvider, Yt as recordRemoteNodeInfo, Z as consumeRestartSentinel, Zn as isTtsProviderConfigured, Zt as refreshRemoteNodeBins, _ as getCanvasResource, _n as onHeartbeatEvent, _r as stripHeartbeatToken, _t as loadSKYKOIPlugins, a as normalizeSendPolicy, ar as textToSpeech, at as normalizeCronJobPatch, b as replaceCanvasResource, br as applyModelOverrideToSessionEntry, c as runEmbeddedPiKoi, cn as createReplyPrefixOptions, cr as setCommandLaneConcurrency, ct as normalizeOptionalText, d as waitForEmbeddedPiRunEnd, dn as registerUnhandledRejectionHandler, dr as stopDiagnosticHeartbeat, dt as migrateLegacyCronPayload, en as registerSkillsChangeListener, er as resolveTtsConfig, fr as isDiagnosticsEnabled, g as canvasUri, gn as getLastHeartbeatEvent, gt as getPluginToolMeta, h as createSKYKOITools, i as runCliKoi, in as isExternalHookSession, ir as setTtsProvider, it as normalizeCronJobCreate, j as readSessionPreviewItemsFromTranscript, jn as initSubkoiRegistry, jr as DEFAULT_INPUT_IMAGE_MIMES, k as capArrayByJsonBytes, kn as findSubkoiRunByChildSessionKey, kr as DEFAULT_INPUT_FILE_MIMES, l as abortEmbeddedPiRun, ln as normalizeGroupActivation, lr as CommandLane, lt as normalizePayloadToSystemText, m as initRuntimeContext, mn as resolveHeartbeatVisibility, mt as requestHeartbeatNow, n as getCliSessionId, nn as detectSuspiciousPatterns, nr as resolveTtsProviderOrder, o as resolveSendPolicy, ot as inferLegacyName, pn as buildHistoryContextFromEntries, pr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, q as consumeGatewaySigusr1RestartAuthorization, qn as OPENAI_TTS_MODELS, qt as getRemoteSkillEligibility, r as setCliSessionId, rn as getHookType, rr as setTtsEnabled, rt as writeRestartSentinel, s as clearSessionQueues, st as normalizeOptionalKoiId, tn as buildSafeExternalPrompt, tr as resolveTtsPrefsPath, tt as summarizeRestartSentinel, ur as startDiagnosticHeartbeat, ut as normalizeRequiredName, v as listCanvasUris, vr as lookupContextTokens, vt as loadProviderUsageSummary, w as loadCombinedSessionStoreForGateway, wn as dispatchInboundMessage, wr as isSystemEventContextChanged, x as resolveAnnounceTargetFromKey, xn as getChannelActivity, xr as applyVerboseOverride, y as onCanvasChange, z as resolveOutboundTarget, zn as resolveKoiIdentity, zr as normalizeMimeList } from "./reply-rGYxKc7c.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";
|
|
@@ -67,7 +67,7 @@ import { n as createBrowserControlContext, r as startBrowserControlServiceFromCo
|
|
|
67
67
|
import { t as parseAbsoluteTimeMs } from "./parse-TGKW2P5S.js";
|
|
68
68
|
import { n as resolveMessageChannelSelection } from "./channel-selection-jyGnnq0E.js";
|
|
69
69
|
import { n as hydrateSession, r as readEventsSince, t as appendEvent } from "./event-log-CRTHQkp5.js";
|
|
70
|
-
import { n as createOutboundSendDeps, t as createDefaultDeps } from "./deps-
|
|
70
|
+
import { n as createOutboundSendDeps, t as createDefaultDeps } from "./deps-CBuOPzmZ.js";
|
|
71
71
|
import { i as enableTailscaleServe, n as disableTailscaleServe, o as getTailnetHostname, r as enableTailscaleFunnel, t as disableTailscaleFunnel } from "./tailscale-BVFil2zN.js";
|
|
72
72
|
import { t as ensureSKYKOICliOnPath } from "./path-env-D7MDOz2j.js";
|
|
73
73
|
import "./daemon-runtime-s4bEPaLr.js";
|
|
@@ -76,16 +76,16 @@ import { t as resolveChannelDefaultAccountId } from "./helpers-BNuSQH6i.js";
|
|
|
76
76
|
import "./logging-D_xKFcV1.js";
|
|
77
77
|
import "./note-CrS1Szhk.js";
|
|
78
78
|
import { t as WizardCancelledError } from "./prompts-CL2SstQz.js";
|
|
79
|
-
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-
|
|
80
|
-
import { n as installSkill } from "./onboard-skills-
|
|
81
|
-
import "./github-copilot-auth-
|
|
82
|
-
import "./onboard-channels-
|
|
79
|
+
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-DN1UjD0P.js";
|
|
80
|
+
import { n as installSkill } from "./onboard-skills-BxV_pjk1.js";
|
|
81
|
+
import "./github-copilot-auth-DCIwmcwH.js";
|
|
82
|
+
import "./onboard-channels-ClC2kb3J.js";
|
|
83
83
|
import { r as buildChannelUiCatalog, t as applyPluginAutoEnable } from "./plugin-auto-enable-PL5unXxJ.js";
|
|
84
|
-
import "./archive-
|
|
84
|
+
import "./archive-BalvtV7n.js";
|
|
85
85
|
import "./skill-scanner-C1Y-vAfe.js";
|
|
86
|
-
import "./installs-
|
|
87
|
-
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-
|
|
88
|
-
import { S as normalizeUpdateChannel, _ as resolveNpmChannelTag, h as compareSemverStrings, m as checkUpdateStatus, t as runGatewayUpdate, y as DEFAULT_PACKAGE_CHANNEL } from "./update-runner-
|
|
86
|
+
import "./installs-BRL6BHT1.js";
|
|
87
|
+
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-CdPqFC3y.js";
|
|
88
|
+
import { S as normalizeUpdateChannel, _ as resolveNpmChannelTag, h as compareSemverStrings, m as checkUpdateStatus, t as runGatewayUpdate, y as DEFAULT_PACKAGE_CHANNEL } from "./update-runner-DJgrzqov.js";
|
|
89
89
|
import { i as resolveGatewayAuth, n as authorizeGatewayConnect, r as isLocalDirectRequest, t as assertGatewayAuthConfigured } from "./auth-DcUFkxj-.js";
|
|
90
90
|
import { i as probeGateway } from "./audit-B_Ye62_8.js";
|
|
91
91
|
import "./table-6UNPpVEx.js";
|
|
@@ -95,16 +95,16 @@ import { p as resolveGatewayStateDir } from "./systemd-WeDhEsPI.js";
|
|
|
95
95
|
import "./service-audit-D5_xcF75.js";
|
|
96
96
|
import "./node-service-DoNL0Ruu.js";
|
|
97
97
|
import "./channels-status-issues-C88xoNq1.js";
|
|
98
|
-
import "./register.subclis-
|
|
99
|
-
import { a as createOutboundSendDeps$1, i as resolveKoiOutboundTarget, r as resolveKoiDeliveryPlan, t as koiCommand } from "./koi-
|
|
98
|
+
import "./register.subclis-OWZZbzEg.js";
|
|
99
|
+
import { a as createOutboundSendDeps$1, i as resolveKoiOutboundTarget, r as resolveKoiDeliveryPlan, t as koiCommand } from "./koi-CFdJ5UZN.js";
|
|
100
100
|
import { n as resolveWideAreaDiscoveryDomain, r as writeWideAreaGatewayZone } from "./widearea-dns-D8atdlDH.js";
|
|
101
101
|
import { n as discoverGatewayBeacons } from "./bonjour-discovery-DTM_9zJu.js";
|
|
102
|
-
import "./completion-cli-
|
|
102
|
+
import "./completion-cli-CTVcP0FE.js";
|
|
103
103
|
import { i as shouldIncludeHook, n as loadWorkspaceHookEntries, r as resolveHookConfig } from "./hooks-status-BYUTsP4m.js";
|
|
104
104
|
import "./tui-DhoP2zn2.js";
|
|
105
105
|
import { t as buildChannelAccountSnapshot } from "./status-jB5_YcY1.js";
|
|
106
106
|
import "./shared-lkFihiKy.js";
|
|
107
|
-
import { a as runDaemonStop, i as runDaemonStart, n as runDaemonStatus, o as runDaemonUninstall, r as runDaemonRestart, s as runDaemonInstall } from "./daemon-cli-
|
|
107
|
+
import { a as runDaemonStop, i as runDaemonStart, n as runDaemonStatus, o as runDaemonUninstall, r as runDaemonRestart, s as runDaemonInstall } from "./daemon-cli-k8OPpDVn.js";
|
|
108
108
|
import { a as toOptionString, i as parsePort$1, n as extractGatewayMiskeys, r as maybeExplainGatewayServiceStop, t as describeUnknownError } from "./shared-CaREiIvb.js";
|
|
109
109
|
import { i as setGatewayWsLogStyle, n as logWs, r as summarizeKoiEventForWsLog, t as formatForLog } from "./ws-log-DeKwTnzt.js";
|
|
110
110
|
import { T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, i as ensureTailscaleEndpoint, v as buildGogWatchStartArgs } from "./gmail-setup-utils-7tO-yO-H.js";
|
|
@@ -11129,7 +11129,7 @@ const nodeHandlers = {
|
|
|
11129
11129
|
const p = params;
|
|
11130
11130
|
const payloadJSON = typeof p.payloadJSON === "string" ? p.payloadJSON : p.payload !== void 0 ? JSON.stringify(p.payload) : null;
|
|
11131
11131
|
await respondUnavailableOnThrow(respond, async () => {
|
|
11132
|
-
const { handleNodeEvent } = await import("./server-node-events-
|
|
11132
|
+
const { handleNodeEvent } = await import("./server-node-events-BU6f46kZ.js");
|
|
11133
11133
|
const nodeId = client?.connect?.device?.id ?? client?.connect?.client?.id ?? "node";
|
|
11134
11134
|
await handleNodeEvent({
|
|
11135
11135
|
deps: context.deps,
|
|
@@ -19735,6 +19735,9 @@ async function startGatewayServer(port = 18789, opts = {}) {
|
|
|
19735
19735
|
if (diagnosticsEnabled) startDiagnosticHeartbeat();
|
|
19736
19736
|
setGatewaySigusr1RestartPolicy({ allowExternal: cfgAtStart.commands?.restart === true });
|
|
19737
19737
|
initSubkoiRegistry();
|
|
19738
|
+
initRuntimeContext().catch((err) => {
|
|
19739
|
+
log.warn?.("world-model: initRuntimeContext failed", { err: String(err) });
|
|
19740
|
+
});
|
|
19738
19741
|
const defaultKoiId = resolveDefaultKoiId(cfgAtStart);
|
|
19739
19742
|
const defaultWorkspaceDir = resolveKoiWorkspaceDir(cfgAtStart, defaultKoiId);
|
|
19740
19743
|
const { pluginRegistry, gatewayMethods: baseGatewayMethods } = loadGatewayPlugins({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _t as loadSKYKOIPlugins } from "./reply-rGYxKc7c.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 {
|
|
1
|
+
import { Hn as resolveUserTimezone, L as resolveHeartbeatDeliveryTarget, R as resolveHeartbeatSenderContext, Rn as resolveEffectiveMessagesConfig, Tr as peekSystemEvents, _r as stripHeartbeatToken, gr as resolveHeartbeatPrompt$1, hn as emitHeartbeatEvent, hr as isHeartbeatContentEffectivelyEmpty, ht as setHeartbeatWakeHandler, lr as CommandLane, mn as resolveHeartbeatVisibility, mr as DEFAULT_HEARTBEAT_EVERY, mt as requestHeartbeatNow, or as enqueueCommandInLane, pr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, sr as getQueueSize, t as getReplyFromConfig, u as isEmbeddedPiRunActive, vn as resolveIndicatorType } from "./reply-rGYxKc7c.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";
|
|
@@ -241,7 +241,7 @@ const DUPLICATE_DETECTION_WINDOW_MS = 1440 * 60 * 1e3;
|
|
|
241
241
|
/** Max characters for heartbeat preview text in diagnostic events. */
|
|
242
242
|
const PREVIEW_MAX_CHARS = 200;
|
|
243
243
|
const log = createSubsystemLogger("gateway/heartbeat");
|
|
244
|
-
let heartbeatsEnabled =
|
|
244
|
+
let heartbeatsEnabled = (process.env.SKYKOI_HEARTBEATS ?? "").toLowerCase() === "on";
|
|
245
245
|
function setHeartbeatsEnabled(enabled) {
|
|
246
246
|
heartbeatsEnabled = enabled;
|
|
247
247
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./pi-embedded-helpers-BFOvHIvC.js";
|
|
2
|
-
import "./reply-
|
|
2
|
+
import "./reply-rGYxKc7c.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";
|
|
@@ -58,10 +58,10 @@ import "./session-cost-usage-C3Scd8s_.js";
|
|
|
58
58
|
import "./control-service-D2mGSObN.js";
|
|
59
59
|
import "./channel-selection-jyGnnq0E.js";
|
|
60
60
|
import "./event-log-CRTHQkp5.js";
|
|
61
|
-
import { a as resolvePackedRootDir, i as resolveArchiveKind, n as fileExists, r as readJsonFile, t as extractArchive } from "./archive-
|
|
61
|
+
import { a as resolvePackedRootDir, i as resolveArchiveKind, n as fileExists, r as readJsonFile, t as extractArchive } from "./archive-BalvtV7n.js";
|
|
62
62
|
import { t as renderTable } from "./table-6UNPpVEx.js";
|
|
63
63
|
import { a as parseFrontmatter, n as loadWorkspaceHookEntries, t as buildWorkspaceHookStatus } from "./hooks-status-BYUTsP4m.js";
|
|
64
|
-
import { t as buildPluginStatusReport } from "./status-
|
|
64
|
+
import { t as buildPluginStatusReport } from "./status-B_UNxmC7.js";
|
|
65
65
|
import fs from "node:fs";
|
|
66
66
|
import path from "node:path";
|
|
67
67
|
import os from "node:os";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "./pi-embedded-helpers-BFOvHIvC.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Br as applyTemplate, fn as waitForever, sn as monitorWebChannel, t as getReplyFromConfig, un as installUnhandledRejectionHandler } from "./reply-rGYxKc7c.js";
|
|
4
4
|
import { r as enableConsoleCapture } from "./subsystem-RXphV8Xh.js";
|
|
5
5
|
import "./paths-VdmjGGyc.js";
|
|
6
6
|
import { S as toWhatsappJid, d as normalizeE164, n as assertWebChannel } from "./utils-rBzA-VDv.js";
|
|
@@ -58,27 +58,27 @@ import "./session-cost-usage-C3Scd8s_.js";
|
|
|
58
58
|
import "./control-service-D2mGSObN.js";
|
|
59
59
|
import "./channel-selection-jyGnnq0E.js";
|
|
60
60
|
import "./event-log-CRTHQkp5.js";
|
|
61
|
-
import { t as createDefaultDeps } from "./deps-
|
|
61
|
+
import { t as createDefaultDeps } from "./deps-CBuOPzmZ.js";
|
|
62
62
|
import { l as ensureBinary, u as promptYesNo } from "./tailscale-BVFil2zN.js";
|
|
63
63
|
import { t as loadDotEnv } from "./dotenv-BhXDZTJk.js";
|
|
64
64
|
import { t as isMainModule } from "./is-main-CFOIyUwL.js";
|
|
65
65
|
import { t as ensureSKYKOICliOnPath } from "./path-env-D7MDOz2j.js";
|
|
66
66
|
import { g as assertSupportedRuntime } from "./daemon-runtime-s4bEPaLr.js";
|
|
67
67
|
import "./ports-D80unNIa.js";
|
|
68
|
-
import "./config-guard-
|
|
68
|
+
import "./config-guard-4_-Lcm-n.js";
|
|
69
69
|
import "./logging-D_xKFcV1.js";
|
|
70
70
|
import "./note-CrS1Szhk.js";
|
|
71
71
|
import "./clack-prompter-D65FuQH4.js";
|
|
72
|
-
import "./onboarding-
|
|
73
|
-
import "./onboard-skills-
|
|
74
|
-
import "./github-copilot-auth-
|
|
75
|
-
import "./onboard-channels-
|
|
72
|
+
import "./onboarding-DN1UjD0P.js";
|
|
73
|
+
import "./onboard-skills-BxV_pjk1.js";
|
|
74
|
+
import "./github-copilot-auth-DCIwmcwH.js";
|
|
75
|
+
import "./onboard-channels-ClC2kb3J.js";
|
|
76
76
|
import "./plugin-auto-enable-PL5unXxJ.js";
|
|
77
|
-
import "./archive-
|
|
77
|
+
import "./archive-BalvtV7n.js";
|
|
78
78
|
import "./skill-scanner-C1Y-vAfe.js";
|
|
79
|
-
import "./installs-
|
|
80
|
-
import "./health-format-
|
|
81
|
-
import "./update-runner-
|
|
79
|
+
import "./installs-BRL6BHT1.js";
|
|
80
|
+
import "./health-format-CdPqFC3y.js";
|
|
81
|
+
import "./update-runner-DJgrzqov.js";
|
|
82
82
|
import "./auth-DcUFkxj-.js";
|
|
83
83
|
import "./audit-B_Ye62_8.js";
|
|
84
84
|
import "./table-6UNPpVEx.js";
|
|
@@ -88,22 +88,22 @@ import "./systemd-WeDhEsPI.js";
|
|
|
88
88
|
import "./service-audit-D5_xcF75.js";
|
|
89
89
|
import "./node-service-DoNL0Ruu.js";
|
|
90
90
|
import "./channels-status-issues-C88xoNq1.js";
|
|
91
|
-
import "./register.subclis-
|
|
91
|
+
import "./register.subclis-OWZZbzEg.js";
|
|
92
92
|
import "./gateway-rpc-B5KSW1jh.js";
|
|
93
93
|
import "./help-format-BN200Sfc.js";
|
|
94
|
-
import "./koi-
|
|
95
|
-
import "./plugin-registry-
|
|
96
|
-
import "./configure-
|
|
94
|
+
import "./koi-CFdJ5UZN.js";
|
|
95
|
+
import "./plugin-registry-Cr6NKZlG.js";
|
|
96
|
+
import "./configure-U_8jrwyE.js";
|
|
97
97
|
import "./systemd-linger-BjfFUdaX.js";
|
|
98
98
|
import "./widearea-dns-D8atdlDH.js";
|
|
99
99
|
import "./bonjour-discovery-DTM_9zJu.js";
|
|
100
100
|
import "./auth-health-Bg2n10b5.js";
|
|
101
|
-
import "./doctor-
|
|
102
|
-
import "./completion-cli-
|
|
101
|
+
import "./doctor-j8VArGN_.js";
|
|
102
|
+
import "./completion-cli-CTVcP0FE.js";
|
|
103
103
|
import "./hooks-status-BYUTsP4m.js";
|
|
104
104
|
import "./tui-DhoP2zn2.js";
|
|
105
|
-
import "./channel-options-
|
|
106
|
-
import { n as buildProgram } from "./program-
|
|
105
|
+
import "./channel-options-DHLjjz4C.js";
|
|
106
|
+
import { n as buildProgram } from "./program-tnOQcaV7.js";
|
|
107
107
|
import process from "node:process";
|
|
108
108
|
import { fileURLToPath } from "node:url";
|
|
109
109
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-rBzA-VDv.js";
|
|
2
2
|
import { t as runCommandWithTimeout } from "./exec-BE7MIgZB.js";
|
|
3
3
|
import { a as MANIFEST_KEY } from "./manifest-registry-BfJkwq3e.js";
|
|
4
|
-
import { a as resolvePackedRootDir, i as resolveArchiveKind, n as fileExists, r as readJsonFile, t as extractArchive } from "./archive-
|
|
4
|
+
import { a as resolvePackedRootDir, i as resolveArchiveKind, n as fileExists, r as readJsonFile, t as extractArchive } from "./archive-BalvtV7n.js";
|
|
5
5
|
import { t as scanDirectoryWithSummary } from "./skill-scanner-C1Y-vAfe.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import os from "node:os";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { H as normalizeThinkLevel, I as formatThinkingLevels, K as supportsXHighThinking, L as formatXHighModelHint, W as normalizeVerboseLevel } from "./pi-embedded-helpers-BFOvHIvC.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $t as getSkillsSnapshotVersion, B as resolveSessionDeliveryTarget, Er as loadModelCatalog, Mn as KOI_LANE_NESTED, Vr as resolveKoiTimeoutMs, W as runWithModelFallback, br as applyModelOverrideToSessionEntry, c as runEmbeddedPiKoi, i as runCliKoi, n as getCliSessionId, o as resolveSendPolicy, p as compactEmbeddedPiSession, qt as getRemoteSkillEligibility, r as setCliSessionId, vr as lookupContextTokens, xr as applyVerboseOverride, yr as clearSessionAuthProfileOverride, z as resolveOutboundTarget } from "./reply-rGYxKc7c.js";
|
|
3
3
|
import { N as DEFAULT_CHAT_CHANNEL, c as defaultRuntime } from "./subsystem-RXphV8Xh.js";
|
|
4
4
|
import { d as resolveKoiIdFromSessionKey, l as normalizeKoiId, u as normalizeMainKey } from "./session-key-DvA8Pdt6.js";
|
|
5
5
|
import { S as ensureKoiWorkspace, a as resolveKoiDir, c as resolveKoiSkillsFilter, l as resolveKoiWorkspaceDir, n as listKoiIds, o as resolveKoiModelFallbacksOverride, s as resolveKoiModelPrimary } from "./koi-scope-B7BaYiK4.js";
|
|
@@ -13,7 +13,7 @@ import { n as resolveSessionFilePath, o as resolveStorePath } from "./paths-g0XV
|
|
|
13
13
|
import { a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-CxXihUsx.js";
|
|
14
14
|
import { n as emitKoiEvent, o as registerKoiRunContext, t as clearKoiRunContext } from "./koi-events-BaxaD02c.js";
|
|
15
15
|
import { l as hasNonzeroUsage } from "./session-cost-usage-C3Scd8s_.js";
|
|
16
|
-
import { t as createDefaultDeps } from "./deps-
|
|
16
|
+
import { t as createDefaultDeps } from "./deps-CBuOPzmZ.js";
|
|
17
17
|
import crypto from "node:crypto";
|
|
18
18
|
|
|
19
19
|
//#region src/cli/outbound-send-deps.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./pi-embedded-helpers-BFOvHIvC.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Er as loadModelCatalog, Ft as openUrl, G as describeFailoverError, bt as formatUsageWindowSummary, c as runEmbeddedPiKoi, vt as loadProviderUsageSummary, xt as resolveUsageProviderId } from "./reply-rGYxKc7c.js";
|
|
3
3
|
import { C as colorize, T as theme, c as defaultRuntime, w as isRich$1 } from "./subsystem-RXphV8Xh.js";
|
|
4
4
|
import { t as CONFIG_PATH } from "./paths-VdmjGGyc.js";
|
|
5
5
|
import { y as shortenHomePath } from "./utils-rBzA-VDv.js";
|
|
@@ -62,7 +62,7 @@ import "./event-log-CRTHQkp5.js";
|
|
|
62
62
|
import { n as logConfigUpdated } from "./logging-D_xKFcV1.js";
|
|
63
63
|
import "./note-CrS1Szhk.js";
|
|
64
64
|
import { t as createClackPrompter } from "./clack-prompter-D65FuQH4.js";
|
|
65
|
-
import { a as normalizeAlias, c as updateConfig, d as resolvePluginProviders, i as formatTokenK, l as createVpsAwareOAuthHandlers, n as ensureFlagCompatibility, o as resolveKnownKoiId, pt as validateAnthropicSetupToken, r as formatMs, s as resolveModelTarget, t as githubCopilotLoginCommand, u as isRemoteEnvironment, v as applyAuthProfileConfig } from "./github-copilot-auth-
|
|
65
|
+
import { a as normalizeAlias, c as updateConfig, d as resolvePluginProviders, i as formatTokenK, l as createVpsAwareOAuthHandlers, n as ensureFlagCompatibility, o as resolveKnownKoiId, pt as validateAnthropicSetupToken, r as formatMs, s as resolveModelTarget, t as githubCopilotLoginCommand, u as isRemoteEnvironment, v as applyAuthProfileConfig } from "./github-copilot-auth-DCIwmcwH.js";
|
|
66
66
|
import { t as renderTable } from "./table-6UNPpVEx.js";
|
|
67
67
|
import { i as redactSecrets } from "./format-C8RwgLWp.js";
|
|
68
68
|
import { n as buildAuthHealthSummary, r as formatRemainingShort, t as DEFAULT_OAUTH_WARN_MS } from "./auth-health-Bg2n10b5.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _t as loadSKYKOIPlugins } from "./reply-rGYxKc7c.js";
|
|
2
2
|
import { F as formatChannelSelectionLine, L as listChatChannels, P as formatChannelPrimerLine, t as createSubsystemLogger } from "./subsystem-RXphV8Xh.js";
|
|
3
3
|
import { c as normalizeAccountId, t as DEFAULT_ACCOUNT_ID } from "./session-key-DvA8Pdt6.js";
|
|
4
4
|
import { l as resolveKoiWorkspaceDir, r as resolveDefaultKoiId } from "./koi-scope-B7BaYiK4.js";
|
|
@@ -7,7 +7,7 @@ import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-D6P_BD
|
|
|
7
7
|
import { t as formatDocsLink } from "./links-BraPfmsh.js";
|
|
8
8
|
import { t as resolveChannelDefaultAccountId } from "./helpers-BNuSQH6i.js";
|
|
9
9
|
import { i as listChannelPluginCatalogEntries, n as isChannelConfigured } from "./plugin-auto-enable-PL5unXxJ.js";
|
|
10
|
-
import { n as installPluginFromNpmSpec, t as recordPluginInstall } from "./installs-
|
|
10
|
+
import { n as installPluginFromNpmSpec, t as recordPluginInstall } from "./installs-BRL6BHT1.js";
|
|
11
11
|
import fs from "node:fs";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bt as resolveNodeManagerOptions, Dt as detectBinary, Er as loadModelCatalog, Ft as openUrl } from "./reply-rGYxKc7c.js";
|
|
2
2
|
import { f as resolveConfigDir, h as resolveUserPath, s as ensureDir, t as CONFIG_DIR } from "./utils-rBzA-VDv.js";
|
|
3
3
|
import { t as runCommandWithTimeout } from "./exec-BE7MIgZB.js";
|
|
4
4
|
import { T as resolveDefaultKoiWorkspaceDir, a as resolveKoiDir, l as resolveKoiWorkspaceDir, r as resolveDefaultKoiId, s as resolveKoiModelPrimary } from "./koi-scope-B7BaYiK4.js";
|
|
@@ -8,8 +8,8 @@ import { t as formatCliCommand } from "./command-format-DQtyHEuH.js";
|
|
|
8
8
|
import { _ as resolveSkillKey, d as hasBinary, i as loadWorkspaceSkillEntries, t as resolveSkillsInstallPreferences } from "./skills-BVetMWFp.js";
|
|
9
9
|
import { Y as fetchWithSsrFGuard } from "./deliver-CxXihUsx.js";
|
|
10
10
|
import { t as resolveBrewExecutable } from "./brew-DYTrysTv.js";
|
|
11
|
-
import { $ as setOpenrouterApiKey, A as applyQianfanProviderConfig, B as applyXiaomiProviderConfig, C as applyMoonshotConfig, D as applyOpenrouterConfig, E as applyMoonshotProviderConfigCn, F as applyVercelAiGatewayConfig, G as ZAI_DEFAULT_MODEL_REF, H as OPENROUTER_DEFAULT_MODEL_REF, I as applyVercelAiGatewayProviderConfig, J as setGeminiApiKey, K as setAnthropicApiKey, L as applyXaiConfig, M as applySyntheticProviderConfig, N as applyVeniceConfig, O as applyOpenrouterProviderConfig, P as applyVeniceProviderConfig, Q as setOpencodeZenApiKey, R as applyXaiProviderConfig, S as applyKimiCodeProviderConfig, T as applyMoonshotProviderConfig, U as VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF, V as applyZaiConfig, W as XIAOMI_DEFAULT_MODEL_REF, X as setMinimaxApiKey, Y as setKimiCodingApiKey, Z as setMoonshotApiKey, _ as applyMinimaxProviderConfig, at as setXiaomiApiKey, b as applyCloudflareAiGatewayProviderConfig, ct as KIMI_CODING_MODEL_REF, d as resolvePluginProviders, dt as XAI_DEFAULT_MODEL_REF, et as setQianfanApiKey, f as applyOpencodeZenConfig, ft as buildTokenProfileId, g as applyMinimaxConfig, h as applyMinimaxApiProviderConfig, i as formatTokenK, it as setXaiApiKey, j as applySyntheticConfig, k as applyQianfanConfig, l as createVpsAwareOAuthHandlers, lt as MOONSHOT_DEFAULT_MODEL_REF, m as applyMinimaxApiConfig, nt as setVeniceApiKey, ot as setZaiApiKey, p as applyOpencodeZenProviderConfig, pt as validateAnthropicSetupToken, q as setCloudflareAiGatewayConfig, rt as setVercelAiGatewayApiKey, st as writeOAuthCredentials, t as githubCopilotLoginCommand, tt as setSyntheticApiKey, u as isRemoteEnvironment, ut as QIANFAN_DEFAULT_MODEL_REF, v as applyAuthProfileConfig, w as applyMoonshotConfigCn, x as applyKimiCodeConfig, y as applyCloudflareAiGatewayConfig, z as applyXiaomiConfig } from "./github-copilot-auth-
|
|
12
|
-
import { a as enablePluginInConfig } from "./onboard-channels-
|
|
11
|
+
import { $ as setOpenrouterApiKey, A as applyQianfanProviderConfig, B as applyXiaomiProviderConfig, C as applyMoonshotConfig, D as applyOpenrouterConfig, E as applyMoonshotProviderConfigCn, F as applyVercelAiGatewayConfig, G as ZAI_DEFAULT_MODEL_REF, H as OPENROUTER_DEFAULT_MODEL_REF, I as applyVercelAiGatewayProviderConfig, J as setGeminiApiKey, K as setAnthropicApiKey, L as applyXaiConfig, M as applySyntheticProviderConfig, N as applyVeniceConfig, O as applyOpenrouterProviderConfig, P as applyVeniceProviderConfig, Q as setOpencodeZenApiKey, R as applyXaiProviderConfig, S as applyKimiCodeProviderConfig, T as applyMoonshotProviderConfig, U as VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF, V as applyZaiConfig, W as XIAOMI_DEFAULT_MODEL_REF, X as setMinimaxApiKey, Y as setKimiCodingApiKey, Z as setMoonshotApiKey, _ as applyMinimaxProviderConfig, at as setXiaomiApiKey, b as applyCloudflareAiGatewayProviderConfig, ct as KIMI_CODING_MODEL_REF, d as resolvePluginProviders, dt as XAI_DEFAULT_MODEL_REF, et as setQianfanApiKey, f as applyOpencodeZenConfig, ft as buildTokenProfileId, g as applyMinimaxConfig, h as applyMinimaxApiProviderConfig, i as formatTokenK, it as setXaiApiKey, j as applySyntheticConfig, k as applyQianfanConfig, l as createVpsAwareOAuthHandlers, lt as MOONSHOT_DEFAULT_MODEL_REF, m as applyMinimaxApiConfig, nt as setVeniceApiKey, ot as setZaiApiKey, p as applyOpencodeZenProviderConfig, pt as validateAnthropicSetupToken, q as setCloudflareAiGatewayConfig, rt as setVercelAiGatewayApiKey, st as writeOAuthCredentials, t as githubCopilotLoginCommand, tt as setSyntheticApiKey, u as isRemoteEnvironment, ut as QIANFAN_DEFAULT_MODEL_REF, v as applyAuthProfileConfig, w as applyMoonshotConfigCn, x as applyKimiCodeConfig, y as applyCloudflareAiGatewayConfig, z as applyXiaomiConfig } from "./github-copilot-auth-DCIwmcwH.js";
|
|
12
|
+
import { a as enablePluginInConfig } from "./onboard-channels-ClC2kb3J.js";
|
|
13
13
|
import { t as scanDirectoryWithSummary } from "./skill-scanner-C1Y-vAfe.js";
|
|
14
14
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-Bk-6M9tR.js";
|
|
15
15
|
import { n as resolveWideAreaDiscoveryDomain } from "./widearea-dns-D8atdlDH.js";
|