@agimon-ai/po-cloudflare 0.0.2-alpha.13 → 0.0.2-alpha.14

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 (86) hide show
  1. package/dist/{agent-DYFqCLl2.js → agent-DTjnYFAN.js} +1 -1
  2. package/dist/{apiContracts-CDJ9sPkE.js → apiContracts-DepyzMNr.js} +80 -80
  3. package/dist/{approval-BSX-MRTE.js → approval-Biq3NCWj.js} +2 -2
  4. package/dist/{approvalPrompt-1FPgNwMA.js → approvalPrompt-DoHlIPkU.js} +2 -2
  5. package/dist/assets/plugins/compositions.json +1 -1
  6. package/dist/{atomicJson-BF1fVXy1.js → atomicJson-DCIsEywH.js} +3 -3
  7. package/dist/{backgroundWork-BaczP3Z1.js → backgroundWork-Bswjs1av.js} +1 -1
  8. package/dist/{codemode-CZ_eYTwm.js → codemode-CgVosRtU.js} +1 -1
  9. package/dist/{contracts-CnRs-Twx.js → contracts-CylyLZC8.js} +1 -1
  10. package/dist/{domains-Bl6T2dKV.js → domains-BqChtBLN.js} +23 -5
  11. package/dist/{exports-DlcCEAe3.js → exports-DERO0cQf.js} +760 -147
  12. package/dist/{exports-CxkWsXI9.js → exports-DX8LJfSj.js} +9 -9
  13. package/dist/{extensionFile-D7wk8tFr.js → extensionFile-Ds7RCpnb.js} +1 -1
  14. package/dist/{harnessStore-flLz1I0F.js → harnessStore-BectazJQ.js} +4 -4
  15. package/dist/harnessStore-C0Zwvny8.js +1 -0
  16. package/dist/{help-DjybmnPW.js → help-Dpm82qDr.js} +2 -2
  17. package/dist/{hubChannel-Bi3PQrfD.js → hubChannel-COvmdWGO.js} +4 -2
  18. package/dist/{index.edge-CJ2TFpgF.js → index.edge-B0D_Lgbx.js} +2 -2
  19. package/dist/{index.edge-C9_xuXyy.js → index.edge-BLmsRNW8.js} +2 -2
  20. package/dist/{layeredConfig-B4s0eZ5o.js → layeredConfig-pQGjhAks.js} +92 -6
  21. package/dist/{majorModes-IygGmbb8.js → majorModes-BrL4EtzH.js} +5 -14
  22. package/dist/majorModes-WXt22_km.js +1 -0
  23. package/dist/{mcpProjection-BA6baFpi.js → mcpProjection-pbPBBuvs.js} +2 -2
  24. package/dist/{notification-bGq1frYG.js → notification-CINsJWDL.js} +7 -4
  25. package/dist/{piConfig-CcoMX-1L.js → piConfig-BDUpA6w0.js} +5 -5
  26. package/dist/piSettings-tdui0CZI.js +1 -0
  27. package/dist/{platform-CyvF7X-b.js → platform-yhQXrrM_.js} +1 -1
  28. package/dist/{platformFiles-Ccj9HCvA.js → platformFiles-DB3Cw1l_.js} +1 -1
  29. package/dist/{protocol-Q7TFrOIs.js → protocol-B6LbEIe6.js} +2 -2
  30. package/dist/{server-4CmqIbH2.js → server-2o-hl3o0.js} +55 -14
  31. package/dist/{server-DSu_uLDX.js → server-B-br6deK.js} +6 -6
  32. package/dist/{server-C9gff7gU.js → server-B2G-c0hg.js} +5 -5
  33. package/dist/{server-CIhwIcbA.js → server-B3RgnYiZ.js} +13 -4
  34. package/dist/{server-C8HyW7wN.js → server-BBNCtQtl.js} +7 -7
  35. package/dist/{server-C_34VM3M.js → server-BmIU37Ei.js} +3 -3
  36. package/dist/{server-ClsNJwdv.js → server-Bqm5R8kV.js} +13 -13
  37. package/dist/{server-Co57A8MH.js → server-Bt6Zsqo8.js} +2 -2
  38. package/dist/{server-il_s2Ycz.js → server-BvYolSs9.js} +339 -43
  39. package/dist/{server-CpJNq249.js → server-C1x2LoKK.js} +10 -10
  40. package/dist/{server-CjsKNdSN.js → server-CCwwnpH0.js} +5 -5
  41. package/dist/{server-CxGGQFJs.js → server-CRPxNGv6.js} +6 -6
  42. package/dist/{server-COE7BKSa.js → server-Ci_BGVwd.js} +3 -3
  43. package/dist/{server-CTSvwoDy.js → server-CyYesT-G.js} +9 -9
  44. package/dist/{server-ziNfBZ2M.js → server-CzJjYgVk.js} +3 -3
  45. package/dist/{server-C_3jK2WM.js → server-D9qM5XCP.js} +23 -11
  46. package/dist/{server-C82Qzoh3.js → server-DE3Gzgfb.js} +10 -10
  47. package/dist/{server-CMaTba5B.js → server-DL6UyXfJ.js} +8 -8
  48. package/dist/{server-5vLvBTTs.js → server-DPTp6GXS.js} +4 -4
  49. package/dist/{server-CcNMwEFQ.js → server-Dgn4el5K.js} +5 -5
  50. package/dist/{server-CQXqMpeC.js → server-DuDp9MhD.js} +116 -54
  51. package/dist/{server-DeSuziRK.js → server-OerXqXJT.js} +4 -4
  52. package/dist/{server-ZsazKk-n.js → server-V8W5mcGu.js} +6 -6
  53. package/dist/{server-Bm6pAAw8.js → server-_0288DYR.js} +4 -4
  54. package/dist/{server-BHhb0oir.js → server-cStfn1Yv.js} +4 -4
  55. package/dist/{serverPlugin-pCqlBqQG.js → serverPlugin-OOfjB8tm.js} +1114 -1111
  56. package/dist/{sessionConfig-DzAs6Pt-.js → sessionConfig-C-zJI72k.js} +242 -54
  57. package/dist/{validation-CkjZwpf-.js → validation-DuOGOKEi.js} +2 -2
  58. package/dist/{value-DGT5IoiK.js → value-DyVsxCwZ.js} +1 -1
  59. package/dist/{vaultSettings-BRr8n821.js → vaultSettings-BFCRCBM3.js} +1 -1
  60. package/dist/web-cN41ySs9.js +3 -0
  61. package/dist/worker.js +15822 -1103
  62. package/dist/workflow-BgwWq0nq.js +79 -0
  63. package/package.json +32 -32
  64. package/dist/contextProjection-DlB6wzhm.js +0 -209
  65. package/dist/harnessStore-Bap8lsAg.js +0 -1
  66. package/dist/majorModes-xpLK9HpD.js +0 -1
  67. package/dist/piSettings-B6fsgIBA.js +0 -1
  68. package/dist/web-Cfvbn9H1.js +0 -3
  69. package/dist/workflow-w5JPZXgc.js +0 -23
  70. /package/dist/assets/plugins/slots/{approval.8b3f37d9-CqQk6XG_.js → approval.293d9a00-CqQk6XG_.js} +0 -0
  71. /package/dist/assets/plugins/slots/{artifacts.47d00f81-D-vQ-7Iz.js → artifacts.24567664-D-vQ-7Iz.js} +0 -0
  72. /package/dist/assets/plugins/slots/{autocompact.9a92993d-B3KTYwW1.js → autocompact.dd97d013-B3KTYwW1.js} +0 -0
  73. /package/dist/assets/plugins/slots/{builtin-tools.939bbfff-CZRYQVIP.js → builtin-tools.36d7400b-CZRYQVIP.js} +0 -0
  74. /package/dist/assets/plugins/slots/{codemode.782e5bb1-Bzl_K_vt.js → codemode.8eaee717-Bzl_K_vt.js} +0 -0
  75. /package/dist/assets/plugins/slots/{domain.21790b66-CvnpuKCY.js → domain.5e95fc37-CvnpuKCY.js} +0 -0
  76. /package/dist/assets/plugins/slots/{edit.c7c85129-kaxIknZ-.js → edit.385c9aa9-kaxIknZ-.js} +0 -0
  77. /package/dist/assets/plugins/slots/{files.bbcef824-wuB8gcQA.js → files.daf34ed8-wuB8gcQA.js} +0 -0
  78. /package/dist/assets/plugins/slots/{grep.3dfd3214-3FnU8p-d.js → grep.02052cdc-3FnU8p-d.js} +0 -0
  79. /package/dist/assets/plugins/slots/{log.33bc7d38-C0PXQ0O1.js → log.a86eb6d0-C0PXQ0O1.js} +0 -0
  80. /package/dist/assets/plugins/slots/{mcp.59c68bcb-D0CkHnIw.js → mcp.974af249-D0CkHnIw.js} +0 -0
  81. /package/dist/assets/plugins/slots/{profile.ea55f5e1-BSY3iYfJ.js → profile.48851a1d-BSY3iYfJ.js} +0 -0
  82. /package/dist/assets/plugins/slots/{prompts.9957cc84-xdCkNkoA.js → prompts.723d7748-xdCkNkoA.js} +0 -0
  83. /package/dist/assets/plugins/slots/{read.30a617e7-qqaxVlEX.js → read.46bf6536-qqaxVlEX.js} +0 -0
  84. /package/dist/assets/plugins/slots/{runner.9f3559b0-DfO2Z9HG.js → runner.53e9bd76-DfO2Z9HG.js} +0 -0
  85. /package/dist/assets/plugins/slots/{skill.f506a5ea-CL_n-l4h.js → skill.086701a4-CL_n-l4h.js} +0 -0
  86. /package/dist/assets/plugins/slots/{vault.01657352-DbG3F_on.js → vault.ac9935c8-DbG3F_on.js} +0 -0
