omp-fabric 1.25.34 → 1.26.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +1 -0
  3. package/dist/chunks/{chunk-HOKJTRI4.js → chunk-3OQKG7H6.js} +3 -3
  4. package/dist/chunks/{chunk-JWC7B67Z.js → chunk-66H3QSMR.js} +62 -1
  5. package/dist/chunks/chunk-66H3QSMR.js.map +7 -0
  6. package/dist/chunks/{chunk-UKB5RJDP.js → chunk-BEFZRH76.js} +61 -1
  7. package/dist/chunks/{chunk-UKB5RJDP.js.map → chunk-BEFZRH76.js.map} +2 -2
  8. package/dist/chunks/{chunk-TRM76YFF.js → chunk-CEDP5WMR.js} +11 -3
  9. package/dist/chunks/chunk-CEDP5WMR.js.map +7 -0
  10. package/dist/chunks/{chunk-2C5YN36Y.js → chunk-GFUWAUL2.js} +15 -1
  11. package/dist/chunks/chunk-GFUWAUL2.js.map +7 -0
  12. package/dist/chunks/{chunk-5CW2S6EB.js → chunk-Q2LRXHPR.js} +2 -2
  13. package/dist/chunks/{chunk-3FCNSDDD.js → chunk-TGIT2F2G.js} +3 -3
  14. package/dist/chunks/{chunk-OLFP7R5J.js → chunk-Z3KAY6S7.js} +2 -2
  15. package/dist/compaction/hook.js +1 -1
  16. package/dist/config.d.ts +11 -0
  17. package/dist/config.d.ts.map +1 -1
  18. package/dist/core/session-context.d.ts.map +1 -1
  19. package/dist/core/system-guidance.d.ts.map +1 -1
  20. package/dist/fabric-runtime-state.d.ts.map +1 -1
  21. package/dist/fabric-runtime-state.js +797 -139
  22. package/dist/fabric-runtime-state.js.map +4 -4
  23. package/dist/index.js +6 -6
  24. package/dist/index.js.map +2 -2
  25. package/dist/providers/image-provider.d.ts +37 -0
  26. package/dist/providers/image-provider.d.ts.map +1 -0
  27. package/dist/residency/host.js +5 -5
  28. package/dist/residency/omp-entry.js +5 -5
  29. package/dist/runtime/core-override-guest-types.js +1 -1
  30. package/dist/runtime/guest-types.d.ts +1 -1
  31. package/dist/runtime/guest-types.d.ts.map +1 -1
  32. package/dist/runtime/guest-types.js +1 -1
  33. package/dist/runtime/node-process-runtime.js +1 -1
  34. package/dist/runtime/quickjs-runtime.d.ts +1 -1
  35. package/dist/runtime/quickjs-runtime.d.ts.map +1 -1
  36. package/dist/runtime/quickjs-runtime.js +1 -1
  37. package/dist/ui/settings.d.ts +1 -1
  38. package/dist/ui/settings.d.ts.map +1 -1
  39. package/dist/ui/settings.js +126 -11
  40. package/dist/ui/settings.js.map +3 -3
  41. package/docs/architecture.md +1 -1
  42. package/docs/certification.md +1 -1
  43. package/docs/configuration.md +13 -1
  44. package/docs/image.md +79 -0
  45. package/package.json +8 -8
  46. package/dist/chunks/chunk-2C5YN36Y.js.map +0 -7
  47. package/dist/chunks/chunk-JWC7B67Z.js.map +0 -7
  48. package/dist/chunks/chunk-TRM76YFF.js.map +0 -7
  49. /package/dist/chunks/{chunk-HOKJTRI4.js.map → chunk-3OQKG7H6.js.map} +0 -0
  50. /package/dist/chunks/{chunk-5CW2S6EB.js.map → chunk-Q2LRXHPR.js.map} +0 -0
  51. /package/dist/chunks/{chunk-3FCNSDDD.js.map → chunk-TGIT2F2G.js.map} +0 -0
  52. /package/dist/chunks/{chunk-OLFP7R5J.js.map → chunk-Z3KAY6S7.js.map} +0 -0
package/dist/index.js CHANGED
@@ -72,7 +72,7 @@ import {
72
72
  resolveFabricIdentity,
73
73
  settleInPlacePrewalk,
74
74
  streamedToolCallName
75
- } from "./chunks/chunk-OLFP7R5J.js";
75
+ } from "./chunks/chunk-Z3KAY6S7.js";
76
76
  import "./chunks/chunk-7VIQNUPS.js";
77
77
  import {
78
78
  AgentTranscriptReader,
@@ -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,
@@ -194,7 +194,7 @@ import {
194
194
  import {
195
195
  awaitPeerSettle,
196
196
  buildPeerCards
197
- } from "./chunks/chunk-5CW2S6EB.js";
197
+ } from "./chunks/chunk-Q2LRXHPR.js";
198
198
  import {
199
199
  DEFAULT_FABRIC_CONFIG,
200
200
  boundModelOutput,
@@ -204,7 +204,7 @@ import {
204
204
  modelOutputBudget,
205
205
  resolveAgentDir,
206
206
  saveFabricConfig
207
- } from "./chunks/chunk-JWC7B67Z.js";
207
+ } from "./chunks/chunk-66H3QSMR.js";
208
208
  import {
209
209
  FABRIC_ACTOR_OMP_HOST_EVENTS
210
210
  } from "./chunks/chunk-3LI7YO4M.js";
@@ -235,7 +235,7 @@ import {
235
235
  fabricExecTitleHintCached,
236
236
  normalizeRunDisplay,
237
237
  registerCompactionHook
238
- } from "./chunks/chunk-TRM76YFF.js";
238
+ } from "./chunks/chunk-CEDP5WMR.js";
239
239
  import {
240
240
  fabricWriteBindings
241
241
  } from "./chunks/chunk-3J7BKUNG.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) => {