@fnndsc/menu 0.3.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/dist/dag.js ADDED
@@ -0,0 +1,137 @@
1
+ /**
2
+ * @file The DAG model vocabulary: compute graphs as typed envelope payloads.
3
+ *
4
+ * ChRIS is a data-state machine and the execution DAG is its central object:
5
+ * nodes are plugin (instances), edges are data states flowing between their
6
+ * directories. Two commands project that object onto the wire — a registered
7
+ * pipeline's authored template (`pipeline.diagram`) and a feed's live
8
+ * instance graph (`feed.dag`) — and both share one structural core so a
9
+ * renderer owns a single traversal and layout path.
10
+ *
11
+ * Models carry topology, addresses, status, and metrics — never layout.
12
+ * How a graph is drawn (ranked tiers, a force-settled molecule, a header
13
+ * miniature) is a surface concern; the model must serve them all.
14
+ *
15
+ * @module
16
+ */
17
+ import { z } from 'zod';
18
+ /**
19
+ * The structural core every DAG node shares: identity, a label, and its
20
+ * incoming edges. `parentIds` carries the primary data-flow edges;
21
+ * `joinParentIds` carries additional (topological join) edges, drawn
22
+ * differently but traversed the same.
23
+ */
24
+ export const dagNodeCoreSchema = z.object({
25
+ id: z.string(),
26
+ label: z.string(),
27
+ parentIds: z.array(z.string()),
28
+ joinParentIds: z.array(z.string()),
29
+ });
30
+ /** One stored default argument on an authored pipeline node. */
31
+ export const dagArgumentSchema = z.object({
32
+ name: z.string(),
33
+ value: z.unknown(),
34
+ });
35
+ /** A node in a registered pipeline's authored template. */
36
+ export const pipelineDiagramNodeSchema = dagNodeCoreSchema.extend({
37
+ pluginName: z.string(),
38
+ pluginVersion: z.string().optional(),
39
+ arguments: z.array(dagArgumentSchema).optional(),
40
+ });
41
+ /**
42
+ * The `pipeline.diagram` model: a registered pipeline's authored DAG.
43
+ * Static — it describes what would run, not anything running.
44
+ */
45
+ export const pipelineDiagramModelSchema = z.object({
46
+ name: z.string(),
47
+ pipelineId: z.number().optional(),
48
+ nodes: z.array(pipelineDiagramNodeSchema),
49
+ });
50
+ /**
51
+ * A live node's execution state. Open-world: an unrecognized status from a
52
+ * newer daemon degrades to 'unknown' rather than failing the parse.
53
+ */
54
+ export const DAG_NODE_STATUSES = [
55
+ 'created',
56
+ 'waiting',
57
+ 'scheduled',
58
+ 'started',
59
+ 'registeringFiles',
60
+ 'finishedSuccessfully',
61
+ 'finishedWithError',
62
+ 'cancelled',
63
+ 'unknown',
64
+ ];
65
+ export const dagNodeStatusSchema = z.enum(DAG_NODE_STATUSES).catch('unknown');
66
+ /**
67
+ * Roll-up of an isomorphic ×N group collapsed behind one rendered node.
68
+ * Present only when `count > 1`; error visibility is not optional — a group
69
+ * carrying failures lists its first anomalous members for jump-to-error.
70
+ */
71
+ export const dagNodeTallySchema = z.object({
72
+ count: z.number(),
73
+ done: z.number(),
74
+ error: z.number(),
75
+ running: z.number(),
76
+ other: z.number(),
77
+ anomalies: z.array(z.object({ id: z.string(), status: dagNodeStatusSchema })).optional(),
78
+ });
79
+ /** Per-node measurables that scale a molecule rendering. */
80
+ export const dagNodeMetricsSchema = z.object({
81
+ computeSeconds: z.number().optional(),
82
+ dataBytes: z.number().optional(),
83
+ });
84
+ /**
85
+ * A node in a feed's live instance graph. `vfsPath` is the node's data
86
+ * space — the same address the terminal and the files panel navigate, which
87
+ * is what makes "fly into a node" a `cd` rather than a new machine.
88
+ */
89
+ export const feedDagNodeSchema = dagNodeCoreSchema.extend({
90
+ instanceId: z.number(),
91
+ pluginName: z.string(),
92
+ pluginVersion: z.string().optional(),
93
+ status: dagNodeStatusSchema,
94
+ vfsPath: z.string(),
95
+ metrics: dagNodeMetricsSchema.optional(),
96
+ tally: dagNodeTallySchema.optional(),
97
+ /** Where the job ran; `mixed` for a group whose members ran on different resources. */
98
+ computeResource: z.string().optional(),
99
+ });
100
+ /**
101
+ * The `feed.dag` model: one feed's live execution graph. Topology arrives
102
+ * once on the command envelope; status changes ride the typed progress
103
+ * channel rather than re-sending the graph.
104
+ */
105
+ export const feedDagModelSchema = z.object({
106
+ feedId: z.number(),
107
+ feedName: z.string(),
108
+ nodes: z.array(feedDagNodeSchema),
109
+ });
110
+ /** The envelope model kinds this vocabulary defines. */
111
+ export const DAG_MODEL_KINDS = {
112
+ pipelineDiagram: 'pipeline.diagram',
113
+ feedDag: 'feed.dag',
114
+ };
115
+ /** One feed in the titled chooser list, from the process cache. */
116
+ export const feedListEntrySchema = z.object({
117
+ id: z.number(),
118
+ title: z.string(),
119
+ owner: z.string(),
120
+ status: z.string(),
121
+ createdAt: z.string(),
122
+ /** Total output bytes across the feed's nodes; absent until its topology is resident. */
123
+ sizeBytes: z.number().optional(),
124
+ /** Wall span in seconds, first node start to last node end (or now, while running); absent until resident. */
125
+ wallSeconds: z.number().optional(),
126
+ });
127
+ /**
128
+ * The `feed.list` model: the cache-resident feed roster — id, title, and
129
+ * derived status, with no CUBE round-trip. The DAG pane's chooser reads it;
130
+ * the terminal reads the same command's rendered lines.
131
+ */
132
+ export const feedListModelSchema = z.object({
133
+ feeds: z.array(feedListEntrySchema),
134
+ });
135
+ /** The chooser model's envelope kind. */
136
+ export const FEED_LIST_MODEL_KIND = 'feed.list';
137
+ //# sourceMappingURL=dag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dag.js","sourceRoot":"","sources":["../src/dag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACnC,CAAC,CAAC;AAEH,gEAAgE;AAChE,MAAM,CAAC,MAA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AAO,EAAE,UAAU;CACX,CAAC;AAEX,mEAAmE;AACnE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,yFAAyF;IACzF,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,8GAA8G;IAC9G,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC;CACpC,CAAC,CAAC;AAKH,yCAAyC;AACzC,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAoB,CAAC"}
@@ -0,0 +1,153 @@
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
+ message: string;
22
+ type: "error" | "warning";
23
+ }, {
24
+ message: string;
25
+ type: "error" | "warning";
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
+ message: string;
77
+ type: "error" | "warning";
78
+ }, {
79
+ message: string;
80
+ type: "error" | "warning";
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
+ message: string;
108
+ type: "error" | "warning";
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
+ message: string;
126
+ type: "error" | "warning";
127
+ }[] | undefined;
128
+ trace?: {
129
+ input: string;
130
+ proposed: string;
131
+ validated: boolean;
132
+ executed?: string | undefined;
133
+ } | undefined;
134
+ }>;
135
+ /**
136
+ * The envelope in which one command's outcome crosses the wire.
137
+ *
138
+ * Inferred from the schema rather than declared beside it. The engine and the
139
+ * wire once carried separate declarations of this shape, tied together by a
140
+ * compile-time assertion that one remained assignable to the other; a single
141
+ * inferred type makes that drift impossible instead of detected.
142
+ */
143
+ export type CommandEnvelope = z.infer<typeof commandEnvelopeSchema>;
144
+ /** Prior name for {@link CommandEnvelope}, kept for existing importers. */
145
+ export type WireEnvelope = CommandEnvelope;
146
+ /** Terminal status of a completed command. */
147
+ export type EnvelopeStatus = z.infer<typeof envelopeStatusSchema>;
148
+ /** A command's typed result: a namespaced kind and an opaque payload. */
149
+ export type EnvelopeModel = z.infer<typeof envelopeModelSchema>;
150
+ /** A structured error or warning drained from the error stack. */
151
+ export type StackMessage = z.infer<typeof stackMessageSchema>;
152
+ /** The record of how a natural-language input resolved into a command. */
153
+ export type ResolutionTrace = z.infer<typeof resolutionTraceSchema>;
@@ -0,0 +1,44 @@
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
+ //# sourceMappingURL=envelope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"envelope.js","sourceRoot":"","sources":["../src/envelope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,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"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @file The mise wire contract.
3
+ *
4
+ * What a command returns, what a session exchanges, and the vocabularies both
5
+ * narrow to. Nothing here touches `ws`, Node builtins, or a daemon host, so a
6
+ * browser surface loads it as readily as the engine does — which is the point:
7
+ * a surface author depends on the contract, not on the daemon that happens to
8
+ * serve it.
9
+ *
10
+ * @module
11
+ */
12
+ export { PROC_PROMPT_STATES, procPromptState_get, type ProcPromptState, type ProcPromptProgress, type ProcFeedPromptProgress, } from './proc.js';
13
+ export { PROGRESS_OPERATIONS, PROGRESS_KINDS, PROGRESS_PHASES, PROGRESS_UNITS, PROGRESS_STATUSES, type ProgressOperation, type ProgressKind, type ProgressPhase, type ProgressUnit, type ProgressStatus, } from './progress.js';
14
+ export { CONTRACT_VERSION, version_isCompatible } from './version.js';
15
+ export { commandEnvelopeSchema, envelopeModelSchema, envelopeStatusSchema, stackMessageSchema, resolutionTraceSchema, type WireEnvelope, type CommandEnvelope, type EnvelopeStatus, type EnvelopeModel, type StackMessage, type ResolutionTrace, } from './envelope.js';
16
+ export { channelSchema, surfaceCapabilitiesMessageSchema, attachMessageSchema, executeMessageSchema, cancelMessageSchema, completeRequestSchema, promptAnswerMessageSchema, promptErrorMessageSchema, pipeResultMessageSchema, pipeErrorMessageSchema, shellResultMessageSchema, shellErrorMessageSchema, editResultMessageSchema, editErrorMessageSchema, deliverResultMessageSchema, deliverErrorMessageSchema, clientMessageSchema, attachedMessageSchema, resultMessageSchema, completeReplySchema, outputMessageSchema, progressOperationSchema, progressKindSchema, progressPhaseSchema, progressUnitSchema, progressStatusSchema, progressMessageSchema, sessionMessageSchema, errorMessageSchema, promptMessageSchema, promptContextSchema, promptLineMessageSchema, pipeMessageSchema, shellMessageSchema, editMessageSchema, deliverMessageSchema, serverMessageSchema, telemetryMessageSchema, regardSchema, regardMessageSchema, watchMessageSchema, unwatchMessageSchema, WATCH_STATES, watchStateSchema, watchedMessageSchema, SERVER_MESSAGE_TYPES, type WatchState, type WatchedMessage, type AmbientEvent, type ClientMessage, type ServerMessage, type ProgressMessage, type ProgressEvent, type PromptContext, type Regard, type FileDeliverRequest, type FileDeliverResult, } from './messages.js';
17
+ export { clientMessage_parse, serverMessage_parse, clientMessage_fromJson, attach_parse, type ParseResult, } from './validate.js';
18
+ export { dagNodeCoreSchema, dagArgumentSchema, pipelineDiagramNodeSchema, pipelineDiagramModelSchema, DAG_NODE_STATUSES, dagNodeStatusSchema, dagNodeMetricsSchema, feedDagNodeSchema, feedDagModelSchema, DAG_MODEL_KINDS, type DagNodeCore, type PipelineDiagramNode, type PipelineDiagramModel, type DagNodeStatus, type DagNodeMetrics, type FeedDagNode, type DagNodeTally, type FeedDagModel, } from './dag.js';
19
+ export { feedListEntrySchema, feedListModelSchema, FEED_LIST_MODEL_KIND, type FeedListEntry, type FeedListModel, } from './dag.js';
20
+ export { pacsSeriesSchema, pacsStudySchema, pacsQueryModelSchema, PACS_QUERY_MODEL_KIND, type PacsSeries, type PacsStudy, type PacsQueryModel, } from './pacs.js';
package/dist/index.js ADDED
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @file The mise wire contract.
3
+ *
4
+ * What a command returns, what a session exchanges, and the vocabularies both
5
+ * narrow to. Nothing here touches `ws`, Node builtins, or a daemon host, so a
6
+ * browser surface loads it as readily as the engine does — which is the point:
7
+ * a surface author depends on the contract, not on the daemon that happens to
8
+ * serve it.
9
+ *
10
+ * @module
11
+ */
12
+ export { PROC_PROMPT_STATES, procPromptState_get, } from './proc.js';
13
+ export { PROGRESS_OPERATIONS, PROGRESS_KINDS, PROGRESS_PHASES, PROGRESS_UNITS, PROGRESS_STATUSES, } from './progress.js';
14
+ export { CONTRACT_VERSION, version_isCompatible } from './version.js';
15
+ export { commandEnvelopeSchema, envelopeModelSchema, envelopeStatusSchema, stackMessageSchema, resolutionTraceSchema, } from './envelope.js';
16
+ export { channelSchema, surfaceCapabilitiesMessageSchema, attachMessageSchema, executeMessageSchema, cancelMessageSchema, completeRequestSchema, promptAnswerMessageSchema, promptErrorMessageSchema, pipeResultMessageSchema, pipeErrorMessageSchema, shellResultMessageSchema, shellErrorMessageSchema, editResultMessageSchema, editErrorMessageSchema, deliverResultMessageSchema, deliverErrorMessageSchema, clientMessageSchema, attachedMessageSchema, resultMessageSchema, completeReplySchema, outputMessageSchema, progressOperationSchema, progressKindSchema, progressPhaseSchema, progressUnitSchema, progressStatusSchema, progressMessageSchema, sessionMessageSchema, errorMessageSchema, promptMessageSchema, promptContextSchema, promptLineMessageSchema, pipeMessageSchema, shellMessageSchema, editMessageSchema, deliverMessageSchema, serverMessageSchema, telemetryMessageSchema, regardSchema, regardMessageSchema, watchMessageSchema, unwatchMessageSchema, WATCH_STATES, watchStateSchema, watchedMessageSchema, SERVER_MESSAGE_TYPES, } from './messages.js';
17
+ export { clientMessage_parse, serverMessage_parse, clientMessage_fromJson, attach_parse, } from './validate.js';
18
+ export { dagNodeCoreSchema, dagArgumentSchema, pipelineDiagramNodeSchema, pipelineDiagramModelSchema, DAG_NODE_STATUSES, dagNodeStatusSchema, dagNodeMetricsSchema, feedDagNodeSchema, feedDagModelSchema, DAG_MODEL_KINDS, } from './dag.js';
19
+ export { feedListEntrySchema, feedListModelSchema, FEED_LIST_MODEL_KIND, } from './dag.js';
20
+ export { pacsSeriesSchema, pacsStudySchema, pacsQueryModelSchema, PACS_QUERY_MODEL_KIND, } from './pacs.js';
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EACL,kBAAkB,EAClB,mBAAmB,GAIpB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,cAAc,EACd,iBAAiB,GAMlB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,GAOtB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,aAAa,EACb,gCAAgC,EACh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