omp-fabric 1.25.7 → 1.25.8
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 +14 -0
- package/README.md +1 -1
- package/dist/audit/projection.d.ts.map +1 -1
- package/dist/chunks/{chunk-HAH64YUG.js → chunk-2C5YN36Y.js} +2 -2
- package/dist/chunks/chunk-2C5YN36Y.js.map +7 -0
- package/dist/chunks/{chunk-3BS4RMF4.js → chunk-AZBJNZS4.js} +2 -2
- package/dist/chunks/{chunk-EZRC24CX.js → chunk-BMSAIMFB.js} +2 -2
- package/dist/chunks/{chunk-63VIZJGS.js → chunk-BWLZ6VDQ.js} +2 -2
- package/dist/chunks/{chunk-BQG4LFAC.js → chunk-D55BFSFK.js} +2 -2
- package/dist/chunks/{chunk-WUPYPFAC.js → chunk-E3KTE736.js} +3 -3
- package/dist/chunks/{chunk-JBKYNJFN.js → chunk-FL4A542C.js} +2 -1
- package/dist/chunks/chunk-FL4A542C.js.map +7 -0
- package/dist/chunks/{chunk-REHGQCXU.js → chunk-J2BDKPO4.js} +4 -4
- package/dist/chunks/{chunk-3KORI7FQ.js → chunk-KLWNXXEI.js} +2 -2
- package/dist/chunks/{chunk-XLINRLLP.js → chunk-PIW2DEO2.js} +4 -4
- package/dist/chunks/{chunk-H3KRHDDF.js → chunk-QJKOPPW2.js} +2 -2
- package/dist/chunks/{chunk-MR5C7U5H.js → chunk-UKB5RJDP.js} +3 -3
- package/dist/chunks/chunk-UKB5RJDP.js.map +7 -0
- package/dist/chunks/{chunk-GPJV2FSP.js → chunk-WX6C7N3W.js} +2 -2
- package/dist/chunks/{chunk-ABBGHQVX.js → chunk-YAI5SCIE.js} +2 -2
- package/dist/chunks/{chunk-G3ELO3QC.js → chunk-Z6TTRT6Q.js} +2 -2
- package/dist/compaction/hook.js +3 -3
- package/dist/compaction/lcm-runtime.js +4 -4
- package/dist/core/action-registry.js +2 -2
- package/dist/core/system-guidance.d.ts.map +1 -1
- package/dist/entropy/index.js +5 -5
- package/dist/fabric-runtime-state.js +63 -27
- package/dist/fabric-runtime-state.js.map +2 -2
- package/dist/host-compatibility.d.ts +1 -1
- package/dist/index.js +17 -14
- package/dist/index.js.map +2 -2
- package/dist/memory/discovery.js +4 -4
- package/dist/memory/normalize.js +3 -3
- package/dist/memory/search.js +4 -4
- package/dist/providers/memory-provider.js +6 -6
- package/dist/providers/omp-tools-provider.d.ts.map +1 -1
- package/dist/residency/host.js +6 -6
- package/dist/residency/omp-entry.js +6 -6
- package/dist/runtime/core-override-guest-types.js +1 -1
- package/dist/runtime/guest-types.d.ts +2 -2
- 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/speculation/guest-args.d.ts.map +1 -1
- package/dist/speculation/scanner.js +2 -1
- package/dist/speculation/scanner.js.map +2 -2
- package/docs/audit-trace.md +1 -1
- package/docs/configuration.md +1 -1
- package/package.json +4 -4
- package/skills/fabric-exec/SKILL.md +4 -4
- package/dist/chunks/chunk-HAH64YUG.js.map +0 -7
- package/dist/chunks/chunk-JBKYNJFN.js.map +0 -7
- package/dist/chunks/chunk-MR5C7U5H.js.map +0 -7
- /package/dist/chunks/{chunk-3BS4RMF4.js.map → chunk-AZBJNZS4.js.map} +0 -0
- /package/dist/chunks/{chunk-EZRC24CX.js.map → chunk-BMSAIMFB.js.map} +0 -0
- /package/dist/chunks/{chunk-63VIZJGS.js.map → chunk-BWLZ6VDQ.js.map} +0 -0
- /package/dist/chunks/{chunk-BQG4LFAC.js.map → chunk-D55BFSFK.js.map} +0 -0
- /package/dist/chunks/{chunk-WUPYPFAC.js.map → chunk-E3KTE736.js.map} +0 -0
- /package/dist/chunks/{chunk-REHGQCXU.js.map → chunk-J2BDKPO4.js.map} +0 -0
- /package/dist/chunks/{chunk-3KORI7FQ.js.map → chunk-KLWNXXEI.js.map} +0 -0
- /package/dist/chunks/{chunk-XLINRLLP.js.map → chunk-PIW2DEO2.js.map} +0 -0
- /package/dist/chunks/{chunk-H3KRHDDF.js.map → chunk-QJKOPPW2.js.map} +0 -0
- /package/dist/chunks/{chunk-GPJV2FSP.js.map → chunk-WX6C7N3W.js.map} +0 -0
- /package/dist/chunks/{chunk-ABBGHQVX.js.map → chunk-YAI5SCIE.js.map} +0 -0
- /package/dist/chunks/{chunk-G3ELO3QC.js.map → chunk-Z6TTRT6Q.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const MINIMUM_OMP_HOST_VERSION = "18.
|
|
1
|
+
export declare const MINIMUM_OMP_HOST_VERSION = "18.4.4";
|
|
2
2
|
export declare const compareVersions: (left: string, right: string) => number | undefined;
|
|
3
3
|
export declare const detectOmpHostVersion: (cliPath?: string | undefined) => string | undefined;
|
|
4
4
|
export interface HostVersionWitnesses {
|
package/dist/index.js
CHANGED
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
resolveFabricIdentity,
|
|
73
73
|
settleInPlacePrewalk,
|
|
74
74
|
streamedToolCallName
|
|
75
|
-
} from "./chunks/chunk-
|
|
75
|
+
} from "./chunks/chunk-PIW2DEO2.js";
|
|
76
76
|
import "./chunks/chunk-7VIQNUPS.js";
|
|
77
77
|
import {
|
|
78
78
|
AgentTranscriptReader
|
|
@@ -81,12 +81,12 @@ import "./chunks/chunk-DLXPTBPL.js";
|
|
|
81
81
|
import {
|
|
82
82
|
GUEST_TYPE_DECLARATIONS,
|
|
83
83
|
OMP_CORE_COMPATIBILITY_ARGUMENT_TYPE_NAMES
|
|
84
|
-
} from "./chunks/chunk-
|
|
84
|
+
} from "./chunks/chunk-UKB5RJDP.js";
|
|
85
85
|
import {
|
|
86
86
|
NESTED_TOOL_CALL_ID_PREFIX,
|
|
87
87
|
getActiveRepairCompiler,
|
|
88
88
|
setActiveCompiledSurface
|
|
89
|
-
} from "./chunks/chunk-
|
|
89
|
+
} from "./chunks/chunk-KLWNXXEI.js";
|
|
90
90
|
import "./chunks/chunk-LMAVZN7J.js";
|
|
91
91
|
import "./chunks/chunk-7TB7NXSL.js";
|
|
92
92
|
import {
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
staticFreedomFromSchema,
|
|
152
152
|
surfaceFreedomReport,
|
|
153
153
|
trendFromScores
|
|
154
|
-
} from "./chunks/chunk-
|
|
154
|
+
} from "./chunks/chunk-E3KTE736.js";
|
|
155
155
|
import {
|
|
156
156
|
compiledSurfaceDirectory,
|
|
157
157
|
loadCompiledSurface,
|
|
@@ -173,8 +173,8 @@ import {
|
|
|
173
173
|
replaySuccessfulCallsAsync,
|
|
174
174
|
schemaDigest
|
|
175
175
|
} from "./chunks/chunk-4A4MVZQW.js";
|
|
176
|
-
import "./chunks/chunk-
|
|
177
|
-
import "./chunks/chunk-
|
|
176
|
+
import "./chunks/chunk-WX6C7N3W.js";
|
|
177
|
+
import "./chunks/chunk-Z6TTRT6Q.js";
|
|
178
178
|
import {
|
|
179
179
|
FABRIC_COMPONENT_DISCOVER_EVENT,
|
|
180
180
|
FABRIC_COMPONENT_REGISTER_EVENT,
|
|
@@ -193,7 +193,7 @@ import {
|
|
|
193
193
|
import {
|
|
194
194
|
awaitPeerSettle,
|
|
195
195
|
buildPeerCards
|
|
196
|
-
} from "./chunks/chunk-
|
|
196
|
+
} from "./chunks/chunk-QJKOPPW2.js";
|
|
197
197
|
import {
|
|
198
198
|
DEFAULT_FABRIC_CONFIG,
|
|
199
199
|
boundModelOutput,
|
|
@@ -234,13 +234,13 @@ import {
|
|
|
234
234
|
fabricExecTitleHintCached,
|
|
235
235
|
normalizeRunDisplay,
|
|
236
236
|
registerCompactionHook
|
|
237
|
-
} from "./chunks/chunk-
|
|
237
|
+
} from "./chunks/chunk-D55BFSFK.js";
|
|
238
238
|
import {
|
|
239
239
|
fabricWriteBindings
|
|
240
240
|
} from "./chunks/chunk-3J7BKUNG.js";
|
|
241
241
|
import "./chunks/chunk-QSRTEINF.js";
|
|
242
242
|
import "./chunks/chunk-UAP6IQIR.js";
|
|
243
|
-
import "./chunks/chunk-
|
|
243
|
+
import "./chunks/chunk-AZBJNZS4.js";
|
|
244
244
|
import {
|
|
245
245
|
FABRIC_EXECUTION_TRACE_KIND,
|
|
246
246
|
FABRIC_EXECUTION_TRACE_MAX_BYTES,
|
|
@@ -253,7 +253,7 @@ import {
|
|
|
253
253
|
projectFabricAuditArgs,
|
|
254
254
|
projectFabricAuditResult,
|
|
255
255
|
readFabricExecutionTraceV1
|
|
256
|
-
} from "./chunks/chunk-
|
|
256
|
+
} from "./chunks/chunk-FL4A542C.js";
|
|
257
257
|
import {
|
|
258
258
|
FABRIC_OWNED_HOST_TOOLS,
|
|
259
259
|
OMP_CORE_TOOL_NAMES,
|
|
@@ -2203,6 +2203,7 @@ var fabricExecutionKernelGuidance = (fullCodeMode, deniedCoreTools = []) => [
|
|
|
2203
2203
|
].join(" ");
|
|
2204
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 known MCP tools as `mcp.<sanitized_server>.<sanitized_tool>(args)`, 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
|
+
var isFilesystemSourcePath = (value) => path4.posix.isAbsolute(value) || path4.win32.isAbsolute(value);
|
|
2206
2207
|
var packageNameFromManifest = (startPath) => {
|
|
2207
2208
|
if (!startPath) return void 0;
|
|
2208
2209
|
let directory = path4.dirname(path4.resolve(startPath));
|
|
@@ -2230,10 +2231,12 @@ var extensionToolRosterGuidance = (tools, coreToolNames) => {
|
|
|
2230
2231
|
const namespaceLabel = (tool) => {
|
|
2231
2232
|
const source = tool.sourceInfo?.source?.trim();
|
|
2232
2233
|
if (source?.startsWith("npm:")) return source.slice("npm:".length) || source;
|
|
2233
|
-
const
|
|
2234
|
+
const rawPath = tool.sourceInfo?.path?.trim();
|
|
2235
|
+
const filePath = rawPath && isFilesystemSourcePath(rawPath) ? rawPath : void 0;
|
|
2236
|
+
const manifestName = packageNameFromManifest(filePath) ?? packageNameFromManifest(source && /[\\/]/.test(source) ? source : void 0);
|
|
2234
2237
|
if (manifestName) return manifestName;
|
|
2235
2238
|
if (source && !/[\\/]/.test(source)) return source;
|
|
2236
|
-
const parts = (
|
|
2239
|
+
const parts = (filePath ?? source ?? "").split(/[\\/]/).filter(Boolean);
|
|
2237
2240
|
const base = parts.at(-1)?.trim() ?? "";
|
|
2238
2241
|
if (/^index\./i.test(base)) return parts.at(-2)?.trim() || base;
|
|
2239
2242
|
return base || "extensions";
|
|
@@ -4253,7 +4256,7 @@ var classifyToolResult = (input) => {
|
|
|
4253
4256
|
// src/host-compatibility.ts
|
|
4254
4257
|
import { existsSync as existsSync3, readFileSync as readFileSync4, realpathSync as realpathSync2 } from "node:fs";
|
|
4255
4258
|
import path6 from "node:path";
|
|
4256
|
-
var MINIMUM_OMP_HOST_VERSION = "18.
|
|
4259
|
+
var MINIMUM_OMP_HOST_VERSION = "18.4.4";
|
|
4257
4260
|
var OMP_HOST_PACKAGE_NAMES = {
|
|
4258
4261
|
"@oh-my-pi/pi-coding-agent": true
|
|
4259
4262
|
};
|
|
@@ -4319,7 +4322,7 @@ var ompHostCompatibilityWarning = (version = detectOmpHostVersion()) => {
|
|
|
4319
4322
|
if (!version) return void 0;
|
|
4320
4323
|
const comparison = compareVersions(version, MINIMUM_OMP_HOST_VERSION);
|
|
4321
4324
|
if (comparison === void 0 || comparison >= 0) return void 0;
|
|
4322
|
-
return `OMP Fabric requires OMP >= ${MINIMUM_OMP_HOST_VERSION}; detected ${version}. Upgrade OMP
|
|
4325
|
+
return `OMP Fabric requires OMP >= ${MINIMUM_OMP_HOST_VERSION}; detected ${version}. Upgrade OMP: Fabric types guest tools against that release, so an older host can accept calls Fabric rejects, such as the per-call bash \`env\` it removed.`;
|
|
4323
4326
|
};
|
|
4324
4327
|
|
|
4325
4328
|
// src/update/check.ts
|