@symerian/symi 2.1.9 → 2.1.10

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.
Files changed (75) hide show
  1. package/dist/{accounts-tNElYrCH.js → accounts-CRksecBH.js} +14 -14
  2. package/dist/{accounts-qtxJ-6em.js → accounts-K_r7OhcD.js} +1 -1
  3. package/dist/{accounts-CWktKM8a.js → accounts-q7Sc1Tpi.js} +1 -1
  4. package/dist/{active-listener-C9r8ZB9m.js → active-listener-DXU1iEiq.js} +1 -1
  5. package/dist/{agent-scope-BxoUQqgM.js → agent-scope-BkCGKhZd.js} +3 -3
  6. package/dist/{audio-preflight-BZIRAXlv.js → audio-preflight-BbZjr38h.js} +29 -29
  7. package/dist/{bindings-B7Ke6LJi.js → bindings-Bv-cp2U5.js} +2 -2
  8. package/dist/build-info.json +3 -3
  9. package/dist/bundled/boot-md/handler.js +53 -53
  10. package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
  11. package/dist/bundled/command-logger/handler.js +1 -1
  12. package/dist/bundled/session-memory/handler.js +53 -53
  13. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  14. package/dist/{channel-activity-CsM_hJ_s.js → channel-activity-IwGy5fjY.js} +1 -1
  15. package/dist/{chrome-791kNCCB.js → chrome-B4c8SEkN.js} +13 -13
  16. package/dist/{chunk-BW5f05BR.js → chunk-CxYL-OXO.js} +1 -1
  17. package/dist/{command-format-BaxDnULz.js → command-format-HKbBegfJ.js} +1 -1
  18. package/dist/{commands-registry-BCRa0DAp.js → commands-registry-BqkqVEHA.js} +4 -4
  19. package/dist/{config-CfZ-oKwR.js → config-BrAFSU6Z.js} +17 -17
  20. package/dist/control-ui/index.html +1 -1
  21. package/dist/control-ui/js/models.js +1 -1
  22. package/dist/{deliver-CrlXl9KD.js → deliver-CfiME1St.js} +20 -20
  23. package/dist/{diagnostic-CI0kRQkt.js → diagnostic-CINBNBQX.js} +1 -1
  24. package/dist/{frontmatter-C_bv_0P8.js → frontmatter-wVHII0KO.js} +4 -4
  25. package/dist/{gemini-auth-DzFcFvHV.js → gemini-auth-BwRMlWJH.js} +1 -1
  26. package/dist/{github-copilot-token-C_qUP7p5.js → github-copilot-token-DJqsJ2-r.js} +7 -7
  27. package/dist/{image-ycxQmhff.js → image-DEVMOUEF.js} +4 -4
  28. package/dist/{image-ops-CvJzsyvE.js → image-ops-Lmflb2E9.js} +1 -1
  29. package/dist/{ir-DccrnjsE.js → ir-CuuCOLHL.js} +4 -4
  30. package/dist/llm-slug-generator.js +53 -53
  31. package/dist/{local-roots-DMwIh5cS.js → local-roots-C0y1zqg5.js} +5 -5
  32. package/dist/{login-DMnQmqbM.js → login-C-iEZ7-d.js} +7 -7
  33. package/dist/{login-qr-Dbb1xG4s.js → login-qr-Z0tp3m4b.js} +12 -12
  34. package/dist/{manager-M83fJMDC.js → manager-BlH-kIAA.js} +13 -13
  35. package/dist/{manifest-registry-D0IQ3WuX.js → manifest-registry-DetgyAnG.js} +19 -19
  36. package/dist/{markdown-tables-iMQQZu4Q.js → markdown-tables-C4L0emuC.js} +1 -1
  37. package/dist/{message-channel-Dz5lr5b0.js → message-channel-Bzd90Fg1.js} +1 -1
  38. package/dist/{model-auth-64S8o7s-.js → model-auth-DbMOVgB3.js} +9 -9
  39. package/dist/{outbound-DEjQvzWk.js → outbound-CsCk7-X6.js} +7 -7
  40. package/dist/{outbound-attachment-DjNDa3zn.js → outbound-attachment-DTzYlChD.js} +2 -2
  41. package/dist/{paths-DLyHUt31.js → paths-Cb87-LzP.js} +1 -1
  42. package/dist/{paths-Cce4PUkG.js → paths-CySxpNhH.js} +5 -5
  43. package/dist/{pi-auth-json-wQxiCgzR.js → pi-auth-json-Cog6KWQ0.js} +8 -8
  44. package/dist/{pi-embedded-helpers-DoTustDz.js → pi-embedded-helpers-DwUUGl8K.js} +52 -52
  45. package/dist/{pi-embedded-AKhKHxb6.js → pi-embedded-l6fnSeuU.js} +160 -160
  46. package/dist/{plugins-DQYI3Fr-.js → plugins-D1_FhsCG.js} +9 -9
  47. package/dist/{pw-ai-DIVguI36.js → pw-ai-BIGSU-k2.js} +11 -11
  48. package/dist/{qmd-manager-QHUP-_em.js → qmd-manager-jPsEJprD.js} +7 -7
  49. package/dist/{registry-CK4e9hn8.js → registry-Cgbuhd6U.js} +19 -19
  50. package/dist/{replies-Cj2HD2yn.js → replies-CjfQWlpL.js} +3 -3
  51. package/dist/{reply-prefix-XlyuyChD.js → reply-prefix-NvPdveXK.js} +1 -1
  52. package/dist/{resolve-route-CZ-1eqw0.js → resolve-route-BoOTtfRC.js} +4 -4
  53. package/dist/{retry-Cly39XZB.js → retry-CZ13t_sq.js} +1 -1
  54. package/dist/{runner-Cw5KZrjx.js → runner-Dl0eiBve.js} +9 -9
  55. package/dist/{send-BxrNk2KH.js → send-3jM0m9vc.js} +7 -7
  56. package/dist/{send-QC5kvnW3.js → send-BDVMssZq.js} +6 -6
  57. package/dist/{send-D0WfDllx.js → send-CQxYqAP8.js} +10 -10
  58. package/dist/{send-Ct3wqNP6.js → send-DJ537kMF.js} +6 -6
  59. package/dist/{send-G-E0gOCC.js → send-DZCl3x0a.js} +18 -18
  60. package/dist/{session-BK0E3EZe.js → session-BgWKJ33t.js} +8 -8
  61. package/dist/{skill-commands-DCDG7ki5.js → skill-commands-BtMC57oh.js} +9 -9
  62. package/dist/{skills-BFekKL7i.js → skills-8Qi9zQz0.js} +21 -21
  63. package/dist/{sqlite-DRbx2dhW.js → sqlite-ReocE89T.js} +4 -4
  64. package/dist/{store-C0wvOkae.js → store-CsOqrZPF.js} +2 -2
  65. package/dist/{subsystem-Bs9YvKLa.js → subsystem-LRKKAgQx.js} +1 -1
  66. package/dist/{tables-DuZspiBu.js → tables-Du3x5E08.js} +1 -1
  67. package/dist/{target-errors-Be1SwYlW.js → target-errors-DUTv7Hgk.js} +2 -2
  68. package/dist/{thinking-CdlENGRW.js → thinking-DwjHOBvM.js} +5 -5
  69. package/dist/{tokens-H1H1LiSQ.js → tokens-CXvgek4j.js} +1 -1
  70. package/dist/{tool-images-DXB7tqWi.js → tool-images-DA9V4mO7.js} +2 -2
  71. package/dist/{tool-loop-detection-Cs8_HCsx.js → tool-loop-detection-43NkVgks.js} +3 -3
  72. package/dist/{web-Kz-ZuUjq.js → web-Cbjmu3ex.js} +57 -57
  73. package/dist/{whatsapp-actions-CHVuR8Yp.js → whatsapp-actions-CmlTTSUG.js} +23 -23
  74. package/dist/{workspace-wAaHI8-5.js → workspace-CFIJ53-f.js} +6 -6
  75. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { I as resolveUserPath, P as resolveConfigDir, k as isRecord } from "./registry-CK4e9hn8.js";
