@re-cinq/floor-contracts 0.9.0 → 0.11.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/index.d.ts +1 -1
- package/dist/wire.d.ts +24 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
*/
|
|
9
9
|
export type { AgentDefinitionBody, AgentSettings, Brief, Item, ItemKind, LineArgSpec, LineBody, LineEdge, LineNode, LineNodeReport, LineStart, ModelPrice, NeedSpec, ProduceSpec, Report, ScheduleBody, StationBody, StationKind, WhenValue, } from "./definitions.js";
|
|
10
|
-
export type { AgentPresence, AgentRecipes, BlobRef, BriefConversation, BriefNeed, BriefSettings, ClaimedEvent, ClusterHolding, ClusterPresence, ClusterRegistration, ClusterVersions, DefinitionKind, ExecutorSettings, FileNeed, GitCredential, GitNeed, McpServerSettings, PodResources, PresenceState, MigrationBody, Problem, PutResult, SubsystemVersions, ValueNeed, VisitBrief, } from "./wire.js";
|
|
10
|
+
export type { AgentPresence, AgentRecipes, BlobRef, BriefConversation, BriefNeed, BriefSettings, ClaimedEvent, ClusterHolding, ClusterPresence, ClusterRegistration, ClusterVersions, DefinitionKind, ExecutorSettings, FileNeed, GitCredential, GitNeed, McpServerSettings, PodResources, PresenceState, MigrationBody, Problem, PutResult, SubsystemVersions, ModelCatalogStatus, CatalogVendor, CatalogModel, ModelVendor, ValueNeed, VisitBrief, } from "./wire.js";
|
|
11
11
|
export type { CostsRow, DefinitionRowFields, DefinitionRowView, FloorEventFields, FloorEventView, FloorFrame, LiveFrame, RecordKind, RunFields, RunView, StationRunRecordFields, StationRunRecordView, VisitFields, VisitView, } from "./views.js";
|
package/dist/wire.d.ts
CHANGED
|
@@ -137,23 +137,47 @@ export interface AgentPresence {
|
|
|
137
137
|
state: PresenceState;
|
|
138
138
|
latest: string;
|
|
139
139
|
clusters: ClusterPresence[];
|
|
140
|
+
/** Whether the live clusters' model catalogs can run the definition's model; "unverified" when none can tell. */
|
|
141
|
+
modelAvailable: true | false | "unverified";
|
|
140
142
|
}
|
|
141
143
|
/** The agent subsystem a cluster runs, as its `agent-subsystem-versions` ConfigMap says: its release and the CLI each vendor's pod runs, by vendor (`claude`, `codex`, `gemini`, `opencode`). */
|
|
142
144
|
export interface SubsystemVersions {
|
|
143
145
|
version: string;
|
|
144
146
|
clis: Record<string, string>;
|
|
145
147
|
}
|
|
148
|
+
/** A model vendor's name as the catalog keys it (`claude`, `codex`, `gemini`, `opencode`). */
|
|
149
|
+
export type ModelVendor = string;
|
|
150
|
+
export interface CatalogModel {
|
|
151
|
+
id: string;
|
|
152
|
+
displayName: string;
|
|
153
|
+
}
|
|
154
|
+
/** One vendor's slice of a cluster's model catalog: the models its key lists, or the `error` that stopped the listing. */
|
|
155
|
+
export interface CatalogVendor {
|
|
156
|
+
vendor: ModelVendor;
|
|
157
|
+
provider: string;
|
|
158
|
+
secretRefs: string[];
|
|
159
|
+
error: string;
|
|
160
|
+
models: CatalogModel[];
|
|
161
|
+
}
|
|
162
|
+
/** The status of the `ModelCatalog default` a cluster publishes. */
|
|
163
|
+
export interface ModelCatalogStatus {
|
|
164
|
+
refreshedAt: string;
|
|
165
|
+
vendors: CatalogVendor[];
|
|
166
|
+
}
|
|
146
167
|
/** `PUT /clusters/{id}`: what a cluster agent sends each time it registers. `build` and `subsystem` are absent from an older agent; `subsystem` is null when the cluster's ConfigMap could not be read. */
|
|
147
168
|
export interface ClusterRegistration {
|
|
148
169
|
tags: string[];
|
|
149
170
|
build?: string;
|
|
150
171
|
subsystem?: SubsystemVersions | null;
|
|
172
|
+
models?: ModelCatalogStatus | null;
|
|
151
173
|
}
|
|
152
174
|
/** One live cluster on `GET /version`: the cluster agent's build and the subsystem it last reported. */
|
|
153
175
|
export interface ClusterVersions {
|
|
154
176
|
id: string;
|
|
155
177
|
build: string | null;
|
|
156
178
|
subsystem: SubsystemVersions | null;
|
|
179
|
+
/** The status of its subsystem's `ModelCatalog default`: the models it can run; null when the agent could not read it. */
|
|
180
|
+
models: ModelCatalogStatus | null;
|
|
157
181
|
lastSeenAt: string;
|
|
158
182
|
}
|
|
159
183
|
/** `GET /agent-definitions/{id}/clusters`: what one cluster read back out of its kube. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@re-cinq/floor-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "The floor's wire, as types: what its HTTP routes and its live socket take and answer, and nothing else. No runtime, no dependencies.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|