@re-cinq/floor-station 0.1.9 → 0.1.10
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/README.md +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/visit.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ why the picture in [the map](https://github.com/re-cinq/floor/blob/main/README.m
|
|
|
35
35
|
| | |
|
|
36
36
|
|---|---|
|
|
37
37
|
| claims | the dispatches tagged `station:<name>`, and only those |
|
|
38
|
-
| the brief | each need by name: a value as its text, a file as an address, a repo as `url@ref` |
|
|
38
|
+
| the brief | `visitId`, `runId`, `lineId`, `nodeId`, `iteration`, and each need by name: a value as its text, a file as an address, a repo as `url@ref`. Key what must survive a retried visit on `runId`, and add `nodeId` when the state belongs to one node of the line rather than the whole run |
|
|
39
39
|
| `tools.read(need)` | the bytes of a file need |
|
|
40
40
|
| `tools.produce(name, bytes)` | stores a file with the floor and names it in the report |
|
|
41
41
|
| `tools.modelCall(call)` | records a model call, so the floor's costs count it |
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export interface Brief {
|
|
2
2
|
visitId: string;
|
|
3
|
+
/** The assembly run this visit belongs to: what to key on, so a retried visit finds what the first one stored. */
|
|
4
|
+
runId: string;
|
|
5
|
+
/** The assembly line that run walks. */
|
|
6
|
+
lineId: string;
|
|
7
|
+
/** The node of that line this visit is a pass at. A line may visit one station at two nodes, so state kept per node is keyed on this beside `runId`. */
|
|
8
|
+
nodeId: string;
|
|
3
9
|
iteration: number;
|
|
4
10
|
/** Each need by name: a value as its text, a file as the address `tools.read` fetches, a repo as `url@ref`. */
|
|
5
11
|
needs: Record<string, string>;
|
package/dist/visit.js
CHANGED
|
@@ -20,7 +20,7 @@ async function handled(handle, brief, tools) {
|
|
|
20
20
|
}
|
|
21
21
|
function briefOf(fetched) {
|
|
22
22
|
const needs = fetched.needs.map((need) => [need.name, textOf(need)]);
|
|
23
|
-
return { visitId: fetched.visitId, iteration: fetched.iteration, needs: Object.fromEntries(needs) };
|
|
23
|
+
return { visitId: fetched.visitId, runId: fetched.runId, lineId: fetched.lineId, nodeId: fetched.nodeId, iteration: fetched.iteration, needs: Object.fromEntries(needs) };
|
|
24
24
|
}
|
|
25
25
|
function textOf(need) {
|
|
26
26
|
if (need.kind === "value")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@re-cinq/floor-station",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "The floor's service station SDK: defineStation(name, handle) claims the station's dispatches from a floor's queue, hands each to one function as a brief, and posts what it returns as the visit's report. A station needs only a way out to the floor; the floor never calls it.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"typecheck": "tsc --noEmit"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@re-cinq/floor-client": "0.1.
|
|
49
|
-
"@re-cinq/floor-contracts": "0.1.
|
|
48
|
+
"@re-cinq/floor-client": "0.1.10",
|
|
49
|
+
"@re-cinq/floor-contracts": "0.1.10"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "^22.20.1",
|