@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/build/slot/consts.js
CHANGED
|
@@ -41,14 +41,6 @@ export var SlotCommandType;
|
|
|
41
41
|
export var SlotGitCommand;
|
|
42
42
|
(function (SlotGitCommand) {
|
|
43
43
|
SlotGitCommand["Ensure"] = "ensure";
|
|
44
|
-
/**
|
|
45
|
-
* Bring a remote repository's tree onto a volume that already exists.
|
|
46
|
-
*
|
|
47
|
-
* NOT `git clone`: a slot's directory is never empty — provisioning leaves its own metadata
|
|
48
|
-
* there — and `git clone` refuses a non-empty destination. The executor therefore initializes,
|
|
49
|
-
* adds the remote, fetches at a bounded depth and checks the branch out over the tree.
|
|
50
|
-
*/
|
|
51
|
-
SlotGitCommand["Clone"] = "clone";
|
|
52
44
|
SlotGitCommand["Status"] = "status";
|
|
53
45
|
SlotGitCommand["Commit"] = "commit";
|
|
54
46
|
SlotGitCommand["Log"] = "log";
|
|
@@ -74,34 +66,6 @@ export var SlotFileCommand;
|
|
|
74
66
|
SlotFileCommand["DeleteFile"] = "deleteFile";
|
|
75
67
|
SlotFileCommand["FindFilesWithEnvVars"] = "findFilesWithEnvVars";
|
|
76
68
|
SlotFileCommand["GetRootPath"] = "getRootPath";
|
|
77
|
-
/**
|
|
78
|
-
* List a tree with a size and a binary flag per entry, bounded by a caller-given limit.
|
|
79
|
-
*
|
|
80
|
-
* The reason it exists rather than being composed out of {@link SlotFileCommand.GetSourceList}
|
|
81
|
-
* plus a read per file: a foreign repository can hold a hundred thousand files, and one round
|
|
82
|
-
* trip each — over a signed HTTP call to a pod, or over a connector on somebody's laptop — is
|
|
83
|
-
* not a slower version of the same thing, it is a walk that never finishes.
|
|
84
|
-
*/
|
|
85
|
-
SlotFileCommand["StatTree"] = "statTree";
|
|
86
|
-
/**
|
|
87
|
-
* Read the first N bytes of one file.
|
|
88
|
-
*
|
|
89
|
-
* A census classifies a file from its head; reading whole files to do it would hold a 1 MB
|
|
90
|
-
* export in memory to look at its first line. The answer is text, so a binary head comes back
|
|
91
|
-
* as whatever decoding produced — which is exactly the signal the entropy classification wants.
|
|
92
|
-
*/
|
|
93
|
-
SlotFileCommand["ReadHead"] = "readHead";
|
|
94
|
-
/**
|
|
95
|
-
* Move everything in the project root into a subdirectory, keeping a named few in place.
|
|
96
|
-
*
|
|
97
|
-
* One command rather than a listing plus a move per file, because it must be ATOMIC from the
|
|
98
|
-
* caller's point of view: a relocation interrupted half way leaves a tree that is neither the
|
|
99
|
-
* origin nor a target, and nothing downstream can tell which files already moved. Binary-safe —
|
|
100
|
-
* it moves paths and never reads contents.
|
|
101
|
-
*/
|
|
102
|
-
SlotFileCommand["Relocate"] = "relocate";
|
|
103
|
-
/** Delete a directory and everything under it. The purge of a relocated origin. */
|
|
104
|
-
SlotFileCommand["RemoveTree"] = "removeTree";
|
|
105
69
|
})(SlotFileCommand || (SlotFileCommand = {}));
|
|
106
70
|
export var SlotShellCommand;
|
|
107
71
|
(function (SlotShellCommand) {
|
|
@@ -259,33 +223,6 @@ export const COMMAND_DEADLINES = {
|
|
|
259
223
|
[SlotShellCommand.Integrity]: 15_000,
|
|
260
224
|
};
|
|
261
225
|
export const DEFAULT_COMMAND_DEADLINE = 60_000;
|
|
262
|
-
/**
|
|
263
|
-
* EXECUTOR-side ceilings for the git commands whose real duration is not a git command's.
|
|
264
|
-
*
|
|
265
|
-
* Everything git does inside a slot is local and takes seconds — except a clone, which is a
|
|
266
|
-
* network fetch of somebody else's repository and is measured in minutes. Bounding it by the
|
|
267
|
-
* generic git deadline made a conversion's very first step fail on any repository large enough
|
|
268
|
-
* to be worth converting.
|
|
269
|
-
*/
|
|
270
|
-
export const GIT_COMMAND_DEADLINES = {
|
|
271
|
-
[SlotGitCommand.Clone]: 600_000,
|
|
272
|
-
};
|
|
273
|
-
/** What every other git command gets. The value the type-level branch used to hard-code. */
|
|
274
|
-
export const DEFAULT_GIT_COMMAND_DEADLINE = 60_000;
|
|
275
|
-
/**
|
|
276
|
-
* EXECUTOR-side ceilings for the file commands that walk or move a whole tree.
|
|
277
|
-
*
|
|
278
|
-
* The other file commands are one path each and finish in milliseconds; these three are bounded
|
|
279
|
-
* by how big the tree is, which for an origin project is set by whoever wrote it.
|
|
280
|
-
*/
|
|
281
|
-
export const FILE_COMMAND_DEADLINES = {
|
|
282
|
-
[SlotFileCommand.StatTree]: 120_000,
|
|
283
|
-
[SlotFileCommand.Relocate]: 300_000,
|
|
284
|
-
[SlotFileCommand.RemoveTree]: 120_000,
|
|
285
|
-
[SlotFileCommand.ReadHead]: 30_000,
|
|
286
|
-
};
|
|
287
|
-
/** What every other file command gets. The value the type-level branch used to hard-code. */
|
|
288
|
-
export const DEFAULT_FILE_COMMAND_DEADLINE = 30_000;
|
|
289
226
|
/**
|
|
290
227
|
* CALLER-side ceilings per command type: how long the asker waits for an answer.
|
|
291
228
|
*
|
|
@@ -321,30 +258,6 @@ export const SHELL_COMMAND_TIMEOUTS = {
|
|
|
321
258
|
[SlotShellCommand.Reinstall]: 920_000, // executor deadline (900s) + margin
|
|
322
259
|
[SlotShellCommand.Integrity]: 25_000, // executor deadline (15s) + margin
|
|
323
260
|
};
|
|
324
|
-
/**
|
|
325
|
-
* Per-COMMAND caller ceilings for git and for files.
|
|
326
|
-
*
|
|
327
|
-
* Each is its executor deadline plus the same 40 s margin: the caller's bound must outlast the
|
|
328
|
-
* executor's, or a command that failed cleanly inside its own deadline reaches the caller as a
|
|
329
|
-
* timeout and the real reason — the one the executor took the trouble to produce — is lost.
|
|
330
|
-
*/
|
|
331
|
-
export const GIT_COMMAND_TIMEOUTS = {
|
|
332
|
-
[SlotGitCommand.Clone]: 640_000,
|
|
333
|
-
};
|
|
334
|
-
export const FILE_COMMAND_TIMEOUTS = {
|
|
335
|
-
[SlotFileCommand.StatTree]: 160_000,
|
|
336
|
-
[SlotFileCommand.Relocate]: 340_000,
|
|
337
|
-
[SlotFileCommand.RemoveTree]: 160_000,
|
|
338
|
-
[SlotFileCommand.ReadHead]: 70_000,
|
|
339
|
-
};
|
|
340
|
-
/** The per-command caller bound for one command, or nothing where its type's default is right. */
|
|
341
|
-
const perCommandTimeout = (type, command) => {
|
|
342
|
-
switch (type) {
|
|
343
|
-
case SlotCommandType.Shell: return SHELL_COMMAND_TIMEOUTS[command];
|
|
344
|
-
case SlotCommandType.Git: return GIT_COMMAND_TIMEOUTS[command];
|
|
345
|
-
default: return FILE_COMMAND_TIMEOUTS[command];
|
|
346
|
-
}
|
|
347
|
-
};
|
|
348
261
|
/**
|
|
349
262
|
* Resolve the caller-side bound for one command.
|
|
350
263
|
*
|
|
@@ -353,24 +266,11 @@ const perCommandTimeout = (type, command) => {
|
|
|
353
266
|
* added to stop.
|
|
354
267
|
*/
|
|
355
268
|
export const commandTimeout = (type, command, override) => override
|
|
356
|
-
??
|
|
269
|
+
?? (type === SlotCommandType.Shell ? SHELL_COMMAND_TIMEOUTS[command] : undefined)
|
|
357
270
|
?? COMMAND_TIMEOUTS[type]
|
|
358
271
|
?? DEFAULT_COMMAND_TIMEOUT;
|
|
359
|
-
/**
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
* bound of a `git status` — the same shape as the shell table above, and added for the same
|
|
364
|
-
* reason.
|
|
365
|
-
*/
|
|
366
|
-
export const commandDeadline = (type, command) => {
|
|
367
|
-
switch (type) {
|
|
368
|
-
case SlotCommandType.Shell:
|
|
369
|
-
return COMMAND_DEADLINES[command] ?? DEFAULT_COMMAND_DEADLINE;
|
|
370
|
-
case SlotCommandType.Git:
|
|
371
|
-
return GIT_COMMAND_DEADLINES[command] ?? DEFAULT_GIT_COMMAND_DEADLINE;
|
|
372
|
-
default:
|
|
373
|
-
return FILE_COMMAND_DEADLINES[command] ?? DEFAULT_FILE_COMMAND_DEADLINE;
|
|
374
|
-
}
|
|
375
|
-
};
|
|
272
|
+
/** Resolve the executor-side deadline for one command. */
|
|
273
|
+
export const commandDeadline = (type, command) => type === SlotCommandType.Shell
|
|
274
|
+
? COMMAND_DEADLINES[command] ?? DEFAULT_COMMAND_DEADLINE
|
|
275
|
+
: type === SlotCommandType.Git ? 60_000 : 30_000;
|
|
376
276
|
//# sourceMappingURL=consts.js.map
|
package/build/slot/consts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/slot/consts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,YAYX;AAZD,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AG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAA"}
|
package/build/slot/schemas.d.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import type { JSONSchemaType } from 'ajv';
|
|
2
|
-
import type { SlotCommandPayload
|
|
2
|
+
import type { SlotCommandPayload } from './types.js';
|
|
3
3
|
export declare const SlotCommandPayloadSchema: JSONSchemaType<SlotCommandPayload>;
|
|
4
|
-
/**
|
|
5
|
-
* The clone command's arguments, as a signed body carries them.
|
|
6
|
-
*
|
|
7
|
-
* `token` is declared because it is SENT — a body field the schema does not declare is stripped
|
|
8
|
-
* by validation and then verified against a signature the sender made over the whole thing, which
|
|
9
|
-
* the guard reports as a 401 rather than as the validation gap it is.
|
|
10
|
-
*/
|
|
11
|
-
export declare const SlotGitCloneArgsSchema: JSONSchemaType<SlotGitCloneArgs>;
|
|
12
4
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/slot/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAEzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/slot/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAEzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD,eAAO,MAAM,wBAAwB,EAsBhC,cAAc,CAAC,kBAAkB,CAAC,CAAA"}
|
package/build/slot/schemas.js
CHANGED
|
@@ -22,22 +22,4 @@ export const SlotCommandPayloadSchema = {
|
|
|
22
22
|
required: ['type', 'command'],
|
|
23
23
|
additionalProperties: false
|
|
24
24
|
};
|
|
25
|
-
/**
|
|
26
|
-
* The clone command's arguments, as a signed body carries them.
|
|
27
|
-
*
|
|
28
|
-
* `token` is declared because it is SENT — a body field the schema does not declare is stripped
|
|
29
|
-
* by validation and then verified against a signature the sender made over the whole thing, which
|
|
30
|
-
* the guard reports as a 401 rather than as the validation gap it is.
|
|
31
|
-
*/
|
|
32
|
-
export const SlotGitCloneArgsSchema = {
|
|
33
|
-
type: 'object',
|
|
34
|
-
properties: {
|
|
35
|
-
remoteUrl: { type: 'string', minLength: 1, maxLength: 2048 },
|
|
36
|
-
branch: { type: 'string', maxLength: 256, nullable: true },
|
|
37
|
-
depth: { type: 'number', minimum: 0, nullable: true },
|
|
38
|
-
token: { type: 'string', maxLength: 4096, nullable: true },
|
|
39
|
-
},
|
|
40
|
-
required: ['remoteUrl'],
|
|
41
|
-
additionalProperties: false,
|
|
42
|
-
};
|
|
43
25
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/slot/schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAGhG,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC;SACrC;QACD,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE;gBACxD,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE;gBACzD,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE;aACxD;SACF;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,oBAAoB,EAAE,IAAI;SAC3B;KACF;IACD,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;IAC7B,oBAAoB,EAAE,KAAK;CACU,CAAA
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/slot/schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAGhG,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC;SACrC;QACD,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE;gBACxD,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE;gBACzD,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE;aACxD;SACF;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,oBAAoB,EAAE,IAAI;SAC3B;KACF;IACD,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;IAC7B,oBAAoB,EAAE,KAAK;CACU,CAAA"}
|
package/build/slot/types.d.ts
CHANGED
|
@@ -66,77 +66,6 @@ export interface SlotGitCommitResult {
|
|
|
66
66
|
export interface SlotGitLogResult {
|
|
67
67
|
commits: SlotGitCommitInfo[];
|
|
68
68
|
}
|
|
69
|
-
/**
|
|
70
|
-
* Bring a remote repository onto the volume.
|
|
71
|
-
*
|
|
72
|
-
* `token` is a per-invocation credential and never reaches the tree: the executor passes it
|
|
73
|
-
* through the process environment for the one fetch, exactly as push and pull already do, so it
|
|
74
|
-
* appears in no `.git/config`, no remote URL and no argv anything can observe.
|
|
75
|
-
*/
|
|
76
|
-
export interface SlotGitCloneArgs {
|
|
77
|
-
remoteUrl: string;
|
|
78
|
-
/** The branch to check out. Absent means whatever the remote calls its default. */
|
|
79
|
-
branch?: string;
|
|
80
|
-
/** Fetch depth; 0 means the whole history. Defaults to a shallow fetch. */
|
|
81
|
-
depth?: number;
|
|
82
|
-
token?: string;
|
|
83
|
-
}
|
|
84
|
-
export interface SlotGitCloneResult {
|
|
85
|
-
cloned: boolean;
|
|
86
|
-
/** The branch actually checked out — the resolved default, when none was asked for. */
|
|
87
|
-
branch: string;
|
|
88
|
-
head: SlotGitCommitInfo | null;
|
|
89
|
-
/** Executor diagnostics, when it has any worth reporting. */
|
|
90
|
-
result?: string;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* One entry of a {@link SlotFileCommand.StatTree} listing.
|
|
94
|
-
*
|
|
95
|
-
* The shape both a publisher and a connector answer with, so a census walks a pod's volume and a
|
|
96
|
-
* developer's own directory through one contract. `binary` is the executor's own verdict — the
|
|
97
|
-
* caller has not read the file and cannot form one.
|
|
98
|
-
*/
|
|
99
|
-
export interface FileStat {
|
|
100
|
-
path: string;
|
|
101
|
-
bytes: number;
|
|
102
|
-
binary: boolean;
|
|
103
|
-
modifiedAt?: string;
|
|
104
|
-
}
|
|
105
|
-
export interface StatTreeArgs {
|
|
106
|
-
/** Project-relative directory to walk. Absent means the whole project. */
|
|
107
|
-
dir?: string;
|
|
108
|
-
/** Entries to return before the answer reports itself truncated. */
|
|
109
|
-
limit?: number;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* `total` is what the walk SAW, `entries` what it returned.
|
|
113
|
-
*
|
|
114
|
-
* The two differ on a truncated walk, and the difference is what tells a caller its picture of the
|
|
115
|
-
* tree is partial — a bounded listing that reported only what it returned would be indistinguish-
|
|
116
|
-
* able from a small repository.
|
|
117
|
-
*/
|
|
118
|
-
export interface StatTreeResult {
|
|
119
|
-
entries: FileStat[];
|
|
120
|
-
truncated: boolean;
|
|
121
|
-
total: number;
|
|
122
|
-
}
|
|
123
|
-
export interface ReadHeadArgs {
|
|
124
|
-
path: string;
|
|
125
|
-
bytes: number;
|
|
126
|
-
}
|
|
127
|
-
/** Move everything in the project root under `dir`, leaving the named entries where they are. */
|
|
128
|
-
export interface RelocateArgs {
|
|
129
|
-
dir: string;
|
|
130
|
-
/** Root-relative names that stay put — the slot's own metadata and markers. */
|
|
131
|
-
keep?: string[];
|
|
132
|
-
}
|
|
133
|
-
export interface RelocateResult {
|
|
134
|
-
moved: number;
|
|
135
|
-
kept: string[];
|
|
136
|
-
}
|
|
137
|
-
export interface RemoveTreeArgs {
|
|
138
|
-
dir: string;
|
|
139
|
-
}
|
|
140
69
|
/** Arguments a shell command may carry. */
|
|
141
70
|
export interface SlotShellArgs {
|
|
142
71
|
subproject?: SubProject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/slot/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAEjH,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,gBAAgB,GAAG,cAAc,CAAA;AAE7E,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,eAAe,CAAA;IACrB,OAAO,EAAE,WAAW,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC3B;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,qFAAqF;IACrF,OAAO,CAAC,EAAE,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,CAAA;IACpB,KAAK,EAAE,iBAAiB,EAAE,CAAA;IAC1B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAA;CACjC;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,iBAAiB,EAAE,CAAA;CAC7B;AAED,2CAA2C;AAC3C,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,0FAA0F;IAC1F,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/viable-common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"description": "Runtime-free contracts of the OwlMeans Viable platform — the analysis, design and metadata shapes of a generated project, its target-shape manifest, the slot command vocabulary
|
|
5
|
+
"description": "Runtime-free contracts of the OwlMeans Viable platform — the analysis, design and metadata shapes of a generated project, its target-shape manifest, the slot command vocabulary and the connector protocol.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc -b",
|
|
@@ -35,13 +35,6 @@
|
|
|
35
35
|
"module": "./build/connect/index.js",
|
|
36
36
|
"types": "./build/connect/index.d.ts"
|
|
37
37
|
},
|
|
38
|
-
"./convert": {
|
|
39
|
-
"import": "./build/convert/index.js",
|
|
40
|
-
"require": "./build/convert/index.js",
|
|
41
|
-
"default": "./build/convert/index.js",
|
|
42
|
-
"module": "./build/convert/index.js",
|
|
43
|
-
"types": "./build/convert/index.d.ts"
|
|
44
|
-
},
|
|
45
38
|
"./integrity": {
|
|
46
39
|
"import": "./build/integrity/index.js",
|
|
47
40
|
"require": "./build/integrity/index.js",
|
|
@@ -54,16 +47,15 @@
|
|
|
54
47
|
"@langchain/core": "^1.2.9",
|
|
55
48
|
"@owlmeans/dep-config": "workspace:*",
|
|
56
49
|
"ajv": "^8.17.1",
|
|
57
|
-
"ajv-formats": "^3.0.1",
|
|
58
50
|
"nodemon": "^3.1.14",
|
|
59
51
|
"typescript": "^7.0.2"
|
|
60
52
|
},
|
|
61
53
|
"dependencies": {
|
|
62
|
-
"@owlmeans/agent-common": "^0.1.18-rc.
|
|
63
|
-
"@owlmeans/entrypoint": "^0.1.18-rc.
|
|
64
|
-
"@owlmeans/error": "^0.1.18-rc.
|
|
65
|
-
"@owlmeans/llm-common": "^0.1.18-rc.
|
|
66
|
-
"@owlmeans/route": "^0.1.18-rc.
|
|
54
|
+
"@owlmeans/agent-common": "^0.1.18-rc.19",
|
|
55
|
+
"@owlmeans/entrypoint": "^0.1.18-rc.14",
|
|
56
|
+
"@owlmeans/error": "^0.1.18-rc.11",
|
|
57
|
+
"@owlmeans/llm-common": "^0.1.18-rc.15",
|
|
58
|
+
"@owlmeans/route": "^0.1.18-rc.12"
|
|
67
59
|
},
|
|
68
60
|
"publishConfig": {
|
|
69
61
|
"access": "public"
|
package/src/areas/consts.ts
CHANGED
|
@@ -63,7 +63,7 @@ export const ADMIN_PERMISSION = 'project--admin'
|
|
|
63
63
|
* The back office's marker permission.
|
|
64
64
|
*
|
|
65
65
|
* The operator area is where an organization's own staff work, and until this existed it was
|
|
66
|
-
* declared `
|
|
66
|
+
* declared `{ guards: DEFAULT_GUARD }` alone — any signed-in person, which for a generated application
|
|
67
67
|
* means any visitor who typed an email address. The per-screen gates story development adds narrow
|
|
68
68
|
* particular screens; they cannot narrow the area, and a project with nothing developed yet has
|
|
69
69
|
* none of them at all, so the whole back office stood open by construction.
|
package/src/connect/consts.ts
CHANGED
|
@@ -67,20 +67,8 @@ export enum ConnectExecutor {
|
|
|
67
67
|
Files = 'files',
|
|
68
68
|
Shell = 'shell',
|
|
69
69
|
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
|
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
|
-
Human = 'human',
|
|
84
72
|
}
|
|
85
73
|
|
|
86
74
|
/** What one operation asks a connector to do. */
|
|
@@ -91,14 +79,6 @@ export enum ConnectOpKind {
|
|
|
91
79
|
ModelTask = 'model-task',
|
|
92
80
|
/** Write the target's configuration (its `.env` files) and report what services are reachable. */
|
|
93
81
|
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
|
-
Inquiry = 'inquiry',
|
|
102
82
|
}
|
|
103
83
|
|
|
104
84
|
/** How a connector is receiving operations. */
|
|
@@ -217,18 +197,6 @@ export enum ConnectJobKind {
|
|
|
217
197
|
StoryDevelop = 'story-develop',
|
|
218
198
|
FreeFlight = 'free-flight',
|
|
219
199
|
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
|
-
ConvertIntake = 'convert-intake',
|
|
228
|
-
ConvertAnalysis = 'convert-analysis',
|
|
229
|
-
ConvertExtraction = 'convert-extraction',
|
|
230
|
-
ConvertImplementation = 'convert-implementation',
|
|
231
|
-
ConvertPurge = 'convert-purge',
|
|
232
200
|
}
|
|
233
201
|
|
|
234
202
|
export enum ConnectJobStatus {
|
|
@@ -248,50 +216,8 @@ export enum ConnectJobBlock {
|
|
|
248
216
|
LocalOp = 'local-op',
|
|
249
217
|
/** The local target has no database configured and the run needs one. */
|
|
250
218
|
Env = 'env',
|
|
251
|
-
/** A question is waiting for a person and nobody has answered it. */
|
|
252
|
-
Question = 'question',
|
|
253
219
|
}
|
|
254
220
|
|
|
255
|
-
/**
|
|
256
|
-
* The shapes a question can take on the wire.
|
|
257
|
-
*
|
|
258
|
-
* Mirrors `InquiryKind` in `@owlmeans/llm-common` value for value, and is deliberately a SEPARATE
|
|
259
|
-
* name rather than an import: the connect module is the wire contract and owns its own vocabulary
|
|
260
|
-
* — the same reason `ModelTask` mirrors `DelegatedTask` — which also keeps `manager-api`, which
|
|
261
|
-
* does not depend on the model runtime, free of `@owlmeans/llm-common`. Values are byte-identical,
|
|
262
|
-
* so the platform's mapper is a widening rather than a translation table, and a test pins that.
|
|
263
|
-
*/
|
|
264
|
-
export enum ConnectInquiryKind {
|
|
265
|
-
/** Pick one of the offered options, or several when `multiple` is set. */
|
|
266
|
-
Choice = 'choice',
|
|
267
|
-
/** Free text. */
|
|
268
|
-
Text = 'text',
|
|
269
|
-
/** Yes or no. */
|
|
270
|
-
Confirm = 'confirm',
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* How long the platform waits for a person to answer one question.
|
|
275
|
-
*
|
|
276
|
-
* The same forty-five minutes a model task gets, and for the same reason: the bound exists so a
|
|
277
|
-
* parent that has gone away eventually fails the step rather than holding a project lock forever,
|
|
278
|
-
* not to pace somebody who is thinking.
|
|
279
|
-
*/
|
|
280
|
-
export const CONNECT_INQUIRY_TIMEOUT_MS = 2_700_000
|
|
281
|
-
|
|
282
|
-
/** Options one choice question may offer. Beyond this it is a text question with a hint. */
|
|
283
|
-
export const CONNECT_INQUIRY_MAX_OPTIONS = 12
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* The ceiling on an answer's text.
|
|
287
|
-
*
|
|
288
|
-
* ONE ceiling for the whole stack: the twin is `DEFAULT_INQUIRY_ANSWER_CHARS` in
|
|
289
|
-
* `@owlmeans/llm-common`, and the two must stay equal. Two ceilings means the layer with the
|
|
290
|
-
* larger one truncates silently at the smaller, and the caller records an assumption about an
|
|
291
|
-
* answer the person actually gave.
|
|
292
|
-
*/
|
|
293
|
-
export const CONNECT_INQUIRY_MAX_TEXT = 2_000
|
|
294
|
-
|
|
295
221
|
/**
|
|
296
222
|
* How long a session survives without a sign of life.
|
|
297
223
|
*
|
|
@@ -369,7 +295,6 @@ export const CONNECT_EVENT_SESSION = 'connect:session'
|
|
|
369
295
|
export const CONNECT_OP_PUBSUB = 'connect-op-pubsub'
|
|
370
296
|
export const CONNECT_RESULT_PUBSUB = 'connect-result-pubsub'
|
|
371
297
|
export const CONNECT_OP_STORE = 'connect-op-store'
|
|
372
|
-
export const CONNECT_RESULT_STORE = 'connect-result-store'
|
|
373
298
|
export const CONNECT_SESSION_PUBSUB = 'connect-session-pubsub'
|
|
374
299
|
|
|
375
300
|
/** The backend resource alias for session records. */
|
|
@@ -381,7 +306,7 @@ export const RES_CONNECT_SESSION = 'connect-session'
|
|
|
381
306
|
* Owned here rather than by the platform because they ARE the contract: the SDK, the MCP host and
|
|
382
307
|
* the manager API all address the same aliases, and a client that had to be handed its own copy of
|
|
383
308
|
* the tree would be a second place for a name to drift. The platform spreads the declarations
|
|
384
|
-
* these produce into its own entrypoint list and
|
|
309
|
+
* these produce into its own entrypoint list and binds handlers onto them.
|
|
385
310
|
*/
|
|
386
311
|
export const connect = Object.freeze({
|
|
387
312
|
base: 'viable:manager-api:connect:base',
|
|
@@ -408,22 +333,8 @@ export const connect = Object.freeze({
|
|
|
408
333
|
modify: 'viable:manager-api:connect:project:modify',
|
|
409
334
|
settings: 'viable:manager-api:connect:project:settings',
|
|
410
335
|
llm: 'viable:manager-api:connect:project:llm',
|
|
411
|
-
/** The per-project converter inference mode. Separate from `llm`: it is not a paid capability. */
|
|
412
|
-
converterLlm: 'viable:manager-api:connect:project:converter-llm',
|
|
413
336
|
job: 'viable:manager-api:connect:project:job',
|
|
414
337
|
}),
|
|
415
|
-
convert: Object.freeze({
|
|
416
|
-
create: 'viable:manager-api:connect:convert:create',
|
|
417
|
-
check: 'viable:manager-api:connect:convert:check',
|
|
418
|
-
start: 'viable:manager-api:connect:convert:start',
|
|
419
|
-
proceed: 'viable:manager-api:connect:convert:proceed',
|
|
420
|
-
cancel: 'viable:manager-api:connect:convert:cancel',
|
|
421
|
-
status: 'viable:manager-api:connect:convert:status',
|
|
422
|
-
purge: 'viable:manager-api:connect:convert:purge',
|
|
423
|
-
}),
|
|
424
|
-
inquiry: Object.freeze({
|
|
425
|
-
answer: 'viable:manager-api:connect:inquiry:answer',
|
|
426
|
-
}),
|
|
427
338
|
story: Object.freeze({
|
|
428
339
|
list: 'viable:manager-api:connect:story:list',
|
|
429
340
|
get: 'viable:manager-api:connect:story:get',
|
|
@@ -432,9 +343,6 @@ export const connect = Object.freeze({
|
|
|
432
343
|
delete: 'viable:manager-api:connect:story:delete',
|
|
433
344
|
develop: 'viable:manager-api:connect:story:develop',
|
|
434
345
|
}),
|
|
435
|
-
files: Object.freeze({
|
|
436
|
-
list: 'viable:manager-api:connect:files:list',
|
|
437
|
-
}),
|
|
438
346
|
pipeline: Object.freeze({
|
|
439
347
|
state: 'viable:manager-api:connect:pipeline:state',
|
|
440
348
|
resume: 'viable:manager-api:connect:pipeline:resume',
|