@fnndsc/calypso 0.4.3 → 0.5.1
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 +4 -3
- package/dist/daemon/berth.js +10 -3
- package/dist/daemon/berth.js.map +1 -1
- package/dist/daemon/broker.d.ts +87 -0
- package/dist/daemon/broker.js +102 -0
- package/dist/daemon/broker.js.map +1 -0
- package/dist/daemon/discovery.js +5 -1
- package/dist/daemon/discovery.js.map +1 -1
- package/dist/daemon/engine.d.ts +6 -0
- package/dist/daemon/launch.d.ts +30 -0
- package/dist/daemon/launch.js +37 -12
- package/dist/daemon/launch.js.map +1 -1
- package/dist/daemon/server.d.ts +42 -33
- package/dist/daemon/server.js +106 -98
- package/dist/daemon/server.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/protocol/messages.d.ts +351 -25
- package/dist/protocol/messages.js +78 -8
- package/dist/protocol/messages.js.map +1 -1
- package/package.json +4 -4
|
@@ -12,16 +12,24 @@
|
|
|
12
12
|
* @module
|
|
13
13
|
*/
|
|
14
14
|
import { z } from 'zod';
|
|
15
|
+
import { PROC_PROMPT_STATES } from '@fnndsc/cumin/proc-prompt';
|
|
16
|
+
import { PROGRESS_KINDS, PROGRESS_OPERATIONS, PROGRESS_PHASES, PROGRESS_STATUSES, PROGRESS_UNITS, } from '@fnndsc/brasa/progress';
|
|
15
17
|
import { commandEnvelopeSchema } from './envelope.js';
|
|
16
18
|
/** The sink channel an output event belongs to. */
|
|
17
19
|
export const channelSchema = z.enum(['data', 'err', 'status']);
|
|
18
20
|
// --- Surface → daemon ------------------------------------------------------
|
|
19
|
-
/**
|
|
21
|
+
/** Capabilities an attaching surface can safely execute on its own machine. */
|
|
22
|
+
export const surfaceCapabilitiesMessageSchema = z.object({
|
|
23
|
+
shellCommands: z.boolean(),
|
|
24
|
+
hiddenInput: z.boolean().optional(),
|
|
25
|
+
});
|
|
26
|
+
/** Attach to a session: declares the contract version, token, and surface capabilities. */
|
|
20
27
|
export const attachMessageSchema = z.object({
|
|
21
28
|
type: z.literal('attach'),
|
|
22
29
|
protocolVersion: z.number().int(),
|
|
23
30
|
token: z.string(),
|
|
24
31
|
session: z.string().optional(),
|
|
32
|
+
capabilities: surfaceCapabilitiesMessageSchema.optional(),
|
|
25
33
|
});
|
|
26
34
|
/** Execute one input line, correlated by `id`. */
|
|
27
35
|
export const executeMessageSchema = z.object({
|
|
@@ -29,6 +37,11 @@ export const executeMessageSchema = z.object({
|
|
|
29
37
|
id: z.string(),
|
|
30
38
|
line: z.string(),
|
|
31
39
|
});
|
|
40
|
+
/** Requests cancellation of the caller's currently executing command. */
|
|
41
|
+
export const cancelMessageSchema = z.object({
|
|
42
|
+
type: z.literal('cancel'),
|
|
43
|
+
id: z.string(),
|
|
44
|
+
});
|
|
32
45
|
/** Request completion candidates for a partial line, correlated by `id`. */
|
|
33
46
|
export const completeRequestSchema = z.object({
|
|
34
47
|
type: z.literal('complete'),
|
|
@@ -41,6 +54,12 @@ export const promptAnswerMessageSchema = z.object({
|
|
|
41
54
|
promptId: z.string(),
|
|
42
55
|
answer: z.string(),
|
|
43
56
|
});
|
|
57
|
+
/** Reports a prompt failure to the daemon (surface cannot or did not answer), correlated by `promptId`. */
|
|
58
|
+
export const promptErrorMessageSchema = z.object({
|
|
59
|
+
type: z.literal('promptError'),
|
|
60
|
+
promptId: z.string(),
|
|
61
|
+
reason: z.string(),
|
|
62
|
+
});
|
|
44
63
|
/** Returns the output of a pipeline segment the daemon asked the surface to run, correlated by `pipeId`. */
|
|
45
64
|
export const pipeResultMessageSchema = z.object({
|
|
46
65
|
type: z.literal('pipeResult'),
|
|
@@ -53,6 +72,18 @@ export const pipeErrorMessageSchema = z.object({
|
|
|
53
72
|
pipeId: z.string(),
|
|
54
73
|
reason: z.string(),
|
|
55
74
|
});
|
|
75
|
+
/** Returns the exit code of a shell command the daemon asked the surface to run. */
|
|
76
|
+
export const shellResultMessageSchema = z.object({
|
|
77
|
+
type: z.literal('shellResult'),
|
|
78
|
+
shellId: z.string(),
|
|
79
|
+
exitCode: z.number().int(),
|
|
80
|
+
});
|
|
81
|
+
/** Returns a surface shell-launch failure to the daemon, correlated by `shellId`. */
|
|
82
|
+
export const shellErrorMessageSchema = z.object({
|
|
83
|
+
type: z.literal('shellError'),
|
|
84
|
+
shellId: z.string(),
|
|
85
|
+
reason: z.string(),
|
|
86
|
+
});
|
|
56
87
|
/** Returns the edited content from a local-edit the daemon requested, correlated by `editId`. */
|
|
57
88
|
export const editResultMessageSchema = z.object({
|
|
58
89
|
type: z.literal('editResult'),
|
|
@@ -60,22 +91,49 @@ export const editResultMessageSchema = z.object({
|
|
|
60
91
|
content: z.string(),
|
|
61
92
|
changed: z.boolean(),
|
|
62
93
|
});
|
|
94
|
+
/** Reports a local-edit failure to the daemon, correlated by `editId`. */
|
|
95
|
+
export const editErrorMessageSchema = z.object({
|
|
96
|
+
type: z.literal('editError'),
|
|
97
|
+
editId: z.string(),
|
|
98
|
+
reason: z.string(),
|
|
99
|
+
});
|
|
63
100
|
/** Any message a surface may send to the daemon. */
|
|
64
101
|
export const clientMessageSchema = z.discriminatedUnion('type', [
|
|
65
102
|
attachMessageSchema,
|
|
66
103
|
executeMessageSchema,
|
|
104
|
+
cancelMessageSchema,
|
|
67
105
|
completeRequestSchema,
|
|
68
106
|
promptAnswerMessageSchema,
|
|
107
|
+
promptErrorMessageSchema,
|
|
69
108
|
pipeResultMessageSchema,
|
|
70
109
|
pipeErrorMessageSchema,
|
|
110
|
+
shellResultMessageSchema,
|
|
111
|
+
shellErrorMessageSchema,
|
|
71
112
|
editResultMessageSchema,
|
|
113
|
+
editErrorMessageSchema,
|
|
72
114
|
]);
|
|
73
115
|
// --- Daemon → surface ------------------------------------------------------
|
|
74
|
-
/**
|
|
116
|
+
/**
|
|
117
|
+
* Acknowledges a successful attach. The optional `stack` block reports the
|
|
118
|
+
* daemon's own installed versions and build hash, so a remote surface can
|
|
119
|
+
* greet with the truth of the process it attached to rather than whatever is
|
|
120
|
+
* installed client-side; older daemons simply omit it.
|
|
121
|
+
*/
|
|
75
122
|
export const attachedMessageSchema = z.object({
|
|
76
123
|
type: z.literal('attached'),
|
|
77
124
|
session: z.string(),
|
|
78
125
|
protocolVersion: z.number().int(),
|
|
126
|
+
stack: z
|
|
127
|
+
.object({
|
|
128
|
+
chell: z.string(),
|
|
129
|
+
calypso: z.string(),
|
|
130
|
+
build: z.string(),
|
|
131
|
+
brasa: z.string().optional(),
|
|
132
|
+
chili: z.string().optional(),
|
|
133
|
+
salsa: z.string().optional(),
|
|
134
|
+
cumin: z.string().optional(),
|
|
135
|
+
})
|
|
136
|
+
.optional(),
|
|
79
137
|
});
|
|
80
138
|
/** The final result of one executed line: one envelope per command. */
|
|
81
139
|
export const resultMessageSchema = z.object({
|
|
@@ -98,15 +156,15 @@ export const outputMessageSchema = z.object({
|
|
|
98
156
|
chunk: z.string(),
|
|
99
157
|
});
|
|
100
158
|
/** The operation producing structured progress. */
|
|
101
|
-
export const progressOperationSchema = z.enum(
|
|
159
|
+
export const progressOperationSchema = z.enum(PROGRESS_OPERATIONS);
|
|
102
160
|
/** Broad class of progress producer. */
|
|
103
|
-
export const progressKindSchema = z.enum(
|
|
161
|
+
export const progressKindSchema = z.enum(PROGRESS_KINDS);
|
|
104
162
|
/** Lifecycle phase of a progress operation. */
|
|
105
|
-
export const progressPhaseSchema = z.enum(
|
|
163
|
+
export const progressPhaseSchema = z.enum(PROGRESS_PHASES);
|
|
106
164
|
/** Unit used by the primary progress counter. */
|
|
107
|
-
export const progressUnitSchema = z.enum(
|
|
165
|
+
export const progressUnitSchema = z.enum(PROGRESS_UNITS);
|
|
108
166
|
/** State of the operation or item being reported. */
|
|
109
|
-
export const progressStatusSchema = z.enum(
|
|
167
|
+
export const progressStatusSchema = z.enum(PROGRESS_STATUSES);
|
|
110
168
|
/** A structured progress event correlated to a command. */
|
|
111
169
|
export const progressMessageSchema = z.object({
|
|
112
170
|
type: z.literal('progress'),
|
|
@@ -161,7 +219,12 @@ export const promptContextSchema = z.object({
|
|
|
161
219
|
physicalMode: z.boolean(),
|
|
162
220
|
lastExitCode: z.number(),
|
|
163
221
|
lastCommandDurationMs: z.number(),
|
|
164
|
-
procWarmup: z.object({
|
|
222
|
+
procWarmup: z.object({
|
|
223
|
+
loaded: z.number(),
|
|
224
|
+
total: z.number().optional(),
|
|
225
|
+
restored: z.boolean().optional(),
|
|
226
|
+
state: z.enum(PROC_PROMPT_STATES).optional(),
|
|
227
|
+
}).optional(),
|
|
165
228
|
});
|
|
166
229
|
/**
|
|
167
230
|
* The prompt context, pushed by the daemon with each result and on any context
|
|
@@ -184,6 +247,12 @@ export const pipeMessageSchema = z.object({
|
|
|
184
247
|
command: z.string(),
|
|
185
248
|
input: z.string(),
|
|
186
249
|
});
|
|
250
|
+
/** Asks the surface to run a shell command on its own machine, never on the daemon host. */
|
|
251
|
+
export const shellMessageSchema = z.object({
|
|
252
|
+
type: z.literal('shell'),
|
|
253
|
+
shellId: z.string(),
|
|
254
|
+
command: z.string(),
|
|
255
|
+
});
|
|
187
256
|
/**
|
|
188
257
|
* Asks the surface to open content in its local editor (never on the daemon
|
|
189
258
|
* host) and return the edited result.
|
|
@@ -206,6 +275,7 @@ export const serverMessageSchema = z.discriminatedUnion('type', [
|
|
|
206
275
|
promptMessageSchema,
|
|
207
276
|
promptLineMessageSchema,
|
|
208
277
|
pipeMessageSchema,
|
|
278
|
+
shellMessageSchema,
|
|
209
279
|
editMessageSchema,
|
|
210
280
|
]);
|
|
211
281
|
//# sourceMappingURL=messages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/protocol/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AA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;IACrB,oBAAoB;IACpB,kBAAkB;IAClB,mBAAmB;IACnB,uBAAuB;IACvB,iBAAiB;IACjB,kBAAkB;IAClB,iBAAiB;CAClB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fnndsc/calypso",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "The CALYPSO wire contract: typed protocol schemas and boundary validation for the ChRIS session daemon",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"types": "dist/index.d.ts",
|
|
17
17
|
"type": "module",
|
|
18
18
|
"bin": {
|
|
19
|
-
"calypso": "
|
|
19
|
+
"calypso": "dist/calypso.js"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"dist"
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"typescript": "^5.0.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@fnndsc/brasa": "^0.
|
|
55
|
-
"@fnndsc/cumin": "^3.
|
|
54
|
+
"@fnndsc/brasa": "^0.11.0",
|
|
55
|
+
"@fnndsc/cumin": "^3.11.0",
|
|
56
56
|
"chalk": "^4.1.2",
|
|
57
57
|
"ws": "^8.18.0",
|
|
58
58
|
"zod": "^3.23.8"
|