omp-fabric 1.25.12 → 1.25.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/core/system-guidance.d.ts +1 -1
- package/dist/core/system-guidance.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +2 -2
- package/docs/certification.md +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.25.14
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Host pins move from `18.4.10` to `18.5.0`; the declared peer floor stays `>=18.4.4`. 18.5.0's two breaking changes (`task.completionProbeMs` and the `SessionStorage` session-claim API) touch nothing Fabric uses. Typecheck, the full suite, and `certify:context` (31 checks) pass against the new pin, and `docs/certification.md` records the re-certified host.
|
|
8
|
+
|
|
9
|
+
## 1.25.13
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- 1.25.12 told every full-code session to call OMP-loaded MCP tools as `extensions.mcp__<server>_<tool>(args)`. That holds where OMP registers MCP through the extension runner, as in `omp -p` and the Paperclip adapter, but an interactive session loads its MCP servers after startup straight into the host tool registry, Fabric never captures them, and the call fails with `Unknown Fabric action` while the tools stay on the model's direct tool list. The guidance now follows the catalog: it names the `extensions.mcp__` path only when Fabric holds captured MCP tools, and otherwise says those tools stay direct calls outside `fabric_exec`.
|
|
14
|
+
|
|
3
15
|
## 1.25.12
|
|
4
16
|
|
|
5
17
|
### Fixed
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const fabricExecutionKernelGuidance: (fullCodeMode: boolean, deniedCoreTools?: readonly string[]) => string;
|
|
2
|
-
export declare const defaultFabricExecutionGuidance: (fullCodeMode: boolean, deniedCoreTools?: readonly string[]) => string;
|
|
2
|
+
export declare const defaultFabricExecutionGuidance: (fullCodeMode: boolean, deniedCoreTools?: readonly string[], hostMcpCaptured?: boolean) => string;
|
|
3
3
|
export interface ExtensionRosterToolSource {
|
|
4
4
|
name: string;
|
|
5
5
|
sourceInfo?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-guidance.d.ts","sourceRoot":"","sources":["../../src/core/system-guidance.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,6BAA6B,GACxC,cAAc,OAAO,EACrB,kBAAiB,SAAS,MAAM,EAAO,KACtC,MAqBU,CAAC;AAEd,eAAO,MAAM,8BAA8B,GACzC,cAAc,OAAO,EACrB,kBAAiB,SAAS,MAAM,EAAO,
|
|
1
|
+
{"version":3,"file":"system-guidance.d.ts","sourceRoot":"","sources":["../../src/core/system-guidance.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,6BAA6B,GACxC,cAAc,OAAO,EACrB,kBAAiB,SAAS,MAAM,EAAO,KACtC,MAqBU,CAAC;AAEd,eAAO,MAAM,8BAA8B,GACzC,cAAc,OAAO,EACrB,kBAAiB,SAAS,MAAM,EAAO,EACvC,yBAAsB,KACrB,MASmW,CAAC;AAGvW,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;IAChD,UAAU,CAAC,EAAE;QAAE,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACzC;AAwCD,eAAO,MAAM,2BAA2B,GACtC,OAAO,aAAa,CAAC,yBAAyB,CAAC,EAC/C,eAAe,WAAW,CAAC,MAAM,CAAC,KACjC,MAAM,GAAG,SAwCX,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,MAAM,KAAK,GAAG,OAAO,GAAG,SAAS,KAAG,MAAM,GAAG,SAQjF,CAAC"}
|
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
|
@@ -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 tools from MCP servers Fabric itself pools (`mcp.$servers()`) as `mcp.<sanitized_server>.<sanitized_tool>(args)`; 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)`; 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.";
|
|
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) => {
|
|
@@ -6095,7 +6095,11 @@ async function ompFabric(omp) {
|
|
|
6095
6095
|
target: process.env.OMP_FABRIC_PARENT_RUN ? "participant" : "main",
|
|
6096
6096
|
defaults: [{
|
|
6097
6097
|
slot: FABRIC_EXECUTION_GUIDANCE_SLOT,
|
|
6098
|
-
content: defaultFabricExecutionGuidance(
|
|
6098
|
+
content: defaultFabricExecutionGuidance(
|
|
6099
|
+
effectiveFullCodeMode,
|
|
6100
|
+
deniedCoreTools,
|
|
6101
|
+
capturedTools.list().some((entry) => entry.definition.mcpServerName !== void 0)
|
|
6102
|
+
)
|
|
6099
6103
|
}]
|
|
6100
6104
|
});
|
|
6101
6105
|
const overrideGuidance = effectiveFullCodeMode ? coreOverridePromptGuidance(capturedTools).trim() : void 0;
|