@symerian/symi 2.4.1 → 2.4.2
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/{accounts-ChTFYj8Q.js → accounts-CWktKM8a.js} +1 -1
- package/dist/{accounts-CJR8j_Kq.js → accounts-qtxJ-6em.js} +1 -1
- package/dist/{accounts-CI6zQTJj.js → accounts-tNElYrCH.js} +14 -14
- package/dist/{active-listener-D6sXIjAg.js → active-listener-C9r8ZB9m.js} +1 -1
- package/dist/{agent-scope-Bw1Ed8W9.js → agent-scope-BxoUQqgM.js} +3 -3
- package/dist/{audio-preflight-C40mKAp7.js → audio-preflight-CPBOQV4I.js} +4 -4
- package/dist/{audio-preflight-BkIfnmpi.js → audio-preflight-O3ASWbaG.js} +29 -29
- package/dist/{bindings-BU2hsBd9.js → bindings-B7Ke6LJi.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +53 -53
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +53 -53
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-C9-gaquj.js → channel-activity-CsM_hJ_s.js} +1 -1
- package/dist/{chrome-CxSAp8x3.js → chrome-BFekevcE.js} +20 -20
- package/dist/{chrome-CDJYxX5a.js → chrome-D2SKJnR7.js} +7 -7
- package/dist/{chunk-ClbN9Pqy.js → chunk-BW5f05BR.js} +1 -1
- package/dist/{command-format-UKHV-j0K.js → command-format-BaxDnULz.js} +1 -1
- package/dist/{command-registry-DXt0PsFy.js → command-registry-CsDAPQfS.js} +4 -4
- package/dist/{commands-registry-VSmULp-g.js → commands-registry-D7CTCQPm.js} +4 -4
- package/dist/{completion-cli-BsSDzZNA.js → completion-cli-B_f5PMBc.js} +1 -1
- package/dist/{completion-cli-CPMOXTf2.js → completion-cli-CSdjFWHy.js} +2 -2
- package/dist/{config-eEaJddXj.js → config-DRbjHIwD.js} +12 -12
- package/dist/{deliver-BH0l3UKW.js → deliver-C-37cZUe.js} +1 -1
- package/dist/{deliver-BA7ZN3iM.js → deliver-CvCK5Mm9.js} +20 -20
- package/dist/{diagnostic-C3nsWaw3.js → diagnostic-CI0kRQkt.js} +1 -1
- package/dist/{doctor-completion-8qbLmeX0.js → doctor-completion-BWJvfjTC.js} +1 -1
- package/dist/{doctor-completion-Dnxn_-ov.js → doctor-completion-llX6EnGy.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{frontmatter-DPlG6yha.js → frontmatter-C_bv_0P8.js} +2 -2
- package/dist/{gateway-cli-XIsXoJZ3.js → gateway-cli-70k2-I4K.js} +12 -8
- package/dist/{gateway-cli-DKDpOBp-.js → gateway-cli-BApdH1bD.js} +12 -8
- package/dist/{gemini-auth-CF48hUR9.js → gemini-auth-CdSPHuLl.js} +1 -1
- package/dist/{github-copilot-token-DJqsJ2-r.js → github-copilot-token-C_qUP7p5.js} +7 -7
- package/dist/{image-BGmVDkkw.js → image-B0wGflxA.js} +4 -4
- package/dist/{image-CHzdaNJ4.js → image-DcpMiprB.js} +1 -1
- package/dist/{image-ops-S8-8dAhx.js → image-ops-CvJzsyvE.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{ir-CbFUkv_T.js → ir-DccrnjsE.js} +4 -4
- package/dist/llm-slug-generator.js +53 -53
- package/dist/{local-roots-C7OCYACU.js → local-roots-DMwIh5cS.js} +5 -5
- package/dist/{login-B8uiUAnV.js → login-CwCoxapk.js} +7 -7
- package/dist/{login-qr-CIZk8uKX.js → login-qr-Batf3PT5.js} +12 -12
- package/dist/{manager-BoLr3xR_.js → manager-D_LwXbc6.js} +13 -13
- package/dist/{manifest-registry-CneMHk0N.js → manifest-registry-D0IQ3WuX.js} +19 -19
- package/dist/{markdown-tables-DSHvnTLx.js → markdown-tables-iMQQZu4Q.js} +1 -1
- package/dist/{message-channel-DbsRltF2.js → message-channel-Dz5lr5b0.js} +1 -1
- package/dist/{model-auth-CwOuTuXl.js → model-auth-DK43VicI.js} +9 -9
- package/dist/{onboard-CXOUIg28.js → onboard-1wGdR0wt.js} +1 -1
- package/dist/{onboard-DBeHwdks.js → onboard-nQYq_dsr.js} +1 -1
- package/dist/{onboarding-Dfjn2-9q.js → onboarding-Peg7PNOz.js} +1 -1
- package/dist/{onboarding-C58wjONa.js → onboarding-gQRA57l_.js} +1 -1
- package/dist/{onboarding.finalize-7r1HYXWd.js → onboarding.finalize-C4DSBMrV.js} +4 -4
- package/dist/{onboarding.finalize-DGD56sXW.js → onboarding.finalize-D26o-hBA.js} +3 -3
- package/dist/{outbound-opDNxv-l.js → outbound-D4fN_ZlE.js} +7 -7
- package/dist/{outbound-attachment-Co2diKdP.js → outbound-attachment-DjNDa3zn.js} +2 -2
- package/dist/{paths-CySxpNhH.js → paths-Cce4PUkG.js} +5 -5
- package/dist/{paths-Cb87-LzP.js → paths-DLyHUt31.js} +1 -1
- package/dist/{pi-auth-json-DPWPoruO.js → pi-auth-json-0SYBFZTt.js} +8 -8
- package/dist/{pi-embedded-CAJ6egA1.js → pi-embedded-CfxhTbYF.js} +16 -16
- package/dist/{pi-embedded-helpers-lgx_U5KS.js → pi-embedded-helpers-B8kqLWns.js} +4 -4
- package/dist/{pi-embedded-helpers-DEEaCvEp.js → pi-embedded-helpers-DLFjnVBb.js} +52 -52
- package/dist/{pi-embedded-B6uRrG1f.js → pi-embedded-k69DSy1Y.js} +162 -162
- package/dist/{plugins-C4C9637U.js → plugins-DQYI3Fr-.js} +9 -9
- package/dist/{program-CutjuJj0.js → program-Bx47hl_J.js} +2 -2
- package/dist/{program-context-qVc_lsLV.js → program-context-JFmxYLfK.js} +6 -6
- package/dist/{prompt-select-styled-C0yn8YjW.js → prompt-select-styled--d3H0JCo.js} +1 -1
- package/dist/{prompt-select-styled-BCHe7Fks.js → prompt-select-styled-BeJhp9PS.js} +1 -1
- package/dist/{pw-ai-De-KR9_s.js → pw-ai-1htA-NnS.js} +1 -1
- package/dist/{pw-ai-DhwRiS06.js → pw-ai-BnAKvSuw.js} +11 -11
- package/dist/{qmd-manager-DdZh9PHs.js → qmd-manager-QHUP-_em.js} +7 -7
- package/dist/{register.maintenance-DMLPFSKI.js → register.maintenance-CYhp47Hs.js} +5 -5
- package/dist/{register.maintenance-D1MuIUlv.js → register.maintenance-CvaHYkoX.js} +4 -4
- package/dist/{register.onboard-CXHhSH4B.js → register.onboard-CoySBEdQ.js} +2 -2
- package/dist/{register.onboard-D1X2dUGZ.js → register.onboard-mCscJN7t.js} +2 -2
- package/dist/{register.setup-Q58lN0TV.js → register.setup-BmE-pwMT.js} +2 -2
- package/dist/{register.setup-DFDb5BDi.js → register.setup-CzrsIQMG.js} +2 -2
- package/dist/{register.subclis-CrTXa8cj.js → register.subclis-wsgQ6wk8.js} +3 -3
- package/dist/{registry-DP24za6g.js → registry-CK4e9hn8.js} +17 -17
- package/dist/{replies-DpPvWiGF.js → replies-BIX_isV7.js} +3 -3
- package/dist/{reply-prefix-CtL0omgM.js → reply-prefix-XlyuyChD.js} +1 -1
- package/dist/{resolve-route-BVikmvWO.js → resolve-route-CZ-1eqw0.js} +4 -4
- package/dist/{retry-dGG-MbxL.js → retry-Cly39XZB.js} +1 -1
- package/dist/{run-main-BLKPL_vM.js → run-main-mKcFqx7h.js} +3 -3
- package/dist/{runner-DUBExAb5.js → runner-BcQ0sF9T.js} +1 -1
- package/dist/{runner-B_KP4voe.js → runner-odEv83vv.js} +9 -9
- package/dist/{send-DeEosX8F.js → send-B1u-LrcS.js} +18 -18
- package/dist/{send-DwKJK3sM.js → send-CiTGOvEc.js} +10 -10
- package/dist/{send-zSarozV2.js → send-DW96zgDL.js} +6 -6
- package/dist/{send-CHEOWVc8.js → send-DeFniOjh.js} +6 -6
- package/dist/{send-DbcLJb0P.js → send-WyRqb4WD.js} +7 -7
- package/dist/{session-DV1MNlbV.js → session-SM36BTsl.js} +8 -8
- package/dist/{skill-commands-D610IKhm.js → skill-commands-BJMb_psG.js} +9 -9
- package/dist/{skills-o5WVqM4V.js → skills-BFekKL7i.js} +21 -21
- package/dist/{sqlite-6H6Zw1cs.js → sqlite-DRbx2dhW.js} +4 -4
- package/dist/{store-vVE6N2mH.js → store-C0wvOkae.js} +2 -2
- package/dist/{subsystem-DgpxyDQ_.js → subsystem-Bs9YvKLa.js} +1 -1
- package/dist/{tables-BIWsCKXJ.js → tables-DuZspiBu.js} +1 -1
- package/dist/{target-errors-DyItGyW9.js → target-errors-Be1SwYlW.js} +2 -2
- package/dist/{thinking-Ni0HF-w6.js → thinking-CdlENGRW.js} +5 -5
- package/dist/{tokens-c_SLAkVb.js → tokens-H1H1LiSQ.js} +1 -1
- package/dist/{tool-images-DBCfXdli.js → tool-images-DXB7tqWi.js} +2 -2
- package/dist/{tool-loop-detection-Bbc9OPFR.js → tool-loop-detection-Cs8_HCsx.js} +3 -3
- package/dist/{update-cli-BkU6ori8.js → update-cli-BEBDpJF4.js} +5 -5
- package/dist/{update-cli-D18nWvzY.js → update-cli-C22V-tFW.js} +4 -4
- package/dist/{web-KYh3LgI0.js → web-DolrvXij.js} +6 -6
- package/dist/{web-BsjZ2RTT.js → web-kIIXN8hK.js} +57 -57
- package/dist/{whatsapp-actions-oRQjcdQe.js → whatsapp-actions-D1RsnX7P.js} +23 -23
- package/dist/{workspace-CbvamIU6.js → workspace-wAaHI8-5.js} +6 -6
- package/package.json +1 -1
|
@@ -134,7 +134,7 @@ import { i as pickGatewaySelfPresence } from "./status-CnogoaI_.js";
|
|
|
134
134
|
import { a as styleHealthChannelLine, l as startHeartbeatRunner, n as getHealthSnapshot, s as runHeartbeatOnce, t as formatHealthChannelLines } from "./health-BmaWws9G.js";
|
|
135
135
|
import { a as resolveControlUiRootSync, i as resolveControlUiRootOverrideSync, t as ensureControlUiAssetsBuilt } from "./control-ui-assets-BseSWee1.js";
|
|
136
136
|
import { a as resolveNpmChannelTag, c as DEFAULT_PACKAGE_CHANNEL, m as normalizeUpdateChannel, n as compareSemverStrings, t as checkUpdateStatus } from "./update-check-ZdimP1aU.js";
|
|
137
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
137
|
+
import { t as runOnboardingWizard } from "./onboarding-Peg7PNOz.js";
|
|
138
138
|
import { _ as getHandshakeTimeoutMs, a as DEFAULT_ASSISTANT_IDENTITY, b as resolveCronRunLogPath, c as upsertPresence, d as DEDUPE_MAX, f as DEDUPE_TTL_MS, g as TICK_INTERVAL_MS, h as MAX_PAYLOAD_BYTES, i as safeParseJson, l as formatError, m as MAX_BUFFERED_BYTES, n as handleGatewayRequest, o as resolveAssistantIdentity, p as HEALTH_REFRESH_INTERVAL_MS, r as broadcastPresenceSnapshot, s as listSystemPresence, t as coreGatewayHandlers, u as loadVoiceWakeConfig, v as abortChatRunById, x as startGatewayConfigReloader, y as appendCronRunLog } from "./server-methods-EQ0JkHOg.js";
|
|
139
139
|
import { d as shouldLogWs, f as summarizeAgentEventForWsLog, l as formatForLog, p as setGatewayWsLogStyle, u as logWs } from "./push-apns-DvcqkHld.js";
|
|
140
140
|
import { T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, i as ensureTailscaleEndpoint, v as buildGogWatchStartArgs } from "./gmail-setup-utils-CzWeiE-Y.js";
|
|
@@ -2065,7 +2065,11 @@ function createAgentEventHandler({ broadcast, broadcastToConnIds, nodeSendToSess
|
|
|
2065
2065
|
nodeSendToSession(sessionKey, "chat", payload);
|
|
2066
2066
|
};
|
|
2067
2067
|
const emitChatFinal = (sessionKey, clientRunId, sourceRunId, seq, jobState, error) => {
|
|
2068
|
-
|
|
2068
|
+
let remainingDelta = chatRunState.pendingDeltaText.get(clientRunId);
|
|
2069
|
+
if (remainingDelta) try {
|
|
2070
|
+
const flushModelId = loadConfig().agents?.defaults?.model?.primary;
|
|
2071
|
+
if (flushModelId) remainingDelta = stripModelTokens(remainingDelta, flushModelId);
|
|
2072
|
+
} catch {}
|
|
2069
2073
|
if (remainingDelta && !shouldHideHeartbeatChatOutput(clientRunId, sourceRunId)) {
|
|
2070
2074
|
const flushPayload = {
|
|
2071
2075
|
runId: clientRunId,
|
|
@@ -2087,14 +2091,14 @@ function createAgentEventHandler({ broadcast, broadcastToConnIds, nodeSendToSess
|
|
|
2087
2091
|
}
|
|
2088
2092
|
chatRunState.pendingDeltaText.delete(clientRunId);
|
|
2089
2093
|
let bufferedText = chatRunState.buffers.get(clientRunId)?.trim() ?? "";
|
|
2090
|
-
let resolvedModelId;
|
|
2091
2094
|
try {
|
|
2092
|
-
|
|
2095
|
+
const modelId = loadConfig().agents?.defaults?.model?.primary;
|
|
2096
|
+
if (modelId) {
|
|
2097
|
+
const profile = resolveModelProfile(modelId);
|
|
2098
|
+
bufferedText = stripModelTokens(bufferedText, modelId);
|
|
2099
|
+
if (profile.filters.suppressMonologue) bufferedText = suppressMonologueBlock(bufferedText);
|
|
2100
|
+
}
|
|
2093
2101
|
} catch {}
|
|
2094
|
-
if (resolvedModelId) {
|
|
2095
|
-
bufferedText = stripModelTokens(bufferedText, resolvedModelId);
|
|
2096
|
-
bufferedText = suppressMonologueBlock(bufferedText);
|
|
2097
|
-
}
|
|
2098
2102
|
const normalizedHeartbeatText = normalizeHeartbeatChatFinalText({
|
|
2099
2103
|
runId: clientRunId,
|
|
2100
2104
|
sourceRunId,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { s as resolveStateDir } from "./paths-
|
|
2
|
+
import { s as resolveStateDir } from "./paths-Cce4PUkG.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
|
|
6
6
|
//#region src/infra/json-file.ts
|
|
7
7
|
function loadJsonFile(pathname) {
|
|
8
8
|
try {
|
|
9
|
-
if (!
|
|
10
|
-
const raw =
|
|
9
|
+
if (!fs.existsSync(pathname)) return;
|
|
10
|
+
const raw = fs.readFileSync(pathname, "utf8");
|
|
11
11
|
return JSON.parse(raw);
|
|
12
12
|
} catch {
|
|
13
13
|
return;
|
|
@@ -15,12 +15,12 @@ function loadJsonFile(pathname) {
|
|
|
15
15
|
}
|
|
16
16
|
function saveJsonFile(pathname, data) {
|
|
17
17
|
const dir = path.dirname(pathname);
|
|
18
|
-
if (!
|
|
18
|
+
if (!fs.existsSync(dir)) fs.mkdirSync(dir, {
|
|
19
19
|
recursive: true,
|
|
20
20
|
mode: 448
|
|
21
21
|
});
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
fs.writeFileSync(pathname, `${JSON.stringify(data, null, 2)}\n`, "utf8");
|
|
23
|
+
fs.chmodSync(pathname, 384);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { R as shortenHomeInString, k as isRecord } from "./registry-
|
|
3
|
-
import { B as resolveImplicitCopilotProvider, J as normalizeSecretInput, R as normalizeProviders, V as resolveImplicitProviders, r as requireApiKey, t as getApiKeyForModel, y as resolveSymiAgentDir, z as resolveImplicitBedrockProvider } from "./model-auth-
|
|
2
|
+
import { R as shortenHomeInString, k as isRecord } from "./registry-CK4e9hn8.js";
|
|
3
|
+
import { B as resolveImplicitCopilotProvider, J as normalizeSecretInput, R as normalizeProviders, V as resolveImplicitProviders, r as requireApiKey, t as getApiKeyForModel, y as resolveSymiAgentDir, z as resolveImplicitBedrockProvider } from "./model-auth-DK43VicI.js";
|
|
4
4
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DaNAekda.js";
|
|
5
|
-
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
6
|
-
import { n as loadConfig } from "./config-
|
|
5
|
+
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-DLFjnVBb.js";
|
|
6
|
+
import { n as loadConfig } from "./config-DRbjHIwD.js";
|
|
7
7
|
import { n as redactToolDetail } from "./redact-jSxx6Ep2.js";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
9
9
|
import path from "node:path";
|
|
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { D as isRecord, I as shortenHomeInString } from "./registry-BhoUuugi.js";
|
|
3
3
|
import { G as resolveSymiAgentDir, S as getApiKeyForModel, Y as normalizeSecretInput, _ as resolveImplicitBedrockProvider, g as normalizeProviders, v as resolveImplicitCopilotProvider, w as requireApiKey, y as resolveImplicitProviders } from "./model-selection-BQCG9ah0.js";
|
|
4
4
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-j5tVLINv.js";
|
|
5
|
-
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
5
|
+
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-B8kqLWns.js";
|
|
6
6
|
import { n as loadConfig } from "./config-BmV60pPT.js";
|
|
7
7
|
import { n as redactToolDetail } from "./redact-1NGYV_8p.js";
|
|
8
8
|
import path from "node:path";
|
package/dist/index.js
CHANGED
|
@@ -112,7 +112,7 @@ import { t as ensureSymiCliOnPath } from "./path-env-MnzRq6nD.js";
|
|
|
112
112
|
import { t as assertSupportedRuntime } from "./runtime-guard-B37eizu-.js";
|
|
113
113
|
import "./ports-BX0kKI0g.js";
|
|
114
114
|
import { a as hasFlag, i as getVerboseFlag, n as getCommandPath, o as hasHelpOrVersion, s as hasRootVersionAlias } from "./argv-C6ovOie2.js";
|
|
115
|
-
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-
|
|
115
|
+
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-JFmxYLfK.js";
|
|
116
116
|
import "./catalog-RiADx7MA.js";
|
|
117
117
|
import "./plugin-registry-C0iHnZ7j.js";
|
|
118
118
|
import { n as resolveCliChannelOptions } from "./channel-options-BQz0F4El.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as resolveUserPath, J as logVerbose, Z as shouldLogVerbose } from "./registry-
|
|
2
|
-
import { a as hasAlphaChannel, b as maxBytesForKind, c as SafeOpenError, d as detectMime, f as extensionForMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg, u as readLocalFileSafely, x as mediaKindFromMime } from "./image-ops-
|
|
3
|
-
import { a as chunkText } from "./chunk-
|
|
4
|
-
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots } from "./local-roots-
|
|
1
|
+
import { I as resolveUserPath, J as logVerbose, Z as shouldLogVerbose } from "./registry-CK4e9hn8.js";
|
|
2
|
+
import { a as hasAlphaChannel, b as maxBytesForKind, c as SafeOpenError, d as detectMime, f as extensionForMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg, u as readLocalFileSafely, x as mediaKindFromMime } from "./image-ops-CvJzsyvE.js";
|
|
3
|
+
import { a as chunkText } from "./chunk-BW5f05BR.js";
|
|
4
|
+
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots } from "./local-roots-DMwIh5cS.js";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import "./registry-
|
|
3
|
-
import { c as resolveDefaultAgentId, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import "./subsystem-
|
|
5
|
-
import "./workspace-
|
|
6
|
-
import "./tokens-
|
|
7
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
8
|
-
import "./plugins-
|
|
9
|
-
import "./accounts-
|
|
1
|
+
import "./paths-Cce4PUkG.js";
|
|
2
|
+
import "./registry-CK4e9hn8.js";
|
|
3
|
+
import { c as resolveDefaultAgentId, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-BxoUQqgM.js";
|
|
4
|
+
import "./subsystem-Bs9YvKLa.js";
|
|
5
|
+
import "./workspace-wAaHI8-5.js";
|
|
6
|
+
import "./tokens-H1H1LiSQ.js";
|
|
7
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-k69DSy1Y.js";
|
|
8
|
+
import "./plugins-DQYI3Fr-.js";
|
|
9
|
+
import "./accounts-tNElYrCH.js";
|
|
10
10
|
import "./boolean-B8-BqKGQ.js";
|
|
11
|
-
import "./command-format-
|
|
12
|
-
import "./bindings-
|
|
13
|
-
import "./send-
|
|
14
|
-
import "./send-
|
|
15
|
-
import "./deliver-
|
|
16
|
-
import "./diagnostic-
|
|
11
|
+
import "./command-format-BaxDnULz.js";
|
|
12
|
+
import "./bindings-B7Ke6LJi.js";
|
|
13
|
+
import "./send-DeFniOjh.js";
|
|
14
|
+
import "./send-CiTGOvEc.js";
|
|
15
|
+
import "./deliver-CvCK5Mm9.js";
|
|
16
|
+
import "./diagnostic-CI0kRQkt.js";
|
|
17
17
|
import "./diagnostic-session-state-Bxo4UHOL.js";
|
|
18
|
-
import "./accounts-
|
|
19
|
-
import "./send-
|
|
20
|
-
import "./image-ops-
|
|
21
|
-
import "./model-auth-
|
|
22
|
-
import "./github-copilot-token-
|
|
18
|
+
import "./accounts-CWktKM8a.js";
|
|
19
|
+
import "./send-B1u-LrcS.js";
|
|
20
|
+
import "./image-ops-CvJzsyvE.js";
|
|
21
|
+
import "./model-auth-DK43VicI.js";
|
|
22
|
+
import "./github-copilot-token-C_qUP7p5.js";
|
|
23
23
|
import "./pi-model-discovery-DaNAekda.js";
|
|
24
|
-
import "./message-channel-
|
|
25
|
-
import "./pi-embedded-helpers-
|
|
26
|
-
import "./config-
|
|
27
|
-
import "./manifest-registry-
|
|
28
|
-
import "./chrome-
|
|
29
|
-
import "./frontmatter-
|
|
30
|
-
import "./skills-
|
|
24
|
+
import "./message-channel-Dz5lr5b0.js";
|
|
25
|
+
import "./pi-embedded-helpers-DLFjnVBb.js";
|
|
26
|
+
import "./config-DRbjHIwD.js";
|
|
27
|
+
import "./manifest-registry-D0IQ3WuX.js";
|
|
28
|
+
import "./chrome-BFekevcE.js";
|
|
29
|
+
import "./frontmatter-C_bv_0P8.js";
|
|
30
|
+
import "./skills-BFekKL7i.js";
|
|
31
31
|
import "./redact-jSxx6Ep2.js";
|
|
32
32
|
import "./errors-BoQgnc8X.js";
|
|
33
33
|
import "./ssrf-BTMDZjHT.js";
|
|
34
|
-
import "./store-
|
|
35
|
-
import "./thinking-
|
|
36
|
-
import "./accounts-
|
|
37
|
-
import "./paths-
|
|
38
|
-
import "./tool-images-
|
|
39
|
-
import "./image-
|
|
40
|
-
import "./reply-prefix-
|
|
41
|
-
import "./manager-
|
|
42
|
-
import "./gemini-auth-
|
|
43
|
-
import "./sqlite-
|
|
44
|
-
import "./retry-
|
|
45
|
-
import "./target-errors-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./markdown-tables-
|
|
48
|
-
import "./local-roots-
|
|
49
|
-
import "./ir-
|
|
34
|
+
import "./store-C0wvOkae.js";
|
|
35
|
+
import "./thinking-CdlENGRW.js";
|
|
36
|
+
import "./accounts-qtxJ-6em.js";
|
|
37
|
+
import "./paths-DLyHUt31.js";
|
|
38
|
+
import "./tool-images-DXB7tqWi.js";
|
|
39
|
+
import "./image-B0wGflxA.js";
|
|
40
|
+
import "./reply-prefix-XlyuyChD.js";
|
|
41
|
+
import "./manager-D_LwXbc6.js";
|
|
42
|
+
import "./gemini-auth-CdSPHuLl.js";
|
|
43
|
+
import "./sqlite-DRbx2dhW.js";
|
|
44
|
+
import "./retry-Cly39XZB.js";
|
|
45
|
+
import "./target-errors-Be1SwYlW.js";
|
|
46
|
+
import "./chunk-BW5f05BR.js";
|
|
47
|
+
import "./markdown-tables-iMQQZu4Q.js";
|
|
48
|
+
import "./local-roots-DMwIh5cS.js";
|
|
49
|
+
import "./ir-DccrnjsE.js";
|
|
50
50
|
import "./render-CDCvpfhh.js";
|
|
51
|
-
import "./commands-registry-
|
|
52
|
-
import "./skill-commands-
|
|
53
|
-
import "./runner-
|
|
51
|
+
import "./commands-registry-D7CTCQPm.js";
|
|
52
|
+
import "./skill-commands-BJMb_psG.js";
|
|
53
|
+
import "./runner-odEv83vv.js";
|
|
54
54
|
import "./fetch-Bso4i15F.js";
|
|
55
|
-
import "./channel-activity-
|
|
56
|
-
import "./tables-
|
|
57
|
-
import "./send-
|
|
58
|
-
import "./outbound-attachment-
|
|
59
|
-
import "./send-
|
|
60
|
-
import "./resolve-route-
|
|
55
|
+
import "./channel-activity-CsM_hJ_s.js";
|
|
56
|
+
import "./tables-DuZspiBu.js";
|
|
57
|
+
import "./send-DW96zgDL.js";
|
|
58
|
+
import "./outbound-attachment-DjNDa3zn.js";
|
|
59
|
+
import "./send-WyRqb4WD.js";
|
|
60
|
+
import "./resolve-route-CZ-1eqw0.js";
|
|
61
61
|
import "./proxy-CBJ1upuz.js";
|
|
62
|
-
import "./replies-
|
|
62
|
+
import "./replies-BIX_isV7.js";
|
|
63
63
|
import fs from "node:fs/promises";
|
|
64
64
|
import os from "node:os";
|
|
65
65
|
import path from "node:path";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as resolveStateDir } from "./paths-
|
|
2
|
-
import { dt as resolvePreferredSymiTmpDir } from "./registry-
|
|
3
|
-
import { s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import { S as logWarn } from "./workspace-
|
|
5
|
-
import { d as detectMime, f as extensionForMime } from "./image-ops-
|
|
1
|
+
import { s as resolveStateDir } from "./paths-Cce4PUkG.js";
|
|
2
|
+
import { dt as resolvePreferredSymiTmpDir } from "./registry-CK4e9hn8.js";
|
|
3
|
+
import { s as resolveAgentWorkspaceDir } from "./agent-scope-BxoUQqgM.js";
|
|
4
|
+
import { S as logWarn } from "./workspace-wAaHI8-5.js";
|
|
5
|
+
import { d as detectMime, f as extensionForMime } from "./image-ops-CvJzsyvE.js";
|
|
6
6
|
import { a as resolvePinnedHostnameWithPolicy, n as closeDispatcher, r as createPinnedDispatcher, t as SsrFBlockedError } from "./ssrf-BTMDZjHT.js";
|
|
7
7
|
import { t as bindAbortRelay } from "./fetch-timeout-DL3f_O53.js";
|
|
8
8
|
import path from "node:path";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { G as danger, K as info, Q as success } from "./registry-
|
|
3
|
-
import { r as defaultRuntime } from "./subsystem-
|
|
4
|
-
import { x as logInfo } from "./workspace-
|
|
5
|
-
import { a as logoutWeb, t as resolveWhatsAppAccount } from "./accounts-
|
|
6
|
-
import { t as formatCliCommand } from "./command-format-
|
|
7
|
-
import { n as loadConfig } from "./config-
|
|
8
|
-
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-
|
|
2
|
+
import { G as danger, K as info, Q as success } from "./registry-CK4e9hn8.js";
|
|
3
|
+
import { r as defaultRuntime } from "./subsystem-Bs9YvKLa.js";
|
|
4
|
+
import { x as logInfo } from "./workspace-wAaHI8-5.js";
|
|
5
|
+
import { a as logoutWeb, t as resolveWhatsAppAccount } from "./accounts-tNElYrCH.js";
|
|
6
|
+
import { t as formatCliCommand } from "./command-format-BaxDnULz.js";
|
|
7
|
+
import { n as loadConfig } from "./config-DRbjHIwD.js";
|
|
8
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-SM36BTsl.js";
|
|
9
9
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
10
10
|
|
|
11
11
|
//#region src/web/login.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import { G as danger, K as info, Q as success } from "./registry-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import { r as defaultRuntime } from "./subsystem-
|
|
5
|
-
import { x as logInfo } from "./workspace-
|
|
6
|
-
import { a as logoutWeb, l as readWebSelfId, p as webAuthExists, t as resolveWhatsAppAccount } from "./accounts-
|
|
1
|
+
import "./paths-Cce4PUkG.js";
|
|
2
|
+
import { G as danger, K as info, Q as success } from "./registry-CK4e9hn8.js";
|
|
3
|
+
import "./agent-scope-BxoUQqgM.js";
|
|
4
|
+
import { r as defaultRuntime } from "./subsystem-Bs9YvKLa.js";
|
|
5
|
+
import { x as logInfo } from "./workspace-wAaHI8-5.js";
|
|
6
|
+
import { a as logoutWeb, l as readWebSelfId, p as webAuthExists, t as resolveWhatsAppAccount } from "./accounts-tNElYrCH.js";
|
|
7
7
|
import "./boolean-B8-BqKGQ.js";
|
|
8
|
-
import "./command-format-
|
|
9
|
-
import "./model-auth-
|
|
10
|
-
import "./github-copilot-token-
|
|
11
|
-
import { n as loadConfig } from "./config-
|
|
12
|
-
import "./manifest-registry-
|
|
13
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
8
|
+
import "./command-format-BaxDnULz.js";
|
|
9
|
+
import "./model-auth-DK43VicI.js";
|
|
10
|
+
import "./github-copilot-token-C_qUP7p5.js";
|
|
11
|
+
import { n as loadConfig } from "./config-DRbjHIwD.js";
|
|
12
|
+
import "./manifest-registry-D0IQ3WuX.js";
|
|
13
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-SM36BTsl.js";
|
|
14
14
|
import { randomUUID } from "node:crypto";
|
|
15
15
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
16
16
|
import QRCodeModule from "qrcode-terminal/vendor/QRCode/index.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { s as resolveStateDir } from "./paths-
|
|
3
|
-
import { I as resolveUserPath, T as clampNumber, U as truncateUtf16Safe, w as clampInt } from "./registry-
|
|
4
|
-
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
6
|
-
import { r as isTruthyEnvValue } from "./command-format-
|
|
7
|
-
import { i as resolveApiKeyForProvider, r as requireApiKey } from "./model-auth-
|
|
2
|
+
import { s as resolveStateDir } from "./paths-Cce4PUkG.js";
|
|
3
|
+
import { I as resolveUserPath, T as clampNumber, U as truncateUtf16Safe, w as clampInt } from "./registry-CK4e9hn8.js";
|
|
4
|
+
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-BxoUQqgM.js";
|
|
5
|
+
import { t as createSubsystemLogger } from "./subsystem-Bs9YvKLa.js";
|
|
6
|
+
import { r as isTruthyEnvValue } from "./command-format-BaxDnULz.js";
|
|
7
|
+
import { i as resolveApiKeyForProvider, r as requireApiKey } from "./model-auth-DK43VicI.js";
|
|
8
8
|
import { n as formatErrorMessage } from "./errors-BoQgnc8X.js";
|
|
9
|
-
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-
|
|
9
|
+
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-DLyHUt31.js";
|
|
10
10
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-DDYvbmRV.js";
|
|
11
|
-
import { n as collectProviderApiKeysForExecution, r as executeWithApiKeyRotation, t as parseGeminiAuth } from "./gemini-auth-
|
|
12
|
-
import { _ as isFileMissingError, a as buildFileEntry, c as ensureDir, d as listMemoryFiles, f as normalizeExtraMemoryPaths, h as runWithConcurrency, i as sessionPathForFile, l as hashText, m as remapChunkLines, n as buildSessionEntry, o as chunkMarkdown, p as parseEmbedding, r as listSessionFilesForAgent, s as cosineSimilarity, t as requireNodeSqlite, u as isMemoryPath, v as statRegularFile } from "./sqlite-
|
|
13
|
-
import { n as retryAsync } from "./retry-
|
|
11
|
+
import { n as collectProviderApiKeysForExecution, r as executeWithApiKeyRotation, t as parseGeminiAuth } from "./gemini-auth-CdSPHuLl.js";
|
|
12
|
+
import { _ as isFileMissingError, a as buildFileEntry, c as ensureDir, d as listMemoryFiles, f as normalizeExtraMemoryPaths, h as runWithConcurrency, i as sessionPathForFile, l as hashText, m as remapChunkLines, n as buildSessionEntry, o as chunkMarkdown, p as parseEmbedding, r as listSessionFilesForAgent, s as cosineSimilarity, t as requireNodeSqlite, u as isMemoryPath, v as statRegularFile } from "./sqlite-DRbx2dhW.js";
|
|
13
|
+
import { n as retryAsync } from "./retry-Cly39XZB.js";
|
|
14
14
|
import fs from "node:fs/promises";
|
|
15
15
|
import os from "node:os";
|
|
16
16
|
import path from "node:path";
|
|
17
|
-
import
|
|
17
|
+
import fs$1 from "node:fs";
|
|
18
18
|
import { randomUUID } from "node:crypto";
|
|
19
19
|
import { createInterface } from "node:readline";
|
|
20
20
|
import { Readable } from "node:stream";
|
|
@@ -614,7 +614,7 @@ function canAutoSelectLocal(options) {
|
|
|
614
614
|
if (/^(hf:|https?:)/i.test(modelPath)) return false;
|
|
615
615
|
const resolved = resolveUserPath(modelPath);
|
|
616
616
|
try {
|
|
617
|
-
return
|
|
617
|
+
return fs$1.statSync(resolved).isFile();
|
|
618
618
|
} catch {
|
|
619
619
|
return false;
|
|
620
620
|
}
|
|
@@ -2073,7 +2073,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2073
2073
|
]);
|
|
2074
2074
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
2075
2075
|
for (const entry of additionalPaths) try {
|
|
2076
|
-
const stat =
|
|
2076
|
+
const stat = fs$1.lstatSync(entry);
|
|
2077
2077
|
if (stat.isSymbolicLink()) continue;
|
|
2078
2078
|
if (stat.isDirectory()) {
|
|
2079
2079
|
watchPaths.add(path.join(entry, "**", "*.md"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as resolveUserPath, P as resolveConfigDir, k as isRecord } from "./registry-
|
|
1
|
+
import { I as resolveUserPath, P as resolveConfigDir, k as isRecord } from "./registry-CK4e9hn8.js";
|
|
2
2
|
import { n as MANIFEST_KEY } from "./legacy-names-BHV4AoFT.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
|
|
7
7
|
//#region src/infra/host-env-security-policy.json
|
|
@@ -59,7 +59,7 @@ function isPathInside$1(basePath, candidatePath) {
|
|
|
59
59
|
}
|
|
60
60
|
function safeRealpathSync$1(filePath) {
|
|
61
61
|
try {
|
|
62
|
-
return
|
|
62
|
+
return fs.realpathSync(filePath);
|
|
63
63
|
} catch {
|
|
64
64
|
return null;
|
|
65
65
|
}
|
|
@@ -226,13 +226,13 @@ function resolveBundledPluginsDir() {
|
|
|
226
226
|
try {
|
|
227
227
|
const execDir = path.dirname(process.execPath);
|
|
228
228
|
const sibling = path.join(execDir, "extensions");
|
|
229
|
-
if (
|
|
229
|
+
if (fs.existsSync(sibling)) return sibling;
|
|
230
230
|
} catch {}
|
|
231
231
|
try {
|
|
232
232
|
let cursor = path.dirname(fileURLToPath(import.meta.url));
|
|
233
233
|
for (let i = 0; i < 6; i += 1) {
|
|
234
234
|
const candidate = path.join(cursor, "extensions");
|
|
235
|
-
if (
|
|
235
|
+
if (fs.existsSync(candidate)) return candidate;
|
|
236
236
|
const parent = path.dirname(cursor);
|
|
237
237
|
if (parent === cursor) break;
|
|
238
238
|
cursor = parent;
|
|
@@ -251,20 +251,20 @@ function normalizeStringList(value) {
|
|
|
251
251
|
function resolvePluginManifestPath(rootDir) {
|
|
252
252
|
for (const filename of PLUGIN_MANIFEST_FILENAMES) {
|
|
253
253
|
const candidate = path.join(rootDir, filename);
|
|
254
|
-
if (
|
|
254
|
+
if (fs.existsSync(candidate)) return candidate;
|
|
255
255
|
}
|
|
256
256
|
return path.join(rootDir, PLUGIN_MANIFEST_FILENAME);
|
|
257
257
|
}
|
|
258
258
|
function loadPluginManifest(rootDir) {
|
|
259
259
|
const manifestPath = resolvePluginManifestPath(rootDir);
|
|
260
|
-
if (!
|
|
260
|
+
if (!fs.existsSync(manifestPath)) return {
|
|
261
261
|
ok: false,
|
|
262
262
|
error: `plugin manifest not found: ${manifestPath}`,
|
|
263
263
|
manifestPath
|
|
264
264
|
};
|
|
265
265
|
let raw;
|
|
266
266
|
try {
|
|
267
|
-
raw = JSON.parse(
|
|
267
|
+
raw = JSON.parse(fs.readFileSync(manifestPath, "utf-8"));
|
|
268
268
|
} catch (err) {
|
|
269
269
|
return {
|
|
270
270
|
ok: false,
|
|
@@ -331,7 +331,7 @@ function safeRealpathSync(targetPath, cache) {
|
|
|
331
331
|
const cached = cache?.get(targetPath);
|
|
332
332
|
if (cached) return cached;
|
|
333
333
|
try {
|
|
334
|
-
const resolved =
|
|
334
|
+
const resolved = fs.realpathSync(targetPath);
|
|
335
335
|
cache?.set(targetPath, resolved);
|
|
336
336
|
return resolved;
|
|
337
337
|
} catch {
|
|
@@ -340,7 +340,7 @@ function safeRealpathSync(targetPath, cache) {
|
|
|
340
340
|
}
|
|
341
341
|
function safeStatSync(targetPath) {
|
|
342
342
|
try {
|
|
343
|
-
return
|
|
343
|
+
return fs.statSync(targetPath);
|
|
344
344
|
} catch {
|
|
345
345
|
return null;
|
|
346
346
|
}
|
|
@@ -454,9 +454,9 @@ function isExtensionFile(filePath) {
|
|
|
454
454
|
}
|
|
455
455
|
function readPackageManifest(dir) {
|
|
456
456
|
const manifestPath = path.join(dir, "package.json");
|
|
457
|
-
if (!
|
|
457
|
+
if (!fs.existsSync(manifestPath)) return null;
|
|
458
458
|
try {
|
|
459
|
-
const raw =
|
|
459
|
+
const raw = fs.readFileSync(manifestPath, "utf-8");
|
|
460
460
|
return JSON.parse(raw);
|
|
461
461
|
} catch {
|
|
462
462
|
return null;
|
|
@@ -514,10 +514,10 @@ function resolvePackageEntrySource(params) {
|
|
|
514
514
|
return source;
|
|
515
515
|
}
|
|
516
516
|
function discoverInDirectory(params) {
|
|
517
|
-
if (!
|
|
517
|
+
if (!fs.existsSync(params.dir)) return;
|
|
518
518
|
let entries = [];
|
|
519
519
|
try {
|
|
520
|
-
entries =
|
|
520
|
+
entries = fs.readdirSync(params.dir, { withFileTypes: true });
|
|
521
521
|
} catch (err) {
|
|
522
522
|
params.diagnostics.push({
|
|
523
523
|
level: "warn",
|
|
@@ -579,7 +579,7 @@ function discoverInDirectory(params) {
|
|
|
579
579
|
"index.js",
|
|
580
580
|
"index.mjs",
|
|
581
581
|
"index.cjs"
|
|
582
|
-
].map((candidate) => path.join(fullPath, candidate)).find((candidate) =>
|
|
582
|
+
].map((candidate) => path.join(fullPath, candidate)).find((candidate) => fs.existsSync(candidate));
|
|
583
583
|
if (indexFile && isExtensionFile(indexFile)) addCandidate({
|
|
584
584
|
candidates: params.candidates,
|
|
585
585
|
diagnostics: params.diagnostics,
|
|
@@ -597,7 +597,7 @@ function discoverInDirectory(params) {
|
|
|
597
597
|
}
|
|
598
598
|
function discoverFromPath(params) {
|
|
599
599
|
const resolved = resolveUserPath(params.rawPath);
|
|
600
|
-
if (!
|
|
600
|
+
if (!fs.existsSync(resolved)) {
|
|
601
601
|
params.diagnostics.push({
|
|
602
602
|
level: "error",
|
|
603
603
|
message: `plugin path not found: ${resolved}`,
|
|
@@ -605,7 +605,7 @@ function discoverFromPath(params) {
|
|
|
605
605
|
});
|
|
606
606
|
return;
|
|
607
607
|
}
|
|
608
|
-
const stat =
|
|
608
|
+
const stat = fs.statSync(resolved);
|
|
609
609
|
if (stat.isFile()) {
|
|
610
610
|
if (!isExtensionFile(resolved)) {
|
|
611
611
|
params.diagnostics.push({
|
|
@@ -665,7 +665,7 @@ function discoverFromPath(params) {
|
|
|
665
665
|
"index.js",
|
|
666
666
|
"index.mjs",
|
|
667
667
|
"index.cjs"
|
|
668
|
-
].map((candidate) => path.join(resolved, candidate)).find((candidate) =>
|
|
668
|
+
].map((candidate) => path.join(resolved, candidate)).find((candidate) => fs.existsSync(candidate));
|
|
669
669
|
if (indexFile && isExtensionFile(indexFile)) {
|
|
670
670
|
addCandidate({
|
|
671
671
|
candidates: params.candidates,
|
|
@@ -779,7 +779,7 @@ function buildCacheKey(params) {
|
|
|
779
779
|
}
|
|
780
780
|
function safeStatMtimeMs(filePath) {
|
|
781
781
|
try {
|
|
782
|
-
return
|
|
782
|
+
return fs.statSync(filePath).mtimeMs;
|
|
783
783
|
} catch {
|
|
784
784
|
return null;
|
|
785
785
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { p as normalizeAccountId } from "./session-key-BCzIW1Y2.js";
|
|
3
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
3
|
+
import { r as normalizeChannelId } from "./plugins-DQYI3Fr-.js";
|
|
4
4
|
|
|
5
5
|
//#region src/config/markdown-tables.ts
|
|
6
6
|
var markdown_tables_exports = /* @__PURE__ */ __exportAll({ resolveMarkdownTableMode: () => resolveMarkdownTableMode });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as getActivePluginRegistry, s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-
|
|
1
|
+
import { c as getActivePluginRegistry, s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-CK4e9hn8.js";
|
|
2
2
|
|
|
3
3
|
//#region src/gateway/protocol/client-info.ts
|
|
4
4
|
const GATEWAY_CLIENT_IDS = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { o as resolveOAuthPath, s as resolveStateDir } from "./paths-
|
|
2
|
+
import { o as resolveOAuthPath, s as resolveStateDir } from "./paths-Cce4PUkG.js";
|
|
3
3
|
import { t as DEFAULT_AGENT_ID } from "./session-key-BCzIW1Y2.js";
|
|
4
|
-
import { I as resolveUserPath } from "./registry-
|
|
5
|
-
import { a as resolveAgentModelPrimary, n as resolveAgentConfig } from "./agent-scope-
|
|
6
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
7
|
-
import { r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-
|
|
8
|
-
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-
|
|
4
|
+
import { I as resolveUserPath } from "./registry-CK4e9hn8.js";
|
|
5
|
+
import { a as resolveAgentModelPrimary, n as resolveAgentConfig } from "./agent-scope-BxoUQqgM.js";
|
|
6
|
+
import { t as createSubsystemLogger } from "./subsystem-Bs9YvKLa.js";
|
|
7
|
+
import { r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-BaxDnULz.js";
|
|
8
|
+
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-C_qUP7p5.js";
|
|
9
9
|
import fs from "node:fs/promises";
|
|
10
10
|
import path from "node:path";
|
|
11
|
-
import
|
|
11
|
+
import fs$1 from "node:fs";
|
|
12
12
|
import { execFileSync } from "node:child_process";
|
|
13
13
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
14
14
|
import { createAssistantMessageEventStream, getEnvApiKey, getOAuthApiKey, getOAuthProviders } from "@mariozechner/pi-ai";
|
|
@@ -2959,7 +2959,7 @@ function resolveAuthStorePathForDisplay(agentDir) {
|
|
|
2959
2959
|
return pathname.startsWith("~") ? pathname : resolveUserPath(pathname);
|
|
2960
2960
|
}
|
|
2961
2961
|
function ensureAuthStoreFile(pathname) {
|
|
2962
|
-
if (
|
|
2962
|
+
if (fs$1.existsSync(pathname)) return;
|
|
2963
2963
|
saveJsonFile(pathname, {
|
|
2964
2964
|
version: AUTH_STORE_VERSION,
|
|
2965
2965
|
profiles: {}
|
|
@@ -3128,7 +3128,7 @@ function loadAuthProfileStoreForAgent(agentDir, _options) {
|
|
|
3128
3128
|
if (shouldWrite && legacy !== null) {
|
|
3129
3129
|
const legacyPath = resolveLegacyAuthStorePath(agentDir);
|
|
3130
3130
|
try {
|
|
3131
|
-
|
|
3131
|
+
fs$1.unlinkSync(legacyPath);
|
|
3132
3132
|
} catch (err) {
|
|
3133
3133
|
if (err?.code !== "ENOENT") log$1.warn("failed to delete legacy auth.json after migration", {
|
|
3134
3134
|
err,
|
|
@@ -10,7 +10,7 @@ import { t as assertSupportedRuntime } from "./runtime-guard-D7waq_Ho.js";
|
|
|
10
10
|
import { r as isSystemdUserServiceAvailable } from "./systemd-DlMdyFDY.js";
|
|
11
11
|
import { t as resolveGatewayService } from "./service-Cm9j9WzQ.js";
|
|
12
12
|
import { r as healthCommand } from "./health-BmaWws9G.js";
|
|
13
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
13
|
+
import { t as runOnboardingWizard } from "./onboarding-Peg7PNOz.js";
|
|
14
14
|
import { $ as setHuggingfaceApiKey, A as applyXaiConfig, B as applyVercelAiGatewayConfig, E as applyTogetherConfig, I as applyLitellmConfig, M as applyXiaomiConfig, O as applyVeniceConfig, P as applyZaiConfig, Q as setGeminiApiKey, R as applyCloudflareAiGatewayConfig, S as applyQianfanConfig, X as setAnthropicApiKey, Z as setCloudflareAiGatewayConfig, _ as applyMoonshotConfigCn, a as applyMinimaxApiConfig, at as setOpenrouterApiKey, b as applyOpenrouterConfig, ct as setTogetherApiKey, d as applyAuthProfileConfig, dt as setXaiApiKey, et as setKimiCodingApiKey, f as applyHuggingfaceConfig, ft as setXiaomiApiKey, g as applyMoonshotConfig, it as setOpencodeZenApiKey, l as applyMinimaxConfig, lt as setVeniceApiKey, m as applyKimiCodeConfig, n as validateAnthropicSetupToken, nt as setMinimaxApiKey, o as applyMinimaxApiConfigCn, ot as setQianfanApiKey, pt as setZaiApiKey, r as applyOpencodeZenConfig, rt as setMoonshotApiKey, st as setSyntheticApiKey, t as buildTokenProfileId, tt as setLitellmApiKey, ut as setVercelAiGatewayApiKey, w as applySyntheticConfig } from "./auth-token-Cmrk2TPo.js";
|
|
15
15
|
import { n as logConfigUpdated } from "./logging-BGewRZy0.js";
|
|
16
16
|
import { n as isDeprecatedAuthChoice, r as normalizeLegacyOnboardAuthChoice } from "./auth-choice-legacy-BKXTgyr4.js";
|
|
@@ -12,7 +12,7 @@ import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, r as isGate
|
|
|
12
12
|
import { r as isSystemdUserServiceAvailable } from "./systemd-riq8uNJQ.js";
|
|
13
13
|
import { t as resolveGatewayService } from "./service-Cl74hx8J.js";
|
|
14
14
|
import { r as healthCommand } from "./health-BBGgp_dC.js";
|
|
15
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
15
|
+
import { t as runOnboardingWizard } from "./onboarding-gQRA57l_.js";
|
|
16
16
|
import { $ as setHuggingfaceApiKey, A as applyXaiConfig, B as applyVercelAiGatewayConfig, E as applyTogetherConfig, I as applyLitellmConfig, M as applyXiaomiConfig, O as applyVeniceConfig, P as applyZaiConfig, Q as setGeminiApiKey, R as applyCloudflareAiGatewayConfig, S as applyQianfanConfig, X as setAnthropicApiKey, Z as setCloudflareAiGatewayConfig, _ as applyMoonshotConfigCn, a as applyMinimaxApiConfig, at as setOpenrouterApiKey, b as applyOpenrouterConfig, ct as setTogetherApiKey, d as applyAuthProfileConfig, dt as setXaiApiKey, et as setKimiCodingApiKey, f as applyHuggingfaceConfig, ft as setXiaomiApiKey, g as applyMoonshotConfig, it as setOpencodeZenApiKey, l as applyMinimaxConfig, lt as setVeniceApiKey, m as applyKimiCodeConfig, n as validateAnthropicSetupToken, nt as setMinimaxApiKey, o as applyMinimaxApiConfigCn, ot as setQianfanApiKey, pt as setZaiApiKey, r as applyOpencodeZenConfig, rt as setMoonshotApiKey, st as setSyntheticApiKey, t as buildTokenProfileId, tt as setLitellmApiKey, ut as setVercelAiGatewayApiKey, w as applySyntheticConfig } from "./auth-token-BnOynwk4.js";
|
|
17
17
|
import { n as logConfigUpdated } from "./logging-BzzwiKjv.js";
|
|
18
18
|
import { n as isDeprecatedAuthChoice, r as normalizeLegacyOnboardAuthChoice } from "./auth-choice-legacy-Ch38-Kbr.js";
|
|
@@ -302,7 +302,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
302
302
|
mode
|
|
303
303
|
});
|
|
304
304
|
await writeConfigFile(nextConfig);
|
|
305
|
-
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-
|
|
305
|
+
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-C4DSBMrV.js");
|
|
306
306
|
const { launchedTui } = await finalizeOnboardingWizard({
|
|
307
307
|
flow,
|
|
308
308
|
opts,
|
|
@@ -304,7 +304,7 @@ async function runOnboardingWizard(opts, runtime = defaultRuntime, prompter) {
|
|
|
304
304
|
mode
|
|
305
305
|
});
|
|
306
306
|
await writeConfigFile(nextConfig);
|
|
307
|
-
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-
|
|
307
|
+
const { finalizeOnboardingWizard } = await import("./onboarding.finalize-D26o-hBA.js");
|
|
308
308
|
const { launchedTui } = await finalizeOnboardingWizard({
|
|
309
309
|
flow,
|
|
310
310
|
opts,
|