@@ -1,12 +1,12 @@
1
- import { s as createSerialRunner } from "./serverPlugin-pCqlBqQG.js";
2
- import "./platform-CyvF7X-b.js";
3
- import "./atomicJson-BF1fVXy1.js";
4
- import "./layeredConfig-B4s0eZ5o.js";
5
- import "./sessionConfig-DzAs6Pt-.js";
6
- import "./domains-Bl6T2dKV.js";
7
- import "./piConfig-CcoMX-1L.js";
8
- import "./majorModes-IygGmbb8.js";
9
- import "./harnessStore-flLz1I0F.js";
1
+ import { mn as createSerialRunner } from "./serverPlugin-OOfjB8tm.js";
2
+ import "./platform-yhQXrrM_.js";
3
+ import "./atomicJson-DCIsEywH.js";
4
+ import "./layeredConfig-pQGjhAks.js";
5
+ import "./sessionConfig-C-zJI72k.js";
6
+ import "./domains-BqChtBLN.js";
7
+ import "./piConfig-BDUpA6w0.js";
8
+ import "./majorModes-BrL4EtzH.js";
9
+ import "./harnessStore-BectazJQ.js";
10
10
  import "node:path";
11
11
  //#region ../../foundations/po-config/src/services/init/templates.ts
12
12
  /** Personal-only: a repository pin would override the layout the person picks during onboarding. */
@@ -1,4 +1,4 @@
1
- import { U as readPoHeadlessHost, X as requirePoServerHost, er as PO_SERVER_SCOPE_LEVELS, ir as requirePoServerScope, q as PO_SERVER_HOST_SERVICE, tr as PO_SERVER_SCOPE_SERVICE } from "./serverPlugin-pCqlBqQG.js";
1
+ import { ar as requirePoServerScope, g as PO_SERVER_HOST_SERVICE, nr as PO_SERVER_SCOPE_SERVICE, p as readPoHeadlessHost, tr as PO_SERVER_SCOPE_LEVELS, y as requirePoServerHost } from "./serverPlugin-OOfjB8tm.js";
2
2
  //#region ../../core/po-core/src/services/pluginLifecycle/index.ts
3
3
  /** Runs ordered cleanup steps to completion before reporting their failures. */
