@re-cinq/floor-contracts 0.4.0 → 0.5.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 +26 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export type { AgentDefinitionBody, AgentSettings, Brief, Item, ItemKind, LineArgSpec, LineBody, LineEdge, LineNode, LineNodeReport, LineStart, ModelPrice, NeedSpec, ProduceSpec, Report, ScheduleBody, StationBody, StationKind, WhenValue, } from "./definitions.js";
|
|
2
|
-
export type { AgentPresence, AgentRecipes, BlobRef, BriefConversation, BriefNeed, BriefSettings, ClaimedEvent, ClusterHolding, ClusterPresence, DefinitionKind, ExecutorSettings, FileNeed, GitCredential, GitNeed, McpServerSettings, PodResources, PresenceState, MigrationBody, Problem, PutResult, ValueNeed, VisitBrief, } from "./wire.js";
|
|
2
|
+
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";
|
|
3
3
|
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
|
@@ -46,6 +46,14 @@ export interface McpServerSettings {
|
|
|
46
46
|
args?: string[];
|
|
47
47
|
url?: string;
|
|
48
48
|
headersSecret?: string;
|
|
49
|
+
/** http and sse: headers whose values the pod reads from the cluster's agent-secrets, by key. */
|
|
50
|
+
headers?: SecretRef[];
|
|
51
|
+
/** stdio: env vars of the server process, valued the same way. */
|
|
52
|
+
env?: SecretRef[];
|
|
53
|
+
}
|
|
54
|
+
export interface SecretRef {
|
|
55
|
+
name: string;
|
|
56
|
+
ref: string;
|
|
49
57
|
}
|
|
50
58
|
/** An agent definition's `config`, under the names the wire uses rather than the snake_case a definition is authored in. */
|
|
51
59
|
export interface ExecutorSettings {
|
|
@@ -121,6 +129,24 @@ export interface AgentPresence {
|
|
|
121
129
|
latest: string;
|
|
122
130
|
clusters: ClusterPresence[];
|
|
123
131
|
}
|
|
132
|
+
/** 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`). */
|
|
133
|
+
export interface SubsystemVersions {
|
|
134
|
+
version: string;
|
|
135
|
+
clis: Record<string, string>;
|
|
136
|
+
}
|
|
137
|
+
/** `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. */
|
|
138
|
+
export interface ClusterRegistration {
|
|
139
|
+
tags: string[];
|
|
140
|
+
build?: string;
|
|
141
|
+
subsystem?: SubsystemVersions | null;
|
|
142
|
+
}
|
|
143
|
+
/** One live cluster on `GET /version`: the cluster agent's build and the subsystem it last reported. */
|
|
144
|
+
export interface ClusterVersions {
|
|
145
|
+
id: string;
|
|
146
|
+
build: string | null;
|
|
147
|
+
subsystem: SubsystemVersions | null;
|
|
148
|
+
lastSeenAt: string;
|
|
149
|
+
}
|
|
124
150
|
/** `GET /agent-definitions/{id}/clusters`: what one cluster read back out of its kube. */
|
|
125
151
|
export interface ClusterHolding<Body = unknown> {
|
|
126
152
|
clusterId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@re-cinq/floor-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.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": {
|