@plurnk/plurnk-contracts 8.0.0 → 10.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/.env.defaults +1 -19
- package/README.md +5 -6
- package/SPEC.md +100 -65
- package/dist/schema/DaemonNotificationEnvelope.json +602 -0
- package/dist/schema/FunctionalityCandidate.json +4 -0
- package/dist/schema/FunctionalityDiscoverQuery.json +12 -0
- package/dist/schema/FunctionalityDiscoverResult.json +10 -0
- package/dist/schema/FunctionalityListQuery.json +33 -0
- package/dist/schema/FunctionalityListResult.json +16 -1
- package/dist/schema/McpServerDefinition.json +1 -1
- package/dist/schema/ModelCatalogPage.json +9 -0
- package/dist/schema/PlurnkStatement.json +42 -2
- package/dist/schema/ProposalProjection.json +0 -4
- package/dist/schema/ProviderAccounting.json +3 -3
- package/dist/schema/ProviderCost.json +1 -1
- package/dist/schema/ProviderRequestAccounting.json +3 -3
- package/dist/schema/ProviderUsage.json +1 -1
- package/dist/src/ActorIdentity.d.ts +26 -0
- package/dist/src/ActorIdentity.d.ts.map +1 -0
- package/dist/src/ActorIdentity.js +179 -0
- package/dist/src/ActorIdentity.js.map +1 -0
- package/dist/src/Application.d.ts +58 -125
- package/dist/src/Application.d.ts.map +1 -1
- package/dist/src/Application.js +372 -80
- package/dist/src/Application.js.map +1 -1
- package/dist/src/ApplicationNotifications.d.ts +77 -24
- package/dist/src/ApplicationNotifications.d.ts.map +1 -1
- package/dist/src/ApplicationNotifications.js +45 -9
- package/dist/src/ApplicationNotifications.js.map +1 -1
- package/dist/src/ApplicationPort.d.ts +53 -13
- package/dist/src/ApplicationPort.d.ts.map +1 -1
- package/dist/src/ApplicationPort.js +1 -1
- package/dist/src/ApplicationPort.js.map +1 -1
- package/dist/src/ApplicationStream.d.ts +2 -2
- package/dist/src/ApplicationStream.d.ts.map +1 -1
- package/dist/src/ApplicationStream.js.map +1 -1
- package/dist/src/CollectionCommand.d.ts +33 -0
- package/dist/src/CollectionCommand.d.ts.map +1 -0
- package/dist/src/CollectionCommand.js +277 -0
- package/dist/src/CollectionCommand.js.map +1 -0
- package/dist/src/Functionality.d.ts +7 -2
- package/dist/src/Functionality.d.ts.map +1 -1
- package/dist/src/Functionality.js.map +1 -1
- package/dist/src/HttpOrigin.d.ts +79 -10
- package/dist/src/HttpOrigin.d.ts.map +1 -1
- package/dist/src/HttpOrigin.js +286 -44
- package/dist/src/HttpOrigin.js.map +1 -1
- package/dist/src/HttpPort.d.ts +35 -0
- package/dist/src/HttpPort.d.ts.map +1 -0
- package/dist/src/HttpPort.js +106 -0
- package/dist/src/HttpPort.js.map +1 -0
- package/dist/src/InteractiveCommands.d.ts +96 -0
- package/dist/src/InteractiveCommands.d.ts.map +1 -0
- package/dist/src/InteractiveCommands.js +409 -0
- package/dist/src/InteractiveCommands.js.map +1 -0
- package/dist/src/LogRow.d.ts +1 -1
- package/dist/src/LogRow.js +1 -1
- package/dist/src/LogRow.js.map +1 -1
- package/dist/src/McpWireTool.d.ts +27 -0
- package/dist/src/McpWireTool.d.ts.map +1 -0
- package/dist/src/McpWireTool.js +30 -0
- package/dist/src/McpWireTool.js.map +1 -0
- package/dist/src/OAuthClient.d.ts +64 -0
- package/dist/src/OAuthClient.d.ts.map +1 -0
- package/dist/src/OAuthClient.js +226 -0
- package/dist/src/OAuthClient.js.map +1 -0
- package/dist/src/ScheduleCommand.d.ts +60 -0
- package/dist/src/ScheduleCommand.d.ts.map +1 -0
- package/dist/src/ScheduleCommand.js +677 -0
- package/dist/src/ScheduleCommand.js.map +1 -0
- package/dist/src/SessionProjection.d.ts +91 -0
- package/dist/src/SessionProjection.d.ts.map +1 -0
- package/dist/src/SessionProjection.js +223 -0
- package/dist/src/SessionProjection.js.map +1 -0
- package/dist/src/Validator.d.ts +4 -3
- package/dist/src/Validator.d.ts.map +1 -1
- package/dist/src/Validator.js +27 -17
- package/dist/src/Validator.js.map +1 -1
- package/dist/src/index.d.ts +11 -5
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +9 -4
- package/dist/src/index.js.map +1 -1
- package/dist/src/types.generated.d.ts +814 -566
- package/dist/src/types.generated.d.ts.map +1 -1
- package/dist/src/types.generated.js.map +1 -1
- package/dist/src/types.js +1 -1
- package/dist/src/types.js.map +1 -1
- package/package.json +3 -2
- package/dist/schema/ApplicationOperationEvent.json +0 -27
- package/dist/schema/CapabilityDescriptor.json +0 -28
- package/dist/schema/CapabilityPolicy.json +0 -22
- package/dist/schema/CapabilityProjection.json +0 -14
- package/dist/schema/CapabilitySelector.json +0 -29
- package/dist/src/CapabilityAdmission.d.ts +0 -11
- package/dist/src/CapabilityAdmission.d.ts.map +0 -1
- package/dist/src/CapabilityAdmission.js +0 -108
- package/dist/src/CapabilityAdmission.js.map +0 -1
package/dist/src/Validator.js
CHANGED
|
@@ -7,7 +7,7 @@ import matcherBodySchema from "../schema/MatcherBody.json" with { type: "json" }
|
|
|
7
7
|
import sendBodySchema from "../schema/SendBody.json" with { type: "json" };
|
|
8
8
|
import resourceSelectionSchema from "../schema/ResourceSelection.json" with { type: "json" };
|
|
9
9
|
import plurnkStatementSchema from "../schema/PlurnkStatement.json" with { type: "json" };
|
|
10
|
-
import
|
|
10
|
+
import daemonNotificationEnvelopeSchema from "../schema/DaemonNotificationEnvelope.json" with { type: "json" };
|
|
11
11
|
import noticeSchema from "../schema/Notice.json" with { type: "json" };
|
|
12
12
|
import problemDetailsSchema from "../schema/ProblemDetails.json" with { type: "json" };
|
|
13
13
|
import problemProjectionSchema from "../schema/ProblemProjection.json" with { type: "json" };
|
|
@@ -17,10 +17,6 @@ import textRegionSchema from "../schema/TextRegion.json" with { type: "json" };
|
|
|
17
17
|
import rangeExtentSchema from "../schema/RangeExtent.json" with { type: "json" };
|
|
18
18
|
import proposalProjectionSchema from "../schema/ProposalProjection.json" with { type: "json" };
|
|
19
19
|
import proposalDispositionSchema from "../schema/ProposalDisposition.json" with { type: "json" };
|
|
20
|
-
import capabilityDescriptorSchema from "../schema/CapabilityDescriptor.json" with { type: "json" };
|
|
21
|
-
import capabilityPolicySchema from "../schema/CapabilityPolicy.json" with { type: "json" };
|
|
22
|
-
import capabilityProjectionSchema from "../schema/CapabilityProjection.json" with { type: "json" };
|
|
23
|
-
import capabilitySelectorSchema from "../schema/CapabilitySelector.json" with { type: "json" };
|
|
24
20
|
import sessionOwnerSchema from "../schema/SessionOwner.json" with { type: "json" };
|
|
25
21
|
import clientDisplayCapabilitiesSchema from "../schema/ClientDisplayCapabilities.json" with { type: "json" };
|
|
26
22
|
import mcpServerDefinitionSchema from "../schema/McpServerDefinition.json" with { type: "json" };
|
|
@@ -37,6 +33,7 @@ import functionalityProvenanceSchema from "../schema/FunctionalityProvenance.jso
|
|
|
37
33
|
import functionalityDiscoverQuerySchema from "../schema/FunctionalityDiscoverQuery.json" with { type: "json" };
|
|
38
34
|
import functionalityDiscoverResultSchema from "../schema/FunctionalityDiscoverResult.json" with { type: "json" };
|
|
39
35
|
import functionalityDefinitionStateSchema from "../schema/FunctionalityDefinitionState.json" with { type: "json" };
|
|
36
|
+
import functionalityListQuerySchema from "../schema/FunctionalityListQuery.json" with { type: "json" };
|
|
40
37
|
import functionalityListResultSchema from "../schema/FunctionalityListResult.json" with { type: "json" };
|
|
41
38
|
import functionalityMutationResultSchema from "../schema/FunctionalityMutationResult.json" with { type: "json" };
|
|
42
39
|
import rollbackReportSchema from "../schema/RollbackReport.json" with { type: "json" };
|
|
@@ -57,7 +54,7 @@ export class InvalidOperationResultError extends TypeError {
|
|
|
57
54
|
export default class Validator {
|
|
58
55
|
static #jsonSchemaValidators = new WeakMap();
|
|
59
56
|
static #publicSchemas = [
|
|
60
|
-
|
|
57
|
+
daemonNotificationEnvelopeSchema,
|
|
61
58
|
plurnkStatementSchema,
|
|
62
59
|
positionSchema,
|
|
63
60
|
lineMarkerSchema,
|
|
@@ -77,6 +74,7 @@ export default class Validator {
|
|
|
77
74
|
functionalityDefinitionStateSchema,
|
|
78
75
|
functionalityDiscoverQuerySchema,
|
|
79
76
|
functionalityDiscoverResultSchema,
|
|
77
|
+
functionalityListQuerySchema,
|
|
80
78
|
functionalityListResultSchema,
|
|
81
79
|
functionalityMutationResultSchema,
|
|
82
80
|
functionalityPreparationActivitySchema,
|
|
@@ -86,10 +84,6 @@ export default class Validator {
|
|
|
86
84
|
mcpOAuthSchema,
|
|
87
85
|
mcpServerDefinitionSchema,
|
|
88
86
|
skillDefinitionSchema,
|
|
89
|
-
capabilityDescriptorSchema,
|
|
90
|
-
capabilityPolicySchema,
|
|
91
|
-
capabilityProjectionSchema,
|
|
92
|
-
capabilitySelectorSchema,
|
|
93
87
|
sessionOwnerSchema,
|
|
94
88
|
modelCatalogPageSchema,
|
|
95
89
|
modelCatalogQuerySchema,
|
|
@@ -253,12 +247,6 @@ export default class Validator {
|
|
|
253
247
|
}
|
|
254
248
|
return exact;
|
|
255
249
|
}
|
|
256
|
-
static assertCapabilityDescriptor(value) {
|
|
257
|
-
return Validator.#assert(capabilityDescriptorSchema, "CapabilityDescriptor", value);
|
|
258
|
-
}
|
|
259
|
-
static assertCapabilityPolicy(value) {
|
|
260
|
-
return Validator.#assert(capabilityPolicySchema, "CapabilityPolicy", value);
|
|
261
|
-
}
|
|
262
250
|
static assertProposalProjection(value) {
|
|
263
251
|
return Validator.#assert(proposalProjectionSchema, "ProposalProjection", value);
|
|
264
252
|
}
|
|
@@ -319,8 +307,24 @@ export default class Validator {
|
|
|
319
307
|
}
|
|
320
308
|
return page;
|
|
321
309
|
}
|
|
310
|
+
static assertFunctionalityListQuery(value) {
|
|
311
|
+
return Validator.#assert(functionalityListQuerySchema, "FunctionalityListQuery", value);
|
|
312
|
+
}
|
|
322
313
|
static assertFunctionalityListResult(value) {
|
|
323
|
-
|
|
314
|
+
const result = Validator.#assert(functionalityListResultSchema, "FunctionalityListResult", value);
|
|
315
|
+
const pageEnd = result.offset + result.definitions.length;
|
|
316
|
+
if (result.definitions.length > 0 && pageEnd > result.total) {
|
|
317
|
+
throw new TypeError("FunctionalityListResult definitions extend beyond total");
|
|
318
|
+
}
|
|
319
|
+
if (result.nextOffset !== undefined) {
|
|
320
|
+
if (result.nextOffset !== pageEnd || result.nextOffset >= result.total) {
|
|
321
|
+
throw new TypeError("FunctionalityListResult nextOffset must equal the page end and leave remaining items");
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
else if (result.offset < result.total && pageEnd < result.total) {
|
|
325
|
+
throw new TypeError("FunctionalityListResult omits nextOffset before total");
|
|
326
|
+
}
|
|
327
|
+
return result;
|
|
324
328
|
}
|
|
325
329
|
static assertFunctionalityDiscoverResult(value) {
|
|
326
330
|
return Validator.#assert(functionalityDiscoverResultSchema, "FunctionalityDiscoverResult", value);
|
|
@@ -344,5 +348,11 @@ export default class Validator {
|
|
|
344
348
|
static assertAcpDiscovery(value) {
|
|
345
349
|
return Validator.#assert(acpDiscoverySchema, "ACP discovery manifest", value);
|
|
346
350
|
}
|
|
351
|
+
static validateDaemonNotification(value) {
|
|
352
|
+
return Validator.validateJsonSchemaInstance(daemonNotificationEnvelopeSchema, value);
|
|
353
|
+
}
|
|
354
|
+
static assertDaemonNotification(value) {
|
|
355
|
+
return Validator.#assert(daemonNotificationEnvelopeSchema, "DaemonNotificationEnvelope", value);
|
|
356
|
+
}
|
|
347
357
|
}
|
|
348
358
|
//# sourceMappingURL=Validator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Validator.js","sourceRoot":"","sources":["../../src/Validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,WAAW,EAAgC,MAAM,uBAAuB,CAAC;AAC/F,OAAO,cAAc,MAAM,yBAAyB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC3E,OAAO,gBAAgB,MAAM,2BAA2B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC/E,OAAO,oBAAoB,MAAM,+BAA+B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACvF,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AAC,uBAAuB,CAAC,KAAc;QACzC,OAAO,SAAS,CAAC,OAAO,CAAoB,uBAAuB,EAAE,mBAAmB,EAAE,KAAK,CAAC,CAAC;IACrG,CAAC;IAED,MAAM,CAAC,oBAAoB,CAAC,KAAc;QACtC,MAAM,SAAS,GAAG,SAAS,CAAC,OAAO,CAAiB,oBAAoB,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC;QACnG,IAAI,SAAS,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC;YACtD,MAAM,IAAI,SAAS,CAAC,yEAAyE,CAAC,CAAC;QACnG,CAAC;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,MAAM,CAAC,gBAAgB,CAAC,KAAc;QAClC,OAAO,SAAS,CAAC,OAAO,CAAa,gBAAgB,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;IAChF,CAAC;IAED,MAAM,CAAC,kBAAkB,CAAC,KAAc;QACpC,OAAO,SAAS,CAAC,OAAO,CAAe,kBAAkB,EAAE,wBAAwB,EAAE,KAAK,CAAC,CAAC;IAChG,CAAC;CACJ","sourcesContent":["import { Validator as CfValidator, type OutputUnit, type Schema } from \"@cfworker/json-schema\";\nimport positionSchema from \"../schema/Position.json\" with { type: \"json\" };\nimport lineMarkerSchema from \"../schema/LineMarker.json\" with { type: \"json\" };\nimport textLineMarkerSchema from \"../schema/TextLineMarker.json\" with { type: \"json\" };\nimport parsedPathSchema from \"../schema/ParsedPath.json\" with { type: \"json\" };\nimport matcherBodySchema from \"../schema/MatcherBody.json\" with { type: \"json\" };\nimport sendBodySchema from \"../schema/SendBody.json\" with { type: \"json\" };\nimport resourceSelectionSchema from \"../schema/ResourceSelection.json\" with { type: \"json\" };\nimport plurnkStatementSchema from \"../schema/PlurnkStatement.json\" with { type: \"json\" };\nimport applicationOperationEventSchema from \"../schema/ApplicationOperationEvent.json\" with { type: \"json\" };\nimport noticeSchema from \"../schema/Notice.json\" with { type: \"json\" };\nimport problemDetailsSchema from \"../schema/ProblemDetails.json\" with { type: \"json\" };\nimport problemProjectionSchema from \"../schema/ProblemProjection.json\" with { type: \"json\" };\nimport operationResultSchema from \"../schema/OperationResult.json\" with { type: \"json\" };\nimport entryReadResultSchema from \"../schema/EntryReadResult.json\" with { type: \"json\" };\nimport textRegionSchema from \"../schema/TextRegion.json\" with { type: \"json\" };\nimport rangeExtentSchema from \"../schema/RangeExtent.json\" with { type: \"json\" };\nimport proposalProjectionSchema from \"../schema/ProposalProjection.json\" with { type: \"json\" };\nimport proposalDispositionSchema from \"../schema/ProposalDisposition.json\" with { type: \"json\" };\nimport capabilityDescriptorSchema from \"../schema/CapabilityDescriptor.json\" with { type: \"json\" };\nimport capabilityPolicySchema from \"../schema/CapabilityPolicy.json\" with { type: \"json\" };\nimport capabilityProjectionSchema from \"../schema/CapabilityProjection.json\" with { type: \"json\" };\nimport capabilitySelectorSchema from \"../schema/CapabilitySelector.json\" with { type: \"json\" };\nimport sessionOwnerSchema from \"../schema/SessionOwner.json\" with { type: \"json\" };\nimport type { SessionOwner, RollbackReport, AcpDiscovery, CapabilityDescriptor, CapabilityPolicy, ClientDisplayCapabilities, ClientInteractionProjection, ClientInteractionRequest, ClientInteractionResolution, EntryReadResult, FunctionalityDiscoverResult, FunctionalityListResult, FunctionalityMutationResult, McpOAuth, McpServerDefinition, ModelCatalogPage, ModelCatalogQuery, ModelReadiness, ModelRoute, Notice, OperationResult, ProblemDetails, ProblemProjection, ProposalProjection, RangeExtent, Effort, SkillDefinition, TextRegion, JsonSchema, ParsedPath, PlurnkStatement } from \"./types.generated.ts\";\nimport clientDisplayCapabilitiesSchema from \"../schema/ClientDisplayCapabilities.json\" with { type: \"json\" };\nimport mcpServerDefinitionSchema from \"../schema/McpServerDefinition.json\" with { type: \"json\" };\nimport skillDefinitionSchema from \"../schema/SkillDefinition.json\" with { type: \"json\" };\nimport mcpOAuthSchema from \"../schema/McpOAuth.json\" with { type: \"json\" };\nimport clientInteractionRequestSchema from \"../schema/ClientInteractionRequest.json\" with { type: \"json\" };\nimport clientInteractionProjectionSchema from \"../schema/ClientInteractionProjection.json\" with { type: \"json\" };\nimport clientInteractionResolutionSchema from \"../schema/ClientInteractionResolution.json\" with { type: \"json\" };\nimport effortSchema from \"../schema/Effort.json\" with { type: \"json\" };\nimport modelCatalogPageSchema from \"../schema/ModelCatalogPage.json\" with { type: \"json\" };\nimport modelCatalogQuerySchema from \"../schema/ModelCatalogQuery.json\" with { type: \"json\" };\nimport functionalityCandidateSchema from \"../schema/FunctionalityCandidate.json\" with { type: \"json\" };\nimport functionalityProvenanceSchema from \"../schema/FunctionalityProvenance.json\" with { type: \"json\" };\nimport functionalityDiscoverQuerySchema from \"../schema/FunctionalityDiscoverQuery.json\" with { type: \"json\" };\nimport functionalityDiscoverResultSchema from \"../schema/FunctionalityDiscoverResult.json\" with { type: \"json\" };\nimport functionalityDefinitionStateSchema from \"../schema/FunctionalityDefinitionState.json\" with { type: \"json\" };\nimport functionalityListResultSchema from \"../schema/FunctionalityListResult.json\" with { type: \"json\" };\nimport functionalityMutationResultSchema from \"../schema/FunctionalityMutationResult.json\" with { type: \"json\" };\nimport rollbackReportSchema from \"../schema/RollbackReport.json\" with { type: \"json\" };\nimport mcpOAuthCompletionResultSchema from \"../schema/McpOAuthCompletionResult.json\" with { type: \"json\" };\nimport mcpOAuthBeginResultSchema from \"../schema/McpOAuthBeginResult.json\" with { type: \"json\" };\nimport functionalityPreparationActivitySchema from \"../schema/FunctionalityPreparationActivity.json\" with { type: \"json\" };\nimport modelReadinessSchema from \"../schema/ModelReadiness.json\" with { type: \"json\" };\nimport modelRouteSchema from \"../schema/ModelRoute.json\" with { type: \"json\" };\nimport acpDiscoverySchema from \"../schema/AcpDiscovery.json\" with { type: \"json\" };\nimport providerAccountingSchema from \"../schema/ProviderAccounting.json\" with { type: \"json\" };\nimport providerRequestAccountingSchema from \"../schema/ProviderRequestAccounting.json\" with { type: \"json\" };\nimport providerUsageSchema from \"../schema/ProviderUsage.json\" with { type: \"json\" };\nimport providerCostSchema from \"../schema/ProviderCost.json\" with { type: \"json\" };\n\nexport type ValidationResult = { valid: boolean; errors: OutputUnit[] };\n\nexport class InvalidProblemDetailsError extends TypeError {}\nexport class InvalidOperationResultError extends TypeError {}\n\nexport default class Validator {\n static #jsonSchemaValidators = new WeakMap<JsonSchema, CfValidator>();\n static #publicSchemas = [\n applicationOperationEventSchema,\n plurnkStatementSchema,\n positionSchema,\n lineMarkerSchema,\n textLineMarkerSchema,\n parsedPathSchema,\n matcherBodySchema,\n sendBodySchema,\n resourceSelectionSchema,\n acpDiscoverySchema,\n clientDisplayCapabilitiesSchema,\n clientInteractionProjectionSchema,\n clientInteractionRequestSchema,\n clientInteractionResolutionSchema,\n entryReadResultSchema,\n functionalityCandidateSchema,\n functionalityProvenanceSchema,\n functionalityDefinitionStateSchema,\n functionalityDiscoverQuerySchema,\n functionalityDiscoverResultSchema,\n functionalityListResultSchema,\n functionalityMutationResultSchema,\n functionalityPreparationActivitySchema,\n rollbackReportSchema,\n mcpOAuthCompletionResultSchema,\n mcpOAuthBeginResultSchema,\n mcpOAuthSchema,\n mcpServerDefinitionSchema,\n skillDefinitionSchema,\n capabilityDescriptorSchema,\n capabilityPolicySchema,\n capabilityProjectionSchema,\n capabilitySelectorSchema,\n sessionOwnerSchema,\n modelCatalogPageSchema,\n modelCatalogQuerySchema,\n modelReadinessSchema,\n modelRouteSchema,\n noticeSchema,\n operationResultSchema,\n problemDetailsSchema,\n problemProjectionSchema,\n proposalDispositionSchema,\n proposalProjectionSchema,\n providerAccountingSchema,\n providerRequestAccountingSchema,\n providerUsageSchema,\n providerCostSchema,\n rangeExtentSchema,\n textRegionSchema,\n effortSchema,\n ];\n\n // The exact schema behind a `$ref` a Functionality family declares as its definition\n // schema — the source its generated document teaches the definition from.\n static schemaByRef(ref: string): object | null {\n const schema = Validator.#publicSchemas.find((candidate) => Validator.#schemaId(candidate) === ref);\n return schema === undefined ? null : schema;\n }\n\n // {§text-region} A schema document is an object, naming its dialect in `$schema` or taking the validator's\n // default; every validator compiles one, the checked-in documents and the dynamic ones callers own alike. What\n // the document then means is the validator's to read, its declared dialect included.\n static #schemaDocument(value: unknown): value is Schema {\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) return false;\n return !(\"$schema\" in value) || typeof value.$schema === \"string\";\n }\n\n static #schemaId(document: unknown): string | undefined {\n return typeof document === \"object\" && document !== null && \"$id\" in document && typeof document.$id === \"string\"\n ? document.$id\n : undefined;\n }\n\n static #compile(document: unknown): CfValidator {\n if (!Validator.#schemaDocument(document)) {\n throw new TypeError(\"a JSON Schema document is an object declaring draft 2020-12, or no draft\");\n }\n return new CfValidator(document, \"2020-12\");\n }\n\n static #withRefs(mainSchema: unknown, refSchemas: unknown[]): CfValidator {\n const validator = Validator.#compile(mainSchema);\n const mainId = Validator.#schemaId(mainSchema);\n for (const ref of refSchemas) {\n if (Validator.#schemaId(ref) === mainId) continue;\n if (!Validator.#schemaDocument(ref)) {\n throw new TypeError(\"a referenced JSON Schema document is an object declaring draft 2020-12, or no draft\");\n }\n validator.addSchema(ref);\n }\n return validator;\n }\n\n // {§text-region} The schema's acceptance is the proof a value has its wire type: a guard over the result of\n // validating that value, the one place a validated `unknown` takes its type. The caller names the type the\n // schema it validated against generates; the predicate is where it appears.\n // oxlint-disable-next-line typescript/no-unnecessary-type-parameters -- a type predicate's parameter appears once by nature\n static #accepted<T>(value: unknown, result: ValidationResult): value is T {\n return result.valid;\n }\n\n // oxlint-disable-next-line typescript/no-unnecessary-type-parameters -- schema assertion returns the type the validated schema generates\n static #assert<T>(\n schema: JsonSchema,\n label: string,\n value: unknown,\n ErrorClass: new (message: string) => Error = TypeError,\n ): T {\n const result = Validator.validateJsonSchemaInstance(schema, value);\n if (!Validator.#accepted<T>(value, result)) {\n throw new ErrorClass(`invalid ${label}: ${JSON.stringify(result.errors)}`);\n }\n return value;\n }\n\n static validateJsonSchemaInstance(schema: JsonSchema, value: unknown): ValidationResult {\n let validator = Validator.#jsonSchemaValidators.get(schema);\n if (validator === undefined) {\n // @cfworker annotates a schema while dereferencing it. Dynamic wire\n // schemas are caller-owned discovery values and may be frozen; never\n // mutate the authority merely by compiling its executable projection.\n validator = Validator.#withRefs(structuredClone(schema), Validator.#publicSchemas);\n Validator.#jsonSchemaValidators.set(schema, validator);\n }\n const result = validator.validate(value);\n return { valid: result.valid, errors: result.errors };\n }\n\n static assertJsonSchemaInstance<T>(label: string, schema: JsonSchema, value: T): T {\n const result = Validator.validateJsonSchemaInstance(schema, value);\n if (!result.valid) {\n throw new TypeError(`${label} does not satisfy its JSON Schema: ${JSON.stringify(result.errors)}`);\n }\n return value;\n }\n\n static validateParsedPath(value: unknown): ValidationResult {\n return Validator.validateJsonSchemaInstance(parsedPathSchema, value);\n }\n\n static validatePlurnkStatement(value: unknown): ValidationResult {\n return Validator.validateJsonSchemaInstance(plurnkStatementSchema, value);\n }\n\n static validateEffort(value: unknown): ValidationResult {\n return Validator.validateJsonSchemaInstance(effortSchema, value);\n }\n\n static assertSessionOwner(value: unknown): SessionOwner {\n return Validator.#assert<SessionOwner>(sessionOwnerSchema, \"SessionOwner\", value);\n }\n\n static assertRollbackReport(value: unknown): RollbackReport {\n return Validator.#assert<RollbackReport>(rollbackReportSchema, \"RollbackReport\", value);\n }\n\n static assertNotice(value: unknown): Notice {\n return Validator.#assert<Notice>(noticeSchema, \"Notice\", value);\n }\n\n static assertProblemDetails(value: unknown): ProblemDetails {\n return Validator.#assert<ProblemDetails>(\n problemDetailsSchema,\n \"RFC 9457 Problem Details\",\n value,\n InvalidProblemDetailsError,\n );\n }\n\n static assertProblemProjection(value: unknown): ProblemProjection {\n return Validator.#assert<ProblemProjection>(problemProjectionSchema, \"model Problem projection\", value);\n }\n\n static assertOperationResult(value: unknown): OperationResult {\n const exact = Validator.#assert<OperationResult>(\n operationResultSchema,\n \"operation result\",\n value,\n InvalidOperationResultError,\n );\n if (exact.problem !== undefined && exact.problem.status !== exact.status) {\n throw new InvalidOperationResultError(\n `operation result status ${exact.status} does not match problem status ${exact.problem.status}`,\n );\n }\n if (exact.range !== undefined) {\n try {\n Validator.assertRangeExtent(exact.range);\n } catch (cause) {\n throw new InvalidOperationResultError(\"operation result contains an invalid RangeExtent\", { cause });\n }\n }\n return exact;\n }\n\n static assertEntryReadResult(value: unknown): EntryReadResult {\n const exact = Validator.#assert<EntryReadResult>(entryReadResultSchema, \"EntryReadResult\", value);\n if (\"problem\" in exact && exact.problem.status !== exact.status) {\n throw new TypeError(`EntryReadResult status ${exact.status} does not match problem status ${exact.problem.status}`);\n }\n if (exact.entry !== null) {\n for (const [name, channel] of Object.entries(exact.entry.channels)) {\n const returnedLength = Array.from(channel.content).length;\n if (channel.contentOffset + returnedLength !== channel.contentLength) {\n throw new TypeError(\n `invalid EntryReadResult: /entry/channels/${name} contentOffset plus the returned Unicode-code-point length must equal contentLength`,\n );\n }\n }\n }\n return exact;\n }\n\n static assertTextRegion(value: unknown): TextRegion {\n const exact = Validator.#assert<TextRegion>(textRegionSchema, \"TextRegion\", value);\n if (\n exact.endLine < exact.startLine\n || (exact.endLine === exact.startLine && exact.endColumn < exact.startColumn)\n ) {\n throw new TypeError(\"TextRegion ends before it starts\");\n }\n return exact;\n }\n\n static assertRangeExtent(value: unknown): RangeExtent {\n const exact = Validator.#assert<RangeExtent>(rangeExtentSchema, \"RangeExtent\", value);\n if (exact.returned !== undefined) {\n const [first, last] = exact.returned;\n if (first > last || last > exact.total) {\n throw new TypeError(\"RangeExtent returned positions must be ordered within total\");\n }\n }\n return exact;\n }\n\n static assertCapabilityDescriptor(value: unknown): CapabilityDescriptor {\n return Validator.#assert<CapabilityDescriptor>(capabilityDescriptorSchema, \"CapabilityDescriptor\", value);\n }\n\n static assertCapabilityPolicy(value: unknown): CapabilityPolicy {\n return Validator.#assert<CapabilityPolicy>(capabilityPolicySchema, \"CapabilityPolicy\", value);\n }\n\n static assertProposalProjection(value: unknown): ProposalProjection {\n return Validator.#assert<ProposalProjection>(proposalProjectionSchema, \"ProposalProjection\", value);\n }\n\n static assertClientDisplayCapabilities(value: unknown): ClientDisplayCapabilities {\n return Validator.#assert<ClientDisplayCapabilities>(clientDisplayCapabilitiesSchema, \"ClientDisplayCapabilities\", value);\n }\n\n static assertMcpServerDefinition(value: unknown): McpServerDefinition {\n return Validator.#assert<McpServerDefinition>(mcpServerDefinitionSchema, \"MCP server definition\", value);\n }\n\n static assertSkillDefinition(value: unknown): SkillDefinition {\n return Validator.#assert<SkillDefinition>(skillDefinitionSchema, \"Skill definition\", value);\n }\n\n static assertMcpOAuth(value: unknown): McpOAuth {\n return Validator.#assert<McpOAuth>(mcpOAuthSchema, \"MCP OAuth settings\", value);\n }\n\n static assertClientInteractionRequest(value: unknown): ClientInteractionRequest {\n return Validator.#assert<ClientInteractionRequest>(clientInteractionRequestSchema, \"ClientInteractionRequest\", value);\n }\n\n static assertClientInteractionProjection(value: unknown): ClientInteractionProjection {\n return Validator.#assert<ClientInteractionProjection>(clientInteractionProjectionSchema, \"ClientInteractionProjection\", value);\n }\n\n static assertClientInteractionResolution(value: unknown): ClientInteractionResolution {\n return Validator.#assert<ClientInteractionResolution>(clientInteractionResolutionSchema, \"ClientInteractionResolution\", value);\n }\n\n static assertParsedPath(value: unknown): ParsedPath {\n return Validator.#assert<ParsedPath>(parsedPathSchema, \"ParsedPath\", value);\n }\n\n static assertPlurnkStatement(value: unknown): PlurnkStatement {\n return Validator.#assert<PlurnkStatement>(plurnkStatementSchema, \"PlurnkStatement\", value);\n }\n\n static assertEffort(value: unknown): Effort {\n return Validator.#assert<Effort>(effortSchema, \"Effort\", value);\n }\n\n static assertModelCatalogPage(value: unknown): ModelCatalogPage {\n const page = Validator.#assert<ModelCatalogPage>(modelCatalogPageSchema, \"ModelCatalogPage\", value);\n const selectors = new Set<string>();\n for (const item of page.items) {\n Validator.assertModelReadiness(item.readiness);\n if (item.selector !== `${item.provider}/${item.model}`) {\n throw new TypeError(\"ModelCatalogPage item selector must equal provider/model\");\n }\n if (selectors.has(item.selector)) {\n throw new TypeError(\"ModelCatalogPage item selectors must be unique\");\n }\n selectors.add(item.selector);\n }\n const pageEnd = page.offset + page.items.length;\n if (page.items.length > 0 && pageEnd > page.total) {\n throw new TypeError(\"ModelCatalogPage items extend beyond total\");\n }\n if (page.nextOffset !== undefined) {\n if (page.nextOffset !== pageEnd || page.nextOffset >= page.total) {\n throw new TypeError(\"ModelCatalogPage nextOffset must equal the page end and leave remaining items\");\n }\n } else if (page.offset < page.total && pageEnd < page.total) {\n throw new TypeError(\"ModelCatalogPage omits nextOffset before total\");\n }\n return page;\n }\n\n static assertFunctionalityListResult(value: unknown): FunctionalityListResult {\n return Validator.#assert<FunctionalityListResult>(functionalityListResultSchema, \"FunctionalityListResult\", value);\n }\n\n static assertFunctionalityDiscoverResult(value: unknown): FunctionalityDiscoverResult {\n return Validator.#assert<FunctionalityDiscoverResult>(functionalityDiscoverResultSchema, \"FunctionalityDiscoverResult\", value);\n }\n\n static assertFunctionalityMutationResult(value: unknown): FunctionalityMutationResult {\n return Validator.#assert<FunctionalityMutationResult>(functionalityMutationResultSchema, \"FunctionalityMutationResult\", value);\n }\n\n static assertModelCatalogQuery(value: unknown): ModelCatalogQuery {\n return Validator.#assert<ModelCatalogQuery>(modelCatalogQuerySchema, \"ModelCatalogQuery\", value);\n }\n\n static assertModelReadiness(value: unknown): ModelReadiness {\n const readiness = Validator.#assert<ModelReadiness>(modelReadinessSchema, \"ModelReadiness\", value);\n if (readiness.ready !== (readiness.causes.length === 0)) {\n throw new TypeError(\"invalid ModelReadiness: ready must be true exactly when causes is empty\");\n }\n return readiness;\n }\n\n static assertModelRoute(value: unknown): ModelRoute {\n return Validator.#assert<ModelRoute>(modelRouteSchema, \"ModelRoute\", value);\n }\n\n static assertAcpDiscovery(value: unknown): AcpDiscovery {\n return Validator.#assert<AcpDiscovery>(acpDiscoverySchema, \"ACP discovery manifest\", value);\n }\n}\n"]}
|
|
1
|
+
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C,kBAAkB,CAAC,KAAc;QACpC,OAAO,SAAS,CAAC,OAAO,CAAe,kBAAkB,EAAE,wBAAwB,EAAE,KAAK,CAAC,CAAC;IAChG,CAAC;IAED,MAAM,CAAC,0BAA0B,CAAC,KAAc;QAC5C,OAAO,SAAS,CAAC,0BAA0B,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;IACzF,CAAC;IAED,MAAM,CAAC,wBAAwB,CAAC,KAAc;QAC1C,OAAO,SAAS,CAAC,OAAO,CACpB,gCAAgC,EAChC,4BAA4B,EAC5B,KAAK,CACR,CAAC;IACN,CAAC;CACJ","sourcesContent":["import { Validator as CfValidator, type OutputUnit, type Schema } from \"@cfworker/json-schema\";\nimport positionSchema from \"../schema/Position.json\" with { type: \"json\" };\nimport lineMarkerSchema from \"../schema/LineMarker.json\" with { type: \"json\" };\nimport textLineMarkerSchema from \"../schema/TextLineMarker.json\" with { type: \"json\" };\nimport parsedPathSchema from \"../schema/ParsedPath.json\" with { type: \"json\" };\nimport matcherBodySchema from \"../schema/MatcherBody.json\" with { type: \"json\" };\nimport sendBodySchema from \"../schema/SendBody.json\" with { type: \"json\" };\nimport resourceSelectionSchema from \"../schema/ResourceSelection.json\" with { type: \"json\" };\nimport plurnkStatementSchema from \"../schema/PlurnkStatement.json\" with { type: \"json\" };\nimport daemonNotificationEnvelopeSchema from \"../schema/DaemonNotificationEnvelope.json\" with { type: \"json\" };\nimport noticeSchema from \"../schema/Notice.json\" with { type: \"json\" };\nimport problemDetailsSchema from \"../schema/ProblemDetails.json\" with { type: \"json\" };\nimport problemProjectionSchema from \"../schema/ProblemProjection.json\" with { type: \"json\" };\nimport operationResultSchema from \"../schema/OperationResult.json\" with { type: \"json\" };\nimport entryReadResultSchema from \"../schema/EntryReadResult.json\" with { type: \"json\" };\nimport textRegionSchema from \"../schema/TextRegion.json\" with { type: \"json\" };\nimport rangeExtentSchema from \"../schema/RangeExtent.json\" with { type: \"json\" };\nimport proposalProjectionSchema from \"../schema/ProposalProjection.json\" with { type: \"json\" };\nimport proposalDispositionSchema from \"../schema/ProposalDisposition.json\" with { type: \"json\" };\nimport sessionOwnerSchema from \"../schema/SessionOwner.json\" with { type: \"json\" };\nimport type { SessionOwner, RollbackReport, AcpDiscovery, ClientDisplayCapabilities, ClientInteractionProjection, ClientInteractionRequest, ClientInteractionResolution, DaemonNotificationEnvelope, EntryReadResult, FunctionalityDiscoverResult, FunctionalityListQuery, FunctionalityListResult, FunctionalityMutationResult, McpOAuth, McpServerDefinition, ModelCatalogPage, ModelCatalogQuery, ModelReadiness, ModelRoute, Notice, OperationResult, ProblemDetails, ProblemProjection, ProposalProjection, RangeExtent, Effort, SkillDefinition, TextRegion, JsonSchema, ParsedPath, PlurnkStatement } from \"./types.generated.ts\";\nimport clientDisplayCapabilitiesSchema from \"../schema/ClientDisplayCapabilities.json\" with { type: \"json\" };\nimport mcpServerDefinitionSchema from \"../schema/McpServerDefinition.json\" with { type: \"json\" };\nimport skillDefinitionSchema from \"../schema/SkillDefinition.json\" with { type: \"json\" };\nimport mcpOAuthSchema from \"../schema/McpOAuth.json\" with { type: \"json\" };\nimport clientInteractionRequestSchema from \"../schema/ClientInteractionRequest.json\" with { type: \"json\" };\nimport clientInteractionProjectionSchema from \"../schema/ClientInteractionProjection.json\" with { type: \"json\" };\nimport clientInteractionResolutionSchema from \"../schema/ClientInteractionResolution.json\" with { type: \"json\" };\nimport effortSchema from \"../schema/Effort.json\" with { type: \"json\" };\nimport modelCatalogPageSchema from \"../schema/ModelCatalogPage.json\" with { type: \"json\" };\nimport modelCatalogQuerySchema from \"../schema/ModelCatalogQuery.json\" with { type: \"json\" };\nimport functionalityCandidateSchema from \"../schema/FunctionalityCandidate.json\" with { type: \"json\" };\nimport functionalityProvenanceSchema from \"../schema/FunctionalityProvenance.json\" with { type: \"json\" };\nimport functionalityDiscoverQuerySchema from \"../schema/FunctionalityDiscoverQuery.json\" with { type: \"json\" };\nimport functionalityDiscoverResultSchema from \"../schema/FunctionalityDiscoverResult.json\" with { type: \"json\" };\nimport functionalityDefinitionStateSchema from \"../schema/FunctionalityDefinitionState.json\" with { type: \"json\" };\nimport functionalityListQuerySchema from \"../schema/FunctionalityListQuery.json\" with { type: \"json\" };\nimport functionalityListResultSchema from \"../schema/FunctionalityListResult.json\" with { type: \"json\" };\nimport functionalityMutationResultSchema from \"../schema/FunctionalityMutationResult.json\" with { type: \"json\" };\nimport rollbackReportSchema from \"../schema/RollbackReport.json\" with { type: \"json\" };\nimport mcpOAuthCompletionResultSchema from \"../schema/McpOAuthCompletionResult.json\" with { type: \"json\" };\nimport mcpOAuthBeginResultSchema from \"../schema/McpOAuthBeginResult.json\" with { type: \"json\" };\nimport functionalityPreparationActivitySchema from \"../schema/FunctionalityPreparationActivity.json\" with { type: \"json\" };\nimport modelReadinessSchema from \"../schema/ModelReadiness.json\" with { type: \"json\" };\nimport modelRouteSchema from \"../schema/ModelRoute.json\" with { type: \"json\" };\nimport acpDiscoverySchema from \"../schema/AcpDiscovery.json\" with { type: \"json\" };\nimport providerAccountingSchema from \"../schema/ProviderAccounting.json\" with { type: \"json\" };\nimport providerRequestAccountingSchema from \"../schema/ProviderRequestAccounting.json\" with { type: \"json\" };\nimport providerUsageSchema from \"../schema/ProviderUsage.json\" with { type: \"json\" };\nimport providerCostSchema from \"../schema/ProviderCost.json\" with { type: \"json\" };\n\nexport type ValidationResult = { valid: boolean; errors: OutputUnit[] };\n\nexport class InvalidProblemDetailsError extends TypeError {}\nexport class InvalidOperationResultError extends TypeError {}\n\nexport default class Validator {\n static #jsonSchemaValidators = new WeakMap<JsonSchema, CfValidator>();\n static #publicSchemas = [\n daemonNotificationEnvelopeSchema,\n plurnkStatementSchema,\n positionSchema,\n lineMarkerSchema,\n textLineMarkerSchema,\n parsedPathSchema,\n matcherBodySchema,\n sendBodySchema,\n resourceSelectionSchema,\n acpDiscoverySchema,\n clientDisplayCapabilitiesSchema,\n clientInteractionProjectionSchema,\n clientInteractionRequestSchema,\n clientInteractionResolutionSchema,\n entryReadResultSchema,\n functionalityCandidateSchema,\n functionalityProvenanceSchema,\n functionalityDefinitionStateSchema,\n functionalityDiscoverQuerySchema,\n functionalityDiscoverResultSchema,\n functionalityListQuerySchema,\n functionalityListResultSchema,\n functionalityMutationResultSchema,\n functionalityPreparationActivitySchema,\n rollbackReportSchema,\n mcpOAuthCompletionResultSchema,\n mcpOAuthBeginResultSchema,\n mcpOAuthSchema,\n mcpServerDefinitionSchema,\n skillDefinitionSchema,\n sessionOwnerSchema,\n modelCatalogPageSchema,\n modelCatalogQuerySchema,\n modelReadinessSchema,\n modelRouteSchema,\n noticeSchema,\n operationResultSchema,\n problemDetailsSchema,\n problemProjectionSchema,\n proposalDispositionSchema,\n proposalProjectionSchema,\n providerAccountingSchema,\n providerRequestAccountingSchema,\n providerUsageSchema,\n providerCostSchema,\n rangeExtentSchema,\n textRegionSchema,\n effortSchema,\n ];\n\n // The exact schema behind a `$ref` a Functionality family declares as its definition\n // schema — the source its generated document teaches the definition from.\n static schemaByRef(ref: string): object | null {\n const schema = Validator.#publicSchemas.find((candidate) => Validator.#schemaId(candidate) === ref);\n return schema === undefined ? null : schema;\n }\n\n // {§text-region} A schema document is an object, naming its dialect in `$schema` or taking the validator's\n // default; every validator compiles one, the checked-in documents and the dynamic ones callers own alike. What\n // the document then means is the validator's to read, its declared dialect included.\n static #schemaDocument(value: unknown): value is Schema {\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) return false;\n return !(\"$schema\" in value) || typeof value.$schema === \"string\";\n }\n\n static #schemaId(document: unknown): string | undefined {\n return typeof document === \"object\" && document !== null && \"$id\" in document && typeof document.$id === \"string\"\n ? document.$id\n : undefined;\n }\n\n static #compile(document: unknown): CfValidator {\n if (!Validator.#schemaDocument(document)) {\n throw new TypeError(\"a JSON Schema document is an object declaring draft 2020-12, or no draft\");\n }\n return new CfValidator(document, \"2020-12\");\n }\n\n static #withRefs(mainSchema: unknown, refSchemas: unknown[]): CfValidator {\n const validator = Validator.#compile(mainSchema);\n const mainId = Validator.#schemaId(mainSchema);\n for (const ref of refSchemas) {\n if (Validator.#schemaId(ref) === mainId) continue;\n if (!Validator.#schemaDocument(ref)) {\n throw new TypeError(\"a referenced JSON Schema document is an object declaring draft 2020-12, or no draft\");\n }\n validator.addSchema(ref);\n }\n return validator;\n }\n\n // {§text-region} The schema's acceptance is the proof a value has its wire type: a guard over the result of\n // validating that value, the one place a validated `unknown` takes its type. The caller names the type the\n // schema it validated against generates; the predicate is where it appears.\n // oxlint-disable-next-line typescript/no-unnecessary-type-parameters -- a type predicate's parameter appears once by nature\n static #accepted<T>(value: unknown, result: ValidationResult): value is T {\n return result.valid;\n }\n\n // oxlint-disable-next-line typescript/no-unnecessary-type-parameters -- schema assertion returns the type the validated schema generates\n static #assert<T>(\n schema: JsonSchema,\n label: string,\n value: unknown,\n ErrorClass: new (message: string) => Error = TypeError,\n ): T {\n const result = Validator.validateJsonSchemaInstance(schema, value);\n if (!Validator.#accepted<T>(value, result)) {\n throw new ErrorClass(`invalid ${label}: ${JSON.stringify(result.errors)}`);\n }\n return value;\n }\n\n static validateJsonSchemaInstance(schema: JsonSchema, value: unknown): ValidationResult {\n let validator = Validator.#jsonSchemaValidators.get(schema);\n if (validator === undefined) {\n // @cfworker annotates a schema while dereferencing it. Dynamic wire\n // schemas are caller-owned discovery values and may be frozen; never\n // mutate the authority merely by compiling its executable projection.\n validator = Validator.#withRefs(structuredClone(schema), Validator.#publicSchemas);\n Validator.#jsonSchemaValidators.set(schema, validator);\n }\n const result = validator.validate(value);\n return { valid: result.valid, errors: result.errors };\n }\n\n static assertJsonSchemaInstance<T>(label: string, schema: JsonSchema, value: T): T {\n const result = Validator.validateJsonSchemaInstance(schema, value);\n if (!result.valid) {\n throw new TypeError(`${label} does not satisfy its JSON Schema: ${JSON.stringify(result.errors)}`);\n }\n return value;\n }\n\n static validateParsedPath(value: unknown): ValidationResult {\n return Validator.validateJsonSchemaInstance(parsedPathSchema, value);\n }\n\n static validatePlurnkStatement(value: unknown): ValidationResult {\n return Validator.validateJsonSchemaInstance(plurnkStatementSchema, value);\n }\n\n static validateEffort(value: unknown): ValidationResult {\n return Validator.validateJsonSchemaInstance(effortSchema, value);\n }\n\n static assertSessionOwner(value: unknown): SessionOwner {\n return Validator.#assert<SessionOwner>(sessionOwnerSchema, \"SessionOwner\", value);\n }\n\n static assertRollbackReport(value: unknown): RollbackReport {\n return Validator.#assert<RollbackReport>(rollbackReportSchema, \"RollbackReport\", value);\n }\n\n static assertNotice(value: unknown): Notice {\n return Validator.#assert<Notice>(noticeSchema, \"Notice\", value);\n }\n\n static assertProblemDetails(value: unknown): ProblemDetails {\n return Validator.#assert<ProblemDetails>(\n problemDetailsSchema,\n \"RFC 9457 Problem Details\",\n value,\n InvalidProblemDetailsError,\n );\n }\n\n static assertProblemProjection(value: unknown): ProblemProjection {\n return Validator.#assert<ProblemProjection>(problemProjectionSchema, \"model Problem projection\", value);\n }\n\n static assertOperationResult(value: unknown): OperationResult {\n const exact = Validator.#assert<OperationResult>(\n operationResultSchema,\n \"operation result\",\n value,\n InvalidOperationResultError,\n );\n if (exact.problem !== undefined && exact.problem.status !== exact.status) {\n throw new InvalidOperationResultError(\n `operation result status ${exact.status} does not match problem status ${exact.problem.status}`,\n );\n }\n if (exact.range !== undefined) {\n try {\n Validator.assertRangeExtent(exact.range);\n } catch (cause) {\n throw new InvalidOperationResultError(\"operation result contains an invalid RangeExtent\", { cause });\n }\n }\n return exact;\n }\n\n static assertEntryReadResult(value: unknown): EntryReadResult {\n const exact = Validator.#assert<EntryReadResult>(entryReadResultSchema, \"EntryReadResult\", value);\n if (\"problem\" in exact && exact.problem.status !== exact.status) {\n throw new TypeError(`EntryReadResult status ${exact.status} does not match problem status ${exact.problem.status}`);\n }\n if (exact.entry !== null) {\n for (const [name, channel] of Object.entries(exact.entry.channels)) {\n const returnedLength = Array.from(channel.content).length;\n if (channel.contentOffset + returnedLength !== channel.contentLength) {\n throw new TypeError(\n `invalid EntryReadResult: /entry/channels/${name} contentOffset plus the returned Unicode-code-point length must equal contentLength`,\n );\n }\n }\n }\n return exact;\n }\n\n static assertTextRegion(value: unknown): TextRegion {\n const exact = Validator.#assert<TextRegion>(textRegionSchema, \"TextRegion\", value);\n if (\n exact.endLine < exact.startLine\n || (exact.endLine === exact.startLine && exact.endColumn < exact.startColumn)\n ) {\n throw new TypeError(\"TextRegion ends before it starts\");\n }\n return exact;\n }\n\n static assertRangeExtent(value: unknown): RangeExtent {\n const exact = Validator.#assert<RangeExtent>(rangeExtentSchema, \"RangeExtent\", value);\n if (exact.returned !== undefined) {\n const [first, last] = exact.returned;\n if (first > last || last > exact.total) {\n throw new TypeError(\"RangeExtent returned positions must be ordered within total\");\n }\n }\n return exact;\n }\n\n static assertProposalProjection(value: unknown): ProposalProjection {\n return Validator.#assert<ProposalProjection>(proposalProjectionSchema, \"ProposalProjection\", value);\n }\n\n static assertClientDisplayCapabilities(value: unknown): ClientDisplayCapabilities {\n return Validator.#assert<ClientDisplayCapabilities>(clientDisplayCapabilitiesSchema, \"ClientDisplayCapabilities\", value);\n }\n\n static assertMcpServerDefinition(value: unknown): McpServerDefinition {\n return Validator.#assert<McpServerDefinition>(mcpServerDefinitionSchema, \"MCP server definition\", value);\n }\n\n static assertSkillDefinition(value: unknown): SkillDefinition {\n return Validator.#assert<SkillDefinition>(skillDefinitionSchema, \"Skill definition\", value);\n }\n\n static assertMcpOAuth(value: unknown): McpOAuth {\n return Validator.#assert<McpOAuth>(mcpOAuthSchema, \"MCP OAuth settings\", value);\n }\n\n static assertClientInteractionRequest(value: unknown): ClientInteractionRequest {\n return Validator.#assert<ClientInteractionRequest>(clientInteractionRequestSchema, \"ClientInteractionRequest\", value);\n }\n\n static assertClientInteractionProjection(value: unknown): ClientInteractionProjection {\n return Validator.#assert<ClientInteractionProjection>(clientInteractionProjectionSchema, \"ClientInteractionProjection\", value);\n }\n\n static assertClientInteractionResolution(value: unknown): ClientInteractionResolution {\n return Validator.#assert<ClientInteractionResolution>(clientInteractionResolutionSchema, \"ClientInteractionResolution\", value);\n }\n\n static assertParsedPath(value: unknown): ParsedPath {\n return Validator.#assert<ParsedPath>(parsedPathSchema, \"ParsedPath\", value);\n }\n\n static assertPlurnkStatement(value: unknown): PlurnkStatement {\n return Validator.#assert<PlurnkStatement>(plurnkStatementSchema, \"PlurnkStatement\", value);\n }\n\n static assertEffort(value: unknown): Effort {\n return Validator.#assert<Effort>(effortSchema, \"Effort\", value);\n }\n\n static assertModelCatalogPage(value: unknown): ModelCatalogPage {\n const page = Validator.#assert<ModelCatalogPage>(modelCatalogPageSchema, \"ModelCatalogPage\", value);\n const selectors = new Set<string>();\n for (const item of page.items) {\n Validator.assertModelReadiness(item.readiness);\n if (item.selector !== `${item.provider}/${item.model}`) {\n throw new TypeError(\"ModelCatalogPage item selector must equal provider/model\");\n }\n if (selectors.has(item.selector)) {\n throw new TypeError(\"ModelCatalogPage item selectors must be unique\");\n }\n selectors.add(item.selector);\n }\n const pageEnd = page.offset + page.items.length;\n if (page.items.length > 0 && pageEnd > page.total) {\n throw new TypeError(\"ModelCatalogPage items extend beyond total\");\n }\n if (page.nextOffset !== undefined) {\n if (page.nextOffset !== pageEnd || page.nextOffset >= page.total) {\n throw new TypeError(\"ModelCatalogPage nextOffset must equal the page end and leave remaining items\");\n }\n } else if (page.offset < page.total && pageEnd < page.total) {\n throw new TypeError(\"ModelCatalogPage omits nextOffset before total\");\n }\n return page;\n }\n\n static assertFunctionalityListQuery(value: unknown): FunctionalityListQuery {\n return Validator.#assert<FunctionalityListQuery>(functionalityListQuerySchema, \"FunctionalityListQuery\", value);\n }\n\n static assertFunctionalityListResult(value: unknown): FunctionalityListResult {\n const result = Validator.#assert<FunctionalityListResult>(functionalityListResultSchema, \"FunctionalityListResult\", value);\n const pageEnd = result.offset + result.definitions.length;\n if (result.definitions.length > 0 && pageEnd > result.total) {\n throw new TypeError(\"FunctionalityListResult definitions extend beyond total\");\n }\n if (result.nextOffset !== undefined) {\n if (result.nextOffset !== pageEnd || result.nextOffset >= result.total) {\n throw new TypeError(\"FunctionalityListResult nextOffset must equal the page end and leave remaining items\");\n }\n } else if (result.offset < result.total && pageEnd < result.total) {\n throw new TypeError(\"FunctionalityListResult omits nextOffset before total\");\n }\n return result;\n }\n\n static assertFunctionalityDiscoverResult(value: unknown): FunctionalityDiscoverResult {\n return Validator.#assert<FunctionalityDiscoverResult>(functionalityDiscoverResultSchema, \"FunctionalityDiscoverResult\", value);\n }\n\n static assertFunctionalityMutationResult(value: unknown): FunctionalityMutationResult {\n return Validator.#assert<FunctionalityMutationResult>(functionalityMutationResultSchema, \"FunctionalityMutationResult\", value);\n }\n\n static assertModelCatalogQuery(value: unknown): ModelCatalogQuery {\n return Validator.#assert<ModelCatalogQuery>(modelCatalogQuerySchema, \"ModelCatalogQuery\", value);\n }\n\n static assertModelReadiness(value: unknown): ModelReadiness {\n const readiness = Validator.#assert<ModelReadiness>(modelReadinessSchema, \"ModelReadiness\", value);\n if (readiness.ready !== (readiness.causes.length === 0)) {\n throw new TypeError(\"invalid ModelReadiness: ready must be true exactly when causes is empty\");\n }\n return readiness;\n }\n\n static assertModelRoute(value: unknown): ModelRoute {\n return Validator.#assert<ModelRoute>(modelRouteSchema, \"ModelRoute\", value);\n }\n\n static assertAcpDiscovery(value: unknown): AcpDiscovery {\n return Validator.#assert<AcpDiscovery>(acpDiscoverySchema, \"ACP discovery manifest\", value);\n }\n\n static validateDaemonNotification(value: unknown): ValidationResult {\n return Validator.validateJsonSchemaInstance(daemonNotificationEnvelopeSchema, value);\n }\n\n static assertDaemonNotification(value: unknown): DaemonNotificationEnvelope {\n return Validator.#assert<DaemonNotificationEnvelope>(\n daemonNotificationEnvelopeSchema,\n \"DaemonNotificationEnvelope\",\n value,\n );\n }\n}\n"]}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -10,18 +10,24 @@ export type { ValidationResult } from "./Validator.ts";
|
|
|
10
10
|
export { default as PlurnkParseError } from "./PlurnkParseError.ts";
|
|
11
11
|
export { default as PathSyntax } from "./PathSyntax.ts";
|
|
12
12
|
export { default as TurnDisposition } from "./TurnDisposition.ts";
|
|
13
|
-
export { default as CapabilityAdmission } from "./CapabilityAdmission.ts";
|
|
14
13
|
export { renderJsonResult } from "./JsonResult.ts";
|
|
15
14
|
export { formatJsonDocument } from "./JsonDocument.ts";
|
|
16
15
|
export type { JsonReplacer } from "./JsonResult.ts";
|
|
17
|
-
export { admitBearerRequest, requestOrigin } from "./HttpOrigin.ts";
|
|
18
|
-
export type { BearerAdmission, BearerAdmissionOptions, RequestHeaders } from "./HttpOrigin.ts";
|
|
16
|
+
export { admitBearerRequest, admitBrowserOrigin, buildCorsHeaders, isLoopbackHost, parseScopedRoute, requestOrigin, resolvePublicOrigin, } from "./HttpOrigin.ts";
|
|
17
|
+
export type { BearerAdmission, BearerAdmissionOptions, BrowserOriginAdmission, BrowserOriginOptions, CorsHeaderOptions, RequestHeaders, ScopedRouteOptions, ScopedRouteParseResult, } from "./HttpOrigin.ts";
|
|
18
|
+
export { actorsMatch, extractActor, isDefaultExteriorActor, parseExteriorActor, type ExteriorActor, type ExteriorActorScheme, } from "./ActorIdentity.ts";
|
|
19
19
|
export { LOG_ENTRY_KINDS, addressOf, isLogEntryKind, toolKindOf, type LogAddressColumns, type LogEntryKind, type ProposalToolKind, } from "./LogRow.ts";
|
|
20
|
-
export { DAEMON_NOTIFICATION_EVENTS, isDaemonNotificationEvent, matchesNotificationFilter, toDaemonNotification, type ApplicationNotificationContract, type DaemonNotification, type DaemonNotificationEvent, type DaemonNotificationPayloadMap, type LogEntryNotification, type LoopInteractionNotification, type LoopPacketNotification, type NoticeEventNotification, type NotificationFilter, type
|
|
21
|
-
export { formatServiceUpdateReport, parseFamilyCommand } from "./Application.ts";
|
|
20
|
+
export { APPLICATION_RUNTIME_STREAM_EVENTS, DAEMON_NOTIFICATION_EVENTS, isApplicationRuntimeStreamEvent, isDaemonNotificationEvent, isRuntimeTelemetryNotice, matchesNotificationFilter, toDaemonNotification, type ApplicationNotificationContract, type ApplicationRuntimeStreamEvent, type ApplicationRuntimeStreamHandler, type ApplicationRuntimeStreamPayloadMap, type DaemonNotification, type DaemonNotificationEvent, type DaemonNotificationPayloadMap, type FunctionalityChangedNotification, type LogEntryNotification, type LoopGateSettledNotification, type LoopInteractionNotification, type LoopPacketNotification, type LoopParkedNotification, type LoopStartedNotification, type NoticeEventNotification, type NotificationFilter, type NotificationReplayResult, type NotificationsResyncPayload, type ProposalNotification, type ReasoningEventNotification, type SessionArchivedNotification, type SessionCreatedNotification, type SessionDeletedNotification, type SessionPolicyNotification, type SessionTitledNotification, type StreamConcludedNotification, type StreamEventNotification, type TerminatedNotification, type WorkspaceArchivedNotification, type WorkspaceCreatedNotification, type WorkspacePreparationNotification, type WorkspaceRenamedNotification, } from "./ApplicationNotifications.ts";
|
|
21
|
+
export { expandLearnCommand, formatFamilyResult, formatFamilyRows, formatServiceUpdateReport, parseFamilyCommand, } from "./Application.ts";
|
|
22
|
+
export { SCHEDULE_ADD_FLAGS, SCHEDULE_USAGE, extractScheduleProblem, formatScheduleInspect, formatScheduleStepReceipts, tokenizeSlashArgs, type ScheduleRunResult, type ScheduleStatus, type ScheduledStepReceipt, type ScheduledToolCall, } from "./ScheduleCommand.ts";
|
|
23
|
+
export { FAMILY_SUBCOMMANDS_BY_FAMILY, INTERACTIVE_COMMANDS, buildPromptBlocks, classifyComposerInput, completeInteractiveCommand, longestCommonPrefix, } from "./InteractiveCommands.ts";
|
|
24
|
+
export { SingleFlightRefresh, buildAuthorizationServerMetadataUrls, discoverAuthorizationServerMetadata, discoverProtectedResourceMetadata, generatePkcePair, isAllowedOAuthUrl, parseJwtExpiresAt, parseWwwAuthenticateResourceMetadata, resolveTokenExpiresAt, type AuthorizationServerMetadata, type PkcePair, type ProtectedResourceMetadata, } from "./OAuthClient.ts";
|
|
25
|
+
export { flattenConfigSelectOptions, formatProblemSummary, parseSessionConfigOptions, projectSessionStatus, rankModelChoices, summarizeOperation, type FlatConfigSelectOption, type ModelChoiceCandidate, type OperationSummary, type ParsedConfigOption, type ParsedSessionConfigOptions, type ProjectedSessionStatus, type SessionPhase, type SessionStatusInput, } from "./SessionProjection.ts";
|
|
26
|
+
export type * from "./InteractiveCommands.ts";
|
|
22
27
|
export type * from "./Application.ts";
|
|
23
28
|
export type * from "./Functionality.ts";
|
|
24
29
|
export { PLURNK_OPS, PROPOSAL_POLICIES, RUNTIME_TAG, INTERNAL_ROW_OPS, isExecution, isExecutionOp, isPlurnkOp, writtenOp, EFFORTS, SESSION_NAME, SKILL_NAME, UNKNOWN_POSITION, MAX_TIMER_MS } from "./types.ts";
|
|
30
|
+
export { MCP_WIRE_TOOL, type McpWireToolDefinition } from "./McpWireTool.ts";
|
|
25
31
|
export type * from "./types.ts";
|
|
26
32
|
export type { ErrorSource, Severity } from "./PlurnkParseError.ts";
|
|
27
33
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,OAAO,IAAI,SAAS,EACpB,2BAA2B,EAC3B,0BAA0B,GAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjE,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,eAAe,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAClJ,YAAY,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAC1F,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EAAE,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AAChC,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,oBAAoB,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAChN,OAAO,EAAE,aAAa,EAAE,KAAK,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,mBAAmB,YAAY,CAAC;AAChC,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -8,13 +8,18 @@ export { excerptOf } from "./Excerpt.js";
|
|
|
8
8
|
export { default as PlurnkParseError } from "./PlurnkParseError.js";
|
|
9
9
|
export { default as PathSyntax } from "./PathSyntax.js";
|
|
10
10
|
export { default as TurnDisposition } from "./TurnDisposition.js";
|
|
11
|
-
export { default as CapabilityAdmission } from "./CapabilityAdmission.js";
|
|
12
11
|
export { renderJsonResult } from "./JsonResult.js";
|
|
13
12
|
export { formatJsonDocument } from "./JsonDocument.js";
|
|
14
|
-
export { admitBearerRequest, requestOrigin } from "./HttpOrigin.js";
|
|
13
|
+
export { admitBearerRequest, admitBrowserOrigin, buildCorsHeaders, isLoopbackHost, parseScopedRoute, requestOrigin, resolvePublicOrigin, } from "./HttpOrigin.js";
|
|
14
|
+
export { actorsMatch, extractActor, isDefaultExteriorActor, parseExteriorActor, } from "./ActorIdentity.js";
|
|
15
15
|
export { LOG_ENTRY_KINDS, addressOf, isLogEntryKind, toolKindOf, } from "./LogRow.js";
|
|
16
|
-
export { DAEMON_NOTIFICATION_EVENTS, isDaemonNotificationEvent, matchesNotificationFilter, toDaemonNotification, } from "./ApplicationNotifications.js";
|
|
16
|
+
export { APPLICATION_RUNTIME_STREAM_EVENTS, DAEMON_NOTIFICATION_EVENTS, isApplicationRuntimeStreamEvent, isDaemonNotificationEvent, isRuntimeTelemetryNotice, matchesNotificationFilter, toDaemonNotification, } from "./ApplicationNotifications.js";
|
|
17
17
|
// {§whitespace-contract} The application port is Node-bound and is its own entry, `@plurnk/plurnk-contracts/port`.
|
|
18
|
-
export { formatServiceUpdateReport, parseFamilyCommand } from "./Application.js";
|
|
18
|
+
export { expandLearnCommand, formatFamilyResult, formatFamilyRows, formatServiceUpdateReport, parseFamilyCommand, } from "./Application.js";
|
|
19
|
+
export { SCHEDULE_ADD_FLAGS, SCHEDULE_USAGE, extractScheduleProblem, formatScheduleInspect, formatScheduleStepReceipts, tokenizeSlashArgs, } from "./ScheduleCommand.js";
|
|
20
|
+
export { FAMILY_SUBCOMMANDS_BY_FAMILY, INTERACTIVE_COMMANDS, buildPromptBlocks, classifyComposerInput, completeInteractiveCommand, longestCommonPrefix, } from "./InteractiveCommands.js";
|
|
21
|
+
export { SingleFlightRefresh, buildAuthorizationServerMetadataUrls, discoverAuthorizationServerMetadata, discoverProtectedResourceMetadata, generatePkcePair, isAllowedOAuthUrl, parseJwtExpiresAt, parseWwwAuthenticateResourceMetadata, resolveTokenExpiresAt, } from "./OAuthClient.js";
|
|
22
|
+
export { flattenConfigSelectOptions, formatProblemSummary, parseSessionConfigOptions, projectSessionStatus, rankModelChoices, summarizeOperation, } from "./SessionProjection.js";
|
|
19
23
|
export { PLURNK_OPS, PROPOSAL_POLICIES, RUNTIME_TAG, INTERNAL_ROW_OPS, isExecution, isExecutionOp, isPlurnkOp, writtenOp, EFFORTS, SESSION_NAME, SKILL_NAME, UNKNOWN_POSITION, MAX_TIMER_MS } from "./types.js";
|
|
24
|
+
export { MCP_WIRE_TOOL } from "./McpWireTool.js";
|
|
20
25
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names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OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAChN,OAAO,EAAE,aAAa,EAA8B,MAAM,kBAAkB,CAAC","sourcesContent":["// {§text-region} — the package root: validators, Problems and generated types. The schemas\n// themselves are published at `./schema/*.json`, never re-exported here as values.\nexport {\n default as Validator,\n InvalidOperationResultError,\n InvalidProblemDetailsError,\n} from \"./Validator.ts\";\nexport { default as Problems } from \"./Problems.ts\";\nexport { errnoCode, isRecord, isSafeInteger } from \"./guards.ts\";\nexport type { MessageResource, MessageResourceReceipt, MessageEvidence, ApplicationMessage, ApplicationInboxMessage } from \"./MessageResource.ts\";\nexport type { ApplicationStream, ApplicationStreamChannel } from \"./ApplicationStream.ts\";\nexport { lifecycleOfLoopStatus, selectSessionLoop, type LoopLifecycle } from \"./LoopLifecycle.ts\";\nexport { excerptOf } from \"./Excerpt.ts\";\nexport type { ProblemOptions, ProblemProjectionContext } from \"./Problems.ts\";\nexport type { ValidationResult } from \"./Validator.ts\";\nexport { default as PlurnkParseError } from \"./PlurnkParseError.ts\";\nexport { default as PathSyntax } from \"./PathSyntax.ts\";\nexport { default as TurnDisposition } from \"./TurnDisposition.ts\";\nexport { renderJsonResult } from \"./JsonResult.ts\";\nexport { formatJsonDocument } from \"./JsonDocument.ts\";\nexport type { JsonReplacer } from \"./JsonResult.ts\";\nexport {\n admitBearerRequest,\n admitBrowserOrigin,\n buildCorsHeaders,\n isLoopbackHost,\n parseScopedRoute,\n requestOrigin,\n resolvePublicOrigin,\n} from \"./HttpOrigin.ts\";\nexport type {\n BearerAdmission,\n BearerAdmissionOptions,\n BrowserOriginAdmission,\n BrowserOriginOptions,\n CorsHeaderOptions,\n RequestHeaders,\n ScopedRouteOptions,\n ScopedRouteParseResult,\n} from \"./HttpOrigin.ts\";\nexport {\n actorsMatch,\n extractActor,\n isDefaultExteriorActor,\n parseExteriorActor,\n type ExteriorActor,\n type ExteriorActorScheme,\n} from \"./ActorIdentity.ts\";\nexport {\n LOG_ENTRY_KINDS,\n addressOf,\n isLogEntryKind,\n toolKindOf,\n type LogAddressColumns,\n type LogEntryKind,\n type ProposalToolKind,\n} from \"./LogRow.ts\";\nexport {\n APPLICATION_RUNTIME_STREAM_EVENTS,\n DAEMON_NOTIFICATION_EVENTS,\n isApplicationRuntimeStreamEvent,\n isDaemonNotificationEvent,\n isRuntimeTelemetryNotice,\n matchesNotificationFilter,\n toDaemonNotification,\n type ApplicationNotificationContract,\n type ApplicationRuntimeStreamEvent,\n type ApplicationRuntimeStreamHandler,\n type ApplicationRuntimeStreamPayloadMap,\n type DaemonNotification,\n type DaemonNotificationEvent,\n type DaemonNotificationPayloadMap,\n type FunctionalityChangedNotification,\n type LogEntryNotification,\n type LoopGateSettledNotification,\n type LoopInteractionNotification,\n type LoopPacketNotification,\n type LoopParkedNotification,\n type LoopStartedNotification,\n type NoticeEventNotification,\n type NotificationFilter,\n type NotificationReplayResult,\n type NotificationsResyncPayload,\n type ProposalNotification,\n type ReasoningEventNotification,\n type SessionArchivedNotification,\n type SessionCreatedNotification,\n type SessionDeletedNotification,\n type SessionPolicyNotification,\n type SessionTitledNotification,\n type StreamConcludedNotification,\n type StreamEventNotification,\n type TerminatedNotification,\n type WorkspaceArchivedNotification,\n type WorkspaceCreatedNotification,\n type WorkspacePreparationNotification,\n type WorkspaceRenamedNotification,\n} from \"./ApplicationNotifications.ts\";\n// {§whitespace-contract} The application port is Node-bound and is its own entry, `@plurnk/plurnk-contracts/port`.\nexport {\n expandLearnCommand,\n formatFamilyResult,\n formatFamilyRows,\n formatServiceUpdateReport,\n parseFamilyCommand,\n} from \"./Application.ts\";\nexport {\n SCHEDULE_ADD_FLAGS,\n SCHEDULE_USAGE,\n extractScheduleProblem,\n formatScheduleInspect,\n formatScheduleStepReceipts,\n tokenizeSlashArgs,\n type ScheduleRunResult,\n type ScheduleStatus,\n type ScheduledStepReceipt,\n type ScheduledToolCall,\n} from \"./ScheduleCommand.ts\";\nexport {\n FAMILY_SUBCOMMANDS_BY_FAMILY,\n INTERACTIVE_COMMANDS,\n buildPromptBlocks,\n classifyComposerInput,\n completeInteractiveCommand,\n longestCommonPrefix,\n} from \"./InteractiveCommands.ts\";\nexport {\n SingleFlightRefresh,\n buildAuthorizationServerMetadataUrls,\n discoverAuthorizationServerMetadata,\n discoverProtectedResourceMetadata,\n generatePkcePair,\n isAllowedOAuthUrl,\n parseJwtExpiresAt,\n parseWwwAuthenticateResourceMetadata,\n resolveTokenExpiresAt,\n type AuthorizationServerMetadata,\n type PkcePair,\n type ProtectedResourceMetadata,\n} from \"./OAuthClient.ts\";\nexport {\n flattenConfigSelectOptions,\n formatProblemSummary,\n parseSessionConfigOptions,\n projectSessionStatus,\n rankModelChoices,\n summarizeOperation,\n type FlatConfigSelectOption,\n type ModelChoiceCandidate,\n type OperationSummary,\n type ParsedConfigOption,\n type ParsedSessionConfigOptions,\n type ProjectedSessionStatus,\n type SessionPhase,\n type SessionStatusInput,\n} from \"./SessionProjection.ts\";\nexport type * from \"./InteractiveCommands.ts\";\nexport type * from \"./Application.ts\";\nexport type * from \"./Functionality.ts\";\n\nexport { PLURNK_OPS, PROPOSAL_POLICIES, RUNTIME_TAG, INTERNAL_ROW_OPS, isExecution, isExecutionOp, isPlurnkOp, writtenOp, EFFORTS, SESSION_NAME, SKILL_NAME, UNKNOWN_POSITION, MAX_TIMER_MS } from \"./types.ts\";\nexport { MCP_WIRE_TOOL, type McpWireToolDefinition } from \"./McpWireTool.ts\";\nexport type * from \"./types.ts\";\nexport type { ErrorSource, Severity } from \"./PlurnkParseError.ts\";\n"]}
|