omp-fabric 1.26.0 → 1.26.1
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 +8 -0
- package/dist/chunks/{chunk-66H3QSMR.js → chunk-GGQ5MHXB.js} +3 -3
- package/dist/chunks/{chunk-66H3QSMR.js.map → chunk-GGQ5MHXB.js.map} +1 -1
- package/dist/chunks/{chunk-TGIT2F2G.js → chunk-YHFQDI36.js} +3 -3
- package/dist/chunks/{chunk-3OQKG7H6.js → chunk-YI4HU67V.js} +2 -2
- package/dist/fabric-runtime-state.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +17 -7
- package/dist/fabric-runtime-state.js.map +2 -2
- package/dist/index.js +1 -1
- package/dist/providers/image-provider.d.ts +9 -0
- package/dist/providers/image-provider.d.ts.map +1 -1
- package/dist/residency/host.js +3 -3
- package/dist/residency/omp-entry.js +3 -3
- package/dist/ui/settings.js +1 -1
- package/docs/configuration.md +2 -2
- package/docs/image.md +2 -2
- package/package.json +1 -1
- /package/dist/chunks/{chunk-TGIT2F2G.js.map → chunk-YHFQDI36.js.map} +0 -0
- /package/dist/chunks/{chunk-3OQKG7H6.js.map → chunk-YI4HU67V.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { FabricImageConfig, FabricImageDialect } from "../config.js";
|
|
2
2
|
import type { FabricActionDescriptor, FabricInvocationContext, FabricProvider, FabricProviderListRequest } from "../protocol.js";
|
|
3
|
+
interface ImageModelRegistry {
|
|
4
|
+
find(provider: string, modelId: string): unknown;
|
|
5
|
+
getApiKey(model: unknown, sessionId?: string): Promise<string | undefined>;
|
|
6
|
+
resolveModelHeaders?(model: unknown, signal?: AbortSignal): Promise<Record<string, string> | undefined>;
|
|
7
|
+
}
|
|
3
8
|
export interface InlineImage {
|
|
4
9
|
data: string;
|
|
5
10
|
mimeType: string;
|
|
@@ -22,11 +27,14 @@ export declare class ImageProvider implements FabricProvider {
|
|
|
22
27
|
constructor(config: () => FabricImageConfig, options?: {
|
|
23
28
|
fetchImpl?: typeof fetch;
|
|
24
29
|
now?: () => number;
|
|
30
|
+
registry?: ImageModelRegistry;
|
|
31
|
+
getSessionId?: () => string | undefined;
|
|
25
32
|
});
|
|
26
33
|
list(request: FabricProviderListRequest, _context: FabricInvocationContext): Promise<FabricActionDescriptor[]>;
|
|
27
34
|
describe(actionName: string, _context: FabricInvocationContext): Promise<FabricActionDescriptor | undefined>;
|
|
28
35
|
invoke(actionName: string, args: Record<string, unknown>, context: FabricInvocationContext): Promise<unknown>;
|
|
29
36
|
private registry;
|
|
37
|
+
private sessionId;
|
|
30
38
|
private resolveModel;
|
|
31
39
|
private dialectFor;
|
|
32
40
|
private chainSelectors;
|
|
@@ -34,4 +42,5 @@ export declare class ImageProvider implements FabricProvider {
|
|
|
34
42
|
private run;
|
|
35
43
|
private write;
|
|
36
44
|
}
|
|
45
|
+
export {};
|
|
37
46
|
//# sourceMappingURL=image-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-provider.d.ts","sourceRoot":"","sources":["../../src/providers/image-provider.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,KAAK,EACV,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACd,yBAAyB,EAC1B,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"image-provider.d.ts","sourceRoot":"","sources":["../../src/providers/image-provider.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,KAAK,EACV,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACd,yBAAyB,EAC1B,MAAM,gBAAgB,CAAC;AAYxB,UAAU,kBAAkB;IAC1B,IAAI,CAAC,QAAQ,EAAE,MAAM,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,KAAK,CAAC;QACzB,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,kBAAkB,CAAC;QAC9B,YAAY,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;KACpC;IAGF,IAAI,CACR,OAAO,EAAE,yBAAyB,EAClC,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,sBAAsB,EAAE,CAAC;IAQ9B,QAAQ,CACZ,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC;IAIxC,MAAM,CACV,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,OAAO,CAAC;IAanB,OAAO,CAAC,QAAQ;IAQhB,OAAO,CAAC,SAAS;IAMjB,OAAO,CAAC,YAAY;IAmBpB,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,cAAc;YAYR,KAAK;YAqCL,GAAG;YA6IH,KAAK;CA6BpB"}
|
package/dist/residency/host.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runResidentHostFromConfigPath
|
|
4
|
-
} from "../chunks/chunk-
|
|
5
|
-
import "../chunks/chunk-
|
|
4
|
+
} from "../chunks/chunk-YHFQDI36.js";
|
|
5
|
+
import "../chunks/chunk-YI4HU67V.js";
|
|
6
6
|
import "../chunks/chunk-VPPIJRNZ.js";
|
|
7
7
|
import "../chunks/chunk-JZWLICMS.js";
|
|
8
8
|
import "../chunks/chunk-CT2AJ2UI.js";
|
|
9
9
|
import "../chunks/chunk-Q2LRXHPR.js";
|
|
10
|
-
import "../chunks/chunk-
|
|
10
|
+
import "../chunks/chunk-GGQ5MHXB.js";
|
|
11
11
|
import "../chunks/chunk-3LI7YO4M.js";
|
|
12
12
|
import "../chunks/chunk-SKYNDRW5.js";
|
|
13
13
|
import "../chunks/chunk-JL3KVPFJ.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runResidentHostFromConfigPath
|
|
3
|
-
} from "../chunks/chunk-
|
|
4
|
-
import "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-YHFQDI36.js";
|
|
4
|
+
import "../chunks/chunk-YI4HU67V.js";
|
|
5
5
|
import "../chunks/chunk-VPPIJRNZ.js";
|
|
6
6
|
import "../chunks/chunk-JZWLICMS.js";
|
|
7
7
|
import "../chunks/chunk-CT2AJ2UI.js";
|
|
8
8
|
import "../chunks/chunk-Q2LRXHPR.js";
|
|
9
|
-
import "../chunks/chunk-
|
|
9
|
+
import "../chunks/chunk-GGQ5MHXB.js";
|
|
10
10
|
import "../chunks/chunk-3LI7YO4M.js";
|
|
11
11
|
import "../chunks/chunk-SKYNDRW5.js";
|
|
12
12
|
import "../chunks/chunk-JL3KVPFJ.js";
|
package/dist/ui/settings.js
CHANGED
package/docs/configuration.md
CHANGED
|
@@ -543,8 +543,8 @@ Mesh topics, shared state, and the participant directory remain project-scoped.
|
|
|
543
543
|
- `image.enabled` (default `true`) exposes the `image.*` actions. With it off the provider is not registered at all: the actions are unavailable and the `image` guest global is removed.
|
|
544
544
|
- `image.models` (default empty) is the ordered chain of up to 10 `provider/model` entries. The first entry that returns bytes wins, duplicates and entries without a slash are dropped on load, and an empty priority in the panel compacts the list upward.
|
|
545
545
|
- `image.dialects` (default empty) overrides the inferred wire shape per `provider/model`. It stays in the file because each entry encodes one gateway's behaviour.
|
|
546
|
-
- `image.timeoutMs` (5000-900000, default
|
|
547
|
-
- `image.retries` (0-4, default
|
|
546
|
+
- `image.timeoutMs` (5000-900000, default 60000) bounds one model attempt, including the body read. The whole attempt budget has to fit inside `executor.timeoutMs`, which bounds the program, or the executor cancels the call before the attempt's own deadline.
|
|
547
|
+
- `image.retries` (0-4, default 1) is the extra attempts per model after a transient failure, before the chain moves to the next entry.
|
|
548
548
|
- `image.outputDir` (default empty) is where generated files are written. Empty uses the OS temp directory.
|
|
549
549
|
|
|
550
550
|
## File-only settings
|
package/docs/image.md
CHANGED
|
@@ -60,8 +60,8 @@ A selector keeps every slash after the provider, so `xai-hm/antigravity/gemini-3
|
|
|
60
60
|
- `image.enabled` (default `true`) exposes the `image.*` actions. With it off the provider is not registered and the `image` guest global is removed.
|
|
61
61
|
- `image.models` (default empty) is the ordered chain, capped at 10 entries. Duplicates and entries without a slash are dropped on load.
|
|
62
62
|
- `image.dialects` (default empty) overrides the inferred dialect per `provider/model`. File-only, because it is a per-gateway escape hatch.
|
|
63
|
-
- `image.timeoutMs` (5000-900000, default
|
|
64
|
-
- `image.retries` (0-4, default
|
|
63
|
+
- `image.timeoutMs` (5000-900000, default 60000) bounds one model attempt, including the body read. The whole attempt budget has to fit inside `executor.timeoutMs`, which bounds the program: the defaults of one 60 s attempt with one retry come to 120 s, exactly the executor default. Raise both together, or a slow gateway is cancelled by the program deadline before the attempt reports `{ ok: false }`.
|
|
64
|
+
- `image.retries` (0-4, default 1) is the extra attempts per model after a transient failure.
|
|
65
65
|
- `image.outputDir` (default empty) is where files are written. Empty uses the OS temp directory.
|
|
66
66
|
|
|
67
67
|
## Measured on one workstation
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|