@owlmeans/viable-common 0.0.6 → 0.0.8

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.
Files changed (86) hide show
  1. package/README.md +1 -68
  2. package/build/areas/consts.d.ts +1 -1
  3. package/build/areas/consts.js +1 -1
  4. package/build/connect/consts.d.ts +6 -94
  5. package/build/connect/consts.d.ts.map +1 -1
  6. package/build/connect/consts.js +2 -91
  7. package/build/connect/consts.js.map +1 -1
  8. package/build/connect/entrypoints.d.ts +3 -3
  9. package/build/connect/entrypoints.d.ts.map +1 -1
  10. package/build/connect/entrypoints.js +54 -95
  11. package/build/connect/entrypoints.js.map +1 -1
  12. package/build/connect/ops.d.ts +2 -46
  13. package/build/connect/ops.d.ts.map +1 -1
  14. package/build/connect/references.d.ts +63 -117
  15. package/build/connect/references.d.ts.map +1 -1
  16. package/build/connect/references.js +0 -16
  17. package/build/connect/references.js.map +1 -1
  18. package/build/connect/schemas.d.ts +2 -17
  19. package/build/connect/schemas.d.ts.map +1 -1
  20. package/build/connect/schemas.js +7 -91
  21. package/build/connect/schemas.js.map +1 -1
  22. package/build/connect/types.d.ts +1 -125
  23. package/build/connect/types.d.ts.map +1 -1
  24. package/build/dev/types.d.ts +3 -2
  25. package/build/dev/types.d.ts.map +1 -1
  26. package/build/index.d.ts +0 -1
  27. package/build/index.d.ts.map +1 -1
  28. package/build/index.js +0 -1
  29. package/build/index.js.map +1 -1
  30. package/build/skills/catalogue.d.ts.map +1 -1
  31. package/build/skills/catalogue.js +109 -103
  32. package/build/skills/catalogue.js.map +1 -1
  33. package/build/slot/consts.d.ts +2 -73
  34. package/build/slot/consts.d.ts.map +1 -1
  35. package/build/slot/consts.js +5 -105
  36. package/build/slot/consts.js.map +1 -1
  37. package/build/slot/schemas.d.ts +1 -9
  38. package/build/slot/schemas.d.ts.map +1 -1
  39. package/build/slot/schemas.js +0 -18
  40. package/build/slot/schemas.js.map +1 -1
  41. package/build/slot/types.d.ts +0 -71
  42. package/build/slot/types.d.ts.map +1 -1
  43. package/package.json +7 -15
  44. package/src/areas/consts.ts +1 -1
  45. package/src/connect/consts.ts +2 -94
  46. package/src/connect/entrypoints.ts +69 -139
  47. package/src/connect/ops.ts +2 -50
  48. package/src/connect/references.ts +56 -32
  49. package/src/connect/schemas.ts +13 -102
  50. package/src/connect/types.ts +2 -130
  51. package/src/dev/types.ts +3 -2
  52. package/src/index.ts +0 -1
  53. package/src/skills/catalogue.ts +109 -103
  54. package/src/slot/consts.ts +6 -112
  55. package/src/slot/schemas.ts +1 -20
  56. package/src/slot/types.ts +0 -80
  57. package/agent-meta/manifest.json +0 -16
  58. package/agent-meta/skills/viable-common/SKILL.md +0 -179
  59. package/build/convert/consts.d.ts +0 -539
  60. package/build/convert/consts.d.ts.map +0 -1
  61. package/build/convert/consts.js +0 -630
  62. package/build/convert/consts.js.map +0 -1
  63. package/build/convert/helpers.d.ts +0 -91
  64. package/build/convert/helpers.d.ts.map +0 -1
  65. package/build/convert/helpers.js +0 -301
  66. package/build/convert/helpers.js.map +0 -1
  67. package/build/convert/index.d.ts +0 -11
  68. package/build/convert/index.d.ts.map +0 -1
  69. package/build/convert/index.js +0 -4
  70. package/build/convert/index.js.map +0 -1
  71. package/build/convert/schemas.d.ts +0 -62
  72. package/build/convert/schemas.d.ts.map +0 -1
  73. package/build/convert/schemas.js +0 -626
  74. package/build/convert/schemas.js.map +0 -1
  75. package/build/convert/types.d.ts +0 -683
  76. package/build/convert/types.d.ts.map +0 -1
  77. package/build/convert/types.js +0 -2
  78. package/build/convert/types.js.map +0 -1
  79. package/src/convert/consts.ts +0 -672
  80. package/src/convert/helpers.ts +0 -340
  81. package/src/convert/index.ts +0 -10
  82. package/src/convert/schemas.ts +0 -663
  83. package/src/convert/types.ts +0 -741
  84. package/tests/connect-convert.spec.ts +0 -161
  85. package/tests/convert.spec.ts +0 -318
  86. /package/tests/{design.spec.ts → design.test.ts} +0 -0