1
+ import { I as resolveUserPath, P as resolveConfigDir, k as isRecord } from "./registry-Cgbuhd6U.js";
2
2
  import { n as MANIFEST_KEY } from "./legacy-names-BHV4AoFT.js";
3
3
  import path from "node:path";
4
- import fs from "node:fs";
4
+ import fsSync 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 fs.realpathSync(filePath);
62
+ return fsSync.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 (fs.existsSync(sibling)) return sibling;
229
+ if (fsSync.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 (fs.existsSync(candidate)) return candidate;
235
+ if (fsSync.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 (fs.existsSync(candidate)) return candidate;
254
+ if (fsSync.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 (!fs.existsSync(manifestPath)) return {
260
+ if (!fsSync.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(fs.readFileSync(manifestPath, "utf-8"));
267
+ raw = JSON.parse(fsSync.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 = fs.realpathSync(targetPath);
334
+ const resolved = fsSync.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 fs.statSync(targetPath);
343
+ return fsSync.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 (!fs.existsSync(manifestPath)) return null;
457
+ if (!fsSync.existsSync(manifestPath)) return null;
458
458
  try {
459
- const raw = fs.readFileSync(manifestPath, "utf-8");
459
+ const raw = fsSync.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 (!fs.existsSync(params.dir)) return;
517
+ if (!fsSync.existsSync(params.dir)) return;
518
518
  let entries = [];
519
519
  try {
520
- entries = fs.readdirSync(params.dir, { withFileTypes: true });
520
+ entries = fsSync.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) => fs.existsSync(candidate));
582
+ ].map((candidate) => path.join(fullPath, candidate)).find((candidate) => fsSync.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 (!fs.existsSync(resolved)) {
600
+ if (!fsSync.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 = fs.statSync(resolved);
608
+ const stat = fsSync.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) => fs.existsSync(candidate));
668
+ ].map((candidate) => path.join(resolved, candidate)).find((candidate) => fsSync.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 fs.statSync(filePath).mtimeMs;
782
+ return fsSync.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-DQYI3Fr-.js";
3
+ import { r as normalizeChannelId } from "./plugins-D1_FhsCG.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-CK4e9hn8.js";
1
+ import { c as getActivePluginRegistry, s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-Cgbuhd6U.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-Cce4PUkG.js";
2
+ import { o as resolveOAuthPath, s as resolveStateDir } from "./paths-CySxpNhH.js";
3
3
  import { t as DEFAULT_AGENT_ID } from "./session-key-BCzIW1Y2.js";
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";
4
+ import { I as resolveUserPath } from "./registry-Cgbuhd6U.js";
5
+ import { a as resolveAgentModelPrimary, n as resolveAgentConfig } from "./agent-scope-BkCGKhZd.js";
6
+ import { t as createSubsystemLogger } from "./subsystem-LRKKAgQx.js";
7
+ import { r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-HKbBegfJ.js";
8
+ import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-DJqsJ2-r.js";
9
9
  import fs from "node:fs/promises";
10
10
  import path from "node:path";
11
- import fs$1 from "node:fs";
11
+ import fsSync 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";
@@ -2952,7 +2952,7 @@ function resolveAuthStorePathForDisplay(agentDir) {
2952
2952
  return pathname.startsWith("~") ? pathname : resolveUserPath(pathname);
2953
2953
  }
2954
2954
  function ensureAuthStoreFile(pathname) {
2955
- if (fs$1.existsSync(pathname)) return;
2955
+ if (fsSync.existsSync(pathname)) return;
2956
2956
  saveJsonFile(pathname, {
2957
2957
  version: AUTH_STORE_VERSION,
2958
2958
  profiles: {}
@@ -3121,7 +3121,7 @@ function loadAuthProfileStoreForAgent(agentDir, _options) {
3121
3121
  if (shouldWrite && legacy !== null) {
3122
3122
  const legacyPath = resolveLegacyAuthStorePath(agentDir);
3123
3123
  try {
3124
- fs$1.unlinkSync(legacyPath);
3124
+ fsSync.unlinkSync(legacyPath);
3125
3125
  } catch (err) {
3126
3126
  if (err?.code !== "ENOENT") log$1.warn("failed to delete legacy auth.json after migration", {
3127
3127
  err,
@@ -1,12 +1,12 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { D as escapeRegExp, H as toWhatsappJid, rt as getChildLogger } from "./registry-CK4e9hn8.js";
3
- import { t as createSubsystemLogger } from "./subsystem-Bs9YvKLa.js";
4
- import { n as loadConfig } from "./config-CfZ-oKwR.js";
5
- import { n as resolveMarkdownTableMode } from "./markdown-tables-iMQQZu4Q.js";
6
- import { a as loadWebMedia } from "./ir-DccrnjsE.js";
2
+ import { D as escapeRegExp, H as toWhatsappJid, rt as getChildLogger } from "./registry-Cgbuhd6U.js";
3
+ import { t as createSubsystemLogger } from "./subsystem-LRKKAgQx.js";
4
+ import { n as loadConfig } from "./config-BrAFSU6Z.js";
5
+ import { n as resolveMarkdownTableMode } from "./markdown-tables-C4L0emuC.js";
6
+ import { a as loadWebMedia } from "./ir-CuuCOLHL.js";
7
7
  import { n as normalizePollInput } from "./polls-CCuCaqgv.js";
8
- import { t as convertMarkdownTables } from "./tables-DuZspiBu.js";
9
- import { n as requireActiveWebListener } from "./active-listener-C9r8ZB9m.js";
8
+ import { t as convertMarkdownTables } from "./tables-Du3x5E08.js";
9
+ import { n as requireActiveWebListener } from "./active-listener-DXU1iEiq.js";
10
10
  import { randomUUID } from "node:crypto";
11
11
 
12
12
  //#region src/markdown/whatsapp.ts
@@ -1,5 +1,5 @@
1
- import { r as saveMediaBuffer } from "./store-C0wvOkae.js";
2
- import { a as loadWebMedia } from "./ir-DccrnjsE.js";
1
+ import { r as saveMediaBuffer } from "./store-CsOqrZPF.js";
2
+ import { a as loadWebMedia } from "./ir-CuuCOLHL.js";
3
3
 
4
4
  //#region src/media/outbound-attachment.ts
5
5
  async function resolveOutboundAttachmentFromUrl(mediaUrl, maxBytes, options) {
@@ -1,4 +1,4 @@
1
- import { c as expandHomePrefix, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-Cce4PUkG.js";
1
+ import { c as expandHomePrefix, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-CySxpNhH.js";
2
2
  import { s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-BCzIW1Y2.js";
3
3
  import os from "node:os";
4
4
  import path from "node:path";
@@ -1,6 +1,6 @@
1
1
  import os from "node:os";
2
2
  import path from "node:path";
3
- import fs from "node:fs";
3
+ import fsSync from "node:fs";
4
4
 
5
5
  //#region src/infra/home-dir.ts
6
6
  function normalize(value) {
@@ -85,10 +85,10 @@ function resolveStateDir(env = process.env, homedir = envHomedir(env)) {
85
85
  if (override) return resolveUserPath(override, env, effectiveHomedir);
86
86
  const newDir = newStateDir(effectiveHomedir);
87
87
  const legacyDirs = legacyStateDirs(effectiveHomedir);
88
- if (fs.existsSync(newDir)) return newDir;
88
+ if (fsSync.existsSync(newDir)) return newDir;
89
89
  const existingLegacy = legacyDirs.find((dir) => {
90
90
  try {
91
- return fs.existsSync(dir);
91
+ return fsSync.existsSync(dir);
92
92
  } catch {
93
93
  return false;
94
94
  }
@@ -127,7 +127,7 @@ function resolveCanonicalConfigPath(env = process.env, stateDir = resolveStateDi
127
127
  function resolveConfigPathCandidate(env = process.env, homedir = envHomedir(env)) {
128
128
  const existing = resolveDefaultConfigCandidates(env, homedir).find((candidate) => {
129
129
  try {
130
- return fs.existsSync(candidate);
130
+ return fsSync.existsSync(candidate);
131
131
  } catch {
132
132
  return false;
133
133
  }
@@ -144,7 +144,7 @@ function resolveConfigPath(env = process.env, stateDir = resolveStateDir(env, en
144
144
  const stateOverride = env.SYMI_STATE_DIR?.trim();
145
145
  const existing = [path.join(stateDir, CONFIG_FILENAME), ...LEGACY_CONFIG_FILENAMES.map((name) => path.join(stateDir, name))].find((candidate) => {
146
146
  try {
147
- return fs.existsSync(candidate);
147
+ return fsSync.existsSync(candidate);
148
148
  } catch {
149
149
  return false;
150
150
  }
@@ -1,12 +1,12 @@
1
- import "./paths-Cce4PUkG.js";
2
- import "./registry-CK4e9hn8.js";
3
- import "./agent-scope-BxoUQqgM.js";
4
- import "./subsystem-Bs9YvKLa.js";
5
- import "./workspace-wAaHI8-5.js";
1
+ import "./paths-CySxpNhH.js";
2
+ import "./registry-Cgbuhd6U.js";
3
+ import "./agent-scope-BkCGKhZd.js";
4
+ import "./subsystem-LRKKAgQx.js";
5
+ import "./workspace-CFIJ53-f.js";
6
6
  import "./boolean-B8-BqKGQ.js";
7
- import "./command-format-BaxDnULz.js";
8
- import { A as normalizeProviderId, _ as ensureAuthProfileStore } from "./model-auth-64S8o7s-.js";
9
- import "./github-copilot-token-C_qUP7p5.js";
7
+ import "./command-format-HKbBegfJ.js";
8
+ import { A as normalizeProviderId, _ as ensureAuthProfileStore } from "./model-auth-DbMOVgB3.js";
9
+ import "./github-copilot-token-DJqsJ2-r.js";
10
10
  import fs from "node:fs/promises";
11
11
  import path from "node:path";
12
12
 
@@ -1,31 +1,31 @@
1
- import { i as resolveGatewayPort, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-Cce4PUkG.js";
1
+ import { i as resolveGatewayPort, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-CySxpNhH.js";
2
2
  import { c as normalizeMainKey, l as resolveAgentIdFromSessionKey, m as normalizeOptionalAccountId, r as buildAgentMainSessionKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-BCzIW1Y2.js";
3
- import { I as resolveUserPath, M as normalizeE164, U as truncateUtf16Safe, dt as resolvePreferredSymiTmpDir, t as CHANNEL_IDS } from "./registry-CK4e9hn8.js";
4
- import { n as resolveAgentConfig, u as resolveSessionAgentId } from "./agent-scope-BxoUQqgM.js";
5
- import { r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-Bs9YvKLa.js";
6
- 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-wAaHI8-5.js";
7
- import { r as normalizeChannelId } from "./plugins-DQYI3Fr-.js";
3
+ import { I as resolveUserPath, M as normalizeE164, U as truncateUtf16Safe, dt as resolvePreferredSymiTmpDir, t as CHANNEL_IDS } from "./registry-Cgbuhd6U.js";
4
+ import { n as resolveAgentConfig, u as resolveSessionAgentId } from "./agent-scope-BkCGKhZd.js";
5
+ import { r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-LRKKAgQx.js";
6
+ 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-CFIJ53-f.js";
7
+ import { r as normalizeChannelId } from "./plugins-D1_FhsCG.js";
8
8
  import { t as normalizeChatType } from "./chat-type-C_KiWNAH.js";
9
9
  import { t as parseBooleanValue } from "./boolean-B8-BqKGQ.js";
10
- import { t as formatCliCommand } from "./command-format-BaxDnULz.js";
11
- import { c as SafeOpenError, i as getImageMetadata, l as openFileWithinRoot, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-CvJzsyvE.js";
12
- import { S as isPidAlive, x as resolveProcessScopedMap } from "./model-auth-64S8o7s-.js";
13
- import { o as listDeliverableMessageChannels, s as normalizeMessageChannel } from "./message-channel-Dz5lr5b0.js";
14
- import { _ as parseDurationMs, a as writeConfigFile, n as loadConfig, s as parseByteSize, t as createConfigIO } from "./config-CfZ-oKwR.js";
15
- 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-791kNCCB.js";
16
- import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-BFekKL7i.js";
10
+ import { t as formatCliCommand } from "./command-format-HKbBegfJ.js";
11
+ import { c as SafeOpenError, i as getImageMetadata, l as openFileWithinRoot, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-Lmflb2E9.js";
12
+ import { S as isPidAlive, x as resolveProcessScopedMap } from "./model-auth-DbMOVgB3.js";
13
+ import { o as listDeliverableMessageChannels, s as normalizeMessageChannel } from "./message-channel-Bzd90Fg1.js";
14
+ import { _ as parseDurationMs, a as writeConfigFile, n as loadConfig, s as parseByteSize, t as createConfigIO } from "./config-BrAFSU6Z.js";
15
+ 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-B4c8SEkN.js";
16
+ import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-8Qi9zQz0.js";
17
17
  import { n as formatErrorMessage, t as extractErrorCode } from "./errors-BoQgnc8X.js";
18
18
  import { t as SsrFBlockedError } from "./ssrf-BTMDZjHT.js";
19
- import { r as saveMediaBuffer, t as ensureMediaDir } from "./store-C0wvOkae.js";
20
- import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug } from "./thinking-CdlENGRW.js";
19
+ import { r as saveMediaBuffer, t as ensureMediaDir } from "./store-CsOqrZPF.js";
20
+ import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug } from "./thinking-DwjHOBvM.js";
21
21
  import { n as resolveConversationLabel } from "./conversation-label-DXUkoKcB.js";
22
- import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-DLyHUt31.js";
22
+ import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-Cb87-LzP.js";
23
23
  import { t as emitSessionTranscriptUpdate } from "./transcript-events-DDYvbmRV.js";
24
- import { t as sanitizeContentBlocksImages } from "./tool-images-DXB7tqWi.js";
24
+ import { t as sanitizeContentBlocksImages } from "./tool-images-DA9V4mO7.js";
25
25
  import fs from "node:fs/promises";
26
26
  import os from "node:os";
27
27
  import path, { posix } from "node:path";
28
- import fs$1, { existsSync, realpathSync } from "node:fs";
28
+ import fsSync, { existsSync, realpathSync } from "node:fs";
29
29
  import { spawn } from "node:child_process";
30
30
  import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent";
31
31
  import crypto, { createHash, timingSafeEqual } from "node:crypto";
@@ -933,7 +933,7 @@ function isModuleNotFoundError(err) {
933
933
  }
934
934
  async function loadPwAiModule(mode) {
935
935
  try {
936
- return await import("./pw-ai-DIVguI36.js");
936
+ return await import("./pw-ai-BIGSU-k2.js");
937
937
  } catch (err) {
938
938
  if (mode === "soft") return null;
939
939
  if (isModuleNotFoundError(err)) return null;
@@ -2689,11 +2689,11 @@ async function movePathToTrash(targetPath) {
2689
2689
  return targetPath;
2690
2690
  } catch {
2691
2691
  const trashDir = path.join(os.homedir(), ".Trash");
2692
- fs$1.mkdirSync(trashDir, { recursive: true });
2692
+ fsSync.mkdirSync(trashDir, { recursive: true });
2693
2693
  const base = path.basename(targetPath);
2694
2694
  let dest = path.join(trashDir, `${base}-${Date.now()}`);
2695
- if (fs$1.existsSync(dest)) dest = path.join(trashDir, `${base}-${Date.now()}-${Math.random()}`);
2696
- fs$1.renameSync(targetPath, dest);
2695
+ if (fsSync.existsSync(dest)) dest = path.join(trashDir, `${base}-${Date.now()}-${Math.random()}`);
2696
+ fsSync.renameSync(targetPath, dest);
2697
2697
  return dest;
2698
2698
  }
2699
2699
  }
@@ -2771,7 +2771,7 @@ function createBrowserProfilesService(ctx) {
2771
2771
  } catch {}
2772
2772
  const userDataDir = resolveSymiUserDataDir(name);
2773
2773
  const profileDir = path.dirname(userDataDir);
2774
- if (fs$1.existsSync(profileDir)) {
2774
+ if (fsSync.existsSync(profileDir)) {
2775
2775
  await movePathToTrash(profileDir);
2776
2776
  deleted = true;
2777
2777
  }
@@ -3473,13 +3473,13 @@ function createProfileContext(opts, profile) {
3473
3473
  const userDataDir = resolveSymiUserDataDir(profile.name);
3474
3474
  const profileState = getProfileState();
3475
3475
  if (await isHttpReachable(300) && !profileState.running) try {
3476
- await (await import("./pw-ai-DIVguI36.js")).closePlaywrightBrowserConnection();
3476
+ await (await import("./pw-ai-BIGSU-k2.js")).closePlaywrightBrowserConnection();
3477
3477
  } catch {}
3478
3478
  if (profileState.running) await stopRunningBrowser();
3479
3479
  try {
3480
- await (await import("./pw-ai-DIVguI36.js")).closePlaywrightBrowserConnection();
3480
+ await (await import("./pw-ai-BIGSU-k2.js")).closePlaywrightBrowserConnection();
3481
3481
  } catch {}
3482
- if (!fs$1.existsSync(userDataDir)) return {
3482
+ if (!fsSync.existsSync(userDataDir)) return {
3483
3483
  moved: false,
3484
3484
  from: userDataDir
3485
3485
  };
@@ -3898,7 +3898,7 @@ function releaseAllLocksSync() {
3898
3898
  if (typeof held.handle.close === "function") held.handle.close().catch(() => {});
3899
3899
  } catch {}
3900
3900
  try {
3901
- fs$1.rmSync(held.lockPath, { force: true });
3901
+ fsSync.rmSync(held.lockPath, { force: true });
3902
3902
  } catch {}
3903
3903
  HELD_LOCKS.delete(sessionFile);
3904
3904
  }
@@ -5699,7 +5699,7 @@ function resolveSessionTranscriptCandidates(sessionId, storePath, sessionFile, a
5699
5699
  }
5700
5700
  function archiveFileOnDisk(filePath, reason) {
5701
5701
  const archived = `${filePath}.${reason}.${(/* @__PURE__ */ new Date()).toISOString().replaceAll(":", "-")}`;
5702
- fs$1.renameSync(filePath, archived);
5702
+ fsSync.renameSync(filePath, archived);
5703
5703
  return archived;
5704
5704
  }
5705
5705
  /**
@@ -5709,7 +5709,7 @@ function archiveFileOnDisk(filePath, reason) {
5709
5709
  function archiveSessionTranscripts(opts) {
5710
5710
  const archived = [];
5711
5711
  for (const candidate of resolveSessionTranscriptCandidates(opts.sessionId, opts.storePath, opts.sessionFile, opts.agentId)) {
5712
- if (!fs$1.existsSync(candidate)) continue;
5712
+ if (!fsSync.existsSync(candidate)) continue;
5713
5713
  try {
5714
5714
  archived.push(archiveFileOnDisk(candidate, opts.reason));
5715
5715
  } catch {}
@@ -5741,15 +5741,15 @@ async function cleanupArchivedSessionTranscripts(opts) {
5741
5741
  let removed = 0;
5742
5742
  let scanned = 0;
5743
5743
  for (const dir of directories) {
5744
- const entries = await fs$1.promises.readdir(dir).catch(() => []);
5744
+ const entries = await fsSync.promises.readdir(dir).catch(() => []);
5745
5745
  for (const entry of entries) {
5746
5746
  const timestamp = parseArchivedTimestamp(entry, reason);
5747
5747
  if (timestamp == null) continue;
5748
5748
  scanned += 1;
5749
5749
  if (now - timestamp <= opts.olderThanMs) continue;
5750
5750
  const fullPath = path.join(dir, entry);
5751
- if (!(await fs$1.promises.stat(fullPath).catch(() => null))?.isFile()) continue;
5752
- await fs$1.promises.rm(fullPath).catch(() => void 0);
5751
+ if (!(await fsSync.promises.stat(fullPath).catch(() => null))?.isFile()) continue;
5752
+ await fsSync.promises.rm(fullPath).catch(() => void 0);
5753
5753
  removed += 1;
5754
5754
  }
5755
5755
  }
@@ -5885,7 +5885,7 @@ function isCacheEnabled(ttlMs) {
5885
5885
  }
5886
5886
  function getFileMtimeMs(filePath) {
5887
5887
  try {
5888
- return fs$1.statSync(filePath).mtimeMs;
5888
+ return fsSync.statSync(filePath).mtimeMs;
5889
5889
  } catch {
5890
5890
  return;
5891
5891
  }
@@ -5964,7 +5964,7 @@ function loadSessionStore(storePath, opts = {}) {
5964
5964
  const maxReadAttempts = process.platform === "win32" ? 3 : 1;
5965
5965
  const retryBuf = maxReadAttempts > 1 ? new Int32Array(new SharedArrayBuffer(4)) : void 0;
5966
5966
  for (let attempt = 0; attempt < maxReadAttempts; attempt++) try {
5967
- const raw = fs$1.readFileSync(storePath, "utf-8");
5967
+ const raw = fsSync.readFileSync(storePath, "utf-8");
5968
5968
  if (raw.length === 0 && attempt < maxReadAttempts - 1) {
5969
5969
  Atomics.wait(retryBuf, 0, 0, 50);
5970
5970
  continue;
@@ -6116,7 +6116,7 @@ function capEntryCount(store, overrideMax, opts = {}) {
6116
6116
  }
6117
6117
  async function getSessionFileSize(storePath) {
6118
6118
  try {
6119
- return (await fs$1.promises.stat(storePath)).size;
6119
+ return (await fsSync.promises.stat(storePath)).size;
6120
6120
  } catch {
6121
6121
  return null;
6122
6122
  }
@@ -6133,7 +6133,7 @@ async function rotateSessionFile(storePath, overrideBytes) {
6133
6133
  if (fileSize <= maxBytes) return false;
6134
6134
  const backupPath = `${storePath}.bak.${Date.now()}`;
6135
6135
  try {
6136
- await fs$1.promises.rename(storePath, backupPath);
6136
+ await fsSync.promises.rename(storePath, backupPath);
6137
6137
  log.info("rotated session store file", {
6138
6138
  backupPath: path.basename(backupPath),
6139
6139
  sizeBytes: fileSize
@@ -6144,11 +6144,11 @@ async function rotateSessionFile(storePath, overrideBytes) {
6144
6144
  try {
6145
6145
  const dir = path.dirname(storePath);
6146
6146
  const baseName = path.basename(storePath);
6147
- const backups = (await fs$1.promises.readdir(dir)).filter((f) => f.startsWith(`${baseName}.bak.`)).toSorted().toReversed();
6147
+ const backups = (await fsSync.promises.readdir(dir)).filter((f) => f.startsWith(`${baseName}.bak.`)).toSorted().toReversed();
6148
6148
  const maxBackups = 3;
6149
6149
  if (backups.length > maxBackups) {
6150
6150
  const toDelete = backups.slice(maxBackups);
6151
- for (const old of toDelete) await fs$1.promises.unlink(path.join(dir, old)).catch(() => void 0);
6151
+ for (const old of toDelete) await fsSync.promises.unlink(path.join(dir, old)).catch(() => void 0);
6152
6152
  log.info("cleaned up old session store backups", { deleted: toDelete.length });
6153
6153
  }
6154
6154
  } catch {}
@@ -6203,14 +6203,14 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
6203
6203
  await rotateSessionFile(storePath, maintenance.rotateBytes);
6204
6204
  }
6205
6205
  }
6206
- await fs$1.promises.mkdir(path.dirname(storePath), { recursive: true });
6206
+ await fsSync.promises.mkdir(path.dirname(storePath), { recursive: true });
6207
6207
  const json = JSON.stringify(store, null, 2);
6208
6208
  if (process.platform === "win32") {
6209
6209
  const tmp = `${storePath}.${process.pid}.${crypto.randomUUID()}.tmp`;
6210
6210
  try {
6211
- await fs$1.promises.writeFile(tmp, json, "utf-8");
6211
+ await fsSync.promises.writeFile(tmp, json, "utf-8");
6212
6212
  for (let i = 0; i < 5; i++) try {
6213
- await fs$1.promises.rename(tmp, storePath);
6213
+ await fsSync.promises.rename(tmp, storePath);
6214
6214
  break;
6215
6215
  } catch {
6216
6216
  if (i < 4) await new Promise((r) => setTimeout(r, 50 * (i + 1)));
@@ -6220,27 +6220,27 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
6220
6220
  if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) === "ENOENT") return;
6221
6221
  throw err;
6222
6222
  } finally {
6223
- await fs$1.promises.rm(tmp, { force: true }).catch(() => void 0);
6223
+ await fsSync.promises.rm(tmp, { force: true }).catch(() => void 0);
6224
6224
  }
6225
6225
  return;
6226
6226
  }
6227
6227
  const tmp = `${storePath}.${process.pid}.${crypto.randomUUID()}.tmp`;
6228
6228
  try {
6229
- await fs$1.promises.writeFile(tmp, json, {
6229
+ await fsSync.promises.writeFile(tmp, json, {
6230
6230
  mode: 384,
6231
6231
  encoding: "utf-8"
6232
6232
  });
6233
- await fs$1.promises.rename(tmp, storePath);
6234
- await fs$1.promises.chmod(storePath, 384);
6233
+ await fsSync.promises.rename(tmp, storePath);
6234
+ await fsSync.promises.chmod(storePath, 384);
6235
6235
  } catch (err) {
6236
6236
  if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) === "ENOENT") {
6237
6237
  try {
6238
- await fs$1.promises.mkdir(path.dirname(storePath), { recursive: true });
6239
- await fs$1.promises.writeFile(storePath, json, {
6238
+ await fsSync.promises.mkdir(path.dirname(storePath), { recursive: true });
6239
+ await fsSync.promises.writeFile(storePath, json, {
6240
6240
  mode: 384,
6241
6241
  encoding: "utf-8"
6242
6242
  });
6243
- await fs$1.promises.chmod(storePath, 384);
6243
+ await fsSync.promises.chmod(storePath, 384);
6244
6244
  } catch (err2) {
6245
6245
  if ((err2 && typeof err2 === "object" && "code" in err2 ? String(err2.code) : null) === "ENOENT") return;
6246
6246
  throw err2;
@@ -6249,7 +6249,7 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
6249
6249
  }
6250
6250
  throw err;
6251
6251
  } finally {
6252
- await fs$1.promises.rm(tmp, { force: true });
6252
+ await fsSync.promises.rm(tmp, { force: true });
6253
6253
  }
6254
6254
  }
6255
6255
  async function updateSessionStore(storePath, mutator, opts) {
@@ -6494,8 +6494,8 @@ function resolveMirroredTranscriptText(params) {
6494
6494
  return trimmed ? trimmed : null;
6495
6495
  }
6496
6496
  async function ensureSessionHeader(params) {
6497
- if (fs$1.existsSync(params.sessionFile)) return;
6498
- await fs$1.promises.mkdir(path.dirname(params.sessionFile), { recursive: true });
6497
+ if (fsSync.existsSync(params.sessionFile)) return;
6498
+ await fsSync.promises.mkdir(path.dirname(params.sessionFile), { recursive: true });
6499
6499
  const header = {
6500
6500
  type: "session",
6501
6501
  version: CURRENT_SESSION_VERSION,
@@ -6503,7 +6503,7 @@ async function ensureSessionHeader(params) {
6503
6503
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
6504
6504
  cwd: process.cwd()
6505
6505
  };
6506
- await fs$1.promises.writeFile(params.sessionFile, `${JSON.stringify(header)}\n`, {
6506
+ await fsSync.promises.writeFile(params.sessionFile, `${JSON.stringify(header)}\n`, {
6507
6507
  encoding: "utf-8",
6508
6508
  mode: 384
6509
6509
  });