@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.
- package/dist/{agent-DYFqCLl2.js → agent-DTjnYFAN.js} +1 -1
- package/dist/{apiContracts-CDJ9sPkE.js → apiContracts-DepyzMNr.js} +80 -80
- package/dist/{approval-BSX-MRTE.js → approval-Biq3NCWj.js} +2 -2
- package/dist/{approvalPrompt-1FPgNwMA.js → approvalPrompt-DoHlIPkU.js} +2 -2
- package/dist/assets/plugins/compositions.json +1 -1
- package/dist/{atomicJson-BF1fVXy1.js → atomicJson-DCIsEywH.js} +3 -3
- package/dist/{backgroundWork-BaczP3Z1.js → backgroundWork-Bswjs1av.js} +1 -1
- package/dist/{codemode-CZ_eYTwm.js → codemode-CgVosRtU.js} +1 -1
- package/dist/{contracts-CnRs-Twx.js → contracts-CylyLZC8.js} +1 -1
- package/dist/{domains-Bl6T2dKV.js → domains-BqChtBLN.js} +23 -5
- package/dist/{exports-DlcCEAe3.js → exports-DERO0cQf.js} +760 -147
- package/dist/{exports-CxkWsXI9.js → exports-DX8LJfSj.js} +9 -9
- package/dist/{extensionFile-D7wk8tFr.js → extensionFile-Ds7RCpnb.js} +1 -1
- package/dist/{harnessStore-flLz1I0F.js → harnessStore-BectazJQ.js} +4 -4
- package/dist/harnessStore-C0Zwvny8.js +1 -0
- package/dist/{help-DjybmnPW.js → help-Dpm82qDr.js} +2 -2
- package/dist/{hubChannel-Bi3PQrfD.js → hubChannel-COvmdWGO.js} +4 -2
- package/dist/{index.edge-CJ2TFpgF.js → index.edge-B0D_Lgbx.js} +2 -2
- package/dist/{index.edge-C9_xuXyy.js → index.edge-BLmsRNW8.js} +2 -2
- package/dist/{layeredConfig-B4s0eZ5o.js → layeredConfig-pQGjhAks.js} +92 -6
- package/dist/{majorModes-IygGmbb8.js → majorModes-BrL4EtzH.js} +5 -14
- package/dist/majorModes-WXt22_km.js +1 -0
- package/dist/{mcpProjection-BA6baFpi.js → mcpProjection-pbPBBuvs.js} +2 -2
- package/dist/{notification-bGq1frYG.js → notification-CINsJWDL.js} +7 -4
- package/dist/{piConfig-CcoMX-1L.js → piConfig-BDUpA6w0.js} +5 -5
- package/dist/piSettings-tdui0CZI.js +1 -0
- package/dist/{platform-CyvF7X-b.js → platform-yhQXrrM_.js} +1 -1
- package/dist/{platformFiles-Ccj9HCvA.js → platformFiles-DB3Cw1l_.js} +1 -1
- package/dist/{protocol-Q7TFrOIs.js → protocol-B6LbEIe6.js} +2 -2
- package/dist/{server-4CmqIbH2.js → server-2o-hl3o0.js} +55 -14
- package/dist/{server-DSu_uLDX.js → server-B-br6deK.js} +6 -6
- package/dist/{server-C9gff7gU.js → server-B2G-c0hg.js} +5 -5
- package/dist/{server-CIhwIcbA.js → server-B3RgnYiZ.js} +13 -4
- package/dist/{server-C8HyW7wN.js → server-BBNCtQtl.js} +7 -7
- package/dist/{server-C_34VM3M.js → server-BmIU37Ei.js} +3 -3
- package/dist/{server-ClsNJwdv.js → server-Bqm5R8kV.js} +13 -13
- package/dist/{server-Co57A8MH.js → server-Bt6Zsqo8.js} +2 -2
- package/dist/{server-il_s2Ycz.js → server-BvYolSs9.js} +339 -43
- package/dist/{server-CpJNq249.js → server-C1x2LoKK.js} +10 -10
- package/dist/{server-CjsKNdSN.js → server-CCwwnpH0.js} +5 -5
- package/dist/{server-CxGGQFJs.js → server-CRPxNGv6.js} +6 -6
- package/dist/{server-COE7BKSa.js → server-Ci_BGVwd.js} +3 -3
- package/dist/{server-CTSvwoDy.js → server-CyYesT-G.js} +9 -9
- package/dist/{server-ziNfBZ2M.js → server-CzJjYgVk.js} +3 -3
- package/dist/{server-C_3jK2WM.js → server-D9qM5XCP.js} +23 -11
- package/dist/{server-C82Qzoh3.js → server-DE3Gzgfb.js} +10 -10
- package/dist/{server-CMaTba5B.js → server-DL6UyXfJ.js} +8 -8
- package/dist/{server-5vLvBTTs.js → server-DPTp6GXS.js} +4 -4
- package/dist/{server-CcNMwEFQ.js → server-Dgn4el5K.js} +5 -5
- package/dist/{server-CQXqMpeC.js → server-DuDp9MhD.js} +116 -54
- package/dist/{server-DeSuziRK.js → server-OerXqXJT.js} +4 -4
- package/dist/{server-ZsazKk-n.js → server-V8W5mcGu.js} +6 -6
- package/dist/{server-Bm6pAAw8.js → server-_0288DYR.js} +4 -4
- package/dist/{server-BHhb0oir.js → server-cStfn1Yv.js} +4 -4
- package/dist/{serverPlugin-pCqlBqQG.js → serverPlugin-OOfjB8tm.js} +1114 -1111
- package/dist/{sessionConfig-DzAs6Pt-.js → sessionConfig-C-zJI72k.js} +242 -54
- package/dist/{validation-CkjZwpf-.js → validation-DuOGOKEi.js} +2 -2
- package/dist/{value-DGT5IoiK.js → value-DyVsxCwZ.js} +1 -1
- package/dist/{vaultSettings-BRr8n821.js → vaultSettings-BFCRCBM3.js} +1 -1
- package/dist/web-cN41ySs9.js +3 -0
- package/dist/worker.js +15822 -1103
- package/dist/workflow-BgwWq0nq.js +79 -0
- package/package.json +32 -32
- package/dist/contextProjection-DlB6wzhm.js +0 -209
- package/dist/harnessStore-Bap8lsAg.js +0 -1
- package/dist/majorModes-xpLK9HpD.js +0 -1
- package/dist/piSettings-B6fsgIBA.js +0 -1
- package/dist/web-Cfvbn9H1.js +0 -3
- package/dist/workflow-w5JPZXgc.js +0 -23
- /package/dist/assets/plugins/slots/{approval.8b3f37d9-CqQk6XG_.js → approval.293d9a00-CqQk6XG_.js} +0 -0
- /package/dist/assets/plugins/slots/{artifacts.47d00f81-D-vQ-7Iz.js → artifacts.24567664-D-vQ-7Iz.js} +0 -0
- /package/dist/assets/plugins/slots/{autocompact.9a92993d-B3KTYwW1.js → autocompact.dd97d013-B3KTYwW1.js} +0 -0
- /package/dist/assets/plugins/slots/{builtin-tools.939bbfff-CZRYQVIP.js → builtin-tools.36d7400b-CZRYQVIP.js} +0 -0
- /package/dist/assets/plugins/slots/{codemode.782e5bb1-Bzl_K_vt.js → codemode.8eaee717-Bzl_K_vt.js} +0 -0
- /package/dist/assets/plugins/slots/{domain.21790b66-CvnpuKCY.js → domain.5e95fc37-CvnpuKCY.js} +0 -0
- /package/dist/assets/plugins/slots/{edit.c7c85129-kaxIknZ-.js → edit.385c9aa9-kaxIknZ-.js} +0 -0
- /package/dist/assets/plugins/slots/{files.bbcef824-wuB8gcQA.js → files.daf34ed8-wuB8gcQA.js} +0 -0
- /package/dist/assets/plugins/slots/{grep.3dfd3214-3FnU8p-d.js → grep.02052cdc-3FnU8p-d.js} +0 -0
- /package/dist/assets/plugins/slots/{log.33bc7d38-C0PXQ0O1.js → log.a86eb6d0-C0PXQ0O1.js} +0 -0
- /package/dist/assets/plugins/slots/{mcp.59c68bcb-D0CkHnIw.js → mcp.974af249-D0CkHnIw.js} +0 -0
- /package/dist/assets/plugins/slots/{profile.ea55f5e1-BSY3iYfJ.js → profile.48851a1d-BSY3iYfJ.js} +0 -0
- /package/dist/assets/plugins/slots/{prompts.9957cc84-xdCkNkoA.js → prompts.723d7748-xdCkNkoA.js} +0 -0
- /package/dist/assets/plugins/slots/{read.30a617e7-qqaxVlEX.js → read.46bf6536-qqaxVlEX.js} +0 -0
- /package/dist/assets/plugins/slots/{runner.9f3559b0-DfO2Z9HG.js → runner.53e9bd76-DfO2Z9HG.js} +0 -0
- /package/dist/assets/plugins/slots/{skill.f506a5ea-CL_n-l4h.js → skill.086701a4-CL_n-l4h.js} +0 -0
- /package/dist/assets/plugins/slots/{vault.01657352-DbG3F_on.js → vault.ac9935c8-DbG3F_on.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { An as checkRecordVersion, Bn as BACKGROUND_CONTEXT, Fn as materializeDocumentValue, In as resolveAddress, Ln as idFromNumber, Nn as documentCreate, On as addressId, Pn as materializeDocument, Vn as awaitWithContext, Wn as withoutAbortSignal, jn as defineDoc, kn as checkRecordScope, zn as copyJson } from "./serverPlugin-OOfjB8tm.js";
|
|
2
2
|
//#region ../../../node_modules/.pnpm/@earendil-works+chord@1.5.0_esbuild@0.28.2/node_modules/@earendil-works/chord/dist/delta/apply-immutable-trusted.js
|
|
3
3
|
const DATA_DESCRIPTOR$1 = {
|
|
4
4
|
value: void 0,
|
|
@@ -1,82 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as Check } from "./value-
|
|
3
|
-
//#region ../../core/po-core/src/schemas/pluginProtocol.ts
|
|
4
|
-
/** The address is always exact. A workspace call never resolves to a global service. */
|
|
5
|
-
const PoPluginMountSchema = Union([
|
|
6
|
-
_Object_({ scope: Literal("global") }, { additionalProperties: false }),
|
|
7
|
-
_Object_({
|
|
8
|
-
scope: Literal("workspace"),
|
|
9
|
-
workspaceId: String$1({ minLength: 1 })
|
|
10
|
-
}, { additionalProperties: false }),
|
|
11
|
-
_Object_({
|
|
12
|
-
scope: Literal("session"),
|
|
13
|
-
sessionId: String$1({ minLength: 1 })
|
|
14
|
-
}, { additionalProperties: false })
|
|
15
|
-
]);
|
|
16
|
-
const PoPluginCallSchema = _Object_({
|
|
17
|
-
mount: PoPluginMountSchema,
|
|
18
|
-
service: String$1({ minLength: 1 }),
|
|
19
|
-
method: String$1({ minLength: 1 }),
|
|
20
|
-
input: Unknown()
|
|
21
|
-
}, { additionalProperties: false });
|
|
22
|
-
function definePoPluginMethod(definition) {
|
|
23
|
-
if (!definition.service || !definition.method) throw new Error("Plugin service and method must be named.");
|
|
24
|
-
return definition;
|
|
25
|
-
}
|
|
26
|
-
function poPluginMountKey(mount) {
|
|
27
|
-
if (!Check(PoPluginMountSchema, mount)) throw new Error("Invalid plugin mount.");
|
|
28
|
-
switch (mount.scope) {
|
|
29
|
-
case "global": return "global";
|
|
30
|
-
case "workspace": return `workspace:${mount.workspaceId}`;
|
|
31
|
-
case "session": return `session:${mount.sessionId}`;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
var PoPluginCallError = class extends Error {
|
|
35
|
-
code;
|
|
36
|
-
constructor(code, message) {
|
|
37
|
-
super(message);
|
|
38
|
-
this.code = code;
|
|
39
|
-
this.name = "PoPluginCallError";
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
/** Transport-neutral dispatch, shared by Chord server services and client capability hosts. */
|
|
43
|
-
function createPoPluginRegistry() {
|
|
44
|
-
const handlers = /* @__PURE__ */ new Map();
|
|
45
|
-
let disposed = false;
|
|
46
|
-
const keyOf = (mount, service, method, direction) => `${poPluginMountKey(mount)}\0${direction}\0${service}\0${method}`;
|
|
47
|
-
return {
|
|
48
|
-
register(mount, definition, handler) {
|
|
49
|
-
if (disposed) throw new Error("Plugin registry is disposed.");
|
|
50
|
-
if (mount.scope !== definition.scope) throw new Error(`Method '${definition.service}.${definition.method}' requires ${definition.scope} scope.`);
|
|
51
|
-
const key = keyOf(mount, definition.service, definition.method, definition.direction);
|
|
52
|
-
if (handlers.has(key)) throw new Error(`Plugin method '${definition.service}.${definition.method}' is already mounted.`);
|
|
53
|
-
const entry = {
|
|
54
|
-
definition,
|
|
55
|
-
handler
|
|
56
|
-
};
|
|
57
|
-
handlers.set(key, entry);
|
|
58
|
-
return () => {
|
|
59
|
-
if (handlers.get(key) === entry) handlers.delete(key);
|
|
60
|
-
};
|
|
61
|
-
},
|
|
62
|
-
async invoke(value, direction, caller = {}) {
|
|
63
|
-
if (disposed) throw new Error("Plugin registry is disposed.");
|
|
64
|
-
if (!Check(PoPluginCallSchema, value)) throw new PoPluginCallError("INVALID_CALL", "Invalid plugin call.");
|
|
65
|
-
const call = value;
|
|
66
|
-
const entry = handlers.get(keyOf(call.mount, call.service, call.method, direction));
|
|
67
|
-
if (!entry) throw new PoPluginCallError("METHOD_NOT_FOUND", `Plugin method '${call.service}.${call.method}' is not mounted at this scope.`);
|
|
68
|
-
if (!Check(entry.definition.input, call.input)) throw new PoPluginCallError("INVALID_INPUT", `Invalid input for '${call.service}.${call.method}'.`);
|
|
69
|
-
const output = await entry.handler(call.input, caller);
|
|
70
|
-
if (!Check(entry.definition.output, output)) throw new PoPluginCallError("INVALID_OUTPUT", `Invalid output from '${call.service}.${call.method}'.`);
|
|
71
|
-
return output;
|
|
72
|
-
},
|
|
73
|
-
dispose() {
|
|
74
|
-
disposed = true;
|
|
75
|
-
handlers.clear();
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
//#endregion
|
|
1
|
+
import { $ as Boolean, B as String$1, D as Omit, E as Partial, H as Number$1, I as Tuple, M as Record, R as Union, W as Null, X as Literal, Z as Integer, at as Intersect, ct as Unsafe, ft as _Object_, mt as Optional$4, ut as Unknown, yt as _Array_ } from "./serverPlugin-OOfjB8tm.js";
|
|
2
|
+
import { n as Check } from "./value-DyVsxCwZ.js";
|
|
80
3
|
//#region ../../../node_modules/.pnpm/@earendil-works+pi-schema@1.5.0/node_modules/@earendil-works/pi-schema/dist/builders.js
|
|
81
4
|
/** A string, with optional length bounds (in code points), pattern and format. */
|
|
82
5
|
function str(options = {}) {
|
|
@@ -2695,6 +2618,83 @@ function takesNoArgs(contract, name) {
|
|
|
2695
2618
|
return false;
|
|
2696
2619
|
}
|
|
2697
2620
|
//#endregion
|
|
2621
|
+
//#region ../../core/po-core/src/schemas/pluginProtocol.ts
|
|
2622
|
+
/** The address is always exact. A workspace call never resolves to a global service. */
|
|
2623
|
+
const PoPluginMountSchema = Union([
|
|
2624
|
+
_Object_({ scope: Literal("global") }, { additionalProperties: false }),
|
|
2625
|
+
_Object_({
|
|
2626
|
+
scope: Literal("workspace"),
|
|
2627
|
+
workspaceId: String$1({ minLength: 1 })
|
|
2628
|
+
}, { additionalProperties: false }),
|
|
2629
|
+
_Object_({
|
|
2630
|
+
scope: Literal("session"),
|
|
2631
|
+
sessionId: String$1({ minLength: 1 })
|
|
2632
|
+
}, { additionalProperties: false })
|
|
2633
|
+
]);
|
|
2634
|
+
const PoPluginCallSchema = _Object_({
|
|
2635
|
+
mount: PoPluginMountSchema,
|
|
2636
|
+
service: String$1({ minLength: 1 }),
|
|
2637
|
+
method: String$1({ minLength: 1 }),
|
|
2638
|
+
input: Unknown()
|
|
2639
|
+
}, { additionalProperties: false });
|
|
2640
|
+
function definePoPluginMethod(definition) {
|
|
2641
|
+
if (!definition.service || !definition.method) throw new Error("Plugin service and method must be named.");
|
|
2642
|
+
return definition;
|
|
2643
|
+
}
|
|
2644
|
+
function poPluginMountKey(mount) {
|
|
2645
|
+
if (!Check(PoPluginMountSchema, mount)) throw new Error("Invalid plugin mount.");
|
|
2646
|
+
switch (mount.scope) {
|
|
2647
|
+
case "global": return "global";
|
|
2648
|
+
case "workspace": return `workspace:${mount.workspaceId}`;
|
|
2649
|
+
case "session": return `session:${mount.sessionId}`;
|
|
2650
|
+
}
|
|
2651
|
+
}
|
|
2652
|
+
var PoPluginCallError = class extends Error {
|
|
2653
|
+
code;
|
|
2654
|
+
constructor(code, message) {
|
|
2655
|
+
super(message);
|
|
2656
|
+
this.code = code;
|
|
2657
|
+
this.name = "PoPluginCallError";
|
|
2658
|
+
}
|
|
2659
|
+
};
|
|
2660
|
+
/** Transport-neutral dispatch, shared by Chord server services and client capability hosts. */
|
|
2661
|
+
function createPoPluginRegistry() {
|
|
2662
|
+
const handlers = /* @__PURE__ */ new Map();
|
|
2663
|
+
let disposed = false;
|
|
2664
|
+
const keyOf = (mount, service, method, direction) => `${poPluginMountKey(mount)}\0${direction}\0${service}\0${method}`;
|
|
2665
|
+
return {
|
|
2666
|
+
register(mount, definition, handler) {
|
|
2667
|
+
if (disposed) throw new Error("Plugin registry is disposed.");
|
|
2668
|
+
if (mount.scope !== definition.scope) throw new Error(`Method '${definition.service}.${definition.method}' requires ${definition.scope} scope.`);
|
|
2669
|
+
const key = keyOf(mount, definition.service, definition.method, definition.direction);
|
|
2670
|
+
if (handlers.has(key)) throw new Error(`Plugin method '${definition.service}.${definition.method}' is already mounted.`);
|
|
2671
|
+
const entry = {
|
|
2672
|
+
definition,
|
|
2673
|
+
handler
|
|
2674
|
+
};
|
|
2675
|
+
handlers.set(key, entry);
|
|
2676
|
+
return () => {
|
|
2677
|
+
if (handlers.get(key) === entry) handlers.delete(key);
|
|
2678
|
+
};
|
|
2679
|
+
},
|
|
2680
|
+
async invoke(value, direction, caller = {}) {
|
|
2681
|
+
if (disposed) throw new Error("Plugin registry is disposed.");
|
|
2682
|
+
if (!Check(PoPluginCallSchema, value)) throw new PoPluginCallError("INVALID_CALL", "Invalid plugin call.");
|
|
2683
|
+
const call = value;
|
|
2684
|
+
const entry = handlers.get(keyOf(call.mount, call.service, call.method, direction));
|
|
2685
|
+
if (!entry) throw new PoPluginCallError("METHOD_NOT_FOUND", `Plugin method '${call.service}.${call.method}' is not mounted at this scope.`);
|
|
2686
|
+
if (!Check(entry.definition.input, call.input)) throw new PoPluginCallError("INVALID_INPUT", `Invalid input for '${call.service}.${call.method}'.`);
|
|
2687
|
+
const output = await entry.handler(call.input, caller);
|
|
2688
|
+
if (!Check(entry.definition.output, output)) throw new PoPluginCallError("INVALID_OUTPUT", `Invalid output from '${call.service}.${call.method}'.`);
|
|
2689
|
+
return output;
|
|
2690
|
+
},
|
|
2691
|
+
dispose() {
|
|
2692
|
+
disposed = true;
|
|
2693
|
+
handlers.clear();
|
|
2694
|
+
}
|
|
2695
|
+
};
|
|
2696
|
+
}
|
|
2697
|
+
//#endregion
|
|
2698
2698
|
//#region ../../core/po-core/src/schemas/protocolContracts.ts
|
|
2699
2699
|
/** Name of the Po server host; every Po contract places its objects on it. */
|
|
2700
2700
|
const PO_SERVER_HOST = "server";
|
|
@@ -4461,4 +4461,4 @@ const transportSocketContracts = [
|
|
|
4461
4461
|
...bundleHttpContracts
|
|
4462
4462
|
], [...sessionSocketContracts, ...transportSocketContracts];
|
|
4463
4463
|
//#endregion
|
|
4464
|
-
export {
|
|
4464
|
+
export { num as $, placementText as A, CHORD_ERROR_CODES as B, bind as C, local as D, hostNamed as E, canonicalIdentity as F, isChordError as G, asChordError as H, canonicalJson as I, arr as J, runAll as K, cleaned as L, resolveHost as M, takesNoArgs as N, opaque as O, assertValid as P, map as Q, deepEqual as R, DescriptionSchema as S, coverage as T, forbidden as U, ChordError as V, invalid as W, int as X, bool as Y, lit as Z, PO_SERVER_HOST as _, PoThreadContract as a, unknown as at, createPoPluginRegistry as b, HubNoticeSchema as c, PoHubContract as d, obj as et, PoHubRevisionsContract as f, PoChannelsStateSchema as g, PoChannelsContract as h, SessionServiceStateSchema as i, union as it, remote as j, placedOn as k, HubRevisionsSchema as l, jsonApiResponses as m, SessionMethodSchemas as n, opt as nt, PoThreadFrameSchema as o, SessionSummarySchema as p, compile as q, SessionMethods as r, str as rt, HubCompositionsSchema as s, defineApiContract as t, oneOf as tt, HubWorkspaceSchema as u, chordSchema as v, contractFromDescription as w, definePoPluginMethod as x, chordStates as y, normalize as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as PO_APPROVAL_TEXT_LIMITS } from "./approvalPrompt-
|
|
1
|
+
import { rr as defineServiceContract } from "./serverPlugin-OOfjB8tm.js";
|
|
2
|
+
import { t as PO_APPROVAL_TEXT_LIMITS } from "./approvalPrompt-DoHlIPkU.js";
|
|
3
3
|
//#region ../../core/po-core/src/schemas/approval.ts
|
|
4
4
|
const PO_APPROVAL_SERVICE = "po/approval";
|
|
5
5
|
const PO_APPROVAL_CONTRACT = defineServiceContract(PO_APPROVAL_SERVICE, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as Check } from "./value-
|
|
1
|
+
import { 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 } from "./value-DyVsxCwZ.js";
|
|
3
3
|
//#region ../../core/po-core/src/schemas/approvalPrompt.ts
|
|
4
4
|
/** Caps on the plain text an approval carries, applied by the gate and checked again on every hop. */
|
|
5
5
|
const PO_APPROVAL_TEXT_LIMITS = Object.freeze({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"global":{"id":"
|
|
1
|
+
{"global":{"id":"a83eb465092c30a16986db29545da6c54222addca1729fbf9392088394f2da58","scope":"global","revision":1,"manifestUrl":"/plugins/compositions.json","rawAssetBaseUrl":"/plugins","verifiedAssetBaseUrl":"/plugins","pluginEntries":[["approval.293d9a00","/slots/approval.293d9a00-CqQk6XG_.js"],["artifacts.24567664","/slots/artifacts.24567664-D-vQ-7Iz.js"],["autocompact.dd97d013","/slots/autocompact.dd97d013-B3KTYwW1.js"],["builtin-tools.36d7400b","/slots/builtin-tools.36d7400b-CZRYQVIP.js"],["codemode.8eaee717","/slots/codemode.8eaee717-Bzl_K_vt.js"],["domain.5e95fc37","/slots/domain.5e95fc37-CvnpuKCY.js"],["edit.385c9aa9","/slots/edit.385c9aa9-kaxIknZ-.js"],["files.daf34ed8","/slots/files.daf34ed8-wuB8gcQA.js"],["grep.02052cdc","/slots/grep.02052cdc-3FnU8p-d.js"],["log.a86eb6d0","/slots/log.a86eb6d0-C0PXQ0O1.js"],["mcp.974af249","/slots/mcp.974af249-D0CkHnIw.js"],["profile.48851a1d","/slots/profile.48851a1d-BSY3iYfJ.js"],["prompts.723d7748","/slots/prompts.723d7748-xdCkNkoA.js"],["read.46bf6536","/slots/read.46bf6536-qqaxVlEX.js"],["runner.53e9bd76","/slots/runner.53e9bd76-DfO2Z9HG.js"],["skill.086701a4","/slots/skill.086701a4-CL_n-l4h.js"],["vault.ac9935c8","/slots/vault.ac9935c8-DbG3F_on.js"]],"assetPaths":["/slots/approval.293d9a00-CqQk6XG_.js","/chunks/po-web-runtime-Czm_C4SJ.js","/assets/base-C3j1WCCq.css","/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2","/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2","/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2","/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2","/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2","/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2","/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2","/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2","/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2","/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2","/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2","/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2","/slots/artifacts.24567664-D-vQ-7Iz.js","/slots/autocompact.dd97d013-B3KTYwW1.js","/slots/builtin-tools.36d7400b-CZRYQVIP.js","/slots/codemode.8eaee717-Bzl_K_vt.js","/slots/domain.5e95fc37-CvnpuKCY.js","/slots/edit.385c9aa9-kaxIknZ-.js","/slots/files.daf34ed8-wuB8gcQA.js","/slots/grep.02052cdc-3FnU8p-d.js","/slots/log.a86eb6d0-C0PXQ0O1.js","/slots/mcp.974af249-D0CkHnIw.js","/slots/profile.48851a1d-BSY3iYfJ.js","/slots/prompts.723d7748-xdCkNkoA.js","/slots/read.46bf6536-qqaxVlEX.js","/slots/runner.53e9bd76-DfO2Z9HG.js","/slots/skill.086701a4-CL_n-l4h.js","/slots/vault.ac9935c8-DbG3F_on.js"],"stylePaths":["/assets/base-C3j1WCCq.css"],"channels":["approval_activity","artifacts","file_edits","runner_runs"],"plugins":["approval.293d9a00","artifacts.24567664","autocompact.dd97d013","builtin-tools.36d7400b","codemode.8eaee717","domain.5e95fc37","edit.385c9aa9","files.daf34ed8","grep.02052cdc","log.a86eb6d0","mcp.974af249","profile.48851a1d","prompts.723d7748","read.46bf6536","runner.53e9bd76","skill.086701a4","vault.ac9935c8"]},"workspace":{"id":"a83eb465092c30a16986db29545da6c54222addca1729fbf9392088394f2da58","scope":"workspace","revision":1,"manifestUrl":"/plugins/compositions.json","rawAssetBaseUrl":"/plugins","verifiedAssetBaseUrl":"/plugins","pluginEntries":[["approval.293d9a00","/slots/approval.293d9a00-CqQk6XG_.js"],["artifacts.24567664","/slots/artifacts.24567664-D-vQ-7Iz.js"],["autocompact.dd97d013","/slots/autocompact.dd97d013-B3KTYwW1.js"],["builtin-tools.36d7400b","/slots/builtin-tools.36d7400b-CZRYQVIP.js"],["codemode.8eaee717","/slots/codemode.8eaee717-Bzl_K_vt.js"],["domain.5e95fc37","/slots/domain.5e95fc37-CvnpuKCY.js"],["edit.385c9aa9","/slots/edit.385c9aa9-kaxIknZ-.js"],["files.daf34ed8","/slots/files.daf34ed8-wuB8gcQA.js"],["grep.02052cdc","/slots/grep.02052cdc-3FnU8p-d.js"],["log.a86eb6d0","/slots/log.a86eb6d0-C0PXQ0O1.js"],["mcp.974af249","/slots/mcp.974af249-D0CkHnIw.js"],["profile.48851a1d","/slots/profile.48851a1d-BSY3iYfJ.js"],["prompts.723d7748","/slots/prompts.723d7748-xdCkNkoA.js"],["read.46bf6536","/slots/read.46bf6536-qqaxVlEX.js"],["runner.53e9bd76","/slots/runner.53e9bd76-DfO2Z9HG.js"],["skill.086701a4","/slots/skill.086701a4-CL_n-l4h.js"],["vault.ac9935c8","/slots/vault.ac9935c8-DbG3F_on.js"]],"assetPaths":["/slots/approval.293d9a00-CqQk6XG_.js","/chunks/po-web-runtime-Czm_C4SJ.js","/assets/base-C3j1WCCq.css","/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2","/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2","/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2","/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2","/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2","/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2","/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2","/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2","/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2","/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2","/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2","/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2","/slots/artifacts.24567664-D-vQ-7Iz.js","/slots/autocompact.dd97d013-B3KTYwW1.js","/slots/builtin-tools.36d7400b-CZRYQVIP.js","/slots/codemode.8eaee717-Bzl_K_vt.js","/slots/domain.5e95fc37-CvnpuKCY.js","/slots/edit.385c9aa9-kaxIknZ-.js","/slots/files.daf34ed8-wuB8gcQA.js","/slots/grep.02052cdc-3FnU8p-d.js","/slots/log.a86eb6d0-C0PXQ0O1.js","/slots/mcp.974af249-D0CkHnIw.js","/slots/profile.48851a1d-BSY3iYfJ.js","/slots/prompts.723d7748-xdCkNkoA.js","/slots/read.46bf6536-qqaxVlEX.js","/slots/runner.53e9bd76-DfO2Z9HG.js","/slots/skill.086701a4-CL_n-l4h.js","/slots/vault.ac9935c8-DbG3F_on.js"],"stylePaths":["/assets/base-C3j1WCCq.css"],"channels":["approval_activity","artifacts","file_edits","runner_runs"],"plugins":["approval.293d9a00","artifacts.24567664","autocompact.dd97d013","builtin-tools.36d7400b","codemode.8eaee717","domain.5e95fc37","edit.385c9aa9","files.daf34ed8","grep.02052cdc","log.a86eb6d0","mcp.974af249","profile.48851a1d","prompts.723d7748","read.46bf6536","runner.53e9bd76","skill.086701a4","vault.ac9935c8"]},"session":{"id":"a83eb465092c30a16986db29545da6c54222addca1729fbf9392088394f2da58","scope":"session","revision":1,"manifestUrl":"/plugins/compositions.json","rawAssetBaseUrl":"/plugins","verifiedAssetBaseUrl":"/plugins","pluginEntries":[["approval.293d9a00","/slots/approval.293d9a00-CqQk6XG_.js"],["artifacts.24567664","/slots/artifacts.24567664-D-vQ-7Iz.js"],["autocompact.dd97d013","/slots/autocompact.dd97d013-B3KTYwW1.js"],["builtin-tools.36d7400b","/slots/builtin-tools.36d7400b-CZRYQVIP.js"],["codemode.8eaee717","/slots/codemode.8eaee717-Bzl_K_vt.js"],["domain.5e95fc37","/slots/domain.5e95fc37-CvnpuKCY.js"],["edit.385c9aa9","/slots/edit.385c9aa9-kaxIknZ-.js"],["files.daf34ed8","/slots/files.daf34ed8-wuB8gcQA.js"],["grep.02052cdc","/slots/grep.02052cdc-3FnU8p-d.js"],["log.a86eb6d0","/slots/log.a86eb6d0-C0PXQ0O1.js"],["mcp.974af249","/slots/mcp.974af249-D0CkHnIw.js"],["profile.48851a1d","/slots/profile.48851a1d-BSY3iYfJ.js"],["prompts.723d7748","/slots/prompts.723d7748-xdCkNkoA.js"],["read.46bf6536","/slots/read.46bf6536-qqaxVlEX.js"],["runner.53e9bd76","/slots/runner.53e9bd76-DfO2Z9HG.js"],["skill.086701a4","/slots/skill.086701a4-CL_n-l4h.js"],["vault.ac9935c8","/slots/vault.ac9935c8-DbG3F_on.js"]],"assetPaths":["/slots/approval.293d9a00-CqQk6XG_.js","/chunks/po-web-runtime-Czm_C4SJ.js","/assets/base-C3j1WCCq.css","/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2","/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2","/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2","/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2","/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2","/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2","/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2","/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2","/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2","/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2","/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2","/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2","/slots/artifacts.24567664-D-vQ-7Iz.js","/slots/autocompact.dd97d013-B3KTYwW1.js","/slots/builtin-tools.36d7400b-CZRYQVIP.js","/slots/codemode.8eaee717-Bzl_K_vt.js","/slots/domain.5e95fc37-CvnpuKCY.js","/slots/edit.385c9aa9-kaxIknZ-.js","/slots/files.daf34ed8-wuB8gcQA.js","/slots/grep.02052cdc-3FnU8p-d.js","/slots/log.a86eb6d0-C0PXQ0O1.js","/slots/mcp.974af249-D0CkHnIw.js","/slots/profile.48851a1d-BSY3iYfJ.js","/slots/prompts.723d7748-xdCkNkoA.js","/slots/read.46bf6536-qqaxVlEX.js","/slots/runner.53e9bd76-DfO2Z9HG.js","/slots/skill.086701a4-CL_n-l4h.js","/slots/vault.ac9935c8-DbG3F_on.js"],"stylePaths":["/assets/base-C3j1WCCq.css"],"channels":["approval_activity","artifacts","file_edits","runner_runs"],"plugins":["approval.293d9a00","artifacts.24567664","autocompact.dd97d013","builtin-tools.36d7400b","codemode.8eaee717","domain.5e95fc37","edit.385c9aa9","files.daf34ed8","grep.02052cdc","log.a86eb6d0","mcp.974af249","profile.48851a1d","prompts.723d7748","read.46bf6536","runner.53e9bd76","skill.086701a4","vault.ac9935c8"]}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as writeFileAtomic } from "./platformFiles-
|
|
3
|
-
import "./platform-
|
|
1
|
+
import { bn as getOrThrow, gn as nodeHost, mn as createSerialRunner } from "./serverPlugin-OOfjB8tm.js";
|
|
2
|
+
import { s as writeFileAtomic } from "./platformFiles-DB3Cw1l_.js";
|
|
3
|
+
import "./platform-yhQXrrM_.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
//#region ../../foundations/po-config/src/services/atomicJson/format.ts
|
|
6
6
|
/** The on-disk form: two-space indent and a trailing newline. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as String, ft as _Object_, mt as Optional } from "./serverPlugin-OOfjB8tm.js";
|
|
2
2
|
//#region ../../core/po-core/src/schemas/backgroundWork.ts
|
|
3
3
|
/** Cordis service that owns pull-based background-work contributions for sessions. */
|
|
4
4
|
const PO_BACKGROUND_WORK_SERVICE = "po/background-work";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { rr as defineServiceContract } from "./serverPlugin-OOfjB8tm.js";
|
|
2
2
|
//#region ../../core/po-core/src/schemas/codemode.ts
|
|
3
3
|
const PO_CODEMODE_SERVICE = "po/codemode";
|
|
4
4
|
/** Names the code-mode host itself injects; a namespace may not take them. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { rr as defineServiceContract } from "./serverPlugin-OOfjB8tm.js";
|
|
2
2
|
//#region ../../foundations/po-db/src/constants/db.ts
|
|
3
3
|
const PO_DB_SERVICE = "po/db";
|
|
4
4
|
/** The database file, as path segments under the Po home. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as readTextIfExists } from "./platformFiles-
|
|
3
|
-
import "./platform-
|
|
4
|
-
import { a as
|
|
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 { a as configFromText, c as globalPoConfigPath, d as repositoryConfigFor, i as composeConfigLayers, l as layerFromText, o as defaultPoConfig, r as absentRepositoryLayer, s as globalPoConfigDirectory, t as readPoConfigSourcesAsync, u as mergeConfigLayers } from "./layeredConfig-pQGjhAks.js";
|
|
5
5
|
import crypto from "node:crypto";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
//#region ../../foundations/po-config/src/services/config/index.ts
|
|
@@ -25,6 +25,24 @@ async function readPoConfig(fs, repoRoot, context, options = {}) {
|
|
|
25
25
|
const repositoryConfig = repositoryPath === void 0 ? defaultPoConfig() : configFromText(await readText$1(fs, repositoryPath, context), repositoryPath);
|
|
26
26
|
return mergeConfigLayers(globalConfig, repositoryConfig, environment);
|
|
27
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* The two config files kept apart, with the merge alongside them.
|
|
30
|
+
*
|
|
31
|
+
* `repoRoot` is optional because the global file is complete on its own: a
|
|
32
|
+
* settings surface with no repository in view still has settings to show.
|
|
33
|
+
*/
|
|
34
|
+
async function readPoConfigLayers(fs, repoRoot, context, options = {}) {
|
|
35
|
+
const { homeDirectory, environment } = resolved(options);
|
|
36
|
+
const globalPath = globalPoConfigPath(homeDirectory, environment);
|
|
37
|
+
const repositoryPath = repoRoot === void 0 ? void 0 : repositoryConfigFor(repoRoot, homeDirectory, environment);
|
|
38
|
+
const globalText = await readText$1(fs, globalPath, context);
|
|
39
|
+
const repositoryText = await readText$1(fs, repositoryPath, context);
|
|
40
|
+
const globalLayer = layerFromText(globalPath, globalText);
|
|
41
|
+
const repositoryLayer = repositoryPath === void 0 ? absentRepositoryLayer() : layerFromText(repositoryPath, repositoryText);
|
|
42
|
+
const repositoryConfig = repositoryPath === void 0 ? defaultPoConfig() : configFromText(repositoryText, repositoryPath);
|
|
43
|
+
const effective = mergeConfigLayers(configFromText(globalText, globalPath), repositoryConfig, environment);
|
|
44
|
+
return composeConfigLayers(globalLayer, repositoryLayer, effective);
|
|
45
|
+
}
|
|
28
46
|
const CACHE_DIRECTORY = "plugin-cache";
|
|
29
47
|
const PLUGIN_ID_SEGMENT = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
30
48
|
const NPM_PACKAGE_NAME = /^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/;
|
|
@@ -789,4 +807,4 @@ async function resolvePluginEntriesAsync(fs, repoRoot, domainNames, explicitDire
|
|
|
789
807
|
return entries;
|
|
790
808
|
}
|
|
791
809
|
//#endregion
|
|
792
|
-
export { defaultDomainsForMajorMode as a, pluginDirectoryForSource as c, resolveSharedSkillsAsync as i, readPoConfig as l, loadDomainsAsync as n, expandDomainNames as o, resolvePluginEntriesAsync as r, isRemotePluginSource as s, listDomainNamesAsync as t };
|
|
810
|
+
export { defaultDomainsForMajorMode as a, pluginDirectoryForSource as c, resolveSharedSkillsAsync as i, readPoConfig as l, loadDomainsAsync as n, expandDomainNames as o, resolvePluginEntriesAsync as r, isRemotePluginSource as s, listDomainNamesAsync as t, readPoConfigLayers as u };
|