@xemahq/llm-registry-api-client 0.8.1 → 0.8.3

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.
@@ -18,6 +18,16 @@ export interface CreateModelStrategyDto {
18
18
  appliesToAgentSlugs?: string[];
19
19
  /** Stage keys this child strategy applies to */
20
20
  appliesToStageKeys?: string[];
21
- /** Class → model entries (one per modelClass) */
21
+ /** This strategy's DEFAULT model — what an invocation routes to when the requested work kind has no entry below. REQUIRED when authoring a strategy: a strategy with no default cannot answer an unbound kind, and the platform will not choose a model on an organisation's behalf. (A stored strategy may legitimately have none — that is an organisation that has not chosen yet. Authoring one that way is a different thing, and it is refused here, where the person who can fix it is present.) */
22
+ defaultModelSlug: string;
23
+ /**
24
+ * Temperature for the default binding (0-2). Omitted = the engine/model owns it; no platform value is ever materialized.
25
+ * @minimum 0
26
+ * @maximum 2
27
+ */
28
+ defaultTemperature?: number;
29
+ /** Reasoning effort for the default binding. Same posture as `defaultTemperature`: omitted = the engine/model owns it. */
30
+ defaultReasoningEffort?: string;
31
+ /** Work kind → model entries (at most one per kind). An entry OVERRIDES the default binding for the kind it names; a kind with no entry uses the default. */
22
32
  entries: CreateModelStrategyEntryDto[];
23
33
  }
@@ -3,9 +3,9 @@
3
3
  * LLM Registry API
4
4
  * OpenAPI spec version: 0.1.3
5
5
  */
