@fnndsc/calypso 0.2.0 → 0.3.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.d.ts +13 -0
- package/dist/calypso.js +45 -0
- package/dist/calypso.js.map +1 -0
- package/dist/daemon/discovery.d.ts +23 -0
- package/dist/daemon/discovery.js +55 -0
- package/dist/daemon/discovery.js.map +1 -0
- package/dist/daemon/engine.js +1 -2
- package/dist/daemon/launch.d.ts +9 -0
- package/dist/daemon/launch.js +83 -0
- package/dist/daemon/launch.js.map +1 -0
- package/dist/daemon/server.d.ts +6 -5
- package/dist/daemon/server.js +43 -41
- package/dist/daemon/server.js.map +1 -1
- package/dist/daemon/token.js +8 -13
- package/dist/daemon/token.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -42
- package/dist/index.js.map +1 -1
- package/dist/protocol/envelope.js +20 -23
- package/dist/protocol/envelope.js.map +1 -1
- package/dist/protocol/messages.d.ts +175 -10
- package/dist/protocol/messages.js +132 -117
- package/dist/protocol/messages.js.map +1 -1
- package/dist/protocol/validate.js +10 -16
- package/dist/protocol/validate.js.map +1 -1
- package/dist/protocol/version.js +3 -7
- package/dist/protocol/version.js.map +1 -1
- package/package.json +10 -5
package/dist/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CalypsoDaemon = exports.token_matches = exports.token_writeFile = exports.token_generate = exports.attach_parse = exports.clientMessage_fromJson = exports.serverMessage_parse = exports.clientMessage_parse = exports.serverMessageSchema = exports.errorMessageSchema = exports.sessionMessageSchema = exports.progressMessageSchema = exports.progressStatusSchema = exports.progressUnitSchema = exports.progressPhaseSchema = exports.progressKindSchema = exports.progressOperationSchema = exports.outputMessageSchema = exports.completeReplySchema = exports.resultMessageSchema = exports.attachedMessageSchema = exports.clientMessageSchema = exports.completeRequestSchema = exports.executeMessageSchema = exports.attachMessageSchema = exports.channelSchema = exports.commandEnvelopeSchema = exports.resolutionTraceSchema = exports.envelopeModelSchema = exports.stackMessageSchema = exports.envelopeStatusSchema = exports.version_isCompatible = exports.CONTRACT_VERSION = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* @file The CALYPSO wire contract: public surface.
|
|
6
3
|
*
|
|
@@ -13,43 +10,12 @@ exports.CalypsoDaemon = exports.token_matches = exports.token_writeFile = export
|
|
|
13
10
|
* @see docs/calypso.adoc for the governing design.
|
|
14
11
|
* @module
|
|
15
12
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Object.defineProperty(exports, "commandEnvelopeSchema", { enumerable: true, get: function () { return envelope_js_1.commandEnvelopeSchema; } });
|
|
25
|
-
var messages_js_1 = require("./protocol/messages.js");
|
|
26
|
-
Object.defineProperty(exports, "channelSchema", { enumerable: true, get: function () { return messages_js_1.channelSchema; } });
|
|
27
|
-
Object.defineProperty(exports, "attachMessageSchema", { enumerable: true, get: function () { return messages_js_1.attachMessageSchema; } });
|
|
28
|
-
Object.defineProperty(exports, "executeMessageSchema", { enumerable: true, get: function () { return messages_js_1.executeMessageSchema; } });
|
|
29
|
-
Object.defineProperty(exports, "completeRequestSchema", { enumerable: true, get: function () { return messages_js_1.completeRequestSchema; } });
|
|
30
|
-
Object.defineProperty(exports, "clientMessageSchema", { enumerable: true, get: function () { return messages_js_1.clientMessageSchema; } });
|
|
31
|
-
Object.defineProperty(exports, "attachedMessageSchema", { enumerable: true, get: function () { return messages_js_1.attachedMessageSchema; } });
|
|
32
|
-
Object.defineProperty(exports, "resultMessageSchema", { enumerable: true, get: function () { return messages_js_1.resultMessageSchema; } });
|
|
33
|
-
Object.defineProperty(exports, "completeReplySchema", { enumerable: true, get: function () { return messages_js_1.completeReplySchema; } });
|
|
34
|
-
Object.defineProperty(exports, "outputMessageSchema", { enumerable: true, get: function () { return messages_js_1.outputMessageSchema; } });
|
|
35
|
-
Object.defineProperty(exports, "progressOperationSchema", { enumerable: true, get: function () { return messages_js_1.progressOperationSchema; } });
|
|
36
|
-
Object.defineProperty(exports, "progressKindSchema", { enumerable: true, get: function () { return messages_js_1.progressKindSchema; } });
|
|
37
|
-
Object.defineProperty(exports, "progressPhaseSchema", { enumerable: true, get: function () { return messages_js_1.progressPhaseSchema; } });
|
|
38
|
-
Object.defineProperty(exports, "progressUnitSchema", { enumerable: true, get: function () { return messages_js_1.progressUnitSchema; } });
|
|
39
|
-
Object.defineProperty(exports, "progressStatusSchema", { enumerable: true, get: function () { return messages_js_1.progressStatusSchema; } });
|
|
40
|
-
Object.defineProperty(exports, "progressMessageSchema", { enumerable: true, get: function () { return messages_js_1.progressMessageSchema; } });
|
|
41
|
-
Object.defineProperty(exports, "sessionMessageSchema", { enumerable: true, get: function () { return messages_js_1.sessionMessageSchema; } });
|
|
42
|
-
Object.defineProperty(exports, "errorMessageSchema", { enumerable: true, get: function () { return messages_js_1.errorMessageSchema; } });
|
|
43
|
-
Object.defineProperty(exports, "serverMessageSchema", { enumerable: true, get: function () { return messages_js_1.serverMessageSchema; } });
|
|
44
|
-
var validate_js_1 = require("./protocol/validate.js");
|
|
45
|
-
Object.defineProperty(exports, "clientMessage_parse", { enumerable: true, get: function () { return validate_js_1.clientMessage_parse; } });
|
|
46
|
-
Object.defineProperty(exports, "serverMessage_parse", { enumerable: true, get: function () { return validate_js_1.serverMessage_parse; } });
|
|
47
|
-
Object.defineProperty(exports, "clientMessage_fromJson", { enumerable: true, get: function () { return validate_js_1.clientMessage_fromJson; } });
|
|
48
|
-
Object.defineProperty(exports, "attach_parse", { enumerable: true, get: function () { return validate_js_1.attach_parse; } });
|
|
49
|
-
var token_js_1 = require("./daemon/token.js");
|
|
50
|
-
Object.defineProperty(exports, "token_generate", { enumerable: true, get: function () { return token_js_1.token_generate; } });
|
|
51
|
-
Object.defineProperty(exports, "token_writeFile", { enumerable: true, get: function () { return token_js_1.token_writeFile; } });
|
|
52
|
-
Object.defineProperty(exports, "token_matches", { enumerable: true, get: function () { return token_js_1.token_matches; } });
|
|
53
|
-
var server_js_1 = require("./daemon/server.js");
|
|
54
|
-
Object.defineProperty(exports, "CalypsoDaemon", { enumerable: true, get: function () { return server_js_1.CalypsoDaemon; } });
|
|
13
|
+
export { CONTRACT_VERSION, version_isCompatible } from './protocol/version.js';
|
|
14
|
+
export { envelopeStatusSchema, stackMessageSchema, envelopeModelSchema, resolutionTraceSchema, commandEnvelopeSchema, } from './protocol/envelope.js';
|
|
15
|
+
export { channelSchema, attachMessageSchema, executeMessageSchema, completeRequestSchema, clientMessageSchema, attachedMessageSchema, resultMessageSchema, completeReplySchema, outputMessageSchema, progressOperationSchema, progressKindSchema, progressPhaseSchema, progressUnitSchema, progressStatusSchema, progressMessageSchema, sessionMessageSchema, errorMessageSchema, serverMessageSchema, } from './protocol/messages.js';
|
|
16
|
+
export { clientMessage_parse, serverMessage_parse, clientMessage_fromJson, attach_parse, } from './protocol/validate.js';
|
|
17
|
+
export { token_generate, token_writeFile, token_matches } from './daemon/token.js';
|
|
18
|
+
export { CalypsoDaemon } from './daemon/server.js';
|
|
19
|
+
export { daemon_launch } from './daemon/launch.js';
|
|
20
|
+
export { discovery_read, discovery_write, discovery_path } from './daemon/discovery.js';
|
|
55
21
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,GAEtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,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,wBAAwB,CAAC;AAChC,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,YAAY,GAEb,MAAM,wBAAwB,CAAC;AAEhC,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,cAAc,EAAE,eAAe,EAAE,cAAc,EAAkB,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commandEnvelopeSchema = exports.resolutionTraceSchema = exports.envelopeModelSchema = exports.stackMessageSchema = exports.envelopeStatusSchema = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* @file The wire schema for a command envelope.
|
|
6
3
|
*
|
|
@@ -13,36 +10,36 @@ exports.commandEnvelopeSchema = exports.resolutionTraceSchema = exports.envelope
|
|
|
13
10
|
*
|
|
14
11
|
* @module
|
|
15
12
|
*/
|
|
16
|
-
|
|
13
|
+
import { z } from 'zod';
|
|
17
14
|
/** Terminal status of a completed command. */
|
|
18
|
-
|
|
15
|
+
export const envelopeStatusSchema = z.enum(['ok', 'error']);
|
|
19
16
|
/** A single structured error/warning drained from the error stack. */
|
|
20
|
-
|
|
21
|
-
type:
|
|
22
|
-
message:
|
|
17
|
+
export const stackMessageSchema = z.object({
|
|
18
|
+
type: z.enum(['error', 'warning']),
|
|
19
|
+
message: z.string(),
|
|
23
20
|
});
|
|
24
21
|
/** A command's typed result: a namespaced kind and an opaque payload. */
|
|
25
|
-
|
|
26
|
-
kind:
|
|
27
|
-
data:
|
|
22
|
+
export const envelopeModelSchema = z.object({
|
|
23
|
+
kind: z.string(),
|
|
24
|
+
data: z.unknown(),
|
|
28
25
|
});
|
|
29
26
|
/** The record of how a natural-language input resolved into a command. */
|
|
30
|
-
|
|
31
|
-
input:
|
|
32
|
-
proposed:
|
|
33
|
-
validated:
|
|
34
|
-
executed:
|
|
27
|
+
export const resolutionTraceSchema = z.object({
|
|
28
|
+
input: z.string(),
|
|
29
|
+
proposed: z.string(),
|
|
30
|
+
validated: z.boolean(),
|
|
31
|
+
executed: z.string().optional(),
|
|
35
32
|
});
|
|
36
33
|
/**
|
|
37
34
|
* The envelope in which one command's complete outcome crosses the wire.
|
|
38
35
|
*/
|
|
39
|
-
|
|
40
|
-
status:
|
|
41
|
-
rendered:
|
|
42
|
-
renderedErr:
|
|
43
|
-
model:
|
|
44
|
-
errors:
|
|
45
|
-
trace:
|
|
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(),
|
|
46
43
|
});
|
|
47
44
|
const _envelopeCoversCumin = true;
|
|
48
45
|
void _envelopeCoversCumin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envelope.js","sourceRoot":"","sources":["../../src/protocol/envelope.ts"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -575,20 +575,126 @@ export declare const promptMessageSchema: z.ZodObject<{
|
|
|
575
575
|
hidden: boolean;
|
|
576
576
|
}>;
|
|
577
577
|
/**
|
|
578
|
-
* The
|
|
579
|
-
*
|
|
580
|
-
*
|
|
581
|
-
*
|
|
578
|
+
* The engine-known facts a prompt reflects, independent of any theme.
|
|
579
|
+
*
|
|
580
|
+
* The daemon knows the session context but not how a given surface renders it,
|
|
581
|
+
* so it ships these facts and each surface themes them with its own settings.
|
|
582
|
+
* Rendering inputs a surface owns (theme, segments, terminal width) are not
|
|
583
|
+
* carried here.
|
|
584
|
+
*/
|
|
585
|
+
export declare const promptContextSchema: z.ZodObject<{
|
|
586
|
+
user: z.ZodString;
|
|
587
|
+
uri: z.ZodString;
|
|
588
|
+
cwd: z.ZodString;
|
|
589
|
+
pacsserver: z.ZodNullable<z.ZodString>;
|
|
590
|
+
physicalMode: z.ZodBoolean;
|
|
591
|
+
lastExitCode: z.ZodNumber;
|
|
592
|
+
lastCommandDurationMs: z.ZodNumber;
|
|
593
|
+
procWarmup: z.ZodOptional<z.ZodObject<{
|
|
594
|
+
loaded: z.ZodNumber;
|
|
595
|
+
}, "strip", z.ZodTypeAny, {
|
|
596
|
+
loaded: number;
|
|
597
|
+
}, {
|
|
598
|
+
loaded: number;
|
|
599
|
+
}>>;
|
|
600
|
+
}, "strip", z.ZodTypeAny, {
|
|
601
|
+
user: string;
|
|
602
|
+
uri: string;
|
|
603
|
+
cwd: string;
|
|
604
|
+
pacsserver: string | null;
|
|
605
|
+
physicalMode: boolean;
|
|
606
|
+
lastExitCode: number;
|
|
607
|
+
lastCommandDurationMs: number;
|
|
608
|
+
procWarmup?: {
|
|
609
|
+
loaded: number;
|
|
610
|
+
} | undefined;
|
|
611
|
+
}, {
|
|
612
|
+
user: string;
|
|
613
|
+
uri: string;
|
|
614
|
+
cwd: string;
|
|
615
|
+
pacsserver: string | null;
|
|
616
|
+
physicalMode: boolean;
|
|
617
|
+
lastExitCode: number;
|
|
618
|
+
lastCommandDurationMs: number;
|
|
619
|
+
procWarmup?: {
|
|
620
|
+
loaded: number;
|
|
621
|
+
} | undefined;
|
|
622
|
+
}>;
|
|
623
|
+
export type PromptContext = z.infer<typeof promptContextSchema>;
|
|
624
|
+
/**
|
|
625
|
+
* The prompt context, pushed by the daemon with each result and on any context
|
|
626
|
+
* change. The daemon knows the session context; each surface renders it with
|
|
627
|
+
* its own theme, so prompt themes are a per-surface choice rather than the
|
|
628
|
+
* daemon's.
|
|
582
629
|
*/
|
|
583
630
|
export declare const promptLineMessageSchema: z.ZodObject<{
|
|
584
631
|
type: z.ZodLiteral<"promptline">;
|
|
585
|
-
|
|
632
|
+
context: z.ZodObject<{
|
|
633
|
+
user: z.ZodString;
|
|
634
|
+
uri: z.ZodString;
|
|
635
|
+
cwd: z.ZodString;
|
|
636
|
+
pacsserver: z.ZodNullable<z.ZodString>;
|
|
637
|
+
physicalMode: z.ZodBoolean;
|
|
638
|
+
lastExitCode: z.ZodNumber;
|
|
639
|
+
lastCommandDurationMs: z.ZodNumber;
|
|
640
|
+
procWarmup: z.ZodOptional<z.ZodObject<{
|
|
641
|
+
loaded: z.ZodNumber;
|
|
642
|
+
}, "strip", z.ZodTypeAny, {
|
|
643
|
+
loaded: number;
|
|
644
|
+
}, {
|
|
645
|
+
loaded: number;
|
|
646
|
+
}>>;
|
|
647
|
+
}, "strip", z.ZodTypeAny, {
|
|
648
|
+
user: string;
|
|
649
|
+
uri: string;
|
|
650
|
+
cwd: string;
|
|
651
|
+
pacsserver: string | null;
|
|
652
|
+
physicalMode: boolean;
|
|
653
|
+
lastExitCode: number;
|
|
654
|
+
lastCommandDurationMs: number;
|
|
655
|
+
procWarmup?: {
|
|
656
|
+
loaded: number;
|
|
657
|
+
} | undefined;
|
|
658
|
+
}, {
|
|
659
|
+
user: string;
|
|
660
|
+
uri: string;
|
|
661
|
+
cwd: string;
|
|
662
|
+
pacsserver: string | null;
|
|
663
|
+
physicalMode: boolean;
|
|
664
|
+
lastExitCode: number;
|
|
665
|
+
lastCommandDurationMs: number;
|
|
666
|
+
procWarmup?: {
|
|
667
|
+
loaded: number;
|
|
668
|
+
} | undefined;
|
|
669
|
+
}>;
|
|
586
670
|
}, "strip", z.ZodTypeAny, {
|
|
587
671
|
type: "promptline";
|
|
588
|
-
|
|
672
|
+
context: {
|
|
673
|
+
user: string;
|
|
674
|
+
uri: string;
|
|
675
|
+
cwd: string;
|
|
676
|
+
pacsserver: string | null;
|
|
677
|
+
physicalMode: boolean;
|
|
678
|
+
lastExitCode: number;
|
|
679
|
+
lastCommandDurationMs: number;
|
|
680
|
+
procWarmup?: {
|
|
681
|
+
loaded: number;
|
|
682
|
+
} | undefined;
|
|
683
|
+
};
|
|
589
684
|
}, {
|
|
590
685
|
type: "promptline";
|
|
591
|
-
|
|
686
|
+
context: {
|
|
687
|
+
user: string;
|
|
688
|
+
uri: string;
|
|
689
|
+
cwd: string;
|
|
690
|
+
pacsserver: string | null;
|
|
691
|
+
physicalMode: boolean;
|
|
692
|
+
lastExitCode: number;
|
|
693
|
+
lastCommandDurationMs: number;
|
|
694
|
+
procWarmup?: {
|
|
695
|
+
loaded: number;
|
|
696
|
+
} | undefined;
|
|
697
|
+
};
|
|
592
698
|
}>;
|
|
593
699
|
/**
|
|
594
700
|
* Asks the surface to run a pipeline segment on its own machine (never on the
|
|
@@ -990,13 +1096,72 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
990
1096
|
hidden: boolean;
|
|
991
1097
|
}>, z.ZodObject<{
|
|
992
1098
|
type: z.ZodLiteral<"promptline">;
|
|
993
|
-
|
|
1099
|
+
context: z.ZodObject<{
|
|
1100
|
+
user: z.ZodString;
|
|
1101
|
+
uri: z.ZodString;
|
|
1102
|
+
cwd: z.ZodString;
|
|
1103
|
+
pacsserver: z.ZodNullable<z.ZodString>;
|
|
1104
|
+
physicalMode: z.ZodBoolean;
|
|
1105
|
+
lastExitCode: z.ZodNumber;
|
|
1106
|
+
lastCommandDurationMs: z.ZodNumber;
|
|
1107
|
+
procWarmup: z.ZodOptional<z.ZodObject<{
|
|
1108
|
+
loaded: z.ZodNumber;
|
|
1109
|
+
}, "strip", z.ZodTypeAny, {
|
|
1110
|
+
loaded: number;
|
|
1111
|
+
}, {
|
|
1112
|
+
loaded: number;
|
|
1113
|
+
}>>;
|
|
1114
|
+
}, "strip", z.ZodTypeAny, {
|
|
1115
|
+
user: string;
|
|
1116
|
+
uri: string;
|
|
1117
|
+
cwd: string;
|
|
1118
|
+
pacsserver: string | null;
|
|
1119
|
+
physicalMode: boolean;
|
|
1120
|
+
lastExitCode: number;
|
|
1121
|
+
lastCommandDurationMs: number;
|
|
1122
|
+
procWarmup?: {
|
|
1123
|
+
loaded: number;
|
|
1124
|
+
} | undefined;
|
|
1125
|
+
}, {
|
|
1126
|
+
user: string;
|
|
1127
|
+
uri: string;
|
|
1128
|
+
cwd: string;
|
|
1129
|
+
pacsserver: string | null;
|
|
1130
|
+
physicalMode: boolean;
|
|
1131
|
+
lastExitCode: number;
|
|
1132
|
+
lastCommandDurationMs: number;
|
|
1133
|
+
procWarmup?: {
|
|
1134
|
+
loaded: number;
|
|
1135
|
+
} | undefined;
|
|
1136
|
+
}>;
|
|
994
1137
|
}, "strip", z.ZodTypeAny, {
|
|
995
1138
|
type: "promptline";
|
|
996
|
-
|
|
1139
|
+
context: {
|
|
1140
|
+
user: string;
|
|
1141
|
+
uri: string;
|
|
1142
|
+
cwd: string;
|
|
1143
|
+
pacsserver: string | null;
|
|
1144
|
+
physicalMode: boolean;
|
|
1145
|
+
lastExitCode: number;
|
|
1146
|
+
lastCommandDurationMs: number;
|
|
1147
|
+
procWarmup?: {
|
|
1148
|
+
loaded: number;
|
|
1149
|
+
} | undefined;
|
|
1150
|
+
};
|
|
997
1151
|
}, {
|
|
998
1152
|
type: "promptline";
|
|
999
|
-
|
|
1153
|
+
context: {
|
|
1154
|
+
user: string;
|
|
1155
|
+
uri: string;
|
|
1156
|
+
cwd: string;
|
|
1157
|
+
pacsserver: string | null;
|
|
1158
|
+
physicalMode: boolean;
|
|
1159
|
+
lastExitCode: number;
|
|
1160
|
+
lastCommandDurationMs: number;
|
|
1161
|
+
procWarmup?: {
|
|
1162
|
+
loaded: number;
|
|
1163
|
+
} | undefined;
|
|
1164
|
+
};
|
|
1000
1165
|
}>, z.ZodObject<{
|
|
1001
1166
|
type: z.ZodLiteral<"pipe">;
|
|
1002
1167
|
pipeId: z.ZodString;
|