omp-fabric 1.25.0 → 1.25.2
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 +30 -1
- package/README.md +1 -1
- package/dist/core/system-guidance.d.ts +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 +34 -19
- package/dist/fabric-runtime-state.js.map +3 -3
- package/dist/host-compatibility.d.ts +7 -1
- package/dist/host-compatibility.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -24
- package/dist/index.js.map +2 -2
- package/dist/providers/omp-tools-provider.d.ts +5 -2
- package/dist/providers/omp-tools-provider.d.ts.map +1 -1
- package/docs/certification.md +1 -1
- package/docs/providers.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.25.2
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- The startup host check could never fire on a compiled Bun install. `detectOmpHostVersion` walked up from `process.argv[1]`, which the compiled binary reports as `/$bunfs/root/<name>`, a path that does not exist on disk, so the walk threw and the guard stayed silent on the exact install most operators run. `resolveHostVersion` now tries the executable at `process.execPath` and the host module's own `VERSION` after that.
|
|
8
|
+
- A subagent session claiming the global OMP session identity moved its parent's `local://` writes into the child's artifacts directory. The host rebinds an extension factory to every subagent session, and the last session to activate won the module-level slot, so a child that started after its parent answered the parent's session lookups. The identity is now passed per provider, and the module-level slot survives only as the fallback for callers that pass nothing.
|
|
9
|
+
- Every headless `omp -p` run ended with `Extension error: OMP Fabric has not bootstrapped` on stderr. `session_shutdown` clears the configuration while the host may still emit one final `agent_end`, and that handler read the cleared configuration unguarded. It now reads the configuration through a bootstrap check and skips the threshold compaction that had nothing left to act on.
|
|
10
|
+
- `read <image>?q=<question>` could not run through `omp.read`. The synthetic `ToolSession` the read tool runs on carried no model registry, so the host rejected the question with `Model registry is unavailable for image questions.` The registry and the active model string are now attached to that session, which is what the lookup needs to pick a model at all. Two limits stay: the read tool runs on an isolated settings instance, so a `modelRoles.vision` alias resolves to the default rather than the operator's configured role, and the registry is scoped to the read tool on purpose, since attaching it to every tool's session would make the host resolve `find.enabled=auto` against it and change which tools it constructs.
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- The execution guidance no longer offers `omp.ls('src')` as a worked example on a host that has no `ls` tool, where the call always rejects. OMP 18.3.2 dropped `ls` from `BUILTIN_TOOL_NAMES`, so the example advertised a shape that cannot run. The kernel guidance and the replaceable default slot now read one denied-tool list.
|
|
15
|
+
- `fabric_exec` builds its schema through the host's `legacy-typebox` module like every other fabric provider, instead of resolving `@oh-my-pi/omptype/typebox` to the plugin-local copy at a different version than the host's bundled one. The shim re-exports that module and adds validation, so `Type` and `TSchema` are unchanged.
|
|
16
|
+
- `docs/providers.md` named the `hub` tool as the job surface. In OMP 18.3.x `hub` is a slash command, and the job surface is the `/jobs` command plus the `wait` tool.
|
|
17
|
+
|
|
18
|
+
### Deferred
|
|
19
|
+
|
|
20
|
+
- The subagent session lifecycle is still unguarded, which is a deliberate choice rather than an oversight. A subagent session runs fabric's whole `session_start` path and its whole `session_shutdown` teardown against the shared process runtime, so finishing a subagent restores the host's core tools in the shared active set for the rest of the turn, until the next `before_agent_start` re-asserts them. Measured on host 18.3.2, that turn shows the active set going from 23 tools to 172 with `read`, `bash`, `edit`, `write`, `grep` and `glob` visible, and returning on the next turn. What shipped here is narrower on purpose: subagents keep working under fabric, and only the session identity became per-provider. Guarding the lifecycle instead would take `fabric_exec` away from subagents, which is a behavior change that deserves its own decision.
|
|
21
|
+
|
|
22
|
+
### Documentation
|
|
23
|
+
|
|
24
|
+
- The 1.20.0 entry claims full code mode hides `eval`. It does not: fabric hides only the tools it replaces, and `eval` is not one of them. `eval` stays on the direct tool surface, and the `judgment.*` provider is the route to a calibrated question from inside a fabric program.
|
|
25
|
+
|
|
26
|
+
## 1.25.1
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- `MINIMUM_OMP_HOST_VERSION` raised to `18.3.0`. The startup host check still read `18.1.10`, so it stayed quiet on a host that cannot load fabric at all. The README and the certification host pin carried the same stale number.
|
|
31
|
+
|
|
3
32
|
## 1.25.0
|
|
4
33
|
|
|
5
34
|
### Fixed
|
|
@@ -9,7 +38,7 @@
|
|
|
9
38
|
|
|
10
39
|
### Changed
|
|
11
40
|
|
|
12
|
-
- Requires OMP 18.3.0 or newer (`@oh-my-pi/*` peer ranges raised from
|
|
41
|
+
- Requires OMP 18.3.0 or newer (`@oh-my-pi/*` peer ranges and `MINIMUM_OMP_HOST_VERSION` raised from `18.1.10`). The registry settings modules do not exist on older hosts, so there is no version fabric can satisfy at once.
|
|
13
42
|
|
|
14
43
|
## 1.24.2
|
|
15
44
|
|
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@ Independent calls run in parallel, and the returned object enters the model cont
|
|
|
62
62
|
|
|
63
63
|
## Install
|
|
64
64
|
|
|
65
|
-
Requires Node.js 24+ and OMP 18.
|
|
65
|
+
Requires Node.js 24+ and OMP 18.3.0+. Fabric also checks a detectable OMP host version at startup and warns when an older host may ignore continuation APIs such as actor `triggerTurn`.
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
68
|
omp install npm:omp-fabric
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const fabricExecutionKernelGuidance: (fullCodeMode: boolean, deniedCoreTools?: readonly string[]) => string;
|
|
2
|
-
export declare const defaultFabricExecutionGuidance: (fullCodeMode: boolean) => string;
|
|
2
|
+
export declare const defaultFabricExecutionGuidance: (fullCodeMode: boolean, deniedCoreTools?: readonly string[]) => string;
|
|
3
3
|
export interface ExtensionRosterToolSource {
|
|
4
4
|
name: string;
|
|
5
5
|
sourceInfo?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-guidance.d.ts","sourceRoot":"","sources":["../../src/core/system-guidance.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,6BAA6B,GACxC,cAAc,OAAO,EACrB,kBAAiB,SAAS,MAAM,EAAO,KACtC,MAeU,CAAC;AAEd,eAAO,MAAM,8BAA8B,
|
|
1
|
+
{"version":3,"file":"system-guidance.d.ts","sourceRoot":"","sources":["../../src/core/system-guidance.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,6BAA6B,GACxC,cAAc,OAAO,EACrB,kBAAiB,SAAS,MAAM,EAAO,KACtC,MAeU,CAAC;AAEd,eAAO,MAAM,8BAA8B,GACzC,cAAc,OAAO,EACrB,kBAAiB,SAAS,MAAM,EAAO,KACtC,MAKmW,CAAC;AAGvW,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACjD;AAqCD,eAAO,MAAM,2BAA2B,GACtC,OAAO,aAAa,CAAC,yBAAyB,CAAC,EAC/C,eAAe,WAAW,CAAC,MAAM,CAAC,KACjC,MAAM,GAAG,SA8BX,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,MAAM,KAAK,GAAG,OAAO,GAAG,SAAS,KAAG,MAAM,GAAG,SAQjF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fabric-runtime-state.d.ts","sourceRoot":"","sources":["../src/fabric-runtime-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAOhG,OA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,EAAE,kBAAkB,EAChC,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC;IAsCtC,oBAAoB,CACxB,OAAO,EAAE,oBAAoB,EAC7B,eAAe,EAAE,sBAAsB,EACvC,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IA+BnC,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAKjD,iBAAiB,CACf,KAAK,EAAE,oBAAoB,EAC3B,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,gBAAgB,GACxB,MAAM;IAuFH,oBAAoB,CACxB,KAAK,EAAE,wBAAwB,EAC/B,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC;IAyBhB,gBAAgB,CAAC,QAAQ,EAAE,cAAc,EAAE,OAAO,GAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAO,GAAG,IAAI;IAevF,yBAAyB,CACvB,SAAS,EAAE,yBAAyB,EACpC,OAAO,GAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAO,GACpC,IAAI;IAOD,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIjC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAsIhC"}
|
|
@@ -10694,8 +10694,8 @@ var ShellArtifacts = class {
|
|
|
10694
10694
|
paths = /* @__PURE__ */ new Map();
|
|
10695
10695
|
root = mkdtempSync(path14.join(os2.tmpdir(), "omp-fabric-bash-"));
|
|
10696
10696
|
};
|
|
10697
|
-
var createNativeSession = (cwd, artifacts, withJobs = false) => {
|
|
10698
|
-
const identity = sessionIdentity;
|
|
10697
|
+
var createNativeSession = (cwd, { artifacts, jobs: withJobs = false, identity: ownerIdentity, imageQuestions = false } = {}) => {
|
|
10698
|
+
const identity = ownerIdentity ?? sessionIdentity;
|
|
10699
10699
|
const sessionId = () => identity?.getSessionId?.() ?? null;
|
|
10700
10700
|
const jobs = withJobs ? ompJobScope(sessionId) : void 0;
|
|
10701
10701
|
return {
|
|
@@ -10708,6 +10708,8 @@ var createNativeSession = (cwd, artifacts, withJobs = false) => {
|
|
|
10708
10708
|
getArtifactsDir: () => identity?.getArtifactsDir?.() ?? null,
|
|
10709
10709
|
getSessionSpawns: () => null,
|
|
10710
10710
|
...jobs ? { asyncJobManager: jobs.manager } : {},
|
|
10711
|
+
...imageQuestions && identity?.modelRegistry ? { modelRegistry: identity.modelRegistry } : {},
|
|
10712
|
+
...imageQuestions && identity?.getActiveModelString ? { getActiveModelString: identity.getActiveModelString } : {},
|
|
10711
10713
|
settings: Settings2.isolated({
|
|
10712
10714
|
readLineNumbers: false,
|
|
10713
10715
|
"read.defaultLimit": GUEST_READ_LINE_LIMIT,
|
|
@@ -10742,9 +10744,15 @@ var nativeDefinition = (tool) => {
|
|
|
10742
10744
|
execute
|
|
10743
10745
|
};
|
|
10744
10746
|
};
|
|
10745
|
-
var createNativeBashToolDefinition = (cwd, artifacts) => nativeDefinition(
|
|
10746
|
-
|
|
10747
|
-
|
|
10747
|
+
var createNativeBashToolDefinition = (cwd, artifacts, identity) => nativeDefinition(
|
|
10748
|
+
new BashTool(createNativeSession(cwd, { artifacts, jobs: true, identity }))
|
|
10749
|
+
);
|
|
10750
|
+
var createNativeReadToolDefinition = (cwd, identity) => nativeDefinition(
|
|
10751
|
+
new ReadTool(createNativeSession(cwd, { identity, imageQuestions: true }))
|
|
10752
|
+
);
|
|
10753
|
+
var createNativeReplaceEditToolDefinition = (cwd, identity) => nativeDefinition(
|
|
10754
|
+
new EditTool(createNativeSession(cwd, { identity }), "replace")
|
|
10755
|
+
);
|
|
10748
10756
|
var normalizeReadArguments = (args) => {
|
|
10749
10757
|
const offset = finiteNumber2(args.offset);
|
|
10750
10758
|
const limit = finiteNumber2(args.limit);
|
|
@@ -11248,8 +11256,8 @@ var normalizeResult = (name, result, artifactPaths, appendReadNewline = true, ex
|
|
|
11248
11256
|
return { ok: true, output, details: details ?? null };
|
|
11249
11257
|
};
|
|
11250
11258
|
var OmpToolsProvider = class _OmpToolsProvider {
|
|
11251
|
-
static async create(cwd, catalog, capturedTools, hostActiveTools) {
|
|
11252
|
-
return new _OmpToolsProvider(cwd, catalog, capturedTools, hostActiveTools);
|
|
11259
|
+
static async create(cwd, catalog, capturedTools, hostActiveTools, identity) {
|
|
11260
|
+
return new _OmpToolsProvider(cwd, catalog, capturedTools, hostActiveTools, identity);
|
|
11253
11261
|
}
|
|
11254
11262
|
name = "omp";
|
|
11255
11263
|
description = "OMP's built-in coding tools";
|
|
@@ -11259,18 +11267,21 @@ var OmpToolsProvider = class _OmpToolsProvider {
|
|
|
11259
11267
|
#catalog;
|
|
11260
11268
|
#capturedTools;
|
|
11261
11269
|
#cwd;
|
|
11270
|
+
#identity;
|
|
11262
11271
|
#artifacts = new ShellArtifacts();
|
|
11263
|
-
#bashDefinitions
|
|
11264
|
-
|
|
11265
|
-
);
|
|
11266
|
-
constructor(cwd, catalog, capturedTools, hostActiveTools) {
|
|
11272
|
+
#bashDefinitions;
|
|
11273
|
+
constructor(cwd, catalog, capturedTools, hostActiveTools, identity) {
|
|
11267
11274
|
this.#hostActiveTools = hostActiveTools;
|
|
11268
11275
|
this.#cwd = cwd;
|
|
11276
|
+
this.#identity = identity;
|
|
11277
|
+
this.#bashDefinitions = new BashCwdDefinitions(
|
|
11278
|
+
(nextCwd) => createNativeBashToolDefinition(nextCwd, this.#artifacts, this.#identity)
|
|
11279
|
+
);
|
|
11269
11280
|
this.#tools = {
|
|
11270
|
-
read: createNativeReadToolDefinition(cwd),
|
|
11271
|
-
bash: createNativeBashToolDefinition(cwd, this.#artifacts),
|
|
11272
|
-
edit: createNativeReplaceEditToolDefinition(cwd),
|
|
11273
|
-
write: createPreviewWriteToolDefinition(cwd, createNativeSession(cwd)),
|
|
11281
|
+
read: createNativeReadToolDefinition(cwd, this.#identity),
|
|
11282
|
+
bash: createNativeBashToolDefinition(cwd, this.#artifacts, this.#identity),
|
|
11283
|
+
edit: createNativeReplaceEditToolDefinition(cwd, this.#identity),
|
|
11284
|
+
write: createPreviewWriteToolDefinition(cwd, createNativeSession(cwd, { identity: this.#identity })),
|
|
11274
11285
|
grep: createGrepDefinitionWithSkip(cwd),
|
|
11275
11286
|
find: createFindDefinitionWithFilters(cwd),
|
|
11276
11287
|
ls: createLsToolDefinition(cwd)
|
|
@@ -15010,11 +15021,14 @@ var FabricRuntimeState = class {
|
|
|
15010
15021
|
const effectiveFullCodeMode = this.#config.fullCodeMode || enforceSchema;
|
|
15011
15022
|
const capturedToolsProvider = effectiveFullCodeMode && (this.#config.capture.enabled || enforceSchema) ? new CapturedToolsProvider(this.capturedTools) : void 0;
|
|
15012
15023
|
if (effectiveFullCodeMode) {
|
|
15013
|
-
|
|
15024
|
+
const sessionIdentity2 = {
|
|
15014
15025
|
getSessionId: () => context.sessionManager.getSessionId(),
|
|
15015
15026
|
getArtifactsDir: () => context.sessionManager.getArtifactsDir(),
|
|
15016
|
-
getSessionFile: () => context.sessionManager.getSessionFile() ?? null
|
|
15017
|
-
|
|
15027
|
+
getSessionFile: () => context.sessionManager.getSessionFile() ?? null,
|
|
15028
|
+
modelRegistry: context.modelRegistry,
|
|
15029
|
+
getActiveModelString: () => context.model ? `${context.model.provider}/${context.model.id}` : void 0
|
|
15030
|
+
};
|
|
15031
|
+
setOmpSessionIdentity(sessionIdentity2);
|
|
15018
15032
|
await installBuiltin(createProviderComponent({
|
|
15019
15033
|
provider: "omp",
|
|
15020
15034
|
description: "OMP core tools adapter",
|
|
@@ -15022,7 +15036,8 @@ var FabricRuntimeState = class {
|
|
|
15022
15036
|
context.cwd,
|
|
15023
15037
|
this.capturedTools,
|
|
15024
15038
|
capturedToolsProvider,
|
|
15025
|
-
this.#hostActiveTools
|
|
15039
|
+
this.#hostActiveTools,
|
|
15040
|
+
sessionIdentity2
|
|
15026
15041
|
)
|
|
15027
15042
|
}));
|
|
15028
15043
|
}
|