@claudexor/core 4.0.1 → 4.1.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/dist/model-adapter.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ControlModelCatalogResponse, CredentialProfile, ModelCallRequest, ModelCallResult, ModelRoute, ModelInventoryAbsence } from "@claudexor/schema";
|
|
1
|
+
import type { ControlModelCatalogResponse, CredentialProfile, ImageCallRequest, ImageCallResult, ImageGenerationCapability, ModelCallRequest, ModelCallResult, ModelRoute, QuotaSnapshot, ModelInventoryAbsence } from "@claudexor/schema";
|
|
2
2
|
/** Runtime-only context. Credentials stay inside the adapter, never a DTO. */
|
|
3
3
|
export interface ModelAdapterContext {
|
|
4
4
|
profile: CredentialProfile;
|
|
@@ -11,6 +11,16 @@ export interface ModelAdapterContext {
|
|
|
11
11
|
/** Durably mark dispatch immediately before the single inference POST. */
|
|
12
12
|
onDispatch: (route: ModelRoute) => Promise<void>;
|
|
13
13
|
}
|
|
14
|
+
/** Image generation/edit is the same one-generation discipline over a
|
|
15
|
+
* different wire: no text catalog read, no text quota, no retry. The facet is
|
|
16
|
+
* absent on sources that have no image operations; absence is structural. */
|
|
17
|
+
export interface ModelImageFacet {
|
|
18
|
+
readonly capability: ImageGenerationCapability;
|
|
19
|
+
invoke(request: ImageCallRequest, context: Omit<ModelAdapterContext, "catalog"> & {
|
|
20
|
+
imageTurnId: string;
|
|
21
|
+
onQuota?: (snapshot: QuotaSnapshot) => void;
|
|
22
|
+
}): Promise<ImageCallResult>;
|
|
23
|
+
}
|
|
14
24
|
/** One generation, not a harness session: no tools, retries, or conversation ownership. */
|
|
15
25
|
export interface ModelAdapter {
|
|
16
26
|
readonly id: string;
|
|
@@ -18,5 +28,6 @@ export interface ModelAdapter {
|
|
|
18
28
|
readonly inventoryAbsence?: ModelInventoryAbsence;
|
|
19
29
|
catalog(context: Omit<ModelAdapterContext, "onDispatch">): Promise<ControlModelCatalogResponse>;
|
|
20
30
|
invoke(request: ModelCallRequest, context: ModelAdapterContext): Promise<ModelCallResult>;
|
|
31
|
+
readonly image?: ModelImageFacet;
|
|
21
32
|
}
|
|
22
33
|
//# sourceMappingURL=model-adapter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-adapter.d.ts","sourceRoot":"","sources":["../src/model-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AAE3B,8EAA8E;AAC9E,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,MAAM,EAAE,WAAW,CAAC;IACpB;kFAC8E;IAC9E,OAAO,CAAC,EAAE,2BAA2B,CAAC;IACtC,mFAAmF;IACnF,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,0EAA0E;IAC1E,UAAU,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAClD;AAED,2FAA2F;AAC3F,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,QAAQ,CAAC,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IAClD,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,mBAAmB,EAAE,YAAY,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAChG,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"model-adapter.d.ts","sourceRoot":"","sources":["../src/model-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,yB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
|
2
2
|
"name": "@claudexor/core",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "HarnessAdapter contract, process helpers, typed errors, and low-level execution utilities.",
|
|
6
6
|
"type": "module",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@playwright/mcp": "0.0.83",
|
|
23
|
-
"@claudexor/
|
|
24
|
-
"@claudexor/
|
|
23
|
+
"@claudexor/util": "4.1.0",
|
|
24
|
+
"@claudexor/schema": "4.1.0"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|