@dudko.dev/agent-web-ui 0.0.6 → 0.0.7
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 +52 -0
- package/dist/{chunk-NHU6WQM5.js → chunk-3TMUUU3O.js} +424 -0
- package/dist/{chunk-627OXMFG.js → chunk-HIHUK7YA.js} +5 -0
- package/dist/{chunk-S5AHUAFG.js → chunk-JEW2ZWYX.js} +4 -0
- package/dist/{chunk-VZCQXE3P.js → chunk-UO2Q7AIV.js} +4 -0
- package/dist/{chunk-V33T6VX3.js → chunk-VG5NLFI5.js} +4 -0
- package/dist/controller.cjs +441 -15
- package/dist/controller.d.cts +39 -3
- package/dist/controller.d.ts +39 -3
- package/dist/controller.js +39 -16
- package/dist/{en-Dg2MtzcJ.d.cts → en-CPCAidve.d.cts} +4 -0
- package/dist/{en-Dg2MtzcJ.d.ts → en-CPCAidve.d.ts} +4 -0
- package/dist/index.cjs +447 -3
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +37 -1
- package/dist/{labels-ipy-ydkp.d.cts → labels-Dnh2tn8S.d.cts} +8 -0
- package/dist/{labels-CCPL7t17.d.ts → labels-h-grbo5N.d.ts} +8 -0
- package/dist/locales/be.cjs +9 -0
- package/dist/locales/be.d.cts +1 -1
- package/dist/locales/be.d.ts +1 -1
- package/dist/locales/be.js +5 -1
- package/dist/locales/bg.cjs +9 -0
- package/dist/locales/bg.d.cts +1 -1
- package/dist/locales/bg.d.ts +1 -1
- package/dist/locales/bg.js +5 -1
- package/dist/locales/ca.cjs +9 -0
- package/dist/locales/ca.d.cts +1 -1
- package/dist/locales/ca.d.ts +1 -1
- package/dist/locales/ca.js +5 -1
- package/dist/locales/cs.cjs +9 -0
- package/dist/locales/cs.d.cts +1 -1
- package/dist/locales/cs.d.ts +1 -1
- package/dist/locales/cs.js +5 -1
- package/dist/locales/da.cjs +9 -0
- package/dist/locales/da.d.cts +1 -1
- package/dist/locales/da.d.ts +1 -1
- package/dist/locales/da.js +5 -1
- package/dist/locales/de.cjs +9 -0
- package/dist/locales/de.d.cts +1 -1
- package/dist/locales/de.d.ts +1 -1
- package/dist/locales/de.js +5 -1
- package/dist/locales/el.cjs +9 -0
- package/dist/locales/el.d.cts +1 -1
- package/dist/locales/el.d.ts +1 -1
- package/dist/locales/el.js +5 -1
- package/dist/locales/en.cjs +9 -0
- package/dist/locales/en.d.cts +1 -1
- package/dist/locales/en.d.ts +1 -1
- package/dist/locales/en.js +5 -1
- package/dist/locales/es-419.cjs +9 -0
- package/dist/locales/es-419.d.cts +1 -1
- package/dist/locales/es-419.d.ts +1 -1
- package/dist/locales/es-419.js +2 -2
- package/dist/locales/es.cjs +9 -0
- package/dist/locales/es.d.cts +1 -1
- package/dist/locales/es.d.ts +1 -1
- package/dist/locales/es.js +2 -2
- package/dist/locales/fi.cjs +9 -0
- package/dist/locales/fi.d.cts +1 -1
- package/dist/locales/fi.d.ts +1 -1
- package/dist/locales/fi.js +5 -1
- package/dist/locales/fr-CA.cjs +9 -0
- package/dist/locales/fr-CA.d.cts +1 -1
- package/dist/locales/fr-CA.d.ts +1 -1
- package/dist/locales/fr-CA.js +2 -2
- package/dist/locales/fr.cjs +9 -0
- package/dist/locales/fr.d.cts +1 -1
- package/dist/locales/fr.d.ts +1 -1
- package/dist/locales/fr.js +2 -2
- package/dist/locales/gn.cjs +9 -0
- package/dist/locales/gn.d.cts +1 -1
- package/dist/locales/gn.d.ts +1 -1
- package/dist/locales/gn.js +5 -1
- package/dist/locales/hr.cjs +9 -0
- package/dist/locales/hr.d.cts +1 -1
- package/dist/locales/hr.d.ts +1 -1
- package/dist/locales/hr.js +5 -1
- package/dist/locales/ht.cjs +9 -0
- package/dist/locales/ht.d.cts +1 -1
- package/dist/locales/ht.d.ts +1 -1
- package/dist/locales/ht.js +5 -1
- package/dist/locales/hu.cjs +9 -0
- package/dist/locales/hu.d.cts +1 -1
- package/dist/locales/hu.d.ts +1 -1
- package/dist/locales/hu.js +5 -1
- package/dist/locales/index.cjs +5 -0
- package/dist/locales/index.d.cts +3 -3
- package/dist/locales/index.d.ts +3 -3
- package/dist/locales/index.js +1 -1
- package/dist/locales/it.cjs +9 -0
- package/dist/locales/it.d.cts +1 -1
- package/dist/locales/it.d.ts +1 -1
- package/dist/locales/it.js +5 -1
- package/dist/locales/nb.cjs +9 -0
- package/dist/locales/nb.d.cts +1 -1
- package/dist/locales/nb.d.ts +1 -1
- package/dist/locales/nb.js +5 -1
- package/dist/locales/nl.cjs +9 -0
- package/dist/locales/nl.d.cts +1 -1
- package/dist/locales/nl.d.ts +1 -1
- package/dist/locales/nl.js +5 -1
- package/dist/locales/pl.cjs +9 -0
- package/dist/locales/pl.d.cts +1 -1
- package/dist/locales/pl.d.ts +1 -1
- package/dist/locales/pl.js +5 -1
- package/dist/locales/pt-BR.cjs +9 -0
- package/dist/locales/pt-BR.d.cts +1 -1
- package/dist/locales/pt-BR.d.ts +1 -1
- package/dist/locales/pt-BR.js +5 -1
- package/dist/locales/pt.cjs +9 -0
- package/dist/locales/pt.d.cts +1 -1
- package/dist/locales/pt.d.ts +1 -1
- package/dist/locales/pt.js +5 -1
- package/dist/locales/qu.cjs +9 -0
- package/dist/locales/qu.d.cts +1 -1
- package/dist/locales/qu.d.ts +1 -1
- package/dist/locales/qu.js +5 -1
- package/dist/locales/ro.cjs +9 -0
- package/dist/locales/ro.d.cts +1 -1
- package/dist/locales/ro.d.ts +1 -1
- package/dist/locales/ro.js +5 -1
- package/dist/locales/ru.cjs +9 -0
- package/dist/locales/ru.d.cts +1 -1
- package/dist/locales/ru.d.ts +1 -1
- package/dist/locales/ru.js +5 -1
- package/dist/locales/sk.cjs +9 -0
- package/dist/locales/sk.d.cts +1 -1
- package/dist/locales/sk.d.ts +1 -1
- package/dist/locales/sk.js +5 -1
- package/dist/locales/sq.cjs +9 -0
- package/dist/locales/sq.d.cts +1 -1
- package/dist/locales/sq.d.ts +1 -1
- package/dist/locales/sq.js +5 -1
- package/dist/locales/sr-Latn.cjs +9 -0
- package/dist/locales/sr-Latn.d.cts +1 -1
- package/dist/locales/sr-Latn.d.ts +1 -1
- package/dist/locales/sr-Latn.js +2 -2
- package/dist/locales/sr.cjs +9 -0
- package/dist/locales/sr.d.cts +1 -1
- package/dist/locales/sr.d.ts +1 -1
- package/dist/locales/sr.js +2 -2
- package/dist/locales/sv.cjs +9 -0
- package/dist/locales/sv.d.cts +1 -1
- package/dist/locales/sv.d.ts +1 -1
- package/dist/locales/sv.js +5 -1
- package/dist/locales/tr.cjs +9 -0
- package/dist/locales/tr.d.cts +1 -1
- package/dist/locales/tr.d.ts +1 -1
- package/dist/locales/tr.js +5 -1
- package/dist/locales/uk.cjs +9 -0
- package/dist/locales/uk.d.cts +1 -1
- package/dist/locales/uk.d.ts +1 -1
- package/dist/locales/uk.js +5 -1
- package/dist/page-context-BAmw4p6d.d.cts +244 -0
- package/dist/page-context-BAmw4p6d.d.ts +244 -0
- package/dist/pipeline-format.cjs +842 -0
- package/dist/pipeline-format.d.cts +512 -0
- package/dist/pipeline-format.d.ts +512 -0
- package/dist/pipeline-format.js +788 -0
- package/dist/styles.css +55 -0
- package/dist/{types-CQquuZpl.d.cts → types-B5cyqkWY.d.cts} +1 -1
- package/dist/{types-CXZfZVP5.d.ts → types-BgNjWN5Z.d.ts} +1 -1
- package/package.json +12 -2
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
/** What `format` says: this JSON is a pipeline definition document. */
|
|
2
|
+
declare const PIPELINE_FORMAT = "agent-pipeline";
|
|
3
|
+
/** The schema version this module reads and writes. A newer one is refused, never guessed at. */
|
|
4
|
+
declare const PIPELINE_SCHEMA_VERSION = 1;
|
|
5
|
+
/** Every JSON value a document may hold (`settings` is free-form, but JSON). */
|
|
6
|
+
type PipelineJsonValue = string | number | boolean | null | PipelineJsonValue[] | {
|
|
7
|
+
[key: string]: PipelineJsonValue;
|
|
8
|
+
};
|
|
9
|
+
/** An edge's condition - data, not code: decided by the engine on the source node's answer. */
|
|
10
|
+
type PipelineDocumentCondition = {
|
|
11
|
+
kind: 'always';
|
|
12
|
+
} | {
|
|
13
|
+
kind: 'contains';
|
|
14
|
+
text: string;
|
|
15
|
+
caseSensitive?: boolean;
|
|
16
|
+
} | {
|
|
17
|
+
kind: 'matches';
|
|
18
|
+
pattern: string;
|
|
19
|
+
flags?: string;
|
|
20
|
+
} | {
|
|
21
|
+
kind: 'route';
|
|
22
|
+
label: string;
|
|
23
|
+
} | {
|
|
24
|
+
kind: 'otherwise';
|
|
25
|
+
};
|
|
26
|
+
interface PipelineDocumentRoute {
|
|
27
|
+
label: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
}
|
|
30
|
+
interface PipelineDocumentNode {
|
|
31
|
+
/** Unique; names the node's runs, streams and routes: `^[A-Za-z0-9_-]{1,64}$`. */
|
|
32
|
+
id: string;
|
|
33
|
+
name?: string;
|
|
34
|
+
/** This node's role, added to its agent's system prompt. Never a secret. */
|
|
35
|
+
instructions?: string;
|
|
36
|
+
/** A model id the executor resolves (its own provider). */
|
|
37
|
+
model?: string;
|
|
38
|
+
/** Tool names the executor resolves (a native tool, or `<server>__<tool>` of an MCP server). */
|
|
39
|
+
tools?: string[];
|
|
40
|
+
/** MCP server names the executor resolves. */
|
|
41
|
+
mcpServers?: string[];
|
|
42
|
+
/** Skill names the executor resolves. */
|
|
43
|
+
skills?: string[];
|
|
44
|
+
/** Names of the secrets this node may use - the executor's secrets store resolves them. */
|
|
45
|
+
secrets?: string[];
|
|
46
|
+
routes?: PipelineDocumentRoute[];
|
|
47
|
+
join?: 'all' | 'any';
|
|
48
|
+
/**
|
|
49
|
+
* Passed to the executor untouched. A secret is referenced as `{ "$secret": "NAME" }`; a value
|
|
50
|
+
* that looks like a key or a token is refused.
|
|
51
|
+
*/
|
|
52
|
+
settings?: Record<string, PipelineJsonValue>;
|
|
53
|
+
/** For editors; the runner ignores it. */
|
|
54
|
+
position?: {
|
|
55
|
+
x: number;
|
|
56
|
+
y: number;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
interface PipelineDocumentEdge {
|
|
60
|
+
/** Required here (the engine would number edges without one - an id that moves on an edit). */
|
|
61
|
+
id: string;
|
|
62
|
+
from: string;
|
|
63
|
+
to: string;
|
|
64
|
+
/** Absent = always. */
|
|
65
|
+
when?: PipelineDocumentCondition;
|
|
66
|
+
}
|
|
67
|
+
interface PipelineDocument {
|
|
68
|
+
/** Optional, for editors that validate JSON against a schema. */
|
|
69
|
+
$schema?: string;
|
|
70
|
+
format: typeof PIPELINE_FORMAT;
|
|
71
|
+
schemaVersion: typeof PIPELINE_SCHEMA_VERSION;
|
|
72
|
+
/** A stable name: `^[a-z][a-z0-9_-]{0,63}$`. */
|
|
73
|
+
name: string;
|
|
74
|
+
/** What a person reads (the engine's `name`). */
|
|
75
|
+
title?: string;
|
|
76
|
+
description?: string;
|
|
77
|
+
/** The id of the node that receives the request. */
|
|
78
|
+
entry: string;
|
|
79
|
+
limits?: {
|
|
80
|
+
maxNodeVisits?: number;
|
|
81
|
+
maxRuns?: number;
|
|
82
|
+
};
|
|
83
|
+
nodes: PipelineDocumentNode[];
|
|
84
|
+
edges: PipelineDocumentEdge[];
|
|
85
|
+
}
|
|
86
|
+
interface EnginePipelineNode {
|
|
87
|
+
id: string;
|
|
88
|
+
name?: string;
|
|
89
|
+
instructions?: string;
|
|
90
|
+
model?: string;
|
|
91
|
+
skills?: string[];
|
|
92
|
+
tools?: string[];
|
|
93
|
+
mcpServers?: string[];
|
|
94
|
+
routes?: PipelineDocumentRoute[];
|
|
95
|
+
join?: 'all' | 'any';
|
|
96
|
+
settings?: Record<string, unknown>;
|
|
97
|
+
position?: {
|
|
98
|
+
x: number;
|
|
99
|
+
y: number;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
interface EnginePipelineEdge {
|
|
103
|
+
id?: string;
|
|
104
|
+
from: string;
|
|
105
|
+
to: string;
|
|
106
|
+
when?: PipelineDocumentCondition;
|
|
107
|
+
}
|
|
108
|
+
interface EnginePipelineDefinition {
|
|
109
|
+
version: 1;
|
|
110
|
+
name?: string;
|
|
111
|
+
entry: string;
|
|
112
|
+
nodes: EnginePipelineNode[];
|
|
113
|
+
edges: EnginePipelineEdge[];
|
|
114
|
+
limits?: {
|
|
115
|
+
maxNodeVisits?: number;
|
|
116
|
+
maxRuns?: number;
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
/** One problem of a document: where (a JSON Pointer), what (a stable code) and why (a sentence). */
|
|
120
|
+
interface PipelineFormatIssue {
|
|
121
|
+
/** JSON Pointer into the document (`/nodes/2/tools/0`); `` for the document itself. */
|
|
122
|
+
path: string;
|
|
123
|
+
code: PipelineFormatIssueCode;
|
|
124
|
+
message: string;
|
|
125
|
+
}
|
|
126
|
+
type PipelineFormatIssueCode = 'not_an_object' | 'format' | 'schema_version' | 'required' | 'type' | 'unknown_property' | 'pattern' | 'too_long' | 'too_many' | 'range' | 'enum' | 'duplicate' | 'unknown_node' | 'unknown_route' | 'secret_value' | 'unresolved_reference';
|
|
127
|
+
|
|
128
|
+
/** How much of one string is scanned (a definition's strings are bounded far below it anyway). */
|
|
129
|
+
declare const SECRET_SCAN_MAX_CHARS = 100000;
|
|
130
|
+
/** What kind of secret a value looks like - said in the issue, never the value itself. */
|
|
131
|
+
type SecretKind = 'api-key' | 'private-key' | 'jwt' | 'credential' | 'assignment' | 'random-token';
|
|
132
|
+
/** The kind of secret `text` looks like, or `undefined` when it looks like none. */
|
|
133
|
+
declare const secretKindOf: (text: string) => SecretKind | undefined;
|
|
134
|
+
/** True when `text` looks like it holds a secret value. */
|
|
135
|
+
declare const looksLikeSecret: (text: string) => boolean;
|
|
136
|
+
/** A settings key whose value would be a secret: such a key takes a `{ "$secret": NAME }` only. */
|
|
137
|
+
declare const SECRET_KEY: RegExp;
|
|
138
|
+
/** Whether a settings key names a secret (`apiKey`, `github_token`, `password`, ...). */
|
|
139
|
+
declare const isSecretKey: (key: string) => boolean;
|
|
140
|
+
/** A secret's name, as the executor's store keys it: `GITHUB_TOKEN`. */
|
|
141
|
+
declare const SECRET_NAME: RegExp;
|
|
142
|
+
|
|
143
|
+
/** The bounds of a document (the engine's own where it has one). */
|
|
144
|
+
declare const PIPELINE_FORMAT_LIMITS: {
|
|
145
|
+
readonly maxNodes: 200;
|
|
146
|
+
readonly maxEdges: 1000;
|
|
147
|
+
readonly maxRoutes: 20;
|
|
148
|
+
readonly maxNamesPerList: 100;
|
|
149
|
+
readonly maxSecretsPerNode: 50;
|
|
150
|
+
readonly maxNodeVisits: 100;
|
|
151
|
+
readonly maxRuns: 1000;
|
|
152
|
+
readonly titleChars: 200;
|
|
153
|
+
readonly descriptionChars: 2000;
|
|
154
|
+
readonly instructionsChars: 20000;
|
|
155
|
+
readonly routeLabelChars: 100;
|
|
156
|
+
readonly conditionTextChars: 500;
|
|
157
|
+
readonly settingsChars: 20000;
|
|
158
|
+
readonly settingsDepth: 8;
|
|
159
|
+
};
|
|
160
|
+
declare const PIPELINE_NAME_PATTERN: RegExp;
|
|
161
|
+
declare const PIPELINE_NODE_ID_PATTERN: RegExp;
|
|
162
|
+
declare const PIPELINE_EDGE_ID_PATTERN: RegExp;
|
|
163
|
+
declare const PIPELINE_TOOL_NAME_PATTERN: RegExp;
|
|
164
|
+
declare const PIPELINE_SERVER_NAME_PATTERN: RegExp;
|
|
165
|
+
declare const PIPELINE_MODEL_PATTERN: RegExp;
|
|
166
|
+
type PipelineDocumentValidation = {
|
|
167
|
+
ok: true;
|
|
168
|
+
document: PipelineDocument;
|
|
169
|
+
errors: [];
|
|
170
|
+
} | {
|
|
171
|
+
ok: false;
|
|
172
|
+
errors: PipelineFormatIssue[];
|
|
173
|
+
};
|
|
174
|
+
/** `{ "$secret": "NAME" }` - a reference to a secret of the executor's store. */
|
|
175
|
+
declare const isSecretRef: (v: unknown) => v is {
|
|
176
|
+
$secret: string;
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* Check a pipeline document. `ok: true` hands back the same object, typed; otherwise every issue
|
|
180
|
+
* found (at most 500), in document order.
|
|
181
|
+
*/
|
|
182
|
+
declare const validatePipelineDocument: (input: unknown) => PipelineDocumentValidation;
|
|
183
|
+
/** One line per issue: `/nodes/0/id: must match ...`. */
|
|
184
|
+
declare const formatPipelineIssues: (issues: readonly PipelineFormatIssue[]) => string;
|
|
185
|
+
|
|
186
|
+
type PipelineReferenceKind = 'tool' | 'mcpServer' | 'skill' | 'model' | 'secret';
|
|
187
|
+
interface PipelineReference {
|
|
188
|
+
kind: PipelineReferenceKind;
|
|
189
|
+
name: string;
|
|
190
|
+
/** JSON Pointer of where it is named. */
|
|
191
|
+
path: string;
|
|
192
|
+
nodeId: string;
|
|
193
|
+
}
|
|
194
|
+
/** Every name a (valid) document references, in document order. */
|
|
195
|
+
declare const pipelineReferences: (doc: PipelineDocument) => PipelineReference[];
|
|
196
|
+
/** What an executor can resolve: a list of names, or a predicate. Absent = nothing. */
|
|
197
|
+
type PipelineResolvable = Iterable<string> | ((name: string) => boolean);
|
|
198
|
+
interface PipelineResolvers {
|
|
199
|
+
tools?: PipelineResolvable;
|
|
200
|
+
mcpServers?: PipelineResolvable;
|
|
201
|
+
skills?: PipelineResolvable;
|
|
202
|
+
models?: PipelineResolvable;
|
|
203
|
+
secrets?: PipelineResolvable;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* The references `resolvers` cannot resolve, an issue each (`unresolved_reference`). A kind the
|
|
207
|
+
* resolvers do not mention resolves NOTHING: an executor states what it has.
|
|
208
|
+
*/
|
|
209
|
+
declare const unresolvedReferences: (doc: PipelineDocument, resolvers: PipelineResolvers) => PipelineFormatIssue[];
|
|
210
|
+
|
|
211
|
+
/** The engine's definition of a (valid) document: what an executor runs. */
|
|
212
|
+
declare const documentToDefinition: (doc: PipelineDocument) => EnginePipelineDefinition;
|
|
213
|
+
interface DefinitionToDocumentOptions {
|
|
214
|
+
/** The pipeline's stable name (`^[a-z][a-z0-9_-]{0,63}$`); default: `base.name`. */
|
|
215
|
+
name?: string;
|
|
216
|
+
description?: string;
|
|
217
|
+
/** The document the editor loaded: its name, description and the nodes' secrets carry over. */
|
|
218
|
+
base?: PipelineDocument;
|
|
219
|
+
}
|
|
220
|
+
/** A free text as a pipeline name: `Research & review` -> `research-review`. */
|
|
221
|
+
declare const pipelineNameOf: (text: string) => string;
|
|
222
|
+
/**
|
|
223
|
+
* The document of an editor's definition. Edge ids the definition lacks are given as the engine
|
|
224
|
+
* gives them (`e<index>`); each node keeps the `secrets` its namesake had in `base`.
|
|
225
|
+
*/
|
|
226
|
+
declare const definitionToDocument: (def: EnginePipelineDefinition, options?: DefinitionToDocumentOptions) => PipelineDocument;
|
|
227
|
+
/**
|
|
228
|
+
* A (valid) document as the editor would save it back: through the engine's definition and back,
|
|
229
|
+
* with itself as the base. What the format does not tell apart is made the same here - the order
|
|
230
|
+
* of keys, a `title` equal to the `name`, an edge's default id.
|
|
231
|
+
*/
|
|
232
|
+
declare const canonicalPipelineDocument: (doc: PipelineDocument) => PipelineDocument;
|
|
233
|
+
/**
|
|
234
|
+
* Whether two (valid) documents are the same pipeline: equal once both are canonical
|
|
235
|
+
* (`canonicalPipelineDocument`) and their keys are sorted. An editor's "unsaved changes" check:
|
|
236
|
+
* a version as it was stored and as the canvas gives it back compare equal.
|
|
237
|
+
*/
|
|
238
|
+
declare const pipelineDocumentsEqual: (a: PipelineDocument, b: PipelineDocument) => boolean;
|
|
239
|
+
/** A new, empty-but-valid document: one node. */
|
|
240
|
+
declare const emptyPipelineDocument: (name?: string) => PipelineDocument;
|
|
241
|
+
|
|
242
|
+
/** `$id` of the schema: a name, not a URL to fetch. */
|
|
243
|
+
declare const PIPELINE_DOCUMENT_SCHEMA_ID = "urn:dudko-dev:agent-pipeline:1";
|
|
244
|
+
declare const pipelineDocumentJsonSchema: {
|
|
245
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
246
|
+
readonly $id: "urn:dudko-dev:agent-pipeline:1";
|
|
247
|
+
readonly title: "Pipeline definition";
|
|
248
|
+
readonly description: "A pipeline of agents: nodes, edges with conditions as data, and references to tools, MCP servers, skills, models and secrets by name. Never a secret value.";
|
|
249
|
+
readonly type: "object";
|
|
250
|
+
readonly additionalProperties: false;
|
|
251
|
+
readonly required: readonly ["format", "schemaVersion", "name", "entry", "nodes", "edges"];
|
|
252
|
+
readonly properties: {
|
|
253
|
+
readonly $schema: {
|
|
254
|
+
readonly type: "string";
|
|
255
|
+
readonly maxLength: 500;
|
|
256
|
+
};
|
|
257
|
+
readonly format: {
|
|
258
|
+
readonly const: "agent-pipeline";
|
|
259
|
+
};
|
|
260
|
+
readonly schemaVersion: {
|
|
261
|
+
readonly const: 1;
|
|
262
|
+
};
|
|
263
|
+
readonly name: {
|
|
264
|
+
readonly type: "string";
|
|
265
|
+
readonly pattern: string;
|
|
266
|
+
};
|
|
267
|
+
readonly title: {
|
|
268
|
+
readonly type: "string";
|
|
269
|
+
readonly maxLength: 200;
|
|
270
|
+
};
|
|
271
|
+
readonly description: {
|
|
272
|
+
readonly type: "string";
|
|
273
|
+
readonly maxLength: 2000;
|
|
274
|
+
};
|
|
275
|
+
readonly entry: {
|
|
276
|
+
readonly type: "string";
|
|
277
|
+
readonly minLength: 1;
|
|
278
|
+
readonly maxLength: 64;
|
|
279
|
+
};
|
|
280
|
+
readonly limits: {
|
|
281
|
+
readonly type: "object";
|
|
282
|
+
readonly additionalProperties: false;
|
|
283
|
+
readonly properties: {
|
|
284
|
+
readonly maxNodeVisits: {
|
|
285
|
+
readonly type: "integer";
|
|
286
|
+
readonly minimum: 1;
|
|
287
|
+
readonly maximum: 100;
|
|
288
|
+
};
|
|
289
|
+
readonly maxRuns: {
|
|
290
|
+
readonly type: "integer";
|
|
291
|
+
readonly minimum: 1;
|
|
292
|
+
readonly maximum: 1000;
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
readonly nodes: {
|
|
297
|
+
readonly type: "array";
|
|
298
|
+
readonly minItems: 1;
|
|
299
|
+
readonly maxItems: 200;
|
|
300
|
+
readonly items: {
|
|
301
|
+
readonly $ref: "#/$defs/node";
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
readonly edges: {
|
|
305
|
+
readonly type: "array";
|
|
306
|
+
readonly maxItems: 1000;
|
|
307
|
+
readonly items: {
|
|
308
|
+
readonly $ref: "#/$defs/edge";
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
readonly $defs: {
|
|
313
|
+
readonly node: {
|
|
314
|
+
readonly type: "object";
|
|
315
|
+
readonly additionalProperties: false;
|
|
316
|
+
readonly required: readonly ["id"];
|
|
317
|
+
readonly properties: {
|
|
318
|
+
readonly id: {
|
|
319
|
+
readonly type: "string";
|
|
320
|
+
readonly pattern: string;
|
|
321
|
+
};
|
|
322
|
+
readonly name: {
|
|
323
|
+
readonly type: "string";
|
|
324
|
+
readonly maxLength: 200;
|
|
325
|
+
};
|
|
326
|
+
readonly instructions: {
|
|
327
|
+
readonly type: "string";
|
|
328
|
+
readonly maxLength: 20000;
|
|
329
|
+
};
|
|
330
|
+
readonly model: {
|
|
331
|
+
readonly type: "string";
|
|
332
|
+
readonly pattern: string;
|
|
333
|
+
};
|
|
334
|
+
readonly tools: {
|
|
335
|
+
type: string;
|
|
336
|
+
maxItems: number;
|
|
337
|
+
uniqueItems: boolean;
|
|
338
|
+
items: {
|
|
339
|
+
type: string;
|
|
340
|
+
pattern: string;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
readonly mcpServers: {
|
|
344
|
+
type: string;
|
|
345
|
+
maxItems: number;
|
|
346
|
+
uniqueItems: boolean;
|
|
347
|
+
items: {
|
|
348
|
+
type: string;
|
|
349
|
+
pattern: string;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
readonly skills: {
|
|
353
|
+
type: string;
|
|
354
|
+
maxItems: number;
|
|
355
|
+
uniqueItems: boolean;
|
|
356
|
+
items: {
|
|
357
|
+
type: string;
|
|
358
|
+
pattern: string;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
readonly secrets: {
|
|
362
|
+
type: string;
|
|
363
|
+
maxItems: number;
|
|
364
|
+
uniqueItems: boolean;
|
|
365
|
+
items: {
|
|
366
|
+
type: string;
|
|
367
|
+
pattern: string;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
readonly routes: {
|
|
371
|
+
readonly type: "array";
|
|
372
|
+
readonly maxItems: 20;
|
|
373
|
+
readonly items: {
|
|
374
|
+
readonly $ref: "#/$defs/route";
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
readonly join: {
|
|
378
|
+
readonly enum: readonly ["all", "any"];
|
|
379
|
+
};
|
|
380
|
+
readonly settings: {
|
|
381
|
+
readonly type: "object";
|
|
382
|
+
};
|
|
383
|
+
readonly position: {
|
|
384
|
+
readonly type: "object";
|
|
385
|
+
readonly additionalProperties: false;
|
|
386
|
+
readonly required: readonly ["x", "y"];
|
|
387
|
+
readonly properties: {
|
|
388
|
+
readonly x: {
|
|
389
|
+
readonly type: "number";
|
|
390
|
+
};
|
|
391
|
+
readonly y: {
|
|
392
|
+
readonly type: "number";
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
readonly route: {
|
|
399
|
+
readonly type: "object";
|
|
400
|
+
readonly additionalProperties: false;
|
|
401
|
+
readonly required: readonly ["label"];
|
|
402
|
+
readonly properties: {
|
|
403
|
+
readonly label: {
|
|
404
|
+
readonly type: "string";
|
|
405
|
+
readonly minLength: 1;
|
|
406
|
+
readonly maxLength: 100;
|
|
407
|
+
};
|
|
408
|
+
readonly description: {
|
|
409
|
+
readonly type: "string";
|
|
410
|
+
readonly maxLength: 2000;
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
readonly edge: {
|
|
415
|
+
readonly type: "object";
|
|
416
|
+
readonly additionalProperties: false;
|
|
417
|
+
readonly required: readonly ["id", "from", "to"];
|
|
418
|
+
readonly properties: {
|
|
419
|
+
readonly id: {
|
|
420
|
+
readonly type: "string";
|
|
421
|
+
readonly pattern: string;
|
|
422
|
+
};
|
|
423
|
+
readonly from: {
|
|
424
|
+
readonly type: "string";
|
|
425
|
+
readonly minLength: 1;
|
|
426
|
+
readonly maxLength: 64;
|
|
427
|
+
};
|
|
428
|
+
readonly to: {
|
|
429
|
+
readonly type: "string";
|
|
430
|
+
readonly minLength: 1;
|
|
431
|
+
readonly maxLength: 64;
|
|
432
|
+
};
|
|
433
|
+
readonly when: {
|
|
434
|
+
readonly $ref: "#/$defs/condition";
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
readonly condition: {
|
|
439
|
+
readonly oneOf: readonly [{
|
|
440
|
+
readonly type: "object";
|
|
441
|
+
readonly additionalProperties: false;
|
|
442
|
+
readonly required: readonly ["kind"];
|
|
443
|
+
readonly properties: {
|
|
444
|
+
readonly kind: {
|
|
445
|
+
readonly const: "always";
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
}, {
|
|
449
|
+
readonly type: "object";
|
|
450
|
+
readonly additionalProperties: false;
|
|
451
|
+
readonly required: readonly ["kind"];
|
|
452
|
+
readonly properties: {
|
|
453
|
+
readonly kind: {
|
|
454
|
+
readonly const: "otherwise";
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
}, {
|
|
458
|
+
readonly type: "object";
|
|
459
|
+
readonly additionalProperties: false;
|
|
460
|
+
readonly required: readonly ["kind", "text"];
|
|
461
|
+
readonly properties: {
|
|
462
|
+
readonly kind: {
|
|
463
|
+
readonly const: "contains";
|
|
464
|
+
};
|
|
465
|
+
readonly text: {
|
|
466
|
+
readonly type: "string";
|
|
467
|
+
readonly minLength: 1;
|
|
468
|
+
readonly maxLength: 500;
|
|
469
|
+
};
|
|
470
|
+
readonly caseSensitive: {
|
|
471
|
+
readonly type: "boolean";
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
}, {
|
|
475
|
+
readonly type: "object";
|
|
476
|
+
readonly additionalProperties: false;
|
|
477
|
+
readonly required: readonly ["kind", "pattern"];
|
|
478
|
+
readonly properties: {
|
|
479
|
+
readonly kind: {
|
|
480
|
+
readonly const: "matches";
|
|
481
|
+
};
|
|
482
|
+
readonly pattern: {
|
|
483
|
+
readonly type: "string";
|
|
484
|
+
readonly minLength: 1;
|
|
485
|
+
readonly maxLength: 500;
|
|
486
|
+
};
|
|
487
|
+
readonly flags: {
|
|
488
|
+
readonly type: "string";
|
|
489
|
+
readonly pattern: "^[imsu]{0,4}$";
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
}, {
|
|
493
|
+
readonly type: "object";
|
|
494
|
+
readonly additionalProperties: false;
|
|
495
|
+
readonly required: readonly ["kind", "label"];
|
|
496
|
+
readonly properties: {
|
|
497
|
+
readonly kind: {
|
|
498
|
+
readonly const: "route";
|
|
499
|
+
};
|
|
500
|
+
readonly label: {
|
|
501
|
+
readonly type: "string";
|
|
502
|
+
readonly minLength: 1;
|
|
503
|
+
readonly maxLength: 100;
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
}];
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
export { PIPELINE_DOCUMENT_SCHEMA_ID, PIPELINE_EDGE_ID_PATTERN, PIPELINE_FORMAT, PIPELINE_FORMAT_LIMITS, PIPELINE_MODEL_PATTERN, PIPELINE_NAME_PATTERN, PIPELINE_NODE_ID_PATTERN, PIPELINE_SCHEMA_VERSION, PIPELINE_SERVER_NAME_PATTERN, PIPELINE_TOOL_NAME_PATTERN, SECRET_KEY, SECRET_NAME, SECRET_SCAN_MAX_CHARS, canonicalPipelineDocument, definitionToDocument, documentToDefinition, emptyPipelineDocument, formatPipelineIssues, isSecretKey, isSecretRef, looksLikeSecret, pipelineDocumentJsonSchema, pipelineDocumentsEqual, pipelineNameOf, pipelineReferences, secretKindOf, unresolvedReferences, validatePipelineDocument };
|
|
512
|
+
export type { DefinitionToDocumentOptions, EnginePipelineDefinition, EnginePipelineEdge, EnginePipelineNode, PipelineDocument, PipelineDocumentCondition, PipelineDocumentEdge, PipelineDocumentNode, PipelineDocumentRoute, PipelineDocumentValidation, PipelineFormatIssue, PipelineFormatIssueCode, PipelineJsonValue, PipelineReference, PipelineReferenceKind, PipelineResolvable, PipelineResolvers, SecretKind };
|