@plurnk/plurnk-schemes 1.29.0 → 3.0.0
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 +6 -6
- package/SPEC.md +75 -50
- package/dist/Manifest.js +1 -1
- package/dist/Manifest.js.map +1 -1
- package/dist/MessageScheme.js +3 -3
- package/dist/MessageScheme.js.map +1 -1
- package/dist/OutputScheme.js +2 -2
- package/dist/OutputScheme.js.map +1 -1
- package/dist/Results.d.ts +0 -1
- package/dist/Results.d.ts.map +1 -1
- package/dist/Results.js.map +1 -1
- package/dist/SchemeDiscovery.d.ts +0 -1
- package/dist/SchemeDiscovery.d.ts.map +1 -1
- package/dist/SchemeDiscovery.js +11 -20
- package/dist/SchemeDiscovery.js.map +1 -1
- package/dist/Slicer.d.ts.map +1 -1
- package/dist/Slicer.js +29 -43
- package/dist/Slicer.js.map +1 -1
- package/dist/ctx.d.ts +1 -1
- package/dist/ctx.d.ts.map +1 -1
- package/dist/ctx.js +1 -1
- package/dist/ctx.js.map +1 -1
- package/dist/handler.d.ts +2 -2
- package/dist/handler.d.ts.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/module-slice.d.ts +19 -0
- package/dist/module-slice.d.ts.map +1 -0
- package/dist/module-slice.js +2 -0
- package/dist/module-slice.js.map +1 -0
- package/dist/resource-tree.d.ts +15 -0
- package/dist/resource-tree.d.ts.map +1 -0
- package/dist/resource-tree.js +2 -0
- package/dist/resource-tree.js.map +1 -0
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -55,12 +55,12 @@ bound to that authority, so entry capability calls remain pathname-oriented.
|
|
|
55
55
|
Implement only
|
|
56
56
|
the remaining delegated methods you support—`find`, `editBatch`, `send`, and
|
|
57
57
|
the other optional methods in `SchemeHandler`. COPY and MOVE are engine-owned
|
|
58
|
-
compositions over `ctx.entries` and `editBatch`, so
|
|
58
|
+
compositions over `ctx.entries` and `editBatch`, so extensions do not override
|
|
59
59
|
them or author COPY/MOVE effect envelopes. A regional `editBatch`
|
|
60
60
|
returns `EditBatchResult` with its typed `EditBatchReceipt`; the engine validates
|
|
61
61
|
and projects it.
|
|
62
62
|
The optional synchronous `attributions(context)` hook may return no, one, or
|
|
63
|
-
many opaque tags for each provider emission attempt ({§
|
|
63
|
+
many opaque tags for each provider emission attempt ({§extension-attribution}).
|
|
64
64
|
`implements SchemeHandler` gives compile-time signature checking. The statement
|
|
65
65
|
and path types (`FindStatement`, `SendStatement`, `UrlPath`, etc.) are re-exported
|
|
66
66
|
from this package, so you depend on and peer (`^1`) only
|
|
@@ -85,7 +85,7 @@ static manifest: SchemeManifest = {
|
|
|
85
85
|
lineAnchors: true, // publish stable line anchors without EDIT
|
|
86
86
|
textEditScopes: true, // use the standard text-edit capability
|
|
87
87
|
glyph: "🦊", // optional client-only display marker
|
|
88
|
-
documentation, // deep doc from docs/foo.md,
|
|
88
|
+
documentation, // deep doc from docs/foo.md, READ on demand
|
|
89
89
|
};
|
|
90
90
|
```
|
|
91
91
|
|
|
@@ -103,7 +103,7 @@ collision guard.
|
|
|
103
103
|
|
|
104
104
|
### 4. Discoverable references
|
|
105
105
|
|
|
106
|
-
Put operation contracts and examples in `documentation`. Its `## Summary` orients the model during FIND; the model READs the reference when it needs the details.
|
|
106
|
+
Put operation contracts and examples in `documentation`. Its `## Summary` orients the model during FIND; the model READs the reference when it needs the details.
|
|
107
107
|
|
|
108
108
|
That's the whole contract: declare, `implements SchemeHandler`, manifest with self-doc. Publish, install, discovered.
|
|
109
109
|
|
|
@@ -112,7 +112,7 @@ That's the whole contract: declare, `implements SchemeHandler`, manifest with se
|
|
|
112
112
|
### Types
|
|
113
113
|
|
|
114
114
|
- Manifest: `SchemeManifest` (including capability `traits`, `documentation`, and client-only `glyph`) and `WriterTier`.
|
|
115
|
-
- Behavior contract: `SchemeHandler`, numeric-only `ResolvedEditStatement
|
|
115
|
+
- Behavior contract: `SchemeHandler`, numeric-only `ResolvedEditStatement`, and optional `PacketSectionTransformer` (`PacketSectionDraft`); the remaining re-exported scheme-facing grammar types (`PlurnkStatement` + per-op statements + `ParsedPath` / `LocalPath` / `UrlPath`).
|
|
116
116
|
- Results: universal `SchemeResult` plus RFC 9457 `ProblemDetails`, optional `EntryResult` / `ProposalResult` / `PassthroughResult` authoring shapes, `SchemeResultBase`, matcher navigation `MatchEvidence`, and target-shaped standard `EntryFindResult` pagination/count metadata.
|
|
117
117
|
- Capability ctx: `SchemeCtx` and its entry, channel, notification, projection, and subscription domains. Entry schemes reuse typed standard operations at canonical workspace addresses.
|
|
118
118
|
|
|
@@ -124,7 +124,7 @@ That's the whole contract: declare, `implements SchemeHandler`, manifest with se
|
|
|
124
124
|
- `Matcher.matchAgainstContent(body, content, mimetype, mimetypes)` - boolean resource selection over `Mimetypes.query` (glob/regex/jsonpath/xpath), returning locator/exact-region `MatchEvidence`.
|
|
125
125
|
- `Results.problem` / `.failure` / `.assert` / `.assertReadResult` / `.assertMatchEvidenceList` / `.attachInstance` / `.isEntry` / `.isProposal` / `.isPassthrough` / `.isErrorStatus` - RFC 9457 result builders, validators, durable-occurrence attachment, and guards.
|
|
126
126
|
- `PacketSections.assertDrafts(value, subject?)` — validates the exact tokenless section-draft list returned by a packet transformer.
|
|
127
|
-
- `SchemeDiscovery.discover({ cwd? })` — scope-agnostic `node_modules` scan for `plurnk.kind:"scheme"` packages (trust-gated, fail-hard on prefix collision); returns descriptors plus canonical static attribution lists for represented packages (SPEC §6, {§
|
|
127
|
+
- `SchemeDiscovery.discover({ cwd? })` — scope-agnostic `node_modules` scan for `plurnk.kind:"scheme"` packages (trust-gated, fail-hard on prefix collision); returns descriptors plus canonical static attribution lists for represented packages (SPEC §6, {§extension-attribution}).
|
|
128
128
|
|
|
129
129
|
`SchemeCtx` is the stable semantic API for trusted in-process schemes, not a
|
|
130
130
|
sandbox. The consumer injects its implementation; database layout and private
|
package/SPEC.md
CHANGED
|
@@ -39,7 +39,7 @@ class Notes {
|
|
|
39
39
|
| `channels` | `Record<channelName, mimetype>`. Channel names lowercase. Empty = dynamic per-call. |
|
|
40
40
|
| `defaultChannel` | Channel targeted when path has no `#fragment`. Dynamic-channel schemes may name it without fixing a mimetype; empty means no default. |
|
|
41
41
|
| `category` | `"data"` (entry-bearing) \| `"logging"` (`log://` rows) \| `"control"` (owns no entries). |
|
|
42
|
-
| `writableBy` | Subset of `["model", "client", "_plurnk"
|
|
42
|
+
| `writableBy` | Subset of `["model", "client", "_plurnk"]`; empty declares a scheme no operation writes, such as a runtime's output, which its execution writes through its own stream. Consumer returns 403 for outside-set writes. |
|
|
43
43
|
| `volatile` | Boolean. |
|
|
44
44
|
| `modelVisible` | Boolean. |
|
|
45
45
|
| `folderScopes?` | `true` declares that a trailing slash on FIND is a collection scope. Absent/false means `/` is ordinary resource syntax. |
|
|
@@ -53,8 +53,7 @@ class Notes {
|
|
|
53
53
|
|
|
54
54
|
The manifest is closed: unknown top-level fields fail admission. Every entry
|
|
55
55
|
belongs to the operation's workspace. Resource coordinates and intrinsic
|
|
56
|
-
mutability are resolved through {§entry-address-resolution}
|
|
57
|
-
declare per-worker ownership, visibility, or inheritance policy.
|
|
56
|
+
mutability are resolved through {§entry-address-resolution}.
|
|
58
57
|
|
|
59
58
|
{§manifest-metadata-modifier} is the scheme's explicit opt-in to
|
|
60
59
|
{§scheme-metadata-modifier}. Core never parses or moves metadata into the
|
|
@@ -82,10 +81,11 @@ tool, and these declared facts into its general capability descriptor; the
|
|
|
82
81
|
same decision governs dispatch and teaching visibility.
|
|
83
82
|
|
|
84
83
|
Proposal behavior is orthogonal to capabilities. A handler proposes by
|
|
85
|
-
returning 202; the consumer's proposal lifecycle
|
|
86
|
-
|
|
84
|
+
returning 202; the consumer's proposal lifecycle routes it to the worker
|
|
85
|
+
owner's review unless the server disposition `PLURNK_SERVICE_PROPOSALS` accepts
|
|
86
|
+
or rejects it, with timeout as a lifecycle bound.
|
|
87
87
|
|
|
88
|
-
§manifest-self-doc **Discoverable scheme references.** `documentation` contains the scheme's operation contracts and examples. The consumer materializes it as **`worker:///_plurnk/plurnk/<name>.md`**: FIND projects its exact H2 `Summary`, and READ retrieves its body on demand.
|
|
88
|
+
§manifest-self-doc **Discoverable scheme references.** `documentation` contains the scheme's operation contracts and examples. The consumer materializes it as **`worker:///_plurnk/plurnk/<name>.md`**: FIND projects its exact H2 `Summary`, and READ retrieves its body on demand. Reference availability follows the registered capabilities, not illustrative operations. `glyph` is client display metadata under {§manifest-client-display}, not self-documentation.
|
|
89
89
|
|
|
90
90
|
**Authoring convention — `docs/<name>.md`.** The contract field stays a plain `string`, but a sibling SHOULD keep the deep doc in a **`docs/<name>.md`** file at the package root rather than inline, and load it into the manifest at module init — e.g. `documentation: await readFile(new URL("../docs/<name>.md", import.meta.url), "utf-8")` (top-level await; `../` resolves identically from `src/` in test and `dist/` once built). Ship it by adding `docs/**/*` to `files`. This keeps prose out of the handler source and gives editors real Markdown; the consumer materializes it at `worker:///_plurnk/plurnk/<name>.md`. A missing file fails-hard at import (no silent empty doc).
|
|
91
91
|
|
|
@@ -123,7 +123,7 @@ the entry's `WebMaterializedResult`, and `materializedChannels(result, request?)
|
|
|
123
123
|
out as entry channels. The result and error shapes (`WebFetchResult`,
|
|
124
124
|
`WebMaterializedResult`, `WebMaterializationError`) are this framework's. The `https`
|
|
125
125
|
handler publishes it; the service's entry sink resolves it through the scheme registry and
|
|
126
|
-
names no
|
|
126
|
+
names no extension package, so a compatible extension replaces it through the ordinary installation
|
|
127
127
|
and discovery path.
|
|
128
128
|
|
|
129
129
|
§scheme-operation-dispatch Sister scheme handlers implement op methods consumed by plurnk-service via
|
|
@@ -165,9 +165,6 @@ only. Core resolves the model-facing {§text-line-anchor-syntax} before invoking
|
|
|
165
165
|
anchor crossing that boundary is an internal contract violation. Core also
|
|
166
166
|
prepares authored body syntax before this boundary ({§zero-width-column-one-insert});
|
|
167
167
|
handlers apply the supplied replacement literally, including at zero-width spans.
|
|
168
|
-
The barrel's
|
|
169
|
-
compatibility export named `EditStatement` aliases this resolved shape, so
|
|
170
|
-
existing plugins do not inherit the model parser's anchor representation.
|
|
171
168
|
The anchor precondition remains core-private. A public handler declaring
|
|
172
169
|
`textEditScopes: true` MUST route its standard textual mutation through
|
|
173
170
|
`ctx.entries.operations.editBatch`, which rechecks that precondition at the
|
|
@@ -219,7 +216,7 @@ is selected from the same channels used by READ and exact FIND. A selected
|
|
|
219
216
|
channel's producer failure aborts before destination mutation; successful
|
|
220
217
|
non-`200` content remains eligible for transfer.
|
|
221
218
|
|
|
222
|
-
§entry-address-resolution `resolveEntryAddress?` defines canonical addresses for client and model operations. Core removes the channel fragment and target-slot escapes {§path-parentheses} before invocation; other identity components remain exact. The hook receives capability-free `SchemeAddressCtx` and returns only the resource coordinate
|
|
219
|
+
§entry-address-resolution `resolveEntryAddress?` defines canonical addresses for client and model operations. Core removes the channel fragment and target-slot escapes {§path-parentheses} before invocation; other identity components remain exact. The hook receives capability-free `SchemeAddressCtx` and returns only the resource coordinate. The optional access argument defaults to `read`; `write` checks intrinsic mutability before a mutation or proposal. Resolution is observational and has no effects.
|
|
223
220
|
|
|
224
221
|
| Return | Meaning |
|
|
225
222
|
|---|---|
|
|
@@ -230,7 +227,7 @@ non-`200` content remains eligible for transfer.
|
|
|
230
227
|
|
|
231
228
|
Entry, channel, notification, subscription, mutation, proposal, client-read, and cancellation capabilities use that same workspace coordinate. Caller identity supplies provenance, not resource ownership or an alternate namespace. READ checks model write eligibility only to publish EDIT anchors ({§line-anchor-write-authority}); COPY checks the destination and MOVE also checks source mutability before any destination effect.
|
|
232
229
|
|
|
233
|
-
A sibling does `export default class X implements SchemeHandler` (with `static manifest: SchemeManifest`) and gets compile-time signature checking. Every registered handler exposes either that static manifest or an instance `manifest` for dynamically derived identities; `Manifest.of` validates the complete resolved declaration and its registration name before the handler becomes dispatchable. The interface is the handler-delegable subset of grammar's operation union. `LOOK` is a client-facing operation, log-targeted KILL is core-owned curation, and WORK/FORK and the native dispositions are core-owned worker/program operations; none is dispatchable to
|
|
230
|
+
A sibling does `export default class X implements SchemeHandler` (with `static manifest: SchemeManifest`) and gets compile-time signature checking. Every registered handler exposes either that static manifest or an instance `manifest` for dynamically derived identities; `Manifest.of` validates the complete resolved declaration and its registration name before the handler becomes dispatchable. The interface is the handler-delegable subset of grammar's operation union. `LOOK` is a client-facing operation, log-targeted KILL is core-owned curation, and WORK/FORK and the native dispositions are core-owned worker/program operations; none is dispatchable to an extension scheme. **The statement + path types (`ReadStatement`, `SendStatement`, `UrlPath`, …) are re-exported from this barrel**, so a sibling depends on and peers (`^1`) ONLY `@plurnk/plurnk-schemes` — grammar rides underneath as the framework's transitive dep (§3).
|
|
234
231
|
|
|
235
232
|
§handler-lifecycle A registered handler object is a process-lived shared
|
|
236
233
|
instance and may receive overlapping operation calls. Retained handler state is
|
|
@@ -332,7 +329,7 @@ coalesce and coordinate jumps expose an omitted middle. A deletion instead
|
|
|
332
329
|
contains up to `C` lines on each side of its join.
|
|
333
330
|
|
|
334
331
|
The engine validates that receipt and owns the ordered COPY/MOVE resource
|
|
335
|
-
effects shown to consumers;
|
|
332
|
+
effects shown to consumers; extensions do not invent a second effect envelope.
|
|
336
333
|
`parseIssues`, when present, carries nonnegative parser-recovery counts for the
|
|
337
334
|
complete source and resulting revisions. It is omitted when both are clean or
|
|
338
335
|
either inspection is unavailable. The hint is advisory: inspection failure
|
|
@@ -345,11 +342,11 @@ does not reverse a landed mutation.
|
|
|
345
342
|
- Manifest: `SchemeManifest`, `SchemeAuthority`, `EntryCoordinate`, and `WriterTier`.
|
|
346
343
|
- Mutation receipts: `EditBatchResult`, `EditBatchReceipt`, `EditReceipt`, `EditEffectReceipt`, `EditReceiptUnit`, and `ParseIssueTransition`.
|
|
347
344
|
- §scheme-packet-transform **Packet-section transformation.** A scheme may implement `transformSections(sections: PacketSectionDraft[]) → PacketSectionDraft[] | Promise<…>` to add, remove, or reorder sections before core measures the packet. The exact draft shape is `{ name; slot: "system"|"user"; header: string|null; content }`; no token measurement exists at this boundary. Core invokes implementations in registration order and applies `PacketSections.assertDrafts` to the initial list and every returned list. Names are non-empty and unique within the packet.
|
|
348
|
-
- Behavior contract: `SchemeHandler` (§2). Scheme-facing grammar types re-exported here so siblings pin only this package: `PlurnkStatement` + the per-op statement types (`ReadStatement`, `FindStatement`, `CopyStatement`, `MoveStatement`, `SendStatement`, `ExecStatement`, `WorkStatement`, `ForkStatement`, `KillStatement`, `ContinuationStatement`) and path types (`ParsedPath` = `LocalPath` | `UrlPath`). EDIT uses `ResolvedEditStatement
|
|
345
|
+
- Behavior contract: `SchemeHandler` (§2). Scheme-facing grammar types re-exported here so siblings pin only this package: `PlurnkStatement` + the per-op statement types (`ReadStatement`, `FindStatement`, `CopyStatement`, `MoveStatement`, `SendStatement`, `ExecStatement`, `WorkStatement`, `ForkStatement`, `KillStatement`, `ContinuationStatement`) and path types (`ParsedPath` = `LocalPath` | `UrlPath`). EDIT uses `ResolvedEditStatement` under {§resolved-edit-statement}.
|
|
349
346
|
- Target syntax: contracts-owned `PathSyntax` is re-exported for the shared exact-versus-path-glob classifier {§path-glob}.
|
|
350
347
|
- Discovery: `SchemeDiscovery` (behavior class) with `SchemeInfo` / `SchemeDiscoveryResult` / `DiscoverOptions` (§6).
|
|
351
348
|
- §executor-scheme-output Executor-scheme ("an executor is a scheme"): `OutputScheme.manifestFromRuntime(decl)` derives a read-only-output `SchemeManifest` from an executor's `RuntimeDecl` (zero scheme-authoring). Executor output is a canonical entry and therefore inherits core's exact READ projection under {§read-preparation}; no executor-specific READ helper exists. `Summarize.summarize(content, mimetype)` -> `OrientIndex` is the structural-only execution-receipt index (no content - universal-receipt containment). A per-tag executor-scheme supplies its manifest via instance `get manifest()` (§2 `SchemeHandler.manifest?`).
|
|
352
|
-
- Results: `SchemeResult` is the universal operation-result contract. Statuses below 400 carry no `problem`; statuses 400–599 require RFC 9457 `ProblemDetails
|
|
349
|
+
- Results: `SchemeResult` is the universal operation-result contract. Statuses below 400 carry no `problem`; statuses 400–599 require RFC 9457 `ProblemDetails`. `EntryResult`, `ProposalResult`, and `PassthroughResult` are optional conventional shapes, not engine routing discriminators. Guards inspect those optional shapes; proposal routing itself is engine-owned and follows status plus operation semantics.
|
|
353
350
|
- Standard `EntryFindResult` exposes only its paged `results`, complete `matchingPathCount` / `matchLocationCount`, `itemsWeightTotal` / `returnedItemsWeightTotal`, and typed range. `EntryCatalogChannel.weight` and `EntryCatalogScope.weight` are model-independent curation weights; model-facing JSON may project them under its own vocabulary. Each resource-mode `EntryCatalogItem` is a nonempty, default-first array of flat `EntryCatalogChannel` objects; a scope is the one-element `EntryCatalogScopeGroup`. Exact matcher mode returns flat `MatchEvidence` locations. Pagination is the materialization bound; no path-owning channel wrapper, hidden `matches`, `pathnames`, or overflow-only result collection exists.
|
|
354
351
|
- §scheme-catalog-parse-issues An `EntryCatalogChannel` may carry a positive `parseIssues` count when its exact content projection reported parser recovery sites. Zero and unavailable evidence are omitted. This is advisory metadata and never a validity gate or operation failure.
|
|
355
352
|
- Capability ctx (see §3.bis): `SchemeCtx`, `StreamSubscription`, and the domain capabilities. Entry authors additionally receive `EntryOperationCaps`, `EntryAddress`, and typed standard-operation results. `editBatch` receives the numeric splices of one operation for one canonical resource and channel; it validates against one snapshot and commits one revision or none ({§edit-batch}). Core calls it separately for each authored EDIT, in execution order.
|
|
@@ -403,7 +400,7 @@ metadata shape under {§send-resource-attachments}; other recipients retain
|
|
|
403
400
|
their own metadata vocabulary.
|
|
404
401
|
|
|
405
402
|
Acquisition schemes delegate model-facing projection to the consumer's one
|
|
406
|
-
configured mimetype
|
|
403
|
+
configured mimetype framework. They neither instantiate readers nor discard source
|
|
407
404
|
bytes merely because no readable projection exists.
|
|
408
405
|
|
|
409
406
|
| Surface | Contract |
|
|
@@ -423,7 +420,7 @@ Parser-recovery inspection is deliberately non-gating: successful clean
|
|
|
423
420
|
inspection returns `0`; tooling failure or structural degradation surfaces a
|
|
424
421
|
Notice where available and returns `undefined`.
|
|
425
422
|
`ProjectionInputLimitError` is the projection boundary's exported name for the
|
|
426
|
-
configured mimetype
|
|
423
|
+
configured mimetype framework's typed bounded-input failure.
|
|
427
424
|
|
|
428
425
|
### §slicer-window Positional windows without content - `Slicer.window`
|
|
429
426
|
|
|
@@ -450,17 +447,16 @@ the pure helper core applies where a fenced EDIT body becomes inserted content
|
|
|
450
447
|
without a trailing newline at a zero-width column-1 region, and returns every other body unchanged.
|
|
451
448
|
|
|
452
449
|
§range-starts-at-one A two-coordinate range starts at 1. `<0>` is a single-position
|
|
453
|
-
prepend anchor, never a range start: `<0,M>`
|
|
454
|
-
|
|
455
|
-
`
|
|
456
|
-
|
|
457
|
-
|
|
450
|
+
prepend anchor, never a range start: `<0,M>` is refused 416 by `lines()`,
|
|
451
|
+
`linesRaw()`, `textReplacement()`, `lineMarkerEdit[Batch]()`, `window()` and
|
|
452
|
+
`page()`, on empty content and empty result sets too, and never clamped to
|
|
453
|
+
`<1,M>`. The refusal's detail states the zero start in the range's unit; its
|
|
454
|
+
`recovery` never rebuilds the refused range ({§diagnostic-observation}):
|
|
458
455
|
|
|
459
456
|
| Unit | `recovery` |
|
|
460
457
|
|---|---|
|
|
461
|
-
| line
|
|
462
|
-
|
|
|
463
|
-
| byte, result, resource | `<1,M>` |
|
|
458
|
+
| line | the line forms `<L,M>`, `<0>` and `<-1>` |
|
|
459
|
+
| byte, result, resource | the fixed `range-not-satisfiable` recovery ({§problems-schemes}) |
|
|
464
460
|
|
|
465
461
|
§read-zero-start The shared READ projection tolerates a two-coordinate `<0,M>`
|
|
466
462
|
when `M` is a positive safe integer or `-1`: it selects `<1,M>`, retains `[0,M]`
|
|
@@ -496,8 +492,8 @@ start-column overshoots remain 416 errors.
|
|
|
496
492
|
failure once for the whole batch: every conflicting pair with its relation in
|
|
497
493
|
`conflicts`, the regions that conflict with nothing in `cleanRegions`, the
|
|
498
494
|
first pair in `conflictingRegions`, plus `editCount` and `applied: 0`. The
|
|
499
|
-
prose states counts
|
|
500
|
-
second line-only representation.
|
|
495
|
+
prose states counts and, for a shared endpoint, the line both regions claim,
|
|
496
|
+
its text and the two regions; it adds no second line-only representation.
|
|
501
497
|
- `Slicer.page(items, marker, options?)` is the separate ordered-result
|
|
502
498
|
pagination helper; it accepts only one or two integer positions and can name
|
|
503
499
|
an operation-owned range unit. An empty result set satisfies any well-formed
|
|
@@ -522,7 +518,7 @@ likewise. Both carry `columnKind: "unicodeCodePoints"`.
|
|
|
522
518
|
- `Results.isErrorStatus(status)` — `status >= 400`.
|
|
523
519
|
- `Results.problem(owner, code, status, detail, extensions?)` — build and validate RFC 9457 Problem Details with a stable `https://problems.plurnk.xyz/<owner>/<code>` type.
|
|
524
520
|
- `Results.failure(owner, code, status, detail, fields?, extensions?)` — build and validate a failed operation result.
|
|
525
|
-
- `Results.assert(result)` — validate the complete success/failure discrimination and reject malformed
|
|
521
|
+
- `Results.assert(result)` — validate the complete success/failure discrimination and reject malformed extension output.
|
|
526
522
|
- `Results.assertMatchEvidence(evidence)` / `assertMatchEvidenceList(evidence)` - enforce the exact `{ locator?, region?, enclosingRegion?, matched? }` shape and shared `TextRegion` contract.
|
|
527
523
|
- `Results.assertReadResult(result)` - validate the universal operation result plus any `region` and `matches` it exposes.
|
|
528
524
|
- `Results.attachInstance(result, uri)` — attach the durable occurrence URI to a failed result.
|
|
@@ -530,7 +526,7 @@ likewise. Both carry `columnKind: "unicodeCodePoints"`.
|
|
|
530
526
|
A handler owns its failure classification and explanation. A retained failure's
|
|
531
527
|
`instance` continues to identify its original occurrence; reading it does not create
|
|
532
528
|
a different failure. When absent, the daemon adds the committed log coordinate. A
|
|
533
|
-
malformed handler result is
|
|
529
|
+
malformed handler result is an extension contract violation and fails hard; the
|
|
534
530
|
consumer does not invent a fallback error or reinterpret arbitrary fields.
|
|
535
531
|
The same discrimination applies to every `SchemeCtx` capability result:
|
|
536
532
|
entries and channels never return a bare failure status.
|
|
@@ -553,14 +549,14 @@ entries and channels never return a bare failure status.
|
|
|
553
549
|
|
|
554
550
|
### §capability-ctx §3.bis Capability ctx — the stable trusted-extension surface
|
|
555
551
|
|
|
556
|
-
Scheme
|
|
557
|
-
sandbox or a security boundary; an installed
|
|
558
|
-
authority. It is the stable semantic API that keeps
|
|
552
|
+
Scheme extensions are trusted in-process Node.js code. `SchemeCtx` is not a
|
|
553
|
+
sandbox or a security boundary; an installed extension already has the process's
|
|
554
|
+
authority. It is the stable semantic API that keeps extensions independent of
|
|
559
555
|
database schemas, prepared-statement names, and private service modules.
|
|
560
556
|
**Interfaces only**: this repo exports the contract and the consumer injects
|
|
561
557
|
its implementation.
|
|
562
558
|
|
|
563
|
-
`SchemeCtx` carries per-dispatch identity (`workspaceId`/`workerId`/`loopId`/`turnId`/`writer`/`signal`) plus capability namespaces
|
|
559
|
+
`SchemeCtx` carries per-dispatch identity (`workspaceId`/`workerId`/`loopId`/`turnId`/`writer`/`signal`) plus capability namespaces:
|
|
564
560
|
|
|
565
561
|
§scheme-ctx-workspace-environment `workspaceId` selects shared Functionality and admission policy; `workerId` attributes the operation and selects its journal. Core binds the addressed resource before supplying this context. Handlers must use that binding rather than reinterpret caller identity as resource ownership ({§runtime-resource-binding}).
|
|
566
562
|
|
|
@@ -584,7 +580,7 @@ its implementation.
|
|
|
584
580
|
receives the standard stored-entry behavior.
|
|
585
581
|
- `channels` — content writes + state (`append`/`replace`/`setState`).
|
|
586
582
|
- `notify` — between-turn client signal (`streamEvent`, metadata-only); not model-facing. Wake delivery belongs to stream settlement, not notification.
|
|
587
|
-
- `projection` — the text and bounded-byte projection capability in {§scheme-projection}. Acquisition schemes own source representations; they do not instantiate or second-guess the
|
|
583
|
+
- `projection` — the text and bounded-byte projection capability in {§scheme-projection}. Acquisition schemes own source representations; they do not instantiate or second-guess the readers. `null` means no readable projection.
|
|
588
584
|
- §scheme-interactions `interactions` — `request(ClientInteractionRequest, signal?)`
|
|
589
585
|
awaits the contracts-owned interaction and returns its
|
|
590
586
|
`ClientInteractionResolution` ({§client-interaction-wire}). Core binds the
|
|
@@ -597,7 +593,6 @@ its implementation.
|
|
|
597
593
|
| --------------------------------- | ---------- | ---------------------------------------------------------------------------------------------------------- |
|
|
598
594
|
| `open(pathname, handle)` | Operation | Bind durable and live identity, return the exact object, and route cancellation through its signal/handle. |
|
|
599
595
|
| Returned `StreamSubscription` | Retainable | `AbortSignal` plus fused chunk publication and terminal settlement; the only retainable capability. |
|
|
600
|
-
| `subscriptions.notifyChunk/close` | Operation | Forward to the exact returned object; own no second state or persistence path. |
|
|
601
596
|
|
|
602
597
|
`notifyChunk` appends and emits one stream event. Its optional stateless
|
|
603
598
|
`mimetype` retypes the channel only when the stored type differs.
|
|
@@ -651,24 +646,54 @@ in the consumer. This package defines their stable interfaces and pure helpers
|
|
|
651
646
|
Installed schemes may legitimately own network connections, subprocesses,
|
|
652
647
|
caches, pools, or other host resources under {§handler-lifecycle}. These powers
|
|
653
648
|
are why installation is a trust decision and why contained interoperability
|
|
654
|
-
belongs in MCP rather than an in-process
|
|
649
|
+
belongs in MCP rather than an in-process extension.
|
|
655
650
|
|
|
656
|
-
The supported compatibility boundary is `@plurnk/plurnk-schemes`.
|
|
651
|
+
The supported compatibility boundary is `@plurnk/plurnk-schemes`. Extensions
|
|
657
652
|
should not import private service modules, depend on database layout, or call
|
|
658
653
|
prepared statements directly: those are unstable implementation details, not
|
|
659
|
-
additional
|
|
654
|
+
additional extension capabilities. Use `SchemeCtx` or propose a new semantic
|
|
660
655
|
capability when the public surface cannot express a coherent extension.
|
|
661
656
|
|
|
657
|
+
## Module slice
|
|
658
|
+
|
|
659
|
+
§scheme-module-slice **A daemon module contributes to the scheme kind through types this package
|
|
660
|
+
owns.** They complete the module contract's slices ({§module-seam-slices}).
|
|
661
|
+
|
|
662
|
+
| Type | Contract |
|
|
663
|
+
| --- | --- |
|
|
664
|
+
| `SchemeRegistrationSeam` | `registerScheme(name, handler)` adds one process-wide addressable `SchemeHandler`; scheme readiness and model-facing capability publication remain the host's. |
|
|
665
|
+
| `ResourceTreeRegistrationSeam` | `registerResourceTreeScheme(name, source)` exposes named read-only resource trees through {§resource-tree-scheme}, without giving the module a storage interface. |
|
|
666
|
+
| `RuntimeSchemeFacet` | A scheme face over a module's own resources. It claims only its own path subtree and there is the scheme's whole live half; unclaimed coordinates keep the standard executor-output behavior. A runtime carries one on its registration ({§executor-module-slice}), and a Functionality family's manager may expose one ({§functionality-adapter}). |
|
|
667
|
+
|
|
668
|
+
§resource-tree-scheme **A tree supplies resources; the host supplies their entry projections.**
|
|
669
|
+
`ResourceTreeSource.trees(workspaceId)` returns the currently available trees keyed by URI
|
|
670
|
+
authority. Each tree lists relative resource paths and supplies a {§scheme-source-bytes}
|
|
671
|
+
`ByteSource` for a relative path. Listing is authoritative; a source's null size means absent.
|
|
672
|
+
The source owns containment and acquisition, including optional native-file identity.
|
|
673
|
+
|
|
674
|
+
| Concern | Contract |
|
|
675
|
+
| --- | --- |
|
|
676
|
+
| Addressing | `name://authority/path`; resource authority, ordinary folder scopes, a dynamic MIME `body` channel. READ and source transfers share exact-resource preparation. |
|
|
677
|
+
| Publication | Demand-loaded entries, not eagerly injected bodies. Model and client writes are forbidden; only the host writes projections. |
|
|
678
|
+
| Projection | The host detects MIME, applies the configured input bound, and uses the installed MIME projection. Original bytes remain the source of byte views, transfers and attachments. Refresh replaces obsolete projection metadata too. |
|
|
679
|
+
| FIND | The host refreshes resources in the requested path/authority scope, including descendants needed for shallow folder summaries, then performs ordinary pattern selection. |
|
|
680
|
+
| Withdrawal | FIND removes cached projections for withdrawn authorities and absent resources in its refreshed scope. An exact missing READ never returns cached content. Historical log receipts are unchanged. |
|
|
681
|
+
| Failures | Optional `refusal(cause, address)` translates recognized source failures into ordinary failure results (status ≥400); null preserves the host's missing-file result or propagates the original unexpected exception. Projection and persistence failures must not be recast as source failures. |
|
|
682
|
+
|
|
683
|
+
The module does not receive scopes, matchers, database handles, or entry lifecycle controls through
|
|
684
|
+
this source interface. A tree registration uses the ordinary scheme registry, with the same unique
|
|
685
|
+
name, readiness, capability and lifecycle rules as other schemes.
|
|
686
|
+
|
|
662
687
|
## §scheme-discovery §6 Discovery & registration (third-party)
|
|
663
688
|
|
|
664
689
|
A scheme handler is discovered and registered with **zero first-party involvement** — install it, it lights up. The contract:
|
|
665
690
|
|
|
666
|
-
- **Declare** the exact string `plurnk.kind: "scheme"` in `package.json` ({§
|
|
667
|
-
- **`SchemeDiscovery` owns the scan (this package).** `SchemeDiscovery.discover({ cwd? })` walks *all* of `node_modules` — scoped (`@acme/foo`) and unscoped — and returns `{ schemes: {name, packageName, exportName
|
|
668
|
-
- **Attribution is package-authored.** `packageAttributions` carries one canonical validated static tag list per admitted package
|
|
669
|
-
- **The framework stays contract-only.** `@plurnk/plurnk-schemes` does not depend on scheme
|
|
691
|
+
- **Declare** the exact string `plurnk.kind: "scheme"` in `package.json` ({§extension-kind}). Then name the scheme(s) it owns in one of two forms: `plurnk.schemes: [{ name, export }, …]` (canonical — one entry per scheme, `export` naming the handler-class export) or `plurnk.name: "<scheme>"` (one-scheme shorthand for the `default` export). One package may own several names inside this kind; each name has exactly one owner.
|
|
692
|
+
- **`SchemeDiscovery` owns the scan (this package).** `SchemeDiscovery.discover({ cwd? })` walks *all* of `node_modules` — scoped (`@acme/foo`) and unscoped — and returns `{ schemes: {name, packageName, exportName?}[], packageAttributions, skipped }` for every package declaring `plurnk.kind === "scheme"`. Scope-agnostic, so a third party under their own scope is found with no first-party allow-list; two names claiming one prefix fail-hard (across packages or within one), as does a malformed `plurnk.schemes` (locality of error, not a silent skip). It returns **descriptors, not handlers** — contract-only, it never imports a scheme package; the consumer imports each `packageName` and registers `new mod[exportName ?? "default"]()`, applying in-tree precedence. The scan primitives — package enumeration, the `PLURNK_EXTENSIONS_TRUSTED_ONLY` trust gate, the deployment-root `node_modules` walk — are one implementation in `@plurnk/plurnk-meta`, shared by every kind's scanner; `SchemeDiscovery` adds only the scheme-descriptor shape on top.
|
|
693
|
+
- **Attribution is package-authored.** `packageAttributions` carries one canonical validated static tag list per admitted package; a loaded handler may additionally implement the shared runtime `attributions` function ({§extension-attribution}). The consumer owns no other attribution policy.
|
|
694
|
+
- **The framework stays contract-only.** `@plurnk/plurnk-schemes` does not depend on scheme extensions. The daemon declares its bundled extensions as direct dependencies, and additional scheme extensions are installed at the application root. Each declares the framework as a peer dependency using the repository's normal same-minor compatibility range; the framework itself is ignored by discovery because it has no `plurnk.kind`.
|
|
670
695
|
- **The default bundle is the daemon's own `dependencies`**, not an aggregator package. Installing `plurnk-core` surfaces the first-party schemes; any other leaf — first-party or third-party — is added by installing it, and scope-agnostic discovery lights it up identically. No bundle is ever a gate.
|
|
671
|
-
- **Trust.** The scanner enforces the shared predicate before attribution or scheme-field validation and returns withheld package names in `skipped`; the host owns presentation ({§
|
|
696
|
+
- **Trust.** The scanner enforces the shared predicate before attribution or scheme-field validation and returns withheld package names in `skipped`; the host owns presentation ({§extension-trust-boundary}).
|
|
672
697
|
|
|
673
698
|
## Message sources
|
|
674
699
|
|
|
@@ -680,16 +705,16 @@ of message body or reply state. The protocol module owns URI identity; Core owns
|
|
|
680
705
|
admission and correlation. Message representations reject mutation while remaining SEND
|
|
681
706
|
recipients. Scratch entries and protocol artifacts retain their own existing write contracts.
|
|
682
707
|
|
|
683
|
-
§message-immutable
|
|
684
|
-
refused 405 `message-immutable
|
|
685
|
-
|
|
686
|
-
``
|
|
708
|
+
§message-immutable An EDIT, COPY or MOVE onto, or KILL of, a message address is
|
|
709
|
+
refused 405 `message-immutable` with no `recovery` ({§diagnostic-observation}); its detail
|
|
710
|
+
names the address as an immutable received message:
|
|
711
|
+
`` `message://tester/bde40185` is a received message; it cannot be edited, moved or killed. ``
|
|
687
712
|
|
|
688
|
-
§problems-schemes **Slicer and matcher Problems.** Every code
|
|
713
|
+
§problems-schemes **Slicer and matcher Problems.** Every code minted here, its status, and the sentence that is its contract (placeholders in *italics* are filled at emission; a fixed recovery follows its detail).
|
|
689
714
|
|
|
690
715
|
| code | status | contract |
|
|
691
716
|
|---|---:|---|
|
|
692
|
-
| `range-not-satisfiable` | 416 | The range lies outside the available extent (a line before 1, past the end, or a column outside its line). Recovery: Choose a range within the available extent
|
|
717
|
+
| `range-not-satisfiable` | 416 | The range lies outside the available extent (a line before 1, past the end, or a column outside its line; a result page names the unit it pages). Recovery: Choose a range within the available extent. Some refusals state the extent or show the working form of the construct instead; none rebuilds the input into another scope ({§diagnostic-observation}): a result position outside its page the page's bound (`Choose positions within 1..3.`), a region holding a zero line or column the counting rule of {§text-scope-semantics} (`Lines and columns count from 1.`), an inverted region the form's order (`An exact region names its earlier position first: <SL,SC,EL,EC>.`), a `<-N,-1>` range the line extent (`-1 is the only position counted from the end; lines run 1..92.`), and a line range from 0 the line forms ({§range-starts-at-one}). |
|
|
693
718
|
| `overlapping-edits` | 409 | Two EDIT regions overlap, or a whole-resource replacement cannot coexist with another EDIT. Recovery: Submit the whole-resource replacement by itself. |
|
|
694
719
|
| `invalid-expression` | 400 | The *dialect* matcher expression is invalid. Recovery: Revise the matcher expression. |
|
|
695
720
|
| `unsupported-dialect` | 415 | The *dialect* matcher is not supported for *mimetype*. Recovery: Use a matcher supported by the resource mimetype. |
|
|
@@ -698,6 +723,6 @@ and its `recovery` distinguishes replying from concluding the loop:
|
|
|
698
723
|
|
|
699
724
|
| sentence | arises when |
|
|
700
725
|
|---|---|
|
|
701
|
-
| `Range <0,end>` starts at 0, which is not a line; lines are numbered from 1 and 0 is only the prepend position.
|
|
726
|
+
| `Range <0,end>` starts at 0, which is not a line; lines are numbered from 1 and 0 is only the `<0>` prepend position. Recovery: `<L,M>` selects lines L through M; `<0>` prepends and `<-1>` appends without replacing anything. / `Range <0,end>` starts at 0; *unit* positions are numbered from 1. | a range whose start is 0 ({§range-starts-at-one}) |
|
|
702
727
|
| [metadata] must be a JSON array of option objects. | a metadata modifier that is not an array of objects |
|
|
703
728
|
| A scope requires one position or an inclusive two-position range. | a scope of unsupported arity |
|
package/dist/Manifest.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const WRITERS = new Set(["model", "client", "_plurnk"
|
|
1
|
+
const WRITERS = new Set(["model", "client", "_plurnk"]);
|
|
2
2
|
const CATEGORIES = new Set(["data", "logging", "control"]);
|
|
3
3
|
const AUTHORITIES = new Set(["namespace", "resource"]);
|
|
4
4
|
const MANIFEST_FIELD_NAMES = new Set(Object.keys({
|
package/dist/Manifest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Manifest.js","sourceRoot":"","sources":["../src/Manifest.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,GAAG,IAAI,GAAG,CAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"Manifest.js","sourceRoot":"","sources":["../src/Manifest.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,GAAG,IAAI,GAAG,CAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;AACpE,MAAM,UAAU,GAAG,IAAI,GAAG,CAA6B,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;AACvF,MAAM,WAAW,GAAG,IAAI,GAAG,CAAkB,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC;AACxE,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAAS,MAAM,CAAC,IAAI,CAAC;IACrD,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;IACd,cAAc,EAAE,IAAI;IACpB,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE,IAAI;IAChB,QAAQ,EAAE,IAAI;IACd,YAAY,EAAE,IAAI;IAClB,YAAY,EAAE,IAAI;IAClB,cAAc,EAAE,IAAI;IACpB,gBAAgB,EAAE,IAAI;IACtB,WAAW,EAAE,IAAI;IACjB,MAAM,EAAE,IAAI;IACZ,aAAa,EAAE,IA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AI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;eAClB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;eACvE,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,MAAM,EAAE,CAAC;YAC1C,MAAM,IAAI,KAAK,CAAC,WAAW,IAAI,6DAA6D,CAAC,CAAC;QAClG,CAAC;IACL,CAAC;CACJ"}
|
package/dist/MessageScheme.js
CHANGED
|
@@ -6,14 +6,14 @@ export default class MessageScheme {
|
|
|
6
6
|
constructor(name) {
|
|
7
7
|
this.manifest = {
|
|
8
8
|
name, authority: "resource", category: "data", channels: { body: "text/markdown" },
|
|
9
|
-
defaultChannel: "body", writableBy: ["model", "client", "
|
|
9
|
+
defaultChannel: "body", writableBy: ["model", "client", "_plurnk"],
|
|
10
10
|
volatile: false, modelVisible: true, folderScopes: true, textEditScopes: false,
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
async resolveEntryAddress(target, _ctx, access = "read") {
|
|
14
|
-
// {§message-immutable
|
|
14
|
+
// {§message-immutable} — immutable evidence is neither a reply nor a lifecycle control.
|
|
15
15
|
if (access === "write")
|
|
16
|
-
return Results.failure(`scheme:${this.manifest.name}`, "message-immutable", 405, `\`${target.raw}\` is a received message; it cannot be edited, moved or killed.`, {}, { retryable: false
|
|
16
|
+
return Results.failure(`scheme:${this.manifest.name}`, "message-immutable", 405, `\`${target.raw}\` is a received message; it cannot be edited, moved or killed.`, {}, { retryable: false });
|
|
17
17
|
if (target.kind !== "url")
|
|
18
18
|
return null;
|
|
19
19
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageScheme.js","sourceRoot":"","sources":["../src/MessageScheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA2D,MAAM,0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EAChF,EAAE,EACF,EAAE,SAAS,EAAE,KAAK,EAAE,CACvB,CAAC;QACF,IAAI,MAAM,CAAC,IAAI,KAAK,KAAK;YAAE,OAAO,IAAI,CAAC;QACvC,OAAO;YACH,SAAS,EAAE,MAAM,CAAC,QAAQ,IAAI,EAAE;YAChC,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;SACzG,CAAC;IACN,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAC,OAAyC,EAAE,GAAc;QACjF,OAAO,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,UAAyB,EAAE,GAAc;QACvD,OAAO,GAAG,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;IAClC,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,SAAwB,EAAE,GAAc;QAC/C,OAAO,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IACzC,CAAC;CACJ"}
|
package/dist/OutputScheme.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// read-only-output default. So the `sh` runtime gets `sh://` for free, and a multi-tag
|
|
6
6
|
// executor derives a distinct manifest per tag.
|
|
7
7
|
export default class OutputScheme {
|
|
8
|
-
// {§executor-scheme-output}: read-only model access to
|
|
8
|
+
// {§executor-scheme-output}: read-only model access to extension-produced data.
|
|
9
9
|
// Per-call output mimetypes override the declared channel seeds at stream time.
|
|
10
10
|
static manifestFromRuntime(decl) {
|
|
11
11
|
return {
|
|
@@ -14,7 +14,7 @@ export default class OutputScheme {
|
|
|
14
14
|
channels: decl.channels,
|
|
15
15
|
defaultChannel: decl.defaultChannel,
|
|
16
16
|
category: "data",
|
|
17
|
-
writableBy: [
|
|
17
|
+
writableBy: [],
|
|
18
18
|
volatile: true,
|
|
19
19
|
modelVisible: true,
|
|
20
20
|
folderScopes: true,
|
package/dist/OutputScheme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutputScheme.js","sourceRoot":"","sources":["../src/OutputScheme.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,kCAAkC;AAClC,4EAA4E;AAC5E,4EAA4E;AAC5E,uFAAuF;AACvF,gDAAgD;AAchD,MAAM,CAAC,OAAO,OAAO,YAAY;IAC7B,
|
|
1
|
+
{"version":3,"file":"OutputScheme.js","sourceRoot":"","sources":["../src/OutputScheme.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,kCAAkC;AAClC,4EAA4E;AAC5E,4EAA4E;AAC5E,uFAAuF;AACvF,gDAAgD;AAchD,MAAM,CAAC,OAAO,OAAO,YAAY;IAC7B,gFAAgF;IAChF,gFAAgF;IAChF,MAAM,CAAC,mBAAmB,CAAC,IAAiB;QACxC,OAAO;YACH,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,QAAQ,EAAE,MAAM;YAChB,UAAU,EAAE,EAAE;YACd,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,IAAI;YAClB,YAAY,EAAE,IAAI;YAClB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,MAAM,EAAE,IAAI,CAAC,MAAM;SACtB,CAAC;IACN,CAAC;CACJ"}
|
package/dist/Results.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export interface SchemeResult {
|
|
|
13
13
|
readonly status: number;
|
|
14
14
|
readonly problem?: ProblemDetails;
|
|
15
15
|
readonly scopeNormalizations?: ReadonlyArray<ScopeNormalization>;
|
|
16
|
-
readonly error?: never;
|
|
17
16
|
readonly [field: string]: unknown;
|
|
18
17
|
}
|
|
19
18
|
export interface SchemeResultBase extends SchemeResult {
|
package/dist/Results.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Results.d.ts","sourceRoot":"","sources":["../src/Results.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,2BAA2B,EAG3B,KAAK,cAAc,EACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,YAAY,EAAE,cAAc,EAAE,CAAC;AAC/B,OAAO,EAAE,2BAA2B,EAAE,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAC7B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACtD,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CACjE,GAAG;IACA,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IACzC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;CAC5C,CAAC;AAEF,MAAM,WAAW,YAAY;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC;IAClC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;IACjE,QAAQ,
|
|
1
|
+
{"version":3,"file":"Results.d.ts","sourceRoot":"","sources":["../src/Results.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,2BAA2B,EAG3B,KAAK,cAAc,EACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,YAAY,EAAE,cAAc,EAAE,CAAC;A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CAAM,GACnD,YAAY,CAMd;IAED,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,cAAc,CAExE;IAED,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,OAAO,GAAG,aAAa,CA4B3D;IAED,MAAM,CAAC,uBAAuB,CAAC,QAAQ,EAAE,OAAO,GAAG,aAAa,CAAC,aAAa,CAAC,CAM9E;IAED,MAAM,CAAC,gBAAgB,CAAC,CAAC,SAAS,YAAY,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAU5D;IAED,MAAM,CAAC,+BAA+B,CAAC,CAAC,SAAS,+BAA+B,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAyB9F;IAED,MAAM,CAAC,2BAA2B,CAAC,CAAC,SAAS,qBAAqB,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAehF;IAED,MAAM,CAAC,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,CAAC,kBAAkB,CAAC,CA6ClF;IAED,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,YAAY,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAMlD;IAED,MAAM,CAAC,cAAc,CAAC,CAAC,SAAS,YAAY,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC,CAI5E;CACJ"}
|
package/dist/Results.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Results.js","sourceRoot":"","sources":["../src/Results.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,2BAA2B,EAC3B,QAAQ,EACR,SAAS,GAEZ,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EAAE,2BAA2B,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"Results.js","sourceRoot":"","sources":["../src/Results.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,2BAA2B,EAC3B,QAAQ,EACR,SAAS,GAEZ,MAAM,0BAA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AAO,CAAC,SAAS,CAAC;mBACtB,SAAS,CAAC,MAAM,KAAK,CAAC;mBACtB,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,EAC3C,CAAC;gBACC,MAAM,IAAI,SAAS,CAAC,wEAAwE,CAAC,CAAC;YAClG,CAAC;YACD,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,UAAU,CAAC,EAAE,CAAC;gBAC3E,MAAM,IAAI,SAAS,CAAC,uFAAuF,CAAC,CAAC;YACjH,CAAC;QACL,CAAC;QACD,OAAO,KAA0C,CAAC;IACtD,CAAC;IAED,MAAM,CAAC,MAAM,CAAyB,MAAS;QAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,KAAK,CAAC,mBAAmB,KAAK,SAAS,EAAE,CAAC;YAC1C,OAAO,CAAC,yBAAyB,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;QACjE,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,MAAM,CAAC,cAAc,CAAyB,MAAS,EAAE,QAAgB;QACrE,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS;YAAE,OAAO,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAChE,MAAM,CAAC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACnC,OAAO,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemeDiscovery.d.ts","sourceRoot":"","sources":["../src/SchemeDiscovery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"SchemeDiscovery.d.ts","sourceRoot":"","sources":["../src/SchemeDiscovery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAwB,MAAM,qBAAqB,CAAC;AAyBrF,MAAM,WAAW,UAAU;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAM7B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,qBAAqB;IAClC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAC5C,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAClD,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC3C;AAED,MAAM,WAAW,eAAe;IAC5B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7C,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CACjC;AAOD,MAAM,CAAC,OAAO,OAAO,eAAe;;IAChC,OAAa,QAAQ,CAAC,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAoCnF;CAoDJ"}
|