@symerian/symi 3.5.7 → 3.5.8
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/{agent-scope-B1Ina6jV.js → agent-scope-DnJEvgMH.js} +2 -2
- package/dist/{auth-profiles-BSw0aQND.js → auth-profiles-DVc0P8H7.js} +3 -3
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +31 -31
- package/dist/bundled/bootstrap-extra-files/handler.js +4 -4
- package/dist/bundled/session-memory/handler.js +30 -30
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{chrome-DNssqQJs.js → chrome-3jl2ulOE.js} +7 -7
- package/dist/{chrome-OTJg3QKn.js → chrome-Bu0sk8jc.js} +3 -3
- package/dist/{chunk-BkYIP_hB.js → chunk-DBVjqPm2.js} +1 -1
- package/dist/{commands-registry-BuOUfpmg.js → commands-registry-yWbIOOoD.js} +4 -4
- package/dist/{consolidate-Dyh_aESo.js → consolidate-JptFSFxz.js} +2 -2
- package/dist/control-ui/css/style.css +14 -0
- package/dist/control-ui/js/slash-autocomplete.js +195 -43
- package/dist/{deliver-BiWlR84Y.js → deliver-BZ-5d1Pv.js} +15 -15
- package/dist/{deliver-q23ar_Pm.js → deliver-f3cIWxXT.js} +4 -4
- package/dist/{diagnostic-BALvP9wI.js → diagnostic-BlK1QQVx.js} +1 -1
- package/dist/extensionAPI.js +4 -4
- package/dist/{frontmatter-CJEX1BrH.js → frontmatter-Dm9ehpNF.js} +2 -2
- package/dist/llm-slug-generator.js +30 -30
- package/dist/{local-roots-C7fBKoOI.js → local-roots-Ab2ch8iw.js} +3 -3
- package/dist/{manager-D9m8F3HR.js → manager-CnBU0aOR.js} +1 -1
- package/dist/{manager-CpBJ1BE6.js → manager-_ZfCrpDq.js} +8 -8
- package/dist/{manifest-registry-BGJu2aC-.js → manifest-registry-B1g2QOPw.js} +1 -1
- package/dist/{markdown-tables-CGqX2WvO.js → markdown-tables-CVcd6XRG.js} +1 -1
- package/dist/{model-selection-BqshlIZc.js → model-selection-C_XFh0kf.js} +1 -1
- package/dist/{pi-auth-json-DCGR3yfh.js → pi-auth-json-BxGRaPJK.js} +2 -2
- package/dist/{pi-embedded-C2-v_4OT.js → pi-embedded-C9wLrFjj.js} +10 -10
- package/dist/{plugins-B06cTFHC.js → plugins-BcGFMr_d.js} +1 -1
- package/dist/{pw-ai-DY_6l11g.js → pw-ai-B5v5n5ol.js} +9 -9
- package/dist/{pw-ai-v__CyAlM.js → pw-ai-DOAsQ5NX.js} +1 -1
- package/dist/{qmd-manager-Bc7yrt9d.js → qmd-manager-CM1Zb2vR.js} +5 -5
- package/dist/{registry-C-JddWwo.js → registry-9AaJQms1.js} +2 -2
- package/dist/{replies-D0FYSIJg.js → replies-Rf4NZFNR.js} +3 -3
- package/dist/{reply-prefix-D0NzzC4I.js → reply-prefix-kh8vLHcr.js} +1 -1
- package/dist/{resolve-route-CDsQda0z.js → resolve-route-Cah2oBoB.js} +3 -3
- package/dist/{send-C75uSv6p.js → send-BNMro1go.js} +7 -7
- package/dist/{shell-env-B1lDWz4t.js → shell-env-DUnzZNS9.js} +1 -1
- package/dist/{skill-commands-JIccKWkf.js → skill-commands-DG2orCQ1.js} +5 -5
- package/dist/{skills-Dm4gX4Tl.js → skills-BfqpCx1S.js} +6 -6
- package/dist/{sqlite-CmMv0ans.js → sqlite-B-yVqz_U.js} +1 -1
- package/dist/{ssrf-DNhyFMRW.js → ssrf-CD6rSfmA.js} +10 -10
- package/dist/{subsystem-DzRUKS9f.js → subsystem-DhOo2FZn.js} +1 -1
- package/dist/{synthesis-CmQvOHg6.js → synthesis-C8CALFUp.js} +30 -30
- package/dist/{synthesis-Dq-zHW08.js → synthesis-DIkOQnhF.js} +4 -4
- package/dist/{thinking-h_Lv1OKF.js → thinking-Dc4USx6E.js} +2 -2
- package/dist/{tokens-D_vCJSzF.js → tokens-BHHkQK-k.js} +1 -1
- package/dist/{tool-loop-detection-DGaNCZG0.js → tool-loop-detection-B2hNHeN_.js} +2 -2
- package/dist/{unified-runner-Cu3lGa3A.js → unified-runner-DR-adeyL.js} +47 -47
- package/dist/{workspace-CsaDUuDn.js → workspace-OBnI5mKu.js} +2 -2
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { i as resolveGatewayPort, s as resolveStateDir, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-CE7eVGHg.js";
|
|
3
3
|
import { c as resolveAgentIdFromSessionKey, o as normalizeAgentId, p as normalizeOptionalAccountId, r as buildAgentMainSessionKey, s as normalizeMainKey, t as DEFAULT_AGENT_ID } from "./session-key-BmQ2R1ev.js";
|
|
4
|
-
import { J as resolveConfigDir, K as normalizeE164, R as resolvePreferredSymiTmpDir, Y as resolveUserPath, c as getActivePluginRegistry, g as createInternalHookEvent, t as CHANNEL_IDS, tt as truncateUtf16Safe, y as triggerInternalHook } from "./registry-
|
|
5
|
-
import { l as resolveSessionAgentId, n as resolveAgentConfig } from "./agent-scope-
|
|
6
|
-
import { r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
7
|
-
import { _ as runExec, a as DEFAULT_SYMICORE_FILENAME, c as DEFAULT_USER_FILENAME, i as DEFAULT_IDENTITY_FILENAME, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SYMIPULSE_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME } from "./workspace-
|
|
4
|
+
import { J as resolveConfigDir, K as normalizeE164, R as resolvePreferredSymiTmpDir, Y as resolveUserPath, c as getActivePluginRegistry, g as createInternalHookEvent, t as CHANNEL_IDS, tt as truncateUtf16Safe, y as triggerInternalHook } from "./registry-9AaJQms1.js";
|
|
5
|
+
import { l as resolveSessionAgentId, n as resolveAgentConfig } from "./agent-scope-DnJEvgMH.js";
|
|
6
|
+
import { r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-DhOo2FZn.js";
|
|
7
|
+
import { _ as runExec, a as DEFAULT_SYMICORE_FILENAME, c as DEFAULT_USER_FILENAME, i as DEFAULT_IDENTITY_FILENAME, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SYMIPULSE_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME } from "./workspace-OBnI5mKu.js";
|
|
8
8
|
import { t as formatCliCommand } from "./command-format-BrrHNE8r.js";
|
|
9
9
|
import { n as isPidAlive, t as resolveProcessScopedMap } from "./process-scoped-map-B-dHc_9I.js";
|
|
10
|
-
import { c as loadConfig, d as writeConfigFile, m as parseByteSize, p as parseDurationMs, s as createConfigIO, t as SsrFBlockedError } from "./ssrf-
|
|
10
|
+
import { c as loadConfig, d as writeConfigFile, m as parseByteSize, p as parseDurationMs, s as createConfigIO, t as SsrFBlockedError } from "./ssrf-CD6rSfmA.js";
|
|
11
11
|
import { t as parseBooleanValue } from "./boolean-BsqeuxE6.js";
|
|
12
|
-
import { A as DEFAULT_BROWSER_EVALUATE_ENABLED, D as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, E as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, M as DEFAULT_SYMI_BROWSER_ENABLED, N as DEFAULT_SYMI_BROWSER_PROFILE_NAME, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, S as stopChromeExtensionRelayServer, _ as fetchJson, a as resolveSymiUserDataDir, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, g as appendCdpPath, h as withBrowserNavigationPolicy, i as launchSymiChrome, j as DEFAULT_SYMI_BROWSER_COLOR, k as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, l as createTargetViaCdp, m as assertBrowserNavigationAllowed, n as isChromeCdpReady, o as stopSymiChrome, p as InvalidBrowserNavigationUrlError, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as fetchOk, w as isLoopbackHost, x as ensureChromeExtensionRelayServer } from "./chrome-
|
|
13
|
-
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-
|
|
12
|
+
import { A as DEFAULT_BROWSER_EVALUATE_ENABLED, D as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, E as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, M as DEFAULT_SYMI_BROWSER_ENABLED, N as DEFAULT_SYMI_BROWSER_PROFILE_NAME, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, S as stopChromeExtensionRelayServer, _ as fetchJson, a as resolveSymiUserDataDir, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, g as appendCdpPath, h as withBrowserNavigationPolicy, i as launchSymiChrome, j as DEFAULT_SYMI_BROWSER_COLOR, k as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, l as createTargetViaCdp, m as assertBrowserNavigationAllowed, n as isChromeCdpReady, o as stopSymiChrome, p as InvalidBrowserNavigationUrlError, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as fetchOk, w as isLoopbackHost, x as ensureChromeExtensionRelayServer } from "./chrome-Bu0sk8jc.js";
|
|
13
|
+
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-BfqpCx1S.js";
|
|
14
14
|
import { n as formatErrorMessage, t as extractErrorCode } from "./errors-C89ppfp9.js";
|
|
15
|
-
import { b as SafeOpenError, d as extensionForMime, i as buildImageResizeSideGrid, l as resizeToJpeg, o as getImageMetadata, r as IMAGE_REDUCE_QUALITY_STEPS, t as getAgentScopedMediaLocalRoots, u as detectMime, x as openFileWithinRoot } from "./local-roots-
|
|
16
|
-
import { _ as normalizeHyphenSlug, d as getChannelDock, o as normalizeThinkLevel } from "./thinking-
|
|
17
|
-
import { c as resolveChunkMode, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph, v as listDeliverableMessageChannels, y as normalizeMessageChannel } from "./chunk-
|
|
15
|
+
import { b as SafeOpenError, d as extensionForMime, i as buildImageResizeSideGrid, l as resizeToJpeg, o as getImageMetadata, r as IMAGE_REDUCE_QUALITY_STEPS, t as getAgentScopedMediaLocalRoots, u as detectMime, x as openFileWithinRoot } from "./local-roots-Ab2ch8iw.js";
|
|
16
|
+
import { _ as normalizeHyphenSlug, d as getChannelDock, o as normalizeThinkLevel } from "./thinking-Dc4USx6E.js";
|
|
17
|
+
import { c as resolveChunkMode, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph, v as listDeliverableMessageChannels, y as normalizeMessageChannel } from "./chunk-DBVjqPm2.js";
|
|
18
18
|
import { t as normalizeChatType } from "./chat-type-CE6cJOyt.js";
|
|
19
19
|
import { n as resolveConversationLabel } from "./conversation-label-BVa8JTl2.js";
|
|
20
|
-
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
20
|
+
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-BcGFMr_d.js";
|
|
21
21
|
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-BsT3BvfH.js";
|
|
22
22
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-ChU6IQwp.js";
|
|
23
|
-
import { n as isSilentReplyText, t as SILENT_REPLY_TOKEN } from "./tokens-
|
|
23
|
+
import { n as isSilentReplyText, t as SILENT_REPLY_TOKEN } from "./tokens-BHHkQK-k.js";
|
|
24
24
|
import path, { posix } from "node:path";
|
|
25
25
|
import fs, { existsSync, realpathSync } from "node:fs";
|
|
26
26
|
import os from "node:os";
|
|
@@ -939,7 +939,7 @@ function isModuleNotFoundError(err) {
|
|
|
939
939
|
}
|
|
940
940
|
async function loadPwAiModule(mode) {
|
|
941
941
|
try {
|
|
942
|
-
return await import("./pw-ai-
|
|
942
|
+
return await import("./pw-ai-B5v5n5ol.js");
|
|
943
943
|
} catch (err) {
|
|
944
944
|
if (mode === "soft") return null;
|
|
945
945
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -3536,11 +3536,11 @@ function createProfileContext(opts, profile) {
|
|
|
3536
3536
|
const userDataDir = resolveSymiUserDataDir(profile.name);
|
|
3537
3537
|
const profileState = getProfileState();
|
|
3538
3538
|
if (await isHttpReachable(300) && !profileState.running) try {
|
|
3539
|
-
await (await import("./pw-ai-
|
|
3539
|
+
await (await import("./pw-ai-B5v5n5ol.js")).closePlaywrightBrowserConnection();
|
|
3540
3540
|
} catch {}
|
|
3541
3541
|
if (profileState.running) await stopRunningBrowser();
|
|
3542
3542
|
try {
|
|
3543
|
-
await (await import("./pw-ai-
|
|
3543
|
+
await (await import("./pw-ai-B5v5n5ol.js")).closePlaywrightBrowserConnection();
|
|
3544
3544
|
} catch {}
|
|
3545
3545
|
if (!fs.existsSync(userDataDir)) return {
|
|
3546
3546
|
moved: false,
|
|
@@ -9,7 +9,7 @@ import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-CZ_mYw
|
|
|
9
9
|
import { _ as listDeliverableMessageChannels, c as resolveChunkMode, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph, v as normalizeMessageChannel } from "./chunk-CAZujdOi.js";
|
|
10
10
|
import { c as loadConfig, d as writeConfigFile, m as parseByteSize, p as parseDurationMs, s as createConfigIO, t as SsrFBlockedError } from "./ssrf-BCSnhba8.js";
|
|
11
11
|
import { t as parseBooleanValue } from "./boolean-BW6OTjPi.js";
|
|
12
|
-
import { A as DEFAULT_BROWSER_EVALUATE_ENABLED, D as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, E as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, M as DEFAULT_SYMI_BROWSER_ENABLED, N as DEFAULT_SYMI_BROWSER_PROFILE_NAME, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, S as stopChromeExtensionRelayServer, _ as fetchJson, a as resolveSymiUserDataDir, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, g as appendCdpPath, h as withBrowserNavigationPolicy, i as launchSymiChrome, j as DEFAULT_SYMI_BROWSER_COLOR, k as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, l as createTargetViaCdp, m as assertBrowserNavigationAllowed, n as isChromeCdpReady, o as stopSymiChrome, p as InvalidBrowserNavigationUrlError, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as fetchOk, w as isLoopbackHost, x as ensureChromeExtensionRelayServer } from "./chrome-
|
|
12
|
+
import { A as DEFAULT_BROWSER_EVALUATE_ENABLED, D as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, E as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, M as DEFAULT_SYMI_BROWSER_ENABLED, N as DEFAULT_SYMI_BROWSER_PROFILE_NAME, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, S as stopChromeExtensionRelayServer, _ as fetchJson, a as resolveSymiUserDataDir, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, g as appendCdpPath, h as withBrowserNavigationPolicy, i as launchSymiChrome, j as DEFAULT_SYMI_BROWSER_COLOR, k as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, l as createTargetViaCdp, m as assertBrowserNavigationAllowed, n as isChromeCdpReady, o as stopSymiChrome, p as InvalidBrowserNavigationUrlError, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as fetchOk, w as isLoopbackHost, x as ensureChromeExtensionRelayServer } from "./chrome-3jl2ulOE.js";
|
|
13
13
|
import { t as formatCliCommand } from "./command-format-DPd9RN2g.js";
|
|
14
14
|
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-DO7WNsVJ.js";
|
|
15
15
|
import { n as formatErrorMessage, t as extractErrorCode } from "./errors-BEU7IHU6.js";
|
|
@@ -1331,7 +1331,7 @@ function isModuleNotFoundError(err) {
|
|
|
1331
1331
|
}
|
|
1332
1332
|
async function loadPwAiModule(mode) {
|
|
1333
1333
|
try {
|
|
1334
|
-
return await import("./pw-ai-
|
|
1334
|
+
return await import("./pw-ai-DOAsQ5NX.js");
|
|
1335
1335
|
} catch (err) {
|
|
1336
1336
|
if (mode === "soft") return null;
|
|
1337
1337
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -3928,11 +3928,11 @@ function createProfileContext(opts, profile) {
|
|
|
3928
3928
|
const userDataDir = resolveSymiUserDataDir(profile.name);
|
|
3929
3929
|
const profileState = getProfileState();
|
|
3930
3930
|
if (await isHttpReachable(300) && !profileState.running) try {
|
|
3931
|
-
await (await import("./pw-ai-
|
|
3931
|
+
await (await import("./pw-ai-DOAsQ5NX.js")).closePlaywrightBrowserConnection();
|
|
3932
3932
|
} catch {}
|
|
3933
3933
|
if (profileState.running) await stopRunningBrowser();
|
|
3934
3934
|
try {
|
|
3935
|
-
await (await import("./pw-ai-
|
|
3935
|
+
await (await import("./pw-ai-DOAsQ5NX.js")).closePlaywrightBrowserConnection();
|
|
3936
3936
|
} catch {}
|
|
3937
3937
|
if (!fs.existsSync(userDataDir)) return {
|
|
3938
3938
|
moved: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-DhOo2FZn.js";
|
|
3
3
|
import { n as getDiagnosticSessionState } from "./diagnostic-session-state-BDfanaOY.js";
|
|
4
4
|
|
|
5
5
|
//#region src/infra/diagnostic-events.ts
|
package/dist/extensionAPI.js
CHANGED
|
@@ -6,8 +6,8 @@ import { _ as DEFAULT_PROVIDER, g as DEFAULT_MODEL, p as resolveThinkingDefault
|
|
|
6
6
|
import { a as resolveAgentIdentity } from "./reply-prefix-i-FPYcoQ.js";
|
|
7
7
|
import "./plugins-CZ_mYwXq.js";
|
|
8
8
|
import "./replies-0nzkXt6o.js";
|
|
9
|
-
import { a as resolveAgentTimeoutMs, r as runEmbeddedPiAgent } from "./pi-embedded-
|
|
10
|
-
import { $ as loadSessionStore, nt as saveSessionStore } from "./deliver-
|
|
9
|
+
import { a as resolveAgentTimeoutMs, r as runEmbeddedPiAgent } from "./pi-embedded-C9wLrFjj.js";
|
|
10
|
+
import { $ as loadSessionStore, nt as saveSessionStore } from "./deliver-f3cIWxXT.js";
|
|
11
11
|
import "./diagnostic-BdRnGknC.js";
|
|
12
12
|
import "./diagnostic-session-state-DpxCUzoM.js";
|
|
13
13
|
import "./chunk-CAZujdOi.js";
|
|
@@ -16,14 +16,14 @@ import "./ssrf-BCSnhba8.js";
|
|
|
16
16
|
import "./boolean-BW6OTjPi.js";
|
|
17
17
|
import "./shell-env-DgjeObDZ.js";
|
|
18
18
|
import "./manifest-registry-CAWGTwb5.js";
|
|
19
|
-
import "./chrome-
|
|
19
|
+
import "./chrome-3jl2ulOE.js";
|
|
20
20
|
import "./skills-DO7WNsVJ.js";
|
|
21
21
|
import "./redact-DSOAcWMe.js";
|
|
22
22
|
import "./errors-BEU7IHU6.js";
|
|
23
23
|
import "./tokens-yWO1wD7Z.js";
|
|
24
24
|
import "./thinking-DgjGxdSP.js";
|
|
25
25
|
import { n as resolveSessionFilePath, s as resolveStorePath } from "./paths-BsT3BvfH.js";
|
|
26
|
-
import "./manager-
|
|
26
|
+
import "./manager-CnBU0aOR.js";
|
|
27
27
|
import "./github-copilot-token-dYUr1mDQ.js";
|
|
28
28
|
import "./sqlite-D8iYC_CU.js";
|
|
29
29
|
import "./markdown-tables-jQzXAsf3.js";
|
|
@@ -2,7 +2,7 @@ import { t as parseBooleanValue } from "./boolean-BsqeuxE6.js";
|
|
|
2
2
|
import { n as MANIFEST_KEY, t as LEGACY_MANIFEST_KEYS } from "./legacy-names-B7Aqv95X.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs from "node:fs";
|
|
5
|
-
import
|
|
5
|
+
import json5 from "json5";
|
|
6
6
|
import YAML from "yaml";
|
|
7
7
|
|
|
8
8
|
//#region src/shared/config-eval.ts
|
|
@@ -210,7 +210,7 @@ function resolveSymiManifestBlock(params) {
|
|
|
210
210
|
const raw = getFrontmatterString(params.frontmatter, params.key ?? "metadata");
|
|
211
211
|
if (!raw) return;
|
|
212
212
|
try {
|
|
213
|
-
const parsed =
|
|
213
|
+
const parsed = json5.parse(raw);
|
|
214
214
|
if (!parsed || typeof parsed !== "object") return;
|
|
215
215
|
const manifestKeys = [MANIFEST_KEY, ...LEGACY_MANIFEST_KEYS];
|
|
216
216
|
for (const key of manifestKeys) {
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import "./paths-CE7eVGHg.js";
|
|
2
|
-
import "./registry-
|
|
3
|
-
import { o as resolveAgentWorkspaceDir, s as resolveDefaultAgentId } from "./agent-scope-
|
|
4
|
-
import "./subsystem-
|
|
5
|
-
import "./workspace-
|
|
6
|
-
import { t as runAgentTurn } from "./unified-runner-
|
|
7
|
-
import "./auth-profiles-
|
|
8
|
-
import "./model-selection-
|
|
9
|
-
import "./deliver-
|
|
10
|
-
import "./ssrf-
|
|
2
|
+
import "./registry-9AaJQms1.js";
|
|
3
|
+
import { o as resolveAgentWorkspaceDir, s as resolveDefaultAgentId } from "./agent-scope-DnJEvgMH.js";
|
|
4
|
+
import "./subsystem-DhOo2FZn.js";
|
|
5
|
+
import "./workspace-OBnI5mKu.js";
|
|
6
|
+
import { t as runAgentTurn } from "./unified-runner-DR-adeyL.js";
|
|
7
|
+
import "./auth-profiles-DVc0P8H7.js";
|
|
8
|
+
import "./model-selection-C_XFh0kf.js";
|
|
9
|
+
import "./deliver-BZ-5d1Pv.js";
|
|
10
|
+
import "./ssrf-CD6rSfmA.js";
|
|
11
11
|
import "./boolean-BsqeuxE6.js";
|
|
12
|
-
import "./shell-env-
|
|
13
|
-
import "./manifest-registry-
|
|
14
|
-
import "./chrome-
|
|
15
|
-
import "./frontmatter-
|
|
16
|
-
import "./skills-
|
|
12
|
+
import "./shell-env-DUnzZNS9.js";
|
|
13
|
+
import "./manifest-registry-B1g2QOPw.js";
|
|
14
|
+
import "./chrome-Bu0sk8jc.js";
|
|
15
|
+
import "./frontmatter-Dm9ehpNF.js";
|
|
16
|
+
import "./skills-BfqpCx1S.js";
|
|
17
17
|
import "./redact-CSGZUFxa.js";
|
|
18
18
|
import "./errors-C89ppfp9.js";
|
|
19
|
-
import "./local-roots-
|
|
20
|
-
import "./thinking-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./plugins-
|
|
23
|
-
import "./send-
|
|
19
|
+
import "./local-roots-Ab2ch8iw.js";
|
|
20
|
+
import "./thinking-Dc4USx6E.js";
|
|
21
|
+
import "./chunk-DBVjqPm2.js";
|
|
22
|
+
import "./plugins-BcGFMr_d.js";
|
|
23
|
+
import "./send-BNMro1go.js";
|
|
24
24
|
import "./paths-BsT3BvfH.js";
|
|
25
|
-
import "./tokens-
|
|
26
|
-
import "./diagnostic-
|
|
25
|
+
import "./tokens-BHHkQK-k.js";
|
|
26
|
+
import "./diagnostic-BlK1QQVx.js";
|
|
27
27
|
import "./diagnostic-session-state-BDfanaOY.js";
|
|
28
|
-
import "./manager-
|
|
28
|
+
import "./manager-_ZfCrpDq.js";
|
|
29
29
|
import "./github-copilot-token-uhEBNQfj.js";
|
|
30
|
-
import "./pi-auth-json-
|
|
31
|
-
import "./reply-prefix-
|
|
32
|
-
import "./sqlite-
|
|
33
|
-
import "./markdown-tables-
|
|
34
|
-
import "./commands-registry-
|
|
35
|
-
import "./skill-commands-
|
|
30
|
+
import "./pi-auth-json-BxGRaPJK.js";
|
|
31
|
+
import "./reply-prefix-kh8vLHcr.js";
|
|
32
|
+
import "./sqlite-B-yVqz_U.js";
|
|
33
|
+
import "./markdown-tables-CVcd6XRG.js";
|
|
34
|
+
import "./commands-registry-yWbIOOoD.js";
|
|
35
|
+
import "./skill-commands-DG2orCQ1.js";
|
|
36
36
|
import "./pi-model-discovery-Rgm3jE5N.js";
|
|
37
|
-
import "./resolve-route-
|
|
38
|
-
import "./replies-
|
|
37
|
+
import "./resolve-route-Cah2oBoB.js";
|
|
38
|
+
import "./replies-Rf4NZFNR.js";
|
|
39
39
|
|
|
40
40
|
//#region src/hooks/llm-slug-generator.ts
|
|
41
41
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as resolveStateDir } from "./paths-CE7eVGHg.js";
|
|
2
|
-
import { R as resolvePreferredSymiTmpDir } from "./registry-
|
|
3
|
-
import { o as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import { _ as runExec } from "./workspace-
|
|
2
|
+
import { R as resolvePreferredSymiTmpDir } from "./registry-9AaJQms1.js";
|
|
3
|
+
import { o as resolveAgentWorkspaceDir } from "./agent-scope-DnJEvgMH.js";
|
|
4
|
+
import { _ as runExec } from "./workspace-OBnI5mKu.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { constants } from "node:fs";
|
|
7
7
|
import os from "node:os";
|
|
@@ -4449,7 +4449,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
4449
4449
|
* to bypass the min-interval guard (CLI use).
|
|
4450
4450
|
*/
|
|
4451
4451
|
async runL3CycleIfDue(params) {
|
|
4452
|
-
const [{ runL3Cycle, runL3CycleIfDue }, { createSynthesizer }] = await Promise.all([import("./consolidate-CwJCvaOH.js"), import("./synthesis-
|
|
4452
|
+
const [{ runL3Cycle, runL3CycleIfDue }, { createSynthesizer }] = await Promise.all([import("./consolidate-CwJCvaOH.js"), import("./synthesis-DIkOQnhF.js")]);
|
|
4453
4453
|
const synthesize = createSynthesizer({
|
|
4454
4454
|
cfg: this.cfg,
|
|
4455
4455
|
agentId: this.agentId,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { s as resolveStateDir } from "./paths-CE7eVGHg.js";
|
|
3
|
-
import { $ as sleep, B as clampInt, V as clampNumber$1, Y as resolveUserPath, tt as truncateUtf16Safe } from "./registry-
|
|
4
|
-
import { n as resolveAgentConfig, o as resolveAgentWorkspaceDir, r as resolveAgentDir } from "./agent-scope-
|
|
5
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
6
|
-
import { d as ensureAuthProfileStore, f as resolveAuthStorePathForDisplay, g as normalizeSecretInput, h as normalizeOptionalSecretInput, l as listProfilesForProvider, n as resolveAuthProfileOrder, s as resolveApiKeyForProfile } from "./auth-profiles-
|
|
3
|
+
import { $ as sleep, B as clampInt, V as clampNumber$1, Y as resolveUserPath, tt as truncateUtf16Safe } from "./registry-9AaJQms1.js";
|
|
4
|
+
import { n as resolveAgentConfig, o as resolveAgentWorkspaceDir, r as resolveAgentDir } from "./agent-scope-DnJEvgMH.js";
|
|
5
|
+
import { t as createSubsystemLogger } from "./subsystem-DhOo2FZn.js";
|
|
6
|
+
import { d as ensureAuthProfileStore, f as resolveAuthStorePathForDisplay, g as normalizeSecretInput, h as normalizeOptionalSecretInput, l as listProfilesForProvider, n as resolveAuthProfileOrder, s as resolveApiKeyForProfile } from "./auth-profiles-DVc0P8H7.js";
|
|
7
7
|
import { t as formatCliCommand } from "./command-format-BrrHNE8r.js";
|
|
8
|
-
import { c as normalizeProviderId, h as getProviderAdapter } from "./model-selection-
|
|
9
|
-
import { s as isTruthyEnvValue, t as getShellEnvAppliedKeys } from "./shell-env-
|
|
8
|
+
import { c as normalizeProviderId, h as getProviderAdapter } from "./model-selection-C_XFh0kf.js";
|
|
9
|
+
import { s as isTruthyEnvValue, t as getShellEnvAppliedKeys } from "./shell-env-DUnzZNS9.js";
|
|
10
10
|
import { n as formatErrorMessage } from "./errors-C89ppfp9.js";
|
|
11
11
|
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-BsT3BvfH.js";
|
|
12
12
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-ChU6IQwp.js";
|
|
13
13
|
import { a as hashText, c as normalizeExtraMemoryPaths, d as runWithConcurrency, i as ensureDir, l as parseEmbedding, m as statRegularFile, n as chunkMarkdown, o as isMemoryPath, p as isFileMissingError, r as cosineSimilarity, s as listMemoryFiles, t as buildFileEntry, u as remapChunkLines } from "./internal-BYHsj5p6.js";
|
|
14
|
-
import { i as sessionPathForFile, n as buildSessionEntry, r as listSessionFilesForAgent, t as requireNodeSqlite } from "./sqlite-
|
|
14
|
+
import { i as sessionPathForFile, n as buildSessionEntry, r as listSessionFilesForAgent, t as requireNodeSqlite } from "./sqlite-B-yVqz_U.js";
|
|
15
15
|
import path from "node:path";
|
|
16
16
|
import fs from "node:fs";
|
|
17
17
|
import os from "node:os";
|
|
@@ -4449,7 +4449,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
4449
4449
|
* to bypass the min-interval guard (CLI use).
|
|
4450
4450
|
*/
|
|
4451
4451
|
async runL3CycleIfDue(params) {
|
|
4452
|
-
const [{ runL3Cycle, runL3CycleIfDue }, { createSynthesizer }] = await Promise.all([import("./consolidate-
|
|
4452
|
+
const [{ runL3Cycle, runL3CycleIfDue }, { createSynthesizer }] = await Promise.all([import("./consolidate-JptFSFxz.js"), import("./synthesis-C8CALFUp.js")]);
|
|
4453
4453
|
const synthesize = createSynthesizer({
|
|
4454
4454
|
cfg: this.cfg,
|
|
4455
4455
|
agentId: this.agentId,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as isRecord, J as resolveConfigDir, Y as resolveUserPath } from "./registry-
|
|
1
|
+
import { G as isRecord, J as resolveConfigDir, Y as resolveUserPath } from "./registry-9AaJQms1.js";
|
|
2
2
|
import { n as MANIFEST_KEY } from "./legacy-names-B7Aqv95X.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs from "node:fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { f as normalizeAccountId } from "./session-key-BmQ2R1ev.js";
|
|
3
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
3
|
+
import { r as normalizeChannelId } from "./plugins-BcGFMr_d.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 { i as resolveAgentModelPrimary, n as resolveAgentConfig } from "./agent-scope-
|
|
1
|
+
import { i as resolveAgentModelPrimary, n as resolveAgentConfig } from "./agent-scope-DnJEvgMH.js";
|
|
2
2
|
|
|
3
3
|
//#region src/agents/defaults.ts
|
|
4
4
|
const DEFAULT_PROVIDER = "anthropic";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { d as ensureAuthProfileStore, h as normalizeOptionalSecretInput } from "./auth-profiles-
|
|
3
|
-
import { c as normalizeProviderId } from "./model-selection-
|
|
2
|
+
import { d as ensureAuthProfileStore, h as normalizeOptionalSecretInput } from "./auth-profiles-DVc0P8H7.js";
|
|
3
|
+
import { c as normalizeProviderId } from "./model-selection-C_XFh0kf.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ import { i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as reso
|
|
|
9
9
|
import { t as normalizeChatType } from "./chat-type-Acj2OK2p.js";
|
|
10
10
|
import { i as resolveSlackAccount, n as listChannelPlugins, o as resolveSlackAppToken, r as normalizeChannelId$1, s as resolveSlackBotToken, t as getChannelPlugin } from "./plugins-CZ_mYwXq.js";
|
|
11
11
|
import { S as resolveSlackChannelId, _ as resolveSlackWebClientOptions, a as sendMessageSlack, b as buildSlackBlocksFallbackText, c as getDefaultLocalRoots, d as fetchRemoteMedia, f as readResponseWithLimit, g as createSlackWebClient, h as fetchWithTimeout, i as resolveSlackThreadTs, l as loadWebMedia, m as bindAbortRelay, n as deliverReplies, o as renderMarkdownWithMarkers, p as fetchWithSsrFGuard, s as markdownToIRWithMeta, t as createSlackReplyDeliveryPlan, u as MediaFetchError, v as parseSlackBlocksInput, x as parseSlackTarget, y as validateSlackBlocksArray } from "./replies-0nzkXt6o.js";
|
|
12
|
-
import { $ as loadSessionStore, $t as resolveToolProfilePolicy, A as formatRawAssistantErrorForUi, At as resolveMainSessionKey, B as isRateLimitAssistantError, Bt as saveMediaBuffer, C as downgradeOpenAIReasoningBlocks, Ct as resolveChannelResetConfig, D as classifyFailoverReason, Dt as DEFAULT_RESET_TRIGGERS, E as BILLING_ERROR_USER_MESSAGE, Et as resolveThreadFlag, F as isCompactionFailureError, Ft as createBrowserRouteContext, G as parseImageSizeError, Gt as resolveBrowserControlAuth, H as isTimeoutErrorMessage, Ht as resolveExistingPathsWithinRoot, I as isContextOverflowError, It as registerBrowserRoutes, J as resolveSandboxContext, Jt as collectExplicitAllowlist, K as sanitizeUserFacingText, Kt as applyOwnerOnlyToolPolicy, L as isFailoverAssistantError, Lt as resolveBrowserConfig, M as isAuthAssistantError, Mt as resolveGroupSessionKey, N as isBillingAssistantError, Nt as acquireSessionWriteLock, O as formatAssistantErrorText, Ot as resolveFreshSessionTotalTokens, P as isCloudCodeAssistFormatError, Pt as resolveSessionLockMaxHoldFromTimeout, Q as resolveAndPersistSessionFile, Qt as normalizeToolName$1, R as isFailoverErrorMessage, Rt as resolveProfile, S as extractToolResultId, St as evaluateSessionFreshness, T as isGoogleModelApi, Tt as resolveSessionResetType, U as isTransientHttpError, Ut as getBridgeAuthForPort, V as isRawApiErrorPayload, Vt as DEFAULT_UPLOAD_DIR, W as parseImageDimensionError, Wt as ensureBrowserControlAuth, X as extractDeliveryInfo, Xt as expandToolGroups, Y as resolveSandboxRuntimeStatus, Yt as expandPolicyWithPluginGroups, Z as appendAssistantMessageToSessionTranscript, Zt as mergeAlsoAllowPolicy, _ as sanitizeSessionMessagesImages, _t as INPUT_PROVENANCE_KIND_VALUES, a as normalizeChannelTargetInput, an as resolveBootstrapMaxChars, at as updateSessionStoreEntry, b as resolveImageSanitizationLimits, bt as normalizeInputProvenance, c as parseReplyDirectives, cn as getGlobalHookRunner, ct as deliveryContextFromSession, d as parseInlineDirectives$1, dt as normalizeDeliveryContext, en as stripPluginOnlyAllowlist, et as readSessionUpdatedAt, f as validateAnthropicTurns, ft as normalizeSessionDeliveryFields, g as normalizeTextForComparison, gt as extractToolCallNames, h as isMessagingToolDuplicateNormalized, ht as countToolResults, i as buildTargetResolverSignature, in as ensureSessionHeader, it as updateSessionStore, j as getApiErrorPayloadFingerprint, jt as deriveSessionMetaPatch, k as formatBillingErrorMessage, kt as canonicalizeMainSessionAlias, l as MEDIA_TOKEN_RE, ln as initializeGlobalHookRunner, lt as deliveryContextKey, m as pickFallbackThinkingLevel, mt as capArrayByJsonBytes, nn as matchesAnyGlobPattern, o as normalizeTargetForProvider, on as resolveBootstrapTotalMaxChars, ot as isCacheEnabled, p as validateGeminiTurns, pt as archiveSessionTranscripts, q as ensureSandboxWorkspaceForSession, qt as buildPluginToolGroups, r as normalizeReplyPayloadsForDelivery, rn as buildBootstrapContextFiles, rt as updateLastRoute, s as throwIfAborted, sn as sanitizeGoogleTurnOrdering, st as resolveCacheTtlMs$1, t as deliverOutboundPayloads, tn as compileGlobPatterns, tt as recordSessionMetaFromInbound, u as splitMediaFromOutput, ut as mergeDeliveryContext, v as sanitizeImageBlocks, vt as applyInputProvenanceToUserMessage, w as isAntigravityClaude, wt as resolveSessionResetPolicy, x as extractToolCallsFromAssistant, xt as resolveSessionKey, y as sanitizeToolResultImages, yt as hasInterSessionUserProvenance, z as isLikelyContextOverflowError, zt as getMediaDir } from "./deliver-
|
|
12
|
+
import { $ as loadSessionStore, $t as resolveToolProfilePolicy, A as formatRawAssistantErrorForUi, At as resolveMainSessionKey, B as isRateLimitAssistantError, Bt as saveMediaBuffer, C as downgradeOpenAIReasoningBlocks, Ct as resolveChannelResetConfig, D as classifyFailoverReason, Dt as DEFAULT_RESET_TRIGGERS, E as BILLING_ERROR_USER_MESSAGE, Et as resolveThreadFlag, F as isCompactionFailureError, Ft as createBrowserRouteContext, G as parseImageSizeError, Gt as resolveBrowserControlAuth, H as isTimeoutErrorMessage, Ht as resolveExistingPathsWithinRoot, I as isContextOverflowError, It as registerBrowserRoutes, J as resolveSandboxContext, Jt as collectExplicitAllowlist, K as sanitizeUserFacingText, Kt as applyOwnerOnlyToolPolicy, L as isFailoverAssistantError, Lt as resolveBrowserConfig, M as isAuthAssistantError, Mt as resolveGroupSessionKey, N as isBillingAssistantError, Nt as acquireSessionWriteLock, O as formatAssistantErrorText, Ot as resolveFreshSessionTotalTokens, P as isCloudCodeAssistFormatError, Pt as resolveSessionLockMaxHoldFromTimeout, Q as resolveAndPersistSessionFile, Qt as normalizeToolName$1, R as isFailoverErrorMessage, Rt as resolveProfile, S as extractToolResultId, St as evaluateSessionFreshness, T as isGoogleModelApi, Tt as resolveSessionResetType, U as isTransientHttpError, Ut as getBridgeAuthForPort, V as isRawApiErrorPayload, Vt as DEFAULT_UPLOAD_DIR, W as parseImageDimensionError, Wt as ensureBrowserControlAuth, X as extractDeliveryInfo, Xt as expandToolGroups, Y as resolveSandboxRuntimeStatus, Yt as expandPolicyWithPluginGroups, Z as appendAssistantMessageToSessionTranscript, Zt as mergeAlsoAllowPolicy, _ as sanitizeSessionMessagesImages, _t as INPUT_PROVENANCE_KIND_VALUES, a as normalizeChannelTargetInput, an as resolveBootstrapMaxChars, at as updateSessionStoreEntry, b as resolveImageSanitizationLimits, bt as normalizeInputProvenance, c as parseReplyDirectives, cn as getGlobalHookRunner, ct as deliveryContextFromSession, d as parseInlineDirectives$1, dt as normalizeDeliveryContext, en as stripPluginOnlyAllowlist, et as readSessionUpdatedAt, f as validateAnthropicTurns, ft as normalizeSessionDeliveryFields, g as normalizeTextForComparison, gt as extractToolCallNames, h as isMessagingToolDuplicateNormalized, ht as countToolResults, i as buildTargetResolverSignature, in as ensureSessionHeader, it as updateSessionStore, j as getApiErrorPayloadFingerprint, jt as deriveSessionMetaPatch, k as formatBillingErrorMessage, kt as canonicalizeMainSessionAlias, l as MEDIA_TOKEN_RE, ln as initializeGlobalHookRunner, lt as deliveryContextKey, m as pickFallbackThinkingLevel, mt as capArrayByJsonBytes, nn as matchesAnyGlobPattern, o as normalizeTargetForProvider, on as resolveBootstrapTotalMaxChars, ot as isCacheEnabled, p as validateGeminiTurns, pt as archiveSessionTranscripts, q as ensureSandboxWorkspaceForSession, qt as buildPluginToolGroups, r as normalizeReplyPayloadsForDelivery, rn as buildBootstrapContextFiles, rt as updateLastRoute, s as throwIfAborted, sn as sanitizeGoogleTurnOrdering, st as resolveCacheTtlMs$1, t as deliverOutboundPayloads, tn as compileGlobPatterns, tt as recordSessionMetaFromInbound, u as splitMediaFromOutput, ut as mergeDeliveryContext, v as sanitizeImageBlocks, vt as applyInputProvenanceToUserMessage, w as isAntigravityClaude, wt as resolveSessionResetPolicy, x as extractToolCallsFromAssistant, xt as resolveSessionKey, y as sanitizeToolResultImages, yt as hasInterSessionUserProvenance, z as isLikelyContextOverflowError, zt as getMediaDir } from "./deliver-f3cIWxXT.js";
|
|
13
13
|
import { a as logMessageProcessed, i as logLaneEnqueue, o as logMessageQueued, r as logLaneDequeue, s as logSessionStateChange, t as diag } from "./diagnostic-BdRnGknC.js";
|
|
14
14
|
import { n as getDiagnosticSessionState } from "./diagnostic-session-state-DpxCUzoM.js";
|
|
15
15
|
import { S as GATEWAY_CLIENT_NAMES, _ as listDeliverableMessageChannels, a as chunkText, b as GATEWAY_CLIENT_IDS, c as resolveChunkMode, d as isSafeFenceBreak, f as parseFenceSpans, g as isMarkdownCapableMessageChannel, h as isInternalMessageChannel, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, m as isDeliverableMessageChannel, o as chunkTextWithMode, p as INTERNAL_MESSAGE_CHANNEL, r as chunkMarkdownText, t as chunkByNewline, u as findFenceSpanAt, v as normalizeMessageChannel, x as GATEWAY_CLIENT_MODES, y as resolveGatewayMessageChannel } from "./chunk-CAZujdOi.js";
|
|
@@ -18,7 +18,7 @@ import { C as unsetConfigValueAtPath, S as setConfigValueAtPath, T as VERSION, _
|
|
|
18
18
|
import { t as parseBooleanValue } from "./boolean-BW6OTjPi.js";
|
|
19
19
|
import { i as resolveShellEnvFallbackTimeoutMs, n as getShellPathFromLoginShell, s as isTruthyEnvValue } from "./shell-env-DgjeObDZ.js";
|
|
20
20
|
import { c as normalizePluginsConfig, f as isPathInsideWithRealpath, i as safeStatSync, l as resolveEnableState, n as discoverSymiPlugins, p as isDangerousHostEnvVarName, r as isPathInside, s as applyTestPluginDefaults, t as loadPluginManifestRegistry, u as resolveMemorySlotDecision } from "./manifest-registry-CAWGTwb5.js";
|
|
21
|
-
import { C as rawDataToString, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as isSecureWebSocketUrl, x as ensureChromeExtensionRelayServer } from "./chrome-
|
|
21
|
+
import { C as rawDataToString, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as isSecureWebSocketUrl, x as ensureChromeExtensionRelayServer } from "./chrome-3jl2ulOE.js";
|
|
22
22
|
import { n as resolveCliName, t as formatCliCommand } from "./command-format-DPd9RN2g.js";
|
|
23
23
|
import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, h as parseFrontmatterBlock, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-DO7WNsVJ.js";
|
|
24
24
|
import { n as redactToolDetail } from "./redact-DSOAcWMe.js";
|
|
@@ -29,7 +29,7 @@ import { n as resolveConversationLabel } from "./conversation-label-DTTqF8gH.js"
|
|
|
29
29
|
import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-BsT3BvfH.js";
|
|
30
30
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-ChU6IQwp.js";
|
|
31
31
|
import { n as saveJsonFile, t as loadJsonFile } from "./json-file-B7D44OOV.js";
|
|
32
|
-
import { a as parseGeminiAuth, c as resolveMemorySearchConfig, d as requireApiKey, f as resolveApiKeyForProvider, h as resolveModelAuthMode, i as resolveOllamaBaseUrl, l as getApiKeyForModel, m as resolveEnvApiKey, n as retryAsync, o as collectProviderApiKeysForExecution, p as resolveAwsSdkEnvVarName, r as probeOllamaEmbeddingModels, s as executeWithApiKeyRotation, u as getCustomProviderApiKey } from "./manager-
|
|
32
|
+
import { a as parseGeminiAuth, c as resolveMemorySearchConfig, d as requireApiKey, f as resolveApiKeyForProvider, h as resolveModelAuthMode, i as resolveOllamaBaseUrl, l as getApiKeyForModel, m as resolveEnvApiKey, n as retryAsync, o as collectProviderApiKeysForExecution, p as resolveAwsSdkEnvVarName, r as probeOllamaEmbeddingModels, s as executeWithApiKeyRotation, u as getCustomProviderApiKey } from "./manager-CnBU0aOR.js";
|
|
33
33
|
import { r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-dYUr1mDQ.js";
|
|
34
34
|
import { c as normalizeExtraMemoryPaths, f as runTasksWithConcurrency, s as listMemoryFiles } from "./internal-Ce-sg7EN.js";
|
|
35
35
|
import { n as resolveMarkdownTableMode } from "./markdown-tables-jQzXAsf3.js";
|
|
@@ -53,7 +53,7 @@ import { fileURLToPath } from "node:url";
|
|
|
53
53
|
import { CURRENT_SESSION_VERSION, DefaultResourceLoader, SessionManager, SettingsManager, codingTools, createAgentSession, createEditTool, createReadTool, createWriteTool, estimateTokens, generateSummary, readTool } from "@mariozechner/pi-coding-agent";
|
|
54
54
|
import crypto, { X509Certificate, createHash, createHmac, randomBytes, randomUUID } from "node:crypto";
|
|
55
55
|
import AjvPkg from "ajv";
|
|
56
|
-
import { WebSocket } from "ws";
|
|
56
|
+
import { WebSocket as WebSocket$1 } from "ws";
|
|
57
57
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
58
58
|
import { complete, createAssistantMessageEventStream, streamSimple } from "@mariozechner/pi-ai";
|
|
59
59
|
import { BedrockClient, ListFoundationModelsCommand } from "@aws-sdk/client-bedrock";
|
|
@@ -3390,7 +3390,7 @@ async function getMemorySearchManager(params) {
|
|
|
3390
3390
|
const wrapper = new FallbackMemoryManager({
|
|
3391
3391
|
primary,
|
|
3392
3392
|
fallbackFactory: async () => {
|
|
3393
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
3393
|
+
const { MemoryIndexManager } = await import("./manager-CnBU0aOR.js").then((n) => n.t);
|
|
3394
3394
|
return await MemoryIndexManager.get(params);
|
|
3395
3395
|
}
|
|
3396
3396
|
}, () => QMD_MANAGER_CACHE.delete(cacheKey));
|
|
@@ -3403,7 +3403,7 @@ async function getMemorySearchManager(params) {
|
|
|
3403
3403
|
}
|
|
3404
3404
|
}
|
|
3405
3405
|
try {
|
|
3406
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
3406
|
+
const { MemoryIndexManager } = await import("./manager-CnBU0aOR.js").then((n) => n.t);
|
|
3407
3407
|
return { manager: await MemoryIndexManager.get(params) };
|
|
3408
3408
|
} catch (err) {
|
|
3409
3409
|
return {
|
|
@@ -5920,7 +5920,7 @@ var GatewayClient = class {
|
|
|
5920
5920
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
5921
5921
|
});
|
|
5922
5922
|
}
|
|
5923
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
5923
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
5924
5924
|
this.ws.on("open", () => {
|
|
5925
5925
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
5926
5926
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -6139,7 +6139,7 @@ var GatewayClient = class {
|
|
|
6139
6139
|
return null;
|
|
6140
6140
|
}
|
|
6141
6141
|
async request(method, params, opts) {
|
|
6142
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
6142
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
|
|
6143
6143
|
const id = randomUUID();
|
|
6144
6144
|
const frame = {
|
|
6145
6145
|
type: "req",
|
|
@@ -7087,7 +7087,7 @@ async function routeReply(params) {
|
|
|
7087
7087
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
7088
7088
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
7089
7089
|
try {
|
|
7090
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
7090
|
+
const { deliverOutboundPayloads } = await import("./deliver-f3cIWxXT.js").then((n) => n.n);
|
|
7091
7091
|
return {
|
|
7092
7092
|
ok: true,
|
|
7093
7093
|
messageId: (await deliverOutboundPayloads({
|
|
@@ -42076,7 +42076,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
42076
42076
|
return;
|
|
42077
42077
|
}
|
|
42078
42078
|
try {
|
|
42079
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
42079
|
+
const { deliverOutboundPayloads } = await import("./deliver-f3cIWxXT.js").then((n) => n.n);
|
|
42080
42080
|
await deliverOutboundPayloads({
|
|
42081
42081
|
cfg: params.cfg,
|
|
42082
42082
|
channel,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as DEFAULT_ACCOUNT_ID, f as normalizeAccountId } from "./session-key-BmQ2R1ev.js";
|
|
2
|
-
import { a as normalizeAnyChannelId, l as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER } from "./registry-
|
|
2
|
+
import { a as normalizeAnyChannelId, l as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER } from "./registry-9AaJQms1.js";
|
|
3
3
|
import { t as normalizeChatType } from "./chat-type-CE6cJOyt.js";
|
|
4
4
|
|
|
5
5
|
//#region src/channels/plugins/account-helpers.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "./paths-CE7eVGHg.js";
|
|
2
|
-
import { R as resolvePreferredSymiTmpDir } from "./registry-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import "./subsystem-
|
|
5
|
-
import "./workspace-
|
|
2
|
+
import { R as resolvePreferredSymiTmpDir } from "./registry-9AaJQms1.js";
|
|
3
|
+
import "./agent-scope-DnJEvgMH.js";
|
|
4
|
+
import "./subsystem-DhOo2FZn.js";
|
|
5
|
+
import "./workspace-OBnI5mKu.js";
|
|
6
6
|
import { t as formatCliCommand } from "./command-format-BrrHNE8r.js";
|
|
7
|
-
import "./model-selection-
|
|
8
|
-
import "./ssrf-
|
|
7
|
+
import "./model-selection-C_XFh0kf.js";
|
|
8
|
+
import "./ssrf-CD6rSfmA.js";
|
|
9
9
|
import "./boolean-BsqeuxE6.js";
|
|
10
|
-
import "./shell-env-
|
|
11
|
-
import "./manifest-registry-
|
|
12
|
-
import { _ as fetchJson, b as withCdpSocket, d as normalizeCdpWsUrl, g as appendCdpPath, h as withBrowserNavigationPolicy, m as assertBrowserNavigationAllowed, t as getChromeWebSocketUrl, u as formatAriaSnapshot, y as getHeadersWithAuth } from "./chrome-
|
|
10
|
+
import "./shell-env-DUnzZNS9.js";
|
|
11
|
+
import "./manifest-registry-B1g2QOPw.js";
|
|
12
|
+
import { _ as fetchJson, b as withCdpSocket, d as normalizeCdpWsUrl, g as appendCdpPath, h as withBrowserNavigationPolicy, m as assertBrowserNavigationAllowed, t as getChromeWebSocketUrl, u as formatAriaSnapshot, y as getHeadersWithAuth } from "./chrome-Bu0sk8jc.js";
|
|
13
13
|
import "./redact-CSGZUFxa.js";
|
|
14
14
|
import { n as formatErrorMessage } from "./errors-C89ppfp9.js";
|
|
15
15
|
import path from "node:path";
|
|
@@ -7,7 +7,7 @@ import "./ssrf-BCSnhba8.js";
|
|
|
7
7
|
import "./boolean-BW6OTjPi.js";
|
|
8
8
|
import "./shell-env-DgjeObDZ.js";
|
|
9
9
|
import "./manifest-registry-CAWGTwb5.js";
|
|
10
|
-
import { _ as fetchJson, b as withCdpSocket, d as normalizeCdpWsUrl, g as appendCdpPath, h as withBrowserNavigationPolicy, m as assertBrowserNavigationAllowed, t as getChromeWebSocketUrl, u as formatAriaSnapshot, y as getHeadersWithAuth } from "./chrome-
|
|
10
|
+
import { _ as fetchJson, b as withCdpSocket, d as normalizeCdpWsUrl, g as appendCdpPath, h as withBrowserNavigationPolicy, m as assertBrowserNavigationAllowed, t as getChromeWebSocketUrl, u as formatAriaSnapshot, y as getHeadersWithAuth } from "./chrome-3jl2ulOE.js";
|
|
11
11
|
import { t as formatCliCommand } from "./command-format-DPd9RN2g.js";
|
|
12
12
|
import "./redact-DSOAcWMe.js";
|
|
13
13
|
import { n as formatErrorMessage } from "./errors-BEU7IHU6.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { s as resolveStateDir } from "./paths-CE7eVGHg.js";
|
|
2
2
|
import { v as parseAgentSessionKey } from "./session-key-BmQ2R1ev.js";
|
|
3
|
-
import "./registry-
|
|
4
|
-
import { o as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
6
|
-
import "./workspace-
|
|
3
|
+
import "./registry-9AaJQms1.js";
|
|
4
|
+
import { o as resolveAgentWorkspaceDir } from "./agent-scope-DnJEvgMH.js";
|
|
5
|
+
import { t as createSubsystemLogger } from "./subsystem-DhOo2FZn.js";
|
|
6
|
+
import "./workspace-OBnI5mKu.js";
|
|
7
7
|
import "./redact-CSGZUFxa.js";
|
|
8
8
|
import "./paths-BsT3BvfH.js";
|
|
9
9
|
import { m as statRegularFile, p as isFileMissingError } from "./internal-BYHsj5p6.js";
|
|
10
|
-
import { n as buildSessionEntry, r as listSessionFilesForAgent, t as requireNodeSqlite } from "./sqlite-
|
|
10
|
+
import { n as buildSessionEntry, r as listSessionFilesForAgent, t as requireNodeSqlite } from "./sqlite-B-yVqz_U.js";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import os from "node:os";
|
|
13
13
|
import fs from "node:fs/promises";
|
|
@@ -3,7 +3,7 @@ import path from "node:path";
|
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import { Logger } from "tslog";
|
|
6
|
-
import
|
|
6
|
+
import json5 from "json5";
|
|
7
7
|
import chalk, { Chalk } from "chalk";
|
|
8
8
|
|
|
9
9
|
//#region src/infra/plain-object.ts
|
|
@@ -221,7 +221,7 @@ function readLoggingConfig() {
|
|
|
221
221
|
try {
|
|
222
222
|
if (!fs.existsSync(configPath)) return;
|
|
223
223
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
224
|
-
const logging =
|
|
224
|
+
const logging = json5.parse(raw)?.logging;
|
|
225
225
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
226
226
|
return logging;
|
|
227
227
|
} catch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { i as chunkMarkdownTextWithMode } from "./chunk-
|
|
3
|
-
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-
|
|
4
|
-
import { n as isSilentReplyText, t as SILENT_REPLY_TOKEN } from "./tokens-
|
|
2
|
+
import { i as chunkMarkdownTextWithMode } from "./chunk-DBVjqPm2.js";
|
|
3
|
+
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-BNMro1go.js";
|
|
4
|
+
import { n as isSilentReplyText, t as SILENT_REPLY_TOKEN } from "./tokens-BHHkQK-k.js";
|
|
5
5
|
|
|
6
6
|
//#region src/auto-reply/reply/reply-reference.ts
|
|
7
7
|
function createReplyReferencePlanner(options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { n as resolveAgentConfig } from "./agent-scope-
|
|
2
|
+
import { n as resolveAgentConfig } from "./agent-scope-DnJEvgMH.js";
|
|
3
3
|
|
|
4
4
|
//#region src/agents/identity.ts
|
|
5
5
|
const DEFAULT_ACK_REACTION = "👀";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { d as DEFAULT_ACCOUNT_ID, f as normalizeAccountId, i as buildAgentPeerSessionKey, n as DEFAULT_MAIN_KEY, o as normalizeAgentId, r as buildAgentMainSessionKey, t as DEFAULT_AGENT_ID, u as sanitizeAgentId } from "./session-key-BmQ2R1ev.js";
|
|
3
|
-
import { E as shouldLogVerbose } from "./registry-
|
|
4
|
-
import { s as resolveDefaultAgentId } from "./agent-scope-
|
|
5
|
-
import { y as logDebug } from "./workspace-
|
|
3
|
+
import { E as shouldLogVerbose } from "./registry-9AaJQms1.js";
|
|
4
|
+
import { s as resolveDefaultAgentId } from "./agent-scope-DnJEvgMH.js";
|
|
5
|
+
import { y as logDebug } from "./workspace-OBnI5mKu.js";
|
|
6
6
|
import { t as normalizeChatType } from "./chat-type-CE6cJOyt.js";
|
|
7
7
|
|
|
8
8
|
//#region src/routing/bindings.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { C as logVerbose, E as shouldLogVerbose, Y as resolveUserPath } from "./registry-
|
|
3
|
-
import { S as logWarn } from "./workspace-
|
|
4
|
-
import { a as resolvePinnedHostnameWithPolicy, c as loadConfig, n as closeDispatcher, r as createPinnedDispatcher, t as SsrFBlockedError } from "./ssrf-
|
|
5
|
-
import { S as readLocalFileSafely, a as convertHeicToJpeg, b as SafeOpenError, c as optimizeImageToPng, d as extensionForMime, l as resizeToJpeg, n as getDefaultMediaLocalRoots, s as hasAlphaChannel, u as detectMime, v as maxBytesForKind, y as mediaKindFromMime } from "./local-roots-
|
|
6
|
-
import { a as chunkText, c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-
|
|
7
|
-
import { i as resolveSlackAccount, s as resolveSlackBotToken } from "./plugins-
|
|
8
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
2
|
+
import { C as logVerbose, E as shouldLogVerbose, Y as resolveUserPath } from "./registry-9AaJQms1.js";
|
|
3
|
+
import { S as logWarn } from "./workspace-OBnI5mKu.js";
|
|
4
|
+
import { a as resolvePinnedHostnameWithPolicy, c as loadConfig, n as closeDispatcher, r as createPinnedDispatcher, t as SsrFBlockedError } from "./ssrf-CD6rSfmA.js";
|
|
5
|
+
import { S as readLocalFileSafely, a as convertHeicToJpeg, b as SafeOpenError, c as optimizeImageToPng, d as extensionForMime, l as resizeToJpeg, n as getDefaultMediaLocalRoots, s as hasAlphaChannel, u as detectMime, v as maxBytesForKind, y as mediaKindFromMime } from "./local-roots-Ab2ch8iw.js";
|
|
6
|
+
import { a as chunkText, c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-DBVjqPm2.js";
|
|
7
|
+
import { i as resolveSlackAccount, s as resolveSlackBotToken } from "./plugins-BcGFMr_d.js";
|
|
8
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-CVcd6XRG.js";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import fs from "node:fs/promises";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { s as resolveStateDir } from "./paths-CE7eVGHg.js";
|
|
3
|
-
import { Y as resolveUserPath, z as CONFIG_DIR } from "./registry-
|
|
4
|
-
import { o as resolveAgentWorkspaceDir, t as listAgentIds } from "./agent-scope-
|
|
5
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
6
|
-
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-
|
|
7
|
-
import { n as listChatCommands } from "./commands-registry-
|
|
3
|
+
import { Y as resolveUserPath, z as CONFIG_DIR } from "./registry-9AaJQms1.js";
|
|
4
|
+
import { o as resolveAgentWorkspaceDir, t as listAgentIds } from "./agent-scope-DnJEvgMH.js";
|
|
5
|
+
import { t as createSubsystemLogger } from "./subsystem-DhOo2FZn.js";
|
|
6
|
+
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-BfqpCx1S.js";
|
|
7
|
+
import { n as listChatCommands } from "./commands-registry-yWbIOOoD.js";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import os from "node:os";
|