@fnndsc/calypso 0.4.2 → 0.4.3
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 +17 -7
- package/dist/daemon/discovery.d.ts +1 -1
- package/dist/daemon/discovery.js +5 -7
- package/dist/daemon/discovery.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/protocol/messages.d.ts +19 -0
- package/dist/protocol/messages.js +1 -1
- package/dist/protocol/messages.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
# @fnndsc/calypso
|
|
2
2
|
|
|
3
|
-
**CALYPSO** **A**ccepts **L**anguage, **Y**ielding **P**ermitted **S**hell **O**perations — the
|
|
3
|
+
**CALYPSO** **A**ccepts **L**anguage, **Y**ielding **P**ermitted **S**hell **O**perations — the session host and future intent-assistance layer of the [mise](../../README.md) stack.
|
|
4
4
|
|
|
5
5
|
The name is a harbor reference. In the *Odyssey*, Calypso keeps the island where the voyager finds haven; the name is the Greek word for "to conceal," which the project keeps but turns around. **HARBOR** is that haven for the ChRIS operator, and CALYPSO is the keeper at its edge — the layer between you and the open water: the Collection+JSON sprawl, the complexity of a federated backend. What CALYPSO conceals is the friction, never the outcome. A harbor shelters without holding: the work is left as materialized, verifiable state, yours to leave and return to — CALYPSO the harbor you pass through, never the ground you stand on.
|
|
6
6
|
|
|
7
7
|
## What this package is
|
|
8
8
|
|
|
9
|
-
CALYPSO hosts the [
|
|
9
|
+
CALYPSO hosts the [brasa](../brasa/README.md) engine behind a **session daemon** and serves it to surfaces over a WebSocket: the [ChELL](../chell/README.md) CLI today, a web console next, each rendering the same session. Because the engine is separable from its display (see [stage one](../../docs/calypso.adoc)), it can run where the data must stay — inside a spoke's trust boundary — while an operator drives it over a thin client.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
The wire contract, daemon, session bus, identity-keyed discovery, and ChELL remote client are shipped. The natural-language intent-assistance layer remains separate forward work.
|
|
12
12
|
|
|
13
13
|
## The wire contract
|
|
14
14
|
|
|
15
15
|
The contract is defined as [zod](https://zod.dev) schemas — the single source of truth, from which the message types are inferred and against which every message is validated at the boundary.
|
|
16
16
|
|
|
17
|
-
- **Messages** (two direction-keyed unions):
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
- **Messages** (two direction-keyed unions): surfaces attach, execute, complete,
|
|
18
|
+
answer prompts, return local pipe results or failures, and return edits; the
|
|
19
|
+
daemon acknowledges attachment, returns results and completion, streams output
|
|
20
|
+
and structured progress, broadcasts session envelopes, pushes prompt context,
|
|
21
|
+
delegates prompts/pipes/edits to the originating surface, and reports errors.
|
|
20
22
|
- **Envelope** — the `commandEnvelopeSchema` validates cumin's `CommandEnvelope` on the wire; a compile-time guard keeps the schema in step with cumin's type so the published contract can never silently drift from what the code produces.
|
|
21
23
|
- **Boundary validation** — structural violations are rejected; unknown *additive* fields are tolerated, so a daemon accepts extensions from a newer minor without understanding them. Parsing never throws.
|
|
22
24
|
- **Versioning** — the contract version (`CONTRACT_VERSION`) is carried in the attach handshake and refused on mismatch; within a major, changes are additive only.
|
|
@@ -30,4 +32,12 @@ if (!parsed.ok) socket.send({ type: 'error', reason: parsed.error });
|
|
|
30
32
|
|
|
31
33
|
## Status
|
|
32
34
|
|
|
33
|
-
|
|
35
|
+
The session host is shipped. Version 0.4 adds identity-keyed local berths, so one
|
|
36
|
+
OS account can run isolated daemons for several CUBE identities; ChELL resolves
|
|
37
|
+
them explicitly or with a picker. Daemon mode warms and reports the shared
|
|
38
|
+
startup caches before publishing its listening berth. The full architecture and
|
|
39
|
+
the eventual natural-language layer—which may only *propose* commands for the
|
|
40
|
+
deterministic shell to validate and run—are documented in
|
|
41
|
+
[docs/calypso.adoc](../../docs/calypso.adoc),
|
|
42
|
+
[docs/session-supervisor.adoc](../../docs/session-supervisor.adoc), and
|
|
43
|
+
[docs/surfaces.adoc](../../docs/surfaces.adoc).
|
package/dist/daemon/discovery.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @file
|
|
2
|
+
* @file Legacy single-file same-user daemon discovery.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* perimeter is the loopback bind plus a token whose only distribution is a
|
|
8
|
-
* 0600 file on the same machine.
|
|
4
|
+
* Retained for compatibility and its direct tests; current daemon launch and
|
|
5
|
+
* ChELL attachment use identity-keyed berths from `berth.ts`. This older model
|
|
6
|
+
* records only one daemon per OS user in a 0600 file.
|
|
9
7
|
*
|
|
10
8
|
* @module
|
|
11
9
|
*/
|
|
@@ -14,7 +12,7 @@ import { join } from 'path';
|
|
|
14
12
|
import { tmpdir } from 'os';
|
|
15
13
|
import { userInfo } from 'os';
|
|
16
14
|
/**
|
|
17
|
-
* The per-user discovery file path.
|
|
15
|
+
* The legacy per-user discovery file path.
|
|
18
16
|
*
|
|
19
17
|
* @returns The path the daemon writes and a client reads.
|
|
20
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.js","sourceRoot":"","sources":["../../src/daemon/discovery.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"discovery.js","sourceRoot":"","sources":["../../src/daemon/discovery.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AAQ9B;;;;GAIG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,IAAI,CAAC,MAAM,EAAE,EAAE,iBAAiB,QAAQ,EAAE,CAAC,QAAQ,OAAO,CAAC,CAAC;AACrE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,SAAoB;IAClD,aAAa,CAAC,cAAc,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;AAC9E,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,IAAI,GAAW,cAAc,EAAE,CAAC;IACtC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,CAAC;QACH,MAAM,MAAM,GAAY,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;QAChE,IACE,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI;YAC7C,OAAQ,MAAoB,CAAC,GAAG,KAAK,QAAQ;YAC7C,OAAQ,MAAoB,CAAC,KAAK,KAAK,QAAQ,EAC/C,CAAC;YACD,OAAO,MAAmB,CAAC;QAC7B,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file The CALYPSO wire contract: public surface.
|
|
3
3
|
*
|
|
4
|
-
* calypso is the
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
4
|
+
* calypso is the session host that serves a brasa engine to surfaces over a
|
|
5
|
+
* WebSocket. Its public API includes the typed wire contract and boundary
|
|
6
|
+
* validation, the daemon and launch path, structured session messages, and
|
|
7
|
+
* identity-keyed local berth discovery. Natural-language intent assistance is
|
|
8
|
+
* future work built above this deterministic session boundary.
|
|
9
9
|
*
|
|
10
10
|
* @see docs/calypso.adoc for the governing design.
|
|
11
11
|
* @module
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file The CALYPSO wire contract: public surface.
|
|
3
3
|
*
|
|
4
|
-
* calypso is the
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
4
|
+
* calypso is the session host that serves a brasa engine to surfaces over a
|
|
5
|
+
* WebSocket. Its public API includes the typed wire contract and boundary
|
|
6
|
+
* validation, the daemon and launch path, structured session messages, and
|
|
7
|
+
* identity-keyed local berth discovery. Natural-language intent assistance is
|
|
8
|
+
* future work built above this deterministic session boundary.
|
|
9
9
|
*
|
|
10
10
|
* @see docs/calypso.adoc for the governing design.
|
|
11
11
|
* @module
|
|
@@ -618,10 +618,13 @@ export declare const promptContextSchema: z.ZodObject<{
|
|
|
618
618
|
lastCommandDurationMs: z.ZodNumber;
|
|
619
619
|
procWarmup: z.ZodOptional<z.ZodObject<{
|
|
620
620
|
loaded: z.ZodNumber;
|
|
621
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
621
622
|
}, "strip", z.ZodTypeAny, {
|
|
622
623
|
loaded: number;
|
|
624
|
+
total?: number | undefined;
|
|
623
625
|
}, {
|
|
624
626
|
loaded: number;
|
|
627
|
+
total?: number | undefined;
|
|
625
628
|
}>>;
|
|
626
629
|
}, "strip", z.ZodTypeAny, {
|
|
627
630
|
user: string;
|
|
@@ -633,6 +636,7 @@ export declare const promptContextSchema: z.ZodObject<{
|
|
|
633
636
|
lastCommandDurationMs: number;
|
|
634
637
|
procWarmup?: {
|
|
635
638
|
loaded: number;
|
|
639
|
+
total?: number | undefined;
|
|
636
640
|
} | undefined;
|
|
637
641
|
}, {
|
|
638
642
|
user: string;
|
|
@@ -644,6 +648,7 @@ export declare const promptContextSchema: z.ZodObject<{
|
|
|
644
648
|
lastCommandDurationMs: number;
|
|
645
649
|
procWarmup?: {
|
|
646
650
|
loaded: number;
|
|
651
|
+
total?: number | undefined;
|
|
647
652
|
} | undefined;
|
|
648
653
|
}>;
|
|
649
654
|
export type PromptContext = z.infer<typeof promptContextSchema>;
|
|
@@ -665,10 +670,13 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
665
670
|
lastCommandDurationMs: z.ZodNumber;
|
|
666
671
|
procWarmup: z.ZodOptional<z.ZodObject<{
|
|
667
672
|
loaded: z.ZodNumber;
|
|
673
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
668
674
|
}, "strip", z.ZodTypeAny, {
|
|
669
675
|
loaded: number;
|
|
676
|
+
total?: number | undefined;
|
|
670
677
|
}, {
|
|
671
678
|
loaded: number;
|
|
679
|
+
total?: number | undefined;
|
|
672
680
|
}>>;
|
|
673
681
|
}, "strip", z.ZodTypeAny, {
|
|
674
682
|
user: string;
|
|
@@ -680,6 +688,7 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
680
688
|
lastCommandDurationMs: number;
|
|
681
689
|
procWarmup?: {
|
|
682
690
|
loaded: number;
|
|
691
|
+
total?: number | undefined;
|
|
683
692
|
} | undefined;
|
|
684
693
|
}, {
|
|
685
694
|
user: string;
|
|
@@ -691,6 +700,7 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
691
700
|
lastCommandDurationMs: number;
|
|
692
701
|
procWarmup?: {
|
|
693
702
|
loaded: number;
|
|
703
|
+
total?: number | undefined;
|
|
694
704
|
} | undefined;
|
|
695
705
|
}>;
|
|
696
706
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -705,6 +715,7 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
705
715
|
lastCommandDurationMs: number;
|
|
706
716
|
procWarmup?: {
|
|
707
717
|
loaded: number;
|
|
718
|
+
total?: number | undefined;
|
|
708
719
|
} | undefined;
|
|
709
720
|
};
|
|
710
721
|
}, {
|
|
@@ -719,6 +730,7 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
719
730
|
lastCommandDurationMs: number;
|
|
720
731
|
procWarmup?: {
|
|
721
732
|
loaded: number;
|
|
733
|
+
total?: number | undefined;
|
|
722
734
|
} | undefined;
|
|
723
735
|
};
|
|
724
736
|
}>;
|
|
@@ -1132,10 +1144,13 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1132
1144
|
lastCommandDurationMs: z.ZodNumber;
|
|
1133
1145
|
procWarmup: z.ZodOptional<z.ZodObject<{
|
|
1134
1146
|
loaded: z.ZodNumber;
|
|
1147
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
1135
1148
|
}, "strip", z.ZodTypeAny, {
|
|
1136
1149
|
loaded: number;
|
|
1150
|
+
total?: number | undefined;
|
|
1137
1151
|
}, {
|
|
1138
1152
|
loaded: number;
|
|
1153
|
+
total?: number | undefined;
|
|
1139
1154
|
}>>;
|
|
1140
1155
|
}, "strip", z.ZodTypeAny, {
|
|
1141
1156
|
user: string;
|
|
@@ -1147,6 +1162,7 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1147
1162
|
lastCommandDurationMs: number;
|
|
1148
1163
|
procWarmup?: {
|
|
1149
1164
|
loaded: number;
|
|
1165
|
+
total?: number | undefined;
|
|
1150
1166
|
} | undefined;
|
|
1151
1167
|
}, {
|
|
1152
1168
|
user: string;
|
|
@@ -1158,6 +1174,7 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1158
1174
|
lastCommandDurationMs: number;
|
|
1159
1175
|
procWarmup?: {
|
|
1160
1176
|
loaded: number;
|
|
1177
|
+
total?: number | undefined;
|
|
1161
1178
|
} | undefined;
|
|
1162
1179
|
}>;
|
|
1163
1180
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1172,6 +1189,7 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1172
1189
|
lastCommandDurationMs: number;
|
|
1173
1190
|
procWarmup?: {
|
|
1174
1191
|
loaded: number;
|
|
1192
|
+
total?: number | undefined;
|
|
1175
1193
|
} | undefined;
|
|
1176
1194
|
};
|
|
1177
1195
|
}, {
|
|
@@ -1186,6 +1204,7 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1186
1204
|
lastCommandDurationMs: number;
|
|
1187
1205
|
procWarmup?: {
|
|
1188
1206
|
loaded: number;
|
|
1207
|
+
total?: number | undefined;
|
|
1189
1208
|
} | undefined;
|
|
1190
1209
|
};
|
|
1191
1210
|
}>, z.ZodObject<{
|
|
@@ -161,7 +161,7 @@ export const promptContextSchema = z.object({
|
|
|
161
161
|
physicalMode: z.boolean(),
|
|
162
162
|
lastExitCode: z.number(),
|
|
163
163
|
lastCommandDurationMs: z.number(),
|
|
164
|
-
procWarmup: z.object({ loaded: z.number() }).optional(),
|
|
164
|
+
procWarmup: z.object({ loaded: z.number(), total: z.number().optional() }).optional(),
|
|
165
165
|
});
|
|
166
166
|
/**
|
|
167
167
|
* The prompt context, pushed by the daemon with each result and on any context
|
|
@@ -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;AAEtD,mDAAmD;AACnD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;AAE/D,8EAA8E;AAE9E,+EAA+E;AAC/E,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IACzB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,CAAC,CAAC,M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,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACvB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAEH,oDAAoD;AACpD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC9D,qBAAqB;IACrB,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,qBAAqB;IACrB,oBAAoB;IACpB,kBAAkB;IAClB,mBAAmB;IACnB,uBAAuB;IACvB,iBAAiB;IACjB,iBAAiB;CAClB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fnndsc/calypso",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "rm -fr dist && tsc && chmod +x ./dist/calypso.js",
|
|
33
33
|
"test": "NODE_OPTIONS='--experimental-vm-modules --disable-warning=ExperimentalWarning' jest --coverage",
|
|
34
|
-
"prepublishOnly": "
|
|
34
|
+
"prepublishOnly": "test -f dist/index.js && test -f dist/index.d.ts"
|
|
35
35
|
},
|
|
36
36
|
"keywords": [
|
|
37
37
|
"chris",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"typescript": "^5.0.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@fnndsc/brasa": "^0.9.
|
|
55
|
-
"@fnndsc/cumin": "^3.8.
|
|
54
|
+
"@fnndsc/brasa": "^0.9.2",
|
|
55
|
+
"@fnndsc/cumin": "^3.8.1",
|
|
56
56
|
"chalk": "^4.1.2",
|
|
57
57
|
"ws": "^8.18.0",
|
|
58
58
|
"zod": "^3.23.8"
|