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.
- package/CHANGELOG.md +20 -0
- package/README.md +1 -0
- package/dist/agents/handoff.d.ts +1 -1
- package/dist/agents/handoff.d.ts.map +1 -1
- package/dist/agents/types.d.ts +1 -1
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/chunks/{chunk-TLSJXU4F.js → chunk-5YGOVBOZ.js} +179 -10
- package/dist/chunks/chunk-5YGOVBOZ.js.map +7 -0
- package/dist/chunks/{chunk-CVLO4GNW.js → chunk-EQNNENN6.js} +3 -3
- package/dist/chunks/{chunk-YPYVUGON.js → chunk-JOWMM3EX.js} +6 -6
- package/dist/chunks/chunk-JOWMM3EX.js.map +7 -0
- package/dist/chunks/{chunk-L2FNMIOW.js → chunk-QNRGTJGE.js} +2 -1
- package/dist/chunks/chunk-QNRGTJGE.js.map +7 -0
- package/dist/chunks/{chunk-WXZP5VWP.js → chunk-TQL7FKMG.js} +3 -3
- package/dist/chunks/{chunk-Z6HEQPXX.js → chunk-WGFHMECI.js} +47 -1
- package/dist/chunks/{chunk-Z6HEQPXX.js.map → chunk-WGFHMECI.js.map} +2 -2
- package/dist/chunks/{chunk-EZPERYEG.js → chunk-XRJYPNTI.js} +56 -2
- package/dist/chunks/chunk-XRJYPNTI.js.map +7 -0
- package/dist/chunks/{chunk-KIREBD2V.js → chunk-ZP3S74LW.js} +2 -1
- package/dist/codemap/budget.d.ts +3 -0
- package/dist/codemap/budget.d.ts.map +1 -0
- package/dist/codemap/cascade.d.ts +3 -0
- package/dist/codemap/cascade.d.ts.map +1 -0
- package/dist/codemap/symbols.d.ts +3 -0
- package/dist/codemap/symbols.d.ts.map +1 -0
- package/dist/codemap/types.d.ts +58 -0
- package/dist/codemap/types.d.ts.map +1 -0
- package/dist/compaction/hook.js +1 -1
- package/dist/config.d.ts +11 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/core/system-guidance.d.ts.map +1 -1
- package/dist/fabric-runtime-state.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +1605 -344
- package/dist/fabric-runtime-state.js.map +4 -4
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/prewalk/handoff.d.ts +2 -1
- package/dist/prewalk/handoff.d.ts.map +1 -1
- package/dist/prewalk/retirement.d.ts +35 -0
- package/dist/prewalk/retirement.d.ts.map +1 -0
- package/dist/providers/codemap-provider.d.ts +14 -0
- package/dist/providers/codemap-provider.d.ts.map +1 -0
- package/dist/residency/host.js +5 -5
- package/dist/residency/omp-entry.js +5 -5
- package/dist/runtime/core-override-guest-types.js +1 -1
- package/dist/runtime/guest-types.d.ts +1 -1
- package/dist/runtime/guest-types.d.ts.map +1 -1
- package/dist/runtime/guest-types.js +1 -1
- package/dist/runtime/node-process-runtime.js +1 -1
- package/dist/runtime/quickjs-runtime.d.ts +1 -1
- package/dist/runtime/quickjs-runtime.d.ts.map +1 -1
- package/dist/runtime/quickjs-runtime.js +1 -1
- package/dist/ui/settings.d.ts.map +1 -1
- package/dist/ui/settings.js +90 -1
- package/dist/ui/settings.js.map +2 -2
- package/docs/architecture.md +1 -1
- package/docs/codemap.md +89 -0
- package/docs/configuration.md +1 -1
- package/package.json +4 -1
- package/dist/chunks/chunk-EZPERYEG.js.map +0 -7
- package/dist/chunks/chunk-L2FNMIOW.js.map +0 -7
- package/dist/chunks/chunk-TLSJXU4F.js.map +0 -7
- package/dist/chunks/chunk-YPYVUGON.js.map +0 -7
- /package/dist/chunks/{chunk-CVLO4GNW.js.map → chunk-EQNNENN6.js.map} +0 -0
- /package/dist/chunks/{chunk-WXZP5VWP.js.map → chunk-TQL7FKMG.js.map} +0 -0
- /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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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(), {
|