4
4
  async function runCleanups(steps, message) {
@@ -1,7 +1,7 @@
1
- import { l as nodeHost, s as createSerialRunner } from "./serverPlugin-pCqlBqQG.js";
2
- import { i as readTextIfExists } from "./platformFiles-Ccj9HCvA.js";
3
- import "./platform-CyvF7X-b.js";
4
- import "./atomicJson-BF1fVXy1.js";
1
+ import { gn as nodeHost, mn as createSerialRunner } from "./serverPlugin-OOfjB8tm.js";
2
+ import { i as readTextIfExists } from "./platformFiles-DB3Cw1l_.js";
3
+ import "./platform-yhQXrrM_.js";
4
+ import "./atomicJson-DCIsEywH.js";
5
5
  import { t as readHarnessState } from "./harnessState-gmzJcPGt.js";
6
6
  import "node:path";
7
7
  //#region ../../foundations/po-config/src/services/harnessStore/core.ts
@@ -0,0 +1 @@
1
+ import "./harnessStore-BectazJQ.js";
@@ -1,5 +1,5 @@
1
- import { Et as String, It as Literal, Lt as Integer, Qt as _Object_, an as _Array_, en as Optional, nr as defineServiceContract, wt as Union } from "./serverPlugin-pCqlBqQG.js";
2
- import "./value-DGT5IoiK.js";
1
+ import { B as String, R as Union, X as Literal, Z as Integer, ft as _Object_, mt as Optional, rr as defineServiceContract, yt as _Array_ } from "./serverPlugin-OOfjB8tm.js";
2
+ import "./value-DyVsxCwZ.js";
3
3
  //#region ../../core/po-core/src/schemas/help.ts
4
4
  const PO_HELP_WHEN = {
5
5
  state: { "minor-mode": "help" },
@@ -1,4 +1,4 @@
1
- import { nr as defineServiceContract } from "./serverPlugin-pCqlBqQG.js";
1
+ import { rr as defineServiceContract } from "./serverPlugin-OOfjB8tm.js";
2
2
  //#region ../../core/po-core/src/schemas/packageApi.ts
3
3
  /** Only canonical resource paths may select a protocol listener. */
4
4
  function parsePoSocketPath(pathname) {
@@ -70,6 +70,8 @@ const PO_EDIT_PRESENCE_CONTRACT = defineServiceContract(PO_EDIT_PRESENCE_SERVICE
70
70
  //#region ../../core/po-core/src/schemas/hubChannel.ts
71
71
  /** Compact host-wide session attention, published over the existing direct event bus. */
72
72
  const PO_SESSION_ATTENTION_EVENT = "po.session.attention";
73
+ /** Caller-authored attention entries, consumed live without replaying historical notices. */
74
+ const PO_SESSION_NOTIFICATION_EVENT = "po.session.notification";
73
75
  /**
74
76
  * Provenance of a session a workflow step opened.
75
77
  *
@@ -85,4 +87,4 @@ const REMOTE_CONVERSATION_SESSION_PROVENANCE = "remote-conversation";
85
87
  */
86
88
  const COORDINATOR_SESSION_PROVENANCE = "coordinator";
87
89
  //#endregion
88
- export { PO_API_ROUTE_PREFIX as a, parsePoSocketPath as c, WORKFLOW_STEP_SESSION_PROVENANCE as i, poApiCallerFrom as l, PO_SESSION_ATTENTION_EVENT as n, PO_EDIT_PRESENCE_CONTRACT as o, REMOTE_CONVERSATION_SESSION_PROVENANCE as r, PO_EDIT_PRESENCE_SERVICE as s, COORDINATOR_SESSION_PROVENANCE as t };
90
+ export { WORKFLOW_STEP_SESSION_PROVENANCE as a, PO_EDIT_PRESENCE_SERVICE as c, REMOTE_CONVERSATION_SESSION_PROVENANCE as i, parsePoSocketPath as l, PO_SESSION_ATTENTION_EVENT as n, PO_API_ROUTE_PREFIX as o, PO_SESSION_NOTIFICATION_EVENT as r, PO_EDIT_PRESENCE_CONTRACT as s, COORDINATOR_SESSION_PROVENANCE as t, poApiCallerFrom as u };
@@ -1,5 +1,5 @@
1
- import { p as parse } from "./layeredConfig-B4s0eZ5o.js";
2
- import { s as isRemotePluginSource } from "./domains-Bl6T2dKV.js";
1
+ import { g as parse } from "./layeredConfig-pQGjhAks.js";
2
+ import { s as isRemotePluginSource } from "./domains-BqChtBLN.js";
3
3
  //#region ../../foundations/po-domain/src/services/pluginMaterializer/index.edge.ts
4
4
  /**
5
5
  * Local plugin entries pass through unchanged. Remote entries need git or upm
@@ -1,5 +1,5 @@
1
- import { a as piAgentDirectory } from "./serverPlugin-pCqlBqQG.js";
2
- import "./piSettings-B6fsgIBA.js";
1
+ import { fn as piAgentDirectory } from "./serverPlugin-OOfjB8tm.js";
2
+ import "./piSettings-tdui0CZI.js";
3
3
  import path from "node:path";
4
4
  //#region ../../foundations/po-artifact/src/constants/artifacts.ts
5
5
  const ARTIFACT_DIRECTORY = "po-artifacts";
@@ -1,8 +1,8 @@
1
- import { l as nodeHost, o as poHomeDirectory } from "./serverPlugin-pCqlBqQG.js";
2
- import { i as readTextIfExists } from "./platformFiles-Ccj9HCvA.js";
3
- import "./platform-CyvF7X-b.js";
4
- import "./piSettings-B6fsgIBA.js";
5
- import "node:crypto";
1
+ import { gn as nodeHost, pn as poHomeDirectory } from "./serverPlugin-OOfjB8tm.js";
2
+ import { i as readTextIfExists } from "./platformFiles-DB3Cw1l_.js";
3
+ import "./platform-yhQXrrM_.js";
4
+ import "./piSettings-tdui0CZI.js";
5
+ import { createHash } from "node:crypto";
6
6
  import path from "node:path";
7
7
  //#region ../../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js
8
8
  const ALIAS = Symbol.for("yaml.alias");
@@ -6617,6 +6617,37 @@ function configScopeOf(keyPath) {
6617
6617
  if (REPOSITORY_ONLY_ROOTS.includes(root)) return "repository";
6618
6618
  return "both";
6619
6619
  }
6620
+ const KEY_SEPARATOR = ".";
6621
+ function isPlainRecord(value) {
6622
+ return typeof value === "object" && value !== null && !Array.isArray(value);
6623
+ }
6624
+ /**
6625
+ * Every key path a parsed document actually sets, as dotted strings.
6626
+ *
6627
+ * A settings surface needs to tell "this file set this key" from "this file is
6628
+ * silent about it", and the parsed `PoConfig` cannot answer: an absent file
6629
+ * reads as `{ projectTrust: 'ask' }` and `parsePoConfig` always returns all
6630
+ * known root keys, some undefined. So the question is asked of the raw document
6631
+ * instead, before any defaulting has happened.
6632
+ *
6633
+ * Leaves only. A list is a leaf because it is replaced whole, and an empty
6634
+ * record sets nothing.
6635
+ */
6636
+ function configLeafKeys(value, prefix = []) {
6637
+ if (!isPlainRecord(value)) return prefix.length > 0 ? [prefix.join(KEY_SEPARATOR)] : [];
6638
+ const keys = Object.keys(value);
6639
+ if (keys.length === 0) return prefix.length > 0 ? [prefix.join(KEY_SEPARATOR)] : [];
6640
+ return keys.flatMap((key) => configLeafKeys(value[key], [...prefix, key]));
6641
+ }
6642
+ /** The value a key path points at, or undefined when any step is missing. */
6643
+ function valueAtKeyPath(value, keyPath) {
6644
+ let current = value;
6645
+ for (const segment of keyPath) {
6646
+ if (!isPlainRecord(current)) return void 0;
6647
+ current = current[segment];
6648
+ }
6649
+ return current;
6650
+ }
6620
6651
  //#endregion
6621
6652
  //#region ../../foundations/po-config/src/services/config/core.ts
6622
6653
  /**
@@ -6679,6 +6710,61 @@ function mergeConfigLayers(globalConfig, repositoryConfig, environment) {
6679
6710
  return distributionDefaults(mergePoConfigs(globalConfig, repositoryConfig), environment);
6680
6711
  }
6681
6712
  /**
6713
+ * One config file as a layer: what it is, what it sets, and the bytes it held.
6714
+ * A file that does not exist is a layer that sets nothing, which is a normal
6715
+ * state rather than an error.
6716
+ */
6717
+ function layerFromText(filePath, text) {
6718
+ if (text === void 0) return {
6719
+ filePath,
6720
+ exists: false,
6721
+ hash: "",
6722
+ keys: []
6723
+ };
6724
+ const document = parse(text) ?? {};
6725
+ return {
6726
+ filePath,
6727
+ exists: true,
6728
+ hash: createHash("sha256").update(text, "utf8").digest("hex"),
6729
+ keys: configLeafKeys(document)
6730
+ };
6731
+ }
6732
+ function absentRepositoryLayer() {
6733
+ return {
6734
+ filePath: "",
6735
+ exists: false,
6736
+ hash: "",
6737
+ keys: []
6738
+ };
6739
+ }
6740
+ /**
6741
+ * The two config files kept apart, with the merge alongside them.
6742
+ *
6743
+ * The origin answer respects the merge's own per-field rules rather than simply
6744
+ * preferring the repository: `editor` is read from the global side whatever the
6745
+ * repository says, and `projectTrust` from the repository side whatever the
6746
+ * global one says. Reporting a file as the source of a value the merge discards
6747
+ * is the exact confusion this exists to remove.
6748
+ */
6749
+ function composeConfigLayers(globalLayer, repositoryLayer, effective) {
6750
+ const sets = (layer, keyPath) => {
6751
+ const dotted = keyPath.join(".");
6752
+ return layer.keys.some((key) => key === dotted || key.startsWith(`${dotted}.`));
6753
+ };
6754
+ return {
6755
+ globalFile: globalLayer,
6756
+ repositoryFile: repositoryLayer,
6757
+ effective,
6758
+ originOf(keyPath) {
6759
+ const scope = configScopeOf(keyPath);
6760
+ if (scope !== "global" && sets(repositoryLayer, keyPath)) return "repository";
6761
+ if (scope !== "repository" && sets(globalLayer, keyPath)) return "global";
6762
+ return "default";
6763
+ },
6764
+ valueAt: (keyPath) => valueAtKeyPath(effective, keyPath)
6765
+ };
6766
+ }
6767
+ /**
6682
6768
  * The global and repository locations of one named `.po` document, lowest
6683
6769
  * precedence first.
6684
6770
  */
@@ -6732,4 +6818,4 @@ async function readPoConfigSourcesAsync(fs, fileName, repoRoot, context, homeDir
6732
6818
  return sources;
6733
6819
  }
6734
6820
  //#endregion
6735
- export { YAMLMap as _, globalPoConfigDirectory as a, isSeq as b, repositoryConfigFor as c, configScopeOf as d, parsePoConfig as f, Document as g, stringify as h, defaultPoConfig as i, repositoryPoConfigPath as l, parseDocument as m, poConfigCandidates as n, globalPoConfigPath as o, parse as p, configFromText as r, mergeConfigLayers as s, readPoConfigSourcesAsync as t, resolvePlanningPlansDirectory as u, isMap as v, isScalar as y };
6821
+ export { isSeq as C, isScalar as S, parseDocument as _, configFromText as a, YAMLMap as b, globalPoConfigPath as c, repositoryConfigFor as d, repositoryPoConfigPath as f, parse as g, parsePoConfig as h, composeConfigLayers as i, layerFromText as l, configScopeOf as m, poConfigCandidates as n, defaultPoConfig as o, resolvePlanningPlansDirectory as p, absentRepositoryLayer as r, globalPoConfigDirectory as s, readPoConfigSourcesAsync as t, mergeConfigLayers as u, stringify as v, isMap as x, Document as y };
@@ -1,7 +1,7 @@
1
- import { l as nodeHost, p as getOrThrow } from "./serverPlugin-pCqlBqQG.js";
2
- import { i as readTextIfExists } from "./platformFiles-Ccj9HCvA.js";
3
- import "./platform-CyvF7X-b.js";
4
- import { t as readPoConfigSourcesAsync } from "./layeredConfig-B4s0eZ5o.js";
1
+ import { bn as getOrThrow, gn as nodeHost } from "./serverPlugin-OOfjB8tm.js";
2
+ import { i as readTextIfExists } from "./platformFiles-DB3Cw1l_.js";
3
+ import "./platform-yhQXrrM_.js";
4
+ import { t as readPoConfigSourcesAsync } from "./layeredConfig-pQGjhAks.js";
5
5
  import path from "node:path";
6
6
  //#region ../../foundations/po-config/src/services/majorModes/core.ts
7
7
  const MODES_FILE = "modes.yaml";
@@ -247,15 +247,6 @@ function resolveLayers(config, majorMode) {
247
247
  return [...config.majorMode[majorMode].layers];
248
248
  }
249
249
  //#endregion
250
- //#region ../../foundations/po-config/src/services/majorModes/sync.edge.ts
251
- function nodeOnly(name, asyncName) {
252
- throw new Error(`${name} is Node-only; use ${asyncName} with a PoPlatform on the edge.`);
253
- }
254
- /** @deprecated Node-only sync shim; use readMajorModesConfig. Removed in M2. */
255
- function loadMajorModesConfig(_repoRoot, _homeDirectory, _environment) {
256
- return nodeOnly("loadMajorModesConfig", "readMajorModesConfig");
257
- }
258
- //#endregion
259
250
  //#region ../../foundations/po-config/src/services/majorModes/index.ts
260
251
  const PACKAGE_MANIFEST = "package.json";
261
252
  const SCOPE_PREFIX = "@";
@@ -330,4 +321,4 @@ async function readPackageConfigurations(fs, config, names, packageName, context
330
321
  return resolvePackageConfigurations(config, names, packageName, (specifier, baseDirectory) => packageNames.get(key(specifier, baseDirectory)));
331
322
  }
332
323
  //#endregion
333
- export { resolveLayers as a, MODES_FILE as i, readPackageConfigurations as n, loadMajorModesConfig as r, readMajorModesConfig as t };
324
+ export { resolveLayers as i, readPackageConfigurations as n, MODES_FILE as r, readMajorModesConfig as t };
@@ -0,0 +1 @@
1
+ import "./majorModes-BrL4EtzH.js";
@@ -1,5 +1,5 @@
1
- import { Et as String, It as Literal, Qt as _Object_, an as _Array_, en as Optional, wt as Union, zt as Boolean } from "./serverPlugin-pCqlBqQG.js";
2
- import { n as Check, t as Errors } from "./value-DGT5IoiK.js";
1
+ import { $ as Boolean, B as String, R as Union, X as Literal, ft as _Object_, mt as Optional, yt as _Array_ } from "./serverPlugin-OOfjB8tm.js";
2
+ import { n as Check, t as Errors } from "./value-DyVsxCwZ.js";
3
3
  /** The portable MCP document revision represented by `agent-plugin-v1`. */
4
4
  const AGENT_PLUGIN_MCP_SCHEMA_URL = "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json";
5
5
  /** Cordis service name for the immutable MCP projection of one Pi session. */
@@ -1,5 +1,5 @@
1
- import { Et as String, It as Literal, Qt as _Object_, en as Optional, wt as Union } from "./serverPlugin-pCqlBqQG.js";
2
- import { n as Check } from "./value-DGT5IoiK.js";
1
+ import { B as String, R as Union, X as Literal, ft as _Object_, mt as Optional } from "./serverPlugin-OOfjB8tm.js";
2
+ import { n as Check } from "./value-DyVsxCwZ.js";
3
3
  //#region ../../core/po-core/src/schemas/notification.ts
4
4
  /** Provider-owned Cordis service for caller-authored notification requests. */
5
5
  const PO_NOTIFICATION_SERVICE = "po/notification";
@@ -36,7 +36,7 @@ const NormalizablePoNotificationRequestSchema = _Object_({
36
36
  level: Optional(PoNotificationLevelSchema),
37
37
  attention: PoNotificationAttentionSchema
38
38
  }, { additionalProperties: false });
39
- _Object_({
39
+ const PoNotificationEntryDataSchema = _Object_({
40
40
  version: Literal(1),
41
41
  title: String({ maxLength: 128 }),
42
42
  subtitle: String({ maxLength: 256 }),
@@ -92,8 +92,11 @@ function createPoNotificationEntryData(request) {
92
92
  ...normalized.attention ? { attention: true } : {}
93
93
  });
94
94
  }
95
+ function isPoNotificationEntryData(value) {
96
+ return Check(PoNotificationEntryDataSchema, value);
97
+ }
95
98
  function readPoNotificationService(context) {
96
99
  return context.get(PO_NOTIFICATION_SERVICE);
97
100
  }
98
101
  //#endregion
99
- export { createPoNotificationEntryData as n, readPoNotificationService as r, PO_NOTIFICATION_ENTRY_TYPE as t };
102
+ export { readPoNotificationService as i, createPoNotificationEntryData as n, isPoNotificationEntryData as r, PO_NOTIFICATION_ENTRY_TYPE as t };
@@ -1,8 +1,8 @@
1
- import { a as piAgentDirectory, l as nodeHost, s as createSerialRunner } from "./serverPlugin-pCqlBqQG.js";
2
- import { i as readTextIfExists } from "./platformFiles-Ccj9HCvA.js";
3
- import "./platform-CyvF7X-b.js";
4
- import "./piSettings-B6fsgIBA.js";
5
- import { n as writePrivateAtomicJsonAsync } from "./atomicJson-BF1fVXy1.js";
1
+ import { fn as piAgentDirectory, gn as nodeHost, mn as createSerialRunner } from "./serverPlugin-OOfjB8tm.js";
2
+ import { i as readTextIfExists } from "./platformFiles-DB3Cw1l_.js";
3
+ import "./platform-yhQXrrM_.js";
4
+ import { n as writePrivateAtomicJsonAsync } from "./atomicJson-DCIsEywH.js";
5
+ import "./piSettings-tdui0CZI.js";
6
6
  import path from "node:path";
7
7
  //#region ../../foundations/po-config/src/services/imageSettings/index.ts
8
8
  const IMAGE_SETTINGS_KEY = "images";
@@ -0,0 +1 @@
1
+ import "./serverPlugin-OOfjB8tm.js";
@@ -1,4 +1,4 @@
1
- import { y as SessionIdentityDoc } from "./serverPlugin-pCqlBqQG.js";
1
+ import { En as SessionIdentityDoc } from "./serverPlugin-OOfjB8tm.js";
2
2
  //#region ../../core/po-core/src/services/durableSession/index.ts
3
3
  /** Stamps a new session's identity, or checks an existing one matches the requested id. */
4
4
  async function initializeSessionIdentity(session, request, context) {
@@ -1,4 +1,4 @@
1
- import { Yn as BACKGROUND_CONTEXT, p as getOrThrow } from "./serverPlugin-pCqlBqQG.js";
1
+ import { Bn as BACKGROUND_CONTEXT, bn as getOrThrow } from "./serverPlugin-OOfjB8tm.js";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import path from "node:path";
4
4
  //#region ../../core/po-core/src/services/platformFiles/index.ts
@@ -1,5 +1,5 @@
1
- import { Et as String$1, It as Literal, Qt as _Object_, en as Optional, zt as Boolean } from "./serverPlugin-pCqlBqQG.js";
2
- import { t as Errors } from "./value-DGT5IoiK.js";
1
+ import { $ as Boolean, B as String$1, X as Literal, ft as _Object_, mt as Optional } from "./serverPlugin-OOfjB8tm.js";
2
+ import { t as Errors } from "./value-DyVsxCwZ.js";
3
3
  _Object_({
4
4
  code: String$1({ minLength: 1 }),
5
5
  message: String$1({ minLength: 1 }),
@@ -1,10 +1,10 @@
1
- import { J as composeServerProviderOverrides } from "./serverPlugin-pCqlBqQG.js";
2
- import { n as DEFAULT_COMPACTION_POLICY } from "./agent-DYFqCLl2.js";
3
- import { i as defineHook, n as composeRootInjects, p as defineServerPlugin, s as defineRoot, t as composeRootHooks } from "./extensionFile-D7wk8tFr.js";
1
+ import { _ as composeServerProviderOverrides, x as PO_CONFIG_SERVICE } from "./serverPlugin-OOfjB8tm.js";
2
+ import { n as DEFAULT_COMPACTION_POLICY } from "./agent-DTjnYFAN.js";
3
+ import { x as loadPoConfig } from "./sessionConfig-C-zJI72k.js";
4
+ import "./exports-DX8LJfSj.js";
5
+ import { i as defineHook, n as composeRootInjects, p as defineServerPlugin, s as defineRoot, t as composeRootHooks } from "./extensionFile-Ds7RCpnb.js";
4
6
  import { t as createPoTelemetry } from "./index.edge-ChYa2LU4.js";
5
- import { a as readArtifactBytes, c as ArtifactAccessError, f as COMPACTION_ARTIFACT_DIRECTORY, i as openArtifact, l as artifactRoot, o as removeArtifact, r as listArtifacts, s as writeArtifactText } from "./index.edge-C9_xuXyy.js";
6
- import { p as loadPoConfig } from "./sessionConfig-DzAs6Pt-.js";
7
- import "./exports-CxkWsXI9.js";
7
+ import { a as readArtifactBytes, c as ArtifactAccessError, f as COMPACTION_ARTIFACT_DIRECTORY, i as openArtifact, l as artifactRoot, o as removeArtifact, r as listArtifacts, s as writeArtifactText } from "./index.edge-BLmsRNW8.js";
8
8
  import { t as minimatch } from "./esm-BKJy3O9-.js";
9
9
  //#region ../../core/po-core/src/schemas/contextContributions.ts
10
10
  /** Session-scoped broker for bounded context rendered by optional Po packages. */
@@ -18,6 +18,27 @@ function requirePoContextContributions(context) {
18
18
  return service;
19
19
  }
20
20
  //#endregion
21
+ //#region ../../default/po-autocompact/src/services/admittedModes/index.edge.ts
22
+ /**
23
+ * An edge host has no config files for autocompact to read, so its settings come from the snapshot the host
24
+ * admitted as `po/config`. Each call reads the service's current snapshot, because a settings save replaces it,
25
+ * and throws while the host has admitted none or after its provider unloads.
26
+ */
27
+ function admittedModes(context) {
28
+ let settings;
29
+ context.inject([PO_CONFIG_SERVICE], (scoped) => {
30
+ const config = scoped.get(PO_CONFIG_SERVICE);
31
+ settings = config ? () => config.getSnapshot().settings : void 0;
32
+ return () => {
33
+ settings = void 0;
34
+ };
35
+ });
36
+ return () => {
37
+ if (!settings) throw new Error("Autocompact requires injected session configuration.");
38
+ return settings().modes;
39
+ };
40
+ }
41
+ //#endregion
21
42
  //#region ../../default/po-autocompact/src/services/autocompactTelemetry/index.ts
22
43
  const SERVICE_NAME = "po-autocompact";
23
44
  const PACKAGE_NAME = "@agimon-ai/po-autocompact";
@@ -213,18 +234,31 @@ const DEFAULT_RUNTIME_CONFIG = {
213
234
  ratios: {},
214
235
  overrides: []
215
236
  };
237
+ /** While admitted settings cannot be read a disable could be hidden, so autocompact stands down for the host. */
238
+ const UNAVAILABLE_RUNTIME_CONFIG = {
239
+ enabled: false,
240
+ ratios: {},
241
+ overrides: []
242
+ };
216
243
  /**
217
244
  * What the Po config says about this package.
218
245
  *
219
246
  * `modes.autocompact` is read first and `modes.planning.subagents` is the
220
247
  * fallback, because summarization borrowed the planning subagent model before
221
248
  * it had keys of its own and existing files still spell it that way.
249
+ *
250
+ * A host that admits its configuration passes `admitted`, and that is read instead of the files. Reading it
251
+ * failing is reported and stands autocompact down, where unreadable files keep the session model and stay on.
222
252
  */
223
- function autocompactRuntimeConfig(root, onLoadFailure) {
253
+ function autocompactRuntimeConfig(root, onLoadFailure, admitted) {
224
254
  let modes;
225
255
  try {
226
- modes = loadPoConfig(root).modes;
256
+ modes = admitted ? admitted() : loadPoConfig(root).modes;
227
257
  } catch (error) {
258
+ if (admitted) {
259
+ onLoadFailure?.(error);
260
+ return UNAVAILABLE_RUNTIME_CONFIG;
261
+ }
228
262
  process.emitWarning("Po autocompact configuration could not be loaded; using the active session model instead.");
229
263
  onLoadFailure?.(error);
230
264
  return DEFAULT_RUNTIME_CONFIG;
@@ -742,8 +776,12 @@ function createNativeAutocompact(dependencies = {}) {
742
776
  ...attributes(),
743
777
  "failure.kind": "configuration"
744
778
  });
779
+ if (dependencies.modes) Promise.allSettled([Promise.resolve().then(() => execution.client.notify({
780
+ body: `Po autocompact is paused until its configuration is available: ${error instanceof Error ? error.message : String(error)}`,
781
+ level: "warning"
782
+ }))]);
745
783
  }
746
- });
784
+ }, dependencies.modes);
747
785
  const alive = (version) => active && !navigating && generation === version;
748
786
  const refreshStatus = (execution) => {
749
787
  const phase = state.phase === "checkpoint_pending" ? "summarizing" : state.phase === "checkpoint_ready" ? "applying" : void 0;
@@ -1403,11 +1441,14 @@ function createNativeAutocompact(dependencies = {}) {
1403
1441
  }
1404
1442
  //#endregion
1405
1443
  //#region ../../default/po-autocompact/src/extensions/workspaces/sessions/(backend)/root.server.ts
1406
- var root_server_default = defineRoot(({ agent }) => {
1407
- const runtime = createNativeAutocompact({ telemetry: createAutocompactTelemetry({
1408
- env: agent?.context.environment,
1409
- cwd: agent?.context.cwd
1410
- }) });
1444
+ var root_server_default = defineRoot(({ agent, context }) => {
1445
+ const runtime = createNativeAutocompact({
1446
+ telemetry: createAutocompactTelemetry({
1447
+ env: agent?.context.environment,
1448
+ cwd: agent?.context.cwd
1449
+ }),
1450
+ modes: admittedModes(context)
1451
+ });
1411
1452
  return {
1412
1453
  value: runtime,
1413
1454
  services: [runtime.plugin],
@@ -1,10 +1,10 @@
1
- import { Et as String$1, J as composeServerProviderOverrides, Qt as _Object_, Yn as BACKGROUND_CONTEXT, Zn as withAbortSignal, at as requirePoFs, en as Optional, l as nodeHost, p as getOrThrow } from "./serverPlugin-pCqlBqQG.js";
2
- import { l as defineRoutedContribution, n as composeRootInjects, p as defineServerPlugin, s as defineRoot, t as composeRootHooks } from "./extensionFile-D7wk8tFr.js";
3
- import { n as readPackageResource, t as packageResourcePath } from "./index.edge-uSjRpm6Z.js";
4
- import "./platform-CyvF7X-b.js";
5
- import { i as resolveSharedSkillsAsync, r as resolvePluginEntriesAsync, t as listDomainNamesAsync } from "./domains-Bl6T2dKV.js";
1
+ import { $n as requirePoFs, B as String$1, Bn as BACKGROUND_CONTEXT, Hn as withAbortSignal, _ as composeServerProviderOverrides, bn as getOrThrow, ft as _Object_, gn as nodeHost, mt as Optional } from "./serverPlugin-OOfjB8tm.js";
2
+ import "./platform-yhQXrrM_.js";
3
+ import { i as resolveSharedSkillsAsync, r as resolvePluginEntriesAsync, t as listDomainNamesAsync } from "./domains-BqChtBLN.js";
6
4
  import { t as readHarnessState } from "./harnessState-gmzJcPGt.js";
7
- import { i as materializePluginEntries, n as skillName, r as splitFrontmatter } from "./index.edge-CJ2TFpgF.js";
5
+ import { l as defineRoutedContribution, n as composeRootInjects, p as defineServerPlugin, s as defineRoot, t as composeRootHooks } from "./extensionFile-Ds7RCpnb.js";
6
+ import { n as readPackageResource, t as packageResourcePath } from "./index.edge-uSjRpm6Z.js";
7
+ import { i as materializePluginEntries, n as skillName, r as splitFrontmatter } from "./index.edge-B0D_Lgbx.js";
8
8
  import path from "node:path";
9
9
  //#region ../../foundations/po-skill/src/constants/skillInventory.ts
10
10
  /**
@@ -1,8 +1,8 @@
1
- import { J as composeServerProviderOverrides, ir as requirePoServerScope, o as poHomeDirectory, tr as PO_SERVER_SCOPE_SERVICE } from "./serverPlugin-pCqlBqQG.js";
2
- import { c as defineRoute, n as composeRootInjects, p as defineServerPlugin, s as defineRoot, t as composeRootHooks } from "./extensionFile-D7wk8tFr.js";
3
- import { a as assertRevision, b as VAULT_META_CHECK, c as PO_VAULT_ACCOUNT_SERVICE, d as VAULT_CHECK_PLAINTEXT, f as VAULT_DB_PREFIX, g as VAULT_KEY_LOST_NOTICE, h as VAULT_KEYRING_ACCOUNT_PREFIX, i as assertEntryName, m as VAULT_INIT_LEASE, n as VaultError, o as serializeValue, p as VAULT_DIRECTORY, r as asVaultError, s as PO_VAULT_CONTRACT, t as serveVaultSettings, u as VAULT_CHECK_AAD, x as VAULT_META_ID } from "./vaultSettings-BRr8n821.js";
4
- import "./piSettings-B6fsgIBA.js";
5
- import { a as PO_DB_SERVICE, n as requirePoDb, t as PO_DB_CONTRACT } from "./contracts-CnRs-Twx.js";
1
+ import { _ as composeServerProviderOverrides, ar as requirePoServerScope, nr as PO_SERVER_SCOPE_SERVICE, pn as poHomeDirectory } from "./serverPlugin-OOfjB8tm.js";
2
+ import "./piSettings-tdui0CZI.js";
3
+ import { c as defineRoute, n as composeRootInjects, p as defineServerPlugin, s as defineRoot, t as composeRootHooks } from "./extensionFile-Ds7RCpnb.js";
4
+ import { a as assertRevision, b as VAULT_META_CHECK, c as PO_VAULT_ACCOUNT_SERVICE, d as VAULT_CHECK_PLAINTEXT, f as VAULT_DB_PREFIX, g as VAULT_KEY_LOST_NOTICE, h as VAULT_KEYRING_ACCOUNT_PREFIX, i as assertEntryName, m as VAULT_INIT_LEASE, n as VaultError, o as serializeValue, p as VAULT_DIRECTORY, r as asVaultError, s as PO_VAULT_CONTRACT, t as serveVaultSettings, u as VAULT_CHECK_AAD, x as VAULT_META_ID } from "./vaultSettings-BFCRCBM3.js";
5
+ import { a as PO_DB_SERVICE, n as requirePoDb, t as PO_DB_CONTRACT } from "./contracts-CylyLZC8.js";
6
6
  import { createCipheriv, createDecipheriv, randomBytes, randomUUID } from "node:crypto";
7
7
  import path from "node:path";
8
8
  import { Buffer } from "node:buffer";
@@ -1,8 +1,17 @@
1
- import "./serverPlugin-pCqlBqQG.js";
2
- import { c as defineRoute, l as defineRoutedContribution, o as defineResource, p as defineServerPlugin } from "./extensionFile-D7wk8tFr.js";
1
+ import "./serverPlugin-OOfjB8tm.js";
2
+ import { i as resolveLayers } from "./majorModes-BrL4EtzH.js";
3
+ import { c as defineRoute, l as defineRoutedContribution, o as defineResource, p as defineServerPlugin } from "./extensionFile-Ds7RCpnb.js";
3
4
  import { n as readPackageResource, t as packageResourcePath } from "./index.edge-uSjRpm6Z.js";
4
- import { a as resolveLayers, r as loadMajorModesConfig } from "./majorModes-IygGmbb8.js";
5
- import "./majorModes-xpLK9HpD.js";
5
+ import "./majorModes-WXt22_km.js";
6
+ //#region ../../foundations/po-config/src/services/majorModes/sync.edge.ts
7
+ function nodeOnly(name, asyncName) {
8
+ throw new Error(`${name} is Node-only; use ${asyncName} with a PoPlatform on the edge.`);
9
+ }
10
+ /** @deprecated Node-only sync shim; use readMajorModesConfig. Removed in M2. */
11
+ function loadMajorModesConfig(_repoRoot, _homeDirectory, _environment) {
12
+ return nodeOnly("loadMajorModesConfig", "readMajorModesConfig");
13
+ }
14
+ //#endregion
6
15
  //#region ../../foundations/po-major-mode/src/extensions/workspaces/sessions/(backend)/api/major-mode/route.server.ts
7
16
  var route_server_default = defineRoute(({ agent }) => ({
8
17
  basePath: "major-mode",
@@ -1,13 +1,13 @@
1
- import { Yn as BACKGROUND_CONTEXT, a as piAgentDirectory, at as requirePoFs, l as nodeHost, p as getOrThrow } from "./serverPlugin-pCqlBqQG.js";
2
- import { c as defineRoute, o as defineResource, p as defineServerPlugin, u as defineServerCommand } from "./extensionFile-D7wk8tFr.js";
1
+ import { $n as requirePoFs, Bn as BACKGROUND_CONTEXT, bn as getOrThrow, fn as piAgentDirectory, gn as nodeHost } from "./serverPlugin-OOfjB8tm.js";
2
+ import "./platform-yhQXrrM_.js";
3
+ import "./piSettings-tdui0CZI.js";
4
+ import "./approvalPrompt-DoHlIPkU.js";
5
+ import { n as defineApiRoutes, t as apiResponse } from "./hubRevisions-58pU2dW5.js";
6
+ import { c as defineRoute, o as defineResource, p as defineServerPlugin, u as defineServerCommand } from "./extensionFile-Ds7RCpnb.js";
3
7
  import { n as readPackageResource } from "./index.edge-uSjRpm6Z.js";
4
- import "./approvalPrompt-1FPgNwMA.js";
5
- import "./platform-CyvF7X-b.js";
6
8
  import "./browser-BWf8OMfl.js";
7
- import "./piSettings-B6fsgIBA.js";
8
- import { n as defineApiRoutes, t as apiResponse } from "./hubRevisions-58pU2dW5.js";
9
9
  import { t as Hono } from "./dist-B-vqs6tA.js";
10
- import { t as PO_HELP_WHEN } from "./help-DjybmnPW.js";
10
+ import { t as PO_HELP_WHEN } from "./help-Dpm82qDr.js";
11
11
  import path from "node:path";
12
12
  //#region ../../default/po-prompt/src/constants/promptStore.ts
13
13
  const PROMPTS_DIR = "prompts";
@@ -1,7 +1,7 @@
1
- import { Et as String, J as composeServerProviderOverrides, Ot as Number, Qt as _Object_, an as _Array_, en as Optional, zt as Boolean } from "./serverPlugin-pCqlBqQG.js";
2
- import { c as defineRoute, d as defineServerTool, i as defineHook, n as composeRootInjects, o as defineResource, p as defineServerPlugin, r as defineChannel, s as defineRoot, t as composeRootHooks, u as defineServerCommand } from "./extensionFile-D7wk8tFr.js";
1
+ import { $ as Boolean, B as String, H as Number, _ as composeServerProviderOverrides, ft as _Object_, mt as Optional, yt as _Array_ } from "./serverPlugin-OOfjB8tm.js";
2
+ import { c as defineRoute, d as defineServerTool, i as defineHook, n as composeRootInjects, o as defineResource, p as defineServerPlugin, r as defineChannel, s as defineRoot, t as composeRootHooks, u as defineServerCommand } from "./extensionFile-Ds7RCpnb.js";
3
3
  import { n as readPackageResource, t as packageResourcePath } from "./index.edge-uSjRpm6Z.js";
4
- import { t as PO_HELP_WHEN } from "./help-DjybmnPW.js";
4
+ import { t as PO_HELP_WHEN } from "./help-Dpm82qDr.js";
5
5
  //#region ../../default/po-runner/src/constants/runners.ts
6
6
  const RUNNER_UNAVAILABLE_MESSAGE = "Subprocess supervision is unavailable on this host.";
7
7
  //#endregion
@@ -1,17 +1,17 @@
1
- import { Et as String$1, It as Literal, J as composeServerProviderOverrides, Lt as Integer, Qt as _Object_, Xt as Unknown, Yn as BACKGROUND_CONTEXT, Zn as withAbortSignal, an as _Array_, at as requirePoFs, en as Optional, l as nodeHost, nt as readPoFs, o as poHomeDirectory, p as getOrThrow, wt as Union, zt as Boolean$1 } from "./serverPlugin-pCqlBqQG.js";
2
- import "./value-DGT5IoiK.js";
3
- import { o as removePath, s as writeFileAtomic } from "./platformFiles-Ccj9HCvA.js";
4
- import { c as defineRoute, l as defineRoutedContribution, n as composeRootInjects, o as defineResource, p as defineServerPlugin, s as defineRoot, t as composeRootHooks } from "./extensionFile-D7wk8tFr.js";
1
+ import { $ as Boolean$1, $n as requirePoFs, B as String$1, Bn as BACKGROUND_CONTEXT, Hn as withAbortSignal, R as Union, X as Literal, Xn as readPoFs, Z as Integer, _ as composeServerProviderOverrides, bn as getOrThrow, ft as _Object_, gn as nodeHost, mt as Optional, pn as poHomeDirectory, ut as Unknown, yt as _Array_ } from "./serverPlugin-OOfjB8tm.js";
2
+ import { o as removePath, s as writeFileAtomic } from "./platformFiles-DB3Cw1l_.js";
3
+ import "./platform-yhQXrrM_.js";
4
+ import { C as isSeq, S as isScalar, _ as parseDocument, s as globalPoConfigDirectory, x as isMap, y as Document } from "./layeredConfig-pQGjhAks.js";
5
+ import "./piSettings-tdui0CZI.js";
6
+ import { c as pluginDirectoryForSource, n as loadDomainsAsync, o as expandDomainNames, r as resolvePluginEntriesAsync, t as listDomainNamesAsync } from "./domains-BqChtBLN.js";
7
+ import "./value-DyVsxCwZ.js";
8
+ import { t as loadHarnessStateAsync } from "./harnessStore-BectazJQ.js";
9
+ import { c as defineRoute, l as defineRoutedContribution, n as composeRootInjects, o as defineResource, p as defineServerPlugin, s as defineRoot, t as composeRootHooks } from "./extensionFile-Ds7RCpnb.js";
5
10
  import { n as readPackageResource, t as packageResourcePath } from "./index.edge-uSjRpm6Z.js";
6
- import "./platform-CyvF7X-b.js";
7
- import "./piSettings-B6fsgIBA.js";
8
- import { a as globalPoConfigDirectory, b as isSeq, g as Document, m as parseDocument, v as isMap, y as isScalar } from "./layeredConfig-B4s0eZ5o.js";
9
- import { c as pluginDirectoryForSource, n as loadDomainsAsync, o as expandDomainNames, r as resolvePluginEntriesAsync, t as listDomainNamesAsync } from "./domains-Bl6T2dKV.js";
10
- import { t as loadHarnessStateAsync } from "./harnessStore-flLz1I0F.js";
11
- import { i as readPoCodemode, n as PO_CODEMODE_SERVICE } from "./codemode-CZ_eYTwm.js";
12
- import "./harnessStore-Bap8lsAg.js";
13
- import { r as PO_USER_MCP_CONFIG_FILE, t as PO_MCP_PROJECTION_RESOLVER_SERVICE } from "./mcpProjection-BA6baFpi.js";
14
- import { i as materializePluginEntries, n as skillName, r as splitFrontmatter, t as stageMcpResources } from "./index.edge-CJ2TFpgF.js";
11
+ import { r as PO_USER_MCP_CONFIG_FILE, t as PO_MCP_PROJECTION_RESOLVER_SERVICE } from "./mcpProjection-pbPBBuvs.js";
12
+ import { i as readPoCodemode, n as PO_CODEMODE_SERVICE } from "./codemode-CgVosRtU.js";
13
+ import "./harnessStore-C0Zwvny8.js";
14
+ import { i as materializePluginEntries, n as skillName, r as splitFrontmatter, t as stageMcpResources } from "./index.edge-B0D_Lgbx.js";
15
15
  import path from "node:path";
16
16
  //#region ../../foundations/po-domain/src/services/mcpFilter/core.ts
17
17
  /**
@@ -1,6 +1,6 @@
1
- import "./serverPlugin-pCqlBqQG.js";
1
+ import "./serverPlugin-OOfjB8tm.js";
2
2
  import { t as defineCommand } from "./pluginContributions-Be9EnCAW.js";
3
- import { p as defineServerPlugin, u as defineServerCommand } from "./extensionFile-D7wk8tFr.js";
3
+ import { p as defineServerPlugin, u as defineServerCommand } from "./extensionFile-Ds7RCpnb.js";
4
4
  //#region ../../foundations/po-notification/src/extensions/workspaces/sessions/(backend)/_lib/notificationCommand.ts
5
5
  const notificationCommand = defineCommand({
6
6
  name: "notify",