@fnndsc/calypso 0.6.0 → 0.7.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/calypso.js +53 -3
- package/dist/calypso.js.map +1 -1
- package/dist/daemon/attachFile.d.ts +43 -0
- package/dist/daemon/attachFile.js +80 -0
- package/dist/daemon/attachFile.js.map +1 -0
- package/dist/daemon/engine.d.ts +16 -0
- package/dist/daemon/face.d.ts +127 -0
- package/dist/daemon/face.js +419 -0
- package/dist/daemon/face.js.map +1 -0
- package/dist/daemon/launch.d.ts +21 -6
- package/dist/daemon/launch.js +82 -18
- package/dist/daemon/launch.js.map +1 -1
- package/dist/daemon/server.d.ts +83 -4
- package/dist/daemon/server.js +157 -5
- package/dist/daemon/server.js.map +1 -1
- package/dist/daemon/static.d.ts +13 -0
- package/dist/daemon/static.js +36 -0
- package/dist/daemon/static.js.map +1 -1
- package/dist/index.d.ts +15 -8
- package/dist/index.js +14 -7
- package/dist/index.js.map +1 -1
- package/package.json +6 -9
- package/dist/protocol/envelope.d.ts +0 -136
- package/dist/protocol/envelope.js +0 -46
- package/dist/protocol/envelope.js.map +0 -1
- package/dist/protocol/index.d.ts +0 -16
- package/dist/protocol/index.js +0 -17
- package/dist/protocol/index.js.map +0 -1
- package/dist/protocol/messages.d.ts +0 -1568
- package/dist/protocol/messages.js +0 -281
- package/dist/protocol/messages.js.map +0 -1
- package/dist/protocol/validate.d.ts +0 -57
- package/dist/protocol/validate.js +0 -88
- package/dist/protocol/validate.js.map +0 -1
- package/dist/protocol/version.d.ts +0 -25
- package/dist/protocol/version.js +0 -28
- package/dist/protocol/version.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @file
|
|
2
|
+
* @file CALYPSO: public surface.
|
|
3
3
|
*
|
|
4
4
|
* calypso is the session host that serves a brasa engine to surfaces over a
|
|
5
|
-
* WebSocket
|
|
6
|
-
* validation, the daemon and launch path, structured session messages, and
|
|
5
|
+
* WebSocket: the daemon and its launch path, boundary token handling, and
|
|
7
6
|
* identity-keyed local berth discovery. Natural-language intent assistance is
|
|
8
7
|
* future work built above this deterministic session boundary.
|
|
9
8
|
*
|
|
9
|
+
* The wire contract itself is no longer here. It lives in `@fnndsc/menu`, so
|
|
10
|
+
* that a surface author depends on the contract rather than on the daemon that
|
|
11
|
+
* happens to serve it. The contract's names are re-exported below because most
|
|
12
|
+
* of the stack has always reached them at this address; new code should import
|
|
13
|
+
* `@fnndsc/menu` directly.
|
|
14
|
+
*
|
|
10
15
|
* @see docs/calypso.adoc for the governing design.
|
|
16
|
+
* @see docs/menu.adoc for the contract package.
|
|
11
17
|
* @module
|
|
12
18
|
*/
|
|
13
|
-
export { CONTRACT_VERSION, version_isCompatible } from '
|
|
14
|
-
export { envelopeStatusSchema, stackMessageSchema, envelopeModelSchema, resolutionTraceSchema, commandEnvelopeSchema, type WireEnvelope, } from '
|
|
15
|
-
export { channelSchema, attachMessageSchema, executeMessageSchema, completeRequestSchema, pipeResultMessageSchema, pipeErrorMessageSchema, clientMessageSchema, attachedMessageSchema, resultMessageSchema, completeReplySchema, outputMessageSchema, progressOperationSchema, progressKindSchema, progressPhaseSchema, progressUnitSchema, progressStatusSchema, progressMessageSchema, sessionMessageSchema, errorMessageSchema, serverMessageSchema, type ClientMessage, type ProgressEvent, type ServerMessage, } from '
|
|
16
|
-
export { clientMessage_parse, serverMessage_parse, clientMessage_fromJson, attach_parse, type ParseResult, } from '
|
|
19
|
+
export { CONTRACT_VERSION, version_isCompatible } from '@fnndsc/menu';
|
|
20
|
+
export { envelopeStatusSchema, stackMessageSchema, envelopeModelSchema, resolutionTraceSchema, commandEnvelopeSchema, type WireEnvelope, } from '@fnndsc/menu';
|
|
21
|
+
export { channelSchema, attachMessageSchema, executeMessageSchema, completeRequestSchema, pipeResultMessageSchema, pipeErrorMessageSchema, clientMessageSchema, attachedMessageSchema, resultMessageSchema, completeReplySchema, outputMessageSchema, progressOperationSchema, progressKindSchema, progressPhaseSchema, progressUnitSchema, progressStatusSchema, progressMessageSchema, sessionMessageSchema, errorMessageSchema, serverMessageSchema, type ClientMessage, type ProgressEvent, type ServerMessage, } from '@fnndsc/menu';
|
|
22
|
+
export { clientMessage_parse, serverMessage_parse, clientMessage_fromJson, attach_parse, type ParseResult, } from '@fnndsc/menu';
|
|
17
23
|
export { type HostedEngine, type CompletionResult } from './daemon/engine.js';
|
|
18
24
|
export { token_generate, token_writeFile, token_matches } from './daemon/token.js';
|
|
19
25
|
export { CalypsoDaemon, type DaemonOptions, type EditOutcome } from './daemon/server.js';
|
|
20
26
|
export { RequestBroker } from './daemon/broker.js';
|
|
21
|
-
export { daemon_launch, daemonSurface_create, DaemonSink } from './daemon/launch.js';
|
|
27
|
+
export { daemon_launch, daemonSurface_create, DaemonSink, type DaemonLaunchInfo } from './daemon/launch.js';
|
|
28
|
+
export { face_start, face_boot, face_ready, face_suspend, face_resume, face_stop, face_isActive, face_frameCompose, uptime_format, FaceLogRing, type FaceInfo, type FaceTelemetry, type FaceOptions, type FaceFrame, } from './daemon/face.js';
|
|
22
29
|
export { discovery_read, discovery_write, discovery_path, type Discovery } from './daemon/discovery.js';
|
|
23
30
|
export { identity_normalise, identity_forSession, DISCONNECTED_IDENTITY, berthKey_compute, berthDir_path, berth_path, berth_write, berth_read, berthAll_read, berth_remove, berthUrl_isAlive, LocalBerthResolver, type Berth, type BerthResolver, type BerthLivenessProbe, } from './daemon/berth.js';
|
package/dist/index.js
CHANGED
|
@@ -1,23 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @file
|
|
2
|
+
* @file CALYPSO: public surface.
|
|
3
3
|
*
|
|
4
4
|
* calypso is the session host that serves a brasa engine to surfaces over a
|
|
5
|
-
* WebSocket
|
|
6
|
-
* validation, the daemon and launch path, structured session messages, and
|
|
5
|
+
* WebSocket: the daemon and its launch path, boundary token handling, and
|
|
7
6
|
* identity-keyed local berth discovery. Natural-language intent assistance is
|
|
8
7
|
* future work built above this deterministic session boundary.
|
|
9
8
|
*
|
|
9
|
+
* The wire contract itself is no longer here. It lives in `@fnndsc/menu`, so
|
|
10
|
+
* that a surface author depends on the contract rather than on the daemon that
|
|
11
|
+
* happens to serve it. The contract's names are re-exported below because most
|
|
12
|
+
* of the stack has always reached them at this address; new code should import
|
|
13
|
+
* `@fnndsc/menu` directly.
|
|
14
|
+
*
|
|
10
15
|
* @see docs/calypso.adoc for the governing design.
|
|
16
|
+
* @see docs/menu.adoc for the contract package.
|
|
11
17
|
* @module
|
|
12
18
|
*/
|
|
13
|
-
export { CONTRACT_VERSION, version_isCompatible } from '
|
|
14
|
-
export { envelopeStatusSchema, stackMessageSchema, envelopeModelSchema, resolutionTraceSchema, commandEnvelopeSchema, } from '
|
|
15
|
-
export { channelSchema, attachMessageSchema, executeMessageSchema, completeRequestSchema, pipeResultMessageSchema, pipeErrorMessageSchema, clientMessageSchema, attachedMessageSchema, resultMessageSchema, completeReplySchema, outputMessageSchema, progressOperationSchema, progressKindSchema, progressPhaseSchema, progressUnitSchema, progressStatusSchema, progressMessageSchema, sessionMessageSchema, errorMessageSchema, serverMessageSchema, } from '
|
|
16
|
-
export { clientMessage_parse, serverMessage_parse, clientMessage_fromJson, attach_parse, } from '
|
|
19
|
+
export { CONTRACT_VERSION, version_isCompatible } from '@fnndsc/menu';
|
|
20
|
+
export { envelopeStatusSchema, stackMessageSchema, envelopeModelSchema, resolutionTraceSchema, commandEnvelopeSchema, } from '@fnndsc/menu';
|
|
21
|
+
export { channelSchema, attachMessageSchema, executeMessageSchema, completeRequestSchema, pipeResultMessageSchema, pipeErrorMessageSchema, clientMessageSchema, attachedMessageSchema, resultMessageSchema, completeReplySchema, outputMessageSchema, progressOperationSchema, progressKindSchema, progressPhaseSchema, progressUnitSchema, progressStatusSchema, progressMessageSchema, sessionMessageSchema, errorMessageSchema, serverMessageSchema, } from '@fnndsc/menu';
|
|
22
|
+
export { clientMessage_parse, serverMessage_parse, clientMessage_fromJson, attach_parse, } from '@fnndsc/menu';
|
|
17
23
|
export { token_generate, token_writeFile, token_matches } from './daemon/token.js';
|
|
18
24
|
export { CalypsoDaemon } from './daemon/server.js';
|
|
19
25
|
export { RequestBroker } from './daemon/broker.js';
|
|
20
26
|
export { daemon_launch, daemonSurface_create, DaemonSink } from './daemon/launch.js';
|
|
27
|
+
export { face_start, face_boot, face_ready, face_suspend, face_resume, face_stop, face_isActive, face_frameCompose, uptime_format, FaceLogRing, } from './daemon/face.js';
|
|
21
28
|
export { discovery_read, discovery_write, discovery_path } from './daemon/discovery.js';
|
|
22
29
|
export { identity_normalise, identity_forSession, DISCONNECTED_IDENTITY, berthKey_compute, berthDir_path, berth_path, berth_write, berth_read, berthAll_read, berth_remove, berthUrl_isAlive, LocalBerthResolver, } from './daemon/berth.js';
|
|
23
30
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,GAEtB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,GAIpB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,YAAY,GAEb,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAAE,aAAa,EAAwC,MAAM,oBAAoB,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,UAAU,EAAyB,MAAM,oBAAoB,CAAC;AAC5G,OAAO,EACL,UAAU,EACV,SAAS,EACT,UAAU,EACV,YAAY,EACZ,WAAW,EACX,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,WAAW,GAKZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AACxG,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,GAInB,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fnndsc/calypso",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.7.0",
|
|
4
|
+
"description": "CALYPSO: the ChRIS session daemon — hosts a brasa engine for attached surfaces over a WebSocket",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/FNNDSC/mise.git",
|
|
@@ -26,10 +26,6 @@
|
|
|
26
26
|
"import": "./dist/index.js",
|
|
27
27
|
"types": "./dist/index.d.ts"
|
|
28
28
|
},
|
|
29
|
-
"./protocol": {
|
|
30
|
-
"import": "./dist/protocol/index.js",
|
|
31
|
-
"types": "./dist/protocol/index.d.ts"
|
|
32
|
-
},
|
|
33
29
|
"./package.json": "./package.json"
|
|
34
30
|
},
|
|
35
31
|
"scripts": {
|
|
@@ -55,10 +51,11 @@
|
|
|
55
51
|
"typescript": "^5.0.0"
|
|
56
52
|
},
|
|
57
53
|
"dependencies": {
|
|
58
|
-
"@fnndsc/brasa": "^0.
|
|
59
|
-
"@fnndsc/cumin": "^3.
|
|
54
|
+
"@fnndsc/brasa": "^0.13.0",
|
|
55
|
+
"@fnndsc/cumin": "^3.15.0",
|
|
60
56
|
"chalk": "^4.1.2",
|
|
61
57
|
"ws": "^8.18.0",
|
|
62
|
-
"zod": "^3.23.8"
|
|
58
|
+
"zod": "^3.23.8",
|
|
59
|
+
"@fnndsc/menu": "*"
|
|
63
60
|
}
|
|
64
61
|
}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file The wire schema for a command envelope.
|
|
3
|
-
*
|
|
4
|
-
* cumin defines the `CommandEnvelope` type (the shape produced in-stack);
|
|
5
|
-
* calypso owns the wire schema that validates that envelope at the boundary
|
|
6
|
-
* — the published promise an external surface programs against. The two are
|
|
7
|
-
* kept in step by a compile-time check below: if cumin's type gains a field
|
|
8
|
-
* the wire schema does not cover, this file stops compiling, so the contract
|
|
9
|
-
* can never silently drift from what the code produces.
|
|
10
|
-
*
|
|
11
|
-
* @module
|
|
12
|
-
*/
|
|
13
|
-
import { z } from 'zod';
|
|
14
|
-
/** Terminal status of a completed command. */
|
|
15
|
-
export declare const envelopeStatusSchema: z.ZodEnum<["ok", "error"]>;
|
|
16
|
-
/** A single structured error/warning drained from the error stack. */
|
|
17
|
-
export declare const stackMessageSchema: z.ZodObject<{
|
|
18
|
-
type: z.ZodEnum<["error", "warning"]>;
|
|
19
|
-
message: z.ZodString;
|
|
20
|
-
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
type: "error" | "warning";
|
|
22
|
-
message: string;
|
|
23
|
-
}, {
|
|
24
|
-
type: "error" | "warning";
|
|
25
|
-
message: string;
|
|
26
|
-
}>;
|
|
27
|
-
/** A command's typed result: a namespaced kind and an opaque payload. */
|
|
28
|
-
export declare const envelopeModelSchema: z.ZodObject<{
|
|
29
|
-
kind: z.ZodString;
|
|
30
|
-
data: z.ZodUnknown;
|
|
31
|
-
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
kind: string;
|
|
33
|
-
data?: unknown;
|
|
34
|
-
}, {
|
|
35
|
-
kind: string;
|
|
36
|
-
data?: unknown;
|
|
37
|
-
}>;
|
|
38
|
-
/** The record of how a natural-language input resolved into a command. */
|
|
39
|
-
export declare const resolutionTraceSchema: z.ZodObject<{
|
|
40
|
-
input: z.ZodString;
|
|
41
|
-
proposed: z.ZodString;
|
|
42
|
-
validated: z.ZodBoolean;
|
|
43
|
-
executed: z.ZodOptional<z.ZodString>;
|
|
44
|
-
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
input: string;
|
|
46
|
-
proposed: string;
|
|
47
|
-
validated: boolean;
|
|
48
|
-
executed?: string | undefined;
|
|
49
|
-
}, {
|
|
50
|
-
input: string;
|
|
51
|
-
proposed: string;
|
|
52
|
-
validated: boolean;
|
|
53
|
-
executed?: string | undefined;
|
|
54
|
-
}>;
|
|
55
|
-
/**
|
|
56
|
-
* The envelope in which one command's complete outcome crosses the wire.
|
|
57
|
-
*/
|
|
58
|
-
export declare const commandEnvelopeSchema: z.ZodObject<{
|
|
59
|
-
status: z.ZodEnum<["ok", "error"]>;
|
|
60
|
-
rendered: z.ZodString;
|
|
61
|
-
renderedErr: z.ZodOptional<z.ZodString>;
|
|
62
|
-
model: z.ZodOptional<z.ZodObject<{
|
|
63
|
-
kind: z.ZodString;
|
|
64
|
-
data: z.ZodUnknown;
|
|
65
|
-
}, "strip", z.ZodTypeAny, {
|
|
66
|
-
kind: string;
|
|
67
|
-
data?: unknown;
|
|
68
|
-
}, {
|
|
69
|
-
kind: string;
|
|
70
|
-
data?: unknown;
|
|
71
|
-
}>>;
|
|
72
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
73
|
-
type: z.ZodEnum<["error", "warning"]>;
|
|
74
|
-
message: z.ZodString;
|
|
75
|
-
}, "strip", z.ZodTypeAny, {
|
|
76
|
-
type: "error" | "warning";
|
|
77
|
-
message: string;
|
|
78
|
-
}, {
|
|
79
|
-
type: "error" | "warning";
|
|
80
|
-
message: string;
|
|
81
|
-
}>, "many">>;
|
|
82
|
-
trace: z.ZodOptional<z.ZodObject<{
|
|
83
|
-
input: z.ZodString;
|
|
84
|
-
proposed: z.ZodString;
|
|
85
|
-
validated: z.ZodBoolean;
|
|
86
|
-
executed: z.ZodOptional<z.ZodString>;
|
|
87
|
-
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
input: string;
|
|
89
|
-
proposed: string;
|
|
90
|
-
validated: boolean;
|
|
91
|
-
executed?: string | undefined;
|
|
92
|
-
}, {
|
|
93
|
-
input: string;
|
|
94
|
-
proposed: string;
|
|
95
|
-
validated: boolean;
|
|
96
|
-
executed?: string | undefined;
|
|
97
|
-
}>>;
|
|
98
|
-
}, "strip", z.ZodTypeAny, {
|
|
99
|
-
status: "error" | "ok";
|
|
100
|
-
rendered: string;
|
|
101
|
-
renderedErr?: string | undefined;
|
|
102
|
-
model?: {
|
|
103
|
-
kind: string;
|
|
104
|
-
data?: unknown;
|
|
105
|
-
} | undefined;
|
|
106
|
-
errors?: {
|
|
107
|
-
type: "error" | "warning";
|
|
108
|
-
message: string;
|
|
109
|
-
}[] | undefined;
|
|
110
|
-
trace?: {
|
|
111
|
-
input: string;
|
|
112
|
-
proposed: string;
|
|
113
|
-
validated: boolean;
|
|
114
|
-
executed?: string | undefined;
|
|
115
|
-
} | undefined;
|
|
116
|
-
}, {
|
|
117
|
-
status: "error" | "ok";
|
|
118
|
-
rendered: string;
|
|
119
|
-
renderedErr?: string | undefined;
|
|
120
|
-
model?: {
|
|
121
|
-
kind: string;
|
|
122
|
-
data?: unknown;
|
|
123
|
-
} | undefined;
|
|
124
|
-
errors?: {
|
|
125
|
-
type: "error" | "warning";
|
|
126
|
-
message: string;
|
|
127
|
-
}[] | undefined;
|
|
128
|
-
trace?: {
|
|
129
|
-
input: string;
|
|
130
|
-
proposed: string;
|
|
131
|
-
validated: boolean;
|
|
132
|
-
executed?: string | undefined;
|
|
133
|
-
} | undefined;
|
|
134
|
-
}>;
|
|
135
|
-
/** The envelope type inferred from the wire schema. */
|
|
136
|
-
export type WireEnvelope = z.infer<typeof commandEnvelopeSchema>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file The wire schema for a command envelope.
|
|
3
|
-
*
|
|
4
|
-
* cumin defines the `CommandEnvelope` type (the shape produced in-stack);
|
|
5
|
-
* calypso owns the wire schema that validates that envelope at the boundary
|
|
6
|
-
* — the published promise an external surface programs against. The two are
|
|
7
|
-
* kept in step by a compile-time check below: if cumin's type gains a field
|
|
8
|
-
* the wire schema does not cover, this file stops compiling, so the contract
|
|
9
|
-
* can never silently drift from what the code produces.
|
|
10
|
-
*
|
|
11
|
-
* @module
|
|
12
|
-
*/
|
|
13
|
-
import { z } from 'zod';
|
|
14
|
-
/** Terminal status of a completed command. */
|
|
15
|
-
export const envelopeStatusSchema = z.enum(['ok', 'error']);
|
|
16
|
-
/** A single structured error/warning drained from the error stack. */
|
|
17
|
-
export const stackMessageSchema = z.object({
|
|
18
|
-
type: z.enum(['error', 'warning']),
|
|
19
|
-
message: z.string(),
|
|
20
|
-
});
|
|
21
|
-
/** A command's typed result: a namespaced kind and an opaque payload. */
|
|
22
|
-
export const envelopeModelSchema = z.object({
|
|
23
|
-
kind: z.string(),
|
|
24
|
-
data: z.unknown(),
|
|
25
|
-
});
|
|
26
|
-
/** The record of how a natural-language input resolved into a command. */
|
|
27
|
-
export const resolutionTraceSchema = z.object({
|
|
28
|
-
input: z.string(),
|
|
29
|
-
proposed: z.string(),
|
|
30
|
-
validated: z.boolean(),
|
|
31
|
-
executed: z.string().optional(),
|
|
32
|
-
});
|
|
33
|
-
/**
|
|
34
|
-
* The envelope in which one command's complete outcome crosses the wire.
|
|
35
|
-
*/
|
|
36
|
-
export const commandEnvelopeSchema = z.object({
|
|
37
|
-
status: envelopeStatusSchema,
|
|
38
|
-
rendered: z.string(),
|
|
39
|
-
renderedErr: z.string().optional(),
|
|
40
|
-
model: envelopeModelSchema.optional(),
|
|
41
|
-
errors: z.array(stackMessageSchema).optional(),
|
|
42
|
-
trace: resolutionTraceSchema.optional(),
|
|
43
|
-
});
|
|
44
|
-
const _envelopeCoversCumin = true;
|
|
45
|
-
void _envelopeCoversCumin;
|
|
46
|
-
//# sourceMappingURL=envelope.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"envelope.js","sourceRoot":"","sources":["../../src/protocol/envelope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,8CAA8C;AAC9C,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;AAE5D,sEAAsE;AACtE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAClC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,yEAAyE;AACzE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE;CAClB,CAAC,CAAC;AAEH,0EAA0E;AAC1E,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE,oBAAoB;IAC5B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,KAAK,EAAE,mBAAmB,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE;IAC9C,KAAK,EAAE,qBAAqB,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAcH,MAAM,oBAAoB,GAAwB,IAAI,CAAC;AACvD,KAAK,oBAAoB,CAAC"}
|
package/dist/protocol/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file The browser-safe protocol surface of the wire contract.
|
|
3
|
-
*
|
|
4
|
-
* This barrel exports only the protocol subtree: message schemas, envelope
|
|
5
|
-
* schema, boundary validation, and the contract version. Nothing here touches
|
|
6
|
-
* `ws`, Node builtins, or the daemon host, so a browser surface (argus) can
|
|
7
|
-
* import the published contract through the `@fnndsc/calypso/protocol`
|
|
8
|
-
* subpath without dragging server-side dependencies into its bundle. The main
|
|
9
|
-
* package index remains the daemon-side entry point.
|
|
10
|
-
*
|
|
11
|
-
* @module
|
|
12
|
-
*/
|
|
13
|
-
export { CONTRACT_VERSION, version_isCompatible } from './version.js';
|
|
14
|
-
export { commandEnvelopeSchema, envelopeModelSchema, envelopeStatusSchema, stackMessageSchema, resolutionTraceSchema, type WireEnvelope, } from './envelope.js';
|
|
15
|
-
export { attachMessageSchema, executeMessageSchema, completeRequestSchema, cancelMessageSchema, clientMessageSchema, serverMessageSchema, attachedMessageSchema, resultMessageSchema, sessionMessageSchema, outputMessageSchema, progressMessageSchema, promptLineMessageSchema, promptContextSchema, errorMessageSchema, type ClientMessage, type ServerMessage, type PromptContext, type ProgressEvent, } from './messages.js';
|
|
16
|
-
export { clientMessage_parse, serverMessage_parse, attach_parse, type ParseResult, } from './validate.js';
|
package/dist/protocol/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file The browser-safe protocol surface of the wire contract.
|
|
3
|
-
*
|
|
4
|
-
* This barrel exports only the protocol subtree: message schemas, envelope
|
|
5
|
-
* schema, boundary validation, and the contract version. Nothing here touches
|
|
6
|
-
* `ws`, Node builtins, or the daemon host, so a browser surface (argus) can
|
|
7
|
-
* import the published contract through the `@fnndsc/calypso/protocol`
|
|
8
|
-
* subpath without dragging server-side dependencies into its bundle. The main
|
|
9
|
-
* package index remains the daemon-side entry point.
|
|
10
|
-
*
|
|
11
|
-
* @module
|
|
12
|
-
*/
|
|
13
|
-
export { CONTRACT_VERSION, version_isCompatible } from './version.js';
|
|
14
|
-
export { commandEnvelopeSchema, envelopeModelSchema, envelopeStatusSchema, stackMessageSchema, resolutionTraceSchema, } from './envelope.js';
|
|
15
|
-
export { attachMessageSchema, executeMessageSchema, completeRequestSchema, cancelMessageSchema, clientMessageSchema, serverMessageSchema, attachedMessageSchema, resultMessageSchema, sessionMessageSchema, outputMessageSchema, progressMessageSchema, promptLineMessageSchema, promptContextSchema, errorMessageSchema, } from './messages.js';
|
|
16
|
-
export { clientMessage_parse, serverMessage_parse, attach_parse, } from './validate.js';
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/protocol/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,GAEtB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,GAKnB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,GAEb,MAAM,eAAe,CAAC"}
|