omp-fabric 1.1.0 → 1.2.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 (66) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +1 -0
  3. package/dist/agents/handoff.d.ts +1 -1
  4. package/dist/agents/handoff.d.ts.map +1 -1
  5. package/dist/agents/types.d.ts +1 -1
  6. package/dist/agents/types.d.ts.map +1 -1
  7. package/dist/chunks/{chunk-TLSJXU4F.js → chunk-5YGOVBOZ.js} +179 -10
  8. package/dist/chunks/chunk-5YGOVBOZ.js.map +7 -0
  9. package/dist/chunks/{chunk-CVLO4GNW.js → chunk-EQNNENN6.js} +3 -3
  10. package/dist/chunks/{chunk-YPYVUGON.js → chunk-JOWMM3EX.js} +6 -6
  11. package/dist/chunks/chunk-JOWMM3EX.js.map +7 -0
  12. package/dist/chunks/{chunk-L2FNMIOW.js → chunk-QNRGTJGE.js} +2 -1
  13. package/dist/chunks/chunk-QNRGTJGE.js.map +7 -0
  14. package/dist/chunks/{chunk-WXZP5VWP.js → chunk-TQL7FKMG.js} +3 -3
  15. package/dist/chunks/{chunk-Z6HEQPXX.js → chunk-WGFHMECI.js} +47 -1
  16. package/dist/chunks/{chunk-Z6HEQPXX.js.map → chunk-WGFHMECI.js.map} +2 -2
  17. package/dist/chunks/{chunk-EZPERYEG.js → chunk-XRJYPNTI.js} +56 -2
  18. package/dist/chunks/chunk-XRJYPNTI.js.map +7 -0
  19. package/dist/chunks/{chunk-KIREBD2V.js → chunk-ZP3S74LW.js} +2 -1
  20. package/dist/codemap/budget.d.ts +3 -0
  21. package/dist/codemap/budget.d.ts.map +1 -0
  22. package/dist/codemap/cascade.d.ts +3 -0
  23. package/dist/codemap/cascade.d.ts.map +1 -0
  24. package/dist/codemap/symbols.d.ts +3 -0
  25. package/dist/codemap/symbols.d.ts.map +1 -0
  26. package/dist/codemap/types.d.ts +58 -0
  27. package/dist/codemap/types.d.ts.map +1 -0
  28. package/dist/compaction/hook.js +1 -1
  29. package/dist/config.d.ts +11 -0
  30. package/dist/config.d.ts.map +1 -1
  31. package/dist/core/system-guidance.d.ts.map +1 -1
  32. package/dist/fabric-runtime-state.d.ts.map +1 -1
  33. package/dist/fabric-runtime-state.js +1605 -344
  34. package/dist/fabric-runtime-state.js.map +4 -4
  35. package/dist/index.js +7 -7
  36. package/dist/index.js.map +1 -1
  37. package/dist/prewalk/handoff.d.ts +2 -1
  38. package/dist/prewalk/handoff.d.ts.map +1 -1
  39. package/dist/prewalk/retirement.d.ts +35 -0
  40. package/dist/prewalk/retirement.d.ts.map +1 -0
  41. package/dist/providers/codemap-provider.d.ts +14 -0
  42. package/dist/providers/codemap-provider.d.ts.map +1 -0
  43. package/dist/residency/host.js +5 -5
  44. package/dist/residency/omp-entry.js +5 -5
  45. package/dist/runtime/core-override-guest-types.js +1 -1
  46. package/dist/runtime/guest-types.d.ts +1 -1
  47. package/dist/runtime/guest-types.d.ts.map +1 -1
  48. package/dist/runtime/guest-types.js +1 -1
  49. package/dist/runtime/node-process-runtime.js +1 -1
  50. package/dist/runtime/quickjs-runtime.d.ts +1 -1
  51. package/dist/runtime/quickjs-runtime.d.ts.map +1 -1
  52. package/dist/runtime/quickjs-runtime.js +1 -1
  53. package/dist/ui/settings.d.ts.map +1 -1
  54. package/dist/ui/settings.js +90 -1
  55. package/dist/ui/settings.js.map +2 -2
  56. package/docs/architecture.md +1 -1
  57. package/docs/codemap.md +89 -0
  58. package/docs/configuration.md +1 -1
  59. package/package.json +4 -1
  60. package/dist/chunks/chunk-EZPERYEG.js.map +0 -7
  61. package/dist/chunks/chunk-L2FNMIOW.js.map +0 -7
  62. package/dist/chunks/chunk-TLSJXU4F.js.map +0 -7
  63. package/dist/chunks/chunk-YPYVUGON.js.map +0 -7
  64. /package/dist/chunks/{chunk-CVLO4GNW.js.map → chunk-EQNNENN6.js.map} +0 -0
  65. /package/dist/chunks/{chunk-WXZP5VWP.js.map → chunk-TQL7FKMG.js.map} +0 -0
  66. /package/dist/chunks/{chunk-KIREBD2V.js.map → chunk-ZP3S74LW.js.map} +0 -0