6
- import type { ModelClass } from './modelClass.js';
7
6
  export interface CreateModelStrategyEntryDto {
8
- modelClass: ModelClass;
7
+ /** The work kind this entry routes. An OPEN vocabulary: the kernel core plus every key a biome or this organisation has declared. Lower-kebab; validated for GRAMMAR here and for DECLARATION where org context exists. */
8
+ modelClass: string;
9
9
  /** Model slug/ID to match against LlmModel.modelId */
10
10
  modelSlug: string;
11
11
  /**
@@ -1,2 +1,7 @@
1
1
  "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * LLM Registry API
5
+ * OpenAPI spec version: 0.1.3
6
+ */
2
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -178,7 +178,6 @@ export * from './migrationProvisionDto';
178
178
  export * from './migrationProvisionDtoConsumer';
179
179
  export * from './migrationTargetDto';
180
180
  export * from './modelCapability';
181
- export * from './modelClass';
182
181
  export * from './modelModality';
183
182
  export * from './modelMode';
184
183
  export * from './modelPricingTierDto';
@@ -195,7 +195,6 @@ __exportStar(require("./migrationProvisionDto"), exports);
195
195
  __exportStar(require("./migrationProvisionDtoConsumer"), exports);
196
196
  __exportStar(require("./migrationTargetDto"), exports);
197
197
  __exportStar(require("./modelCapability"), exports);
198
- __exportStar(require("./modelClass"), exports);
199
198
  __exportStar(require("./modelModality"), exports);
200
199
  __exportStar(require("./modelMode"), exports);
201
200
  __exportStar(require("./modelPricingTierDto"), exports);
@@ -10,7 +10,6 @@ export type ModelResolutionSource = typeof ModelResolutionSource[keyof typeof Mo
10
10
  export declare const ModelResolutionSource: {
11
11
  readonly matrix: "matrix";
12
12
  readonly strategy: "strategy";
13
- readonly role: "role";
14
13
  readonly override: "override";
15
14
  readonly unresolved: "unresolved";
16
15
  };
@@ -9,7 +9,6 @@ exports.ModelResolutionSource = void 0;
9
9
  exports.ModelResolutionSource = {
10
10
  matrix: 'matrix',
11
11
  strategy: 'strategy',
12
- role: 'role',
13
12
  override: 'override',
14
13
  unresolved: 'unresolved',
15
14
  };
@@ -4,6 +4,7 @@
4
4
  * OpenAPI spec version: 0.1.3
5
5
  */
6
6
  import type { AgentExecutionMode } from './agentExecutionMode.js';
7
+ import type { AgentWorkspaceDto } from './agentWorkspaceDto.js';
7
8
  import type { ResolvedAgentToolProfileDto } from './resolvedAgentToolProfileDto.js';
8
9
  import type { ResolvedModelSelectionDto } from './resolvedModelSelectionDto.js';
9
10
  import type { ResolvedModelStubDto } from './resolvedModelStubDto.js';
@@ -53,6 +54,8 @@ export interface ResolveFullResponseDto {
53
54
  intrinsicTools: string[];
54
55
  /** Full LLM routing record (modelId + providerSlug + opencodeProviderId + temperature + contextWindow). Carries the same data as `model` plus the worker-side `opencodeProviderId`. Decoupled from `structuralConfigHash` on purpose. */
55
56
  modelSelection: ResolvedModelSelectionDto;
57
+ /** The agent's compiled workspace block — mount layout, persist paths, env and output surface — merged from its SELF-WRAP workspace manifest at biome discovery and stored verbatim on the agent. `null` for an agent that ships no self-wrap manifest: a sub-agent-only leaf is never launched as an interactive session and needs no user-data layout. */
58
+ workspace?: AgentWorkspaceDto | null;
56
59
  /**
57
60
  * Frozen resolved snapshot ID for this top-level resolution.
58
61
  * @nullable
@@ -4,7 +4,6 @@
4
4
  * OpenAPI spec version: 0.1.3
5
5
  */
6
6
  import type { ModelCapability } from './modelCapability.js';
7
- import type { ModelClass } from './modelClass.js';
8
7
  export interface ResolveModelForInvocationDto {
9
8
  /**
10
9
  * The Space this invocation happens in, as a canonical `xema://` SpaceRef. `xema://orgs/<orgId>` for an org-scoped invocation (a Canopy turn, a memory summarization, an org-layer session); `xema://orgs/<orgId>/projects/<projectId>` when the invocation genuinely belongs to a project. The org segment MUST match the calling context's org — it selects a Space inside the tenant the token already proved, and never widens it. Only the `project` form contributes the Matrix's `project` dimension; an org-scoped resolve carries no project dimension at all, so a `project` selector rule cannot match it.
@@ -43,8 +42,8 @@ export interface ResolveModelForInvocationDto {
43
42
  * @maxLength 512
44
43
  */
45
44
  purpose?: string;
46
- /** Per-session "smartness" preference — the Matrix `modelClass` MATCHED dimension, NOT an above-rules override. It populates the resolution context so a tier-injected managed rule can CLAMP it, and an unmapped class falls through to the org default rule. Ignored when an explicit `modelClass`/`modelId` override is present. */
47
- preferredModelClass?: ModelClass;
45
+ /** Per-session "smartness" preference — the Matrix `modelClass` MATCHED dimension, NOT an above-rules override. It populates the resolution context so a tier-injected managed rule can CLAMP it, and an unmapped kind falls through to the org default rule. Ignored when an explicit `modelClass`/`modelId` override is present. An AGENT-axis work kind: the kernel core plus every key a biome or this organisation has declared. Lower-kebab; an undeclared value is a 400 so a typo never silently lands on the default rule's match path — the same posture `purpose` has one field up. */
46
+ preferredModelClass?: string;
48
47
  /**
49
48
  * The active/launched skill — the Matrix `skill` dimension. Free-form: the skill vocabulary is open and owned by `skill-registry-api`, so an unknown value simply matches no rule rather than being refused.
50
49
  * @maxLength 512
@@ -10,7 +10,6 @@ export type ResolvedModelSelectionDtoSource = typeof ResolvedModelSelectionDtoSo
10
10
  export declare const ResolvedModelSelectionDtoSource: {
11
11
  readonly matrix: "matrix";
12
12
  readonly strategy: "strategy";
13
- readonly role: "role";
14
13
  readonly override: "override";
15
14
  readonly unresolved: "unresolved";
16
15
  };
@@ -9,7 +9,6 @@ exports.ResolvedModelSelectionDtoSource = void 0;
9
9
  exports.ResolvedModelSelectionDtoSource = {
10
10
  matrix: 'matrix',
11
11
  strategy: 'strategy',
12
- role: 'role',
13
12
  override: 'override',
14
13
  unresolved: 'unresolved',
15
14
  };
@@ -10,7 +10,6 @@ export type ResolvedModelStubDtoSource = typeof ResolvedModelStubDtoSource[keyof
10
10
  export declare const ResolvedModelStubDtoSource: {
11
11
  readonly matrix: "matrix";
12
12
  readonly strategy: "strategy";
13
- readonly role: "role";
14
13
  readonly override: "override";
15
14
  readonly unresolved: "unresolved";
16
15
  };
@@ -9,7 +9,6 @@ exports.ResolvedModelStubDtoSource = void 0;
9
9
  exports.ResolvedModelStubDtoSource = {
10
10
  matrix: 'matrix',
11
11
  strategy: 'strategy',
12
- role: 'role',
13
12
  override: 'override',
14
13
  unresolved: 'unresolved',
15
14
  };
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import type { WorkKindAxis } from './workKindAxis.js';
7
7
  export interface WorkKindDto {
8
- /** The work-kind key. Lower-kebab, and the same grammar a model-role name has — a kind resolves through `model.<key>` on the role plane. */
8
+ /** The work-kind key. Lower-kebab and NOT namespaced by the declaring biome: a key that encoded it would move when that biome is renamed or replaced, silently invalidating every rule and strategy entry that names it. */
9
9
  key: string;
10
10
  /** Which Matrix dimension this key may select. `agent` — work an agent does, selecting `modelClass`. `machine` — a use the platform or a biome makes of a model on nobody's behalf, selecting `purpose`. */
11
11
  axis: WorkKindAxis;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/llm-registry-api-client",
3
- "version": "0.8.1",
3
+ "version": "0.8.3",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -1,17 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * LLM Registry API
4
- * OpenAPI spec version: 0.1.3
5
- */
6
- /**
7
- * Per-session "smartness" preference — the Matrix `modelClass` MATCHED dimension, NOT an above-rules override. It populates the resolution context so a tier-injected managed rule can CLAMP it, and an unmapped class falls through to the org default rule. Ignored when an explicit `modelClass`/`modelId` override is present.
8
- */
9
- export type ModelClass = typeof ModelClass[keyof typeof ModelClass];
10
- export declare const ModelClass: {
11
- readonly generic: "generic";
12
- readonly coding: "coding";
13
- readonly review: "review";
14
- readonly creative: "creative";
15
- readonly planning: "planning";
16
- readonly utility: "utility";
17
- };
@@ -1,16 +0,0 @@
1
- "use strict";
2
- /**
3
- * Generated by @xemahq/api-client-generator — do not edit manually.
4
- * LLM Registry API
5
- * OpenAPI spec version: 0.1.3
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.ModelClass = void 0;
9
- exports.ModelClass = {
10
- generic: 'generic',
11
- coding: 'coding',
12
- review: 'review',
13
- creative: 'creative',
14
- planning: 'planning',
15
- utility: 'utility',
16
- };