@fnndsc/calypso 0.21.4 → 0.23.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/daemon/claims.d.ts +38 -0
- package/dist/daemon/claims.js +71 -0
- package/dist/daemon/claims.js.map +1 -0
- package/dist/daemon/engine.d.ts +13 -0
- package/dist/daemon/lane.d.ts +37 -0
- package/dist/daemon/lane.js +66 -0
- package/dist/daemon/lane.js.map +1 -0
- package/dist/daemon/launch.d.ts +6 -0
- package/dist/daemon/launch.js +16 -0
- package/dist/daemon/launch.js.map +1 -1
- package/dist/daemon/server.d.ts +96 -6
- package/dist/daemon/server.js +286 -55
- package/dist/daemon/server.js.map +1 -1
- package/dist/daemon/terminals.d.ts +175 -0
- package/dist/daemon/terminals.js +283 -0
- package/dist/daemon/terminals.js.map +1 -0
- package/dist/notes.json +1 -1
- package/package.json +7 -4
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Surface claims: which lines a surface's own language answers for.
|
|
3
|
+
*
|
|
4
|
+
* A browser carries a language of its own (`dag %1 census on`, `desktop show`,
|
|
5
|
+
* `pane close`). It declares its subjects on attach; a subject the session
|
|
6
|
+
* also owns (`file`, `help`) comes with the verbs the surface claims from it,
|
|
7
|
+
* and every other verb of it stays the session's. A line typed in any chell
|
|
8
|
+
* whose subject is claimed is run by the surface, never by the engine: the
|
|
9
|
+
* law a-surface-never-shadows-the-session, held in one place.
|
|
10
|
+
*
|
|
11
|
+
* Matching reads a line as the surface does: the first word is the subject;
|
|
12
|
+
* for a shared subject, the second word is the verb. Only a single command is
|
|
13
|
+
* routed: a line with a pipe, a list or a redirect is the session's to run.
|
|
14
|
+
*
|
|
15
|
+
* @module
|
|
16
|
+
*/
|
|
17
|
+
/** One claimed subject: all of it, or only the verbs listed. */
|
|
18
|
+
export interface SurfaceClaim {
|
|
19
|
+
subject: string;
|
|
20
|
+
verbs?: string[];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The claimed subject a line is in, when the line belongs to the surface.
|
|
24
|
+
*
|
|
25
|
+
* @param claims - The surface's claims.
|
|
26
|
+
* @param line - The line typed.
|
|
27
|
+
* @returns The subject, or null when the session owns the line.
|
|
28
|
+
*/
|
|
29
|
+
export declare function claim_match(claims: ReadonlyArray<SurfaceClaim>, line: string): string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Completion candidates the claims add for a line typed so far: subjects for
|
|
32
|
+
* a first word, a shared subject's claimed verbs for a second.
|
|
33
|
+
*
|
|
34
|
+
* @param claims - Every attached surface's claims.
|
|
35
|
+
* @param linePrefix - The line up to the cursor.
|
|
36
|
+
* @returns The candidates the claims offer for the word being completed.
|
|
37
|
+
*/
|
|
38
|
+
export declare function claimCandidates_of(claims: ReadonlyArray<SurfaceClaim>, linePrefix: string): string[];
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Surface claims: which lines a surface's own language answers for.
|
|
3
|
+
*
|
|
4
|
+
* A browser carries a language of its own (`dag %1 census on`, `desktop show`,
|
|
5
|
+
* `pane close`). It declares its subjects on attach; a subject the session
|
|
6
|
+
* also owns (`file`, `help`) comes with the verbs the surface claims from it,
|
|
7
|
+
* and every other verb of it stays the session's. A line typed in any chell
|
|
8
|
+
* whose subject is claimed is run by the surface, never by the engine: the
|
|
9
|
+
* law a-surface-never-shadows-the-session, held in one place.
|
|
10
|
+
*
|
|
11
|
+
* Matching reads a line as the surface does: the first word is the subject;
|
|
12
|
+
* for a shared subject, the second word is the verb. Only a single command is
|
|
13
|
+
* routed: a line with a pipe, a list or a redirect is the session's to run.
|
|
14
|
+
*
|
|
15
|
+
* @module
|
|
16
|
+
*/
|
|
17
|
+
/** A line the session runs itself, whatever its first word: a pipe, a list, a redirect. */
|
|
18
|
+
const COMPOUND = /[|;&<>]/;
|
|
19
|
+
/**
|
|
20
|
+
* The claimed subject a line is in, when the line belongs to the surface.
|
|
21
|
+
*
|
|
22
|
+
* @param claims - The surface's claims.
|
|
23
|
+
* @param line - The line typed.
|
|
24
|
+
* @returns The subject, or null when the session owns the line.
|
|
25
|
+
*/
|
|
26
|
+
export function claim_match(claims, line) {
|
|
27
|
+
const trimmed = line.trim();
|
|
28
|
+
if (trimmed === '' || COMPOUND.test(trimmed))
|
|
29
|
+
return null;
|
|
30
|
+
const words = trimmed.split(/\s+/);
|
|
31
|
+
const subject = (words[0] ?? '').toLowerCase();
|
|
32
|
+
const claim = claims.find((one) => one.subject.toLowerCase() === subject);
|
|
33
|
+
if (claim === undefined)
|
|
34
|
+
return null;
|
|
35
|
+
if (claim.verbs !== undefined && !claim.verbs.map((verb) => verb.toLowerCase()).includes((words[1] ?? '').toLowerCase()))
|
|
36
|
+
return null;
|
|
37
|
+
return subject;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Completion candidates the claims add for a line typed so far: subjects for
|
|
41
|
+
* a first word, a shared subject's claimed verbs for a second.
|
|
42
|
+
*
|
|
43
|
+
* @param claims - Every attached surface's claims.
|
|
44
|
+
* @param linePrefix - The line up to the cursor.
|
|
45
|
+
* @returns The candidates the claims offer for the word being completed.
|
|
46
|
+
*/
|
|
47
|
+
export function claimCandidates_of(claims, linePrefix) {
|
|
48
|
+
if (COMPOUND.test(linePrefix))
|
|
49
|
+
return [];
|
|
50
|
+
const words = linePrefix.replace(/^\s+/, '').split(/\s+/);
|
|
51
|
+
const offered = new Set();
|
|
52
|
+
if (words.length === 1) {
|
|
53
|
+
const typed = (words[0] ?? '').toLowerCase();
|
|
54
|
+
for (const claim of claims)
|
|
55
|
+
if (claim.subject.toLowerCase().startsWith(typed))
|
|
56
|
+
offered.add(claim.subject);
|
|
57
|
+
}
|
|
58
|
+
else if (words.length === 2) {
|
|
59
|
+
const subject = (words[0] ?? '').toLowerCase();
|
|
60
|
+
const typed = (words[1] ?? '').toLowerCase();
|
|
61
|
+
for (const claim of claims) {
|
|
62
|
+
if (claim.subject.toLowerCase() !== subject || claim.verbs === undefined)
|
|
63
|
+
continue;
|
|
64
|
+
for (const verb of claim.verbs)
|
|
65
|
+
if (verb.toLowerCase().startsWith(typed))
|
|
66
|
+
offered.add(verb);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return [...offered].sort();
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=claims.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claims.js","sourceRoot":"","sources":["../../src/daemon/claims.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAQH,2FAA2F;AAC3F,MAAM,QAAQ,GAAW,SAAS,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,UAAU,WAAW,CAAC,MAAmC,EAAE,IAAY;IAC3E,MAAM,OAAO,GAAW,IAAI,CAAC,IAAI,EAAE,CAAC;IACpC,IAAI,OAAO,KAAK,EAAE,IAAI,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IAC1D,MAAM,KAAK,GAAa,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC7C,MAAM,OAAO,GAAW,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IACvD,MAAM,KAAK,GAA6B,MAAM,CAAC,IAAI,CAAC,CAAC,GAAiB,EAAW,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,OAAO,CAAC,CAAC;IAC3H,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACrC,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAY,EAAU,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;QAAE,OAA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,GAAG,CAAC,IAAI,CAAC,CAAC;QAC9F,CAAC;IACH,CAAC;IACD,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;AAC7B,CAAC"}
|
package/dist/daemon/engine.d.ts
CHANGED
|
@@ -42,6 +42,19 @@ export interface HostedEngine {
|
|
|
42
42
|
* @returns True when the active command accepted the request.
|
|
43
43
|
*/
|
|
44
44
|
line_cancel?(): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* The running command steps aside to wait on a person: the engine saves
|
|
47
|
+
* and clears its per-command state, so the next command starts clean.
|
|
48
|
+
*
|
|
49
|
+
* @returns What it left behind, handed back to `turn_resume`.
|
|
50
|
+
*/
|
|
51
|
+
turn_leave?(): unknown;
|
|
52
|
+
/**
|
|
53
|
+
* A command that stepped aside resumes: the engine puts its state back.
|
|
54
|
+
*
|
|
55
|
+
* @param state - What `turn_leave` returned for it.
|
|
56
|
+
*/
|
|
57
|
+
turn_resume?(state: unknown): void;
|
|
45
58
|
/**
|
|
46
59
|
* Computes completion candidates for a partial input line.
|
|
47
60
|
*
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The lane: the session runs one command at a time, and the lane is
|
|
3
|
+
* whose turn it is.
|
|
4
|
+
*
|
|
5
|
+
* Commands share one session (its directory, its context, its index), so
|
|
6
|
+
* they take turns, first come first served. A command holds the lane while
|
|
7
|
+
* it works and gives it up while it waits on a person (a question, an
|
|
8
|
+
* editor): waiting is not working, and the session is free for the next
|
|
9
|
+
* command until the answer comes, when the asker takes its place in line
|
|
10
|
+
* again.
|
|
11
|
+
*
|
|
12
|
+
* @module
|
|
13
|
+
*/
|
|
14
|
+
/** A first-come, first-served turn. */
|
|
15
|
+
export declare class Lane {
|
|
16
|
+
private held;
|
|
17
|
+
private readonly line;
|
|
18
|
+
/**
|
|
19
|
+
* Waits for the turn.
|
|
20
|
+
*
|
|
21
|
+
* @returns Resolves holding the lane.
|
|
22
|
+
*/
|
|
23
|
+
acquire(): Promise<void>;
|
|
24
|
+
/** Gives up the turn: the next in line takes it, or the lane is free. */
|
|
25
|
+
release(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Runs work in its turn and gives the turn up after, however it ends.
|
|
28
|
+
*
|
|
29
|
+
* @param work - The work.
|
|
30
|
+
* @returns What the work returns.
|
|
31
|
+
*/
|
|
32
|
+
run<T>(work: () => Promise<T>): Promise<T>;
|
|
33
|
+
/** How many wait for the turn. */
|
|
34
|
+
get waiting(): number;
|
|
35
|
+
/** Whether someone has the turn. */
|
|
36
|
+
get busy(): boolean;
|
|
37
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The lane: the session runs one command at a time, and the lane is
|
|
3
|
+
* whose turn it is.
|
|
4
|
+
*
|
|
5
|
+
* Commands share one session (its directory, its context, its index), so
|
|
6
|
+
* they take turns, first come first served. A command holds the lane while
|
|
7
|
+
* it works and gives it up while it waits on a person (a question, an
|
|
8
|
+
* editor): waiting is not working, and the session is free for the next
|
|
9
|
+
* command until the answer comes, when the asker takes its place in line
|
|
10
|
+
* again.
|
|
11
|
+
*
|
|
12
|
+
* @module
|
|
13
|
+
*/
|
|
14
|
+
/** A first-come, first-served turn. */
|
|
15
|
+
export class Lane {
|
|
16
|
+
held = false;
|
|
17
|
+
line = [];
|
|
18
|
+
/**
|
|
19
|
+
* Waits for the turn.
|
|
20
|
+
*
|
|
21
|
+
* @returns Resolves holding the lane.
|
|
22
|
+
*/
|
|
23
|
+
acquire() {
|
|
24
|
+
if (!this.held) {
|
|
25
|
+
this.held = true;
|
|
26
|
+
return Promise.resolve();
|
|
27
|
+
}
|
|
28
|
+
return new Promise((resolve) => {
|
|
29
|
+
this.line.push(resolve);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/** Gives up the turn: the next in line takes it, or the lane is free. */
|
|
33
|
+
release() {
|
|
34
|
+
const next = this.line.shift();
|
|
35
|
+
if (next !== undefined) {
|
|
36
|
+
next();
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
this.held = false;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Runs work in its turn and gives the turn up after, however it ends.
|
|
44
|
+
*
|
|
45
|
+
* @param work - The work.
|
|
46
|
+
* @returns What the work returns.
|
|
47
|
+
*/
|
|
48
|
+
async run(work) {
|
|
49
|
+
await this.acquire();
|
|
50
|
+
try {
|
|
51
|
+
return await work();
|
|
52
|
+
}
|
|
53
|
+
finally {
|
|
54
|
+
this.release();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/** How many wait for the turn. */
|
|
58
|
+
get waiting() {
|
|
59
|
+
return this.line.length;
|
|
60
|
+
}
|
|
61
|
+
/** Whether someone has the turn. */
|
|
62
|
+
get busy() {
|
|
63
|
+
return this.held;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=lane.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lane.js","sourceRoot":"","sources":["../../src/daemon/lane.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,uCAAuC;AACvC,MAAM,OAAO,IAAI;IACP,IAAI,GAAY,KAAK,CAAC;IACb,IAAI,GAAsB,EAAE,CAAC;IAE9C;;;;OAIG;IACI,OAAO;QACZ,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;YACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;YACjB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;QAC3B,CAAC;QACD,OAAO,IAAI,OAAO,CAAO,CAAC,OAAmB,EAAQ,EAAE;YACrD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1B,CAAC,CAAC,CAAC;IACL,CAAC;IAED,yEAAyE;IAClE,OAAO;QACZ,MAAM,IAAI,GAA6B,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;QACzD,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,IAAI,EAAE,CAAC;QACT,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QACpB,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,GAAG,CAAI,IAAsB;QACxC,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;QACrB,IAAI,CAAC;YACH,OAAO,MAAM,IAAI,EAAE,CAAC;QACtB,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,OAAO,EAAE,CAAC;QACjB,CAAC;IACH,CAAC;IAED,kCAAkC;IAClC,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;IAC1B,CAAC;IAED,oCAAoC;IACpC,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF"}
|
package/dist/daemon/launch.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { CalypsoDaemon } from './server.js';
|
|
|
2
2
|
import type { BrasaEngine } from '@fnndsc/brasa/core';
|
|
3
3
|
import type { ProgressEvent } from '@fnndsc/menu';
|
|
4
4
|
import type { OutputSink, Surface } from '@fnndsc/menu/surface';
|
|
5
|
+
import { type SurfaceLaunch } from './consoleSession.js';
|
|
5
6
|
import { type HostControlPolicy } from './hostControl.js';
|
|
6
7
|
/** What a launched daemon hands back to its host (the console face's feed). */
|
|
7
8
|
export interface DaemonLaunchInfo {
|
|
@@ -61,5 +62,10 @@ export interface DaemonLaunchOptions {
|
|
|
61
62
|
* enclosing checkout come first. calypso itself depends on no surface.
|
|
62
63
|
*/
|
|
63
64
|
webRoot?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* How to run the chell a browser's terminal holds: chell passes itself;
|
|
67
|
+
* the standalone calypso binary runs the `chell` on the path.
|
|
68
|
+
*/
|
|
69
|
+
surfaceLaunch?: SurfaceLaunch;
|
|
64
70
|
}
|
|
65
71
|
export declare function daemon_launch(engine: BrasaEngine, beforeListen?: () => Promise<void>, options?: DaemonLaunchOptions): Promise<DaemonLaunchInfo>;
|
package/dist/daemon/launch.js
CHANGED
|
@@ -22,6 +22,8 @@ import { backend_get } from '@fnndsc/brasa/core';
|
|
|
22
22
|
import { stackBanner_rows, stackBannerRow_paint, versions_get, buildHash_get } from '@fnndsc/brasa/core';
|
|
23
23
|
import { identity_normalise, berth_write, berthOwn_read, berth_path, berthUrl_isAlive, closing_take } from './berth.js';
|
|
24
24
|
import { attachFile_write, attachFile_remove } from './attachFile.js';
|
|
25
|
+
import { CHELL_ON_PATH } from './consoleSession.js';
|
|
26
|
+
import { Terminals, ptySpawn_load } from './terminals.js';
|
|
25
27
|
import { HOST_CONTROL_OFF, hostControl_describe, hostControl_guard, hostControl_tiers, hostPipe_run, hostShell_run } from './hostControl.js';
|
|
26
28
|
/** The daemon sink forwards live command output to the executing surface. */
|
|
27
29
|
export class DaemonSink {
|
|
@@ -220,6 +222,20 @@ export async function daemon_launch(engine, beforeListen, options = {}) {
|
|
|
220
222
|
// restarts the session at the next login rather than mount an older kernel.
|
|
221
223
|
const berth = { identity, url, token, pid: process.pid, versions: { ...versions_get() }, booted: new Date().toISOString() };
|
|
222
224
|
berth_write(berth);
|
|
225
|
+
// Terminals: a browser's console as a chell under a pty, attached back
|
|
226
|
+
// over loopback (or the one address bound, when that is not a wildcard).
|
|
227
|
+
// A machine where node-pty did not build offers none; its surfaces fall
|
|
228
|
+
// back to the transcript console (deprecated). CALYPSO_NO_PTY=1 makes a
|
|
229
|
+
// daemon that machine, so the fallback can be exercised where a pty builds.
|
|
230
|
+
const ptySpawn = process.env['CALYPSO_NO_PTY'] === '1' ? null : await ptySpawn_load();
|
|
231
|
+
if (ptySpawn !== null) {
|
|
232
|
+
const terminalHost = bindHost === '0.0.0.0' ? '127.0.0.1' : bindHost;
|
|
233
|
+
daemon.terminals_set(new Terminals({
|
|
234
|
+
spawn: ptySpawn,
|
|
235
|
+
launch: options.surfaceLaunch ?? CHELL_ON_PATH,
|
|
236
|
+
target: { identity, url: `ws://${terminalHost}:${port}`, token },
|
|
237
|
+
}));
|
|
238
|
+
}
|
|
223
239
|
const attachHint = sessionIdentity.connected ? ` ${identity}` : '';
|
|
224
240
|
// The boot animation keeps repainting this terminal, and scrollback dies with
|
|
225
241
|
// the next clear. The same addresses go to a file so they can be read back
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launch.js","sourceRoot":"","sources":["../../src/daemon/launch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAA0B,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,iBAAiB,EAAE,mBAAmB,EAAqB,MAAM,aAAa,CAAC;AAC9H,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,eAAe,EAAkB,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAK5C,OAAO,EAAE,WAAW,EAAsC,MAAM,oBAAoB,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACzG,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,gBAAgB,EAAE,YAAY,EAAc,MAAM,YAAY,CAAC;AAEpI,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,YAAY,EAAE,aAAa,EAA0B,MAAM,kBAAkB,CAAC;AAsBrK,6EAA6E;AAC7E,MAAM,OAAO,UAAU;IACQ;IAA7B,YAA6B,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AAC,6BAA6B,QAAQ,EAAE,CAAC,CAAC,CAAC;QACjE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,4CAA4C,CAAC,CAAC,CAAC;IACxE,CAAC;IAED,OAAO;QACL,QAAQ;QACR,GAAG;QACH,KAAK;QACL,SAAS,EAAE,UAAU,CAAC,QAAQ,CAAC;QAC/B,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,UAAU,WAAW,IAAI,IAAI,WAAW,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI;QACnF,MAAM;QACN,WAAW;QACX,QAAQ;KACT,CAAC;AACJ,CAAC"}
|
package/dist/daemon/server.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { HostedEngine } from './engine.js';
|
|
2
2
|
import type { ProgressEvent, PromptContext, PromptKind, PromptPath, FileDeliverRequest, ClosingCause } from '@fnndsc/menu';
|
|
3
|
+
import type { Terminals } from './terminals.js';
|
|
3
4
|
/**
|
|
4
5
|
* The hosting process's stack identity, sent to surfaces in the attach ack.
|
|
5
6
|
* Injected by the host (which resolves it from brasa) rather than resolved
|
|
@@ -144,8 +145,6 @@ export declare class CalypsoDaemon {
|
|
|
144
145
|
/** The last executed command's measured facts, sticky across pushes. */
|
|
145
146
|
private lastCommand;
|
|
146
147
|
private readonly telemetryProvider;
|
|
147
|
-
/** Commands queued behind the one running: the lane's depth. */
|
|
148
|
-
private queueWaiting;
|
|
149
148
|
/** The line holding the lane, and since when; null while the lane is idle. */
|
|
150
149
|
private currentLine;
|
|
151
150
|
private currentStartedAt;
|
|
@@ -158,6 +157,8 @@ export declare class CalypsoDaemon {
|
|
|
158
157
|
private readonly backend;
|
|
159
158
|
/** Whether the daemon's own code on disk has moved on since it started. */
|
|
160
159
|
private stale;
|
|
160
|
+
/** The terminals this daemon offers, or null when it offers none (no pty here). */
|
|
161
|
+
private terminals;
|
|
161
162
|
private readonly codeCheck;
|
|
162
163
|
private readonly hostControl;
|
|
163
164
|
/** The one session all surfaces share; returned in each attach ack. */
|
|
@@ -172,11 +173,14 @@ export declare class CalypsoDaemon {
|
|
|
172
173
|
private wss;
|
|
173
174
|
private httpServer;
|
|
174
175
|
/**
|
|
175
|
-
* Execution
|
|
176
|
-
* at a time
|
|
177
|
-
* ask
|
|
176
|
+
* Execution takes turns across the whole session (lane.ts): one command
|
|
177
|
+
* works at a time, so a prompt raised mid-command has one unambiguous
|
|
178
|
+
* surface to ask, the one holding the lane. A command waiting on a person
|
|
179
|
+
* gives the lane up until the answer comes (`person_await`).
|
|
178
180
|
*/
|
|
179
|
-
private
|
|
181
|
+
private readonly lane;
|
|
182
|
+
/** The questions open now, by the surface asked: what, and since when. */
|
|
183
|
+
private readonly questionsOpen;
|
|
180
184
|
/** The session's retained regard: the last indication from any surface. */
|
|
181
185
|
private regard;
|
|
182
186
|
/** Unsubscribes from the engine's ambient events; null until started. */
|
|
@@ -197,12 +201,27 @@ export declare class CalypsoDaemon {
|
|
|
197
201
|
/** The downloads this daemon is serving, for their progress (downloads.ts). */
|
|
198
202
|
private readonly downloads;
|
|
199
203
|
private readonly edits;
|
|
204
|
+
/** Lines run by a surface's own language, by the surface that claims them. */
|
|
205
|
+
private readonly surfaceLines;
|
|
206
|
+
/** Each surface's terminal viewer: which terminals it draws. */
|
|
207
|
+
private readonly viewerOf;
|
|
208
|
+
/** The browser that last did something: the one a claimed line goes to when no terminal of its own typed it. */
|
|
209
|
+
private browserActive;
|
|
210
|
+
/** Subjects a surface claimed whole this session, so a line in one is refused by name when none is attached. */
|
|
211
|
+
private readonly claimedSeen;
|
|
200
212
|
private readonly deliveries;
|
|
201
213
|
/**
|
|
202
214
|
* @param options - The engine to host, the attach token, the bind address,
|
|
203
215
|
* and the scrollback size.
|
|
204
216
|
*/
|
|
205
217
|
constructor(options: DaemonOptions);
|
|
218
|
+
/**
|
|
219
|
+
* Offers terminals: a surface's console as a chell under a pty
|
|
220
|
+
* (terminals.ts). Set once the daemon knows its own address.
|
|
221
|
+
*
|
|
222
|
+
* @param terminals - The terminals, or null to offer none.
|
|
223
|
+
*/
|
|
224
|
+
terminals_set(terminals: Terminals | null): void;
|
|
206
225
|
/**
|
|
207
226
|
* Records whether the daemon's own code still matches its disk, and tells
|
|
208
227
|
* every attached surface when that changes.
|
|
@@ -305,6 +324,54 @@ export declare class CalypsoDaemon {
|
|
|
305
324
|
* @param socket - The connected surface.
|
|
306
325
|
*/
|
|
307
326
|
private connection_handle;
|
|
327
|
+
/**
|
|
328
|
+
* The surface that acts for the running command: the one that issued it,
|
|
329
|
+
* except a browser's terminal, whose chell runs on this daemon's host. A
|
|
330
|
+
* shell, a pipe segment, an editor or a delivered file asked of a
|
|
331
|
+
* terminal's chell would happen on the daemon host (a browser handed a
|
|
332
|
+
* host shell, a download written to the host's disk), so they go to the
|
|
333
|
+
* browser that owns the terminal, which does them its own way or refuses
|
|
334
|
+
* by name. Its questions stay with the chell, answered in the terminal.
|
|
335
|
+
*
|
|
336
|
+
* @returns The acting surface, or null when no command runs or the
|
|
337
|
+
* terminal's browser has gone.
|
|
338
|
+
*/
|
|
339
|
+
private surfaceActing;
|
|
340
|
+
/**
|
|
341
|
+
* The surface that runs a line in its own language: the browser whose
|
|
342
|
+
* terminal typed it, else the browser that last did something, else any
|
|
343
|
+
* that claims the subject. 'absent' when the subject is a surface's but no
|
|
344
|
+
* surface that claims it is attached; null when the session owns the line.
|
|
345
|
+
*
|
|
346
|
+
* @param origin - The surface the line came from.
|
|
347
|
+
* @param line - The line.
|
|
348
|
+
* @returns The claimant, 'absent', or null.
|
|
349
|
+
*/
|
|
350
|
+
private claimant_for;
|
|
351
|
+
/**
|
|
352
|
+
* Runs a line in a surface's own language, and answers the surface that
|
|
353
|
+
* typed it with what the language said.
|
|
354
|
+
*
|
|
355
|
+
* @param origin - The surface that typed the line.
|
|
356
|
+
* @param message - The execute request.
|
|
357
|
+
* @param claimant - The surface that runs it, or 'absent'.
|
|
358
|
+
*/
|
|
359
|
+
private surfaceLine_run;
|
|
360
|
+
/**
|
|
361
|
+
* The terminals a surface draws.
|
|
362
|
+
*
|
|
363
|
+
* @param surface - The surface.
|
|
364
|
+
* @returns Their ids; none for a surface that draws no terminal.
|
|
365
|
+
*/
|
|
366
|
+
private terminalsOf;
|
|
367
|
+
/**
|
|
368
|
+
* Carries a browser's note to its consoles: the chell of every terminal it
|
|
369
|
+
* draws prints it above the line being typed.
|
|
370
|
+
*
|
|
371
|
+
* @param viewer - The browser's terminal viewer.
|
|
372
|
+
* @param text - The note.
|
|
373
|
+
*/
|
|
374
|
+
private note_relay;
|
|
308
375
|
/**
|
|
309
376
|
* Relays a cancellation request only to the surface's own foreground command.
|
|
310
377
|
*
|
|
@@ -384,6 +451,29 @@ export declare class CalypsoDaemon {
|
|
|
384
451
|
* @param message - The execute request.
|
|
385
452
|
*/
|
|
386
453
|
private execute_run;
|
|
454
|
+
/**
|
|
455
|
+
* The current-command slot, as it stands.
|
|
456
|
+
*
|
|
457
|
+
* @returns Who holds the lane, for which command.
|
|
458
|
+
*/
|
|
459
|
+
private slot_take;
|
|
460
|
+
/**
|
|
461
|
+
* Puts a slot back.
|
|
462
|
+
*
|
|
463
|
+
* @param slot - The slot.
|
|
464
|
+
*/
|
|
465
|
+
private slot_restore;
|
|
466
|
+
/**
|
|
467
|
+
* Waits on a person without holding the session: the request is sent, the
|
|
468
|
+
* lane given up and the slot put aside, so the next command takes its
|
|
469
|
+
* turn; when the person answers, the command queues for the lane again
|
|
470
|
+
* and resumes with its own slot.
|
|
471
|
+
*
|
|
472
|
+
* @param ask - Sends the request (under the asking command's slot) and
|
|
473
|
+
* resolves with the person's answer.
|
|
474
|
+
* @returns The answer.
|
|
475
|
+
*/
|
|
476
|
+
private person_await;
|
|
387
477
|
/**
|
|
388
478
|
* Raises a prompt on the surface running the current command, returning its
|
|
389
479
|
* answer. The host installs an engine-side input broker that calls this; the
|