package/dist/index.js CHANGED
@@ -67,7 +67,7 @@ import {
67
67
  resolveFabricIdentity,
68
68
  settleInPlacePrewalk,
69
69
  streamedToolCallName
70
- } from "./chunks/chunk-TLSJXU4F.js";
70
+ } from "./chunks/chunk-5YGOVBOZ.js";
71
71
  import "./chunks/chunk-7VIQNUPS.js";
72
72
  import {
73
73
  AgentTranscriptReader
@@ -76,7 +76,7 @@ import "./chunks/chunk-DLXPTBPL.js";
76
76
  import {
77
77
  GUEST_TYPE_DECLARATIONS,
78
78
  OMP_CORE_COMPATIBILITY_ARGUMENT_TYPE_NAMES
79
- } from "./chunks/chunk-Z6HEQPXX.js";
79
+ } from "./chunks/chunk-WGFHMECI.js";
80
80
  import {
81
81
  NESTED_TOOL_CALL_ID_PREFIX,
82
82
  getActiveRepairCompiler,
@@ -188,7 +188,7 @@ import {
188
188
  import {
189
189
  awaitPeerSettle,
190
190
  buildPeerCards
191
- } from "./chunks/chunk-YPYVUGON.js";
191
+ } from "./chunks/chunk-JOWMM3EX.js";
192
192
  import {
193
193
  DEFAULT_FABRIC_CONFIG,
194
194
  effectiveToolCaptureConfig,
@@ -196,7 +196,7 @@ import {
196
196
  loadFabricConfigForScope,
197
197
  resolveAgentDir,
198
198
  saveFabricConfig
199
- } from "./chunks/chunk-EZPERYEG.js";
199
+ } from "./chunks/chunk-XRJYPNTI.js";
200
200
  import {
201
201
  FABRIC_ACTOR_OMP_HOST_EVENTS
202
202
  } from "./chunks/chunk-UOSJZXJV.js";
@@ -221,7 +221,7 @@ import {
221
221
  fabricExecTitleHintCached,
222
222
  normalizeRunDisplay,
223
223
  registerCompactionHook
224
- } from "./chunks/chunk-KIREBD2V.js";
224
+ } from "./chunks/chunk-ZP3S74LW.js";
225
225
  import {
226
226
  fabricWriteBindings
227
227
  } from "./chunks/chunk-3J7BKUNG.js";
@@ -2117,7 +2117,7 @@ var fabricExecutionKernelGuidance = (fullCodeMode) => [
2117
2117
  // caches stay warm.
2118
2118
  `Read every file the user provides (images, screenshots, code, text) with the ${fullCodeMode ? "`omp.read`" : "`read`"} tool before responding \u2014 never assume its contents.`
2119
2119
  ].join(" ");
2120
- var defaultFabricExecutionGuidance = (fullCodeMode) => 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})`, 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 known MCP tools as `mcp.<sanitized_server>.<sanitized_tool>(args)`, captured tools as `extensions.<tool>(args)`, and stable providers as `memory.*`, `state.*`, `schema.*`, or `compact.*`. Use `tools.call({ref,args})` for computed refs. `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.*`, `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.";
2120
+ var defaultFabricExecutionGuidance = (fullCodeMode) => 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})`, 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 known MCP tools as `mcp.<sanitized_server>.<sanitized_tool>(args)`, captured tools as `extensions.<tool>(args)`, and stable providers as `memory.*`, `state.*`, `schema.*`, or `compact.*`. Use `tools.call({ref,args})` for computed refs. `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.*`, `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.";
2121
2121
  var manifestNameCache = /* @__PURE__ */ new Map();
2122
2122
  var packageNameFromManifest = (startPath) => {
2123
2123
  if (!startPath) return void 0;
@@ -2827,7 +2827,7 @@ var createFabricExecTool = (state, codePreviewSettings, pendingHandoffs, decorat
2827
2827
  // Keep nested payloads bounded and let prepareArguments normalize provider input.
2828
2828
  parameters: Type.Object({
2829
2829
  code: Type.String({
2830
- description: "TypeScript function body. Top-level await and return are supported. Globals include `tools`, `mcp`, `memory`, `state`, `schema`, `compact`, `agents`, `mesh`, `print`, and `omp`; full-code mode adds `omp` and `extensions`. Payloads contains only the exact keys supplied by this call."
2830
+ description: "TypeScript function body. Top-level await and return are supported. Globals include `tools`, `mcp`, `memory`, `state`, `schema`, `compact`, `codemap`, `agents`, `mesh`, `print`, and `omp`; full-code mode adds `omp` and `extensions`. Payloads contains only the exact keys supplied by this call."
2831
2831
  }),
2832
2832
  payloads: Type.Optional(
2833
2833
  Type.Record(Type.String(), Type.String(), {