skykoi 2026.3.239 → 2026.3.241
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-CpxapuWV.js → archive-CZxyJxWr.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-CsLfyIQR.js → channel-options-BytgxF0A.js} +1 -1
- package/dist/{channels-cli-BF1p34ng.js → channels-cli-BDN88yfO.js} +6 -6
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-DrzAuDkZ.js → cli-Cq5JLe2R.js} +1 -1
- package/dist/{completion-cli-B3BObEWB.js → completion-cli-DqnbeJsX.js} +1 -1
- package/dist/{config-guard-DeNz9S4p.js → config-guard-CWUog1hs.js} +13 -13
- package/dist/{configure-Dao6-eLJ.js → configure-4NyvPTj7.js} +4 -4
- package/dist/{daemon-cli-vIrMBHMo.js → daemon-cli-9valOYF7.js} +2 -2
- package/dist/{deps-DLQOtpSo.js → deps-SBxhmnQq.js} +1 -1
- package/dist/{doctor-nJv2y-4B.js → doctor-yp8-8NNg.js} +3 -3
- package/dist/entry.js +1 -1
- package/dist/extension-api.js +1 -1
- package/dist/{gateway-cli-CCA88DVT.js → gateway-cli-DPac32xw.js} +15 -15
- package/dist/{github-copilot-auth-BCvaTPMK.js → github-copilot-auth-1Vp8NuoN.js} +1 -1
- package/dist/{health-format-B05vjdHR.js → health-format-DJCDoh4A.js} +1 -1
- package/dist/{hooks-cli-UFBzfg9P.js → hooks-cli-DAML11v6.js} +3 -3
- package/dist/index.js +19 -19
- package/dist/{installs-iVeCOxST.js → installs-ChqYlmyO.js} +1 -1
- package/dist/{koi-B7GFDMLQ.js → koi-bkB0kjaF.js} +41 -2
- package/dist/{models-cli-CmIcicZf.js → models-cli-D8qd0QnH.js} +2 -2
- package/dist/{onboard-channels-DMyV9A0u.js → onboard-channels-B-0BUOet.js} +2 -2
- package/dist/{onboard-skills-pW-tEBzo.js → onboard-skills-CUDTvO8D.js} +3 -3
- package/dist/{onboarding-D1hrJ4B6.js → onboarding-vdogCkkv.js} +6 -6
- package/dist/{plugin-registry--xT2eXbr.js → plugin-registry-CgOjPrbz.js} +1 -1
- package/dist/plugin-sdk/index.js +15 -573
- package/dist/plugin-sdk/koi/pi-settings.d.ts +1 -1
- package/dist/{plugins-cli-CR9XCGc-.js → plugins-cli-CVtBgPRp.js} +5 -5
- package/dist/{program-BAWsCcli.js → program-DniPNkbN.js} +4 -4
- package/dist/{register.subclis-DL19wFOb.js → register.subclis-Dr84d0U7.js} +10 -10
- package/dist/{reply-BD-2OQaW.js → reply-4qAdtU50.js} +16 -573
- package/dist/{run-main-CfnJdmxz.js → run-main-53hgluBk.js} +20 -20
- package/dist/{server-node-events-blWnfIqt.js → server-node-events-CGxu_Jgu.js} +3 -3
- package/dist/{status-iUy_hhq2.js → status-B0eQKajD.js} +1 -1
- package/dist/{update-CgKrm_kz.js → update-DJzr3LVe.js} +1 -1
- package/dist/{update-cli-BaSb_vhR.js → update-cli-Cx5C2UE3.js} +11 -11
- package/dist/{update-runner-BJdL7zS8.js → update-runner-Bcqiuvhy.js} +3 -3
- package/extensions/bluebubbles/node_modules/.bin/skykoi +2 -2
- package/extensions/copilot-proxy/node_modules/.bin/skykoi +2 -2
- package/extensions/diagnostics-otel/node_modules/.bin/acorn +21 -0
- package/extensions/diagnostics-otel/node_modules/.bin/skykoi +2 -2
- package/extensions/discord/node_modules/.bin/skykoi +2 -2
- package/extensions/feishu/node_modules/.bin/skykoi +2 -2
- package/extensions/google-antigravity-auth/node_modules/.bin/skykoi +2 -2
- package/extensions/google-gemini-cli-auth/node_modules/.bin/skykoi +2 -2
- package/extensions/googlechat/node_modules/.bin/skykoi +2 -2
- package/extensions/imessage/node_modules/.bin/skykoi +2 -2
- package/extensions/line/node_modules/.bin/skykoi +2 -2
- package/extensions/llm-task/node_modules/.bin/skykoi +2 -2
- package/extensions/lobster/node_modules/.bin/skykoi +2 -2
- package/extensions/matrix/node_modules/.bin/markdown-it +2 -2
- package/extensions/matrix/node_modules/.bin/skykoi +2 -2
- package/extensions/mattermost/node_modules/.bin/skykoi +2 -2
- package/extensions/memory-core/node_modules/.bin/skykoi +2 -2
- package/extensions/memory-lancedb/node_modules/.bin/arrow2csv +21 -0
- package/extensions/memory-lancedb/node_modules/.bin/openai +2 -2
- package/extensions/memory-lancedb/node_modules/.bin/skykoi +2 -2
- package/extensions/minimax-portal-auth/node_modules/.bin/skykoi +2 -2
- package/extensions/msteams/node_modules/.bin/skykoi +2 -2
- package/extensions/nextcloud-talk/node_modules/.bin/skykoi +2 -2
- package/extensions/nostr/node_modules/.bin/skykoi +2 -2
- package/extensions/nostr/node_modules/.bin/tsc +21 -0
- package/extensions/nostr/node_modules/.bin/tsserver +21 -0
- package/extensions/open-prose/node_modules/.bin/skykoi +2 -2
- package/extensions/signal/node_modules/.bin/skykoi +2 -2
- package/extensions/slack/node_modules/.bin/skykoi +2 -2
- package/extensions/telegram/node_modules/.bin/skykoi +2 -2
- package/extensions/tlon/node_modules/.bin/skykoi +2 -2
- package/extensions/twitch/node_modules/.bin/skykoi +2 -2
- package/extensions/voice-call/node_modules/.bin/skykoi +2 -2
- package/extensions/whatsapp/node_modules/.bin/skykoi +2 -2
- package/extensions/zalo/node_modules/.bin/skykoi +2 -2
- package/extensions/zalouser/node_modules/.bin/skykoi +2 -2
- 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 { St as require_inherits } from "./reply-4qAdtU50.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
|
+
160c38f7a422edc0b5a4332251d60577b094529e856a8b721965df08a3ba0beb
|
|
@@ -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-CDSibY2C.js";
|
|
5
|
-
import { t as ensurePluginRegistryLoaded } from "./plugin-registry
|
|
5
|
+
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-CgOjPrbz.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-5nfY10f6.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Fn as createSlackWebClient, Sn as fetchChannelPermissionsDiscord, _t as loadProviderUsageSummary, vt as formatUsageReportLines, xn as parseDiscordTarget } from "./reply-4qAdtU50.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-B-0BUOet.js";
|
|
67
67
|
import { i as listChannelPluginCatalogEntries } from "./plugin-auto-enable-CDSibY2C.js";
|
|
68
|
-
import "./archive-
|
|
68
|
+
import "./archive-CZxyJxWr.js";
|
|
69
69
|
import "./skill-scanner-C1Y-vAfe.js";
|
|
70
|
-
import "./installs-
|
|
70
|
+
import "./installs-ChqYlmyO.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-CgOjPrbz.js";
|
|
73
|
+
import { t as formatCliChannelOptions } from "./channel-options-BytgxF0A.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-9valOYF7.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./pi-embedded-helpers-5nfY10f6.js";
|
|
2
|
-
import {
|
|
2
|
+
import { gt as loadSKYKOIPlugins } from "./reply-4qAdtU50.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-Dr84d0U7.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 { B as formatTargetDisplay, Dt as detectBrowserOpenSupport, H as CHANNEL_MESSAGE_ACTION_NAMES, Lt as randomToken, Mt as moveToTrash, N as runMessageAction, Ot as ensureWorkspaceAndSessions, Pt as openUrl, Rt as resolveControlUiLinks, Tt as applyWizardMetadata, Vt as waitForGatewayReachable, _r as lookupContextTokens, an as runMemoryStatus, dt as CHANNEL_TARGETS_DESCRIPTION, ft as CHANNEL_TARGET_DESCRIPTION, in as registerMemoryCli, jt as handleReset, kt as formatControlUiSshHint, wt as DEFAULT_WORKSPACE } from "./reply-4qAdtU50.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-SBxhmnQq.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-BrHV63lV.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-vdogCkkv.js";
|
|
29
|
+
import { d as applyAuthChoice, f as applyOpenAIConfig, h as promptAuthChoiceGrouped, m as applyGoogleGeminiModelDefault, p as upsertSharedEnvVar, u as warnIfModelConfigLooksOff } from "./onboard-skills-CUDTvO8D.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-1Vp8NuoN.js";
|
|
31
|
+
import { n as setupChannels } from "./onboard-channels-B-0BUOet.js";
|
|
32
|
+
import { l as healthCommand } from "./health-format-DJCDoh4A.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-Dr84d0U7.js";
|
|
37
37
|
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-BmbZ18rs.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-bkB0kjaF.js";
|
|
40
|
+
import { n as hasExplicitOptions, t as ensurePluginRegistryLoaded } from "./plugin-registry-CgOjPrbz.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-4NyvPTj7.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-yp8-8NNg.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-4NyvPTj7.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 { At as guardCancel, Bt as summarizeExistingConfig, Ft as printWizardHeader, It as probeGatewayReachable, Lt as randomToken, Nt as normalizeGatewayTokenInput, Ot as ensureWorkspaceAndSessions, Rt as resolveControlUiLinks, Tt as applyWizardMetadata, Vt as waitForGatewayReachable, wt as DEFAULT_WORKSPACE } from "./reply-4qAdtU50.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-CUDTvO8D.js";
|
|
19
|
+
import { n as setupChannels, t as noteChannelStatus } from "./onboard-channels-B-0BUOet.js";
|
|
20
|
+
import { l as healthCommand, n as ensureControlUiAssetsBuilt, t as formatHealthCheckFailure } from "./health-format-DJCDoh4A.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 { Rt as resolveControlUiLinks } from "./reply-4qAdtU50.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-DX0qYMrV.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-SBxhmnQq.js";
|
|
18
18
|
import { i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-BrHV63lV.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 { Ct as sendMessageIMessage, Mn as sendMessageWhatsApp, Pn as sendMessageSlack, vn as sendMessageTelegram, yn as sendMessageDiscord } from "./reply-4qAdtU50.js";
|
|
2
2
|
import { b as sendMessageSignal } from "./deliver-CB3trOAm.js";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/deps.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { At as guardCancel, Ft as printWizardHeader, Lt as randomToken, Tr as loadModelCatalog, Tt as applyWizardMetadata, gt as loadSKYKOIPlugins } from "./reply-4qAdtU50.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-CDSibY2C.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-DJCDoh4A.js";
|
|
30
|
+
import { c as doctorShellCompletion, t as runGatewayUpdate } from "./update-runner-Bcqiuvhy.js";
|
|
31
31
|
import { i as resolveGatewayAuth } from "./auth-DGixDs29.js";
|
|
32
32
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-L8MOOArP.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-53hgluBk.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-5nfY10f6.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Br as resolveKoiTimeoutMs, Rn as resolveKoiIdentity, c as runEmbeddedPiKoi } from "./reply-4qAdtU50.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-5nfY10f6.js";
|
|
3
|
-
import { $ as
|
|
3
|
+
import { $n as resolveTtsConfig, $t as registerSkillsChangeListener, A as readSessionPreviewItemsFromTranscript, An as initSubkoiRegistry, Ar as DEFAULT_INPUT_IMAGE_MIMES, Bn as resolveUserTimeFormat, Br as resolveKoiTimeoutMs, C as loadCombinedSessionStoreForGateway, Cn as dispatchInboundMessage, Cr as isSystemEventContextChanged, D as archiveFileOnDisk, Dn as stopSubkoisForRequester, Dr as DEFAULT_INPUT_FILE_MAX_CHARS, E as resolveSessionModelRef, En as isAbortTrigger, Er as DEFAULT_INPUT_FILE_MAX_BYTES, F as resolveOutboundSessionRoute, Fr as DEFAULT_INPUT_TIMEOUT_MS, G as authorizeGatewaySigusr1Restart, Gn as triggerInternalHook, Gt as resolveAssistantAvatarUrl, Hn as clearInternalHooks, Ht as CONTROL_UI_AVATAR_PREFIX, Ir as extractFileContentFromSource, J as scheduleGatewaySigusr1Restart, Jn as getTtsProvider, Jt as recordRemoteNodeInfo, K as consumeGatewaySigusr1RestartAuthorization, Kn as OPENAI_TTS_MODELS, Kt as getRemoteSkillEligibility, Lr as extractImageContentFromSource, M as stripEnvelopeFromMessages, Mr as DEFAULT_INPUT_PDF_MAX_PAGES, Nn as normalizePollInput, Nr as DEFAULT_INPUT_PDF_MAX_PIXELS, O as capArrayByJsonBytes, On as findSubkoiRunByChildSessionKey, Or as DEFAULT_INPUT_FILE_MIMES, P as ensureOutboundSessionEntry, Pr as DEFAULT_INPUT_PDF_MIN_TEXT_CHARS, Q as formatRestartSentinelMessage, Qn as resolveTtsAutoMode, Qt as getSkillsSnapshotVersion, R as resolveOutboundTarget, Rn as resolveKoiIdentity, Rr as normalizeMimeList, S as listSessionsFromStore, Sr as enqueueSystemEvent, T as resolveGatewaySessionStoreTarget, Tn as formatZonedTimestamp, Tr as loadModelCatalog, U as runWithModelFallback, Un as createInternalHookEvent, Ut as buildControlUiAvatarUrl, V as resetDirectoryCache, Vn as resolveUserTimezone, Wn as registerInternalHook, Wt as normalizeControlUiBasePath, X as consumeRestartSentinel, Xn as isTtsProviderConfigured, Xt as refreshRemoteNodeBins, Y as setGatewaySigusr1RestartPolicy, Yn as isTtsEnabled, Yt as refreshRemoteBinsForConnectedNodes, Z as formatDoctorNonInteractiveHint, Zn as resolveTtsApiKey, Zt as setSkillsRemoteRegistry, _ as listCanvasUris, _r as lookupContextTokens, _t as loadProviderUsageSummary, a as normalizeSendPolicy, at as inferLegacyName, b as resolveAnnounceTargetFromKey, bn as getChannelActivity, br as applyVerboseOverride, c as runEmbeddedPiKoi, cn as normalizeGroupActivation, cr as CommandLane, ct as normalizePayloadToSystemText, d as waitForEmbeddedPiRunEnd, dr as isDiagnosticsEnabled, en as buildSafeExternalPrompt, er as resolveTtsPrefsPath, et as summarizeRestartSentinel, fn as buildHistoryContextFromEntries, fr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, g as getCanvasResource, gn as onHeartbeatEvent, gr as stripHeartbeatToken, gt as loadSKYKOIPlugins, h as canvasUri, hn as getLastHeartbeatEvent, ht as getPluginToolMeta, i as runCliKoi, ir as textToSpeech, it as normalizeCronJobPatch, j as resolveSessionTranscriptCandidates, jr as DEFAULT_INPUT_MAX_REDIRECTS, jt as handleReset, k as readSessionMessages, kn as findSubkoiRunByRunId, kr as DEFAULT_INPUT_IMAGE_MAX_BYTES, l as abortEmbeddedPiRun, lr as startDiagnosticHeartbeat, lt as normalizeRequiredName, m as createSKYKOITools, n as getCliSessionId, nn as getHookType, nr as setTtsEnabled, nt as writeRestartSentinel, o as resolveSendPolicy, ot as normalizeOptionalKoiId, pn as resolveHeartbeatVisibility, pt as requestHeartbeatNow, q as isGatewaySigusr1RestartExternallyAllowed, qn as OPENAI_TTS_VOICES, qt as primeRemoteSkillsCache, r as setCliSessionId, rn as isExternalHookSession, rr as setTtsProvider, rt as normalizeCronJobCreate, s as clearSessionQueues, sn as createReplyPrefixOptions, sr as setCommandLaneConcurrency, st as normalizeOptionalText, tn as detectSuspiciousPatterns, tr as resolveTtsProviderOrder, un as registerUnhandledRejectionHandler, ur as stopDiagnosticHeartbeat, ut as migrateLegacyCronPayload, v as onCanvasChange, w as loadSessionEntry, wn as createReplyDispatcher, x as listKoisForGateway, xr as parseVerboseOverride, xt as handleSlackHttpRequest, y as replaceCanvasResource, yr as applyModelOverrideToSessionEntry, z as resolveSessionDeliveryTarget, zn as formatUserTime } from "./reply-4qAdtU50.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-SBxhmnQq.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-BrHV63lV.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-vdogCkkv.js";
|
|
80
|
+
import { n as installSkill } from "./onboard-skills-CUDTvO8D.js";
|
|
81
|
+
import "./github-copilot-auth-1Vp8NuoN.js";
|
|
82
|
+
import "./onboard-channels-B-0BUOet.js";
|
|
83
83
|
import { r as buildChannelUiCatalog, t as applyPluginAutoEnable } from "./plugin-auto-enable-CDSibY2C.js";
|
|
84
|
-
import "./archive-
|
|
84
|
+
import "./archive-CZxyJxWr.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-ChqYlmyO.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-DJCDoh4A.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-Bcqiuvhy.js";
|
|
89
89
|
import { i as resolveGatewayAuth, n as authorizeGatewayConnect, r as isLocalDirectRequest, t as assertGatewayAuthConfigured } from "./auth-DGixDs29.js";
|
|
90
90
|
import { i as probeGateway } from "./audit-CESvqT-v.js";
|
|
91
91
|
import "./table-6UNPpVEx.js";
|
|
@@ -95,16 +95,16 @@ import { p as resolveGatewayStateDir } from "./systemd-WeDhEsPI.js";
|
|
|
95
95
|
import "./service-audit-0Irp8Nwq.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-Dr84d0U7.js";
|
|
99
|
+
import { a as createOutboundSendDeps$1, i as resolveKoiOutboundTarget, r as resolveKoiDeliveryPlan, t as koiCommand } from "./koi-bkB0kjaF.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-DqnbeJsX.js";
|
|
103
103
|
import { i as shouldIncludeHook, n as loadWorkspaceHookEntries, r as resolveHookConfig } from "./hooks-status-DeJbnZZv.js";
|
|
104
104
|
import "./tui-DwY8VhQt.js";
|
|
105
105
|
import { t as buildChannelAccountSnapshot } from "./status-jB5_YcY1.js";
|
|
106
106
|
import "./shared-BaXeHg7G.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-9valOYF7.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-zdGVuPwY.js";
|
|
@@ -11124,7 +11124,7 @@ const nodeHandlers = {
|
|
|
11124
11124
|
const p = params;
|
|
11125
11125
|
const payloadJSON = typeof p.payloadJSON === "string" ? p.payloadJSON : p.payload !== void 0 ? JSON.stringify(p.payload) : null;
|
|
11126
11126
|
await respondUnavailableOnThrow(respond, async () => {
|
|
11127
|
-
const { handleNodeEvent } = await import("./server-node-events-
|
|
11127
|
+
const { handleNodeEvent } = await import("./server-node-events-CGxu_Jgu.js");
|
|
11128
11128
|
const nodeId = client?.connect?.device?.id ?? client?.connect?.client?.id ?? "node";
|
|
11129
11129
|
await handleNodeEvent({
|
|
11130
11130
|
deps: context.deps,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { gt as loadSKYKOIPlugins } from "./reply-4qAdtU50.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 { I as resolveHeartbeatDeliveryTarget, L as resolveHeartbeatSenderContext, Ln as resolveEffectiveMessagesConfig, Vn as resolveUserTimezone, _n as resolveIndicatorType, ar as enqueueCommandInLane, cr as CommandLane, fr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, gr as stripHeartbeatToken, hr as resolveHeartbeatPrompt$1, mn as emitHeartbeatEvent, mr as isHeartbeatContentEffectivelyEmpty, mt as setHeartbeatWakeHandler, or as getQueueSize, pn as resolveHeartbeatVisibility, pr as DEFAULT_HEARTBEAT_EVERY, pt as requestHeartbeatNow, t as getReplyFromConfig, u as isEmbeddedPiRunActive, wr as peekSystemEvents } from "./reply-4qAdtU50.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-5nfY10f6.js";
|
|
2
|
-
import "./reply-
|
|
2
|
+
import "./reply-4qAdtU50.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-DvYWm_np.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-CZxyJxWr.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-DeJbnZZv.js";
|
|
64
|
-
import { t as buildPluginStatusReport } from "./status-
|
|
64
|
+
import { t as buildPluginStatusReport } from "./status-B0eQKajD.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-5nfY10f6.js";
|
|
3
|
-
import {
|
|
3
|
+
import { dn as waitForever, ln as installUnhandledRejectionHandler, on as monitorWebChannel, t as getReplyFromConfig, zr as applyTemplate } from "./reply-4qAdtU50.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-DvYWm_np.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-SBxhmnQq.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-BrHV63lV.js";
|
|
67
67
|
import "./ports-D80unNIa.js";
|
|
68
|
-
import "./config-guard-
|
|
68
|
+
import "./config-guard-CWUog1hs.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-vdogCkkv.js";
|
|
73
|
+
import "./onboard-skills-CUDTvO8D.js";
|
|
74
|
+
import "./github-copilot-auth-1Vp8NuoN.js";
|
|
75
|
+
import "./onboard-channels-B-0BUOet.js";
|
|
76
76
|
import "./plugin-auto-enable-CDSibY2C.js";
|
|
77
|
-
import "./archive-
|
|
77
|
+
import "./archive-CZxyJxWr.js";
|
|
78
78
|
import "./skill-scanner-C1Y-vAfe.js";
|
|
79
|
-
import "./installs-
|
|
80
|
-
import "./health-format-
|
|
81
|
-
import "./update-runner-
|
|
79
|
+
import "./installs-ChqYlmyO.js";
|
|
80
|
+
import "./health-format-DJCDoh4A.js";
|
|
81
|
+
import "./update-runner-Bcqiuvhy.js";
|
|
82
82
|
import "./auth-DGixDs29.js";
|
|
83
83
|
import "./audit-CESvqT-v.js";
|
|
84
84
|
import "./table-6UNPpVEx.js";
|
|
@@ -88,22 +88,22 @@ import "./systemd-WeDhEsPI.js";
|
|
|
88
88
|
import "./service-audit-0Irp8Nwq.js";
|
|
89
89
|
import "./node-service-DoNL0Ruu.js";
|
|
90
90
|
import "./channels-status-issues-C88xoNq1.js";
|
|
91
|
-
import "./register.subclis-
|
|
91
|
+
import "./register.subclis-Dr84d0U7.js";
|
|
92
92
|
import "./gateway-rpc-BmbZ18rs.js";
|
|
93
93
|
import "./help-format-BN200Sfc.js";
|
|
94
|
-
import "./koi-
|
|
95
|
-
import "./plugin-registry
|
|
96
|
-
import "./configure-
|
|
94
|
+
import "./koi-bkB0kjaF.js";
|
|
95
|
+
import "./plugin-registry-CgOjPrbz.js";
|
|
96
|
+
import "./configure-4NyvPTj7.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-Dme6P_xB.js";
|
|
101
|
-
import "./doctor-
|
|
102
|
-
import "./completion-cli-
|
|
101
|
+
import "./doctor-yp8-8NNg.js";
|
|
102
|
+
import "./completion-cli-DqnbeJsX.js";
|
|
103
103
|
import "./hooks-status-DeJbnZZv.js";
|
|
104
104
|
import "./tui-DwY8VhQt.js";
|
|
105
|
-
import "./channel-options-
|
|
106
|
-
import { n as buildProgram } from "./program-
|
|
105
|
+
import "./channel-options-BytgxF0A.js";
|
|
106
|
+
import { n as buildProgram } from "./program-DniPNkbN.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-CZxyJxWr.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-5nfY10f6.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Br as resolveKoiTimeoutMs, Kt as getRemoteSkillEligibility, Qt as getSkillsSnapshotVersion, R as resolveOutboundTarget, Tr as loadModelCatalog, U as runWithModelFallback, _r as lookupContextTokens, br as applyVerboseOverride, c as runEmbeddedPiKoi, i as runCliKoi, jn as KOI_LANE_NESTED, n as getCliSessionId, o as resolveSendPolicy, p as compactEmbeddedPiSession, r as setCliSessionId, vr as clearSessionAuthProfileOverride, yr as applyModelOverrideToSessionEntry, z as resolveSessionDeliveryTarget } from "./reply-4qAdtU50.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-CB3trOAm.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-SBxhmnQq.js";
|
|
17
17
|
import crypto from "node:crypto";
|
|
18
18
|
|
|
19
19
|
//#region src/cli/outbound-send-deps.ts
|
|
@@ -571,6 +571,45 @@ async function koiCommand(opts, runtime = defaultRuntime, deps = createDefaultDe
|
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
const sessionFile = resolveSessionFilePath(sessionId, sessionEntry, { koiId: speakerKoiId });
|
|
574
|
+
const trimmedBody = body.trim();
|
|
575
|
+
if (trimmedBody === "/compact" || trimmedBody.startsWith("/compact ")) {
|
|
576
|
+
const userInstructions = trimmedBody.slice(8).trim();
|
|
577
|
+
const customInstructions = userInstructions ? `[manual-compact] ${userInstructions}` : "[manual-compact]";
|
|
578
|
+
const compactResult = await compactEmbeddedPiSession({
|
|
579
|
+
sessionId,
|
|
580
|
+
sessionKey,
|
|
581
|
+
sessionFile,
|
|
582
|
+
workspaceDir,
|
|
583
|
+
config: cfg,
|
|
584
|
+
skillsSnapshot,
|
|
585
|
+
provider,
|
|
586
|
+
model,
|
|
587
|
+
thinkLevel: resolvedThinkLevel,
|
|
588
|
+
bashElevated: {
|
|
589
|
+
enabled: false,
|
|
590
|
+
allowed: false,
|
|
591
|
+
defaultLevel: "off"
|
|
592
|
+
},
|
|
593
|
+
customInstructions,
|
|
594
|
+
groupId: opts.groupId,
|
|
595
|
+
groupChannel: opts.groupChannel,
|
|
596
|
+
groupSpace: opts.groupSpace,
|
|
597
|
+
spawnedBy: opts.spawnedBy ?? sessionEntry?.spawnedBy,
|
|
598
|
+
messageChannel: opts.channel,
|
|
599
|
+
senderIsOwner: true
|
|
600
|
+
});
|
|
601
|
+
return {
|
|
602
|
+
ok: compactResult.ok,
|
|
603
|
+
runId: opts.runId ?? sessionId,
|
|
604
|
+
sessionId,
|
|
605
|
+
sessionKey,
|
|
606
|
+
koiId: speakerKoiId,
|
|
607
|
+
provider,
|
|
608
|
+
model,
|
|
609
|
+
compaction: compactResult,
|
|
610
|
+
payloads: []
|
|
611
|
+
};
|
|
612
|
+
}
|
|
574
613
|
const startedAt = Date.now();
|
|
575
614
|
let lifecycleEnded = false;
|
|
576
615
|
let result;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./pi-embedded-helpers-5nfY10f6.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Pt as openUrl, Tr as loadModelCatalog, W as describeFailoverError, _t as loadProviderUsageSummary, bt as resolveUsageProviderId, c as runEmbeddedPiKoi, yt as formatUsageWindowSummary } from "./reply-4qAdtU50.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-1Vp8NuoN.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-Dme6P_xB.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { gt as loadSKYKOIPlugins } from "./reply-4qAdtU50.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-CDSibY2C.js";
|
|
10
|
-
import { n as installPluginFromNpmSpec, t as recordPluginInstall } from "./installs-
|
|
10
|
+
import { n as installPluginFromNpmSpec, t as recordPluginInstall } from "./installs-ChqYlmyO.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 { Et as detectBinary, Pt as openUrl, Tr as loadModelCatalog, zt as resolveNodeManagerOptions } from "./reply-4qAdtU50.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-BAmURK2l.js";
|
|
9
9
|
import { Y as fetchWithSsrFGuard } from "./deliver-CB3trOAm.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-1Vp8NuoN.js";
|
|
12
|
+
import { a as enablePluginInConfig } from "./onboard-channels-B-0BUOet.js";
|
|
13
13
|
import { t as scanDirectoryWithSummary } from "./skill-scanner-C1Y-vAfe.js";
|
|
14
14
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-L8MOOArP.js";
|
|
15
15
|
import { n as resolveWideAreaDiscoveryDomain } from "./widearea-dns-D8atdlDH.js";
|