@owlmeans/viable-common 0.0.39 → 0.0.40
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 +4 -4
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/agent-presentation/SKILL.md +1 -1
- package/agent-meta/skills/viable-common/SKILL.md +40 -19
- package/build/areas/index.d.ts +1 -0
- package/build/areas/index.d.ts.map +1 -1
- package/build/areas/index.js +1 -0
- package/build/areas/index.js.map +1 -1
- package/build/areas/tenancy.d.ts +55 -0
- package/build/areas/tenancy.d.ts.map +1 -0
- package/build/areas/tenancy.js +33 -0
- package/build/areas/tenancy.js.map +1 -0
- package/build/blueprint/types.d.ts +19 -1
- package/build/blueprint/types.d.ts.map +1 -1
- package/build/blueprint/types.js.map +1 -1
- package/build/connect/consts.d.ts +3 -15
- package/build/connect/consts.d.ts.map +1 -1
- package/build/connect/consts.js +3 -15
- package/build/connect/consts.js.map +1 -1
- package/build/connect/entrypoints.d.ts +33 -69
- package/build/connect/entrypoints.d.ts.map +1 -1
- package/build/connect/entrypoints.js +5 -25
- package/build/connect/entrypoints.js.map +1 -1
- package/build/connect/references.d.ts +1 -31
- package/build/connect/references.d.ts.map +1 -1
- package/build/connect/references.js +0 -7
- package/build/connect/references.js.map +1 -1
- package/build/connect/types.d.ts +1 -25
- package/build/connect/types.d.ts.map +1 -1
- package/build/dev/consts.d.ts +15 -0
- package/build/dev/consts.d.ts.map +1 -1
- package/build/dev/consts.js +16 -0
- package/build/dev/consts.js.map +1 -1
- package/build/dev/schemas.d.ts +7 -0
- package/build/dev/schemas.d.ts.map +1 -1
- package/build/dev/schemas.js +9 -1
- package/build/dev/schemas.js.map +1 -1
- package/build/dev/types.d.ts +15 -1
- package/build/dev/types.d.ts.map +1 -1
- package/build/planning/schemas.d.ts.map +1 -1
- package/build/planning/schemas.js +25 -0
- package/build/planning/schemas.js.map +1 -1
- package/build/planning/types.d.ts +9 -0
- package/build/planning/types.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/areas/index.ts +1 -0
- package/src/areas/tenancy.ts +69 -0
- package/src/blueprint/types.ts +19 -1
- package/src/connect/consts.ts +3 -16
- package/src/connect/entrypoints.ts +10 -60
- package/src/connect/references.ts +4 -26
- package/src/connect/types.ts +1 -22
- package/src/dev/consts.ts +16 -0
- package/src/dev/schemas.ts +13 -1
- package/src/dev/types.ts +15 -1
- package/src/planning/schemas.ts +25 -0
- package/src/planning/types.ts +9 -0
- package/tests/access-schema.spec.ts +37 -0
- package/tests/connect-convert.spec.ts +5 -11
- package/tests/connect-entrypoints.spec.ts +33 -14
- package/tests/planning.spec.ts +26 -0
- package/tests/tenancy.spec.ts +48 -0
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Runtime-free contracts of the OwlMeans Viable platform.
|
|
4
4
|
|
|
5
5
|
Viable turns a description into a running full-stack application. Four runtimes have to agree
|
|
6
|
-
about every name involved — the
|
|
6
|
+
about every name involved — the platform API services, the agent, the publisher that runs inside a project
|
|
7
7
|
slot, and the connector SDK on a developer's machine — so each of those names is declared here
|
|
8
8
|
once and imported by all of them. There is no runtime in this package: no `@langchain/*`, no
|
|
9
9
|
filesystem, no inference SDK. It is safe to import from a browser bundle.
|
|
@@ -21,7 +21,7 @@ filesystem, no inference SDK. It is safe to import from a browser bundle.
|
|
|
21
21
|
## Installation
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
bun add @owlmeans/viable-common@^0.0.
|
|
24
|
+
bun add @owlmeans/viable-common@^0.0.40
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## Rules worth knowing before you change something
|
|
@@ -39,7 +39,7 @@ means "inherit" has no other spelling. `tests/convert.spec.ts` walks every expor
|
|
|
39
39
|
both faults, and for draft-04 tuple `items`.
|
|
40
40
|
|
|
41
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.
|
|
42
|
+
`npx -y @owlmeans/viable-mcp@^0.1.18-rc.37` and talks to a separately deployed platform, so an executor kind it
|
|
43
43
|
sends must remain an unused capability on an older platform rather than a refused session.
|
|
44
44
|
|
|
45
45
|
**A ceiling exists once.** The inquiry answer cap here equals `DEFAULT_INQUIRY_ANSWER_CHARS` in
|
|
@@ -59,7 +59,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
|
|
|
59
59
|
your project's skill store (`.agents/skills/`):
|
|
60
60
|
|
|
61
61
|
```sh
|
|
62
|
-
npx @owlmeans/agent-skills@^0.1.18-rc.
|
|
62
|
+
npx @owlmeans/agent-skills@^0.1.18-rc.45
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
The embedded files are version-matched to this package release. Do not edit them
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"package": "@owlmeans/viable-common",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"generatedAt": "2026-
|
|
4
|
+
"version": "0.0.40",
|
|
5
|
+
"generatedAt": "2026-10-01T23:27:48.744Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -6,7 +6,7 @@ description: Shared, runtime-free taxonomy for presenting OwlMeans Viable agent
|
|
|
6
6
|
|
|
7
7
|
# Agent output presentation
|
|
8
8
|
|
|
9
|
-
**Install:** `"@owlmeans/viable-common": "^0.0.
|
|
9
|
+
**Install:** `"@owlmeans/viable-common": "^0.0.40"` in `dependencies`
|
|
10
10
|
|
|
11
11
|
`@owlmeans/viable-common`'s `agent/presentation.ts` owns the browser-safe vocabulary for agent
|
|
12
12
|
output. Keep the server and every client on `classifyAgentMessage()`; consumers may refine a
|
|
@@ -8,7 +8,7 @@ user-invocable: false
|
|
|
8
8
|
# @owlmeans/viable-common
|
|
9
9
|
|
|
10
10
|
**Layer:** Cross-cutting domain (contracts only)
|
|
11
|
-
**Install:** `"@owlmeans/viable-common": "^0.0.
|
|
11
|
+
**Install:** `"@owlmeans/viable-common": "^0.0.40"` in `dependencies`
|
|
12
12
|
**Subpaths:** `.` · `./slot` · `./connect` · `./convert` · `./integrity` · `./intent`
|
|
13
13
|
**Runtime-free:** no `@langchain/*`, no filesystem, no Ajv at run time (a devDependency, for the
|
|
14
14
|
tests that compile the schemas). It depends on `@owlmeans/planning`, `@owlmeans/resource`,
|
|
@@ -17,8 +17,8 @@ tests that compile the schemas). It depends on `@owlmeans/planning`, `@owlmeans/
|
|
|
17
17
|
`@owlmeans/context`, and on nothing else.
|
|
18
18
|
|
|
19
19
|
Every name the OwlMeans Viable platform puts on a wire, on a volume or in a prompt is declared
|
|
20
|
-
here once, and the four runtimes that must agree about it — the
|
|
21
|
-
publisher/production runtime, and the connector SDK on somebody's laptop — all read the same
|
|
20
|
+
here once, and the four runtimes that must agree about it — the platform's API services, the
|
|
21
|
+
agent, the publisher/production runtime, and the connector SDK on somebody's laptop — all read the same
|
|
22
22
|
declaration. A vocabulary copied instead of imported is how one tree gets two totals, one
|
|
23
23
|
refusal two spellings, and one ceiling two values.
|
|
24
24
|
|
|
@@ -46,7 +46,7 @@ the `Blueprint` types and vocabulary that execution state and card fields name.
|
|
|
46
46
|
A Viable project, its user stories and the documents behind them are `@owlmeans/planning`
|
|
47
47
|
WORKCARDS. The planning packages own the record, the transition, the fold, the stores and the
|
|
48
48
|
protocol tree; this module owns what a Viable card IS — its type, its flow, its `fields`, its
|
|
49
|
-
slots, its code — and every runtime that writes one (the
|
|
49
|
+
slots, its code — and every runtime that writes one (the platform API services, the agent, the library, the
|
|
50
50
|
SDK) reads that declaration from here. A plugin registers `VIABLE_TYPE_SCHEMAS` and
|
|
51
51
|
`VIABLE_FLOW_SCHEMAS`; nothing redeclares a type or a flow locally.
|
|
52
52
|
|
|
@@ -189,8 +189,8 @@ second answer that can disagree with it.
|
|
|
189
189
|
### The write channel
|
|
190
190
|
|
|
191
191
|
`ViableChannel` (`web`, `connect`, `agent`, `pipeline`) is what a planning write carries on
|
|
192
|
-
`PlanningScope.channel` and records on `actor.channel`. It is never read from the wire: the
|
|
193
|
-
API
|
|
192
|
+
`PlanningScope.channel` and records on `actor.channel`. It is never read from the wire: the platform's
|
|
193
|
+
API services derive `connect` from an access-token request and `web` from everything else; the agent's own
|
|
194
194
|
writes are `agent` or `pipeline`. Three rules key on it, and `isUserChannel` is how they ask:
|
|
195
195
|
|
|
196
196
|
- the balance refusal — `ConnectOutOfCredits` for `connect`, `AgentOutOfTokens` otherwise;
|
|
@@ -263,7 +263,7 @@ code, never as `minItems`/`maxItems`. The descriptions are what the planning mod
|
|
|
263
263
|
state each field's purpose and bounds; `gate.target` is filled by code and described as such.
|
|
264
264
|
|
|
265
265
|
**A field that crosses a version skew carries no `enum`.** Users run
|
|
266
|
-
`npx -y @owlmeans/viable-mcp@^0.1.18-rc.
|
|
266
|
+
`npx -y @owlmeans/viable-mcp@^0.1.18-rc.37` (the moving prerelease tag) against a separately deployed
|
|
267
267
|
platform, so `ConnectCapabilitiesSchema.executors.items`
|
|
268
268
|
is a bare string: a newer executor kind must stay an unused capability on an older platform, never
|
|
269
269
|
a refused session. Apply the same reasoning to anything else a newer connector may send an older
|
|
@@ -272,15 +272,34 @@ deploy together.
|
|
|
272
272
|
|
|
273
273
|
## One immutable protocol tree, bound in each runtime
|
|
274
274
|
|
|
275
|
-
`connectProtocols(opts)` is the connector's whole immutable HTTP
|
|
276
|
-
|
|
275
|
+
`connectProtocols(opts)` is the connector's whole immutable HTTP tree — aliases, paths, methods,
|
|
276
|
+
contracts and protocol parents. The platform and the SDK bind their own local materializations
|
|
277
277
|
from those declarations, so a path or schema cannot differ across a server and client. Only what
|
|
278
|
-
belongs to the DEPLOYMENT is injected: the guard alias, ownership gate
|
|
279
|
-
|
|
278
|
+
belongs to the DEPLOYMENT is injected: the guard alias, the ownership gate and the paid local-LLM
|
|
279
|
+
gate (on `session.openDelegated` alone).
|
|
280
280
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
281
|
+
The tree holds exactly the routes a connector calls, under one base (`/connect` unless the `path`
|
|
282
|
+
option says otherwise), and `connect` (aliases) and `connectRef` (typed references) name the same
|
|
283
|
+
set:
|
|
284
|
+
|
|
285
|
+
| Branch | Routes |
|
|
286
|
+
|---|---|
|
|
287
|
+
| `session` | `open` POST `/session`, `openDelegated` POST `/session/delegated`, `close` POST `/session/:sessionId/close` |
|
|
288
|
+
| `op` | `pull` GET `/session/:sessionId/ops` (the long poll), `submit` POST `/session/:sessionId/ops/:opId` |
|
|
289
|
+
| `project` | `create` POST / `list` GET `/project`, `attach` POST `/project/attach`, `confirm`, `status`, `reinit`, `modify` under `/project/:id/…`, `branding.get` GET / `.save` POST `/project/:id/branding` |
|
|
290
|
+
| `story` | `status` GET `/project/:id/story/:storyId/status` |
|
|
291
|
+
| `files` | `list` GET `/project/:id/files` |
|
|
292
|
+
| `convert` | `create` POST `/convert`, `check` GET `/convert/:id/check`, `start`, `proceed`, `purge` POST `/convert/:id/…`, `status` GET `/convert/:id` |
|
|
293
|
+
| `inquiry` | `answer` POST `/project/:id/inquiry/:inquiryId` |
|
|
294
|
+
| `pipeline` | `state` GET `/pipeline/:id/:runId`, `resume` POST `/pipeline/:id/:runId/resume` |
|
|
295
|
+
|
|
296
|
+
There is no socket, capability view, session read or heartbeat, conversion cancel or project
|
|
297
|
+
inference-settings route: nothing a connector does calls one. A project's inference modes are the
|
|
298
|
+
browser's to set, through the platform's own API — `ConnectProjectSettings`,
|
|
299
|
+
`ConnectProjectLlmBody(Schema)` and `ConverterProjectLlmBody(Schema)` stay here as that API's
|
|
300
|
+
shapes. Adding a route means adding it here first (alias, declaration, `connectRef` entry), then
|
|
301
|
+
binding that named protocol in every runtime that serves or calls it. A route declared on one side
|
|
302
|
+
alone is a 404 nobody can explain from the failing end. Keep raw aliases private to declaration modules; consumers receive protocol objects, and a
|
|
284
303
|
dynamic adapter reads `.alias` only at its string-addressed boundary.
|
|
285
304
|
|
|
286
305
|
The connector tree has NO story routes. A story is a planning card, listed, created, edited,
|
|
@@ -309,7 +328,8 @@ vocabulary.
|
|
|
309
328
|
|
|
310
329
|
A prompt typed on the PUBLIC site (owlmeans.com, a static Astro app that cannot import the platform
|
|
311
330
|
repo) reaches the platform through this one subpath, which is why it lives here and not in viable:
|
|
312
|
-
the site, the
|
|
331
|
+
the site, the platform's API services (the stash and the pickup may be served by different ones)
|
|
332
|
+
and the manager web must agree on every address, schema and step.
|
|
313
333
|
|
|
314
334
|
- **Two guest routes and one screen, no guard, no gate, no service.** `makeIntentProtocols()` declares
|
|
315
335
|
`stash` (POST `/public/intent`, body `{ prompt 1..8192, consent: const true }` → `{ ref, expiresAt }`),
|
|
@@ -427,8 +447,8 @@ read back by the purge, and a path spelled at a call site is a file the purge le
|
|
|
427
447
|
## The inquiry vocabulary is a deliberate COPY, and the ceiling is not
|
|
428
448
|
|
|
429
449
|
`ConnectInquiryKind` / `InquiryPayload` / `InquiryAnswerPayload` mirror `@owlmeans/llm-common`'s
|
|
430
|
-
`Inquiry` family, renamed so both vocabularies can be imported into one file and so
|
|
431
|
-
which
|
|
450
|
+
`Inquiry` family, renamed so both vocabularies can be imported into one file and so the platform's API services,
|
|
451
|
+
which do not depend on the model runtime, stay free of it. Values are byte-identical, so the
|
|
432
452
|
platform's mapper is a widening rather than a translation table, and a test pins that — the same
|
|
433
453
|
arrangement `ModelTask` has with `DelegatedTask`.
|
|
434
454
|
|
|
@@ -495,8 +515,9 @@ refusals' type names surviving a marshal), `scaffold.spec.ts` (an old-shape and
|
|
|
495
515
|
both passing the schema and the `scaffold` slot, `null` optionals accepted, no `minItems`),
|
|
496
516
|
`blueprint.spec.ts` (`landingGatePreferenceOf` — the default for an absent layer or an unknown
|
|
497
517
|
value), `branding.spec.ts` (the build env and the metadata vocabulary),
|
|
498
|
-
`connect-entrypoints.spec.ts` (the tree's protocol count,
|
|
499
|
-
the
|
|
518
|
+
`connect-entrypoints.spec.ts` (the tree's protocol count, every route's method and path, no
|
|
519
|
+
socket, the alias table and `connectRef` naming the tree's routes, the paid gate on the delegated
|
|
520
|
+
session alone, no story route, the branding routes and their save body),
|
|
500
521
|
`convert.spec.ts` (the three structural walks over the barrel, the
|
|
501
522
|
conversion schemas compiling, a nullable enum accepting `null` under Ajv while still refusing an
|
|
502
523
|
unknown member, the census classifiers and the stage transitions), `connect-convert.spec.ts` (the
|
package/build/areas/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/areas/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,YAAY,CAAA;AAE/B,cAAc,aAAa,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/areas/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,YAAY,CAAA;AAE/B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
package/build/areas/index.js
CHANGED
package/build/areas/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/areas/index.ts"],"names":[],"mappings":"AAEA,cAAc,aAAa,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/areas/index.ts"],"names":[],"mappings":"AAEA,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { Blueprint } from '../blueprint/types.js';
|
|
2
|
+
import { ProjectArea } from './consts.js';
|
|
3
|
+
/**
|
|
4
|
+
* Whether a generated application splits its audiences into tenant ORGANIZATIONS.
|
|
5
|
+
*
|
|
6
|
+
* Two flags rather than one, because the two audiences split independently: one back office can
|
|
7
|
+
* serve end users who each belong to their own company (`users` only), every reseller can run its
|
|
8
|
+
* own staff over one shared public (`operators` only), and a B2B tool usually does both. An
|
|
9
|
+
* organization is an IAM-managed tenant — never a table the target keeps for itself.
|
|
10
|
+
*
|
|
11
|
+
* Both false is today's application: one organization, the project owner's, that every person acts in.
|
|
12
|
+
*/
|
|
13
|
+
export interface ProjectTenancy {
|
|
14
|
+
/** The staff of the back office are split into tenant organizations. */
|
|
15
|
+
operators: boolean;
|
|
16
|
+
/** The end users of the front office are distributed across tenant organizations. */
|
|
17
|
+
users: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A tenancy decision as the project card records it (`fields.tenancy`).
|
|
21
|
+
*
|
|
22
|
+
* The flags plus where they came from. `quotes` are the requester's OWN sentences, verbatim — the
|
|
23
|
+
* evidence a later reader (a person reviewing the board, a run asked to reconsider) checks the
|
|
24
|
+
* decision against, which a paraphrase would quietly replace with the model's reading of it.
|
|
25
|
+
* `by` says whether a model inferred it or the owner set it; `at` is when, an ISO timestamp.
|
|
26
|
+
*/
|
|
27
|
+
export interface ViableTenancyDecision extends ProjectTenancy {
|
|
28
|
+
quotes?: {
|
|
29
|
+
operators?: string;
|
|
30
|
+
users?: string;
|
|
31
|
+
};
|
|
32
|
+
by: 'model' | 'owner';
|
|
33
|
+
at: string;
|
|
34
|
+
}
|
|
35
|
+
/** The longest requester sentence a tenancy decision quotes — a card refuses a longer one. */
|
|
36
|
+
export declare const TENANCY_QUOTE_MAX = 1024;
|
|
37
|
+
/** A single-organization application — what every project is until a decision says otherwise. */
|
|
38
|
+
export declare const NO_TENANCY: ProjectTenancy;
|
|
39
|
+
/**
|
|
40
|
+
* The tenancy of a resolved blueprint.
|
|
41
|
+
*
|
|
42
|
+
* Total, like `landingGatePreferenceOf`: an absent layer, an absent key and a value this deploy
|
|
43
|
+
* cannot read all answer {@link NO_TENANCY}. Only a literal `true` turns a flag on, because a flag
|
|
44
|
+
* read as on by mistake splits a product's people into organizations nobody asked for, while one
|
|
45
|
+
* read as off leaves the application exactly as it was before tenancy existed.
|
|
46
|
+
*/
|
|
47
|
+
export declare const tenancyOf: (blueprint?: Pick<Blueprint, 'experience'> | null) => ProjectTenancy;
|
|
48
|
+
/**
|
|
49
|
+
* Whether an AREA's people act inside a tenant organization.
|
|
50
|
+
*
|
|
51
|
+
* Guest has no organization to act in, and admin is the project owner, who stands above every
|
|
52
|
+
* tenant rather than inside one — so both are never tenanted, whatever the flags say.
|
|
53
|
+
*/
|
|
54
|
+
export declare const tenantedArea: (area: ProjectArea, tenancy: ProjectTenancy) => boolean;
|
|
55
|
+
//# sourceMappingURL=tenancy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenancy.d.ts","sourceRoot":"","sources":["../../src/areas/tenancy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzC;;;;;;;;;GASG;AACH,MAAM,WAAW,cAAc;IAC7B,wEAAwE;IACxE,SAAS,EAAE,OAAO,CAAA;IAClB,qFAAqF;IACrF,KAAK,EAAE,OAAO,CAAA;CACf;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IAC3D,MAAM,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/C,EAAE,EAAE,OAAO,GAAG,OAAO,CAAA;IACrB,EAAE,EAAE,MAAM,CAAA;CACX;AAED,8FAA8F;AAC9F,eAAO,MAAM,iBAAiB,OAAO,CAAA;AAErC,iGAAiG;AACjG,eAAO,MAAM,UAAU,EAAE,cAAkE,CAAA;AAE3F;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,eAAgB,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAI,KAAG,cAM5E,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,SAAU,WAAW,WAAW,cAAc,KAAG,OAMzE,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ProjectArea } from './consts.js';
|
|
2
|
+
/** The longest requester sentence a tenancy decision quotes — a card refuses a longer one. */
|
|
3
|
+
export const TENANCY_QUOTE_MAX = 1024;
|
|
4
|
+
/** A single-organization application — what every project is until a decision says otherwise. */
|
|
5
|
+
export const NO_TENANCY = Object.freeze({ operators: false, users: false });
|
|
6
|
+
/**
|
|
7
|
+
* The tenancy of a resolved blueprint.
|
|
8
|
+
*
|
|
9
|
+
* Total, like `landingGatePreferenceOf`: an absent layer, an absent key and a value this deploy
|
|
10
|
+
* cannot read all answer {@link NO_TENANCY}. Only a literal `true` turns a flag on, because a flag
|
|
11
|
+
* read as on by mistake splits a product's people into organizations nobody asked for, while one
|
|
12
|
+
* read as off leaves the application exactly as it was before tenancy existed.
|
|
13
|
+
*/
|
|
14
|
+
export const tenancyOf = (blueprint) => {
|
|
15
|
+
const tenancy = blueprint?.experience?.tenancy;
|
|
16
|
+
const operators = tenancy?.operators === true;
|
|
17
|
+
const users = tenancy?.users === true;
|
|
18
|
+
return operators || users ? Object.freeze({ operators, users }) : NO_TENANCY;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Whether an AREA's people act inside a tenant organization.
|
|
22
|
+
*
|
|
23
|
+
* Guest has no organization to act in, and admin is the project owner, who stands above every
|
|
24
|
+
* tenant rather than inside one — so both are never tenanted, whatever the flags say.
|
|
25
|
+
*/
|
|
26
|
+
export const tenantedArea = (area, tenancy) => {
|
|
27
|
+
switch (area) {
|
|
28
|
+
case ProjectArea.User: return tenancy.users === true;
|
|
29
|
+
case ProjectArea.Operator: return tenancy.operators === true;
|
|
30
|
+
default: return false;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=tenancy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenancy.js","sourceRoot":"","sources":["../../src/areas/tenancy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAiCzC,8FAA8F;AAC9F,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,CAAA;AAErC,iGAAiG;AACjG,MAAM,CAAC,MAAM,UAAU,GAAmB,MAAM,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAA;AAE3F;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,SAAgD,EAAkB,EAAE;IAC5F,MAAM,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,CAAA;IAC9C,MAAM,SAAS,GAAG,OAAO,EAAE,SAAS,KAAK,IAAI,CAAA;IAC7C,MAAM,KAAK,GAAG,OAAO,EAAE,KAAK,KAAK,IAAI,CAAA;IAErC,OAAO,SAAS,IAAI,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAA;AAC9E,CAAC,CAAA;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAiB,EAAE,OAAuB,EAAW,EAAE;IAClF,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,WAAW,CAAC,IAAI,EAAE,OAAO,OAAO,CAAC,KAAK,KAAK,IAAI,CAAA;QACpD,KAAK,WAAW,CAAC,QAAQ,EAAE,OAAO,OAAO,CAAC,SAAS,KAAK,IAAI,CAAA;QAC5D,SAAS,OAAO,KAAK,CAAA;IACvB,CAAC;AACH,CAAC,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ProjectTenancy } from '../areas/tenancy.js';
|
|
1
2
|
import type { SubProject } from '../slot/consts.js';
|
|
2
3
|
import type { ViableSkill } from '../skills/consts.js';
|
|
3
4
|
import type { ViablePersona } from '../skills/roles.js';
|
|
@@ -20,7 +21,7 @@ import type { TopologyDescriptor } from '../topology/types.js';
|
|
|
20
21
|
* OPTIONAL and says what its product should do for the people using it. Optional because a
|
|
21
22
|
* blueprint registered before the layer existed — or a patch serialized into a run row — must keep
|
|
22
23
|
* resolving: every reader asks through a helper that answers the default for an absent layer
|
|
23
|
-
* ({@link landingGatePreferenceOf}).
|
|
24
|
+
* ({@link landingGatePreferenceOf}, `tenancyOf`).
|
|
24
25
|
*/
|
|
25
26
|
export interface Blueprint {
|
|
26
27
|
id: string;
|
|
@@ -73,6 +74,14 @@ export declare enum LandingGatePreference {
|
|
|
73
74
|
*/
|
|
74
75
|
export interface ExperienceLayer {
|
|
75
76
|
landingGate: LandingGatePreference;
|
|
77
|
+
/**
|
|
78
|
+
* Whether the product splits its audiences into tenant organizations.
|
|
79
|
+
*
|
|
80
|
+
* Written by resolution from {@link BlueprintRef.tenancy} — the project's own decision — and by
|
|
81
|
+
* no blueprint or case table, which cannot know it. Absent is a single-organization application;
|
|
82
|
+
* always read through `tenancyOf`.
|
|
83
|
+
*/
|
|
84
|
+
tenancy?: ProjectTenancy;
|
|
76
85
|
}
|
|
77
86
|
/**
|
|
78
87
|
* The landing-gate preference of a resolved blueprint.
|
|
@@ -233,6 +242,15 @@ export interface BlueprintRef {
|
|
|
233
242
|
* which is the only reading that cannot silently take a capability away from a live project.
|
|
234
243
|
*/
|
|
235
244
|
case?: string;
|
|
245
|
+
/**
|
|
246
|
+
* Whether the product splits its audiences into tenant organizations — the project card's
|
|
247
|
+
* decision, resolved into `experience.tenancy`.
|
|
248
|
+
*
|
|
249
|
+
* Flags rather than a key, because the decision is the project's own and no table could hold it;
|
|
250
|
+
* two booleans are still no artifact. Absent, or both false, applies nothing, so a run row of a
|
|
251
|
+
* project nobody decided for serializes exactly as it did before tenancy existed.
|
|
252
|
+
*/
|
|
253
|
+
tenancy?: ProjectTenancy;
|
|
236
254
|
overrides?: BlueprintPatch;
|
|
237
255
|
}
|
|
238
256
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/blueprint/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,eAAe,CAAA;IAC3B,KAAK,EAAE,UAAU,CAAA;IACjB,QAAQ,EAAE,aAAa,CAAA;IACvB,SAAS,EAAE,cAAc,CAAA;IACzB,QAAQ,EAAE,aAAa,CAAA;IACvB,UAAU,CAAC,EAAE,eAAe,CAAA;CAC7B;AAED;;;;;;;GAOG;AACH,oBAAY,cAAc;IACxB,UAAU,eAAe;IACzB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,SAAS,eAAe;IACxB,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC1B;AAED,eAAO,MAAM,qBAAqB,EAAE,cAAc,EAOjD,CAAA;AAED;;;;;;;GAOG;AACH,oBAAY,qBAAqB;IAC/B,0FAA0F;IAC1F,SAAS,cAAc;IACvB,oDAAoD;IACpD,KAAK,UAAU;IACf,8FAA8F;IAC9F,UAAU,eAAe;CAC1B;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/blueprint/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EA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B,4EAA4E;IAC5E,4CAAsB,CAAA;IACtB,6DAA6D;IAC7D,yCAAmB,CAAA;AACrB,CAAC,EAPW,kBAAkB,KAAlB,kBAAkB,QAO7B"}
|
|
@@ -211,9 +211,9 @@ export declare const CONNECT_INQUIRY_MAX_TEXT = 2000;
|
|
|
211
211
|
/**
|
|
212
212
|
* How long a session survives without a sign of life.
|
|
213
213
|
*
|
|
214
|
-
* A connector refreshes its presence on every
|
|
215
|
-
*
|
|
216
|
-
*
|
|
214
|
+
* A connector refreshes its presence on every long poll and every submit. Ten minutes is generous
|
|
215
|
+
* on purpose: a parent agent running one model task in a subagent can be silent for several, and
|
|
216
|
+
* expiring a session under it would fail a run that was progressing.
|
|
217
217
|
*/
|
|
218
218
|
export declare const CONNECT_SESSION_EXPIRE_MS = 600000;
|
|
219
219
|
/** Presence key lifetime. Refreshed far more often than it expires. */
|
|
@@ -293,9 +293,6 @@ export declare const CONNECT_MARKER_DIR = ".viable";
|
|
|
293
293
|
*/
|
|
294
294
|
export declare const CONNECT_ENV_BEGIN = "# --- viable:managed ---";
|
|
295
295
|
export declare const CONNECT_ENV_END = "# --- /viable:managed ---";
|
|
296
|
-
/** Socket events a connector session carries. */
|
|
297
|
-
export declare const CONNECT_EVENT_OP = "connect:op";
|
|
298
|
-
export declare const CONNECT_EVENT_SESSION = "connect:session";
|
|
299
296
|
/** Redis resource aliases the platform registers for the relay. */
|
|
300
297
|
export declare const CONNECT_OP_PUBSUB = "connect-op-pubsub";
|
|
301
298
|
export declare const CONNECT_RESULT_PUBSUB = "connect-result-pubsub";
|
|
@@ -317,14 +314,10 @@ export declare const RES_CONNECT_SESSION = "connect-session";
|
|
|
317
314
|
*/
|
|
318
315
|
export declare const connect: Readonly<{
|
|
319
316
|
base: "viable:manager-api:connect:base";
|
|
320
|
-
capabilities: "viable:manager-api:connect:capabilities";
|
|
321
317
|
session: Readonly<{
|
|
322
318
|
open: "viable:manager-api:connect:session:open";
|
|
323
319
|
openDelegated: "viable:manager-api:connect:session:open-delegated";
|
|
324
|
-
get: "viable:manager-api:connect:session:get";
|
|
325
|
-
heartbeat: "viable:manager-api:connect:session:heartbeat";
|
|
326
320
|
close: "viable:manager-api:connect:session:close";
|
|
327
|
-
socket: "viable:manager-api:connect:session:socket";
|
|
328
321
|
}>;
|
|
329
322
|
op: Readonly<{
|
|
330
323
|
pull: "viable:manager-api:connect:op:pull";
|
|
@@ -338,10 +331,6 @@ export declare const connect: Readonly<{
|
|
|
338
331
|
attach: "viable:manager-api:connect:project:attach";
|
|
339
332
|
reinit: "viable:manager-api:connect:project:reinit";
|
|
340
333
|
modify: "viable:manager-api:connect:project:modify";
|
|
341
|
-
settings: "viable:manager-api:connect:project:settings";
|
|
342
|
-
llm: "viable:manager-api:connect:project:llm";
|
|
343
|
-
/** The per-project converter inference mode. Separate from `llm`: it is not a paid capability. */
|
|
344
|
-
converterLlm: "viable:manager-api:connect:project:converter-llm";
|
|
345
334
|
/**
|
|
346
335
|
* The project's own branding — copyright, organization, the two legal links, the Google tag.
|
|
347
336
|
* The platform credit is deliberately NOT here: hiding it is a paid capability with its own
|
|
@@ -360,7 +349,6 @@ export declare const connect: Readonly<{
|
|
|
360
349
|
check: "viable:manager-api:connect:convert:check";
|
|
361
350
|
start: "viable:manager-api:connect:convert:start";
|
|
362
351
|
proceed: "viable:manager-api:connect:convert:proceed";
|
|
363
|
-
cancel: "viable:manager-api:connect:convert:cancel";
|
|
364
352
|
status: "viable:manager-api:connect:convert:status";
|
|
365
353
|
purge: "viable:manager-api:connect:convert:purge";
|
|
366
354
|
}>;
|
|
@@ -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,oBAA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AAuB,6BAA6B,CAAA;AACjE,eAAO,MAAM,uBAAuB,iCAAmC,CAAA;AACvE,eAAO,MAAM,mBAAmB,mBAAmB,CAAA;AAEnD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,yBAAyB,CAAA;AACzD,sEAAsE;AACtE,eAAO,MAAM,gBAAgB,qBAAqB,CAAA;AAClD,qGAAqG;AACrG,eAAO,MAAM,0BAA0B,uBAAuB,CAAA;AAC9D,yEAAyE;AACzE,eAAO,MAAM,kBAAkB,YAAY,CAAA;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,6BAA6B,CAAA;AAC3D,eAAO,MAAM,eAAe,8BAA8B,CAAA;AAE1D,mEAAmE;AACnE,eAAO,MAAM,iBAAiB,sBAAsB,CAAA;AACpD,eAAO,MAAM,qBAAqB,0BAA0B,CAAA;AAC5D,eAAO,MAAM,gBAAgB,qBAAqB,CAAA;AAClD,eAAO,MAAM,oBAAoB,yBAAyB,CAAA;AAC1D,eAAO,MAAM,sBAAsB,2BAA2B,CAAA;AAE9D,sDAAsD;AACtD,eAAO,MAAM,mBAAmB,oBAAoB,CAAA;AAEpD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;QAmBhB;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BL,CAAA"}
|
package/build/connect/consts.js
CHANGED
|
@@ -256,9 +256,9 @@ export const CONNECT_INQUIRY_MAX_TEXT = 2_000;
|
|
|
256
256
|
/**
|
|
257
257
|
* How long a session survives without a sign of life.
|
|
258
258
|
*
|
|
259
|
-
* A connector refreshes its presence on every
|
|
260
|
-
*
|
|
261
|
-
*
|
|
259
|
+
* A connector refreshes its presence on every long poll and every submit. Ten minutes is generous
|
|
260
|
+
* on purpose: a parent agent running one model task in a subagent can be silent for several, and
|
|
261
|
+
* expiring a session under it would fail a run that was progressing.
|
|
262
262
|
*/
|
|
263
263
|
export const CONNECT_SESSION_EXPIRE_MS = 600_000;
|
|
264
264
|
/** Presence key lifetime. Refreshed far more often than it expires. */
|
|
@@ -338,9 +338,6 @@ export const CONNECT_MARKER_DIR = '.viable';
|
|
|
338
338
|
*/
|
|
339
339
|
export const CONNECT_ENV_BEGIN = '# --- viable:managed ---';
|
|
340
340
|
export const CONNECT_ENV_END = '# --- /viable:managed ---';
|
|
341
|
-
/** Socket events a connector session carries. */
|
|
342
|
-
export const CONNECT_EVENT_OP = 'connect:op';
|
|
343
|
-
export const CONNECT_EVENT_SESSION = 'connect:session';
|
|
344
341
|
/** Redis resource aliases the platform registers for the relay. */
|
|
345
342
|
export const CONNECT_OP_PUBSUB = 'connect-op-pubsub';
|
|
346
343
|
export const CONNECT_RESULT_PUBSUB = 'connect-result-pubsub';
|
|
@@ -362,14 +359,10 @@ export const RES_CONNECT_SESSION = 'connect-session';
|
|
|
362
359
|
*/
|
|
363
360
|
export const connect = Object.freeze({
|
|
364
361
|
base: 'viable:manager-api:connect:base',
|
|
365
|
-
capabilities: 'viable:manager-api:connect:capabilities',
|
|
366
362
|
session: Object.freeze({
|
|
367
363
|
open: 'viable:manager-api:connect:session:open',
|
|
368
364
|
openDelegated: 'viable:manager-api:connect:session:open-delegated',
|
|
369
|
-
get: 'viable:manager-api:connect:session:get',
|
|
370
|
-
heartbeat: 'viable:manager-api:connect:session:heartbeat',
|
|
371
365
|
close: 'viable:manager-api:connect:session:close',
|
|
372
|
-
socket: 'viable:manager-api:connect:session:socket',
|
|
373
366
|
}),
|
|
374
367
|
op: Object.freeze({
|
|
375
368
|
pull: 'viable:manager-api:connect:op:pull',
|
|
@@ -383,10 +376,6 @@ export const connect = Object.freeze({
|
|
|
383
376
|
attach: 'viable:manager-api:connect:project:attach',
|
|
384
377
|
reinit: 'viable:manager-api:connect:project:reinit',
|
|
385
378
|
modify: 'viable:manager-api:connect:project:modify',
|
|
386
|
-
settings: 'viable:manager-api:connect:project:settings',
|
|
387
|
-
llm: 'viable:manager-api:connect:project:llm',
|
|
388
|
-
/** The per-project converter inference mode. Separate from `llm`: it is not a paid capability. */
|
|
389
|
-
converterLlm: 'viable:manager-api:connect:project:converter-llm',
|
|
390
379
|
/**
|
|
391
380
|
* The project's own branding — copyright, organization, the two legal links, the Google tag.
|
|
392
381
|
* The platform credit is deliberately NOT here: hiding it is a paid capability with its own
|
|
@@ -405,7 +394,6 @@ export const connect = Object.freeze({
|
|
|
405
394
|
check: 'viable:manager-api:connect:convert:check',
|
|
406
395
|
start: 'viable:manager-api:connect:convert:start',
|
|
407
396
|
proceed: 'viable:manager-api:connect:convert:proceed',
|
|
408
|
-
cancel: 'viable:manager-api:connect:convert:cancel',
|
|
409
397
|
status: 'viable:manager-api:connect:convert:status',
|
|
410
398
|
purge: 'viable:manager-api:connect:convert:purge',
|
|
411
399
|
}),
|
|
@@ -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,CAAA;IACf,qCAAmB,CAAA;IACnB,uCAAqB,CAAA;IACrB,iCAAe,CAAA;AACjB,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB;AAED,+BAA+B;AAC/B,MAAM,CAAN,IAAY,oBAQX;AARD,WAAY,oBAAoB;IAC9B,yCA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