@re-cinq/floor-contracts 0.8.0 → 0.9.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 +8 -0
- package/dist/wire.d.ts +9 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Floor contracts describe the data exchanged by its [HTTP API](/floor/reference/http-api/)
|
|
3
|
+
* and live connections. Use them to type your own integrations, from a visit report to a
|
|
4
|
+
* notification about an [assembly run](/floor/concepts/assembly-run/). The package exports
|
|
5
|
+
* TypeScript types only. The [Client SDK](/floor/sdk/client/) provides the HTTP and socket operations.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
1
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";
|
|
2
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";
|
|
3
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
|
@@ -46,11 +46,18 @@ export interface McpServerSettings {
|
|
|
46
46
|
args?: string[];
|
|
47
47
|
url?: string;
|
|
48
48
|
headersSecret?: string;
|
|
49
|
+
/** http and sse: asks for a gateway token, and holds none. The floor signs one for each visit, a JWT for this server that arrives in `VisitBrief.serverTokens`, and the pod presents it in place of a header kept in a secret. Never beside `headersSecret`. Not the visit token (`VisitBrief.token`, `visitToken()` of `@re-cinq/floor-client`), the HMAC token a visit presents to the floor's own routes. */
|
|
50
|
+
visitToken?: GatewayTokenSettings;
|
|
49
51
|
/** http and sse: headers whose values the pod reads from the cluster's agent-secrets, by key. */
|
|
50
52
|
headers?: SecretRef[];
|
|
51
53
|
/** stdio: env vars of the server process, valued the same way. */
|
|
52
54
|
env?: SecretRef[];
|
|
53
55
|
}
|
|
56
|
+
/** Who a gateway token is for, and what it may do there. Both are the server's own words: the floor signs them and reads neither. */
|
|
57
|
+
export interface GatewayTokenSettings {
|
|
58
|
+
audience: string;
|
|
59
|
+
scopes: string[];
|
|
60
|
+
}
|
|
54
61
|
export interface SecretRef {
|
|
55
62
|
name: string;
|
|
56
63
|
ref: string;
|
|
@@ -96,6 +103,8 @@ export interface VisitBrief {
|
|
|
96
103
|
produces: ProduceSpec[];
|
|
97
104
|
conversation: BriefConversation;
|
|
98
105
|
modelSecretKey?: string;
|
|
106
|
+
/** One gateway token for each MCP server whose settings carry `visitToken`, by the server's name. Absent when none asks. */
|
|
107
|
+
serverTokens?: Record<string, string>;
|
|
99
108
|
}
|
|
100
109
|
interface ClaimedFields {
|
|
101
110
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@re-cinq/floor-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.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": {
|