@fleetless/contracts 9.0.0 → 9.1.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/CHANGELOG.md +21 -0
- package/artifacts/openapi.json +20 -20
- package/artifacts/routes.json +27 -4
- package/artifacts/schema/action-config.schema.json +2 -2
- package/artifacts/schema/cloud-config.schema.json +8 -8
- package/artifacts/schema/config-draft-response.schema.json +8 -8
- package/artifacts/schema/config-version-response.schema.json +8 -8
- package/artifacts/schema/datapoint-config.schema.json +3 -3
- package/artifacts/schema/parameter-spec.schema.json +1 -1
- package/artifacts/schema/publisher-config.schema.json +1 -1
- package/artifacts/schema/robot-config-doc.schema.json +8 -8
- package/artifacts/schema/service-config.schema.json +1 -1
- package/artifacts/schema/support-renew-fail-refusal.schema.json +141 -0
- package/artifacts/schema/support-renew-fail-request.schema.json +28 -0
- package/dist/client-robots.d.ts +1 -1
- package/dist/client-robots.js +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +7 -7
- package/dist/errors.js +19 -15
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/mcp.d.ts +13 -10
- package/dist/mcp.js +13 -10
- package/dist/routes.js +31 -6
- package/dist/support.d.ts +42 -0
- package/dist/support.js +15 -0
- package/package.json +1 -1
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
]
|
|
128
128
|
},
|
|
129
129
|
"description": {
|
|
130
|
-
"description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `
|
|
130
|
+
"description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robots.describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
|
|
131
131
|
"examples": [
|
|
132
132
|
"What a caller is choosing when they set this."
|
|
133
133
|
],
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"const": "keep"
|
|
112
112
|
},
|
|
113
113
|
"description": {
|
|
114
|
-
"description": "Prose about what this value is, for whoever meets it in the console. It changes nothing the robot does, so a publish that touches only it pushes no configuration at all — but it is carried verbatim into `
|
|
114
|
+
"description": "Prose about what this value is, for whoever meets it in the console. It changes nothing the robot does, so a publish that touches only it pushes no configuration at all — but it is carried verbatim into `robots.describe`, where a model that has never seen this robot reads it. The datapoint is offered whenever the role grants it; without one it is offered with `description: null` and the model has less to go on, as for actions, services, publishers and cameras. Omission is the only way to say nothing; an empty string is refused, here and on all five.",
|
|
115
115
|
"examples": [
|
|
116
116
|
"What this value is, for whoever meets it in the console."
|
|
117
117
|
],
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"unit": {
|
|
140
140
|
"type": "string",
|
|
141
141
|
"maxLength": 32,
|
|
142
|
-
"description": "The unit of the value **after** `scale` and `offset`, not the robot's own. It is shown beside the value and carried by `
|
|
142
|
+
"description": "The unit of the value **after** `scale` and `offset`, not the robot's own. It is shown beside the value and carried by `robots.describe` as its own field, so a model does not have to guess whether 15 means percent, volts or minutes.",
|
|
143
143
|
"examples": [
|
|
144
144
|
"%"
|
|
145
145
|
]
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"type": "integer",
|
|
149
149
|
"minimum": 0,
|
|
150
150
|
"maximum": 6,
|
|
151
|
-
"description": "How many fraction digits the console shows the value with — value tile, chart axis and tooltip, and the datapoint detail page — and the number `
|
|
151
|
+
"description": "How many fraction digits the console shows the value with — value tile, chart axis and tooltip, and the datapoint detail page — and the number `robots.describe` reports as its own field, so a model formats the value the way the console does. Presentation only: the stored value keeps the precision it arrived with, and absent means the console's own default rather than zero.",
|
|
152
152
|
"examples": [
|
|
153
153
|
1
|
|
154
154
|
]
|
|
@@ -609,7 +609,7 @@
|
|
|
609
609
|
]
|
|
610
610
|
},
|
|
611
611
|
"description": {
|
|
612
|
-
"description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `
|
|
612
|
+
"description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robots.describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
|
|
613
613
|
"examples": [
|
|
614
614
|
"What a caller is choosing when they set this."
|
|
615
615
|
],
|
|
@@ -652,7 +652,7 @@
|
|
|
652
652
|
]
|
|
653
653
|
},
|
|
654
654
|
"description": {
|
|
655
|
-
"description": "What this action does, in the developer's own words — documentation for the console and for MCP clients, which is all it is: the robot does nothing with it. It is carried verbatim into `
|
|
655
|
+
"description": "What this action does, in the developer's own words — documentation for the console and for MCP clients, which is all it is: the robot does nothing with it. It is carried verbatim into `robots.describe` and read by a model that has never seen this robot. The action is offered whenever the role grants it; without one it is offered with `description: null`, and the model has nothing but the slug.",
|
|
656
656
|
"examples": [
|
|
657
657
|
"Drives to a target pose on the map."
|
|
658
658
|
],
|
|
@@ -830,7 +830,7 @@
|
|
|
830
830
|
]
|
|
831
831
|
},
|
|
832
832
|
"description": {
|
|
833
|
-
"description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `
|
|
833
|
+
"description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robots.describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
|
|
834
834
|
"examples": [
|
|
835
835
|
"What a caller is choosing when they set this."
|
|
836
836
|
],
|
|
@@ -1051,7 +1051,7 @@
|
|
|
1051
1051
|
]
|
|
1052
1052
|
},
|
|
1053
1053
|
"description": {
|
|
1054
|
-
"description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `
|
|
1054
|
+
"description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robots.describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
|
|
1055
1055
|
"examples": [
|
|
1056
1056
|
"What a caller is choosing when they set this."
|
|
1057
1057
|
],
|
|
@@ -1554,7 +1554,7 @@
|
|
|
1554
1554
|
]
|
|
1555
1555
|
},
|
|
1556
1556
|
"description": {
|
|
1557
|
-
"description": "What this camera shows, in the developer's own words — documentation for whoever reads the configuration, for the console and for MCP clients; the robot does nothing with it. A camera without one is still offered, with `description: null`, as for actions, services and publishers. What `
|
|
1557
|
+
"description": "What this camera shows, in the developer's own words — documentation for whoever reads the configuration, for the console and for MCP clients; the robot does nothing with it. A camera without one is still offered, with `description: null`, as for actions, services and publishers. What `camera.snapshot` serves is the latest snapshot with its age; a live session is never a tool.",
|
|
1558
1558
|
"examples": [
|
|
1559
1559
|
"Forward-facing camera on the mast."
|
|
1560
1560
|
],
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
]
|
|
128
128
|
},
|
|
129
129
|
"description": {
|
|
130
|
-
"description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `
|
|
130
|
+
"description": "What this parameter means, in the developer's own words, and documentation only — the robot does nothing with it. It travels into the input schema `robots.describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.",
|
|
131
131
|
"examples": [
|
|
132
132
|
"What a caller is choosing when they set this."
|
|
133
133
|
],
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"anyOf": [
|
|
4
|
+
{
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"code": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "validation_error"
|
|
10
|
+
},
|
|
11
|
+
"message": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"minLength": 1
|
|
14
|
+
},
|
|
15
|
+
"details": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"rule": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"const": "invalid_flow"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": [
|
|
24
|
+
"rule"
|
|
25
|
+
],
|
|
26
|
+
"additionalProperties": false
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"code",
|
|
31
|
+
"message",
|
|
32
|
+
"details"
|
|
33
|
+
],
|
|
34
|
+
"additionalProperties": false
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "object",
|
|
38
|
+
"properties": {
|
|
39
|
+
"code": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"const": "unauthorized"
|
|
42
|
+
},
|
|
43
|
+
"message": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"minLength": 1
|
|
46
|
+
},
|
|
47
|
+
"details": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"properties": {
|
|
50
|
+
"rule": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"const": "invalid_authority"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"rule"
|
|
57
|
+
],
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": [
|
|
62
|
+
"code",
|
|
63
|
+
"message",
|
|
64
|
+
"details"
|
|
65
|
+
],
|
|
66
|
+
"additionalProperties": false
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "object",
|
|
70
|
+
"properties": {
|
|
71
|
+
"code": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"const": "not_found"
|
|
74
|
+
},
|
|
75
|
+
"message": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"minLength": 1
|
|
78
|
+
},
|
|
79
|
+
"details": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"rule": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"enum": [
|
|
85
|
+
"invalid_flow",
|
|
86
|
+
"identity_mismatch"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": [
|
|
91
|
+
"rule"
|
|
92
|
+
],
|
|
93
|
+
"additionalProperties": false
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": [
|
|
97
|
+
"code",
|
|
98
|
+
"message",
|
|
99
|
+
"details"
|
|
100
|
+
],
|
|
101
|
+
"additionalProperties": false
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"type": "object",
|
|
105
|
+
"properties": {
|
|
106
|
+
"code": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"const": "target_state_conflict"
|
|
109
|
+
},
|
|
110
|
+
"message": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"minLength": 1
|
|
113
|
+
},
|
|
114
|
+
"details": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"properties": {
|
|
117
|
+
"rule": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"enum": [
|
|
120
|
+
"expired",
|
|
121
|
+
"replayed",
|
|
122
|
+
"session_inactive",
|
|
123
|
+
"stale_generation"
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"required": [
|
|
128
|
+
"rule"
|
|
129
|
+
],
|
|
130
|
+
"additionalProperties": false
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"required": [
|
|
134
|
+
"code",
|
|
135
|
+
"message",
|
|
136
|
+
"details"
|
|
137
|
+
],
|
|
138
|
+
"additionalProperties": false
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"flow_id": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"format": "uuid",
|
|
8
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
9
|
+
"description": "The pending Cloud renewal flow created with the original support bearer."
|
|
10
|
+
},
|
|
11
|
+
"code_verifier": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"pattern": "^[A-Za-z0-9._~-]{43,128}$",
|
|
14
|
+
"description": "The server-held RFC 7636 verifier matching the flow's S256 challenge; never sent to the browser."
|
|
15
|
+
},
|
|
16
|
+
"reason": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"const": "authority_failed",
|
|
19
|
+
"description": "A fixed category; browser and IdP error text is not forwarded."
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"flow_id",
|
|
24
|
+
"code_verifier",
|
|
25
|
+
"reason"
|
|
26
|
+
],
|
|
27
|
+
"additionalProperties": false
|
|
28
|
+
}
|
package/dist/client-robots.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
/**
|
|
4
4
|
* One robot as `GET /api/client/robots` lists it — the REST twin of the MCP
|
|
5
|
-
*
|
|
5
|
+
* action `robots.list`, and the one robot question no robot-scoped route can
|
|
6
6
|
* answer: which robots may I name at all.
|
|
7
7
|
*
|
|
8
8
|
* Deliberately not `robotListItem`: that one carries `exposes`, the per-kind
|
package/dist/client-robots.js
CHANGED
|
@@ -5,7 +5,7 @@ import { robot } from './rest.js';
|
|
|
5
5
|
/* ------------------------------------------ the robots an app user reaches */
|
|
6
6
|
/**
|
|
7
7
|
* One robot as `GET /api/client/robots` lists it — the REST twin of the MCP
|
|
8
|
-
*
|
|
8
|
+
* action `robots.list`, and the one robot question no robot-scoped route can
|
|
9
9
|
* answer: which robots may I name at all.
|
|
10
10
|
*
|
|
11
11
|
* Deliberately not `robotListItem`: that one carries `exposes`, the per-kind
|
package/dist/config.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
/**
|
|
4
4
|
* What an exposed service *is*, in the developer's own words.
|
|
5
5
|
*
|
|
6
|
-
* This is what `
|
|
6
|
+
* This is what `robots.describe` carries verbatim, so it is read by a model
|
|
7
7
|
* that has never seen this robot and cannot ask a follow-up question.
|
|
8
8
|
* `unit` and `range` already say what a number *is*; this says what it
|
|
9
9
|
* *means*.
|
package/dist/config.js
CHANGED
|
@@ -362,7 +362,7 @@ const underSlug = (slugKey, snippet) => ({ ...snippet, body: { [slugKey]: snippe
|
|
|
362
362
|
/**
|
|
363
363
|
* What an exposed service *is*, in the developer's own words.
|
|
364
364
|
*
|
|
365
|
-
* This is what `
|
|
365
|
+
* This is what `robots.describe` carries verbatim, so it is read by a model
|
|
366
366
|
* that has never seen this robot and cannot ask a follow-up question.
|
|
367
367
|
* `unit` and `range` already say what a number *is*; this says what it
|
|
368
368
|
* *means*.
|
|
@@ -523,7 +523,7 @@ export const parameterSpec = strictObject({
|
|
|
523
523
|
examples: ['^[a-z_]+$'],
|
|
524
524
|
}).optional(),
|
|
525
525
|
description: parameterDescription.meta({
|
|
526
|
-
description: 'What this parameter means, in the developer\'s own words, and documentation only — the robot does nothing with it. It travels into the input schema `
|
|
526
|
+
description: 'What this parameter means, in the developer\'s own words, and documentation only — the robot does nothing with it. It travels into the input schema `robots.describe` publishes for this call, beside the bounds, so `type` and the range say what the value *is* and this is the only place that says what it *does*.',
|
|
527
527
|
/** The sentence `PARAMETER_SNIPPET` already places here, verbatim. */
|
|
528
528
|
examples: ['What a caller is choosing when they set this.'],
|
|
529
529
|
}),
|
|
@@ -832,11 +832,11 @@ export const datapointNumeric = strictObject({
|
|
|
832
832
|
examples: [-273.15],
|
|
833
833
|
}).optional(),
|
|
834
834
|
unit: z.string().max(32).meta({
|
|
835
|
-
description: 'The unit of the value **after** `scale` and `offset`, not the robot\'s own. It is shown beside the value and carried by `
|
|
835
|
+
description: 'The unit of the value **after** `scale` and `offset`, not the robot\'s own. It is shown beside the value and carried by `robots.describe` as its own field, so a model does not have to guess whether 15 means percent, volts or minutes.',
|
|
836
836
|
examples: ['%'],
|
|
837
837
|
}).optional(),
|
|
838
838
|
decimals: z.number().int().min(0).max(6).meta({
|
|
839
|
-
description: 'How many fraction digits the console shows the value with — value tile, chart axis and tooltip, and the datapoint detail page — and the number `
|
|
839
|
+
description: 'How many fraction digits the console shows the value with — value tile, chart axis and tooltip, and the datapoint detail page — and the number `robots.describe` reports as its own field, so a model formats the value the way the console does. Presentation only: the stored value keeps the precision it arrived with, and absent means the console\'s own default rather than zero.',
|
|
840
840
|
examples: [1],
|
|
841
841
|
}).optional(),
|
|
842
842
|
});
|
|
@@ -995,7 +995,7 @@ export const datapointConfig = strictObject({
|
|
|
995
995
|
description: '`keep` exempts this datapoint from the low-bandwidth rate cap; its backfill still pauses.',
|
|
996
996
|
}),
|
|
997
997
|
description: serviceDescription.meta({
|
|
998
|
-
description: 'Prose about what this value is, for whoever meets it in the console. It changes nothing the robot does, so a publish that touches only it pushes no configuration at all — but it is carried verbatim into `
|
|
998
|
+
description: 'Prose about what this value is, for whoever meets it in the console. It changes nothing the robot does, so a publish that touches only it pushes no configuration at all — but it is carried verbatim into `robots.describe`, where a model that has never seen this robot reads it. The datapoint is offered whenever the role grants it; without one it is offered with `description: null` and the model has less to go on, as for actions, services, publishers and cameras. Omission is the only way to say nothing; an empty string is refused, here and on all five.',
|
|
999
999
|
/**
|
|
1000
1000
|
* The sentence both datapoint snippets already place here, verbatim. Its
|
|
1001
1001
|
* four siblings — an action's, a service's, a publisher's, a camera's —
|
|
@@ -1352,7 +1352,7 @@ export const actionConfig = strictObject({
|
|
|
1352
1352
|
message: messageBody.optional(),
|
|
1353
1353
|
parameters: parameterMap.optional(),
|
|
1354
1354
|
description: serviceDescription.meta({
|
|
1355
|
-
description: 'What this action does, in the developer\'s own words — documentation for the console and for MCP clients, which is all it is: the robot does nothing with it. It is carried verbatim into `
|
|
1355
|
+
description: 'What this action does, in the developer\'s own words — documentation for the console and for MCP clients, which is all it is: the robot does nothing with it. It is carried verbatim into `robots.describe` and read by a model that has never seen this robot. The action is offered whenever the role grants it; without one it is offered with `description: null`, and the model has nothing but the slug.',
|
|
1356
1356
|
examples: ['Drives to a target pose on the map.'],
|
|
1357
1357
|
}),
|
|
1358
1358
|
}).meta({
|
|
@@ -1853,7 +1853,7 @@ export const cameraConfig = strictObject({
|
|
|
1853
1853
|
examples: [5],
|
|
1854
1854
|
}),
|
|
1855
1855
|
description: serviceDescription.meta({
|
|
1856
|
-
description: 'What this camera shows, in the developer\'s own words — documentation for whoever reads the configuration, for the console and for MCP clients; the robot does nothing with it. A camera without one is still offered, with `description: null`, as for actions, services and publishers. What `
|
|
1856
|
+
description: 'What this camera shows, in the developer\'s own words — documentation for whoever reads the configuration, for the console and for MCP clients; the robot does nothing with it. A camera without one is still offered, with `description: null`, as for actions, services and publishers. What `camera.snapshot` serves is the latest snapshot with its age; a live session is never a tool.',
|
|
1857
1857
|
examples: ['Forward-facing camera on the mast.'],
|
|
1858
1858
|
}),
|
|
1859
1859
|
}).meta({
|
package/dist/errors.js
CHANGED
|
@@ -307,28 +307,32 @@ export const ERROR_CODES = [
|
|
|
307
307
|
*/
|
|
308
308
|
'cancel_rejected',
|
|
309
309
|
/**
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
*
|
|
310
|
+
* `Job.error.code` on `lost` when a terminal goal status was observed but
|
|
311
|
+
* its result could not be recovered within the bounded wait, or when the
|
|
312
|
+
* bridge or cloud establishes loss without a more specific cause. The
|
|
313
|
+
* message says which path occurred. Distinct from `action_server_lost`
|
|
314
|
+
* (server disappearance before terminal status) and
|
|
315
|
+
* `job_unknown_to_bridge` (confirmed not-known job).
|
|
314
316
|
*/
|
|
315
317
|
'job_lost',
|
|
316
318
|
/**
|
|
317
|
-
* The bridge does not know this job
|
|
318
|
-
*
|
|
319
|
-
* bridge cannot attribute is active on the job's action any
|
|
320
|
-
* of them can be it. A `job.error.code` on `lost`, final:
|
|
321
|
-
* job the bridge has no word about ends. A service job,
|
|
322
|
-
* at, gets it as soon as the bridge does not
|
|
319
|
+
* The bridge confirms it does not know this job after reconciliation,
|
|
320
|
+
* rather than merely omitting it from `hello.active_jobs`. For an action,
|
|
321
|
+
* no goal the bridge cannot attribute is active on the job's action any
|
|
322
|
+
* more, so none of them can be it. A `job.error.code` on `lost`, final:
|
|
323
|
+
* how an `unknown` job the bridge has no word about ends. A service job,
|
|
324
|
+
* which has no goals to look at, gets it as soon as the bridge does not
|
|
325
|
+
* know it; so does a job whose
|
|
323
326
|
* persisted goal the action server no longer knows (its result expired).
|
|
324
|
-
* Distinct from `job_lost`,
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
+
* Distinct from `job_lost`, which needs no more specific cause, and from
|
|
328
|
+
* `bridge_disconnected`/`bridge_timeout`, the cloud's guesses that make
|
|
329
|
+
* a job `unknown` in the first place.
|
|
327
330
|
*/
|
|
328
331
|
'job_unknown_to_bridge',
|
|
329
332
|
/**
|
|
330
|
-
* The robot's action server vanished
|
|
331
|
-
* check found `server_is_ready()` false for
|
|
333
|
+
* The robot's action server vanished before reporting terminal status —
|
|
334
|
+
* the bridge's own liveness check found `server_is_ready()` false for
|
|
335
|
+
* three seconds straight and
|
|
332
336
|
* gave up waiting for it to come back. A `job.error.code` on `lost`: the
|
|
333
337
|
* outcome the goal actually reached is unknown, so `lost` — not `failed` —
|
|
334
338
|
* is the honest state, and this code says why.
|
package/dist/index.d.ts
CHANGED
|
@@ -33,8 +33,8 @@ export { password, org, patchOrgResponse, sessionTokens, refreshRequest, WAITLIS
|
|
|
33
33
|
export type { Org, PatchOrgResponse, SessionTokens, RefreshRequest, WaitlistRequest, OrgAdminTier, FleetlessUser, FleetlessUserListResponse, CreateTeamInviteRequest, TeamInvite, PendingTeamInvite, PendingTeamInviteListResponse, AcceptTeamInviteRequest, PatchFleetlessUserRequest, TierChangeRequest, MailStatus, TierRequiredDetails, PasswordChangeRequest, IdpIssuer, TwoFactorSetupResponse, WebauthnOptionsResponse, DeveloperPasskey, DeveloperTwoFactor, CreatePasskeyRequest, CreatePasskeyResponse, RenamePasskeyRequest, TotpConfirmRequest, TotpConfirmResponse, RecoveryCodesResponse, AuthMeResponse, PatchOrgRequest, PatchAuthMeRequest, } from './identity.js';
|
|
34
34
|
export { FEEDBACK_KINDS, FEEDBACK_MESSAGE_MAX, feedbackKind, feedbackRequest, feedbackResponse } from './feedback.js';
|
|
35
35
|
export type { FeedbackKind, FeedbackRequest, FeedbackResponse } from './feedback.js';
|
|
36
|
-
export { supportSessionInfo, supportTokenRequest, supportTokenResponse, authMeSupportResponse } from './support.js';
|
|
37
|
-
export type { SupportSessionInfo, SupportTokenRequest, SupportTokenResponse, AuthMeSupportResponse } from './support.js';
|
|
36
|
+
export { supportSessionInfo, supportTokenRequest, supportTokenResponse, supportRenewFailRequest, supportRenewFailRefusal, authMeSupportResponse } from './support.js';
|
|
37
|
+
export type { SupportSessionInfo, SupportTokenRequest, SupportTokenResponse, SupportRenewFailRequest, SupportRenewFailRefusal, AuthMeSupportResponse } from './support.js';
|
|
38
38
|
export { appIdentifier, app, appListResponse, appDeletionSummary, createAppRequest, updateAppRequest, serverKeyToken, serverKey, serverKeyListResponse, createServerKeyResponse, role, roleListResponse, rolePermissions, roleRenameRequest, roleDeleteQuery, roleInUseDetails, } from './apps.js';
|
|
39
39
|
export type { App, AppListResponse, AppDeletionSummary, CreateAppRequest, UpdateAppRequest, ServerKey, ServerKeyListResponse, CreateServerKeyResponse, Role, RoleListResponse, RolePermissions, RoleRenameRequest, RoleDeleteQuery, RoleInUseDetails, } from './apps.js';
|
|
40
40
|
export { clientLoginRequest, clientRefreshRequest, clientLogoutRequest, clientRegisterRequest, clientVerifyEmailRequest, clientResendVerificationRequest, clientPasswordResetRequest, clientPasswordResetConfirmRequest, clientAcceptInvitationRequest, CLIENT_OIDC_CALLBACK_PATH, clientProviderListQuery, clientProviderListResponse, clientOidcStartQuery, clientOidcCallbackQuery, clientOidcExchangeRequest, clientOidcErrorCode, clientMcpInteraction, clientMcpInteractionDecisionResponse, mcpConsentGrant, mcpConsentGrantListResponse, clientIdentity, clientLoginCodeRequest, clientLoginCodeVerifyRequest, twoFactorChallenge, clientSignInResult, clientTwoFactorVerifyRequest, clientTwoFactorSetupRequest, clientTwoFactorSetupConfirmRequest, clientTwoFactorSetupConfirmResponse, clientTwoFactorDisableRequest, } from './client-auth.js';
|
package/dist/index.js
CHANGED
|
@@ -45,7 +45,7 @@ authMeResponse, patchOrgRequest, patchAuthMeRequest, } from './identity.js';
|
|
|
45
45
|
// 2026-09-30 — the console's feedback modal.
|
|
46
46
|
export { FEEDBACK_KINDS, FEEDBACK_MESSAGE_MAX, feedbackKind, feedbackRequest, feedbackResponse } from './feedback.js';
|
|
47
47
|
// Support sessions: an operator temporarily holding a console session for one org (internal, additive).
|
|
48
|
-
export { supportSessionInfo, supportTokenRequest, supportTokenResponse, authMeSupportResponse } from './support.js';
|
|
48
|
+
export { supportSessionInfo, supportTokenRequest, supportTokenResponse, supportRenewFailRequest, supportRenewFailRefusal, authMeSupportResponse } from './support.js';
|
|
49
49
|
export { appIdentifier, app, appListResponse, appDeletionSummary, createAppRequest, updateAppRequest, serverKeyToken, serverKey, serverKeyListResponse, createServerKeyResponse, role, roleListResponse, rolePermissions, roleRenameRequest, roleDeleteQuery, roleInUseDetails, } from './apps.js';
|
|
50
50
|
export { clientLoginRequest, clientRefreshRequest, clientLogoutRequest, clientRegisterRequest, clientVerifyEmailRequest, clientResendVerificationRequest, clientPasswordResetRequest, clientPasswordResetConfirmRequest, clientAcceptInvitationRequest, CLIENT_OIDC_CALLBACK_PATH, clientProviderListQuery, clientProviderListResponse, clientOidcStartQuery, clientOidcCallbackQuery, clientOidcExchangeRequest, clientOidcErrorCode, clientMcpInteraction, clientMcpInteractionDecisionResponse, mcpConsentGrant, mcpConsentGrantListResponse, clientIdentity, clientLoginCodeRequest, clientLoginCodeVerifyRequest, twoFactorChallenge, clientSignInResult, clientTwoFactorVerifyRequest, clientTwoFactorSetupRequest, clientTwoFactorSetupConfirmRequest, clientTwoFactorSetupConfirmResponse, clientTwoFactorDisableRequest, } from './client-auth.js';
|
|
51
51
|
export { clientRobotListItem, clientRobotListResponse } from './client-robots.js';
|
package/dist/mcp.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
/**
|
|
4
|
-
* The MCP server: **one** remote
|
|
5
|
-
* tools
|
|
6
|
-
*
|
|
4
|
+
* The central MCP server: **one** remote endpoint for Fleetless users. Its
|
|
5
|
+
* tools use a fixed catalog; access to a robot's exposed services and
|
|
6
|
+
* datapoints is checked for each call. App users have an app-specific endpoint.
|
|
7
7
|
*
|
|
8
8
|
* **This file describes the seam, not the protocol.** The MCP messages
|
|
9
9
|
* themselves (`initialize`, `tools/list`, `tools/call`) are defined by the
|
|
@@ -123,9 +123,9 @@ export interface McpAppPaths {
|
|
|
123
123
|
}
|
|
124
124
|
export declare function MCP_APP_PATHS(appIdentifier: string): McpAppPaths;
|
|
125
125
|
/**
|
|
126
|
-
* Which exposed kind a
|
|
127
|
-
* ours, so the console can group a preview
|
|
128
|
-
*
|
|
126
|
+
* Which exposed kind a datasheet entry came from. Not the MCP protocol's
|
|
127
|
+
* vocabulary — ours, so the console can group a preview as the services
|
|
128
|
+
* editor does.
|
|
129
129
|
*/
|
|
130
130
|
export declare const mcpToolKind: z.ZodEnum<{
|
|
131
131
|
datapoint: "datapoint";
|
|
@@ -135,11 +135,14 @@ export declare const mcpToolKind: z.ZodEnum<{
|
|
|
135
135
|
camera: "camera";
|
|
136
136
|
}>;
|
|
137
137
|
export type McpToolKind = z.infer<typeof mcpToolKind>;
|
|
138
|
-
/**
|
|
138
|
+
/**
|
|
139
|
+
* MCP's bound on a tool name, and the charset safe across clients.
|
|
140
|
+
* `robots.describe` names a tool and action; only `robots` is a tool name.
|
|
141
|
+
*/
|
|
139
142
|
export declare const MCP_TOOL_NAME_MAX = 128;
|
|
140
143
|
export declare const mcpToolNamePattern: RegExp;
|
|
141
144
|
/**
|
|
142
|
-
* One exposure of a robot, as `
|
|
145
|
+
* One exposure of a robot, as `robots.describe` and the console's per-role
|
|
143
146
|
* preview list it. Every exposure the role grants is listed —
|
|
144
147
|
* a missing `description` is shown as `null`, never used to hide the entry.
|
|
145
148
|
*
|
|
@@ -170,7 +173,7 @@ export declare const mcpCapabilities: z.ZodObject<{
|
|
|
170
173
|
}, z.core.$strip>;
|
|
171
174
|
export type McpCapabilities = z.infer<typeof mcpCapabilities>;
|
|
172
175
|
/**
|
|
173
|
-
* What one caller may do on one robot — the answer to `
|
|
176
|
+
* What one caller may do on one robot — the answer to `robots.describe`, and
|
|
174
177
|
* since 1.1.0 to `GET /api/robots/:id/datasheet` as well. One schema for both
|
|
175
178
|
* surfaces on purpose: an app and an AI tool read the same description of the
|
|
176
179
|
* same grant. The `mcp` prefix is history, not scope.
|
|
@@ -232,7 +235,7 @@ export declare const mcpRolePreviewResponse: z.ZodObject<{
|
|
|
232
235
|
export type McpRolePreviewResponse = z.infer<typeof mcpRolePreviewResponse>;
|
|
233
236
|
/**
|
|
234
237
|
* Where a signed asset link is served. An MCP session token is refused on
|
|
235
|
-
* REST by design, so `
|
|
238
|
+
* REST by design, so `assets.get`/`assets.urdf` mint a bearer-free link the agent
|
|
236
239
|
* behind the client can fetch. Lifetime is fixed; the token binds robot, asset
|
|
237
240
|
* and expiry under `JWT_SECRET`.
|
|
238
241
|
*/
|
package/dist/mcp.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { slug } from './common.js';
|
|
4
4
|
/**
|
|
5
|
-
* The MCP server: **one** remote
|
|
6
|
-
* tools
|
|
7
|
-
*
|
|
5
|
+
* The central MCP server: **one** remote endpoint for Fleetless users. Its
|
|
6
|
+
* tools use a fixed catalog; access to a robot's exposed services and
|
|
7
|
+
* datapoints is checked for each call. App users have an app-specific endpoint.
|
|
8
8
|
*
|
|
9
9
|
* **This file describes the seam, not the protocol.** The MCP messages
|
|
10
10
|
* themselves (`initialize`, `tools/list`, `tools/call`) are defined by the
|
|
@@ -85,16 +85,19 @@ export function MCP_APP_PATHS(appIdentifier) {
|
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
|
-
* Which exposed kind a
|
|
89
|
-
* ours, so the console can group a preview
|
|
90
|
-
*
|
|
88
|
+
* Which exposed kind a datasheet entry came from. Not the MCP protocol's
|
|
89
|
+
* vocabulary — ours, so the console can group a preview as the services
|
|
90
|
+
* editor does.
|
|
91
91
|
*/
|
|
92
92
|
export const mcpToolKind = z.enum(['datapoint', 'service', 'action', 'publisher', 'camera']);
|
|
93
|
-
/**
|
|
93
|
+
/**
|
|
94
|
+
* MCP's bound on a tool name, and the charset safe across clients.
|
|
95
|
+
* `robots.describe` names a tool and action; only `robots` is a tool name.
|
|
96
|
+
*/
|
|
94
97
|
export const MCP_TOOL_NAME_MAX = 128;
|
|
95
98
|
export const mcpToolNamePattern = /^[a-z0-9][a-z0-9_-]*$/;
|
|
96
99
|
/**
|
|
97
|
-
* One exposure of a robot, as `
|
|
100
|
+
* One exposure of a robot, as `robots.describe` and the console's per-role
|
|
98
101
|
* preview list it. Every exposure the role grants is listed —
|
|
99
102
|
* a missing `description` is shown as `null`, never used to hide the entry.
|
|
100
103
|
*
|
|
@@ -125,7 +128,7 @@ export const mcpCapabilities = z.object({
|
|
|
125
128
|
assets: z.boolean(),
|
|
126
129
|
});
|
|
127
130
|
/**
|
|
128
|
-
* What one caller may do on one robot — the answer to `
|
|
131
|
+
* What one caller may do on one robot — the answer to `robots.describe`, and
|
|
129
132
|
* since 1.1.0 to `GET /api/robots/:id/datasheet` as well. One schema for both
|
|
130
133
|
* surfaces on purpose: an app and an AI tool read the same description of the
|
|
131
134
|
* same grant. The `mcp` prefix is history, not scope.
|
|
@@ -148,7 +151,7 @@ export const mcpRolePreviewResponse = z.object({
|
|
|
148
151
|
});
|
|
149
152
|
/**
|
|
150
153
|
* Where a signed asset link is served. An MCP session token is refused on
|
|
151
|
-
* REST by design, so `
|
|
154
|
+
* REST by design, so `assets.get`/`assets.urdf` mint a bearer-free link the agent
|
|
152
155
|
* behind the client can fetch. Lifetime is fixed; the token binds robot, asset
|
|
153
156
|
* and expiry under `JWT_SECRET`.
|
|
154
157
|
*/
|