@xemahq/llm-registry-api-client 0.7.28 → 0.8.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/dist/endpoints/llm-registry/llm-registry.d.ts +4 -4
- package/dist/endpoints/llm-registry/llm-registry.js +11 -28
- package/dist/endpoints/work-kinds/work-kinds.d.ts +11 -0
- package/dist/endpoints/work-kinds/work-kinds.js +37 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/agentCapabilityLayerDto.d.ts +1 -1
- package/dist/models/agentKernelResponseDto.d.ts +5 -0
- package/dist/models/agentKernelResponseDtoDefinitionHash.d.ts +4 -1
- package/dist/models/agentKernelResponseDtoModelClass.d.ts +1 -0
- package/dist/models/agentKernelResponseDtoModelClass.js +1 -0
- package/dist/models/agentModelOverrideDto.d.ts +5 -2
- package/dist/models/agentNodeDto.d.ts +7 -0
- package/dist/models/agentProfileDto.d.ts +2 -0
- package/dist/models/agentProfileDtoAvatarSeed.d.ts +4 -1
- package/dist/models/agentProfileDtoDescription.d.ts +4 -1
- package/dist/models/agentProfileDtoModelClass.d.ts +1 -0
- package/dist/models/agentProfileDtoModelClass.js +1 -0
- package/dist/models/agentWorkingFileDto.d.ts +3 -0
- package/dist/models/bundleFileResponseDto.d.ts +8 -2
- package/dist/models/bundleFileResponseDtoBiomeId.d.ts +2 -1
- package/dist/models/bundleFileResponseDtoForkedFrom.d.ts +2 -1
- package/dist/models/createAgentDto.d.ts +4 -1
- package/dist/models/createAgentKernelDtoModelClass.d.ts +1 -0
- package/dist/models/createAgentKernelDtoModelClass.js +1 -0
- package/dist/models/createModelDto.d.ts +4 -1
- package/dist/models/createModelResolutionRuleDto.d.ts +12 -4
- package/dist/models/createModelStrategyEntryDto.d.ts +9 -3
- package/dist/models/createProviderDto.d.ts +4 -1
- package/dist/models/index.d.ts +10 -17
- package/dist/models/index.js +10 -17
- package/dist/models/inputArtifactEntryDto.d.ts +2 -0
- package/dist/models/migrationHeartbeatDto.d.ts +8 -2
- package/dist/models/migrationProvisionDto.d.ts +4 -1
- package/dist/models/modelCapability.d.ts +17 -0
- package/dist/models/{llmRegistryControllerResolveForInvocationPurpose.js → modelCapability.js} +7 -4
- package/dist/models/modelClass.d.ts +17 -0
- package/dist/models/{resolvedModelRefDtoModelClass.js → modelClass.js} +3 -2
- package/dist/models/modelResolutionRuleResponseDto.d.ts +10 -5
- package/dist/models/modelResolutionSelectorDto.d.ts +5 -3
- package/dist/models/modelResolutionSelectorResponseDto.d.ts +1 -2
- package/dist/models/modelResponseDto.d.ts +1 -0
- package/dist/models/modelResponseDtoContextWindow.d.ts +4 -1
- package/dist/models/modelStrategyEntryResponseDto.d.ts +5 -0
- package/dist/models/modelStrategyEntryResponseDtoModelClass.d.ts +1 -0
- package/dist/models/modelStrategyEntryResponseDtoModelClass.js +1 -0
- package/dist/models/mountEntryDto.d.ts +1 -0
- package/dist/models/moveRevisionPinsDto.d.ts +8 -2
- package/dist/models/problemDetailsDto.d.ts +24 -0
- package/dist/models/problemFieldIssueDto.d.ts +10 -0
- package/dist/models/projectAgentOverrideResponseDto.d.ts +2 -0
- package/dist/models/projectAgentOverrideResponseDtoSystemPromptAppend.d.ts +4 -1
- package/dist/models/projectAgentOverrideResponseDtoTemperature.d.ts +4 -1
- package/dist/models/publishAgentRevisionDto.d.ts +5 -1
- package/dist/models/renderAgentRunContextRequestDto.d.ts +1 -0
- package/dist/models/resolveFullResponseDtoModelClass.d.ts +1 -0
- package/dist/models/resolveFullResponseDtoModelClass.js +1 -0
- package/dist/models/resolveModelForInvocationDto.d.ts +55 -0
- package/dist/models/resolvedAgentKernelResponseDtoModelClass.d.ts +1 -0
- package/dist/models/resolvedAgentKernelResponseDtoModelClass.js +1 -0
- package/dist/models/resolvedModelRefDto.d.ts +4 -3
- package/dist/models/resolvedPhaseConfigDto.d.ts +5 -0
- package/dist/models/resolvedStageModelConfigDto.d.ts +5 -0
- package/dist/models/resolvedToolProfileDto.d.ts +2 -0
- package/dist/models/resolvedToolProfileDtoCatalogId.d.ts +4 -1
- package/dist/models/restoreAgentRevisionDto.d.ts +4 -1
- package/dist/models/roleCapabilityProfileDto.d.ts +0 -2
- package/dist/models/rollbackAgentRevisionDto.d.ts +4 -1
- package/dist/models/strategyTemplateEntryDto.d.ts +5 -0
- package/dist/models/toolProfileResponseDto.d.ts +6 -0
- package/dist/models/updateAgentDraftDto.d.ts +4 -1
- package/dist/models/updateAgentKernelDtoModelClass.d.ts +1 -0
- package/dist/models/updateAgentKernelDtoModelClass.js +1 -0
- package/dist/models/updateModelDto.d.ts +4 -1
- package/dist/models/updateModelResolutionRuleDto.d.ts +7 -2
- package/dist/models/updateProviderDto.d.ts +1 -0
- package/dist/models/upsertAgentModelOverrideDto.d.ts +5 -1
- package/dist/models/workKindAxis.d.ts +13 -0
- package/dist/models/workKindAxis.js +12 -0
- package/dist/models/workKindControllerListParams.d.ts +12 -0
- package/dist/models/workKindDto.d.ts +19 -0
- package/dist/models/{errorDetailsDtoDetails.d.ts → workKindListDto.d.ts} +4 -6
- package/dist/models/workKindListDto.js +2 -0
- package/dist/models/workKindListDtoDataEnvelope.d.ts +9 -0
- package/dist/models/workKindListDtoDataEnvelope.js +2 -0
- package/dist/models/workingFileEntryDto.d.ts +5 -0
- package/package.json +26 -2
- package/dist/models/agentModelOverrideDtoModelClass.d.ts +0 -13
- package/dist/models/agentModelOverrideDtoModelClass.js +0 -15
- package/dist/models/createModelResolutionRuleDtoTargetModelClass.d.ts +0 -16
- package/dist/models/createModelResolutionRuleDtoTargetModelClass.js +0 -15
- package/dist/models/createModelStrategyEntryDtoModelClass.d.ts +0 -13
- package/dist/models/createModelStrategyEntryDtoModelClass.js +0 -15
- package/dist/models/errorDetailsDto.d.ts +0 -10
- package/dist/models/errorPayloadDto.d.ts +0 -11
- package/dist/models/errorResponseDto.d.ts +0 -9
- package/dist/models/llmRegistryControllerResolveForInvocationModelClass.d.ts +0 -13
- package/dist/models/llmRegistryControllerResolveForInvocationModelClass.js +0 -15
- package/dist/models/llmRegistryControllerResolveForInvocationParams.d.ts +0 -34
- package/dist/models/llmRegistryControllerResolveForInvocationPreferredModelClass.d.ts +0 -13
- package/dist/models/llmRegistryControllerResolveForInvocationPreferredModelClass.js +0 -15
- package/dist/models/llmRegistryControllerResolveForInvocationPurpose.d.ts +0 -11
- package/dist/models/modelResolutionRuleResponseDtoDefaultTargetOverridePrevModelClass.d.ts +0 -17
- package/dist/models/modelResolutionRuleResponseDtoDefaultTargetOverridePrevModelClass.js +0 -15
- package/dist/models/modelResolutionRuleResponseDtoTargetModelClass.d.ts +0 -16
- package/dist/models/modelResolutionRuleResponseDtoTargetModelClass.js +0 -15
- package/dist/models/modelResolutionSelectorDtoModelClass.d.ts +0 -16
- package/dist/models/modelResolutionSelectorDtoModelClass.js +0 -15
- package/dist/models/modelResolutionSelectorResponseDtoModelClass.d.ts +0 -16
- package/dist/models/modelResolutionSelectorResponseDtoModelClass.js +0 -15
- package/dist/models/resolvedModelRefDtoModelClass.d.ts +0 -17
- package/dist/models/updateModelResolutionRuleDtoTargetModelClass.d.ts +0 -13
- package/dist/models/updateModelResolutionRuleDtoTargetModelClass.js +0 -15
- /package/dist/models/{errorDetailsDto.js → problemDetailsDto.js} +0 -0
- /package/dist/models/{errorDetailsDtoDetails.js → problemFieldIssueDto.js} +0 -0
- /package/dist/models/{errorPayloadDto.js → resolveModelForInvocationDto.js} +0 -0
- /package/dist/models/{errorResponseDto.js → workKindControllerListParams.js} +0 -0
- /package/dist/models/{llmRegistryControllerResolveForInvocationParams.js → workKindDto.js} +0 -0
|
@@ -9,7 +9,9 @@ export interface ResolvedToolProfileDto {
|
|
|
9
9
|
mcpServiceKey: string;
|
|
10
10
|
toolGroups: string[];
|
|
11
11
|
allowedTools: string[];
|
|
12
|
+
/** @nullable */
|
|
12
13
|
catalogId?: ResolvedToolProfileDtoCatalogId;
|
|
13
14
|
isOptional: boolean;
|
|
15
|
+
/** Owner tier that resolved this profile. */
|
|
14
16
|
source: ScopeSource;
|
|
15
17
|
}
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.3
|
|
5
5
|
*/
|
|
6
6
|
export interface RestoreAgentRevisionDto {
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Current draft concurrency token. Restore fails if another author changed the draft.
|
|
9
|
+
* @minLength 1
|
|
10
|
+
*/
|
|
8
11
|
expectedDraftUpdatedAt: string;
|
|
9
12
|
}
|
|
@@ -17,6 +17,4 @@ export interface RoleCapabilityProfileDto {
|
|
|
17
17
|
mayEditRepos: RoleCapabilityProfileDtoMayEditRepos;
|
|
18
18
|
/** Knowledge-base write capability */
|
|
19
19
|
mayWriteKnowledgeBase: boolean;
|
|
20
|
-
/** Xema-namespaced tool names this role may call */
|
|
21
|
-
allowedXemaTools: string[];
|
|
22
20
|
}
|
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.3
|
|
5
5
|
*/
|
|
6
6
|
export interface RollbackAgentRevisionDto {
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Owner-fenced immutable ReleaseSet whose stable state should be replayed.
|
|
9
|
+
* @minLength 1
|
|
10
|
+
*/
|
|
8
11
|
priorReleaseSetId: string;
|
|
9
12
|
/** @minimum 1 */
|
|
10
13
|
expectedChannelVersion: number;
|
|
@@ -13,4 +13,9 @@ export interface StrategyTemplateEntryDto {
|
|
|
13
13
|
* @nullable
|
|
14
14
|
*/
|
|
15
15
|
temperature: number | null;
|
|
16
|
+
/**
|
|
17
|
+
* Reasoning effort the entry asks of the model (kernel `ModelOptions.reasoningEffort`), or null to let the engine/model own the default.
|
|
18
|
+
* @nullable
|
|
19
|
+
*/
|
|
20
|
+
reasoningEffort: string | null;
|
|
16
21
|
}
|
|
@@ -8,6 +8,12 @@ export interface ToolProfileResponseDto {
|
|
|
8
8
|
id: string;
|
|
9
9
|
/** @nullable */
|
|
10
10
|
orgId?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Owner tier — the kernel's `SpaceKind`, narrowed to the five tiers this
|
|
13
|
+
* registry owns. The wire schema keeps the name `ScopeSource`.
|
|
14
|
+
* Resolution precedence at read time: user > project > org > biome >
|
|
15
|
+
* system.
|
|
16
|
+
*/
|
|
11
17
|
source: ScopeSource;
|
|
12
18
|
/**
|
|
13
19
|
* Biome id when source='biome', otherwise null.
|
|
@@ -30,6 +30,9 @@ export interface UpdateAgentDraftDto {
|
|
|
30
30
|
durableWorkspace?: DurableWorkspaceRefDto | null;
|
|
31
31
|
/** Special-ability CapabilityRefs granted on top of the reach tier; unioned into the auto-grant manifest. */
|
|
32
32
|
abilities?: string[];
|
|
33
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Current draft concurrency token. The update fails on stale writes.
|
|
35
|
+
* @minLength 1
|
|
36
|
+
*/
|
|
34
37
|
expectedDraftUpdatedAt: string;
|
|
35
38
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export type UpdateAgentKernelDtoModelClass = typeof UpdateAgentKernelDtoModelClass[keyof typeof UpdateAgentKernelDtoModelClass];
|
|
7
7
|
export declare const UpdateAgentKernelDtoModelClass: {
|
|
8
|
+
readonly generic: "generic";
|
|
8
9
|
readonly coding: "coding";
|
|
9
10
|
readonly review: "review";
|
|
10
11
|
readonly creative: "creative";
|
|
@@ -7,7 +7,10 @@ import type { ModelModality } from './modelModality.js';
|
|
|
7
7
|
export interface UpdateModelDto {
|
|
8
8
|
/** Human-friendly display name */
|
|
9
9
|
displayName?: string;
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Context window size in tokens
|
|
12
|
+
* @minimum 1
|
|
13
|
+
*/
|
|
11
14
|
contextWindow?: number;
|
|
12
15
|
/** Model capabilities */
|
|
13
16
|
capabilities?: string[];
|
|
@@ -5,13 +5,18 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { ModelResolutionSelectorDto } from './modelResolutionSelectorDto.js';
|
|
7
7
|
import type { UpdateModelResolutionRuleDtoTargetKind } from './updateModelResolutionRuleDtoTargetKind.js';
|
|
8
|
-
import type { UpdateModelResolutionRuleDtoTargetModelClass } from './updateModelResolutionRuleDtoTargetModelClass.js';
|
|
9
8
|
export interface UpdateModelResolutionRuleDto {
|
|
10
9
|
selector?: ModelResolutionSelectorDto;
|
|
11
10
|
targetKind?: UpdateModelResolutionRuleDtoTargetKind;
|
|
12
11
|
targetModelId?: string;
|
|
13
12
|
targetProviderSlug?: string;
|
|
14
|
-
|
|
13
|
+
/** @pattern ^[a-z][a-z0-9-]{0,62}$ */
|
|
14
|
+
targetModelClass?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @minimum 0
|
|
17
|
+
* @maximum 2
|
|
18
|
+
*/
|
|
15
19
|
targetTemperature?: number;
|
|
20
|
+
targetReasoningEffort?: string;
|
|
16
21
|
priority?: number;
|
|
17
22
|
}
|
|
@@ -13,6 +13,10 @@ export interface UpsertAgentModelOverrideDto {
|
|
|
13
13
|
agentSlug: string;
|
|
14
14
|
/** LLM model ID to assign to this agent. */
|
|
15
15
|
modelId: string;
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Optional temperature override (0.0 - 2.0).
|
|
18
|
+
* @minimum 0
|
|
19
|
+
* @maximum 2
|
|
20
|
+
*/
|
|
17
21
|
temperature?: number;
|
|
18
22
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
* 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`.
|
|
8
|
+
*/
|
|
9
|
+
export type WorkKindAxis = typeof WorkKindAxis[keyof typeof WorkKindAxis];
|
|
10
|
+
export declare const WorkKindAxis: {
|
|
11
|
+
readonly agent: "agent";
|
|
12
|
+
readonly machine: "machine";
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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.WorkKindAxis = void 0;
|
|
9
|
+
exports.WorkKindAxis = {
|
|
10
|
+
agent: 'agent',
|
|
11
|
+
machine: 'machine',
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
import type { WorkKindAxis } from './workKindAxis.js';
|
|
7
|
+
export type WorkKindControllerListParams = {
|
|
8
|
+
/**
|
|
9
|
+
* Narrow to one axis. `agent` is what an agent declares about itself and what a `modelClass` selector matches; `machine` is what a platform-owned call carries as its `purpose`. Omitted returns both.
|
|
10
|
+
*/
|
|
11
|
+
axis?: WorkKindAxis;
|
|
12
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
import type { WorkKindAxis } from './workKindAxis.js';
|
|
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. */
|
|
9
|
+
key: string;
|
|
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
|
+
axis: WorkKindAxis;
|
|
12
|
+
title: string;
|
|
13
|
+
/** What work this kind names, in the reader's words. */
|
|
14
|
+
description: string;
|
|
15
|
+
/** The kind to resolve when THIS one is unbound. Absent means `generic`, which is the terminus of every chain and is always bound. Only ever present on the `agent` axis. */
|
|
16
|
+
fallbackKind?: string;
|
|
17
|
+
/** True for one of the kernel's six neutral core kinds. A core kind is declared by the platform, is present in every deployment, and cannot be shadowed or removed by a contribution. */
|
|
18
|
+
core: boolean;
|
|
19
|
+
}
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
* LLM Registry API
|
|
4
4
|
* OpenAPI spec version: 0.1.3
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
[key: string]: unknown;
|
|
11
|
-
} | null;
|
|
6
|
+
import type { WorkKindDto } from './workKindDto.js';
|
|
7
|
+
export interface WorkKindListDto {
|
|
8
|
+
workKinds: WorkKindDto[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
import type { WorkKindListDto } from './workKindListDto.js';
|
|
7
|
+
export interface WorkKindListDtoDataEnvelope {
|
|
8
|
+
data: WorkKindListDto;
|
|
9
|
+
}
|
|
@@ -5,10 +5,15 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { WorkingFileEntryDtoSourceRef } from './workingFileEntryDtoSourceRef.js';
|
|
7
7
|
export interface WorkingFileEntryDto {
|
|
8
|
+
/** @minLength 1 */
|
|
8
9
|
slug: string;
|
|
10
|
+
/** @minLength 1 */
|
|
9
11
|
path: string;
|
|
12
|
+
/** @minLength 1 */
|
|
10
13
|
format: string;
|
|
14
|
+
/** @minLength 1 */
|
|
11
15
|
syncDirection: string;
|
|
16
|
+
/** @minLength 1 */
|
|
12
17
|
sourceKind: string;
|
|
13
18
|
sourceRef: WorkingFileEntryDtoSourceRef;
|
|
14
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/llm-registry-api-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"service": "llm-registry-api",
|
|
20
20
|
"biome": "agent-runtime",
|
|
21
21
|
"target": "server",
|
|
22
|
-
"generator": "@xemahq/api-client-generator@0.
|
|
22
|
+
"generator": "@xemahq/api-client-generator@0.19.0",
|
|
23
23
|
"source": "openapi.public.json"
|
|
24
24
|
},
|
|
25
25
|
"license": "LicenseRef-Xema-BSL-1.1",
|
|
@@ -32,6 +32,30 @@
|
|
|
32
32
|
"directory": "packages/clients/llm-registry-api"
|
|
33
33
|
},
|
|
34
34
|
"description": "Generated public API client for the Xema llm-registry-api service.",
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"default": "./dist/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./models": {
|
|
41
|
+
"types": "./dist/models/index.d.ts",
|
|
42
|
+
"default": "./dist/models/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./models/*": {
|
|
45
|
+
"types": "./dist/models/*.d.ts",
|
|
46
|
+
"default": "./dist/models/*.js"
|
|
47
|
+
},
|
|
48
|
+
"./endpoints/*": {
|
|
49
|
+
"types": "./dist/endpoints/*.d.ts",
|
|
50
|
+
"default": "./dist/endpoints/*.js"
|
|
51
|
+
},
|
|
52
|
+
"./custom-fetch": {
|
|
53
|
+
"types": "./dist/custom-fetch.d.ts",
|
|
54
|
+
"default": "./dist/custom-fetch.js"
|
|
55
|
+
},
|
|
56
|
+
"./package.json": "./package.json"
|
|
57
|
+
},
|
|
58
|
+
"sideEffects": false,
|
|
35
59
|
"scripts": {
|
|
36
60
|
"build": "tsc -p tsconfig.json"
|
|
37
61
|
}
|
|
@@ -1,13 +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
|
-
export type AgentModelOverrideDtoModelClass = typeof AgentModelOverrideDtoModelClass[keyof typeof AgentModelOverrideDtoModelClass];
|
|
7
|
-
export declare const AgentModelOverrideDtoModelClass: {
|
|
8
|
-
readonly coding: "coding";
|
|
9
|
-
readonly review: "review";
|
|
10
|
-
readonly creative: "creative";
|
|
11
|
-
readonly planning: "planning";
|
|
12
|
-
readonly utility: "utility";
|
|
13
|
-
};
|
|
@@ -1,15 +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.AgentModelOverrideDtoModelClass = void 0;
|
|
9
|
-
exports.AgentModelOverrideDtoModelClass = {
|
|
10
|
-
coding: 'coding',
|
|
11
|
-
review: 'review',
|
|
12
|
-
creative: 'creative',
|
|
13
|
-
planning: 'planning',
|
|
14
|
-
utility: 'utility',
|
|
15
|
-
};
|
|
@@ -1,16 +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
|
-
* Strategy routing class. Required when targetKind=strategy.
|
|
8
|
-
*/
|
|
9
|
-
export type CreateModelResolutionRuleDtoTargetModelClass = typeof CreateModelResolutionRuleDtoTargetModelClass[keyof typeof CreateModelResolutionRuleDtoTargetModelClass];
|
|
10
|
-
export declare const CreateModelResolutionRuleDtoTargetModelClass: {
|
|
11
|
-
readonly coding: "coding";
|
|
12
|
-
readonly review: "review";
|
|
13
|
-
readonly creative: "creative";
|
|
14
|
-
readonly planning: "planning";
|
|
15
|
-
readonly utility: "utility";
|
|
16
|
-
};
|
|
@@ -1,15 +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.CreateModelResolutionRuleDtoTargetModelClass = void 0;
|
|
9
|
-
exports.CreateModelResolutionRuleDtoTargetModelClass = {
|
|
10
|
-
coding: 'coding',
|
|
11
|
-
review: 'review',
|
|
12
|
-
creative: 'creative',
|
|
13
|
-
planning: 'planning',
|
|
14
|
-
utility: 'utility',
|
|
15
|
-
};
|
|
@@ -1,13 +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
|
-
export type CreateModelStrategyEntryDtoModelClass = typeof CreateModelStrategyEntryDtoModelClass[keyof typeof CreateModelStrategyEntryDtoModelClass];
|
|
7
|
-
export declare const CreateModelStrategyEntryDtoModelClass: {
|
|
8
|
-
readonly coding: "coding";
|
|
9
|
-
readonly review: "review";
|
|
10
|
-
readonly creative: "creative";
|
|
11
|
-
readonly planning: "planning";
|
|
12
|
-
readonly utility: "utility";
|
|
13
|
-
};
|
|
@@ -1,15 +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.CreateModelStrategyEntryDtoModelClass = void 0;
|
|
9
|
-
exports.CreateModelStrategyEntryDtoModelClass = {
|
|
10
|
-
coding: 'coding',
|
|
11
|
-
review: 'review',
|
|
12
|
-
creative: 'creative',
|
|
13
|
-
planning: 'planning',
|
|
14
|
-
utility: 'utility',
|
|
15
|
-
};
|
|
@@ -1,10 +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
|
-
import type { ErrorDetailsDtoDetails } from './errorDetailsDtoDetails.js';
|
|
7
|
-
export interface ErrorDetailsDto {
|
|
8
|
-
/** @nullable */
|
|
9
|
-
details: ErrorDetailsDtoDetails;
|
|
10
|
-
}
|
|
@@ -1,11 +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
|
-
import type { ErrorDetailsDto } from './errorDetailsDto.js';
|
|
7
|
-
export interface ErrorPayloadDto {
|
|
8
|
-
code: string;
|
|
9
|
-
message: string;
|
|
10
|
-
details: ErrorDetailsDto | null;
|
|
11
|
-
}
|
|
@@ -1,13 +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
|
-
export type LlmRegistryControllerResolveForInvocationModelClass = typeof LlmRegistryControllerResolveForInvocationModelClass[keyof typeof LlmRegistryControllerResolveForInvocationModelClass];
|
|
7
|
-
export declare const LlmRegistryControllerResolveForInvocationModelClass: {
|
|
8
|
-
readonly coding: "coding";
|
|
9
|
-
readonly review: "review";
|
|
10
|
-
readonly creative: "creative";
|
|
11
|
-
readonly planning: "planning";
|
|
12
|
-
readonly utility: "utility";
|
|
13
|
-
};
|
|
@@ -1,15 +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.LlmRegistryControllerResolveForInvocationModelClass = void 0;
|
|
9
|
-
exports.LlmRegistryControllerResolveForInvocationModelClass = {
|
|
10
|
-
coding: 'coding',
|
|
11
|
-
review: 'review',
|
|
12
|
-
creative: 'creative',
|
|
13
|
-
planning: 'planning',
|
|
14
|
-
utility: 'utility',
|
|
15
|
-
};
|
|
@@ -1,34 +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
|
-
import type { LlmRegistryControllerResolveForInvocationModelClass } from './llmRegistryControllerResolveForInvocationModelClass.js';
|
|
7
|
-
import type { LlmRegistryControllerResolveForInvocationPreferredModelClass } from './llmRegistryControllerResolveForInvocationPreferredModelClass.js';
|
|
8
|
-
import type { LlmRegistryControllerResolveForInvocationPurpose } from './llmRegistryControllerResolveForInvocationPurpose.js';
|
|
9
|
-
export type LlmRegistryControllerResolveForInvocationParams = {
|
|
10
|
-
/**
|
|
11
|
-
* Per-session "smartness" preference — the matrix `modelClass` MATCHED DIMENSION (NOT an above-rules override, unlike `modelClass`). Populates `context.modelClass` so the Matrix still runs its full rule evaluation: a tier-injected managed rule selecting on `modelClass` CLAMPS the preference (a managed org can never reach a model outside its tier); an unmapped class falls through to the org default rule (safe); a BYOK org resolves directly. Not privilege-escalating — it can only match existing rules. Ignored when an explicit `modelClass`/`modelId` override is present (the override pre-empts the matrix). The route as a whole is service-actor gated.
|
|
12
|
-
*/
|
|
13
|
-
preferredModelClass?: LlmRegistryControllerResolveForInvocationPreferredModelClass;
|
|
14
|
-
/**
|
|
15
|
-
* Non-agent invocation purpose — matrix `purpose` dimension. Set by system flows that route LLM calls outside the agent/skill model (memory summarization, embedding, reorganization). Falls through to the org default rule when no purpose-specific rule exists.
|
|
16
|
-
*/
|
|
17
|
-
purpose?: LlmRegistryControllerResolveForInvocationPurpose;
|
|
18
|
-
/**
|
|
19
|
-
* Provider slug to disambiguate when the same `modelId` is credentialed under multiple providers. Optional partner to `modelId`.
|
|
20
|
-
*/
|
|
21
|
-
providerSlug?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Optional concrete-model override. When supplied (alone or with `providerSlug`), resolution pins to this credentialed model and skips the strategy cascade. Used by per-invocation overrides for `kind: concrete` model refs.
|
|
24
|
-
*/
|
|
25
|
-
modelId?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Optional strategy-class override. When supplied, resolution routes through the named modelClass directly (bypassing the agent's native class). Used by per-invocation overrides — workflow `xema/agent.with.model: { kind: strategy, modelClass: X }` and session `PATCH /sessions/:id/model` with `kind: strategy`.
|
|
28
|
-
*/
|
|
29
|
-
modelClass?: LlmRegistryControllerResolveForInvocationModelClass;
|
|
30
|
-
/**
|
|
31
|
-
* Agent slug to resolve model config for
|
|
32
|
-
*/
|
|
33
|
-
agentSlug?: string;
|
|
34
|
-
};
|
|
@@ -1,13 +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
|
-
export type LlmRegistryControllerResolveForInvocationPreferredModelClass = typeof LlmRegistryControllerResolveForInvocationPreferredModelClass[keyof typeof LlmRegistryControllerResolveForInvocationPreferredModelClass];
|
|
7
|
-
export declare const LlmRegistryControllerResolveForInvocationPreferredModelClass: {
|
|
8
|
-
readonly coding: "coding";
|
|
9
|
-
readonly review: "review";
|
|
10
|
-
readonly creative: "creative";
|
|
11
|
-
readonly planning: "planning";
|
|
12
|
-
readonly utility: "utility";
|
|
13
|
-
};
|
|
@@ -1,15 +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.LlmRegistryControllerResolveForInvocationPreferredModelClass = void 0;
|
|
9
|
-
exports.LlmRegistryControllerResolveForInvocationPreferredModelClass = {
|
|
10
|
-
coding: 'coding',
|
|
11
|
-
review: 'review',
|
|
12
|
-
creative: 'creative',
|
|
13
|
-
planning: 'planning',
|
|
14
|
-
utility: 'utility',
|
|
15
|
-
};
|
|
@@ -1,11 +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
|
-
export type LlmRegistryControllerResolveForInvocationPurpose = typeof LlmRegistryControllerResolveForInvocationPurpose[keyof typeof LlmRegistryControllerResolveForInvocationPurpose];
|
|
7
|
-
export declare const LlmRegistryControllerResolveForInvocationPurpose: {
|
|
8
|
-
readonly summarization: "summarization";
|
|
9
|
-
readonly embedding: "embedding";
|
|
10
|
-
readonly reorganization: "reorganization";
|
|
11
|
-
};
|
|
@@ -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
|
-
* SEAM #2: the strategy class the default rule had before the first override. NULL when no override is active or the prior default was not a strategy ref.
|
|
8
|
-
* @nullable
|
|
9
|
-
*/
|
|
10
|
-
export type ModelResolutionRuleResponseDtoDefaultTargetOverridePrevModelClass = typeof ModelResolutionRuleResponseDtoDefaultTargetOverridePrevModelClass[keyof typeof ModelResolutionRuleResponseDtoDefaultTargetOverridePrevModelClass] | null;
|
|
11
|
-
export declare const ModelResolutionRuleResponseDtoDefaultTargetOverridePrevModelClass: {
|
|
12
|
-
readonly coding: "coding";
|
|
13
|
-
readonly review: "review";
|
|
14
|
-
readonly creative: "creative";
|
|
15
|
-
readonly planning: "planning";
|
|
16
|
-
readonly utility: "utility";
|
|
17
|
-
};
|
|
@@ -1,15 +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.ModelResolutionRuleResponseDtoDefaultTargetOverridePrevModelClass = void 0;
|
|
9
|
-
exports.ModelResolutionRuleResponseDtoDefaultTargetOverridePrevModelClass = {
|
|
10
|
-
coding: 'coding',
|
|
11
|
-
review: 'review',
|
|
12
|
-
creative: 'creative',
|
|
13
|
-
planning: 'planning',
|
|
14
|
-
utility: 'utility',
|
|
15
|
-
};
|
|
@@ -1,16 +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
|
-
* @nullable
|
|
8
|
-
*/
|
|
9
|
-
export type ModelResolutionRuleResponseDtoTargetModelClass = typeof ModelResolutionRuleResponseDtoTargetModelClass[keyof typeof ModelResolutionRuleResponseDtoTargetModelClass] | null;
|
|
10
|
-
export declare const ModelResolutionRuleResponseDtoTargetModelClass: {
|
|
11
|
-
readonly coding: "coding";
|
|
12
|
-
readonly review: "review";
|
|
13
|
-
readonly creative: "creative";
|
|
14
|
-
readonly planning: "planning";
|
|
15
|
-
readonly utility: "utility";
|
|
16
|
-
};
|
|
@@ -1,15 +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.ModelResolutionRuleResponseDtoTargetModelClass = void 0;
|
|
9
|
-
exports.ModelResolutionRuleResponseDtoTargetModelClass = {
|
|
10
|
-
coding: 'coding',
|
|
11
|
-
review: 'review',
|
|
12
|
-
creative: 'creative',
|
|
13
|
-
planning: 'planning',
|
|
14
|
-
utility: 'utility',
|
|
15
|
-
};
|