@plurnk/plurnk-schemes 3.3.3 → 3.3.5
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 +10 -23
- package/SPEC.md +10 -14
- package/dist/ByteSource.js.map +1 -1
- package/dist/EntryCoordinates.js.map +1 -1
- package/dist/Manifest.d.ts.map +1 -1
- package/dist/Manifest.js +1 -2
- package/dist/Manifest.js.map +1 -1
- package/dist/Matcher.js.map +1 -1
- package/dist/MessageAttachments.d.ts +2 -2
- package/dist/MessageAttachments.d.ts.map +1 -1
- package/dist/MessageAttachments.js +6 -12
- package/dist/MessageAttachments.js.map +1 -1
- package/dist/MessageScheme.js.map +1 -1
- package/dist/MimetypeClassifier.js.map +1 -1
- package/dist/NetworkAddress.js.map +1 -1
- package/dist/OutputScheme.js.map +1 -1
- package/dist/PacketSections.js.map +1 -1
- package/dist/ResourceNames.js.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 +2 -2
- package/dist/SchemeDiscovery.js.map +1 -1
- package/dist/Slicer.d.ts +6 -1
- package/dist/Slicer.d.ts.map +1 -1
- package/dist/Slicer.js +30 -27
- package/dist/Slicer.js.map +1 -1
- package/dist/Summarize.js.map +1 -1
- package/dist/WebMaterialization.d.ts +1 -2
- package/dist/WebMaterialization.d.ts.map +1 -1
- package/dist/WebMaterialization.js.map +1 -1
- package/dist/ctx.d.ts +1 -1
- package/dist/ctx.d.ts.map +1 -1
- package/dist/ctx.js.map +1 -1
- package/dist/edit-receipt.js.map +1 -1
- package/dist/handler.d.ts +1 -1
- package/dist/handler.d.ts.map +1 -1
- package/dist/handler.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +0 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +5 -5
- package/dist/MetadataOptions.d.ts +0 -13
- package/dist/MetadataOptions.d.ts.map +0 -1
- package/dist/MetadataOptions.js +0 -55
- package/dist/MetadataOptions.js.map +0 -1
package/dist/ctx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ctx.d.ts","sourceRoot":"","sources":["../src/ctx.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EACR,wBAAwB,EACxB,2BAA2B,EAC3B,aAAa,EACb,WAAW,EACX,aAAa,EACb,eAAe,EACf,sBAAsB,EAAC,UAAU,EACpC,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACvF,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAGlG,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,SAAS,CAAC;AACxD,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,oBAAoB,CAAC;AAGtE,MAAM,WAAW,SAAS;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE;QAC9B,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,UAAU,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,YAAY,CAAC;QACrB,cAAc,CAAC,EAAE,qBAAqB,CAAC;KAC1C,CAAC,CAAC;IAGH,QAAQ,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAC3D;AAID,MAAM,WAAW,eAAe;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE;QAC9B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AO,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CACxC;QAAE,QAAQ,CAAC,WAAW,EAAE,SAAS,CAAC,eAAe,GAAG,sBAAsB,CAAC,EAAE,CAAA;KAAE,GAAG;QAAE,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAA;KAAE,CACvH,CAAC;CACL;AAWD,MAAM,WAAW,oBAAoB;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAGvB,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC;IAC1D,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACrD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAClD;AAED,MAAM,WAAW,aAAa;IAC1B,eAAe,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,EAAE,SAAS,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAChG"}
|
package/dist/ctx.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ctx.js","sourceRoot":"","sources":["../src/ctx.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,+EAA+E;AAC/E,0EAA0E;AAC1E,wEAAwE;AACxE,yCAAyC"}
|
|
1
|
+
{"version":3,"file":"ctx.js","sourceRoot":"","sources":["../src/ctx.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,+EAA+E;AAC/E,0EAA0E;AAC1E,wEAAwE;AACxE,yCAAyC","sourcesContent":["// Stable context for trusted `@plurnk/plurnk-schemes-*` extensions. This is a\n// semantic compatibility boundary, not a sandbox: installed Node.js extensions\n// already have host-process authority. The interfaces keep extension code\n// independent of database schemas and private service modules while the\n// consumer injects their implementation.\n\nimport type { WriterTier } from \"./types.ts\";\nimport type {\n ClientInteractionRequest,\n ClientInteractionResolution,\n FindStatement,\n RangeExtent,\n SendStatement,\n MessageResource,\n MessageResourceReceipt,TextRegion\n} from \"@plurnk/plurnk-contracts\";\nimport type { ChannelProducerResult, MatchEvidence, SchemeResult } from \"./Results.ts\";\nimport type { EditBatchReceipt, EditBatchResult, ResolvedEditStatement } from \"./edit-receipt.ts\";\n// Channel streaming-lifecycle state. Metadata, not an engine gate\n// (service SPEC {§channels}).\nexport type TerminalChannelState = \"closed\" | \"errored\";\nexport type ChannelState = \"static\" | \"active\" | TerminalChannelState;\n\n// Entry write shape. Omitting state selects the consumer's `static` default.\nexport interface EntryData {\n readonly channels: Record<string, {\n content: string;\n bytes?: Uint8Array;\n mimetype: string;\n state?: ChannelState;\n producerResult?: ChannelProducerResult;\n }>;\n // Scheme-private durable metadata. It is never projected as resource\n // content, catalog fields, or client entry data.\n readonly attributes?: Readonly<Record<string, unknown>>;\n}\n\n// Entry read shape. Lifecycle is part of the stored channel representation,\n// not private database metadata, so successful reads never omit it.\nexport interface StoredEntryData {\n readonly channels: Record<string, {\n content: string;\n mimetype: string;\n state: ChannelState;\n producerResult?: ChannelProducerResult;\n }>;\n readonly attributes?: Readonly<Record<string, unknown>>;\n}\n\n// Every entry is a resource in the calling workspace, independently of its actor.\nexport interface EntryAddress {\n readonly authority: string;\n readonly pathname: string;\n}\n\nexport interface EntryEditResult extends EditBatchResult {\n readonly entryId: number | null;\n readonly channel: string | null;\n}\n\nexport interface EntryReadResult extends SchemeResult {\n readonly terminal?: boolean;\n readonly content: string | null;\n readonly mimetype: string | null;\n readonly channel: string | null;\n readonly startLine?: number | null;\n readonly region?: TextRegion;\n readonly matches?: ReadonlyArray<MatchEvidence>;\n readonly range?: RangeExtent;\n readonly reason?: string;\n}\n\nexport type EntryStreamLifecycle =\n | { readonly state: \"active\"; readonly seconds: number }\n | { readonly state: \"closed\" | \"killed\" | \"failed\"; readonly status: number };\n\nexport interface EntryCatalogChannel {\n readonly path: string;\n readonly mimetype: string;\n readonly sourceMimetype?: string;\n readonly weight: number;\n readonly lines: number;\n // {§find} the channel's one-line orientation, clipped; absent when it has none.\n readonly aside?: string;\n readonly parseIssues?: number;\n}\n\nexport interface EntryCatalogDefaultChannel extends EntryCatalogChannel {\n readonly stream?: EntryStreamLifecycle;\n readonly matchLocationCount?: number;\n}\n\nexport type EntryCatalogItem = readonly [EntryCatalogDefaultChannel, ...EntryCatalogChannel[]];\n\nexport interface EntryCatalogScope {\n readonly path: string;\n readonly items: number;\n readonly weight: number;\n}\n\nexport type EntryCatalogScopeGroup = readonly [EntryCatalogScope];\n\nexport interface EntryFindResult extends SchemeResult {\n readonly content: string | null;\n readonly mimetype: string | null;\n readonly results: ReadonlyArray<EntryCatalogItem | EntryCatalogScopeGroup | MatchEvidence>;\n readonly itemsWeightTotal: number;\n readonly returnedItemsWeightTotal: number;\n readonly matchingPathCount: number;\n readonly matchLocationCount: number;\n readonly range?: RangeExtent;\n}\n\nexport interface EntryOperationCaps {\n editBatch(statements: readonly ResolvedEditStatement[]): Promise<EntryEditResult>;\n find(statement: FindStatement): Promise<EntryFindResult>;\n send(statement: SendStatement): Promise<SchemeResult>;\n}\n\n// ── entries ──────────────────────────────────────────────────────────────\n// {§scheme-operation-dispatch} — direct storage over the scheme's own namespace plus the\n// standard PLURNK entry-op implementation. A scheme may use these semantics or\n// implement an op itself.\nexport interface EntryStorageReadResult extends SchemeResult {\n readonly entry: StoredEntryData | null;\n}\n\nexport interface EntryStorageWriteResult extends SchemeResult {\n readonly created: boolean;\n readonly entryId: number | null;\n}\n\nexport interface EntryCaps {\n readonly operations: EntryOperationCaps;\n address(pathname: string): Promise<string>;\n read(pathname: string): Promise<EntryStorageReadResult>;\n write(pathname: string, entry: EntryData): Promise<EntryStorageWriteResult>;\n delete(pathname: string, channel?: string): Promise<SchemeResult>;\n}\n\n// ── channels ─────────────────────────────────────────────────────────────\n// Per-channel content writes + state transitions. `append` and `replace` are\n// distinct because channels are append-only content stores (service SPEC: channel semantics) but\n// EDIT replaces; the impl enforces which ops a channel permits. `setState`\n// drives the static/active/closed/errored lifecycle the model reads between\n// turns. Wraps `ChannelWrite`.\nexport interface ChannelCaps {\n append(pathname: string, channel: string, content: string): Promise<SchemeResult>;\n replace(pathname: string, channel: string, content: string): Promise<SchemeResult>;\n setState(pathname: string, channel: string, state: ChannelState): Promise<SchemeResult>;\n}\n\n// ── notify ───────────────────────────────────────────────────────────────\n// Out-of-band, between-turn signal to clients — today's `streamEventNotify`\n// hook. NOT model-facing: the model is turn-based and sees channel state at\n// the next boundary (service SPEC: between-turn notify). `streamEvent` is metadata-only (never\n// content).\n//\n// Wake delivery belongs to lifecycle settlement, not this metadata notification:\n// subscriptions.close for streams.\nexport interface NotifyCaps {\n streamEvent(pathname: string, channel: string, state: ChannelState, contentLength: number): void;\n}\n\n// ── projection ───────────────────────────────────────────────────────────\n// Ask the consumer's configured mimetype framework for the model-facing text\n// projection of acquired content. Acquiring schemes produce source representations; they do\n// not select or instantiate the readers. Keeping that reader capability\n// on the consumer makes direct READ and executor-prefetch use the same\n// configured projection instead of shipping raw HTML down one path. A returned\n// object is a present projection even when content is empty; null alone means\n// the requested projection is absent.\nexport interface ProjectedText {\n content: string;\n mimetype: string;\n sourceMimetype: string;\n projectionIdentity: string;\n}\n\nexport interface ProjectedBinary {\n readonly bytes: Uint8Array;\n readonly readable: ProjectedText | null;\n readonly projectionIdentity: string;\n}\n\nexport interface ProjectionCaps {\n readable(content: string, mimetype: string): Promise<ProjectedText | null>;\n binary(chunks: AsyncIterable<Uint8Array>, mimetype: string): Promise<ProjectedBinary>;\n identity(mimetype: string): Promise<string>;\n isBinary(mimetype: string): Promise<boolean>;\n parseIssues(content: string, mimetype: string): Promise<number | undefined>;\n}\n\n// ── client interactions ─────────────────────────────────────────────────\n// A handler may await one client-owned response without knowing how a client\n// transport presents or resumes it. Core owns identity, reconnect discovery,\n// cancellation, and settlement; owner-private continuation state stays in the\n// awaiting handler rather than crossing this boundary.\nexport interface InteractionCaps {\n request(request: ClientInteractionRequest, signal?: AbortSignal): Promise<ClientInteractionResolution>;\n}\n\n// ── subscriptions ────────────────────────────────────────────────────────\n// The one retainable capability returned by subscription acquisition. It is\n// still the composed AbortSignal used by existing streaming schemes, while its\n// methods bound all post-return work to this exact durable subscription.\nexport interface StreamSubscription extends AbortSignal {\n // FUSED append-and-notify: write the chunk to the named channel AND fire\n // stream/event in one call. Optional `mimetype` retypes the channel to the\n // content's actual per-call type ({§capability-ctx}).\n notifyChunk(channel: string, chunk: string, mimetype?: string): Promise<void>;\n\n // Settle the subscription: validate and persist the exact universal\n // operation result, derive channel state, and fire the session wake. Exact\n // named channel results override the universal result.\n close(\n result: ChannelProducerResult,\n summary?: string,\n channelResults?: Readonly<Record<string, ChannelProducerResult>>,\n ): Promise<void>;\n}\n\n// The streaming lifecycle (service SPEC: streaming). The registered-vs-content\n// split is hidden here: a sibling acquires and retains one lifecycle object,\n// not the consumer's persistence substrates or its per-dispatch context. Only\n// the StreamSubscription returned by open may be retained after the handler\n// returns ({§capability-ctx}).\nexport interface SubscriptionCaps {\n // Register the subscription for cancel routing and return the signal the\n // sibling should await for teardown. The returned AbortSignal is the session\n // signal COMPOSED WITH this subscription's own teardown — it fires on\n // `loop.cancel` OR local teardown (connection drop). Await this, not\n // ctx.signal (which it subsumes). `handle` is the force-cancel hook the\n // engine's cancel router invokes to tear the subscription down from\n // OUTSIDE (exec's kill handle; http's socket-abort) — the active\n // counterpart to the passive signal.\n // Core binds the operation's selected channel into this capability. The\n // producer persists every channel but cannot reinterpret which one the\n // authored operation publishes.\n open(pathname: string, handle: SubscriptionHandle): Promise<StreamSubscription>;\n}\n\n// The force-cancel hook a streaming scheme hands to `open`. The engine's\n// cancel router invokes it to tear down from outside.\nexport interface SubscriptionHandle {\n cancel(): void | Promise<void>;\n}\n\n// ── the context ──────────────────────────────────────────────────────────\n// Fresh per op-call. A sibling MUST NOT retain it past the handler return\n// ({§capability-ctx}). Identity/lifecycle fields carry the engine's per-dispatch\n// coordinates.\nexport interface SchemeAddressCtx {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly loopId: number;\n readonly turnId: number;\n readonly writer: WriterTier;\n // Loop-scoped abort. Streaming schemes await the composed signal from\n // `subscriptions.open` instead, which subsumes this.\n readonly signal: AbortSignal | undefined;\n // The operation row an accepted application settles, so a scheme can keep what it did on that\n // row ({§log-wire-format}); absent outside proposal application.\n readonly logEntryId?: number;\n}\n\nexport interface SchemeCtx extends SchemeAddressCtx {\n readonly entries: EntryCaps;\n readonly channels: ChannelCaps;\n readonly notify: NotifyCaps;\n readonly projection: ProjectionCaps;\n readonly interactions: InteractionCaps;\n readonly subscriptions: SubscriptionCaps;\n readonly resources: ResourceCaps;\n readonly messages: MessageCaps;\n}\n\nexport interface MessageCaps {\n /** Materialize immutable accepted messages in this scheme; an exact target returns 404 if absent. */\n prepare(target?: string): Promise<SchemeResult>;\n /** Deliver a reply to one retained message, preserving normal SEND validation and receipts. */\n reply(statement: SendStatement): Promise<SchemeResult>;\n}\n\nexport interface ResourceCaps {\n capture(targets: readonly string[]): Promise<\n { readonly attachments: readonly (MessageResource & MessageResourceReceipt)[] } | { readonly failure: SchemeResult }\n >;\n}\n\n// ── proposals (NOT a capability) ─────────────────────────────────────────\n// A side-effecting scheme proposes by RETURNING a ProposalResult (status\n// 202) from its op handler — no injected capability. The engine owns the\n// resolution lifecycle (client review, loop accept/reject, timeout) and it is\n// invisible to the sibling: on reject the actor sees an\n// ordinary 4xx, never the orchestration. The ONLY sibling-side surface is an\n// optional handler hook the engine calls when a proposal is accepted. Its\n// request carries the persisted scheme attrs and resolver-approved body; its\n// result reports the applied outcome.\nexport interface ProposalApplyRequest {\n readonly attrs: object;\n // Exact statement-level request headers survive the in-process proposal\n // pause without entering client-visible attrs or durable operation evidence.\n readonly headers: Readonly<Record<string, string>> | null;\n readonly body?: string;\n}\n\nexport interface ProposalApplyResult extends SchemeResult {\n readonly outcome?: string;\n readonly body?: string;\n readonly result?: object;\n readonly editReceipt?: EditBatchReceipt | null;\n}\n\nexport interface ProposalAware {\n applyResolution(request: ProposalApplyRequest, ctx: SchemeCtx): Promise<ProposalApplyResult>;\n}\n"]}
|
package/dist/edit-receipt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-receipt.js","sourceRoot":"","sources":["../src/edit-receipt.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"edit-receipt.js","sourceRoot":"","sources":["../src/edit-receipt.ts"],"names":[],"mappings":"","sourcesContent":["import type { EditStatement, LineMarker } from \"@plurnk/plurnk-contracts\";\nimport type { SchemeResult } from \"./Results.ts\";\n\n// Scheme handlers receive EDIT only after core has lowered every model-facing\n// line anchor. This type makes the extension boundary incapable of carrying an\n// unresolved anchor. Body syntax has likewise been prepared by core; a handler\n// applies the supplied replacement literally, including at a zero-width span.\nexport type ResolvedEditStatement = Omit<EditStatement, \"lineMarker\"> & {\n readonly lineMarker: LineMarker | null;\n};\n\nexport type EditReceiptUnit = \"lines\" | \"codePoints\";\n\nexport interface ParseIssueTransition {\n readonly before: number;\n readonly after: number;\n}\n\nexport interface EditEffectReceipt {\n readonly requested: string;\n readonly source: string;\n readonly result: string;\n readonly removed: number;\n readonly inserted: number;\n readonly context: string;\n // A pure deletion's removed text (bounded), so it can be reversed from its receipt alone.\n readonly removedText?: string;\n}\n\ninterface EditReceiptHead {\n readonly revision: string;\n readonly unit: EditReceiptUnit;\n readonly before: number;\n readonly after: number;\n readonly parseIssues?: ParseIssueTransition;\n}\n\nexport interface AppliedEditBatchReceipt extends EditReceiptHead {\n readonly effects: readonly EditEffectReceipt[];\n}\n\nexport interface ReviewerReplacementEditBatchReceipt extends EditReceiptHead {\n readonly disposition: \"reviewer-replaced\";\n readonly superseded: readonly string[];\n readonly replacement: EditEffectReceipt;\n}\n\nexport type EditBatchReceipt =\n | AppliedEditBatchReceipt\n | ReviewerReplacementEditBatchReceipt;\n\nexport interface AppliedEditReceipt extends EditReceiptHead {\n readonly effect: EditEffectReceipt;\n}\n\nexport interface SupersededEditReceipt extends EditReceiptHead {\n readonly disposition: \"superseded\";\n readonly requested: string;\n readonly replacement?: EditEffectReceipt;\n}\n\nexport type EditReceipt = AppliedEditReceipt | SupersededEditReceipt;\n\nexport interface EditBatchResult extends SchemeResult {\n readonly editReceipt?: EditBatchReceipt | null;\n}\n"]}
|
package/dist/handler.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type { SchemeManifest, EntryCoordinate } from "./types.ts";
|
|
|
8
8
|
import type { ByteSource } from "./ByteSource.ts";
|
|
9
9
|
export interface RepresentationPreparationRequest {
|
|
10
10
|
readonly target: ParsedPath;
|
|
11
|
-
readonly
|
|
11
|
+
readonly headers: Readonly<Record<string, string>> | null;
|
|
12
12
|
readonly authority: string;
|
|
13
13
|
readonly pathname: string;
|
|
14
14
|
}
|
package/dist/handler.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EACR,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,UAAU,EACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,KAAK,EAAE,+BAA+B,EAAE,YAAY,EAAE,MA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MAAM,EAAE,CAAC,CAAC;IACnC,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,UAAU,CAAC;CAC9C;AAED,MAAM,WAAW,kBAAkB;IAC/B,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAG9D,OAAO,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,GAAG,+BAA+B,GAAG,IAAI,CAAC;CAC9F;AAED,MAAM,WAAW,4BAA4B;IACzC,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvF"}
|
package/dist/handler.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,gFAAgF;AAChF,mEAAmE;AACnE,sEAAsE;AACtE,6EAA6E;AAC7E,8EAA8E;AAC9E,qCAAqC;AACrC,6EAA6E;AAC7E,gFAAgF;AAChF,0DAA0D;AAC1D,EAAE;AACF,6EAA6E;AAC7E,8EAA8E;AAC9E,+EAA+E;AAC/E,gFAAgF;AAChF,gFAAgF"}
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,gFAAgF;AAChF,mEAAmE;AACnE,sEAAsE;AACtE,6EAA6E;AAC7E,8EAA8E;AAC9E,qCAAqC;AACrC,6EAA6E;AAC7E,gFAAgF;AAChF,0DAA0D;AAC1D,EAAE;AACF,6EAA6E;AAC7E,8EAA8E;AAC9E,+EAA+E;AAC/E,gFAAgF;AAChF,gFAAgF","sourcesContent":["// The scheme BEHAVIOR contract — the typed counterpart to SchemeManifest\n// (which types a scheme's declaration). A handler implements a method per op it\n// supports, named for the lowercased op (SEND → send, FIND → find,\n// …). Log curation is deliberately absent: core routes the log's KILL\n// only to its log owner. Core owns every READ: stored schemes inherit it and\n// other readable schemes provide a scope-blind representation first. FIND may\n// still be candidate-store-specific.\n// Every method is therefore OPTIONAL — a scheme implements only its distinct\n// surface. Operation methods share `(statement, ctx) => Promise<SchemeResult>`;\n// preparation hooks deliberately receive narrower inputs.\n//\n// `implements SchemeHandler` gives a sibling compile-time checking of its op\n// signatures instead of the duck-typed `object` the engine falls back to. The\n// per-op statement types are re-exported from the barrel, so a sibling depends\n// on (and exact-pins) ONLY @plurnk/plurnk-schemes — grammar rides underneath as\n// the framework's transitive pin, not a second pin every scheme tracks by hand.\n\n// This interface contains only operations the engine delegates to one scheme.\n// COPY and MOVE are engine-owned compositions over entry capabilities and\n// editBatch, not overridable handler methods.\nimport type {\n FindStatement,\n SendStatement,\n ExecStatement,\n KillStatement,\n ParsedPath,\n} from \"@plurnk/plurnk-contracts\";\nimport type { ExtensionAttributionSource } from \"@plurnk/plurnk-meta\";\nimport type { EntryAddress, ProposalApplyRequest, ProposalApplyResult, SchemeAddressCtx, SchemeCtx } from \"./ctx.ts\";\nimport type { WebMaterializer } from \"./WebMaterialization.ts\";\nimport type { EditBatchResult, ResolvedEditStatement } from \"./edit-receipt.ts\";\nimport type { RepresentationPreparationResult, SchemeResult } from \"./Results.ts\";\nimport type { SchemeManifest, EntryCoordinate } from \"./types.ts\";\nimport type { ByteSource } from \"./ByteSource.ts\";\n\nexport interface RepresentationPreparationRequest {\n readonly target: ParsedPath;\n readonly headers: Readonly<Record<string, string>> | null;\n readonly authority: string;\n readonly pathname: string;\n}\n\nexport interface SchemeHandler extends ExtensionAttributionSource {\n // Per-instance manifest option. Every handler must expose either this or a\n // class-level `static manifest`; Manifest.of validates the resolved value at\n // registration. Per-tag executor schemes derive this instance value from\n // their runtime declaration ({§network-address}).\n readonly manifest?: SchemeManifest;\n\n // Optional process hooks under {§scheme-operation-dispatch}: readiness precedes\n // advertisement; shutdown follows dispatch drain and precedes store closure.\n // Both run once per unique handler object identity.\n ready?(): Promise<void>;\n close?(): Promise<void>;\n\n // {§scheme-operation-dispatch}: the handler that acquires and materializes web resources\n // publishes it here; the entry sink resolves it through the registry, never a package by name.\n readonly webMaterializer?: WebMaterializer;\n applyResolution?(request: ProposalApplyRequest, ctx: SchemeCtx): Promise<ProposalApplyResult>;\n\n // Resolve a client-visible address through the same pathname rules as this\n // scheme's model-facing operations. The capability-free address context\n // prevents storage access before Core binds the resource.\n // null means no resolvable resource. An expected protocol/authority refusal\n // returns its exact non-success result instead of losing it to a generic miss.\n // {§line-anchors}: READ also checks model write eligibility here;\n // resolution observes authority without mutation, acquisition, or proposals.\n resolveEntryAddress?(\n target: ParsedPath,\n ctx: SchemeAddressCtx,\n access?: \"read\" | \"write\",\n ): Promise<EntryAddress | SchemeResult | null>;\n\n // Entry-bearing schemes receive the standard resource-selection\n // implementation from the consumer. A scheme implements this hook only\n // when the requested target must be discovered or materialized before FIND\n // selects stored entries.\n prepareFind?(statement: FindStatement, ctx: SchemeCtx): Promise<SchemeResult>;\n // Exact-resource acquisition receives an already-resolved pathname and a\n // target stripped of channel selection. Operation-specific READ/FIND/COPY\n // intent and scope are never available. Core binds ctx capabilities to the\n // resolved owner, then owns selection and projection after readiness.\n prepareRepresentation?(\n request: RepresentationPreparationRequest,\n ctx: SchemeCtx,\n ): Promise<RepresentationPreparationResult>;\n byteSource?(address: EntryCoordinate, ctx: SchemeAddressCtx): ByteSource;\n find?(statement: FindStatement, ctx: SchemeCtx): Promise<SchemeResult>;\n editBatch?(statements: readonly ResolvedEditStatement[], ctx: SchemeCtx): Promise<EditBatchResult>;\n send?(statement: SendStatement, ctx: SchemeCtx): Promise<SchemeResult>;\n exec?(statement: ExecStatement, ctx: SchemeCtx): Promise<SchemeResult>;\n kill?(statement: KillStatement, ctx: SchemeCtx): Promise<SchemeResult>;\n}\n\n// {§resource-tree-scheme} — what a daemon module contributes to the scheme kind: a scheme handler,\n// or a scheme facet over a runtime's own resources. The base module contract is\n// `@plurnk/plurnk-modules` ({§module-seam-slices}).\n//\n// A module-owned runtime may expose protocol resources under the same scheme name as its output\n// streams. The facet claims only its own path subtree, and there it is the scheme's whole live\n// half: every operation it implements is its own. Unclaimed coordinates retain the standard\n// executor-output behavior.\nexport interface RuntimeSchemeFacet {\n claims(pathname: string): boolean;\n // The representation of the claimed resources where it is not the executor's own output\n // contract: whether the URI authority names the resource, their channels, the one a\n // fragmentless address reads and a subscription publishes, and who may write them. `claims`\n // always sees the authority folded into the pathname.\n readonly manifest?: Partial<Pick<SchemeManifest, \"authority\" | \"channels\" | \"defaultChannel\" | \"writableBy\">>;\n prepareRepresentation?(\n request: RepresentationPreparationRequest,\n ctx: SchemeCtx,\n ): Promise<RepresentationPreparationResult>;\n prepareFind?(statement: FindStatement, ctx: SchemeCtx): Promise<SchemeResult>;\n find?(statement: FindStatement, ctx: SchemeCtx): Promise<SchemeResult>;\n editBatch?(statements: readonly ResolvedEditStatement[], ctx: SchemeCtx): Promise<EditBatchResult>;\n send?(statement: SendStatement, ctx: SchemeCtx): Promise<SchemeResult>;\n kill?(statement: KillStatement, ctx: SchemeCtx): Promise<SchemeResult>;\n // An operation the facet proposed is also the facet's to apply ({§http-manifest}),\n // routed by the proposal's own `target`.\n applyResolution?(request: ProposalApplyRequest, ctx: SchemeCtx): Promise<SchemeResult>;\n}\n\n// The setup slice a module uses to add one process-wide addressable scheme.\nexport interface SchemeRegistrationSeam {\n registerScheme(name: string, handler: SchemeHandler): Promise<void>;\n}\n\n// {§resource-tree-scheme} — source truth, without a storage or selection API.\nexport interface ResourceTree {\n list(): Promise<readonly string[]>;\n resource(relativePath: string): ByteSource;\n}\n\nexport interface ResourceTreeSource {\n trees(workspaceId: number): ReadonlyMap<string, ResourceTree>;\n // Translate only recognized source failures. null leaves normal missing-file\n // handling or the original unexpected exception with the host.\n refusal?(cause: unknown, address: EntryCoordinate): RepresentationPreparationResult | null;\n}\n\nexport interface ResourceTreeRegistrationSeam {\n registerResourceTreeScheme(name: string, source: ResourceTreeSource): Promise<void>;\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -15,10 +15,8 @@ export { default as OutputScheme } from "./OutputScheme.ts";
|
|
|
15
15
|
export { default as ResourceNames } from "./ResourceNames.ts";
|
|
16
16
|
export type { RuntimeDecl } from "./OutputScheme.ts";
|
|
17
17
|
export { default as Results, InvalidOperationResultError } from "./Results.ts";
|
|
18
|
-
export { default as MetadataOptions } from "./MetadataOptions.ts";
|
|
19
18
|
export { default as MessageAttachments } from "./MessageAttachments.ts";
|
|
20
19
|
export { default as MessageScheme } from "./MessageScheme.ts";
|
|
21
|
-
export type { MetadataOptionsParsed } from "./MetadataOptions.ts";
|
|
22
20
|
export { default as PacketSections } from "./PacketSections.ts";
|
|
23
21
|
export type { PacketSectionDraft, PacketSectionTransformer } from "./PacketSections.ts";
|
|
24
22
|
export { PathSyntax } from "@plurnk/plurnk-contracts";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,YAAY,EACR,eAAe,EACf,eAAe,EACf,cAAc,EACd,UAAU,GACb,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAC/G,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EACR,SAAS,EACT,UAAU,IAAI,cAAc,EAC5B,UAAU,EACV,SAAS,EACT,WAAW,EACX,eAAe,EACf,YAAY,GACf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,OA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eAAe,GAClB,MAAM,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,6 @@ export { default as Summarize } from "./Summarize.js";
|
|
|
11
11
|
export { default as OutputScheme } from "./OutputScheme.js";
|
|
12
12
|
export { default as ResourceNames } from "./ResourceNames.js";
|
|
13
13
|
export { default as Results, InvalidOperationResultError } from "./Results.js";
|
|
14
|
-
export { default as MetadataOptions } from "./MetadataOptions.js";
|
|
15
14
|
export { default as MessageAttachments } from "./MessageAttachments.js";
|
|
16
15
|
export { default as MessageScheme } from "./MessageScheme.js";
|
|
17
16
|
export { default as PacketSections } from "./PacketSections.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAUhD,4EAA4E;AAC5E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAC/G,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAUhD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE9D,OAAO,EAAE,OAAO,IAAI,OAAO,E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,cAAc,EAAE,mBAAmB,EAAmB,MAAM,iBAAiB,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC","sourcesContent":["// Public API barrel for @plurnk/plurnk-schemes.\n\n// ── Manifest types ────────────────────────────────────────────────────────\nexport type {\n EntryCoordinate,\n SchemeAuthority,\n SchemeManifest,\n WriterTier,\n} from \"./types.ts\";\n\n// ── Behavior classes ─────────────────────────────────────────────────────\nexport { default as Manifest } from \"./Manifest.ts\";\nexport { default as NetworkAddress } from \"./NetworkAddress.ts\";\nexport { default as EntryCoordinates } from \"./EntryCoordinates.ts\";\nexport { default as MimetypeClassifier, PathMimetype, TEXT_PRIMITIVE_MIMETYPE } from \"./MimetypeClassifier.ts\";\nexport { default as Slicer } from \"./Slicer.ts\";\nexport type {\n BatchEdit,\n EditResult as LineEditResult,\n PageResult,\n RangeUnit,\n SliceResult,\n TextReplacement,\n WindowResult,\n} from \"./Slicer.ts\";\nexport { default as Matcher } from \"./Matcher.ts\";\nexport type { MatchResult } from \"./Matcher.ts\";\nexport { default as SchemeDiscovery } from \"./SchemeDiscovery.ts\";\nexport type { SchemeInfo, SchemeDiscoveryResult, DiscoverOptions } from \"./SchemeDiscovery.ts\";\nexport { default as Summarize } from \"./Summarize.ts\";\nexport type { OrientIndex } from \"./Summarize.ts\";\nexport { default as OutputScheme } from \"./OutputScheme.ts\";\nexport { default as ResourceNames } from \"./ResourceNames.ts\";\nexport type { RuntimeDecl } from \"./OutputScheme.ts\";\nexport { default as Results, InvalidOperationResultError } from \"./Results.ts\";\nexport { default as MessageAttachments } from \"./MessageAttachments.ts\";\nexport { default as MessageScheme } from \"./MessageScheme.ts\";\nexport { default as PacketSections } from \"./PacketSections.ts\";\nexport type { PacketSectionDraft, PacketSectionTransformer } from \"./PacketSections.ts\";\nexport { PathSyntax } from \"@plurnk/plurnk-contracts\";\nexport { MimetypeInputLimitError as ProjectionInputLimitError } from \"@plurnk/plurnk-mimetypes\";\nexport type {\n AppliedEditBatchReceipt,\n AppliedEditReceipt,\n EditBatchReceipt,\n EditBatchResult,\n EditEffectReceipt,\n EditReceipt,\n EditReceiptUnit,\n ParseIssueTransition,\n ResolvedEditStatement,\n ReviewerReplacementEditBatchReceipt,\n SupersededEditReceipt,\n} from \"./edit-receipt.ts\";\nexport type {\n ChannelProducerResult,\n EntryResult,\n MatchEvidence,\n PassthroughResult,\n ProposalResult,\n ProblemDetails,\n RepresentationPreparationResult,\n ScopeNormalization,\n SchemeResult,\n SchemeResultBase,\n} from \"./Results.ts\";\n\n// {§capability-ctx} Capability ctx — DB-free authoring surface for siblings.\n// Interfaces only; plurnk-service injects the implementation.\nexport type {\n ChannelCaps,\n ChannelState,\n TerminalChannelState,\n EntryCaps,\n EntryCatalogChannel,\n EntryCatalogDefaultChannel,\n EntryCatalogItem,\n EntryCatalogScope,\n EntryCatalogScopeGroup,\n EntryData,\n EntryEditResult,\n EntryFindResult,\n EntryOperationCaps,\n EntryAddress,\n EntryReadResult,\n EntryStorageReadResult,\n EntryStreamLifecycle,\n EntryStorageWriteResult,\n StoredEntryData,\n StreamSubscription,\n ProjectionCaps,\n InteractionCaps,\n ProjectedText,\n ProjectedBinary,\n NotifyCaps,\n ProposalApplyRequest,\n ProposalApplyResult,\n ProposalAware,\n SchemeAddressCtx,\n SchemeCtx,\n ResourceCaps,\n MessageCaps,\n SubscriptionCaps,\n SubscriptionHandle,\n} from \"./ctx.ts\";\n\n// ── Behavior contract + the scheme-facing grammar types ──────────────────────\n// SchemeHandler is the typed op surface a sibling `implements`. The per-op\n// statement + path types are re-exported from grammar here so a sibling depends\n// on and exact-pins ONLY this package; grammar is the framework's transitive pin\n// (this repo already peers it). The engine speaks one grammar — keep it single.\nexport type {\n RepresentationPreparationRequest,\n ResourceTree,\n ResourceTreeRegistrationSeam,\n ResourceTreeSource,\n RuntimeSchemeFacet,\n SchemeHandler,\n SchemeRegistrationSeam,\n} from \"./handler.ts\";\nexport type {\n ExtensionAttributionContext,\n ExtensionAttributionDeclaration,\n ExtensionAttributionSource,\n} from \"@plurnk/plurnk-meta\";\nexport type {\n PlurnkStatement,\n FindStatement,\n ReadStatement,\n CopyStatement,\n MoveStatement,\n SendStatement,\n ExecStatement,\n WorkStatement,\n ForkStatement,\n KillStatement,\n DispositionStatement,\n ParsedPath,\n LocalPath,\n UrlPath,\n} from \"@plurnk/plurnk-contracts\";\nexport { FileByteSource, GeneratedByteSource, type ByteSource } from \"./ByteSource.ts\";\nexport { WebMaterializationError } from \"./WebMaterialization.ts\";\nexport type {\n WebChannelFailure,\n WebChannelOutcome,\n WebFetchResult,\n WebMaterializationSource,\n WebMaterializedResult,\n WebMaterializer,\n WebResponseBody,\n} from \"./WebMaterialization.ts\";\n"]}
|
package/dist/types.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ interface SchemeManifestBase {
|
|
|
14
14
|
readonly modelVisible: boolean;
|
|
15
15
|
readonly folderScopes?: boolean;
|
|
16
16
|
readonly textEditScopes?: boolean;
|
|
17
|
-
readonly metadataModifier?: boolean;
|
|
18
17
|
readonly lineAnchors?: boolean;
|
|
19
18
|
readonly traits?: ReadonlyArray<string>;
|
|
20
19
|
readonly documentation?: string;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAKxD,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,UAAU,CAAC;AAEvD,MAAM,WAAW,eAAe;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC7B;AAED,UAAU,kBAAkB;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,eAAe,CAAC;IACrC,QAAQ,CAAC,QAAQ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C,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAExC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAGhC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAGxB,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAAG,CAC9C;IAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAC3B;IAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,GAChC;IAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,CACrC,CAAC"}
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,qCAAqC;AACrC,EAAE;AACF,6EAA6E;AAC7E,6EAA6E;AAC7E,yEAAyE;AACzE,sEAAsE;AACtE,4EAA4E;AAC5E,mCAAmC"}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,qCAAqC;AACrC,EAAE;AACF,6EAA6E;AAC7E,6EAA6E;AAC7E,yEAAyE;AACzE,sEAAsE;AACtE,4EAA4E;AAC5E,mCAAmC","sourcesContent":["// Framework-grade types shared by every `@plurnk/plurnk-schemes-*` sibling\n// and its consumer (plurnk-service).\n//\n// Notably absent from this surface: `PlurnkSchemeContext`. The full per-call\n// context shape (which includes the database handle, channel-write notifier,\n// wake-on-completion notifier, etc.) is plurnk-service-coupled and lives\n// in the consumer. Sister schemes consume the parts of ctx the engine\n// supplies them per dispatch; this repo ships only the manifest types every\n// sibling needs to declare itself.\n\nexport type WriterTier = \"model\" | \"client\" | \"_plurnk\";\n\n// URI-authority disposition for an addressed scheme. Namespace is the stable\n// default for ordinary entry trees: an authored authority folds into the\n// pathname. Resource preserves authority as a durable entry coordinate.\nexport type SchemeAuthority = \"namespace\" | \"resource\";\n\nexport interface EntryCoordinate {\n readonly authority: string;\n readonly pathname: string;\n}\n\ninterface SchemeManifestBase {\n readonly name: string; // addressing/routing identity (the URI prefix)\n readonly authority?: SchemeAuthority; // absent = namespace\n readonly channels: Record<string, string>; // channel name → declared mimetype; the default may be dynamic\n // The channel selected for an unqualified read. Dynamic-channel schemes may\n // name it without declaring a fixed mimetype; empty means no default.\n readonly defaultChannel: string;\n // data: entry-bearing content. logging: log:// rows. control: addresses\n // sister sessions and owns no entries (session://: spawn/fork/irc).\n readonly writableBy: ReadonlyArray<WriterTier>;\n readonly volatile: boolean;\n readonly modelVisible: boolean;\n // A trailing slash on FIND or READ denotes a collection scope only when declared.\n // Explicit globs and matcher bodies remain queries everywhere. Absent/false\n // means `/` is ordinary resource syntax and dispatches directly.\n readonly folderScopes?: boolean;\n // True only when EDIT accepts the shared textual <scope> contract. Core\n // then lowers rendered line anchors to numeric coordinates before dispatch.\n readonly textEditScopes?: boolean;\n // True when the scheme's stable textual representations publish and accept\n // shared line anchors without claiming EDIT support. textEditScopes implies\n // publication only where the addressed resource authorizes model writes.\n readonly lineAnchors?: boolean;\n // General policy facts consumed by CapabilitySelector.trait. The scheme\n // declares facts only; it never interprets policy or named modes.\n readonly traits?: ReadonlyArray<string>;\n // Discoverable reference material ({§manifest}).\n readonly documentation?: string;\n // Opaque client presentation metadata. It is deliberately absent from\n // model-facing scheme teaching; clients choose rendering and fallback.\n readonly glyph?: string;\n // Value persisted to `entries.scheme`, which may differ from the addressing\n // `name`. Absent defaults to `name`; identity components are never null.\n readonly storedScheme?: string;\n}\n\nexport type SchemeManifest = SchemeManifestBase & (\n { readonly category: \"data\" }\n | { readonly category: \"logging\" }\n | { readonly category: \"control\" }\n);\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plurnk/plurnk-schemes",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.5",
|
|
4
4
|
"description": "Framework + contract for the @plurnk/plurnk-schemes-* URI handler packages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"plurnk",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"homepage": "https://github.com/plurnk/plurnk-service/tree/main/plurnk-schemes#readme",
|
|
11
11
|
"bugs": {
|
|
12
|
-
"url": "https://
|
|
12
|
+
"url": "https://github.com/plurnk/plurnk-service/issues"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"@plurnk/plurnk-mimetypes": "^3.0.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@plurnk/plurnk-contracts": "^7.
|
|
54
|
+
"@plurnk/plurnk-contracts": "^7.5.0",
|
|
55
55
|
"@plurnk/plurnk-meta": "^2.2.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@plurnk/plurnk-parser": "^4.
|
|
58
|
+
"@plurnk/plurnk-parser": "^4.6.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "9206fac0bc773bc1bdb4cc0a541f8bd58f45f87b"
|
|
61
61
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type SchemeResult } from "./Results.ts";
|
|
2
|
-
export type MetadataOptionsParsed = {
|
|
3
|
-
readonly options: Readonly<Record<string, unknown>>;
|
|
4
|
-
readonly lifetime?: unknown;
|
|
5
|
-
} | {
|
|
6
|
-
readonly failure: SchemeResult;
|
|
7
|
-
};
|
|
8
|
-
export default class MetadataOptions {
|
|
9
|
-
#private;
|
|
10
|
-
static readonly SERVICE_KEYS: readonly ["lifetime"];
|
|
11
|
-
static parse(blocks: readonly string[] | null | undefined, source: string, extra?: Record<string, unknown>): MetadataOptionsParsed;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=MetadataOptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MetadataOptions.d.ts","sourceRoot":"","sources":["../src/MetadataOptions.ts"],"names":[],"mappings":"AAKA,OAAgB,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAE1D,MAAM,MAAM,qBAAqB,GAG3B;IAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GACpF;IAAE,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAA;CAAE,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,eAAe;;IAEhC,MAAM,CAAC,QAAQ,CAAC,YAAY,wBAAwC;IAsBpE,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAAG,qBAAqB,CAkBrI;CACJ"}
|
package/dist/MetadataOptions.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
// {§slot-order} The heading's `[metadata]` block, read with its
|
|
2
|
-
// brackets, is one JSON array. Object options merge left to right with later
|
|
3
|
-
// keys winning. The language keeps the inner text opaque; this is the one
|
|
4
|
-
// reader every owner uses before interpreting its elements,
|
|
5
|
-
// so malformed content fails the same way everywhere: the owner's 400.
|
|
6
|
-
import Results, {} from "./Results.js";
|
|
7
|
-
export default class MetadataOptions {
|
|
8
|
-
// {§manifest} — the keys every owner's `options` is stripped of.
|
|
9
|
-
static SERVICE_KEYS = Object.freeze(["lifetime"]);
|
|
10
|
-
// `source` names the owner in the Problem (`executor:metadata`, `http`, …).
|
|
11
|
-
static #read(blocks, source, extra = {}) {
|
|
12
|
-
const fail = (code, detail) => ({
|
|
13
|
-
failure: Results.failure(source, code, 400, detail, {}, { ...extra, retryable: false }),
|
|
14
|
-
});
|
|
15
|
-
const list = blocks ?? [];
|
|
16
|
-
if (list.length === 0)
|
|
17
|
-
return { elements: [] };
|
|
18
|
-
if (list.length > 1)
|
|
19
|
-
return fail("metadata-repeated", "One [metadata] block per operand; merge the options into one JSON array.");
|
|
20
|
-
let parsed;
|
|
21
|
-
try {
|
|
22
|
-
parsed = JSON.parse(`[${list[0]}]`);
|
|
23
|
-
}
|
|
24
|
-
catch (cause) {
|
|
25
|
-
if (!(cause instanceof SyntaxError))
|
|
26
|
-
throw cause;
|
|
27
|
-
// Never echo the parser message: V8 quotes the input, and metadata may hold credentials.
|
|
28
|
-
return fail("metadata-invalid", "[metadata] must be a JSON array.");
|
|
29
|
-
}
|
|
30
|
-
if (!Array.isArray(parsed))
|
|
31
|
-
return fail("metadata-invalid", "[metadata] must be a JSON array.");
|
|
32
|
-
return { elements: parsed };
|
|
33
|
-
}
|
|
34
|
-
static parse(blocks, source, extra = {}) {
|
|
35
|
-
const read = MetadataOptions.#read(blocks, source, extra);
|
|
36
|
-
if ("failure" in read)
|
|
37
|
-
return read;
|
|
38
|
-
const options = {};
|
|
39
|
-
for (const element of read.elements) {
|
|
40
|
-
if (typeof element !== "object" || element === null || Array.isArray(element)) {
|
|
41
|
-
return { failure: Results.failure(source, "metadata-invalid", 400, "[metadata] must be a JSON array of option objects; every element is an object.", {}, { ...extra, retryable: false }) };
|
|
42
|
-
}
|
|
43
|
-
Object.assign(options, element);
|
|
44
|
-
}
|
|
45
|
-
const reserved = {};
|
|
46
|
-
for (const key of MetadataOptions.SERVICE_KEYS) {
|
|
47
|
-
if (!(key in options))
|
|
48
|
-
continue;
|
|
49
|
-
reserved[key] = options[key];
|
|
50
|
-
delete options[key];
|
|
51
|
-
}
|
|
52
|
-
return { options, ...reserved };
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=MetadataOptions.js.map
|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