omp-fabric 1.18.3 → 1.19.0
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 +14 -0
- package/dist/chunks/{chunk-N5DHCLLX.js → chunk-4J65SMNI.js} +4 -4
- package/dist/chunks/{chunk-T5ZA5YRU.js → chunk-52JBWP2C.js} +2 -2
- package/dist/chunks/{chunk-7OAFYAJC.js → chunk-5BFEXYPV.js} +3 -3
- package/dist/chunks/{chunk-6QBPSZJ5.js → chunk-BPMSLBX4.js} +2 -2
- package/dist/chunks/{chunk-C5JMLDIM.js → chunk-DC3KUZQ5.js} +2 -2
- package/dist/chunks/{chunk-BMIE4PIL.js → chunk-DTG3DYVC.js} +3 -3
- package/dist/chunks/{chunk-GIBZGL4G.js → chunk-HKRSGUUQ.js} +2 -2
- package/dist/chunks/{chunk-FX3XLQYI.js → chunk-MQSRZC2O.js} +2 -2
- package/dist/chunks/{chunk-2LGLDM34.js → chunk-R4EFMCIY.js} +5 -3
- package/dist/chunks/{chunk-2LGLDM34.js.map → chunk-R4EFMCIY.js.map} +2 -2
- package/dist/chunks/{chunk-2KEWFW56.js → chunk-SDZXNTBF.js} +2 -2
- package/dist/chunks/{chunk-X3XY6SAU.js → chunk-SRC6ERTE.js} +4 -4
- package/dist/chunks/{chunk-RBA54WC7.js → chunk-X2SKPWJA.js} +1 -1
- package/dist/chunks/{chunk-RBA54WC7.js.map → chunk-X2SKPWJA.js.map} +1 -1
- package/dist/chunks/{chunk-4HQDSTHN.js → chunk-YBNCEX5E.js} +2 -2
- package/dist/chunks/{chunk-VYB7ROEH.js → chunk-YE3CSYYB.js} +3 -3
- package/dist/chunks/{chunk-WMB6QCWX.js → chunk-Z5YXOMNU.js} +2 -2
- package/dist/chunks/{chunk-6N4XGAZY.js → chunk-ZFMSJLQE.js} +6 -2
- package/dist/chunks/{chunk-6N4XGAZY.js.map → chunk-ZFMSJLQE.js.map} +2 -2
- package/dist/compaction/hook.js +4 -4
- package/dist/compaction/lcm-runtime.js +5 -5
- package/dist/core/action-registry.d.ts.map +1 -1
- package/dist/core/action-registry.js +4 -4
- package/dist/core/omp-tools.d.ts +3 -0
- package/dist/core/omp-tools.d.ts.map +1 -1
- package/dist/core/system-guidance.d.ts +1 -1
- package/dist/core/system-guidance.d.ts.map +1 -1
- package/dist/core/tool-ownership.d.ts +2 -0
- package/dist/core/tool-ownership.d.ts.map +1 -1
- package/dist/entropy/index.js +6 -6
- package/dist/fabric-runtime-state.d.ts +2 -0
- package/dist/fabric-runtime-state.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +38 -23
- package/dist/fabric-runtime-state.js.map +3 -3
- package/dist/fabric-state.d.ts +1 -0
- package/dist/fabric-state.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -18
- 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/protocol.d.ts +2 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +1 -1
- package/dist/providers/memory-provider.js +7 -7
- package/dist/providers/omp-tools-provider.d.ts +5 -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 +3 -3
- package/dist/ui/settings.js.map +2 -2
- package/docs/configuration.md +3 -1
- package/package.json +1 -1
- package/skills/fabric-advisor/SKILL.md +1 -1
- package/skills/fabric-ambient/SKILL.md +1 -1
- /package/dist/chunks/{chunk-N5DHCLLX.js.map → chunk-4J65SMNI.js.map} +0 -0
- /package/dist/chunks/{chunk-T5ZA5YRU.js.map → chunk-52JBWP2C.js.map} +0 -0
- /package/dist/chunks/{chunk-7OAFYAJC.js.map → chunk-5BFEXYPV.js.map} +0 -0
- /package/dist/chunks/{chunk-6QBPSZJ5.js.map → chunk-BPMSLBX4.js.map} +0 -0
- /package/dist/chunks/{chunk-C5JMLDIM.js.map → chunk-DC3KUZQ5.js.map} +0 -0
- /package/dist/chunks/{chunk-BMIE4PIL.js.map → chunk-DTG3DYVC.js.map} +0 -0
- /package/dist/chunks/{chunk-GIBZGL4G.js.map → chunk-HKRSGUUQ.js.map} +0 -0
- /package/dist/chunks/{chunk-FX3XLQYI.js.map → chunk-MQSRZC2O.js.map} +0 -0
- /package/dist/chunks/{chunk-2KEWFW56.js.map → chunk-SDZXNTBF.js.map} +0 -0
- /package/dist/chunks/{chunk-X3XY6SAU.js.map → chunk-SRC6ERTE.js.map} +0 -0
- /package/dist/chunks/{chunk-4HQDSTHN.js.map → chunk-YBNCEX5E.js.map} +0 -0
- /package/dist/chunks/{chunk-VYB7ROEH.js.map → chunk-YE3CSYYB.js.map} +0 -0
- /package/dist/chunks/{chunk-WMB6QCWX.js.map → chunk-Z5YXOMNU.js.map} +0 -0
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_MEMORY_INDEX_PRIVACY,
|
|
11
11
|
normalizeSession
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BPMSLBX4.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-SDZXNTBF.js.map
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
} from "./chunk-WQUMHDOS.js";
|
|
7
7
|
import {
|
|
8
8
|
NESTED_TOOL_CALL_ID_PREFIX
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-R4EFMCIY.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-DC3KUZQ5.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-52JBWP2C.js";
|
|
22
22
|
|
|
23
23
|
// src/capture/wrapper.ts
|
|
24
24
|
var wrapToolDefinition = (definition, ctxFactory) => {
|
|
@@ -2809,4 +2809,4 @@ export {
|
|
|
2809
2809
|
resolveFabricIdentity,
|
|
2810
2810
|
MainAgentController
|
|
2811
2811
|
};
|
|
2812
|
-
//# sourceMappingURL=chunk-
|
|
2812
|
+
//# sourceMappingURL=chunk-SRC6ERTE.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/protocol.ts"],
|
|
4
|
-
"sourcesContent": ["import type { ExtensionContext } from \"@oh-my-pi/pi-coding-agent\";\n\nexport const FABRIC_PROVIDER_REGISTER_EVENT = \"omp-fabric:provider:register:v1\";\nexport const FABRIC_PROVIDER_DISCOVER_EVENT = \"omp-fabric:provider:discover:v1\";\nexport const FABRIC_COMPONENT_REGISTER_EVENT = \"omp-fabric:component:register:v1\";\nexport const FABRIC_COMPONENT_DISCOVER_EVENT = \"omp-fabric:component:discover:v1\";\nexport const FABRIC_PREWALK_REQUEST_EVENT = \"omp-fabric:prewalk:request:v1\";\n\nexport type FabricPrewalkRequestResultV1 =\n | { ok: true }\n | { ok: false; error: string };\n\n/** Host-local request used by queue extensions that need an acknowledged prewalk arm. */\nexport interface FabricPrewalkRequestV1 {\n version: 1;\n context: ExtensionContext;\n claim: () => boolean;\n respond: (result: FabricPrewalkRequestResultV1) => void;\n}\n\nexport const readFabricPrewalkRequestV1 = (\n value: unknown,\n): FabricPrewalkRequestV1 | undefined => {\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) return undefined;\n const record = value as Record<string, unknown>;\n if (\n record.version !== 1 ||\n typeof record.context !== \"object\" ||\n record.context === null ||\n typeof record.claim !== \"function\" ||\n typeof record.respond !== \"function\"\n ) {\n return undefined;\n }\n return value as FabricPrewalkRequestV1;\n};\n\nexport const FABRIC_PEER_CARDS_EVENT = \"omp-fabric:peers:cards:v1\";\nexport const FABRIC_PEER_AWAIT_SETTLE_EVENT = \"omp-fabric:peer:await-settle:v1\";\n\n/** One root peer session on the project mesh, for pickers and status lines. */\nexport interface FabricPeerCardV1 {\n id: string;\n /** Linear-style project label (e.g. \"PQS-2\") minted by the owning host. */\n label: string;\n status: \"idle\" | \"running\";\n model?: string;\n cwd?: string;\n startedAt: number;\n updatedAt: number;\n pendingMessages: boolean;\n}\n\nexport type FabricPeerCardsResultV1 =\n | { ok: true; cards: FabricPeerCardV1[] }\n | { ok: false; error: string };\n\n/** Host-local request used by queue extensions to enumerate live peer sessions. */\nexport interface FabricPeerCardsRequestV1 {\n version: 1;\n context: ExtensionContext;\n claim: () => boolean;\n respond: (result: FabricPeerCardsResultV1) => void;\n}\n\nexport const readFabricPeerCardsRequestV1 = (\n value: unknown,\n): FabricPeerCardsRequestV1 | undefined => {\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) return undefined;\n const record = value as Record<string, unknown>;\n if (\n record.version !== 1 ||\n typeof record.context !== \"object\" ||\n record.context === null ||\n typeof record.claim !== \"function\" ||\n typeof record.respond !== \"function\"\n ) {\n return undefined;\n }\n return value as FabricPeerCardsRequestV1;\n};\n\nexport interface FabricPeerSettleProgressV1 {\n waiting: Array<{ label: string; status: \"idle\" | \"running\" }>;\n}\n\nexport type FabricPeerAwaitSettleResultV1 =\n | { ok: true }\n | { ok: false; error: string };\n\n/**\n * Host-local request used by queue extensions to hold dispatch until peer\n * sessions settle. A peer counts as settled once it has been quiet\n * (status-wide) for settledForMs; peers that vanish from the mesh count as\n * settled since they can no longer conflict. Selector matches a peer label\n * (case-insensitive) or exact participant id; omitted waits on all peers.\n */\nexport interface FabricPeerAwaitSettleRequestV1 {\n version: 1;\n context: ExtensionContext;\n selector?: string;\n settledForMs?: number;\n signal?: AbortSignal;\n update?: (progress: FabricPeerSettleProgressV1) => void;\n claim: () => boolean;\n respond: (result: FabricPeerAwaitSettleResultV1) => void;\n}\n\nexport const readFabricPeerAwaitSettleRequestV1 = (\n value: unknown,\n): FabricPeerAwaitSettleRequestV1 | undefined => {\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) return undefined;\n const record = value as Record<string, unknown>;\n const signal = record.signal as AbortSignal | undefined;\n if (\n record.version !== 1 ||\n typeof record.context !== \"object\" ||\n record.context === null ||\n typeof record.claim !== \"function\" ||\n typeof record.respond !== \"function\" ||\n (record.selector !== undefined && typeof record.selector !== \"string\") ||\n (record.settledForMs !== undefined && typeof record.settledForMs !== \"number\") ||\n (signal !== undefined && typeof signal.aborted !== \"boolean\") ||\n (record.update !== undefined && typeof record.update !== \"function\")\n ) {\n return undefined;\n }\n return value as FabricPeerAwaitSettleRequestV1;\n};\n\n/** Identifies host-side tool lifecycle events replayed for a nested Fabric call. */\nexport const FABRIC_NESTED_TOOL_CALL_ID_PREFIX = \"fabric_\";\n\n/** Discriminant for the transient details envelope on a proxied provider result. */\nexport const FABRIC_TOOL_RESULT_PROXY_KIND = \"omp-fabric.tool-result-proxy.v1\";\n\n/**\n * Host-only middleware details for non-OMP Fabric providers. `result` is the\n * exact value before maxNestedResultChars is enforced and is not persisted as\n * a separate OMP tool-result message.\n */\nexport interface FabricToolResultProxyDetailsV1 {\n kind: typeof FABRIC_TOOL_RESULT_PROXY_KIND;\n ref: string;\n result: unknown;\n}\n\nexport const readFabricToolResultProxyDetailsV1 = (\n value: unknown,\n): FabricToolResultProxyDetailsV1 | undefined => {\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) return undefined;\n const record = value as Record<string, unknown>;\n if (\n record.kind !== FABRIC_TOOL_RESULT_PROXY_KIND ||\n typeof record.ref !== \"string\" ||\n !Object.prototype.hasOwnProperty.call(record, \"result\")\n ) {\n return undefined;\n }\n return record as unknown as FabricToolResultProxyDetailsV1;\n};\n\nexport type FabricRisk = \"read\" | \"write\" | \"execute\" | \"network\" | \"agent\";\nexport type FabricEffectKind = \"none\" | \"scoped\" | \"transactional\" | \"emission\";\nexport type FabricEffectOrdering = \"commutative\" | \"ordered\" | \"unknown\";\n\nexport interface FabricActionEffect {\n kind: FabricEffectKind;\n resources?: string[];\n ordering?: FabricEffectOrdering;\n}\n\n/** MCP tool annotations (Model Context Protocol ToolAnnotations), cached when a runtime surfaces them. */\nexport interface FabricToolAnnotations {\n readOnlyHint?: boolean;\n idempotentHint?: boolean;\n destructiveHint?: boolean;\n openWorldHint?: boolean;\n}\nexport type FabricActivityEntityKind =\n | \"agent\"\n | \"actor\"\n | \"tool\"\n | \"extension\"\n | \"mcp\"\n | \"mesh\"\n | \"task\"\n | \"custom\";\n\nexport type FabricInvocationActivityUpdate =\n | { type: \"progress\"; message: string }\n | { type: \"entity\"; id: string; kind: FabricActivityEntityKind; name?: string }\n | { type: \"metrics\"; tokens?: number; toolCalls?: number; cost?: number };\n\nexport interface FabricMediaBlock {\n type: \"image\";\n data: string;\n mimeType: string;\n}\n\nexport interface FabricActionDescriptor {\n name: string;\n description: string;\n inputSchema: Record<string, unknown>;\n outputSchema?: Record<string, unknown>;\n risk: FabricRisk;\n namespace?: string;\n effect?: FabricActionEffect;\n annotations?: FabricToolAnnotations;\n}\n\nexport interface FabricCapabilityActionHead {\n key: string;\n parentKey: string;\n ref: string;\n name: string;\n description: string;\n descriptorHash: string;\n risk: FabricRisk;\n namespace?: string;\n effect?: FabricActionEffect;\n}\n\nexport interface FabricCapabilityProviderHead {\n key: string;\n parentKey: string;\n name: string;\n description: string;\n descriptorHash: string;\n actions: FabricCapabilityActionHead[];\n}\n\nexport interface FabricCapabilityBindingView {\n ref: string;\n provider: string;\n providerBindingId: string;\n generation: number;\n descriptorHash: string;\n}\n\nexport interface FabricCommittedCapabilityView {\n id: string;\n /** Runtime-local digest including provider binding generations. */\n digest: string;\n /** Portable digest of exact refs and descriptor semantics across runtimes. */\n semanticDigest: string;\n bindings: Record<string, FabricCapabilityBindingView>;\n}\n\nexport interface FabricCapabilityResolution {\n satisfied: boolean;\n missing: string[];\n optionalMissing: string[];\n view?: FabricCommittedCapabilityView;\n}\n\nexport interface FabricCapabilityCatalog {\n kind: \"omp-fabric.capability-catalog\";\n version: 1;\n root: {\n key: \"capability:fabric\";\n name: \"Fabric capabilities\";\n description: string;\n descriptorHash: string;\n };\n providers: FabricCapabilityProviderHead[];\n totalActions: number;\n indexedActions: number;\n complete: boolean;\n reasons: string[];\n}\n\nexport interface FabricProviderListRequest {\n namespace?: string;\n query?: string;\n limit?: number;\n}\n\n/** One named action whose arguments should be typed in guest declarations. */\nexport interface FabricNamedActionTypeSource {\n name: string;\n inputSchema: Record<string, unknown>;\n}\n\n/** One MCP server plus the tools to type for `mcp.<server>.*` guest calls. */\nexport interface FabricMcpServerTypeSource {\n server: string;\n tools: FabricNamedActionTypeSource[];\n}\n\n/**\n * Live descriptor snapshot the registry hands to the guest declaration\n * builder so dynamic surfaces (mcp, extensions) get argument checking before\n * the sandbox runs. Empty/absent sections keep the loose static declarations.\n */\nexport interface FabricGuestTypeSources {\n mcpServers?: FabricMcpServerTypeSource[];\n extensionTools?: FabricNamedActionTypeSource[];\n}\n\n/**\n * Pre-rendered `declare const` blocks replacing the loose mcp/extensions\n * declaration lines. Values are full replacement text (helpers + declare).\n */\nexport interface FabricDynamicGuestDeclarations {\n mcp?: string;\n extensions?: string;\n}\n\nexport interface FabricInvocationContext {\n cwd: string;\n signal: AbortSignal | undefined;\n parentToolCallId: string;\n nestedToolCallId: string;\n extensionContext: ExtensionContext;\n update(message: string): void;\n activity?(update: FabricInvocationActivityUpdate): void;\n /** Host-supplied inside fabric_exec so agents.handoff schedules the outer-call boundary. */\n deferHandoff?(args: Record<string, unknown>): Record<string, unknown>;\n // Out-of-band image content blocks a provider (currently only omp.read of an\n // image file) wants attached to the call audit, so the single-call render can\n // re-attach them to the fabric_exec result content for OMP core's kitty image\n // preview. Bypasses the result char bound that would truncate the base64.\n // `note` is the read tool's own text output (e.g. \"Read image file [image/png]\"),\n // captured after any tool_result patch so a handoff that strips OMP's\n // non-vision note has run; used as the single-call body + content text so the\n // preview shows the clean note instead of the swapped description.\n attachMedia?(blocks: FabricMediaBlock[], note?: string): void;\n // Providers call this after mutable tool_call middleware has run so live and\n // durable audit surfaces reflect the arguments actually passed to the tool.\n updateArguments?(args: Record<string, unknown>): void;\n // Ephemeral renderer-only metadata. It is exposed to live Fabric previews but\n // never projected into the durable execution trace.\n attachPreview?(preview: unknown): void;\n capabilityView?: FabricCommittedCapabilityView;\n /** Advisory for ordinary calls; strict components reject concurrent conflicting effects. */\n effectPolicy?: \"advisory\" | \"strict\";\n}\n\nexport interface FabricScopedProviderResult {\n value: unknown;\n dispose(): void | Promise<void>;\n}\n\nexport interface FabricProviderListCoverage {\n complete: boolean;\n reasons: string[];\n}\n\nexport interface FabricProvider {\n name: string;\n description: string;\n list(\n request: FabricProviderListRequest,\n context: FabricInvocationContext,\n ): Promise<FabricActionDescriptor[]>;\n listCoverage?(): FabricProviderListCoverage;\n describe(\n actionName: string,\n context: FabricInvocationContext,\n ): Promise<FabricActionDescriptor | undefined>;\n prepareArguments?(\n actionName: string,\n args: Record<string, unknown>,\n context: FabricInvocationContext,\n ): Record<string, unknown> | Promise<Record<string, unknown>>;\n invoke(\n actionName: string,\n args: Record<string, unknown>,\n context: FabricInvocationContext,\n ): Promise<unknown>;\n acquire?(\n actionName: string,\n args: Record<string, unknown>,\n context: FabricInvocationContext,\n ): Promise<FabricScopedProviderResult>;\n invocationEnded?(parentToolCallId: string): Promise<void>;\n subscribeCatalog?(listener: () => void): () => void;\n close?(): Promise<void>;\n}\n\nexport interface FabricProviderRegistration {\n version: 1;\n provider: FabricProvider;\n overwrite?: boolean;\n}\n\nexport interface FabricProviderDiscovery {\n version: 1;\n register(provider: FabricProvider, options?: { overwrite?: boolean }): void;\n}\n\nexport type {\n FabricCapabilityRequirement,\n FabricComponentChildOptions,\n FabricComponentContext,\n FabricComponentDefinition,\n FabricComponentDiscovery,\n FabricComponentDisposer,\n FabricComponentEffect,\n FabricComponentEffectConflict,\n FabricComponentEffectInfo,\n FabricComponentEffectOptions,\n FabricComponentEffectRegistration,\n FabricComponentEntry,\n FabricComponentGraph,\n FabricComponentGuarantee,\n FabricComponentHandle,\n FabricComponentInfo,\n FabricComponentProviderLease,\n FabricModelGuidance,\n FabricModelGuidanceInfo,\n FabricModelGuidancePlacement,\n FabricModelGuidanceTarget,\n FabricComponentProvision,\n FabricComponentRegistration,\n FabricComponentState,\n FabricComponentStopOptions,\n} from \"./components/types.js\";\n\nexport {\n FABRIC_EXECUTION_GUIDANCE_SLOT,\n MAX_FABRIC_MODEL_GUIDANCE_CONTENT_CHARS,\n MAX_FABRIC_MODEL_GUIDANCE_PER_COMPONENT,\n MAX_FABRIC_MODEL_GUIDANCE_REGISTRATIONS,\n MAX_FABRIC_MODEL_GUIDANCE_SNAPSHOT_CHARS,\n MAX_FABRIC_MODEL_GUIDANCE_TOTAL_CHARS,\n} from \"./components/model-guidance.js\";\n"],
|
|
4
|
+
"sourcesContent": ["import type { ExtensionContext } from \"@oh-my-pi/pi-coding-agent\";\n\nexport const FABRIC_PROVIDER_REGISTER_EVENT = \"omp-fabric:provider:register:v1\";\nexport const FABRIC_PROVIDER_DISCOVER_EVENT = \"omp-fabric:provider:discover:v1\";\nexport const FABRIC_COMPONENT_REGISTER_EVENT = \"omp-fabric:component:register:v1\";\nexport const FABRIC_COMPONENT_DISCOVER_EVENT = \"omp-fabric:component:discover:v1\";\nexport const FABRIC_PREWALK_REQUEST_EVENT = \"omp-fabric:prewalk:request:v1\";\n\nexport type FabricPrewalkRequestResultV1 =\n | { ok: true }\n | { ok: false; error: string };\n\n/** Host-local request used by queue extensions that need an acknowledged prewalk arm. */\nexport interface FabricPrewalkRequestV1 {\n version: 1;\n context: ExtensionContext;\n claim: () => boolean;\n respond: (result: FabricPrewalkRequestResultV1) => void;\n}\n\nexport const readFabricPrewalkRequestV1 = (\n value: unknown,\n): FabricPrewalkRequestV1 | undefined => {\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) return undefined;\n const record = value as Record<string, unknown>;\n if (\n record.version !== 1 ||\n typeof record.context !== \"object\" ||\n record.context === null ||\n typeof record.claim !== \"function\" ||\n typeof record.respond !== \"function\"\n ) {\n return undefined;\n }\n return value as FabricPrewalkRequestV1;\n};\n\nexport const FABRIC_PEER_CARDS_EVENT = \"omp-fabric:peers:cards:v1\";\nexport const FABRIC_PEER_AWAIT_SETTLE_EVENT = \"omp-fabric:peer:await-settle:v1\";\n\n/** One root peer session on the project mesh, for pickers and status lines. */\nexport interface FabricPeerCardV1 {\n id: string;\n /** Linear-style project label (e.g. \"PQS-2\") minted by the owning host. */\n label: string;\n status: \"idle\" | \"running\";\n model?: string;\n cwd?: string;\n startedAt: number;\n updatedAt: number;\n pendingMessages: boolean;\n}\n\nexport type FabricPeerCardsResultV1 =\n | { ok: true; cards: FabricPeerCardV1[] }\n | { ok: false; error: string };\n\n/** Host-local request used by queue extensions to enumerate live peer sessions. */\nexport interface FabricPeerCardsRequestV1 {\n version: 1;\n context: ExtensionContext;\n claim: () => boolean;\n respond: (result: FabricPeerCardsResultV1) => void;\n}\n\nexport const readFabricPeerCardsRequestV1 = (\n value: unknown,\n): FabricPeerCardsRequestV1 | undefined => {\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) return undefined;\n const record = value as Record<string, unknown>;\n if (\n record.version !== 1 ||\n typeof record.context !== \"object\" ||\n record.context === null ||\n typeof record.claim !== \"function\" ||\n typeof record.respond !== \"function\"\n ) {\n return undefined;\n }\n return value as FabricPeerCardsRequestV1;\n};\n\nexport interface FabricPeerSettleProgressV1 {\n waiting: Array<{ label: string; status: \"idle\" | \"running\" }>;\n}\n\nexport type FabricPeerAwaitSettleResultV1 =\n | { ok: true }\n | { ok: false; error: string };\n\n/**\n * Host-local request used by queue extensions to hold dispatch until peer\n * sessions settle. A peer counts as settled once it has been quiet\n * (status-wide) for settledForMs; peers that vanish from the mesh count as\n * settled since they can no longer conflict. Selector matches a peer label\n * (case-insensitive) or exact participant id; omitted waits on all peers.\n */\nexport interface FabricPeerAwaitSettleRequestV1 {\n version: 1;\n context: ExtensionContext;\n selector?: string;\n settledForMs?: number;\n signal?: AbortSignal;\n update?: (progress: FabricPeerSettleProgressV1) => void;\n claim: () => boolean;\n respond: (result: FabricPeerAwaitSettleResultV1) => void;\n}\n\nexport const readFabricPeerAwaitSettleRequestV1 = (\n value: unknown,\n): FabricPeerAwaitSettleRequestV1 | undefined => {\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) return undefined;\n const record = value as Record<string, unknown>;\n const signal = record.signal as AbortSignal | undefined;\n if (\n record.version !== 1 ||\n typeof record.context !== \"object\" ||\n record.context === null ||\n typeof record.claim !== \"function\" ||\n typeof record.respond !== \"function\" ||\n (record.selector !== undefined && typeof record.selector !== \"string\") ||\n (record.settledForMs !== undefined && typeof record.settledForMs !== \"number\") ||\n (signal !== undefined && typeof signal.aborted !== \"boolean\") ||\n (record.update !== undefined && typeof record.update !== \"function\")\n ) {\n return undefined;\n }\n return value as FabricPeerAwaitSettleRequestV1;\n};\n\n/** Identifies host-side tool lifecycle events replayed for a nested Fabric call. */\nexport const FABRIC_NESTED_TOOL_CALL_ID_PREFIX = \"fabric_\";\n\n/** Discriminant for the transient details envelope on a proxied provider result. */\nexport const FABRIC_TOOL_RESULT_PROXY_KIND = \"omp-fabric.tool-result-proxy.v1\";\n\n/**\n * Host-only middleware details for non-OMP Fabric providers. `result` is the\n * exact value before maxNestedResultChars is enforced and is not persisted as\n * a separate OMP tool-result message.\n */\nexport interface FabricToolResultProxyDetailsV1 {\n kind: typeof FABRIC_TOOL_RESULT_PROXY_KIND;\n ref: string;\n result: unknown;\n}\n\nexport const readFabricToolResultProxyDetailsV1 = (\n value: unknown,\n): FabricToolResultProxyDetailsV1 | undefined => {\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) return undefined;\n const record = value as Record<string, unknown>;\n if (\n record.kind !== FABRIC_TOOL_RESULT_PROXY_KIND ||\n typeof record.ref !== \"string\" ||\n !Object.prototype.hasOwnProperty.call(record, \"result\")\n ) {\n return undefined;\n }\n return record as unknown as FabricToolResultProxyDetailsV1;\n};\n\nexport type FabricRisk = \"read\" | \"write\" | \"execute\" | \"network\" | \"agent\";\nexport type FabricEffectKind = \"none\" | \"scoped\" | \"transactional\" | \"emission\";\nexport type FabricEffectOrdering = \"commutative\" | \"ordered\" | \"unknown\";\n\nexport interface FabricActionEffect {\n kind: FabricEffectKind;\n resources?: string[];\n ordering?: FabricEffectOrdering;\n}\n\n/** MCP tool annotations (Model Context Protocol ToolAnnotations), cached when a runtime surfaces them. */\nexport interface FabricToolAnnotations {\n readOnlyHint?: boolean;\n idempotentHint?: boolean;\n destructiveHint?: boolean;\n openWorldHint?: boolean;\n}\nexport type FabricActivityEntityKind =\n | \"agent\"\n | \"actor\"\n | \"tool\"\n | \"extension\"\n | \"mcp\"\n | \"mesh\"\n | \"task\"\n | \"custom\";\n\nexport type FabricInvocationActivityUpdate =\n | { type: \"progress\"; message: string }\n | { type: \"entity\"; id: string; kind: FabricActivityEntityKind; name?: string }\n | { type: \"metrics\"; tokens?: number; toolCalls?: number; cost?: number };\n\nexport interface FabricMediaBlock {\n type: \"image\";\n data: string;\n mimeType: string;\n}\n\nexport interface FabricActionDescriptor {\n name: string;\n description: string;\n inputSchema: Record<string, unknown>;\n outputSchema?: Record<string, unknown>;\n risk: FabricRisk;\n namespace?: string;\n effect?: FabricActionEffect;\n annotations?: FabricToolAnnotations;\n}\n\nexport interface FabricCapabilityActionHead {\n key: string;\n parentKey: string;\n ref: string;\n name: string;\n description: string;\n descriptorHash: string;\n risk: FabricRisk;\n namespace?: string;\n effect?: FabricActionEffect;\n}\n\nexport interface FabricCapabilityProviderHead {\n key: string;\n parentKey: string;\n name: string;\n description: string;\n descriptorHash: string;\n actions: FabricCapabilityActionHead[];\n}\n\nexport interface FabricCapabilityBindingView {\n ref: string;\n provider: string;\n providerBindingId: string;\n generation: number;\n descriptorHash: string;\n}\n\nexport interface FabricCommittedCapabilityView {\n id: string;\n /** Runtime-local digest including provider binding generations. */\n digest: string;\n /** Portable digest of exact refs and descriptor semantics across runtimes. */\n semanticDigest: string;\n bindings: Record<string, FabricCapabilityBindingView>;\n}\n\nexport interface FabricCapabilityResolution {\n satisfied: boolean;\n missing: string[];\n optionalMissing: string[];\n view?: FabricCommittedCapabilityView;\n}\n\nexport interface FabricCapabilityCatalog {\n kind: \"omp-fabric.capability-catalog\";\n version: 1;\n root: {\n key: \"capability:fabric\";\n name: \"Fabric capabilities\";\n description: string;\n descriptorHash: string;\n };\n providers: FabricCapabilityProviderHead[];\n totalActions: number;\n indexedActions: number;\n complete: boolean;\n reasons: string[];\n}\n\nexport interface FabricProviderListRequest {\n namespace?: string;\n query?: string;\n limit?: number;\n}\n\n/** One named action whose arguments should be typed in guest declarations. */\nexport interface FabricNamedActionTypeSource {\n name: string;\n inputSchema: Record<string, unknown>;\n}\n\n/** One MCP server plus the tools to type for `mcp.<server>.*` guest calls. */\nexport interface FabricMcpServerTypeSource {\n server: string;\n tools: FabricNamedActionTypeSource[];\n}\n\n/**\n * Live descriptor snapshot the registry hands to the guest declaration\n * builder so dynamic surfaces (mcp, extensions) get argument checking before\n * the sandbox runs. Empty/absent sections keep the loose static declarations.\n */\nexport interface FabricGuestTypeSources {\n mcpServers?: FabricMcpServerTypeSource[];\n extensionTools?: FabricNamedActionTypeSource[];\n}\n\n/**\n * Pre-rendered `declare const` blocks replacing the loose mcp/extensions\n * declaration lines. Values are full replacement text (helpers + declare).\n */\nexport interface FabricDynamicGuestDeclarations {\n mcp?: string;\n extensions?: string;\n}\n\nexport interface FabricInvocationContext {\n cwd: string;\n signal: AbortSignal | undefined;\n parentToolCallId: string;\n nestedToolCallId: string;\n extensionContext: ExtensionContext;\n update(message: string): void;\n activity?(update: FabricInvocationActivityUpdate): void;\n /** Host-supplied inside fabric_exec so agents.handoff schedules the outer-call boundary. */\n deferHandoff?(args: Record<string, unknown>): Record<string, unknown>;\n // Out-of-band image content blocks a provider (currently only omp.read of an\n // image file) wants attached to the call audit, so the single-call render can\n // re-attach them to the fabric_exec result content for OMP core's kitty image\n // preview. Bypasses the result char bound that would truncate the base64.\n // `note` is the read tool's own text output (e.g. \"Read image file [image/png]\"),\n // captured after any tool_result patch so a handoff that strips OMP's\n // non-vision note has run; used as the single-call body + content text so the\n // preview shows the clean note instead of the swapped description.\n attachMedia?(blocks: FabricMediaBlock[], note?: string): void;\n // Providers call this after mutable tool_call middleware has run so live and\n // durable audit surfaces reflect the arguments actually passed to the tool.\n updateArguments?(args: Record<string, unknown>): void;\n // Ephemeral renderer-only metadata. It is exposed to live Fabric previews but\n // never projected into the durable execution trace.\n attachPreview?(preview: unknown): void;\n capabilityView?: FabricCommittedCapabilityView;\n /** Advisory for ordinary calls; strict components reject concurrent conflicting effects. */\n effectPolicy?: \"advisory\" | \"strict\";\n}\n\nexport interface FabricScopedProviderResult {\n value: unknown;\n dispose(): void | Promise<void>;\n}\n\nexport interface FabricProviderListCoverage {\n complete: boolean;\n reasons: string[];\n}\n\nexport interface FabricProvider {\n name: string;\n description: string;\n list(\n request: FabricProviderListRequest,\n context: FabricInvocationContext,\n ): Promise<FabricActionDescriptor[]>;\n listCoverage?(): FabricProviderListCoverage;\n /** Why an action the provider knows is refused; undefined when it is permitted or unknown. */\n denialMessage?(actionName: string): string | undefined;\n describe(\n actionName: string,\n context: FabricInvocationContext,\n ): Promise<FabricActionDescriptor | undefined>;\n prepareArguments?(\n actionName: string,\n args: Record<string, unknown>,\n context: FabricInvocationContext,\n ): Record<string, unknown> | Promise<Record<string, unknown>>;\n invoke(\n actionName: string,\n args: Record<string, unknown>,\n context: FabricInvocationContext,\n ): Promise<unknown>;\n acquire?(\n actionName: string,\n args: Record<string, unknown>,\n context: FabricInvocationContext,\n ): Promise<FabricScopedProviderResult>;\n invocationEnded?(parentToolCallId: string): Promise<void>;\n subscribeCatalog?(listener: () => void): () => void;\n close?(): Promise<void>;\n}\n\nexport interface FabricProviderRegistration {\n version: 1;\n provider: FabricProvider;\n overwrite?: boolean;\n}\n\nexport interface FabricProviderDiscovery {\n version: 1;\n register(provider: FabricProvider, options?: { overwrite?: boolean }): void;\n}\n\nexport type {\n FabricCapabilityRequirement,\n FabricComponentChildOptions,\n FabricComponentContext,\n FabricComponentDefinition,\n FabricComponentDiscovery,\n FabricComponentDisposer,\n FabricComponentEffect,\n FabricComponentEffectConflict,\n FabricComponentEffectInfo,\n FabricComponentEffectOptions,\n FabricComponentEffectRegistration,\n FabricComponentEntry,\n FabricComponentGraph,\n FabricComponentGuarantee,\n FabricComponentHandle,\n FabricComponentInfo,\n FabricComponentProviderLease,\n FabricModelGuidance,\n FabricModelGuidanceInfo,\n FabricModelGuidancePlacement,\n FabricModelGuidanceTarget,\n FabricComponentProvision,\n FabricComponentRegistration,\n FabricComponentState,\n FabricComponentStopOptions,\n} from \"./components/types.js\";\n\nexport {\n FABRIC_EXECUTION_GUIDANCE_SLOT,\n MAX_FABRIC_MODEL_GUIDANCE_CONTENT_CHARS,\n MAX_FABRIC_MODEL_GUIDANCE_PER_COMPONENT,\n MAX_FABRIC_MODEL_GUIDANCE_REGISTRATIONS,\n MAX_FABRIC_MODEL_GUIDANCE_SNAPSHOT_CHARS,\n MAX_FABRIC_MODEL_GUIDANCE_TOTAL_CHARS,\n} from \"./components/model-guidance.js\";\n"],
|
|
5
5
|
"mappings": ";AAEO,IAAM,iCAAiC;AACvC,IAAM,iCAAiC;AACvC,IAAM,kCAAkC;AACxC,IAAM,kCAAkC;AACxC,IAAM,+BAA+B;AAc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AAO;AAChF,QAAM,SAAS;AACf,MACE,OAAO,SAAS,iCAChB,OAAO,OAAO,QAAQ,YACtB,CAAC,OAAO,UAAU,eAAe,KAAK,QAAQ,QAAQ,GACtD;AACA,WAAO;AAAA,EACT;AACA,SAAO;AACT;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readFabricExecutionTraceV1
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-52JBWP2C.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-YBNCEX5E.js.map
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
peerLabelPrefix,
|
|
23
23
|
writeHandoffSession
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-DC3KUZQ5.js";
|
|
25
25
|
import {
|
|
26
26
|
DEFAULT_FABRIC_CONFIG,
|
|
27
27
|
MAX_AGENT_TIMEOUT_MS,
|
|
28
28
|
MIN_AGENT_TIMEOUT_MS,
|
|
29
29
|
resolveAgentDir
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HKRSGUUQ.js";
|
|
31
31
|
import {
|
|
32
32
|
FABRIC_ACTOR_HOST_EVENTS,
|
|
33
33
|
readJsonlPage
|
|
@@ -6635,4 +6635,4 @@ export {
|
|
|
6635
6635
|
agentParticipantRecords,
|
|
6636
6636
|
actorParticipantRecord
|
|
6637
6637
|
};
|
|
6638
|
-
//# sourceMappingURL=chunk-
|
|
6638
|
+
//# sourceMappingURL=chunk-YE3CSYYB.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-YBNCEX5E.js";
|
|
26
26
|
|
|
27
27
|
// src/compaction/hook.ts
|
|
28
28
|
import "@oh-my-pi/pi-coding-agent";
|
|
@@ -1721,4 +1721,4 @@ export {
|
|
|
1721
1721
|
compileFabricSummary,
|
|
1722
1722
|
registerCompactionHook
|
|
1723
1723
|
};
|
|
1724
|
-
//# sourceMappingURL=chunk-
|
|
1724
|
+
//# sourceMappingURL=chunk-Z5YXOMNU.js.map
|
|
@@ -11,11 +11,15 @@ var OMP_CORE_TOOL_NAMES = [
|
|
|
11
11
|
var isOmpShellToolName = (name) => name === "bash";
|
|
12
12
|
var isOmpShellRef = (ref) => ref === "omp.bash";
|
|
13
13
|
var OMP_CORE_TOOL_NAME_SET = new Set(OMP_CORE_TOOL_NAMES);
|
|
14
|
+
var ompCoreToolDenied = (name, hostActiveTools) => Boolean(hostActiveTools?.size) && !hostActiveTools.has(name);
|
|
15
|
+
var deniedOmpCoreTools = (hostActiveTools) => OMP_CORE_TOOL_NAMES.filter((name) => ompCoreToolDenied(name, hostActiveTools));
|
|
14
16
|
|
|
15
17
|
export {
|
|
16
18
|
OMP_CORE_TOOL_NAMES,
|
|
17
19
|
isOmpShellToolName,
|
|
18
20
|
isOmpShellRef,
|
|
19
|
-
OMP_CORE_TOOL_NAME_SET
|
|
21
|
+
OMP_CORE_TOOL_NAME_SET,
|
|
22
|
+
ompCoreToolDenied,
|
|
23
|
+
deniedOmpCoreTools
|
|
20
24
|
};
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-ZFMSJLQE.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\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"],
|
|
5
|
-
"mappings": ";AAAO,IAAM,sBAAsB;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAOO,IAAM,qBAAqB,CAAC,SAA2C,SAAS;AAEhF,IAAM,gBAAgB,CAAC,QAAyB,QAAQ;AAExD,IAAM,yBAA8C,IAAI,IAAI,mBAAmB;",
|
|
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\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/** 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) && !hostActiveTools!.has(name);\n\nexport const deniedOmpCoreTools = (\n hostActiveTools: ReadonlySet<string> | undefined,\n): readonly OmpCoreToolName[] =>\n OMP_CORE_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;AAOO,IAAM,qBAAqB,CAAC,SAA2C,SAAS;AAEhF,IAAM,gBAAgB,CAAC,QAAyB,QAAQ;AAExD,IAAM,yBAA8C,IAAI,IAAI,mBAAmB;AAG/E,IAAM,oBAAoB,CAC/B,MACA,oBACY,QAAQ,iBAAiB,IAAI,KAAK,CAAC,gBAAiB,IAAI,IAAI;AAEnE,IAAM,qBAAqB,CAChC,oBAEA,oBAAoB,OAAO,CAAC,SAAS,kBAAkB,MAAM,eAAe,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
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-Z5YXOMNU.js";
|
|
8
8
|
import "../chunks/chunk-3J7BKUNG.js";
|
|
9
9
|
import "../chunks/chunk-E4HNDTLM.js";
|
|
10
10
|
import "../chunks/chunk-3XPR2AZL.js";
|
|
11
|
-
import "../chunks/chunk-
|
|
12
|
-
import "../chunks/chunk-
|
|
13
|
-
import "../chunks/chunk-
|
|
11
|
+
import "../chunks/chunk-YBNCEX5E.js";
|
|
12
|
+
import "../chunks/chunk-52JBWP2C.js";
|
|
13
|
+
import "../chunks/chunk-ZFMSJLQE.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-MQSRZC2O.js";
|
|
14
|
+
import "../chunks/chunk-BPMSLBX4.js";
|
|
15
15
|
import {
|
|
16
16
|
LcmModelAdapter,
|
|
17
17
|
buildLcmPrompt,
|
|
@@ -40,9 +40,9 @@ import {
|
|
|
40
40
|
clipUtf8,
|
|
41
41
|
utf8Bytes
|
|
42
42
|
} from "../chunks/chunk-3XPR2AZL.js";
|
|
43
|
-
import "../chunks/chunk-
|
|
44
|
-
import "../chunks/chunk-
|
|
45
|
-
import "../chunks/chunk-
|
|
43
|
+
import "../chunks/chunk-YBNCEX5E.js";
|
|
44
|
+
import "../chunks/chunk-52JBWP2C.js";
|
|
45
|
+
import "../chunks/chunk-ZFMSJLQE.js";
|
|
46
46
|
|
|
47
47
|
// src/compaction/lcm-runtime.ts
|
|
48
48
|
import fs4 from "node:fs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-registry.d.ts","sourceRoot":"","sources":["../../src/core/action-registry.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,2BAA2B,EAC3B,4BAA4B,EAC7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAIL,KAAK,mCAAmC,EACxC,KAAK,4BAA4B,EAClC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,KAAK,sBAAsB,EAG3B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAE/B,KAAK,sBAAsB,EAC3B,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EAErB,KAAK,cAAc,EACnB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAChC,MAAM,gBAAgB,CAAC;AAiBxB,OAAO,KAAK,EACV,uBAAuB,EACvB,wBAAwB,EACxB,sBAA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,CAAC,CAAC;QACtC,YAAY,EAAE,MAAM,CAAC;QACrB,OAAO,CAAC,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;KAC5D,GACD,SAAS,CACZ;IAkFK,aAAa,CAAC,gBAAgB,EAAE,MAAM,EAAE,SAAS,SAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAazE,KAAK,CAAC,qBAAqB,GAAE,GAAG,CAAC,MAAM,CAAa,GAAG,OAAO,CAAC,IAAI,CAAC;CA2N3E"}
|
|
@@ -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-R4EFMCIY.js";
|
|
5
5
|
import "../chunks/chunk-LMAVZN7J.js";
|
|
6
6
|
import "../chunks/chunk-7TB7NXSL.js";
|
|
7
7
|
import "../chunks/chunk-4A4MVZQW.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
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-52JBWP2C.js";
|
|
12
|
+
import "../chunks/chunk-ZFMSJLQE.js";
|
|
13
13
|
export {
|
|
14
14
|
ActionRegistry,
|
|
15
15
|
NESTED_TOOL_CALL_ID_PREFIX
|
package/dist/core/omp-tools.d.ts
CHANGED
|
@@ -5,5 +5,8 @@ export type OmpShellToolName = (typeof OMP_SHELL_TOOL_NAMES)[number];
|
|
|
5
5
|
export declare const isOmpShellToolName: (name: string) => name is OmpShellToolName;
|
|
6
6
|
export declare const isOmpShellRef: (ref: string) => boolean;
|
|
7
7
|
export declare const OMP_CORE_TOOL_NAME_SET: ReadonlySet<string>;
|
|
8
|
+
/** An empty host selection reads as unknown, so it denies nothing. */
|
|
9
|
+
export declare const ompCoreToolDenied: (name: string, hostActiveTools: ReadonlySet<string> | undefined) => boolean;
|
|
10
|
+
export declare const deniedOmpCoreTools: (hostActiveTools: ReadonlySet<string> | undefined) => readonly OmpCoreToolName[];
|
|
8
11
|
export {};
|
|
9
12
|
//# sourceMappingURL=omp-tools.d.ts.map
|
|
@@ -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,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"}
|
|
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,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;AAExF,sEAAsE;AACtE,eAAO,MAAM,iBAAiB,GAC5B,MAAM,MAAM,EACZ,iBAAiB,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,KAC/C,OAAwE,CAAC;AAE5E,eAAO,MAAM,kBAAkB,GAC7B,iBAAiB,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,KAC/C,SAAS,eAAe,EACqD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const fabricExecutionKernelGuidance: (fullCodeMode: boolean) => string;
|
|
1
|
+
export declare const fabricExecutionKernelGuidance: (fullCodeMode: boolean, deniedCoreTools?: readonly string[]) => string;
|
|
2
2
|
export declare const defaultFabricExecutionGuidance: (fullCodeMode: boolean) => string;
|
|
3
3
|
export interface ExtensionRosterToolSource {
|
|
4
4
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-guidance.d.ts","sourceRoot":"","sources":["../../src/core/system-guidance.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,6BAA6B,
|
|
1
|
+
{"version":3,"file":"system-guidance.d.ts","sourceRoot":"","sources":["../../src/core/system-guidance.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,6BAA6B,GACxC,cAAc,OAAO,EACrB,kBAAiB,SAAS,MAAM,EAAO,KACtC,MAeU,CAAC;AAEd,eAAO,MAAM,8BAA8B,GAAI,cAAc,OAAO,KAAG,MAGiR,CAAC;AAGzV,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACjD;AAqCD,eAAO,MAAM,2BAA2B,GACtC,OAAO,aAAa,CAAC,yBAAyB,CAAC,EAC/C,eAAe,WAAW,CAAC,MAAM,CAAC,KACjC,MAAM,GAAG,SA8BX,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,MAAM,KAAK,GAAG,OAAO,GAAG,SAAS,KAAG,MAAM,GAAG,SAQjF,CAAC"}
|
|
@@ -48,5 +48,7 @@ export declare class FabricToolOwnership {
|
|
|
48
48
|
excludeTools?: ReadonlySet<string>;
|
|
49
49
|
}, hiddenExtensionTools?: ReadonlySet<string>): boolean;
|
|
50
50
|
release(): boolean;
|
|
51
|
+
/** Host tool authority: the active set with fabric's own hiding undone. */
|
|
52
|
+
hostActiveTools(): ReadonlySet<string>;
|
|
51
53
|
}
|
|
52
54
|
//# sourceMappingURL=tool-ownership.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-ownership.d.ts","sourceRoot":"","sources":["../../src/core/tool-ownership.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EACjB,MAAM,2BAA2B,CAAC;AAKnC,MAAM,WAAW,uBAAuB;IACtC,cAAc,IAAI,MAAM,EAAE,CAAC;IAC3B,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACvC;AAED,MAAM,WAAW,4BAA4B;IAC3C,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACjE;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,CAAC,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzE;AAKD,eAAO,MAAM,oBAAoB,GAC/B,OAAO,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC,EAC5D,oBAAoB,M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AM,OAAO,CAAC;IACtB,WAAW,EAAE,MAAM,WAAW,CAAC,MAAM,CAAC,CAAC;IACvC,KAAK,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC;CACjD,KAAG,wBAeH,CAAC;AAEF,qBAAa,mBAAmB;;IASlB,QAAQ,CAAC,IAAI,EAAE,uBAAuB;gBAA7B,IAAI,EAAE,uBAAuB;IAElD,KAAK,CACH,oBAAoB,EAAE,OAAO,GAAG;QAC9B,YAAY,EAAE,OAAO,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;QACnC,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;KACpC,EACD,oBAAoB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GACzC,OAAO;IAwCV,OAAO,IAAI,OAAO;IAIlB,2EAA2E;IAC3E,eAAe,IAAI,WAAW,CAAC,MAAM,CAAC;CA6BvC"}
|
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-DTG3DYVC.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-MQSRZC2O.js";
|
|
86
|
+
import "../chunks/chunk-BPMSLBX4.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-YBNCEX5E.js";
|
|
90
|
+
import "../chunks/chunk-52JBWP2C.js";
|
|
91
|
+
import "../chunks/chunk-ZFMSJLQE.js";
|
|
92
92
|
export {
|
|
93
93
|
AUTO_APPLY_PROPOSAL_KINDS,
|
|
94
94
|
COMPILED_SURFACE_VERSION,
|
|
@@ -27,6 +27,7 @@ import { type PendingFabricHandoff } from "./prewalk/handoff.js";
|
|
|
27
27
|
import type { AgentToolResultMessage } from "./agents/types.js";
|
|
28
28
|
import { type FabricAgentMessageDelivery, type FabricAgentMessageResult, type FabricMainAgentInfo } from "./main-agent.js";
|
|
29
29
|
import { type MemoryProviderContext } from "./providers/memory-provider.js";
|
|
30
|
+
import { type FabricHostToolAuthority } from "./providers/omp-tools-provider.js";
|
|
30
31
|
import { type FabricProvider } from "./protocol.js";
|
|
31
32
|
import { AgentManager } from "./agents/manager.js";
|
|
32
33
|
import type { FabricRuntimePaths } from "./runtime-paths.js";
|
|
@@ -96,6 +97,7 @@ export interface FabricRuntimeStateOptions {
|
|
|
96
97
|
paths?: FabricRuntimePaths;
|
|
97
98
|
lcmContext?: () => MemoryProviderContext["lcm"];
|
|
98
99
|
lcmRuntime?: () => LcmStatusSource | undefined;
|
|
100
|
+
hostActiveTools?: FabricHostToolAuthority;
|
|
99
101
|
}
|
|
100
102
|
export declare class FabricRuntimeState {
|
|
101
103
|
#private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fabric-runtime-state.d.ts","sourceRoot":"","sources":["../src/fabric-runtime-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EA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;IAevF,yBAAyB,CACvB,SAAS,EAAE,yBAAyB,EACpC,OAAO,GAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAO,GACpC,IAAI;IAOD,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIjC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAsIhC"}
|
|
@@ -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-4J65SMNI.js";
|
|
15
|
+
import "./chunks/chunk-SDZXNTBF.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-SRC6ERTE.js";
|
|
37
37
|
import "./chunks/chunk-7VIQNUPS.js";
|
|
38
38
|
import {
|
|
39
39
|
AgentTranscriptReader,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
repairActionName,
|
|
51
51
|
setActiveCompiledSurface,
|
|
52
52
|
setActiveRepairCompiler
|
|
53
|
-
} from "./chunks/chunk-
|
|
53
|
+
} from "./chunks/chunk-R4EFMCIY.js";
|
|
54
54
|
import {
|
|
55
55
|
formatFabricEffectConflict
|
|
56
56
|
} from "./chunks/chunk-LMAVZN7J.js";
|
|
@@ -63,14 +63,14 @@ import {
|
|
|
63
63
|
withExclusiveFileLockAsync
|
|
64
64
|
} from "./chunks/chunk-YWEXP724.js";
|
|
65
65
|
import "./chunks/chunk-4A4MVZQW.js";
|
|
66
|
-
import "./chunks/chunk-
|
|
67
|
-
import "./chunks/chunk-
|
|
66
|
+
import "./chunks/chunk-MQSRZC2O.js";
|
|
67
|
+
import "./chunks/chunk-BPMSLBX4.js";
|
|
68
68
|
import {
|
|
69
69
|
FABRIC_COMPONENT_DISCOVER_EVENT,
|
|
70
70
|
FABRIC_PROVIDER_DISCOVER_EVENT,
|
|
71
71
|
FABRIC_TOOL_RESULT_PROXY_KIND,
|
|
72
72
|
readFabricToolResultProxyDetailsV1
|
|
73
|
-
} from "./chunks/chunk-
|
|
73
|
+
} from "./chunks/chunk-X2SKPWJA.js";
|
|
74
74
|
import {
|
|
75
75
|
ActorDirectory,
|
|
76
76
|
ActorRegistryOwnershipError,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
resolveAgentCwd,
|
|
95
95
|
resolveOmpBinary,
|
|
96
96
|
validateAgentCwdRequest
|
|
97
|
-
} from "./chunks/chunk-
|
|
97
|
+
} from "./chunks/chunk-YE3CSYYB.js";
|
|
98
98
|
import "./chunks/chunk-VPPIJRNZ.js";
|
|
99
99
|
import {
|
|
100
100
|
executeFile,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
import "./chunks/chunk-CT2AJ2UI.js";
|
|
105
105
|
import {
|
|
106
106
|
checkedHandoffCompaction
|
|
107
|
-
} from "./chunks/chunk-
|
|
107
|
+
} from "./chunks/chunk-DC3KUZQ5.js";
|
|
108
108
|
import {
|
|
109
109
|
DEFAULT_FABRIC_CONFIG,
|
|
110
110
|
FUZZY_RESOLUTION_MARKERS,
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
resolveAgentDir,
|
|
115
115
|
resolveAvailableOmpModel,
|
|
116
116
|
resolveFabricModel
|
|
117
|
-
} from "./chunks/chunk-
|
|
117
|
+
} from "./chunks/chunk-HKRSGUUQ.js";
|
|
118
118
|
import {
|
|
119
119
|
FABRIC_ACTOR_HOST_EVENTS,
|
|
120
120
|
isFabricActorHostEvent,
|
|
@@ -154,7 +154,7 @@ import {
|
|
|
154
154
|
import {
|
|
155
155
|
estimateTokens,
|
|
156
156
|
fabricExecTitleHintCached
|
|
157
|
-
} from "./chunks/chunk-
|
|
157
|
+
} from "./chunks/chunk-Z5YXOMNU.js";
|
|
158
158
|
import "./chunks/chunk-3J7BKUNG.js";
|
|
159
159
|
import {
|
|
160
160
|
MAX_COMPACTION_INSTRUCTIONS_CHARS,
|
|
@@ -164,17 +164,19 @@ import {
|
|
|
164
164
|
encodeCompactionRequest
|
|
165
165
|
} from "./chunks/chunk-E4HNDTLM.js";
|
|
166
166
|
import "./chunks/chunk-3XPR2AZL.js";
|
|
167
|
-
import "./chunks/chunk-
|
|
167
|
+
import "./chunks/chunk-YBNCEX5E.js";
|
|
168
168
|
import {
|
|
169
169
|
FabricExecutionTraceRecorder,
|
|
170
170
|
FabricTraceSafeError,
|
|
171
171
|
executionOutcomeFromError
|
|
172
|
-
} from "./chunks/chunk-
|
|
172
|
+
} from "./chunks/chunk-52JBWP2C.js";
|
|
173
173
|
import {
|
|
174
174
|
OMP_CORE_TOOL_NAMES,
|
|
175
|
+
OMP_CORE_TOOL_NAME_SET,
|
|
175
176
|
isOmpShellRef,
|
|
176
|
-
isOmpShellToolName
|
|
177
|
-
|
|
177
|
+
isOmpShellToolName,
|
|
178
|
+
ompCoreToolDenied
|
|
179
|
+
} from "./chunks/chunk-ZFMSJLQE.js";
|
|
178
180
|
|
|
179
181
|
// src/fabric-runtime-state.ts
|
|
180
182
|
import path19 from "node:path";
|
|
@@ -10442,19 +10444,21 @@ var normalizeResult = (name, result, artifactPaths, appendReadNewline = true, ex
|
|
|
10442
10444
|
return { ok: true, output, details: details ?? null };
|
|
10443
10445
|
};
|
|
10444
10446
|
var OmpToolsProvider = class _OmpToolsProvider {
|
|
10445
|
-
static async create(cwd, catalog, capturedTools) {
|
|
10446
|
-
return new _OmpToolsProvider(cwd, catalog, capturedTools);
|
|
10447
|
+
static async create(cwd, catalog, capturedTools, hostActiveTools) {
|
|
10448
|
+
return new _OmpToolsProvider(cwd, catalog, capturedTools, hostActiveTools);
|
|
10447
10449
|
}
|
|
10448
10450
|
name = "omp";
|
|
10449
10451
|
description = "OMP's built-in coding tools";
|
|
10450
10452
|
#allowedTools = readChildToolAllowlist();
|
|
10453
|
+
#hostActiveTools;
|
|
10451
10454
|
#tools;
|
|
10452
10455
|
#catalog;
|
|
10453
10456
|
#capturedTools;
|
|
10454
10457
|
#cwd;
|
|
10455
10458
|
#artifactPaths = /* @__PURE__ */ new Map();
|
|
10456
10459
|
#bashDefinitions = new BashCwdDefinitions();
|
|
10457
|
-
constructor(cwd, catalog, capturedTools) {
|
|
10460
|
+
constructor(cwd, catalog, capturedTools, hostActiveTools) {
|
|
10461
|
+
this.#hostActiveTools = hostActiveTools;
|
|
10458
10462
|
this.#cwd = cwd;
|
|
10459
10463
|
this.#tools = {
|
|
10460
10464
|
read: createNativeReadToolDefinition(cwd),
|
|
@@ -10479,7 +10483,7 @@ var OmpToolsProvider = class _OmpToolsProvider {
|
|
|
10479
10483
|
}
|
|
10480
10484
|
async describe(actionName, _context) {
|
|
10481
10485
|
const name = actionName;
|
|
10482
|
-
if (this
|
|
10486
|
+
if (this.denialMessage(name)) return void 0;
|
|
10483
10487
|
const tool = this.#tools[name];
|
|
10484
10488
|
if (!tool) return void 0;
|
|
10485
10489
|
const override = await this.#capturedTools?.describe(name, _context);
|
|
@@ -10506,9 +10510,17 @@ var OmpToolsProvider = class _OmpToolsProvider {
|
|
|
10506
10510
|
return actionName === "edit" ? normalizeEditArguments(record2, args.all === true, this.#cwd) : record2;
|
|
10507
10511
|
}
|
|
10508
10512
|
#assertAllowed(name) {
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10513
|
+
const message2 = this.denialMessage(name);
|
|
10514
|
+
if (message2) throw new Error(message2);
|
|
10515
|
+
}
|
|
10516
|
+
denialMessage(actionName) {
|
|
10517
|
+
const source = this.#denialSource(actionName);
|
|
10518
|
+
return source ? `OMP tool ${actionName} is not permitted by ${source}` : void 0;
|
|
10519
|
+
}
|
|
10520
|
+
#denialSource(name) {
|
|
10521
|
+
if (!OMP_CORE_TOOL_NAME_SET.has(name)) return void 0;
|
|
10522
|
+
if (this.#allowedTools && !this.#allowedTools.has(name)) return "this child's tool allowlist";
|
|
10523
|
+
return ompCoreToolDenied(name, this.#hostActiveTools?.()) ? "OMP's active tool selection" : void 0;
|
|
10512
10524
|
}
|
|
10513
10525
|
// Keep a cwd-bound definition for hosts without argument preparation, while newer hosts receive the
|
|
10514
10526
|
// same directory through ExtensionContext.cwd. `cwd` also stays in the
|
|
@@ -13900,6 +13912,7 @@ var FabricRuntimeState = class {
|
|
|
13900
13912
|
this.sessionApprovals = options.sessionApprovals ?? new FabricSessionApprovals();
|
|
13901
13913
|
this.#lcmContext = options.lcmContext;
|
|
13902
13914
|
this.#lcmRuntime = options.lcmRuntime;
|
|
13915
|
+
this.#hostActiveTools = options.hostActiveTools;
|
|
13903
13916
|
this.#paths = options.paths;
|
|
13904
13917
|
}
|
|
13905
13918
|
#registry;
|
|
@@ -13938,6 +13951,7 @@ var FabricRuntimeState = class {
|
|
|
13938
13951
|
sessionApprovals;
|
|
13939
13952
|
#lcmContext;
|
|
13940
13953
|
#lcmRuntime;
|
|
13954
|
+
#hostActiveTools;
|
|
13941
13955
|
#paths;
|
|
13942
13956
|
#widgetDismissedAt = 0;
|
|
13943
13957
|
#suppressResidentGuidanceSync = false;
|
|
@@ -14196,7 +14210,8 @@ var FabricRuntimeState = class {
|
|
|
14196
14210
|
create: () => OmpToolsProvider.create(
|
|
14197
14211
|
context.cwd,
|
|
14198
14212
|
this.capturedTools,
|
|
14199
|
-
capturedToolsProvider
|
|
14213
|
+
capturedToolsProvider,
|
|
14214
|
+
this.#hostActiveTools
|
|
14200
14215
|
)
|
|
14201
14216
|
}));
|
|
14202
14217
|
}
|