@re-cinq/floor-client 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/client.d.ts +5 -3
- package/dist/client.js +2 -2
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentDefinitionBody, AgentPresence, AgentRecipes, ClusterHolding, LineBody, MigrationBody, PutResult, ScheduleBody, StationBody, DefinitionRowView, FloorEventView } from "@re-cinq/floor-contracts";
|
|
1
|
+
import type { AgentDefinitionBody, AgentPresence, AgentRecipes, ClusterHolding, ClusterRegistration, ClusterVersions, LineBody, MigrationBody, PutResult, ScheduleBody, StationBody, DefinitionRowView, FloorEventView } from "@re-cinq/floor-contracts";
|
|
2
2
|
import { type BlobsApi, type ConversationApi } from "./blobs.js";
|
|
3
3
|
import { type DefinitionApi } from "./definitions.js";
|
|
4
4
|
import { type EventsApi } from "./events.js";
|
|
@@ -28,8 +28,8 @@ export interface AgentDefinitionsApi extends DefinitionApi<AgentDefinitionBody>
|
|
|
28
28
|
recipes(id: string): Promise<AgentRecipes<AgentDefinitionBody> | null>;
|
|
29
29
|
}
|
|
30
30
|
export interface ClustersApi {
|
|
31
|
-
/** Registers this cluster, or tells the floor it is still there. */
|
|
32
|
-
register(id: string,
|
|
31
|
+
/** Registers this cluster, or tells the floor it is still there, with what it runs. */
|
|
32
|
+
register(id: string, registration: ClusterRegistration): Promise<void>;
|
|
33
33
|
}
|
|
34
34
|
export interface SchedulesApi extends DefinitionApi<ScheduleBody> {
|
|
35
35
|
/** Posts this schedule's event now, without waiting for its cron. */
|
|
@@ -46,6 +46,8 @@ export interface Version {
|
|
|
46
46
|
schemaVersion: number;
|
|
47
47
|
/** Every replica serves; only the one holding the floor's lease runs its loop. */
|
|
48
48
|
runsLoop: boolean;
|
|
49
|
+
/** The clusters seen within the last few minutes, with the cluster agent's build and the agent subsystem each last reported. */
|
|
50
|
+
clusters: ClusterVersions[];
|
|
49
51
|
}
|
|
50
52
|
export interface HealthApi {
|
|
51
53
|
live(): Promise<boolean>;
|
package/dist/client.js
CHANGED
|
@@ -13,8 +13,8 @@ export function createFloorClient(access) {
|
|
|
13
13
|
stations: definitionApi(floor, "stations"),
|
|
14
14
|
agentDefinitions: agentDefinitionsApi(floor),
|
|
15
15
|
clusters: {
|
|
16
|
-
register: async (id,
|
|
17
|
-
await done(floor, { method: "PUT", path: `/clusters/${id}`, body:
|
|
16
|
+
register: async (id, registration) => {
|
|
17
|
+
await done(floor, { method: "PUT", path: `/clusters/${id}`, body: registration });
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
20
|
schedules: { ...definitionApi(floor, "schedules"), trigger: (id) => asked(floor, { method: "POST", path: `/schedules/${id}/trigger` }, [HTTP_NOT_FOUND]) },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@re-cinq/floor-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "The floor over HTTP and its live socket, typed: definitions, runs, visits, blobs, events, schedules and costs, plus a watch that replays a run from a cursor and reconnects without losing a frame.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"typecheck": "tsc --noEmit"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@re-cinq/floor-contracts": "0.
|
|
48
|
+
"@re-cinq/floor-contracts": "0.5.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/node": "^22.20.1",
|