@plurnk/plurnk-schemes 3.3.3 → 3.3.4
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.js +10 -10
- 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/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,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAClE,YAAY,EAAE,UAAU,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD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oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,aAAa,EACb,eAAe,EACf,UAAU,EACV,oBAAoB,EACpB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,kBAAkB,GACrB,MAAM,UAAU,CAAC;AAOlB,YAAY,EACR,gCAAgC,EAChC,YAAY,EACZ,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,sBAAsB,GACzB,MAAM,cAAc,CAAC;AACtB,YAAY,EACR,2BAA2B,EAC3B,+BAA+B,EAC/B,0BAA0B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACR,eAAe,EACf,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,UAAU,EACV,SAAS,EACT,OAAO,GACV,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,YAAY,EACR,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,wBAAwB,EACxB,qBAAqB,EACrB,eAAe,EACf,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,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,
|
|
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,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,uBAAuB,IAAI,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAqGhG,OAAO,EAAE,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,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAG1C,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAGhC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAC/C,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAI/B,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAGhC,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC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;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.4",
|
|
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.4.0",
|
|
55
55
|
"@plurnk/plurnk-meta": "^2.2.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@plurnk/plurnk-parser": "^4.
|
|
58
|
+
"@plurnk/plurnk-parser": "^4.5.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "49f92d9351021ae0729d69e72ab9b1b95e3a974b"
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MetadataOptions.js","sourceRoot":"","sources":["../src/MetadataOptions.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,6EAA6E;AAC7E,0EAA0E;AAC1E,4DAA4D;AAC5D,uEAAuE;AACvE,OAAO,OAAO,EAAE,EAAqB,MAAM,cAAc,CAAC;AAQ1D,MAAM,CAAC,OAAO,OAAO,eAAe;IAChC,iEAAiE;IACjE,MAAM,CAAU,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,UAAU,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