omp-fabric 1.25.11 → 1.25.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 +13 -0
- package/dist/chunks/{chunk-PIW2DEO2.js → chunk-JJ6DFMCK.js} +2 -2
- package/dist/chunks/{chunk-KLWNXXEI.js → chunk-LWHQR2JY.js} +9 -4
- package/dist/chunks/chunk-LWHQR2JY.js.map +7 -0
- package/dist/core/action-registry.d.ts +1 -0
- package/dist/core/action-registry.d.ts.map +1 -1
- package/dist/core/action-registry.js +1 -1
- package/dist/core/system-guidance.d.ts +1 -1
- package/dist/core/system-guidance.d.ts.map +1 -1
- package/dist/execution-service.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +11 -4
- package/dist/fabric-runtime-state.js.map +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +2 -2
- package/docs/architecture.md +1 -1
- package/package.json +1 -1
- package/skills/fabric-exec/SKILL.md +1 -1
- package/skills/fabric-exec/references/mcp.md +1 -1
- package/dist/chunks/chunk-KLWNXXEI.js.map +0 -7
- /package/dist/chunks/{chunk-PIW2DEO2.js.map → chunk-JJ6DFMCK.js.map} +0 -0
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EAEb,MAAM,2BAA2B,CAAC;AAsKnC,wBAA8B,SAAS,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EAEb,MAAM,2BAA2B,CAAC;AAsKnC,wBAA8B,SAAS,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAmzBxE;AAED,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
resolveFabricIdentity,
|
|
73
73
|
settleInPlacePrewalk,
|
|
74
74
|
streamedToolCallName
|
|
75
|
-
} from "./chunks/chunk-
|
|
75
|
+
} from "./chunks/chunk-JJ6DFMCK.js";
|
|
76
76
|
import "./chunks/chunk-7VIQNUPS.js";
|
|
77
77
|
import {
|
|
78
78
|
AgentTranscriptReader
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
NESTED_TOOL_CALL_ID_PREFIX,
|
|
87
87
|
getActiveRepairCompiler,
|
|
88
88
|
setActiveCompiledSurface
|
|
89
|
-
} from "./chunks/chunk-
|
|
89
|
+
} from "./chunks/chunk-LWHQR2JY.js";
|
|
90
90
|
import "./chunks/chunk-LMAVZN7J.js";
|
|
91
91
|
import "./chunks/chunk-7TB7NXSL.js";
|
|
92
92
|
import {
|
|
@@ -2201,7 +2201,7 @@ var fabricExecutionKernelGuidance = (fullCodeMode, deniedCoreTools = []) => [
|
|
|
2201
2201
|
...fullCodeMode && !deniedCoreTools.includes("wait") ? ["A program that needs that result awaits `omp.wait()`, which takes no arguments and returns the next finished job; never sleep or poll for it."] : [],
|
|
2202
2202
|
...fullCodeMode && deniedCoreTools.length > 0 ? [`OMP has these guest tools turned off, so ${deniedCoreTools.map((name) => `\`omp.${name}\``).join(", ")} ${deniedCoreTools.length === 1 ? "is" : "are"} unavailable and calling ${deniedCoreTools.length === 1 ? "it" : "them"} fails.`] : []
|
|
2203
2203
|
].join(" ");
|
|
2204
|
-
var defaultFabricExecutionGuidance = (fullCodeMode, deniedCoreTools = []) => fullCodeMode ? "Examples and returns: `omp.read('/x')`, `omp.grep('TODO','src')` / `omp.grep({pattern:'TODO', path:'src', ignoreCase:true, context:2})`, `omp.find({pattern:'*.ts', path:'src', limit:20})`" + (deniedCoreTools.includes("ls") ? "" : ", and `omp.ls('src')`") + " return strings; `omp.bash({cmd:'ls'})`, `omp.edit({path:'/x', old:'a', new:'b'})`, and `omp.write({path:'/y', text:'z'})` return `{ok, output, details}` (read `.output`); failed core calls reject, including shell tools on an ordinary nonzero exit; pass `settle: true` to `omp.bash` to get `{ ok: false, exitCode, output, error }` instead. Timeout, cancellation, approval, and security failures still reject.\n`tools` is discovery + generic calls only (`providers`/`catalog`/`list`/`search`/`describe`/`call`/`models`). Call
|
|
2204
|
+
var defaultFabricExecutionGuidance = (fullCodeMode, deniedCoreTools = [], hostMcpCaptured = true) => fullCodeMode ? "Examples and returns: `omp.read('/x')`, `omp.grep('TODO','src')` / `omp.grep({pattern:'TODO', path:'src', ignoreCase:true, context:2})`, `omp.find({pattern:'*.ts', path:'src', limit:20})`" + (deniedCoreTools.includes("ls") ? "" : ", and `omp.ls('src')`") + " return strings; `omp.bash({cmd:'ls'})`, `omp.edit({path:'/x', old:'a', new:'b'})`, and `omp.write({path:'/y', text:'z'})` return `{ok, output, details}` (read `.output`); failed core calls reject, including shell tools on an ordinary nonzero exit; pass `settle: true` to `omp.bash` to get `{ ok: false, exitCode, output, error }` instead. Timeout, cancellation, approval, and security failures still reject.\n`tools` is discovery + generic calls only (`providers`/`catalog`/`list`/`search`/`describe`/`call`/`models`). Call tools from MCP servers Fabric itself pools (`mcp.$servers()`) as `mcp.<sanitized_server>.<sanitized_tool>(args)`; " + (hostMcpCaptured ? "MCP servers OMP loaded are captured tools like any other, so call those and every other captured tool as `extensions.<tool>(args)`, e.g. `extensions.mcp__<server>_<tool>(args)`;" : "MCP tools OMP loaded in this session stay direct tool calls outside fabric_exec; call captured tools as `extensions.<tool>(args)`;") + " and stable providers as `memory.*`, `state.*`, `schema.*`, `compact.*`, or `judgment.*` (calibrated choice/bool/score answers about one state). Use `tools.call({ref,args})` for computed refs. Use `judge.filter(items, instructions)` or `judge.bool(state, instructions)` for fast semantic triage in one request without subagents (e.g. `await judge.filter(logs, 'fatal error')`). `omp` is the core tools; `omp.<key>` reads a named `payloads` value (not a tool)." : "Call known actions through `mcp.<sanitized_server>.<sanitized_tool>(args)`, `memory.*`, `state.*`, `schema.*`, `components.*`, `compact.*`, `codemap.*`, `judgment.*`, `agents.*`, or `mesh.*`; use `tools.catalog`/`search`/`describe`/`list` for discovery and `tools.call({ref,args})` for computed refs. Other surfaces are opt-in via user-loaded skills.";
|
|
2205
2205
|
var manifestNameCache = /* @__PURE__ */ new Map();
|
|
2206
2206
|
var isFilesystemSourcePath = (value) => path4.posix.isAbsolute(value) || path4.win32.isAbsolute(value);
|
|
2207
2207
|
var packageNameFromManifest = (startPath) => {
|
|
@@ -2250,8 +2250,10 @@ var extensionToolRosterGuidance = (tools, coreToolNames) => {
|
|
|
2250
2250
|
if (names) names.push(tool.name);
|
|
2251
2251
|
else groups.set(label, [tool.name]);
|
|
2252
2252
|
}
|
|
2253
|
+
const mcpExample = [...groups.entries()].find(([label]) => label.startsWith("mcp:"))?.[1][0];
|
|
2254
|
+
const header = "Registered extension tools are callable inside fabric_exec as `extensions.<name>(args)`" + (mcpExample ? ", including the OMP-loaded MCP tools listed as mcp:<server> (e.g. `extensions." + mcpExample + "(args)`, not mcp.<server>.<tool>)" : "") + "; run `tools.list` for full descriptions and schemas before re-implementing an effect with omp.bash.";
|
|
2253
2255
|
return [
|
|
2254
|
-
|
|
2256
|
+
header,
|
|
2255
2257
|
...[...groups.entries()].sort(([left], [right]) => left.localeCompare(right)).map(([label, names]) => "- " + label + ": " + names.join(", "))
|
|
2256
2258
|
].join("\n");
|
|
2257
2259
|
};
|
|
@@ -6093,7 +6095,11 @@ async function ompFabric(omp) {
|
|
|
6093
6095
|
target: process.env.OMP_FABRIC_PARENT_RUN ? "participant" : "main",
|
|
6094
6096
|
defaults: [{
|
|
6095
6097
|
slot: FABRIC_EXECUTION_GUIDANCE_SLOT,
|
|
6096
|
-
content: defaultFabricExecutionGuidance(
|
|
6098
|
+
content: defaultFabricExecutionGuidance(
|
|
6099
|
+
effectiveFullCodeMode,
|
|
6100
|
+
deniedCoreTools,
|
|
6101
|
+
capturedTools.list().some((entry) => entry.definition.mcpServerName !== void 0)
|
|
6102
|
+
)
|
|
6097
6103
|
}]
|
|
6098
6104
|
});
|
|
6099
6105
|
const overrideGuidance = effectiveFullCodeMode ? coreOverridePromptGuidance(capturedTools).trim() : void 0;
|