omp-fabric 1.25.35 → 1.26.1

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/README.md +1 -0
  3. package/dist/chunks/{chunk-UKB5RJDP.js → chunk-BEFZRH76.js} +61 -1
  4. package/dist/chunks/{chunk-UKB5RJDP.js.map → chunk-BEFZRH76.js.map} +2 -2
  5. package/dist/chunks/{chunk-2C5YN36Y.js → chunk-GFUWAUL2.js} +15 -1
  6. package/dist/chunks/chunk-GFUWAUL2.js.map +7 -0
  7. package/dist/chunks/{chunk-JWC7B67Z.js → chunk-GGQ5MHXB.js} +62 -1
  8. package/dist/chunks/chunk-GGQ5MHXB.js.map +7 -0
  9. package/dist/chunks/{chunk-I2GBVR67.js → chunk-YHFQDI36.js} +3 -3
  10. package/dist/chunks/{chunk-53ZZTYHQ.js → chunk-YI4HU67V.js} +2 -2
  11. package/dist/config.d.ts +11 -0
  12. package/dist/config.d.ts.map +1 -1
  13. package/dist/core/system-guidance.d.ts.map +1 -1
  14. package/dist/fabric-runtime-state.d.ts.map +1 -1
  15. package/dist/fabric-runtime-state.js +804 -136
  16. package/dist/fabric-runtime-state.js.map +4 -4
  17. package/dist/index.js +3 -3
  18. package/dist/index.js.map +2 -2
  19. package/dist/providers/image-provider.d.ts +46 -0
  20. package/dist/providers/image-provider.d.ts.map +1 -0
  21. package/dist/residency/host.js +3 -3
  22. package/dist/residency/omp-entry.js +3 -3
  23. package/dist/runtime/core-override-guest-types.js +1 -1
  24. package/dist/runtime/guest-types.d.ts +1 -1
  25. package/dist/runtime/guest-types.d.ts.map +1 -1
  26. package/dist/runtime/guest-types.js +1 -1
  27. package/dist/runtime/node-process-runtime.js +1 -1
  28. package/dist/runtime/quickjs-runtime.d.ts +1 -1
  29. package/dist/runtime/quickjs-runtime.d.ts.map +1 -1
  30. package/dist/runtime/quickjs-runtime.js +1 -1
  31. package/dist/ui/settings.d.ts +1 -1
  32. package/dist/ui/settings.d.ts.map +1 -1
  33. package/dist/ui/settings.js +126 -11
  34. package/dist/ui/settings.js.map +3 -3
  35. package/docs/architecture.md +1 -1
  36. package/docs/certification.md +1 -1
  37. package/docs/configuration.md +13 -1
  38. package/docs/image.md +79 -0
  39. package/package.json +1 -1
  40. package/dist/chunks/chunk-2C5YN36Y.js.map +0 -7
  41. package/dist/chunks/chunk-JWC7B67Z.js.map +0 -7
  42. /package/dist/chunks/{chunk-I2GBVR67.js.map → chunk-YHFQDI36.js.map} +0 -0
  43. /package/dist/chunks/{chunk-53ZZTYHQ.js.map → chunk-YI4HU67V.js.map} +0 -0
package/dist/index.js CHANGED
@@ -82,7 +82,7 @@ import "./chunks/chunk-DLXPTBPL.js";
82
82
  import {
83
83
  GUEST_TYPE_DECLARATIONS,
84
84
  OMP_CORE_COMPATIBILITY_ARGUMENT_TYPE_NAMES
85
- } from "./chunks/chunk-UKB5RJDP.js";
85
+ } from "./chunks/chunk-BEFZRH76.js";
86
86
  import {
87
87
  NESTED_TOOL_CALL_ID_PREFIX,
88
88
  getActiveRepairCompiler,
@@ -204,7 +204,7 @@ import {
204
204
  modelOutputBudget,
205
205
  resolveAgentDir,
206
206
  saveFabricConfig
207
- } from "./chunks/chunk-JWC7B67Z.js";
207
+ } from "./chunks/chunk-GGQ5MHXB.js";
208
208
  import {
209
209
  FABRIC_ACTOR_OMP_HOST_EVENTS
210
210
  } from "./chunks/chunk-3LI7YO4M.js";
@@ -2250,7 +2250,7 @@ var fabricExecutionKernelGuidance = (fullCodeMode, deniedCoreTools = []) => [
2250
2250
  ...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. With no job running it rejects instead of returning."] : [],
2251
2251
  ...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.`] : []
2252
2252
  ].join(" ");
2253
- 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.";
2253
+ 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.*`, `judgment.*` (calibrated choice/bool/score answers about one state), or `image.*` (`image.generate(prompt, {aspectRatio, size, saveTo})` and `image.edit(prompt, [paths])` walk the configured model chain and attach the image to the result). 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.*`, `image.*`, `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.";
2254
2254
  var manifestNameCache = /* @__PURE__ */ new Map();
2255
2255
  var isFilesystemSourcePath = (value) => path4.posix.isAbsolute(value) || path4.win32.isAbsolute(value);
2256
2256
  var packageNameFromManifest = (startPath) => {