omp-fabric 1.26.11 → 1.26.13
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/CHANGELOG.md +25 -1
- package/dist/agents/manager.d.ts.map +1 -1
- package/dist/chunks/{chunk-TNVJ2DKM.js → chunk-2T6EHZ5G.js} +7 -4
- package/dist/chunks/chunk-2T6EHZ5G.js.map +7 -0
- package/dist/chunks/{chunk-J2BDKPO4.js → chunk-3QPIB3H2.js} +4 -4
- package/dist/chunks/{chunk-Z3KAY6S7.js → chunk-5EZWERJY.js} +4 -4
- package/dist/chunks/{chunk-Z6TTRT6Q.js → chunk-6IPXBDCA.js} +2 -2
- package/dist/chunks/{chunk-ATTYOQSI.js → chunk-6YR6XPNF.js} +7 -2
- package/dist/chunks/{chunk-ATTYOQSI.js.map → chunk-6YR6XPNF.js.map} +2 -2
- package/dist/chunks/{chunk-5MRBI3JB.js → chunk-7KKE52AS.js} +3 -3
- package/dist/chunks/{chunk-Q2LRXHPR.js → chunk-CA2P7NLW.js} +2 -2
- package/dist/chunks/{chunk-CEDP5WMR.js → chunk-G3VKU6GZ.js} +2 -2
- package/dist/chunks/{chunk-LWHQR2JY.js → chunk-HWOL2YVU.js} +2 -2
- package/dist/chunks/{chunk-BWLZ6VDQ.js → chunk-PTYCFQEH.js} +2 -2
- package/dist/chunks/{chunk-GGQ5MHXB.js → chunk-RGE6MBYP.js} +2 -2
- package/dist/chunks/{chunk-E3KTE736.js → chunk-TF3MK3TH.js} +3 -3
- package/dist/chunks/{chunk-FL4A542C.js → chunk-V7DLSDFO.js} +2 -2
- package/dist/chunks/{chunk-AZBJNZS4.js → chunk-VE3FWDRH.js} +2 -2
- package/dist/chunks/{chunk-WX6C7N3W.js → chunk-YLMDFMXM.js} +2 -2
- package/dist/compaction/hook.js +4 -4
- package/dist/compaction/lcm-runtime.js +5 -5
- package/dist/core/action-registry.js +3 -3
- package/dist/core/omp-tools.d.ts +2 -0
- package/dist/core/omp-tools.d.ts.map +1 -1
- package/dist/entropy/index.js +6 -6
- package/dist/fabric-runtime-state.js +25 -17
- package/dist/fabric-runtime-state.js.map +2 -2
- package/dist/index.js +12 -12
- package/dist/index.js.map +2 -2
- package/dist/memory/discovery.js +5 -5
- package/dist/memory/normalize.js +4 -4
- package/dist/memory/search.js +5 -5
- package/dist/providers/memory-provider.js +7 -7
- package/dist/providers/omp-session-scope.d.ts +6 -2
- package/dist/providers/omp-session-scope.d.ts.map +1 -1
- package/dist/providers/omp-tools-provider.d.ts +3 -2
- package/dist/providers/omp-tools-provider.d.ts.map +1 -1
- package/dist/residency/host.js +8 -8
- package/dist/residency/omp-entry.js +8 -8
- package/dist/runtime/core-override-guest-types.js +1 -1
- package/dist/runtime/node-process-runtime.js +1 -1
- package/dist/ui/settings.js +2 -2
- package/docs/agents.md +2 -0
- package/docs/certification.md +1 -1
- package/package.json +8 -8
- package/skills/fabric-exec/SKILL.md +1 -1
- package/dist/chunks/chunk-TNVJ2DKM.js.map +0 -7
- /package/dist/chunks/{chunk-J2BDKPO4.js.map → chunk-3QPIB3H2.js.map} +0 -0
- /package/dist/chunks/{chunk-Z3KAY6S7.js.map → chunk-5EZWERJY.js.map} +0 -0
- /package/dist/chunks/{chunk-Z6TTRT6Q.js.map → chunk-6IPXBDCA.js.map} +0 -0
- /package/dist/chunks/{chunk-5MRBI3JB.js.map → chunk-7KKE52AS.js.map} +0 -0
- /package/dist/chunks/{chunk-Q2LRXHPR.js.map → chunk-CA2P7NLW.js.map} +0 -0
- /package/dist/chunks/{chunk-CEDP5WMR.js.map → chunk-G3VKU6GZ.js.map} +0 -0
- /package/dist/chunks/{chunk-LWHQR2JY.js.map → chunk-HWOL2YVU.js.map} +0 -0
- /package/dist/chunks/{chunk-BWLZ6VDQ.js.map → chunk-PTYCFQEH.js.map} +0 -0
- /package/dist/chunks/{chunk-GGQ5MHXB.js.map → chunk-RGE6MBYP.js.map} +0 -0
- /package/dist/chunks/{chunk-E3KTE736.js.map → chunk-TF3MK3TH.js.map} +0 -0
- /package/dist/chunks/{chunk-FL4A542C.js.map → chunk-V7DLSDFO.js.map} +0 -0
- /package/dist/chunks/{chunk-AZBJNZS4.js.map → chunk-VE3FWDRH.js.map} +0 -0
- /package/dist/chunks/{chunk-WX6C7N3W.js.map → chunk-YLMDFMXM.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
loadTieredIndex,
|
|
9
9
|
reconstructSessionLineage,
|
|
10
10
|
searchMemoryIndex
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PTYCFQEH.js";
|
|
12
12
|
import {
|
|
13
13
|
compareLexical,
|
|
14
14
|
normalizeMemoryPhrase,
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
overrideSessionDir,
|
|
24
24
|
resolveScope,
|
|
25
25
|
resolveSessionTarget
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-YLMDFMXM.js";
|
|
27
27
|
import {
|
|
28
28
|
expandSessionEntriesChecked,
|
|
29
29
|
normalizeSession
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-6IPXBDCA.js";
|
|
31
31
|
import {
|
|
32
32
|
hash,
|
|
33
33
|
hashLcmPayload,
|
|
@@ -2569,4 +2569,4 @@ export {
|
|
|
2569
2569
|
normalizeMemoryArgs,
|
|
2570
2570
|
MemoryProvider
|
|
2571
2571
|
};
|
|
2572
|
-
//# sourceMappingURL=chunk-
|
|
2572
|
+
//# sourceMappingURL=chunk-3QPIB3H2.js.map
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
} from "./chunk-ESPCTYVX.js";
|
|
7
7
|
import {
|
|
8
8
|
NESTED_TOOL_CALL_ID_PREFIX
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HWOL2YVU.js";
|
|
10
10
|
import {
|
|
11
11
|
THINKING_DIGEST_CUSTOM_TYPE,
|
|
12
12
|
buildThinkingDigest,
|
|
13
13
|
snapshotHandoffSession,
|
|
14
14
|
thinkingTransferPolicy
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CA2P7NLW.js";
|
|
16
16
|
import {
|
|
17
17
|
isFabricThinking
|
|
18
18
|
} from "./chunk-SKYNDRW5.js";
|
|
19
19
|
import {
|
|
20
20
|
FabricTraceSafeError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-V7DLSDFO.js";
|
|
22
22
|
|
|
23
23
|
// src/capture/wrapper.ts
|
|
24
24
|
var wrapToolDefinition = (definition, ctxFactory) => {
|
|
@@ -2824,4 +2824,4 @@ export {
|
|
|
2824
2824
|
resolveFabricIdentity,
|
|
2825
2825
|
MainAgentController
|
|
2826
2826
|
};
|
|
2827
|
-
//# sourceMappingURL=chunk-
|
|
2827
|
+
//# sourceMappingURL=chunk-5EZWERJY.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readFabricBranchSummaryDetails,
|
|
3
3
|
readFabricProjectionTrace
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VE3FWDRH.js";
|
|
5
5
|
|
|
6
6
|
// src/memory/normalize.ts
|
|
7
7
|
import fs from "node:fs";
|
|
@@ -644,4 +644,4 @@ export {
|
|
|
644
644
|
expandSessionEntries,
|
|
645
645
|
expandSessionEntriesChecked
|
|
646
646
|
};
|
|
647
|
-
//# sourceMappingURL=chunk-
|
|
647
|
+
//# sourceMappingURL=chunk-6IPXBDCA.js.map
|
|
@@ -15,8 +15,11 @@ var isOmpShellRef = (ref) => ref === "omp.bash";
|
|
|
15
15
|
var OMP_CORE_TOOL_NAME_SET = new Set(OMP_CORE_TOOL_NAMES);
|
|
16
16
|
var HOST_TOOL_FOR_CORE = /* @__PURE__ */ new Map([["find", "glob"]]);
|
|
17
17
|
var hostToolForCore = (name) => HOST_TOOL_FOR_CORE.get(name) ?? name;
|
|
18
|
+
var CORE_TOOLS_WITHOUT_HOST_BUILTIN = /* @__PURE__ */ new Set(["ls"]);
|
|
19
|
+
var hostToolName = (name) => OMP_CORE_TOOL_NAME_SET.has(name) ? hostToolForCore(name) : name;
|
|
20
|
+
var ompChildToolName = (name) => CORE_TOOLS_WITHOUT_HOST_BUILTIN.has(name) ? void 0 : hostToolName(name);
|
|
18
21
|
var FABRIC_OWNED_HOST_TOOLS = new Set(OMP_CORE_TOOL_NAMES.map(hostToolForCore));
|
|
19
|
-
var ompCoreToolDenied = (name, hostActiveTools) => Boolean(hostActiveTools?.size) && !hostActiveTools.has(
|
|
22
|
+
var ompCoreToolDenied = (name, hostActiveTools) => Boolean(hostActiveTools?.size) && !hostActiveTools.has(hostToolName(name));
|
|
20
23
|
var deniedOmpCoreTools = (hostActiveTools) => OMP_GUEST_TOOL_NAMES.filter((name) => ompCoreToolDenied(name, hostActiveTools));
|
|
21
24
|
|
|
22
25
|
export {
|
|
@@ -27,8 +30,10 @@ export {
|
|
|
27
30
|
isOmpShellRef,
|
|
28
31
|
OMP_CORE_TOOL_NAME_SET,
|
|
29
32
|
hostToolForCore,
|
|
33
|
+
hostToolName,
|
|
34
|
+
ompChildToolName,
|
|
30
35
|
FABRIC_OWNED_HOST_TOOLS,
|
|
31
36
|
ompCoreToolDenied,
|
|
32
37
|
deniedOmpCoreTools
|
|
33
38
|
};
|
|
34
|
-
//# sourceMappingURL=chunk-
|
|
39
|
+
//# sourceMappingURL=chunk-6YR6XPNF.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/core/omp-tools.ts"],
|
|
4
|
-
"sourcesContent": ["export const OMP_CORE_TOOL_NAMES = [\n \"read\",\n \"bash\",\n \"edit\",\n \"write\",\n \"grep\",\n \"find\",\n \"ls\",\n] as const;\n\nexport type OmpCoreToolName = (typeof OMP_CORE_TOOL_NAMES)[number];\n\nexport const OMP_GUEST_TOOL_NAMES = [...OMP_CORE_TOOL_NAMES, \"wait\"] as const;\n\nexport type OmpGuestToolName = (typeof OMP_GUEST_TOOL_NAMES)[number];\n\nexport const OMP_GUEST_TOOL_NAME_SET: ReadonlySet<string> = new Set(OMP_GUEST_TOOL_NAMES);\n\nconst OMP_SHELL_TOOL_NAMES = [\"bash\"] as const;\nexport type OmpShellToolName = (typeof OMP_SHELL_TOOL_NAMES)[number];\n\nexport const isOmpShellToolName = (name: string): name is OmpShellToolName => name === \"bash\";\n\nexport const isOmpShellRef = (ref: string): boolean => ref === \"omp.bash\";\n\nexport const OMP_CORE_TOOL_NAME_SET: ReadonlySet<string> = new Set(OMP_CORE_TOOL_NAMES);\n\n/** The host tool a core tool replaces, when the two carry different names. `omp.find` runs the host's glob search; the host's own `find` is a semantic search fabric does not serve. */\nconst HOST_TOOL_FOR_CORE: ReadonlyMap<OmpCoreToolName, string> = new Map([[\"find\", \"glob\"]]);\n\nexport const hostToolForCore = (name: OmpCoreToolName): string => HOST_TOOL_FOR_CORE.get(name) ?? name;\n\n/** The host tools fabric replaces, and so the ones it owns while full code mode is on. */\nexport const FABRIC_OWNED_HOST_TOOLS: ReadonlySet<string> = new Set(OMP_CORE_TOOL_NAMES.map(hostToolForCore));\n\n/** An empty host selection reads as unknown, so it denies nothing. */\nexport const ompCoreToolDenied = (\n name: string,\n hostActiveTools: ReadonlySet<string> | undefined,\n): boolean => Boolean(hostActiveTools?.size)\n && !hostActiveTools!.has(
|
|
5
|
-
"mappings": ";AAAO,IAAM,sBAAsB;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAIO,IAAM,uBAAuB,CAAC,GAAG,qBAAqB,MAAM;AAI5D,IAAM,0BAA+C,IAAI,IAAI,oBAAoB;AAKjF,IAAM,qBAAqB,CAAC,SAA2C,SAAS;AAEhF,IAAM,gBAAgB,CAAC,QAAyB,QAAQ;AAExD,IAAM,yBAA8C,IAAI,IAAI,mBAAmB;AAGtF,IAAM,qBAA2D,oBAAI,IAAI,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC;AAEpF,IAAM,kBAAkB,CAAC,SAAkC,mBAAmB,IAAI,IAAI,KAAK;
|
|
4
|
+
"sourcesContent": ["export const OMP_CORE_TOOL_NAMES = [\n \"read\",\n \"bash\",\n \"edit\",\n \"write\",\n \"grep\",\n \"find\",\n \"ls\",\n] as const;\n\nexport type OmpCoreToolName = (typeof OMP_CORE_TOOL_NAMES)[number];\n\nexport const OMP_GUEST_TOOL_NAMES = [...OMP_CORE_TOOL_NAMES, \"wait\"] as const;\n\nexport type OmpGuestToolName = (typeof OMP_GUEST_TOOL_NAMES)[number];\n\nexport const OMP_GUEST_TOOL_NAME_SET: ReadonlySet<string> = new Set(OMP_GUEST_TOOL_NAMES);\n\nconst OMP_SHELL_TOOL_NAMES = [\"bash\"] as const;\nexport type OmpShellToolName = (typeof OMP_SHELL_TOOL_NAMES)[number];\n\nexport const isOmpShellToolName = (name: string): name is OmpShellToolName => name === \"bash\";\n\nexport const isOmpShellRef = (ref: string): boolean => ref === \"omp.bash\";\n\nexport const OMP_CORE_TOOL_NAME_SET: ReadonlySet<string> = new Set(OMP_CORE_TOOL_NAMES);\n\n/** The host tool a core tool replaces, when the two carry different names. `omp.find` runs the host's glob search; the host's own `find` is a semantic search fabric does not serve. */\nconst HOST_TOOL_FOR_CORE: ReadonlyMap<OmpCoreToolName, string> = new Map([[\"find\", \"glob\"]]);\n\nexport const hostToolForCore = (name: OmpCoreToolName): string => HOST_TOOL_FOR_CORE.get(name) ?? name;\n\nconst CORE_TOOLS_WITHOUT_HOST_BUILTIN: ReadonlySet<string> = new Set([\"ls\"]);\n\nexport const hostToolName = (name: string): string =>\n OMP_CORE_TOOL_NAME_SET.has(name) ? hostToolForCore(name as OmpCoreToolName) : name;\n\nexport const ompChildToolName = (name: string): string | undefined =>\n CORE_TOOLS_WITHOUT_HOST_BUILTIN.has(name) ? undefined : hostToolName(name);\n\n/** The host tools fabric replaces, and so the ones it owns while full code mode is on. */\nexport const FABRIC_OWNED_HOST_TOOLS: ReadonlySet<string> = new Set(OMP_CORE_TOOL_NAMES.map(hostToolForCore));\n\n/** An empty host selection reads as unknown, so it denies nothing. */\nexport const ompCoreToolDenied = (\n name: string,\n hostActiveTools: ReadonlySet<string> | undefined,\n): boolean => Boolean(hostActiveTools?.size)\n && !hostActiveTools!.has(hostToolName(name));\n\nexport const deniedOmpCoreTools = (\n hostActiveTools: ReadonlySet<string> | undefined,\n): readonly OmpGuestToolName[] =>\n OMP_GUEST_TOOL_NAMES.filter((name) => ompCoreToolDenied(name, hostActiveTools));\n"],
|
|
5
|
+
"mappings": ";AAAO,IAAM,sBAAsB;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAIO,IAAM,uBAAuB,CAAC,GAAG,qBAAqB,MAAM;AAI5D,IAAM,0BAA+C,IAAI,IAAI,oBAAoB;AAKjF,IAAM,qBAAqB,CAAC,SAA2C,SAAS;AAEhF,IAAM,gBAAgB,CAAC,QAAyB,QAAQ;AAExD,IAAM,yBAA8C,IAAI,IAAI,mBAAmB;AAGtF,IAAM,qBAA2D,oBAAI,IAAI,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC;AAEpF,IAAM,kBAAkB,CAAC,SAAkC,mBAAmB,IAAI,IAAI,KAAK;AAElG,IAAM,kCAAuD,oBAAI,IAAI,CAAC,IAAI,CAAC;AAEpE,IAAM,eAAe,CAAC,SAC3B,uBAAuB,IAAI,IAAI,IAAI,gBAAgB,IAAuB,IAAI;AAEzE,IAAM,mBAAmB,CAAC,SAC/B,gCAAgC,IAAI,IAAI,IAAI,SAAY,aAAa,IAAI;AAGpE,IAAM,0BAA+C,IAAI,IAAI,oBAAoB,IAAI,eAAe,CAAC;AAGrG,IAAM,oBAAoB,CAC/B,MACA,oBACY,QAAQ,iBAAiB,IAAI,KACtC,CAAC,gBAAiB,IAAI,aAAa,IAAI,CAAC;AAEtC,IAAM,qBAAqB,CAChC,oBAEA,qBAAqB,OAAO,CAAC,SAAS,kBAAkB,MAAM,eAAe,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
lifecycleSourceIdentity,
|
|
11
11
|
loadModelUsage,
|
|
12
12
|
useBudgetLedger
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2T6EHZ5G.js";
|
|
14
14
|
import {
|
|
15
15
|
normalizeModelAliases,
|
|
16
16
|
resolveAvailableOmpModel
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RGE6MBYP.js";
|
|
18
18
|
import {
|
|
19
19
|
parseFabricOwnedModelGuidance,
|
|
20
20
|
resolveFabricModelGuidance
|
|
@@ -685,4 +685,4 @@ if (isMain) {
|
|
|
685
685
|
export {
|
|
686
686
|
runResidentHostFromConfigPath
|
|
687
687
|
};
|
|
688
|
-
//# sourceMappingURL=chunk-
|
|
688
|
+
//# sourceMappingURL=chunk-7KKE52AS.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-ZHDN5ESL.js";
|
|
7
7
|
import {
|
|
8
8
|
rawContextTokens
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-G3VKU6GZ.js";
|
|
10
10
|
import {
|
|
11
11
|
compactionRequestBoundsError,
|
|
12
12
|
encodeCompactionRequest
|
|
@@ -463,4 +463,4 @@ export {
|
|
|
463
463
|
buildPeerCards,
|
|
464
464
|
awaitPeerSettle
|
|
465
465
|
};
|
|
466
|
-
//# sourceMappingURL=chunk-
|
|
466
|
+
//# sourceMappingURL=chunk-CA2P7NLW.js.map
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
FABRIC_BRANCH_SUMMARY_VERSION,
|
|
23
23
|
readFabricBranchSummaryDetails,
|
|
24
24
|
readFabricProjectionTrace
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-VE3FWDRH.js";
|
|
26
26
|
|
|
27
27
|
// src/compaction/hook.ts
|
|
28
28
|
import "@oh-my-pi/pi-coding-agent";
|
|
@@ -1678,4 +1678,4 @@ export {
|
|
|
1678
1678
|
compileFabricSummary,
|
|
1679
1679
|
registerCompactionHook
|
|
1680
1680
|
};
|
|
1681
|
-
//# sourceMappingURL=chunk-
|
|
1681
|
+
//# sourceMappingURL=chunk-G3VKU6GZ.js.map
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
FabricResolutionError,
|
|
21
21
|
FabricTraceSafeError,
|
|
22
22
|
executionOutcomeFromError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-V7DLSDFO.js";
|
|
24
24
|
|
|
25
25
|
// src/core/action-registry.ts
|
|
26
26
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
@@ -1618,4 +1618,4 @@ export {
|
|
|
1618
1618
|
NESTED_TOOL_CALL_ID_PREFIX,
|
|
1619
1619
|
ActionRegistry
|
|
1620
1620
|
};
|
|
1621
|
-
//# sourceMappingURL=chunk-
|
|
1621
|
+
//# sourceMappingURL=chunk-HWOL2YVU.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_MEMORY_INDEX_PRIVACY,
|
|
11
11
|
normalizeSession
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6IPXBDCA.js";
|
|
13
13
|
|
|
14
14
|
// src/memory/index.ts
|
|
15
15
|
import crypto2 from "node:crypto";
|
|
@@ -1226,4 +1226,4 @@ export {
|
|
|
1226
1226
|
searchMemoryIndex,
|
|
1227
1227
|
searchShards
|
|
1228
1228
|
};
|
|
1229
|
-
//# sourceMappingURL=chunk-
|
|
1229
|
+
//# sourceMappingURL=chunk-PTYCFQEH.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-UAP6IQIR.js";
|
|
14
14
|
import {
|
|
15
15
|
OMP_CORE_TOOL_NAME_SET
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6YR6XPNF.js";
|
|
17
17
|
|
|
18
18
|
// src/core/model-resolution.ts
|
|
19
19
|
var PROVIDER_MODEL_RE = /^[^\s/]+\/[^\s/]+$/;
|
|
@@ -1734,4 +1734,4 @@ export {
|
|
|
1734
1734
|
saveFabricConfig,
|
|
1735
1735
|
resolveAgentDir
|
|
1736
1736
|
};
|
|
1737
|
-
//# sourceMappingURL=chunk-
|
|
1737
|
+
//# sourceMappingURL=chunk-RGE6MBYP.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
sessionDirsForCwd,
|
|
15
15
|
sessionsDirRoot
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YLMDFMXM.js";
|
|
17
17
|
import {
|
|
18
18
|
stableJsonHash,
|
|
19
19
|
stableJsonHashArrayAsync
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
FABRIC_EXECUTION_TRACE_KIND,
|
|
27
27
|
readFabricExecutionTraceV1
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-V7DLSDFO.js";
|
|
29
29
|
|
|
30
30
|
// src/entropy/types.ts
|
|
31
31
|
var ENTROPY_METRIC_VERSION = 2;
|
|
@@ -2208,4 +2208,4 @@ export {
|
|
|
2208
2208
|
formatEntropyCompileNotice,
|
|
2209
2209
|
runEntropyTrial
|
|
2210
2210
|
};
|
|
2211
|
-
//# sourceMappingURL=chunk-
|
|
2211
|
+
//# sourceMappingURL=chunk-TF3MK3TH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isOmpShellRef
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6YR6XPNF.js";
|
|
4
4
|
|
|
5
5
|
// src/audit/projection.ts
|
|
6
6
|
var emptyProjection = (args) => ({
|
|
@@ -784,4 +784,4 @@ export {
|
|
|
784
784
|
isFabricExecutionTraceV1,
|
|
785
785
|
readFabricExecutionTraceV1
|
|
786
786
|
};
|
|
787
|
-
//# sourceMappingURL=chunk-
|
|
787
|
+
//# sourceMappingURL=chunk-V7DLSDFO.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readFabricExecutionTraceV1
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V7DLSDFO.js";
|
|
4
4
|
|
|
5
5
|
// src/compaction/branch-details.ts
|
|
6
6
|
var FABRIC_BRANCH_SUMMARY_KIND = "omp-fabric.branch-summary";
|
|
@@ -218,4 +218,4 @@ export {
|
|
|
218
218
|
readFabricBranchSummaryDetails,
|
|
219
219
|
readFabricProjectionTrace
|
|
220
220
|
};
|
|
221
|
-
//# sourceMappingURL=chunk-
|
|
221
|
+
//# sourceMappingURL=chunk-VE3FWDRH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readSessionHeader
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6IPXBDCA.js";
|
|
4
4
|
|
|
5
5
|
// src/memory/discovery.ts
|
|
6
6
|
import crypto from "node:crypto";
|
|
@@ -252,4 +252,4 @@ export {
|
|
|
252
252
|
InvalidProjectScopeError,
|
|
253
253
|
resolveScope
|
|
254
254
|
};
|
|
255
|
-
//# sourceMappingURL=chunk-
|
|
255
|
+
//# sourceMappingURL=chunk-YLMDFMXM.js.map
|
package/dist/compaction/hook.js
CHANGED
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
fabricCompactionVersion,
|
|
5
5
|
rawContextTokens,
|
|
6
6
|
registerCompactionHook
|
|
7
|
-
} from "../chunks/chunk-
|
|
7
|
+
} from "../chunks/chunk-G3VKU6GZ.js";
|
|
8
8
|
import "../chunks/chunk-3J7BKUNG.js";
|
|
9
9
|
import "../chunks/chunk-QSRTEINF.js";
|
|
10
10
|
import "../chunks/chunk-UAP6IQIR.js";
|
|
11
|
-
import "../chunks/chunk-
|
|
12
|
-
import "../chunks/chunk-
|
|
13
|
-
import "../chunks/chunk-
|
|
11
|
+
import "../chunks/chunk-VE3FWDRH.js";
|
|
12
|
+
import "../chunks/chunk-V7DLSDFO.js";
|
|
13
|
+
import "../chunks/chunk-6YR6XPNF.js";
|
|
14
14
|
export {
|
|
15
15
|
compileFabricSummary,
|
|
16
16
|
computeCut,
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
sessionDirNamesForCwd,
|
|
12
12
|
sessionsDirRoot
|
|
13
|
-
} from "../chunks/chunk-
|
|
14
|
-
import "../chunks/chunk-
|
|
13
|
+
} from "../chunks/chunk-YLMDFMXM.js";
|
|
14
|
+
import "../chunks/chunk-6IPXBDCA.js";
|
|
15
15
|
import {
|
|
16
16
|
DEFAULT_LCM_MAX_INPUT_CHARS,
|
|
17
17
|
LcmModelAdapter,
|
|
@@ -45,9 +45,9 @@ import {
|
|
|
45
45
|
clipUtf8,
|
|
46
46
|
utf8Bytes
|
|
47
47
|
} from "../chunks/chunk-UAP6IQIR.js";
|
|
48
|
-
import "../chunks/chunk-
|
|
49
|
-
import "../chunks/chunk-
|
|
50
|
-
import "../chunks/chunk-
|
|
48
|
+
import "../chunks/chunk-VE3FWDRH.js";
|
|
49
|
+
import "../chunks/chunk-V7DLSDFO.js";
|
|
50
|
+
import "../chunks/chunk-6YR6XPNF.js";
|
|
51
51
|
|
|
52
52
|
// src/compaction/lcm-runtime.ts
|
|
53
53
|
import fs4 from "node:fs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ActionRegistry,
|
|
3
3
|
NESTED_TOOL_CALL_ID_PREFIX
|
|
4
|
-
} from "../chunks/chunk-
|
|
4
|
+
} from "../chunks/chunk-HWOL2YVU.js";
|
|
5
5
|
import "../chunks/chunk-LMAVZN7J.js";
|
|
6
6
|
import "../chunks/chunk-7TB7NXSL.js";
|
|
7
7
|
import "../chunks/chunk-4A4MVZQW.js";
|
|
8
8
|
import "../chunks/chunk-X2SKPWJA.js";
|
|
9
9
|
import "../chunks/chunk-77FQHHZD.js";
|
|
10
10
|
import "../chunks/chunk-7363CD5A.js";
|
|
11
|
-
import "../chunks/chunk-
|
|
12
|
-
import "../chunks/chunk-
|
|
11
|
+
import "../chunks/chunk-V7DLSDFO.js";
|
|
12
|
+
import "../chunks/chunk-6YR6XPNF.js";
|
|
13
13
|
export {
|
|
14
14
|
ActionRegistry,
|
|
15
15
|
NESTED_TOOL_CALL_ID_PREFIX
|
package/dist/core/omp-tools.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export declare const isOmpShellToolName: (name: string) => name is OmpShellToolN
|
|
|
9
9
|
export declare const isOmpShellRef: (ref: string) => boolean;
|
|
10
10
|
export declare const OMP_CORE_TOOL_NAME_SET: ReadonlySet<string>;
|
|
11
11
|
export declare const hostToolForCore: (name: OmpCoreToolName) => string;
|
|
12
|
+
export declare const hostToolName: (name: string) => string;
|
|
13
|
+
export declare const ompChildToolName: (name: string) => string | undefined;
|
|
12
14
|
/** The host tools fabric replaces, and so the ones it owns while full code mode is on. */
|
|
13
15
|
export declare const FABRIC_OWNED_HOST_TOOLS: ReadonlySet<string>;
|
|
14
16
|
/** An empty host selection reads as unknown, so it denies nothing. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omp-tools.d.ts","sourceRoot":"","sources":["../../src/core/omp-tools.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,kEAQtB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,eAAO,MAAM,oBAAoB,0EAA4C,CAAC;AAE9E,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,eAAO,MAAM,uBAAuB,EAAE,WAAW,CAAC,MAAM,CAAiC,CAAC;AAE1F,QAAA,MAAM,oBAAoB,mBAAoB,CAAC;AAC/C,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,KAAG,IAAI,IAAI,gBAAmC,CAAC;AAE9F,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,KAAG,OAA6B,CAAC;AAE1E,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,CAAgC,CAAC;AAKxF,eAAO,MAAM,eAAe,GAAI,MAAM,eAAe,KAAG,MAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"omp-tools.d.ts","sourceRoot":"","sources":["../../src/core/omp-tools.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,kEAQtB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,eAAO,MAAM,oBAAoB,0EAA4C,CAAC;AAE9E,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,eAAO,MAAM,uBAAuB,EAAE,WAAW,CAAC,MAAM,CAAiC,CAAC;AAE1F,QAAA,MAAM,oBAAoB,mBAAoB,CAAC;AAC/C,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,KAAG,IAAI,IAAI,gBAAmC,CAAC;AAE9F,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,KAAG,OAA6B,CAAC;AAE1E,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,CAAgC,CAAC;AAKxF,eAAO,MAAM,eAAe,GAAI,MAAM,eAAe,KAAG,MAA8C,CAAC;AAIvG,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,KAAG,MACwC,CAAC;AAErF,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,KAAG,MAAM,GAAG,SACmB,CAAC;AAE7E,0FAA0F;AAC1F,eAAO,MAAM,uBAAuB,EAAE,WAAW,CAAC,MAAM,CAAqD,CAAC;AAE9G,sEAAsE;AACtE,eAAO,MAAM,iBAAiB,GAC5B,MAAM,MAAM,EACZ,iBAAiB,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,KAC/C,OAC2C,CAAC;AAE/C,eAAO,MAAM,kBAAkB,GAC7B,iBAAiB,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,KAC/C,SAAS,gBAAgB,EACqD,CAAC"}
|
package/dist/entropy/index.js
CHANGED
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
staticFreedomFromSchema,
|
|
61
61
|
surfaceFreedomReport,
|
|
62
62
|
trendFromScores
|
|
63
|
-
} from "../chunks/chunk-
|
|
63
|
+
} from "../chunks/chunk-TF3MK3TH.js";
|
|
64
64
|
import {
|
|
65
65
|
compiledSurfaceDirectory,
|
|
66
66
|
loadCompiledSurface,
|
|
@@ -82,13 +82,13 @@ import {
|
|
|
82
82
|
replaySuccessfulCallsAsync,
|
|
83
83
|
schemaDigest
|
|
84
84
|
} from "../chunks/chunk-4A4MVZQW.js";
|
|
85
|
-
import "../chunks/chunk-
|
|
86
|
-
import "../chunks/chunk-
|
|
85
|
+
import "../chunks/chunk-YLMDFMXM.js";
|
|
86
|
+
import "../chunks/chunk-6IPXBDCA.js";
|
|
87
87
|
import "../chunks/chunk-7363CD5A.js";
|
|
88
88
|
import "../chunks/chunk-KAD7UWT2.js";
|
|
89
|
-
import "../chunks/chunk-
|
|
90
|
-
import "../chunks/chunk-
|
|
91
|
-
import "../chunks/chunk-
|
|
89
|
+
import "../chunks/chunk-VE3FWDRH.js";
|
|
90
|
+
import "../chunks/chunk-V7DLSDFO.js";
|
|
91
|
+
import "../chunks/chunk-6YR6XPNF.js";
|
|
92
92
|
export {
|
|
93
93
|
AUTO_APPLY_PROPOSAL_KINDS,
|
|
94
94
|
COMPILED_SURFACE_VERSION,
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
MemoryProvider,
|
|
12
12
|
actionArgNormalizer,
|
|
13
13
|
uniqueDeclaredKeyForSpelling
|
|
14
|
-
} from "./chunks/chunk-
|
|
15
|
-
import "./chunks/chunk-
|
|
14
|
+
} from "./chunks/chunk-3QPIB3H2.js";
|
|
15
|
+
import "./chunks/chunk-PTYCFQEH.js";
|
|
16
16
|
import "./chunks/chunk-U5FYOMG5.js";
|
|
17
17
|
import {
|
|
18
18
|
ApprovalController,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
repairFabricGuestCode,
|
|
34
34
|
resolveFabricIdentity,
|
|
35
35
|
runFabricHandoffAtBoundary
|
|
36
|
-
} from "./chunks/chunk-
|
|
36
|
+
} from "./chunks/chunk-5EZWERJY.js";
|
|
37
37
|
import "./chunks/chunk-7VIQNUPS.js";
|
|
38
38
|
import {
|
|
39
39
|
AgentTranscriptReader,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
repairActionName,
|
|
52
52
|
setActiveCompiledSurface,
|
|
53
53
|
setActiveRepairCompiler
|
|
54
|
-
} from "./chunks/chunk-
|
|
54
|
+
} from "./chunks/chunk-HWOL2YVU.js";
|
|
55
55
|
import {
|
|
56
56
|
formatFabricEffectConflict
|
|
57
57
|
} from "./chunks/chunk-LMAVZN7J.js";
|
|
@@ -64,8 +64,8 @@ import {
|
|
|
64
64
|
withExclusiveFileLockAsync
|
|
65
65
|
} from "./chunks/chunk-YWEXP724.js";
|
|
66
66
|
import "./chunks/chunk-4A4MVZQW.js";
|
|
67
|
-
import "./chunks/chunk-
|
|
68
|
-
import "./chunks/chunk-
|
|
67
|
+
import "./chunks/chunk-YLMDFMXM.js";
|
|
68
|
+
import "./chunks/chunk-6IPXBDCA.js";
|
|
69
69
|
import {
|
|
70
70
|
FABRIC_COMPONENT_DISCOVER_EVENT,
|
|
71
71
|
FABRIC_PROVIDER_DISCOVER_EVENT,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
resolveAgentCwd,
|
|
98
98
|
resolveOmpBinary,
|
|
99
99
|
validateAgentCwdRequest
|
|
100
|
-
} from "./chunks/chunk-
|
|
100
|
+
} from "./chunks/chunk-2T6EHZ5G.js";
|
|
101
101
|
import "./chunks/chunk-VPPIJRNZ.js";
|
|
102
102
|
import {
|
|
103
103
|
executeFile,
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
import "./chunks/chunk-CT2AJ2UI.js";
|
|
108
108
|
import {
|
|
109
109
|
checkedHandoffCompaction
|
|
110
|
-
} from "./chunks/chunk-
|
|
110
|
+
} from "./chunks/chunk-CA2P7NLW.js";
|
|
111
111
|
import {
|
|
112
112
|
DEFAULT_FABRIC_CONFIG,
|
|
113
113
|
FUZZY_RESOLUTION_MARKERS,
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
resolveAgentDir,
|
|
118
118
|
resolveAvailableOmpModel,
|
|
119
119
|
resolveFabricModel
|
|
120
|
-
} from "./chunks/chunk-
|
|
120
|
+
} from "./chunks/chunk-RGE6MBYP.js";
|
|
121
121
|
import {
|
|
122
122
|
FABRIC_ACTOR_HOST_EVENTS,
|
|
123
123
|
isFabricActorHostEvent,
|
|
@@ -157,7 +157,7 @@ import {
|
|
|
157
157
|
import {
|
|
158
158
|
estimateTokens,
|
|
159
159
|
fabricExecTitleHintCached
|
|
160
|
-
} from "./chunks/chunk-
|
|
160
|
+
} from "./chunks/chunk-G3VKU6GZ.js";
|
|
161
161
|
import "./chunks/chunk-3J7BKUNG.js";
|
|
162
162
|
import {
|
|
163
163
|
MAX_COMPACTION_INSTRUCTIONS_CHARS,
|
|
@@ -167,19 +167,20 @@ import {
|
|
|
167
167
|
encodeCompactionRequest
|
|
168
168
|
} from "./chunks/chunk-QSRTEINF.js";
|
|
169
169
|
import "./chunks/chunk-UAP6IQIR.js";
|
|
170
|
-
import "./chunks/chunk-
|
|
170
|
+
import "./chunks/chunk-VE3FWDRH.js";
|
|
171
171
|
import {
|
|
172
172
|
FabricExecutionTraceRecorder,
|
|
173
173
|
FabricTraceSafeError,
|
|
174
174
|
executionOutcomeFromError
|
|
175
|
-
} from "./chunks/chunk-
|
|
175
|
+
} from "./chunks/chunk-V7DLSDFO.js";
|
|
176
176
|
import {
|
|
177
177
|
OMP_GUEST_TOOL_NAMES,
|
|
178
178
|
OMP_GUEST_TOOL_NAME_SET,
|
|
179
|
+
hostToolName,
|
|
179
180
|
isOmpShellRef,
|
|
180
181
|
isOmpShellToolName,
|
|
181
182
|
ompCoreToolDenied
|
|
182
|
-
} from "./chunks/chunk-
|
|
183
|
+
} from "./chunks/chunk-6YR6XPNF.js";
|
|
183
184
|
|
|
184
185
|
// src/fabric-runtime-state.ts
|
|
185
186
|
import path20 from "node:path";
|
|
@@ -11418,12 +11419,14 @@ var createPreviewWriteToolDefinition = (cwd, session) => {
|
|
|
11418
11419
|
import { AgentRegistry } from "@oh-my-pi/pi-coding-agent";
|
|
11419
11420
|
import { isSettingsInitialized, Settings } from "@oh-my-pi/pi-coding-agent/config/settings";
|
|
11420
11421
|
import { cfgAsyncEnabled } from "@oh-my-pi/pi-coding-agent/tools/settings";
|
|
11422
|
+
var liveAgentSession = (session) => session;
|
|
11421
11423
|
var liveOwner = (sessionId) => {
|
|
11422
11424
|
if (!sessionId) return void 0;
|
|
11423
11425
|
for (const ref of AgentRegistry.global().list()) {
|
|
11424
11426
|
if (ref.session?.sessionManager.getSessionId() !== sessionId) continue;
|
|
11425
|
-
const
|
|
11426
|
-
const
|
|
11427
|
+
const session = liveAgentSession(ref.session);
|
|
11428
|
+
const manager = session.asyncJobManager;
|
|
11429
|
+
const agentId = session.getAgentId?.() ?? ref.id;
|
|
11427
11430
|
return manager ? { manager, agentId } : void 0;
|
|
11428
11431
|
}
|
|
11429
11432
|
return void 0;
|
|
@@ -11460,7 +11463,8 @@ var hostAgentIdentity = (context) => {
|
|
|
11460
11463
|
getAgentId: () => context.agent?.id ?? null,
|
|
11461
11464
|
getTaskDepth: () => context.agent?.depth ?? 0,
|
|
11462
11465
|
getTaskMaxRecursionDepth: () => {
|
|
11463
|
-
const
|
|
11466
|
+
const session = liveHost()?.session;
|
|
11467
|
+
const settings = session ? liveAgentSession(session).settings : void 0;
|
|
11464
11468
|
return settings ? cfgTaskMaxRecursionDepth.get(settings) : void 0;
|
|
11465
11469
|
}
|
|
11466
11470
|
};
|
|
@@ -12129,6 +12133,10 @@ var normalizeResult = (name, result, artifactPaths, appendReadNewline = true, ex
|
|
|
12129
12133
|
}
|
|
12130
12134
|
}
|
|
12131
12135
|
}
|
|
12136
|
+
if (isOmpShellToolName(name) && details && typeof details === "object" && !Array.isArray(details)) {
|
|
12137
|
+
const { trace: _trace, ...publicDetails } = details;
|
|
12138
|
+
details = Object.keys(publicDetails).length > 0 ? publicDetails : void 0;
|
|
12139
|
+
}
|
|
12132
12140
|
if (name === "write" && details && typeof details === "object" && !Array.isArray(details)) {
|
|
12133
12141
|
const { codePreviewBeforeWrite: _before, ...publicDetails } = details;
|
|
12134
12142
|
details = Object.keys(publicDetails).length > 0 ? publicDetails : void 0;
|
|
@@ -12219,7 +12227,7 @@ var OmpToolsProvider = class _OmpToolsProvider {
|
|
|
12219
12227
|
}
|
|
12220
12228
|
#denialSource(name) {
|
|
12221
12229
|
if (!OMP_GUEST_TOOL_NAME_SET.has(name)) return void 0;
|
|
12222
|
-
if (this.#allowedTools && !this.#allowedTools.has(name)) return "this child's tool allowlist";
|
|
12230
|
+
if (this.#allowedTools && !this.#allowedTools.has(hostToolName(name))) return "this child's tool allowlist";
|
|
12223
12231
|
return ompCoreToolDenied(name, this.#hostActiveTools?.()) ? "OMP's active tool selection" : void 0;
|
|
12224
12232
|
}
|
|
12225
12233
|
// Keep a cwd-bound definition for hosts without argument preparation, while newer hosts receive the
|