@owlmeans/viable-common 0.0.5 → 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 +1 -68
- package/build/areas/consts.d.ts +1 -1
- package/build/areas/consts.js +1 -1
- package/build/connect/consts.d.ts +6 -94
- package/build/connect/consts.d.ts.map +1 -1
- package/build/connect/consts.js +2 -91
- package/build/connect/consts.js.map +1 -1
- package/build/connect/entrypoints.d.ts +3 -3
- package/build/connect/entrypoints.d.ts.map +1 -1
- package/build/connect/entrypoints.js +54 -95
- package/build/connect/entrypoints.js.map +1 -1
- package/build/connect/ops.d.ts +2 -46
- package/build/connect/ops.d.ts.map +1 -1
- package/build/connect/references.d.ts +63 -117
- package/build/connect/references.d.ts.map +1 -1
- package/build/connect/references.js +0 -16
- package/build/connect/references.js.map +1 -1
- package/build/connect/schemas.d.ts +2 -17
- package/build/connect/schemas.d.ts.map +1 -1
- package/build/connect/schemas.js +7 -91
- package/build/connect/schemas.js.map +1 -1
- package/build/connect/types.d.ts +1 -125
- package/build/connect/types.d.ts.map +1 -1
- package/build/dev/types.d.ts +3 -2
- package/build/dev/types.d.ts.map +1 -1
- package/build/index.d.ts +0 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +0 -1
- package/build/index.js.map +1 -1
- package/build/skills/catalogue.d.ts.map +1 -1
- package/build/skills/catalogue.js +109 -103
- package/build/skills/catalogue.js.map +1 -1
- package/build/slot/consts.d.ts +2 -73
- package/build/slot/consts.d.ts.map +1 -1
- package/build/slot/consts.js +5 -105
- package/build/slot/consts.js.map +1 -1
- package/build/slot/schemas.d.ts +1 -9
- package/build/slot/schemas.d.ts.map +1 -1
- package/build/slot/schemas.js +0 -18
- package/build/slot/schemas.js.map +1 -1
- package/build/slot/types.d.ts +0 -71
- package/build/slot/types.d.ts.map +1 -1
- package/package.json +7 -15
- package/src/areas/consts.ts +1 -1
- package/src/connect/consts.ts +2 -94
- package/src/connect/entrypoints.ts +69 -139
- package/src/connect/ops.ts +2 -50
- package/src/connect/references.ts +56 -32
- package/src/connect/schemas.ts +13 -102
- package/src/connect/types.ts +2 -130
- package/src/dev/types.ts +3 -2
- package/src/index.ts +0 -1
- package/src/skills/catalogue.ts +109 -103
- package/src/slot/consts.ts +6 -112
- package/src/slot/schemas.ts +1 -20
- package/src/slot/types.ts +0 -80
- package/agent-meta/manifest.json +0 -16
- package/agent-meta/skills/viable-common/SKILL.md +0 -179
- package/build/convert/consts.d.ts +0 -539
- package/build/convert/consts.d.ts.map +0 -1
- package/build/convert/consts.js +0 -630
- package/build/convert/consts.js.map +0 -1
- package/build/convert/helpers.d.ts +0 -91
- package/build/convert/helpers.d.ts.map +0 -1
- package/build/convert/helpers.js +0 -301
- package/build/convert/helpers.js.map +0 -1
- package/build/convert/index.d.ts +0 -11
- package/build/convert/index.d.ts.map +0 -1
- package/build/convert/index.js +0 -4
- package/build/convert/index.js.map +0 -1
- package/build/convert/schemas.d.ts +0 -62
- package/build/convert/schemas.d.ts.map +0 -1
- package/build/convert/schemas.js +0 -626
- package/build/convert/schemas.js.map +0 -1
- package/build/convert/types.d.ts +0 -683
- package/build/convert/types.d.ts.map +0 -1
- package/build/convert/types.js +0 -2
- package/build/convert/types.js.map +0 -1
- package/src/convert/consts.ts +0 -672
- package/src/convert/helpers.ts +0 -340
- package/src/convert/index.ts +0 -10
- package/src/convert/schemas.ts +0 -663
- package/src/convert/types.ts +0 -741
- package/tests/connect-convert.spec.ts +0 -161
- package/tests/convert.spec.ts +0 -318
- /package/tests/{design.spec.ts → design.test.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,68 +1 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
Runtime-free contracts of the OwlMeans Viable platform.
|
|
4
|
-
|
|
5
|
-
Viable turns a description into a running full-stack application. Four runtimes have to agree
|
|
6
|
-
about every name involved — the manager API, the agent, the publisher that runs inside a project
|
|
7
|
-
slot, and the connector SDK on a developer's machine — so each of those names is declared here
|
|
8
|
-
once and imported by all of them. There is no runtime in this package: no `@langchain/*`, no
|
|
9
|
-
filesystem, no inference SDK. It is safe to import from a browser bundle.
|
|
10
|
-
|
|
11
|
-
## What is in it
|
|
12
|
-
|
|
13
|
-
| Subpath | Contents |
|
|
14
|
-
|---|---|
|
|
15
|
-
| `.` | The shapes a generated project is described by: user stories and entities, the design and scaffold plans, UX/UI specs, the `docs/` metadata paths, the four user areas, the model roles and personas, moderation categories, slot metadata |
|
|
16
|
-
| `@owlmeans/viable-common/slot` | The slot command vocabulary — file, shell and git commands, the sub-project roles, the target's ports and process markers |
|
|
17
|
-
| `@owlmeans/viable-common/connect` | The connector protocol: sessions, operations, model tasks, questions, jobs, capabilities, the error family, and `connectEntrypoints()` — the one declaration both the platform and the SDK elevate |
|
|
18
|
-
| `@owlmeans/viable-common/convert` | Converting an application that already exists: the stages and their transitions, the origin and stack taxonomy, the census classifiers, and the `docs/conversion/` layout |
|
|
19
|
-
| `@owlmeans/viable-common/integrity` | The target-shape manifest — what a slot is allowed to install, build and run — per target layout |
|
|
20
|
-
|
|
21
|
-
## Installation
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
bun add @owlmeans/viable-common@^0.0.4
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Rules worth knowing before you change something
|
|
28
|
-
|
|
29
|
-
**A schema is written for the reader that will refuse it.** Model-answer schemas are annotated
|
|
30
|
-
`JSONSchemaType<T>` so a drift from the type is caught where it is written; record schemas are
|
|
31
|
-
hand-written and cast, because they are re-applied as a Mongo `$jsonSchema`, which admits no
|
|
32
|
-
`Record<>` maps, no `integer` and no date objects.
|
|
33
|
-
|
|
34
|
-
**`nullable: true` always carries its `type`, and a nullable `enum` lists `null` among its
|
|
35
|
-
values.** Ajv checks `nullable` and `enum` independently, so the pair written apart admits `null`
|
|
36
|
-
by type and then refuses it by enum — the field can only ever be omitted, never sent empty. A
|
|
37
|
-
provider's structured output writes an unset optional as `null`, and a wire body where `null`
|
|
38
|
-
means "inherit" has no other spelling. `tests/convert.spec.ts` walks every exported schema for
|
|
39
|
-
both faults, and for draft-04 tuple `items`.
|
|
40
|
-
|
|
41
|
-
**A field that crosses a version skew carries no `enum`.** A connector is installed with
|
|
42
|
-
`npx -y @owlmeans/viable-mcp@^0.1.18-rc.1` and talks to a separately deployed platform, so an executor kind it
|
|
43
|
-
sends must remain an unused capability on an older platform rather than a refused session.
|
|
44
|
-
|
|
45
|
-
**A ceiling exists once.** The inquiry answer cap here equals `DEFAULT_INQUIRY_ANSWER_CHARS` in
|
|
46
|
-
`@owlmeans/llm-common` and must stay equal; two ceilings mean the larger one truncates silently
|
|
47
|
-
at the smaller.
|
|
48
|
-
|
|
49
|
-
## Related
|
|
50
|
-
|
|
51
|
-
- `@owlmeans/viable-sdk` — the connector SDK written against these contracts
|
|
52
|
-
- `@owlmeans/viable-mcp` — the npx MCP server built on that SDK
|
|
53
|
-
|
|
54
|
-
<!-- owlmeans:agent-guidance:start -->
|
|
55
|
-
## Agent guidance
|
|
56
|
-
|
|
57
|
-
This package ships embedded agent skills under `agent-meta/`. After installing your
|
|
58
|
-
`@owlmeans/*` packages, run the OwlMeans agent-skills installer to place them into
|
|
59
|
-
your project's skill store (`.agents/skills/`):
|
|
60
|
-
|
|
61
|
-
```sh
|
|
62
|
-
npx @owlmeans/agent-skills@^0.1.18-rc.14
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
The embedded files are version-matched to this package release. Do not edit them
|
|
66
|
-
directly — they are regenerated on each publish. To contribute guidance edits,
|
|
67
|
-
open a PR against the source monorepo.
|
|
68
|
-
<!-- owlmeans:agent-guidance:end -->
|
|
1
|
+
# types
|
package/build/areas/consts.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export declare const ADMIN_PERMISSION = "project--admin";
|
|
|
50
50
|
* The back office's marker permission.
|
|
51
51
|
*
|
|
52
52
|
* The operator area is where an organization's own staff work, and until this existed it was
|
|
53
|
-
* declared `
|
|
53
|
+
* declared `{ guards: DEFAULT_GUARD }` alone — any signed-in person, which for a generated application
|
|
54
54
|
* means any visitor who typed an email address. The per-screen gates story development adds narrow
|
|
55
55
|
* particular screens; they cannot narrow the area, and a project with nothing developed yet has
|
|
56
56
|
* none of them at all, so the whole back office stood open by construction.
|
package/build/areas/consts.js
CHANGED
|
@@ -58,7 +58,7 @@ export const ADMIN_PERMISSION = 'project--admin';
|
|
|
58
58
|
* The back office's marker permission.
|
|
59
59
|
*
|
|
60
60
|
* The operator area is where an organization's own staff work, and until this existed it was
|
|
61
|
-
* declared `
|
|
61
|
+
* declared `{ guards: DEFAULT_GUARD }` alone — any signed-in person, which for a generated application
|
|
62
62
|
* means any visitor who typed an email address. The per-screen gates story development adds narrow
|
|
63
63
|
* particular screens; they cannot narrow the area, and a project with nothing developed yet has
|
|
64
64
|
* none of them at all, so the whole back office stood open by construction.
|
|
@@ -62,20 +62,8 @@ export declare enum ConnectExecutor {
|
|
|
62
62
|
Files = "files",
|
|
63
63
|
Shell = "shell",
|
|
64
64
|
Git = "git",
|
|
65
|
-
/**
|
|
66
|
-
|
|
67
|
-
* in a clean subagent and submitted back. Present exactly when `llm` is `Local`.
|
|
68
|
-
*/
|
|
69
|
-
Model = "model",
|
|
70
|
-
/**
|
|
71
|
-
* A PERSON can be asked a question and their answer brought back.
|
|
72
|
-
*
|
|
73
|
-
* Advertised always, and by every connector: a parent agent has a human in front of it by
|
|
74
|
-
* definition, which is the whole reason the platform can ask one anything at all. It is not a
|
|
75
|
-
* narrower `Model` — a model task is inference the platform pays for either way, an inquiry is
|
|
76
|
-
* a decision only a person can make, and a run that cannot ask assumes instead.
|
|
77
|
-
*/
|
|
78
|
-
Human = "human"
|
|
65
|
+
/** The parent agent will answer model tasks. Present exactly when `llm` is `Local`. */
|
|
66
|
+
Model = "model"
|
|
79
67
|
}
|
|
80
68
|
/** What one operation asks a connector to do. */
|
|
81
69
|
export declare enum ConnectOpKind {
|
|
@@ -84,15 +72,7 @@ export declare enum ConnectOpKind {
|
|
|
84
72
|
/** Run one model call and submit its answer. */
|
|
85
73
|
ModelTask = "model-task",
|
|
86
74
|
/** Write the target's configuration (its `.env` files) and report what services are reachable. */
|
|
87
|
-
Configure = "configure"
|
|
88
|
-
/**
|
|
89
|
-
* Put one question to the person the connector is working for, and bring back their answer.
|
|
90
|
-
*
|
|
91
|
-
* An operation like any other — queued to the project, redelivered to whichever session is
|
|
92
|
-
* attached, answered against its own op id — because the alternative was a second channel with
|
|
93
|
-
* its own delivery, expiry and reattachment rules for the one payload that already had them.
|
|
94
|
-
*/
|
|
95
|
-
Inquiry = "inquiry"
|
|
75
|
+
Configure = "configure"
|
|
96
76
|
}
|
|
97
77
|
/** How a connector is receiving operations. */
|
|
98
78
|
export declare enum ConnectTransport {
|
|
@@ -172,19 +152,7 @@ export declare enum ConnectJobKind {
|
|
|
172
152
|
ProjectReinit = "project-reinit",
|
|
173
153
|
StoryDevelop = "story-develop",
|
|
174
154
|
FreeFlight = "free-flight",
|
|
175
|
-
PipelineResume = "pipeline-resume"
|
|
176
|
-
/**
|
|
177
|
-
* The four stages of a conversion, plus the purge.
|
|
178
|
-
*
|
|
179
|
-
* One kind per stage rather than one for the whole conversion: each stage is its own platform
|
|
180
|
-
* pipeline run, ends at a decision the user makes, and is looked up by the pipeline alias its
|
|
181
|
-
* kind names. A single `convert` kind would match whichever run row happened to be newest.
|
|
182
|
-
*/
|
|
183
|
-
ConvertIntake = "convert-intake",
|
|
184
|
-
ConvertAnalysis = "convert-analysis",
|
|
185
|
-
ConvertExtraction = "convert-extraction",
|
|
186
|
-
ConvertImplementation = "convert-implementation",
|
|
187
|
-
ConvertPurge = "convert-purge"
|
|
155
|
+
PipelineResume = "pipeline-resume"
|
|
188
156
|
}
|
|
189
157
|
export declare enum ConnectJobStatus {
|
|
190
158
|
Queued = "queued",
|
|
@@ -201,46 +169,8 @@ export declare enum ConnectJobBlock {
|
|
|
201
169
|
/** Slot commands are queued and no connector is attached. */
|
|
202
170
|
LocalOp = "local-op",
|
|
203
171
|
/** The local target has no database configured and the run needs one. */
|
|
204
|
-
Env = "env"
|
|
205
|
-
/** A question is waiting for a person and nobody has answered it. */
|
|
206
|
-
Question = "question"
|
|
172
|
+
Env = "env"
|
|
207
173
|
}
|
|
208
|
-
/**
|
|
209
|
-
* The shapes a question can take on the wire.
|
|
210
|
-
*
|
|
211
|
-
* Mirrors `InquiryKind` in `@owlmeans/llm-common` value for value, and is deliberately a SEPARATE
|
|
212
|
-
* name rather than an import: the connect module is the wire contract and owns its own vocabulary
|
|
213
|
-
* — the same reason `ModelTask` mirrors `DelegatedTask` — which also keeps `manager-api`, which
|
|
214
|
-
* does not depend on the model runtime, free of `@owlmeans/llm-common`. Values are byte-identical,
|
|
215
|
-
* so the platform's mapper is a widening rather than a translation table, and a test pins that.
|
|
216
|
-
*/
|
|
217
|
-
export declare enum ConnectInquiryKind {
|
|
218
|
-
/** Pick one of the offered options, or several when `multiple` is set. */
|
|
219
|
-
Choice = "choice",
|
|
220
|
-
/** Free text. */
|
|
221
|
-
Text = "text",
|
|
222
|
-
/** Yes or no. */
|
|
223
|
-
Confirm = "confirm"
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* How long the platform waits for a person to answer one question.
|
|
227
|
-
*
|
|
228
|
-
* The same forty-five minutes a model task gets, and for the same reason: the bound exists so a
|
|
229
|
-
* parent that has gone away eventually fails the step rather than holding a project lock forever,
|
|
230
|
-
* not to pace somebody who is thinking.
|
|
231
|
-
*/
|
|
232
|
-
export declare const CONNECT_INQUIRY_TIMEOUT_MS = 2700000;
|
|
233
|
-
/** Options one choice question may offer. Beyond this it is a text question with a hint. */
|
|
234
|
-
export declare const CONNECT_INQUIRY_MAX_OPTIONS = 12;
|
|
235
|
-
/**
|
|
236
|
-
* The ceiling on an answer's text.
|
|
237
|
-
*
|
|
238
|
-
* ONE ceiling for the whole stack: the twin is `DEFAULT_INQUIRY_ANSWER_CHARS` in
|
|
239
|
-
* `@owlmeans/llm-common`, and the two must stay equal. Two ceilings means the layer with the
|
|
240
|
-
* larger one truncates silently at the smaller, and the caller records an assumption about an
|
|
241
|
-
* answer the person actually gave.
|
|
242
|
-
*/
|
|
243
|
-
export declare const CONNECT_INQUIRY_MAX_TEXT = 2000;
|
|
244
174
|
/**
|
|
245
175
|
* How long a session survives without a sign of life.
|
|
246
176
|
*
|
|
@@ -307,7 +237,6 @@ export declare const CONNECT_EVENT_SESSION = "connect:session";
|
|
|
307
237
|
export declare const CONNECT_OP_PUBSUB = "connect-op-pubsub";
|
|
308
238
|
export declare const CONNECT_RESULT_PUBSUB = "connect-result-pubsub";
|
|
309
239
|
export declare const CONNECT_OP_STORE = "connect-op-store";
|
|
310
|
-
export declare const CONNECT_RESULT_STORE = "connect-result-store";
|
|
311
240
|
export declare const CONNECT_SESSION_PUBSUB = "connect-session-pubsub";
|
|
312
241
|
/** The backend resource alias for session records. */
|
|
313
242
|
export declare const RES_CONNECT_SESSION = "connect-session";
|
|
@@ -317,7 +246,7 @@ export declare const RES_CONNECT_SESSION = "connect-session";
|
|
|
317
246
|
* Owned here rather than by the platform because they ARE the contract: the SDK, the MCP host and
|
|
318
247
|
* the manager API all address the same aliases, and a client that had to be handed its own copy of
|
|
319
248
|
* the tree would be a second place for a name to drift. The platform spreads the declarations
|
|
320
|
-
* these produce into its own entrypoint list and
|
|
249
|
+
* these produce into its own entrypoint list and binds handlers onto them.
|
|
321
250
|
*/
|
|
322
251
|
export declare const connect: Readonly<{
|
|
323
252
|
base: "viable:manager-api:connect:base";
|
|
@@ -344,22 +273,8 @@ export declare const connect: Readonly<{
|
|
|
344
273
|
modify: "viable:manager-api:connect:project:modify";
|
|
345
274
|
settings: "viable:manager-api:connect:project:settings";
|
|
346
275
|
llm: "viable:manager-api:connect:project:llm";
|
|
347
|
-
/** The per-project converter inference mode. Separate from `llm`: it is not a paid capability. */
|
|
348
|
-
converterLlm: "viable:manager-api:connect:project:converter-llm";
|
|
349
276
|
job: "viable:manager-api:connect:project:job";
|
|
350
277
|
}>;
|
|
351
|
-
convert: Readonly<{
|
|
352
|
-
create: "viable:manager-api:connect:convert:create";
|
|
353
|
-
check: "viable:manager-api:connect:convert:check";
|
|
354
|
-
start: "viable:manager-api:connect:convert:start";
|
|
355
|
-
proceed: "viable:manager-api:connect:convert:proceed";
|
|
356
|
-
cancel: "viable:manager-api:connect:convert:cancel";
|
|
357
|
-
status: "viable:manager-api:connect:convert:status";
|
|
358
|
-
purge: "viable:manager-api:connect:convert:purge";
|
|
359
|
-
}>;
|
|
360
|
-
inquiry: Readonly<{
|
|
361
|
-
answer: "viable:manager-api:connect:inquiry:answer";
|
|
362
|
-
}>;
|
|
363
278
|
story: Readonly<{
|
|
364
279
|
list: "viable:manager-api:connect:story:list";
|
|
365
280
|
get: "viable:manager-api:connect:story:get";
|
|
@@ -368,9 +283,6 @@ export declare const connect: Readonly<{
|
|
|
368
283
|
delete: "viable:manager-api:connect:story:delete";
|
|
369
284
|
develop: "viable:manager-api:connect:story:develop";
|
|
370
285
|
}>;
|
|
371
|
-
files: Readonly<{
|
|
372
|
-
list: "viable:manager-api:connect:files:list";
|
|
373
|
-
}>;
|
|
374
286
|
pipeline: Readonly<{
|
|
375
287
|
state: "viable:manager-api:connect:pipeline:state";
|
|
376
288
|
resume: "viable:manager-api:connect:pipeline:resume";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/connect/consts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,8DAA8D;AAC9D,oBAAY,aAAa;IACvB,yFAAyF;IACzF,KAAK,UAAU;IACf,8EAA8E;IAC9E,KAAK,UAAU;CAChB;AAED,6CAA6C;AAC7C,oBAAY,UAAU;IACpB,qFAAqF;IACrF,KAAK,UAAU;IACf;;;;;OAKG;IACH,KAAK,UAAU;CAChB;AAED;;;;;;GAMG;AACH,oBAAY,cAAc;IACxB,UAAU,gBAAgB;IAC1B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,KAAK,UAAU;CAChB;AAED,+BAA+B;AAC/B,oBAAY,oBAAoB;IAC9B,MAAM,WAAW;IACjB,kCAAkC;IAClC,MAAM,WAAW;IACjB,+EAA+E;IAC/E,OAAO,YAAY;IACnB,sDAAsD;IACtD,UAAU,eAAe;CAC1B;AAED,2DAA2D;AAC3D,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,GAAG,QAAQ;IACX
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/connect/consts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,8DAA8D;AAC9D,oBAAY,aAAa;IACvB,yFAAyF;IACzF,KAAK,UAAU;IACf,8EAA8E;IAC9E,KAAK,UAAU;CAChB;AAED,6CAA6C;AAC7C,oBAAY,UAAU;IACpB,qFAAqF;IACrF,KAAK,UAAU;IACf;;;;;OAKG;IACH,KAAK,UAAU;CAChB;AAED;;;;;;GAMG;AACH,oBAAY,cAAc;IACxB,UAAU,gBAAgB;IAC1B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,KAAK,UAAU;CAChB;AAED,+BAA+B;AAC/B,oBAAY,oBAAoB;IAC9B,MAAM,WAAW;IACjB,kCAAkC;IAClC,MAAM,WAAW;IACjB,+EAA+E;IAC/E,OAAO,YAAY;IACnB,sDAAsD;IACtD,UAAU,eAAe;CAC1B;AAED,2DAA2D;AAC3D,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,uFAAuF;IACvF,KAAK,UAAU;CAChB;AAED,iDAAiD;AACjD,oBAAY,aAAa;IACvB,2FAA2F;IAC3F,WAAW,iBAAiB;IAC5B,gDAAgD;IAChD,SAAS,eAAe;IACxB,kGAAkG;IAClG,SAAS,cAAc;CACxB;AAED,+CAA+C;AAC/C,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;I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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuClB,CAAA"}
|
package/build/connect/consts.js
CHANGED
|
@@ -67,20 +67,8 @@ export var ConnectExecutor;
|
|
|
67
67
|
ConnectExecutor["Files"] = "files";
|
|
68
68
|
ConnectExecutor["Shell"] = "shell";
|
|
69
69
|
ConnectExecutor["Git"] = "git";
|
|
70
|
-
/**
|
|
71
|
-
* The parent agent PERFORMS the model calls of a run: each one arrives as a `ModelTask`, is run
|
|
72
|
-
* in a clean subagent and submitted back. Present exactly when `llm` is `Local`.
|
|
73
|
-
*/
|
|
70
|
+
/** The parent agent will answer model tasks. Present exactly when `llm` is `Local`. */
|
|
74
71
|
ConnectExecutor["Model"] = "model";
|
|
75
|
-
/**
|
|
76
|
-
* A PERSON can be asked a question and their answer brought back.
|
|
77
|
-
*
|
|
78
|
-
* Advertised always, and by every connector: a parent agent has a human in front of it by
|
|
79
|
-
* definition, which is the whole reason the platform can ask one anything at all. It is not a
|
|
80
|
-
* narrower `Model` — a model task is inference the platform pays for either way, an inquiry is
|
|
81
|
-
* a decision only a person can make, and a run that cannot ask assumes instead.
|
|
82
|
-
*/
|
|
83
|
-
ConnectExecutor["Human"] = "human";
|
|
84
72
|
})(ConnectExecutor || (ConnectExecutor = {}));
|
|
85
73
|
/** What one operation asks a connector to do. */
|
|
86
74
|
export var ConnectOpKind;
|
|
@@ -91,14 +79,6 @@ export var ConnectOpKind;
|
|
|
91
79
|
ConnectOpKind["ModelTask"] = "model-task";
|
|
92
80
|
/** Write the target's configuration (its `.env` files) and report what services are reachable. */
|
|
93
81
|
ConnectOpKind["Configure"] = "configure";
|
|
94
|
-
/**
|
|
95
|
-
* Put one question to the person the connector is working for, and bring back their answer.
|
|
96
|
-
*
|
|
97
|
-
* An operation like any other — queued to the project, redelivered to whichever session is
|
|
98
|
-
* attached, answered against its own op id — because the alternative was a second channel with
|
|
99
|
-
* its own delivery, expiry and reattachment rules for the one payload that already had them.
|
|
100
|
-
*/
|
|
101
|
-
ConnectOpKind["Inquiry"] = "inquiry";
|
|
102
82
|
})(ConnectOpKind || (ConnectOpKind = {}));
|
|
103
83
|
/** How a connector is receiving operations. */
|
|
104
84
|
export var ConnectTransport;
|
|
@@ -217,18 +197,6 @@ export var ConnectJobKind;
|
|
|
217
197
|
ConnectJobKind["StoryDevelop"] = "story-develop";
|
|
218
198
|
ConnectJobKind["FreeFlight"] = "free-flight";
|
|
219
199
|
ConnectJobKind["PipelineResume"] = "pipeline-resume";
|
|
220
|
-
/**
|
|
221
|
-
* The four stages of a conversion, plus the purge.
|
|
222
|
-
*
|
|
223
|
-
* One kind per stage rather than one for the whole conversion: each stage is its own platform
|
|
224
|
-
* pipeline run, ends at a decision the user makes, and is looked up by the pipeline alias its
|
|
225
|
-
* kind names. A single `convert` kind would match whichever run row happened to be newest.
|
|
226
|
-
*/
|
|
227
|
-
ConnectJobKind["ConvertIntake"] = "convert-intake";
|
|
228
|
-
ConnectJobKind["ConvertAnalysis"] = "convert-analysis";
|
|
229
|
-
ConnectJobKind["ConvertExtraction"] = "convert-extraction";
|
|
230
|
-
ConnectJobKind["ConvertImplementation"] = "convert-implementation";
|
|
231
|
-
ConnectJobKind["ConvertPurge"] = "convert-purge";
|
|
232
200
|
})(ConnectJobKind || (ConnectJobKind = {}));
|
|
233
201
|
export var ConnectJobStatus;
|
|
234
202
|
(function (ConnectJobStatus) {
|
|
@@ -248,46 +216,7 @@ export var ConnectJobBlock;
|
|
|
248
216
|
ConnectJobBlock["LocalOp"] = "local-op";
|
|
249
217
|
/** The local target has no database configured and the run needs one. */
|
|
250
218
|
ConnectJobBlock["Env"] = "env";
|
|
251
|
-
/** A question is waiting for a person and nobody has answered it. */
|
|
252
|
-
ConnectJobBlock["Question"] = "question";
|
|
253
219
|
})(ConnectJobBlock || (ConnectJobBlock = {}));
|
|
254
|
-
/**
|
|
255
|
-
* The shapes a question can take on the wire.
|
|
256
|
-
*
|
|
257
|
-
* Mirrors `InquiryKind` in `@owlmeans/llm-common` value for value, and is deliberately a SEPARATE
|
|
258
|
-
* name rather than an import: the connect module is the wire contract and owns its own vocabulary
|
|
259
|
-
* — the same reason `ModelTask` mirrors `DelegatedTask` — which also keeps `manager-api`, which
|
|
260
|
-
* does not depend on the model runtime, free of `@owlmeans/llm-common`. Values are byte-identical,
|
|
261
|
-
* so the platform's mapper is a widening rather than a translation table, and a test pins that.
|
|
262
|
-
*/
|
|
263
|
-
export var ConnectInquiryKind;
|
|
264
|
-
(function (ConnectInquiryKind) {
|
|
265
|
-
/** Pick one of the offered options, or several when `multiple` is set. */
|
|
266
|
-
ConnectInquiryKind["Choice"] = "choice";
|
|
267
|
-
/** Free text. */
|
|
268
|
-
ConnectInquiryKind["Text"] = "text";
|
|
269
|
-
/** Yes or no. */
|
|
270
|
-
ConnectInquiryKind["Confirm"] = "confirm";
|
|
271
|
-
})(ConnectInquiryKind || (ConnectInquiryKind = {}));
|
|
272
|
-
/**
|
|
273
|
-
* How long the platform waits for a person to answer one question.
|
|
274
|
-
*
|
|
275
|
-
* The same forty-five minutes a model task gets, and for the same reason: the bound exists so a
|
|
276
|
-
* parent that has gone away eventually fails the step rather than holding a project lock forever,
|
|
277
|
-
* not to pace somebody who is thinking.
|
|
278
|
-
*/
|
|
279
|
-
export const CONNECT_INQUIRY_TIMEOUT_MS = 2_700_000;
|
|
280
|
-
/** Options one choice question may offer. Beyond this it is a text question with a hint. */
|
|
281
|
-
export const CONNECT_INQUIRY_MAX_OPTIONS = 12;
|
|
282
|
-
/**
|
|
283
|
-
* The ceiling on an answer's text.
|
|
284
|
-
*
|
|
285
|
-
* ONE ceiling for the whole stack: the twin is `DEFAULT_INQUIRY_ANSWER_CHARS` in
|
|
286
|
-
* `@owlmeans/llm-common`, and the two must stay equal. Two ceilings means the layer with the
|
|
287
|
-
* larger one truncates silently at the smaller, and the caller records an assumption about an
|
|
288
|
-
* answer the person actually gave.
|
|
289
|
-
*/
|
|
290
|
-
export const CONNECT_INQUIRY_MAX_TEXT = 2_000;
|
|
291
220
|
/**
|
|
292
221
|
* How long a session survives without a sign of life.
|
|
293
222
|
*
|
|
@@ -354,7 +283,6 @@ export const CONNECT_EVENT_SESSION = 'connect:session';
|
|
|
354
283
|
export const CONNECT_OP_PUBSUB = 'connect-op-pubsub';
|
|
355
284
|
export const CONNECT_RESULT_PUBSUB = 'connect-result-pubsub';
|
|
356
285
|
export const CONNECT_OP_STORE = 'connect-op-store';
|
|
357
|
-
export const CONNECT_RESULT_STORE = 'connect-result-store';
|
|
358
286
|
export const CONNECT_SESSION_PUBSUB = 'connect-session-pubsub';
|
|
359
287
|
/** The backend resource alias for session records. */
|
|
360
288
|
export const RES_CONNECT_SESSION = 'connect-session';
|
|
@@ -364,7 +292,7 @@ export const RES_CONNECT_SESSION = 'connect-session';
|
|
|
364
292
|
* Owned here rather than by the platform because they ARE the contract: the SDK, the MCP host and
|
|
365
293
|
* the manager API all address the same aliases, and a client that had to be handed its own copy of
|
|
366
294
|
* the tree would be a second place for a name to drift. The platform spreads the declarations
|
|
367
|
-
* these produce into its own entrypoint list and
|
|
295
|
+
* these produce into its own entrypoint list and binds handlers onto them.
|
|
368
296
|
*/
|
|
369
297
|
export const connect = Object.freeze({
|
|
370
298
|
base: 'viable:manager-api:connect:base',
|
|
@@ -391,22 +319,8 @@ export const connect = Object.freeze({
|
|
|
391
319
|
modify: 'viable:manager-api:connect:project:modify',
|
|
392
320
|
settings: 'viable:manager-api:connect:project:settings',
|
|
393
321
|
llm: 'viable:manager-api:connect:project:llm',
|
|
394
|
-
/** The per-project converter inference mode. Separate from `llm`: it is not a paid capability. */
|
|
395
|
-
converterLlm: 'viable:manager-api:connect:project:converter-llm',
|
|
396
322
|
job: 'viable:manager-api:connect:project:job',
|
|
397
323
|
}),
|
|
398
|
-
convert: Object.freeze({
|
|
399
|
-
create: 'viable:manager-api:connect:convert:create',
|
|
400
|
-
check: 'viable:manager-api:connect:convert:check',
|
|
401
|
-
start: 'viable:manager-api:connect:convert:start',
|
|
402
|
-
proceed: 'viable:manager-api:connect:convert:proceed',
|
|
403
|
-
cancel: 'viable:manager-api:connect:convert:cancel',
|
|
404
|
-
status: 'viable:manager-api:connect:convert:status',
|
|
405
|
-
purge: 'viable:manager-api:connect:convert:purge',
|
|
406
|
-
}),
|
|
407
|
-
inquiry: Object.freeze({
|
|
408
|
-
answer: 'viable:manager-api:connect:inquiry:answer',
|
|
409
|
-
}),
|
|
410
324
|
story: Object.freeze({
|
|
411
325
|
list: 'viable:manager-api:connect:story:list',
|
|
412
326
|
get: 'viable:manager-api:connect:story:get',
|
|
@@ -415,9 +329,6 @@ export const connect = Object.freeze({
|
|
|
415
329
|
delete: 'viable:manager-api:connect:story:delete',
|
|
416
330
|
develop: 'viable:manager-api:connect:story:develop',
|
|
417
331
|
}),
|
|
418
|
-
files: Object.freeze({
|
|
419
|
-
list: 'viable:manager-api:connect:files:list',
|
|
420
|
-
}),
|
|
421
332
|
pipeline: Object.freeze({
|
|
422
333
|
state: 'viable:manager-api:connect:pipeline:state',
|
|
423
334
|
resume: 'viable:manager-api:connect:pipeline:resume',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/connect/consts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,8DAA8D;AAC9D,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,yFAAyF;IACzF,gCAAe,CAAA;IACf,8EAA8E;IAC9E,gCAAe,CAAA;AACjB,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AAED,6CAA6C;AAC7C,MAAM,CAAN,IAAY,UAUX;AAVD,WAAY,UAAU;IACpB,qFAAqF;IACrF,6BAAe,CAAA;IACf;;;;;OAKG;IACH,6BAAe,CAAA;AACjB,CAAC,EAVW,UAAU,KAAV,UAAU,QAUrB;AAED;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,4CAA0B,CAAA;IAC1B,iCAAe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AsC;QAC3C,MAAM,EAAE,yCAAyC;QACjD,MAAM,EAAE,yCAAyC;QACjD,MAAM,EAAE,yCAAyC;QACjD,OAAO,EAAE,0CAA0C;KACpD,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC;QACtB,KAAK,EAAE,2CAA2C;QAClD,MAAM,EAAE,4CAA4C;KACrD,CAAC;CACH,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EntrypointProtocolDeclaration } from '@owlmeans/entrypoint';
|
|
2
2
|
/**
|
|
3
3
|
* What the platform injects when it mounts the connector routes.
|
|
4
4
|
*
|
|
@@ -33,9 +33,9 @@ export interface ConnectEntrypointOptions {
|
|
|
33
33
|
/**
|
|
34
34
|
* Declare the connector's HTTP and socket surface.
|
|
35
35
|
*
|
|
36
|
-
* One list, spread into the platform's own entrypoints. Handlers are
|
|
36
|
+
* One list, spread into the platform's own entrypoints. Handlers are bound to these protocols
|
|
37
37
|
* server-side and onto client entrypoints in the SDK — the same declarations both times, which is
|
|
38
38
|
* what makes a path or a schema impossible to get wrong on one side only.
|
|
39
39
|
*/
|
|
40
|
-
export declare const connectEntrypoints: (opts: ConnectEntrypointOptions) =>
|
|
40
|
+
export declare const connectEntrypoints: (opts: ConnectEntrypointOptions) => EntrypointProtocolDeclaration[];
|
|
41
41
|
//# sourceMappingURL=entrypoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../../src/connect/entrypoints.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../../src/connect/entrypoints.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAA;AAiBzE;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACvC,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAA;IACb,mEAAmE;IACnE,IAAI,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;IAC1C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;IAC9C,0EAA0E;IAC1E,UAAU,EAAE,MAAM,CAAA;IAClB,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,SAAU,wBAAwB,KAAG,6BAA6B,EAyKhG,CAAA"}
|