@@ -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
- ?? perCommandTimeout(type, command)
269
+ ?? (type === SlotCommandType.Shell ? SHELL_COMMAND_TIMEOUTS[command] : undefined)
357
270
  ?? COMMAND_TIMEOUTS[type]
358
271
  ?? DEFAULT_COMMAND_TIMEOUT;
359
- /**
360
- * Resolve the executor-side deadline for one command.
361
- *
362
- * Per-command first, per-type second. It was per-type only, which is how a clone inherited the
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
@@ -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,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,yCAAyB,CAAA;IACzB;;;;;;;OAOG;IACH,+BAAe,CAAA;AACjB,CAAC,EAZW,YAAY,KAAZ,YAAY,QAYvB;AAED,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,kCAAe,CAAA;IACf,8BAAW,CAAA;AACb,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AAED,MAAM,CAAN,IAAY,cAkBX;AAlBD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB;;;;;;OAMG;IACH,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,6BAAW,CAAA;IACX,qCAAmB,CAAA;IACnB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,+BAAa,CAAA;IACb,+BAAa,CAAA;AACf,CAAC,EAlBW,cAAc,KAAd,cAAc,QAkBzB;AAED,MAAM,CAAN,IAAY,eA2CX;AA3CD,WAAY,eAAe;IACzB,gDAA6B,CAAA;IAC7B,kDAA+B,CAAA;IAC/B,0DAAuC,CAAA;IACvC,kDAA+B,CAAA;IAC/B,0DAAuC,CAAA;IACvC,wCAAqB,CAAA;IACrB,4CAAyB,CAAA;IACzB,4DAAyC,CAAA;IACzC,8CAA2B,CAAA;IAC3B,0CAAuB,CAAA;IACvB,8CAA2B,CAAA;IAC3B,4CAAyB,CAAA;IACzB,gEAA6C,CA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otCommandPayload } 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,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAEtE,eAAO,MAAM,wBAAwB,EAsBhC,cAAc,CAAC,kBAAkB,CAAC,CAAA;AAEvC;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAUnB,cAAc,CAAC,gBAAgB,CAAC,CAAA"}
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"}
@@ -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;AAEvC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE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C;IAC7B,oBAAoB,EAAE,KAAK;CACU,CAAA"}
@@ -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,OAAO,CAAA;IACjB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,yEAAyE;IACzE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,yEAAyE;IACzE,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE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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.6",
3
+ "version": "0.0.8",
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, the connector protocol and the conversion 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.18",
63
- "@owlmeans/entrypoint": "^0.1.18-rc.13",
64
- "@owlmeans/error": "^0.1.18-rc.10",
65
- "@owlmeans/llm-common": "^0.1.18-rc.14",
66
- "@owlmeans/route": "^0.1.18-rc.11"
54
+ "@owlmeans/agent-common": "^0.1.18-rc.20",
55
+ "@owlmeans/entrypoint": "^0.1.18-rc.15",
56
+ "@owlmeans/error": "^0.1.18-rc.12",
57
+ "@owlmeans/llm-common": "^0.1.18-rc.16",
58
+ "@owlmeans/route": "^0.1.18-rc.13"
67
59
  },
68
60
  "publishConfig": {
69
61
  "access": "public"
@@ -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 `guard(DEFAULT_GUARD)` alone — any signed-in person, which for a generated application
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.
@@ -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 elevates handlers onto them.
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',