@plurnk/plurnk-contracts 8.0.0 → 9.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.
Files changed (42) hide show
  1. package/SPEC.md +10 -24
  2. package/dist/schema/DaemonNotificationEnvelope.json +555 -0
  3. package/dist/schema/McpServerDefinition.json +1 -1
  4. package/dist/schema/PlurnkStatement.json +24 -0
  5. package/dist/schema/ProposalProjection.json +0 -4
  6. package/dist/src/Application.d.ts +22 -1
  7. package/dist/src/Application.d.ts.map +1 -1
  8. package/dist/src/Application.js +480 -15
  9. package/dist/src/Application.js.map +1 -1
  10. package/dist/src/ApplicationNotifications.d.ts +59 -19
  11. package/dist/src/ApplicationNotifications.d.ts.map +1 -1
  12. package/dist/src/ApplicationNotifications.js +40 -7
  13. package/dist/src/ApplicationNotifications.js.map +1 -1
  14. package/dist/src/ApplicationPort.d.ts +26 -7
  15. package/dist/src/ApplicationPort.d.ts.map +1 -1
  16. package/dist/src/ApplicationPort.js.map +1 -1
  17. package/dist/src/LogRow.d.ts +1 -1
  18. package/dist/src/LogRow.js +1 -1
  19. package/dist/src/LogRow.js.map +1 -1
  20. package/dist/src/Validator.d.ts +3 -3
  21. package/dist/src/Validator.d.ts.map +1 -1
  22. package/dist/src/Validator.js +8 -16
  23. package/dist/src/Validator.js.map +1 -1
  24. package/dist/src/index.d.ts +2 -3
  25. package/dist/src/index.d.ts.map +1 -1
  26. package/dist/src/index.js +2 -3
  27. package/dist/src/index.js.map +1 -1
  28. package/dist/src/types.generated.d.ts +820 -636
  29. package/dist/src/types.generated.d.ts.map +1 -1
  30. package/dist/src/types.generated.js.map +1 -1
  31. package/dist/src/types.js +1 -1
  32. package/dist/src/types.js.map +1 -1
  33. package/package.json +2 -2
  34. package/dist/schema/ApplicationOperationEvent.json +0 -27
  35. package/dist/schema/CapabilityDescriptor.json +0 -28
  36. package/dist/schema/CapabilityPolicy.json +0 -22
  37. package/dist/schema/CapabilityProjection.json +0 -14
  38. package/dist/schema/CapabilitySelector.json +0 -29
  39. package/dist/src/CapabilityAdmission.d.ts +0 -11
  40. package/dist/src/CapabilityAdmission.d.ts.map +0 -1
  41. package/dist/src/CapabilityAdmission.js +0 -108
  42. package/dist/src/CapabilityAdmission.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationNotifications.js","sourceRoot":"","sources":["../../src/ApplicationNotifications.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAetD;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,CAAC;IACpD,mBAAmB;IACnB,mBAAmB;IACnB,oBAAoB;IACpB,uBAAuB;IACvB,iBAAiB;IACjB,kBAAkB;IAClB,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,eAAe;IACf,kBAAkB;IAClB,iBAAiB;IACjB,WAAW;IACX,iBAAiB;IACjB,cAAc;IACd,kBAAkB;IAClB,iBAAiB;IACjB,cAAc;CACR,CAAC,CAAC;AAIZ,MAAM,6BAA6B,GAAwB,IAAI,GAAG,CAAC,0BAA0B,CAAC,CAAC;AAE/F,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAc,EAAoC,EAAE,CAC1F,OAAO,KAAK,KAAK,QAAQ,IAAI,6BAA6B,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AA+K1E,MAAM,gBAAgB,GAAG,CAAC,KAA8B,EAAE,IAAa,EAAiB,EAAE;IACtF,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IACjC,IAAI,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC;QAAE,OAAO,IAAI,CAAC,SAAS,CAAC;IACzD,IACI,CAAC,KAAK,KAAK,iBAAiB;QACxB,KAAK,KAAK,kBAAkB;QAC5B,KAAK,KAAK,iBAAiB;QAC3B,KAAK,KAAK,gBA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AM,CAAC,MAAM,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7E,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,IAAI,MAAM,CAAC,WAAW,KAAK,SAAS,IAAI,YAAY,CAAC,WAAW,KAAK,MAAM,CAAC,WAAW,EAAE,CAAC;QACtF,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;QACjC,IAAI,YAAY,CAAC,SAAS,KAAK,MAAM,CAAC,SAAS;YAAE,OAAO,IAAI,CAAC;QAC7D,IACI,CAAC,YAAY,CAAC,KAAK,KAAK,kBAAkB,IAAI,YAAY,CAAC,KAAK,KAAK,iBAAiB,CAAC;YACvF,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC;YAC3B,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC;YAC3C,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,EACzD,CAAC;YACC,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC","sourcesContent":["import type {\n ApplicationLoopPacket,\n ApplicationSessionArchiving,\n ApplicationSessionDeletion,\n ApplicationSessionKind,\n ApplicationSessionOrigin,\n ApplicationSessionTitling,\n ApplicationWorkspaceArchiving,\n LogEntryWire,\n} from \"./Application.ts\";\nimport { isRecord, isSafeInteger } from \"./guards.ts\";\nimport type { LoopLifecycle } from \"./LoopLifecycle.ts\";\nimport type {\n ClientEntryChannel,\n ClientInteractionProjection,\n FunctionalityPreparationActivity,\n JsonSchema,\n ModelRoute,\n Notice,\n OperationResult,\n PlurnkStatement,\n ProposalProjection,\n} from \"./types.ts\";\nimport type { ProviderAccounting } from \"./types.generated.ts\";\n\n/**\n * {§application-session-observation} The closed alphabet of daemon notification events emitted\n * across `ApplicationPort.subscribeToEvents` and `GET /notifications`.\n */\nexport const DAEMON_NOTIFICATION_EVENTS = Object.freeze([\n \"workspace/created\",\n \"workspace/renamed\",\n \"workspace/archived\",\n \"workspace/preparation\",\n \"session/created\",\n \"session/archived\",\n \"session/deleted\",\n \"session/titled\",\n \"session/policy\",\n \"loop/packet\",\n \"loop/proposal\",\n \"loop/interaction\",\n \"loop/terminated\",\n \"log/entry\",\n \"operation/event\",\n \"stream/event\",\n \"stream/concluded\",\n \"reasoning/event\",\n \"notice/event\",\n] as const);\n\nexport type DaemonNotificationEvent = (typeof DAEMON_NOTIFICATION_EVENTS)[number];\n\nconst DAEMON_NOTIFICATION_EVENT_SET: ReadonlySet<string> = new Set(DAEMON_NOTIFICATION_EVENTS);\n\nexport const isDaemonNotificationEvent = (value: unknown): value is DaemonNotificationEvent =>\n typeof value === \"string\" && DAEMON_NOTIFICATION_EVENT_SET.has(value);\n\nexport interface WorkspaceCreatedNotification {\n readonly id: number;\n readonly name: string;\n readonly projectRoot: string | null;\n readonly projectLabel: string | null;\n}\n\nexport interface WorkspaceRenamedNotification {\n readonly id: number;\n readonly name: string;\n}\n\nexport type WorkspaceArchivedNotification = ApplicationWorkspaceArchiving;\n\nexport interface WorkspacePreparationNotification {\n readonly workspaceId: number;\n readonly preparation: readonly FunctionalityPreparationActivity[];\n}\n\nexport interface SessionCreatedNotification {\n readonly id: number;\n readonly workspaceId: number;\n readonly workspaceName: string;\n readonly projectRoot: string | null;\n readonly projectLabel: string | null;\n readonly name: string;\n readonly parentSessionId: number | null;\n readonly origin: ApplicationSessionOrigin;\n readonly kind: ApplicationSessionKind;\n readonly lifecycle: LoopLifecycle;\n}\n\nexport type SessionArchivedNotification = ApplicationSessionArchiving;\n\nexport type SessionDeletedNotification = ApplicationSessionDeletion;\n\nexport type SessionTitledNotification = ApplicationSessionTitling;\n\nexport interface SessionPolicyNotification {\n readonly sessionId: number;\n readonly model: ModelRoute | null;\n readonly spawnModel: ModelRoute | null;\n}\n\nexport type LoopPacketNotification = ApplicationLoopPacket;\n\n// {§methods-invocation} The row exactly as core sends it.\nexport interface LogEntryNotification {\n readonly entry: LogEntryWire;\n}\n\nexport type ProposalNotification = ProposalProjection;\n\nexport type LoopInteractionNotification = ClientInteractionProjection;\n\nexport interface OperationEventNotification {\n readonly sessionId: number;\n readonly loopId: number;\n readonly turnId: number;\n readonly sequence: number;\n readonly origin: string;\n readonly statement: PlurnkStatement;\n readonly projectRoot: string | null;\n readonly phase: \"started\" | \"settled\";\n readonly result?: OperationResult;\n}\n\nexport interface StreamEventNotification {\n readonly entryId: number;\n readonly sessionId: number;\n readonly target: string;\n readonly channel: string;\n readonly state: ClientEntryChannel[\"state\"];\n readonly contentLength: number;\n readonly loop_seq?: number;\n readonly turn_seq?: number;\n readonly sequence?: number;\n readonly mimetype?: string;\n}\n\nexport interface StreamConcludedNotification {\n readonly sessionId: number;\n readonly entryId: number;\n readonly target: string;\n readonly subscriptionId: number;\n readonly result: OperationResult;\n readonly scheme: string;\n readonly summary: string;\n readonly wakeAction: string;\n readonly loop_seq?: number;\n readonly turn_seq?: number;\n readonly sequence?: number;\n}\n\nexport type ReasoningEventNotification = {\n readonly sessionId: number;\n readonly loopId: number;\n readonly turnId: number;\n readonly loopSeq: number;\n readonly turnSeq: number;\n readonly modelCallId: number;\n readonly requestSequence: number;\n} & (\n | { readonly phase: \"start\" | \"end\" }\n | { readonly phase: \"content\"; readonly delta: string }\n);\n\nexport interface NoticeEventNotification {\n readonly sessionId: number | null;\n readonly loopId: number;\n readonly notice: Notice;\n}\n\nexport interface TerminatedNotification {\n readonly sessionId: number;\n readonly loopId: number;\n // {§notifications} — the loop's number among its session's loops.\n readonly loopSeq: number;\n readonly result: OperationResult;\n readonly hitMaxTurns: boolean;\n readonly turnIds: number[];\n readonly attributions: string[];\n // {§notifications} — when the loop concluded, Unix milliseconds.\n readonly terminatedAt: number;\n readonly usage: {\n readonly accounting: ProviderAccounting;\n readonly curationWeight: number | null;\n readonly curationBudget: number | null;\n readonly contextTokens: number | null;\n readonly contextCapacity: number | null;\n readonly meta: Record<string, unknown>;\n };\n}\n\nexport interface DaemonNotificationPayloadMap {\n readonly \"workspace/created\": WorkspaceCreatedNotification;\n readonly \"workspace/renamed\": WorkspaceRenamedNotification;\n readonly \"workspace/archived\": WorkspaceArchivedNotification;\n readonly \"workspace/preparation\": WorkspacePreparationNotification;\n readonly \"session/created\": SessionCreatedNotification;\n readonly \"session/archived\": SessionArchivedNotification;\n readonly \"session/deleted\": SessionDeletedNotification;\n readonly \"session/titled\": SessionTitledNotification;\n readonly \"session/policy\": SessionPolicyNotification;\n readonly \"loop/packet\": LoopPacketNotification;\n readonly \"loop/proposal\": ProposalNotification;\n readonly \"loop/interaction\": LoopInteractionNotification;\n readonly \"loop/terminated\": TerminatedNotification;\n readonly \"log/entry\": LogEntryNotification;\n readonly \"operation/event\": OperationEventNotification;\n readonly \"stream/event\": StreamEventNotification;\n readonly \"stream/concluded\": StreamConcludedNotification;\n readonly \"reasoning/event\": ReasoningEventNotification;\n readonly \"notice/event\": NoticeEventNotification;\n}\n\nexport type DaemonNotification<E extends DaemonNotificationEvent = DaemonNotificationEvent> = {\n [K in E]: {\n readonly id: number;\n readonly event: K;\n readonly timestamp: number;\n readonly workspaceId: number | null;\n readonly sessionId: number | null;\n readonly data: DaemonNotificationPayloadMap[K];\n };\n}[E];\n\nexport interface NotificationFilter {\n readonly events?: readonly DaemonNotificationEvent[];\n readonly workspaceId?: number;\n readonly sessionId?: number;\n}\n\nconst extractSessionId = (event: DaemonNotificationEvent, data: unknown): number | null => {\n if (!isRecord(data)) return null;\n if (isSafeInteger(data.sessionId)) return data.sessionId;\n if (\n (event === \"session/created\" ||\n event === \"session/archived\" ||\n event === \"session/deleted\" ||\n event === \"session/titled\") &&\n isSafeInteger(data.id)\n ) {\n return data.id;\n }\n if (event === \"log/entry\" && isRecord(data.entry) && isSafeInteger(data.entry.session_id)) {\n return data.entry.session_id;\n }\n return null;\n};\n\nconst extractWorkspaceId = (\n workspaceId: number | null,\n event: DaemonNotificationEvent,\n data: unknown,\n): number | null => {\n if (workspaceId !== null) return workspaceId;\n if (event === \"workspace/created\" && isRecord(data) && isSafeInteger(data.id)) {\n return data.id;\n }\n return null;\n};\n\n/**\n * {§application-session-observation} Wraps a raw event emission in the canonical `DaemonNotification`\n * envelope shared by `ApplicationPort.subscribeToEvents` and `GET /notifications`.\n */\nexport const toDaemonNotification = <E extends DaemonNotificationEvent>(\n id: number,\n workspaceId: number | null,\n event: E,\n data: DaemonNotificationPayloadMap[E],\n timestamp: number = Date.now(),\n): DaemonNotification => {\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion -- discriminated envelope constructed for event E\n return {\n id,\n event,\n timestamp,\n workspaceId: extractWorkspaceId(workspaceId, event, data),\n sessionId: extractSessionId(event, data),\n data,\n } as DaemonNotification;\n};\n\n/**\n * {§application-session-observation} Evaluates whether a `DaemonNotification` matches a\n * `NotificationFilter` (event set, workspace scope, and session scope including subtree archive/delete).\n */\nexport const matchesNotificationFilter = (\n notification: DaemonNotification,\n filter?: NotificationFilter,\n): boolean => {\n if (filter === undefined) return true;\n if (filter.events !== undefined && !filter.events.includes(notification.event)) {\n return false;\n }\n if (filter.workspaceId !== undefined && notification.workspaceId !== filter.workspaceId) {\n return false;\n }\n if (filter.sessionId !== undefined) {\n if (notification.sessionId === filter.sessionId) return true;\n if (\n (notification.event === \"session/archived\" || notification.event === \"session/deleted\") &&\n isRecord(notification.data) &&\n Array.isArray(notification.data.sessionIds) &&\n notification.data.sessionIds.includes(filter.sessionId)\n ) {\n return true;\n }\n return false;\n }\n return true;\n};\n\nexport interface ApplicationNotificationContract<T = unknown> {\n readonly payloadSchema: JsonSchema;\n // The payload the schema generates: the type the table declares beside the schema, never a value the contract carries.\n readonly payload?: T;\n}\n"]}
1
+ {"version":3,"file":"ApplicationNotifications.js","sourceRoot":"","sources":["../../src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AK,SAAS,EAAE,CAAC;QACjC,IAAI,YAAY,CAAC,SAAS,KAAK,MAAM,CAAC,SAAS;YAAE,OAAO,IAAI,CAAC;QAC7D,IACI,CAAC,YAAY,CAAC,KAAK,KAAK,kBAAkB,IAAI,YAAY,CAAC,KAAK,KAAK,iBAAiB,CAAC;YACvF,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC;YAC3B,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC;YAC3C,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,EACzD,CAAC;YACC,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC","sourcesContent":["import type {\n ApplicationLoopPacket,\n ApplicationSessionArchiving,\n ApplicationSessionDeletion,\n ApplicationSessionKind,\n ApplicationSessionOrigin,\n ApplicationSessionTitling,\n ApplicationWorkspaceArchiving,\n LogEntryWire,\n ProposalDecision,\n} from \"./Application.ts\";\nimport { isRecord, isSafeInteger } from \"./guards.ts\";\nimport type { LoopLifecycle } from \"./LoopLifecycle.ts\";\nimport type {\n ClientEntryChannel,\n ClientInteractionProjection,\n FunctionalityPreparationActivity,\n JsonSchema,\n ModelRoute,\n Notice,\n OperationResult,\n ProposalProjection,\n} from \"./types.ts\";\nimport type { DaemonNotificationEnvelope, ProviderAccounting } from \"./types.generated.ts\";\n\n/**\n * {§application-session-observation} The closed alphabet of discrete daemon notification events\n * emitted across `ApplicationPort.subscribeToEvents` and `GET /notifications`.\n */\nexport const DAEMON_NOTIFICATION_EVENTS = Object.freeze([\n \"workspace/created\",\n \"workspace/renamed\",\n \"workspace/archived\",\n \"functionality/changed\",\n \"session/created\",\n \"session/archived\",\n \"session/deleted\",\n \"session/titled\",\n \"session/policy\",\n \"loop/proposal\",\n \"loop/interaction\",\n \"loop/gate-settled\",\n \"loop/terminated\",\n \"log/entry\",\n \"stream/concluded\",\n \"notice/event\",\n] as const);\n\nexport type DaemonNotificationEvent = (typeof DAEMON_NOTIFICATION_EVENTS)[number];\n\nconst DAEMON_NOTIFICATION_EVENT_SET: ReadonlySet<string> = new Set(DAEMON_NOTIFICATION_EVENTS);\n\nexport const isDaemonNotificationEvent = (value: unknown): value is DaemonNotificationEvent =>\n typeof value === \"string\" && DAEMON_NOTIFICATION_EVENT_SET.has(value);\n\n/**\n * {§application-session-observation} In-process sub-turn streaming and telemetry callbacks\n * consumed by exterior protocol adapters (`plurnk-acp`, `plurnk-mcp`), never streamed on `GET /notifications`.\n */\nexport const APPLICATION_RUNTIME_STREAM_EVENTS = Object.freeze([\n \"workspace/preparation\",\n \"loop/packet\",\n \"stream/event\",\n \"reasoning/event\",\n \"runtime/telemetry\",\n] as const);\n\nexport type ApplicationRuntimeStreamEvent = (typeof APPLICATION_RUNTIME_STREAM_EVENTS)[number];\n\nconst APPLICATION_RUNTIME_STREAM_EVENT_SET: ReadonlySet<string> = new Set(APPLICATION_RUNTIME_STREAM_EVENTS);\n\nexport const isApplicationRuntimeStreamEvent = (value: unknown): value is ApplicationRuntimeStreamEvent =>\n typeof value === \"string\" && APPLICATION_RUNTIME_STREAM_EVENT_SET.has(value);\n\n/**\n * {§notifications} Classifies internal turn/lifecycle/derivation/progress telemetry notices that belong\n * on `ApplicationPort.subscribeToRuntimeStream` (`runtime/telemetry`) rather than public `notice/event`.\n */\nexport const isRuntimeTelemetryNotice = (notice: Notice): boolean => {\n if (\n notice.source === \"engine:lifecycle\" ||\n notice.source === \"engine:derivation\" ||\n notice.source === \"engine:emission\"\n ) {\n return true;\n }\n if (\n notice.source === \"engine:turn\" &&\n (notice.kind === \"turn_awaiting_model\" ||\n notice.kind === \"turn_generated\" ||\n notice.kind === \"results_pending\")\n ) {\n return true;\n }\n if (notice.source.startsWith(\"exec:\") && typeof (notice as Record<string, unknown>).percent === \"number\") {\n return true;\n }\n return typeof notice.message !== \"string\" || notice.message.trim().length === 0;\n};\n\nexport interface WorkspaceCreatedNotification {\n readonly id: number;\n readonly name: string;\n readonly projectRoot: string | null;\n readonly projectLabel: string | null;\n}\n\nexport interface WorkspaceRenamedNotification {\n readonly id: number;\n readonly name: string;\n}\n\nexport type WorkspaceArchivedNotification = ApplicationWorkspaceArchiving;\n\nexport interface WorkspacePreparationNotification {\n readonly workspaceId: number;\n readonly preparation: readonly FunctionalityPreparationActivity[];\n}\n\nexport interface FunctionalityChangedNotification {\n readonly workspaceId: number;\n readonly sessionId: number | null;\n readonly family: string;\n}\n\nexport interface SessionCreatedNotification {\n readonly id: number;\n readonly workspaceId: number;\n readonly workspaceName: string;\n readonly projectRoot: string | null;\n readonly projectLabel: string | null;\n readonly name: string;\n readonly parentSessionId: number | null;\n readonly origin: ApplicationSessionOrigin;\n readonly kind: ApplicationSessionKind;\n readonly lifecycle: LoopLifecycle;\n readonly persona?: string | null;\n}\n\nexport type SessionArchivedNotification = ApplicationSessionArchiving;\n\nexport type SessionDeletedNotification = ApplicationSessionDeletion;\n\nexport type SessionTitledNotification = ApplicationSessionTitling;\n\nexport interface SessionPolicyNotification {\n readonly sessionId: number;\n readonly model: ModelRoute | null;\n readonly spawnModel: ModelRoute | null;\n readonly persona?: string | null;\n}\n\nexport type LoopPacketNotification = ApplicationLoopPacket;\n\n// {§methods-invocation} The row exactly as core sends it.\nexport interface LogEntryNotification {\n readonly entry: LogEntryWire;\n}\n\nexport type ProposalNotification = ProposalProjection;\n\nexport type LoopInteractionNotification = ClientInteractionProjection;\n\nexport type LoopGateSettledNotification =\n | {\n readonly kind: \"proposal\";\n readonly sessionId: number;\n readonly loopId: number;\n readonly logEntryId: number;\n readonly decision: ProposalDecision;\n readonly outcome: string;\n }\n | {\n readonly kind: \"interaction\";\n readonly sessionId: number;\n readonly loopId: number;\n readonly interactionId: number;\n readonly action: \"accept\" | \"decline\" | \"cancel\";\n };\n\nexport interface StreamEventNotification {\n readonly entryId: number;\n readonly sessionId: number;\n readonly target: string;\n readonly channel: string;\n readonly state: ClientEntryChannel[\"state\"];\n readonly contentLength: number;\n readonly loop_seq?: number;\n readonly turn_seq?: number;\n readonly sequence?: number;\n readonly mimetype?: string;\n}\n\nexport interface StreamConcludedNotification {\n readonly sessionId: number;\n readonly entryId: number;\n readonly target: string;\n readonly subscriptionId: number;\n readonly result: OperationResult;\n readonly scheme: string;\n readonly summary: string;\n readonly wakeAction: string;\n readonly loop_seq?: number;\n readonly turn_seq?: number;\n readonly sequence?: number;\n}\n\nexport type ReasoningEventNotification = {\n readonly sessionId: number;\n readonly loopId: number;\n readonly turnId: number;\n readonly loopSeq: number;\n readonly turnSeq: number;\n readonly modelCallId: number;\n readonly requestSequence: number;\n} & (\n | { readonly phase: \"start\" | \"end\" }\n | { readonly phase: \"content\"; readonly delta: string }\n);\n\nexport interface NoticeEventNotification {\n readonly sessionId: number | null;\n readonly loopId: number;\n readonly notice: Notice;\n}\n\nexport interface TerminatedNotification {\n readonly sessionId: number;\n readonly loopId: number;\n // {§notifications} — the loop's number among its session's loops.\n readonly loopSeq: number;\n readonly result: OperationResult;\n readonly hitMaxTurns: boolean;\n readonly turnIds: number[];\n readonly attributions: string[];\n // {§notifications} — when the loop concluded, Unix milliseconds.\n readonly terminatedAt: number;\n readonly usage: {\n readonly accounting: ProviderAccounting;\n readonly curationWeight: number | null;\n readonly curationBudget: number | null;\n readonly contextTokens: number | null;\n readonly contextCapacity: number | null;\n readonly meta: Record<string, unknown>;\n };\n}\n\nexport interface NotificationsResyncPayload {\n readonly reason: \"restarted\" | \"evicted\" | \"malformed\";\n readonly epoch: string;\n readonly latestId: number;\n}\n\nexport type NotificationReplayResult =\n | {\n readonly status: \"ok\";\n readonly epoch: string;\n readonly events: readonly DaemonNotification[];\n }\n | {\n readonly status: \"resync\";\n readonly resync: NotificationsResyncPayload;\n };\n\nexport interface DaemonNotificationPayloadMap {\n readonly \"workspace/created\": WorkspaceCreatedNotification;\n readonly \"workspace/renamed\": WorkspaceRenamedNotification;\n readonly \"workspace/archived\": WorkspaceArchivedNotification;\n readonly \"functionality/changed\": FunctionalityChangedNotification;\n readonly \"session/created\": SessionCreatedNotification;\n readonly \"session/archived\": SessionArchivedNotification;\n readonly \"session/deleted\": SessionDeletedNotification;\n readonly \"session/titled\": SessionTitledNotification;\n readonly \"session/policy\": SessionPolicyNotification;\n readonly \"loop/proposal\": ProposalNotification;\n readonly \"loop/interaction\": LoopInteractionNotification;\n readonly \"loop/gate-settled\": LoopGateSettledNotification;\n readonly \"loop/terminated\": TerminatedNotification;\n readonly \"log/entry\": LogEntryNotification;\n readonly \"stream/concluded\": StreamConcludedNotification;\n readonly \"notice/event\": NoticeEventNotification;\n}\n\nexport interface ApplicationRuntimeStreamPayloadMap {\n readonly \"workspace/preparation\": WorkspacePreparationNotification;\n readonly \"loop/packet\": LoopPacketNotification;\n readonly \"stream/event\": StreamEventNotification;\n readonly \"reasoning/event\": ReasoningEventNotification;\n readonly \"runtime/telemetry\": NoticeEventNotification;\n}\n\nexport type ApplicationRuntimeStreamHandler = <\n E extends ApplicationRuntimeStreamEvent = ApplicationRuntimeStreamEvent,\n>(\n workspaceId: number,\n method: E,\n params: ApplicationRuntimeStreamPayloadMap[E],\n) => void;\n\nexport type DaemonNotification<E extends DaemonNotificationEvent = DaemonNotificationEvent> = {\n [K in E]: {\n readonly id: number;\n readonly event: K;\n readonly timestamp: number;\n readonly workspaceId: number | null;\n readonly sessionId: number | null;\n readonly data: DaemonNotificationPayloadMap[K];\n };\n}[E];\n\n// Compile-time witness that generated DaemonNotificationEnvelope covers and conforms to DaemonNotification.\ntype _AssertEnvelopeAssignable =\n DaemonNotificationEnvelope extends DaemonNotification\n ? [DaemonNotificationEvent] extends [DaemonNotificationEnvelope[\"event\"]]\n ? true\n : never\n : never;\nconst _envelopeWitness: _AssertEnvelopeAssignable = true;\nvoid _envelopeWitness;\n\nexport interface NotificationFilter {\n readonly events?: readonly DaemonNotificationEvent[];\n readonly workspaceId?: number;\n readonly sessionId?: number;\n}\n\nconst extractSessionId = (event: DaemonNotificationEvent, data: unknown): number | null => {\n if (!isRecord(data)) return null;\n if (isSafeInteger(data.sessionId)) return data.sessionId;\n if (\n (event === \"session/created\" ||\n event === \"session/archived\" ||\n event === \"session/deleted\" ||\n event === \"session/titled\") &&\n isSafeInteger(data.id)\n ) {\n return data.id;\n }\n if (event === \"log/entry\" && isRecord(data.entry) && isSafeInteger(data.entry.session_id)) {\n return data.entry.session_id;\n }\n return null;\n};\n\nconst extractWorkspaceId = (\n workspaceId: number | null,\n event: DaemonNotificationEvent,\n data: unknown,\n): number | null => {\n if (workspaceId !== null) return workspaceId;\n if (event === \"workspace/created\" && isRecord(data) && isSafeInteger(data.id)) {\n return data.id;\n }\n return null;\n};\n\n/**\n * {§application-session-observation} Wraps a raw event emission in the canonical `DaemonNotification`\n * envelope shared by `ApplicationPort.subscribeToEvents` and `GET /notifications`.\n */\nexport const toDaemonNotification = <E extends DaemonNotificationEvent>(\n id: number,\n workspaceId: number | null,\n event: E,\n data: DaemonNotificationPayloadMap[E],\n timestamp: number = Date.now(),\n): DaemonNotification => {\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion -- discriminated envelope constructed for event E\n return {\n id,\n event,\n timestamp,\n workspaceId: extractWorkspaceId(workspaceId, event, data),\n sessionId: extractSessionId(event, data),\n data,\n } as DaemonNotification;\n};\n\n/**\n * {§application-session-observation} Evaluates whether a `DaemonNotification` matches a\n * `NotificationFilter` (event set, workspace scope, and session scope including subtree archive/delete).\n */\nexport const matchesNotificationFilter = (\n notification: DaemonNotification,\n filter?: NotificationFilter,\n): boolean => {\n if (filter === undefined) return true;\n if (filter.events !== undefined && !filter.events.includes(notification.event)) {\n return false;\n }\n if (filter.workspaceId !== undefined && notification.workspaceId !== filter.workspaceId) {\n return false;\n }\n if (filter.sessionId !== undefined) {\n if (notification.sessionId === filter.sessionId) return true;\n if (\n (notification.event === \"session/archived\" || notification.event === \"session/deleted\") &&\n isRecord(notification.data) &&\n Array.isArray(notification.data.sessionIds) &&\n notification.data.sessionIds.includes(filter.sessionId)\n ) {\n return true;\n }\n return false;\n }\n return true;\n};\n\nexport interface ApplicationNotificationContract<T = unknown> {\n readonly payloadSchema: JsonSchema;\n // The payload the schema generates: the type the table declares beside the schema, never a value the contract carries.\n readonly payload?: T;\n}\n"]}
@@ -3,9 +3,9 @@ import type { Duplex } from "node:stream";
3
3
  import type { FunctionalityPreparationActivity, ProviderAccounting, RollbackReport } from "./types.generated.ts";
4
4
  import type { ApplicationInboxMessage, ApplicationMessage, MessageResource } from "./MessageResource.ts";
5
5
  import type { ApplicationStream } from "./ApplicationStream.ts";
6
- import type { CapabilityPolicy, CapabilityProjection, ClientDisplayCapabilities, ClientInteractionProjection, ClientInteractionResolution, EntryReadResult, ModelCatalogPage, ModelCatalogQuery, ModelRoute, OperationResult, PlurnkStatement, ProposalProjection, Notice, Effort, SessionOwner } from "./types.ts";
6
+ import type { ClientDisplayCapabilities, ClientInteractionProjection, ClientInteractionResolution, EntryReadResult, ModelCatalogPage, ModelCatalogQuery, ModelRoute, OperationResult, PlurnkStatement, ProposalPolicy, ProposalProjection, Notice, Effort, SessionOwner } from "./types.ts";
7
7
  import type { ApplicationOwnerIdentity, ProposalResolution, ApplicationActionContext, ApplicationActionDescriptor, ClientEnvelope, ApplicationSessionOverview, ApplicationSessionProjection, ApplicationSessionQuery, ApplicationSessionArchiving, ApplicationSessionDeletion, ApplicationSessionTitling, ApplicationWorkspaceArchiving, ApplicationSessionIdentity, ApplicationSessionCreation, ApplicationLoopAdmission, ApplicationLoopProjection, ApplicationGauge, ApplicationProviderAlias, ApplicationPersonaProjection, ApplicationServiceUpdateResult, LogEntryWire, ApplicationEventHandler, CredentialAuthority } from "./Application.ts";
8
- import type { NotificationFilter } from "./ApplicationNotifications.ts";
8
+ import type { ApplicationRuntimeStreamHandler, NotificationFilter, NotificationReplayResult } from "./ApplicationNotifications.ts";
9
9
  /** {§http-host} One request on the daemon's listener, handed to the adapter that mounted its prefix. */
10
10
  export type HttpRouteHandler = (req: IncomingMessage, res: ServerResponse) => void | Promise<void>;
11
11
  /** {§http-host} One upgrade request on the daemon's listener, handed to the adapter that mounted its prefix. */
@@ -40,6 +40,12 @@ export interface ApplicationPort extends HttpHost {
40
40
  listModuleActions(): ApplicationActionDescriptor[];
41
41
  invokeModuleAction(name: string, params: Readonly<Record<string, unknown>>, context: ApplicationActionContext): Promise<unknown>;
42
42
  subscribeToEvents(handler: ApplicationEventHandler, filter?: NotificationFilter): () => void;
43
+ subscribeToRuntimeStream?(handler: ApplicationRuntimeStreamHandler): () => void;
44
+ readonly notificationEpoch?: string;
45
+ replayNotifications?(args: {
46
+ readonly lastEventId: string;
47
+ readonly filter?: NotificationFilter;
48
+ }): NotificationReplayResult;
43
49
  pendingProposals(workspaceId: number): Promise<ProposalProjection[]>;
44
50
  resolveProposal(logEntryId: number, resolution: ProposalResolution, owner: ApplicationOwnerIdentity): Promise<void>;
45
51
  pendingClientInteractions(workspaceId: number): Promise<ClientInteractionProjection[]>;
@@ -328,15 +334,28 @@ export interface ApplicationPort extends HttpHost {
328
334
  readonly source: "explicit";
329
335
  readonly supportedEfforts: readonly Effort[];
330
336
  }>;
331
- readWorkspaceCapabilities(args: {
337
+ readWorkspaceProposalPolicy(args: {
332
338
  readonly workspaceId: number;
333
- }): Promise<CapabilityProjection>;
334
- setWorkspaceCapabilities(args: {
339
+ }): Promise<{
340
+ readonly policy: ProposalPolicy | null;
341
+ readonly effective: ProposalPolicy;
342
+ }>;
343
+ setWorkspaceProposalPolicy(args: {
335
344
  readonly workspaceId: number;
336
- readonly policy: CapabilityPolicy;
337
- }): Promise<CapabilityProjection>;
345
+ readonly policy: ProposalPolicy | null;
346
+ }): Promise<{
347
+ readonly policy: ProposalPolicy | null;
348
+ readonly effective: ProposalPolicy;
349
+ }>;
338
350
  listPersonas?(args: {
339
351
  readonly workspaceId: number;
340
352
  }): Promise<readonly ApplicationPersonaProjection[]>;
353
+ setSessionPersona?(args: {
354
+ readonly workspaceId: number;
355
+ readonly sessionId: number;
356
+ readonly persona: string | null;
357
+ }): Promise<{
358
+ readonly persona: string | null;
359
+ }>;
341
360
  }
342
361
  //# sourceMappingURL=ApplicationPort.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationPort.d.ts","sourceRoot":"","sources":["../../src/ApplicationPort.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,gCAAgC,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACjH,OAAO,KAAK,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACzG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EACR,gBAAgB,EAChB,oBAAoB,EACpB,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,MAAM,EACN,MAAM,EACN,YAAY,EACf,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACR,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EACxB,2BAA2B,EAC3B,cAAc,EACd,0BAA0B,EAC1B,4BAA4B,EAC5B,uBAAuB,EACvB,2BAA2B,EAC3B,0BAA0B,EAC1B,yBAAyB,EACzB,6BAA6B,EAC7B,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EACzB,gBAAgB,EAChB,wBAAwB,EACxB,4BAA4B,EAC5B,8BAA8B,EAC9B,YAAY,EACZ,uBAAuB,EACvB,mBAAmB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,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CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;QACvC,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;KACtC,CAAC,CAAC;IACH,0BAA0B,CAAC,IAAI,EAAE;QAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;KAC1C,GAAG,OAAO,CAAC;QACR,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;QACvC,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;KACtC,CAAC,CAAC;IACH,YAAY,CAAC,CAAC,IAAI,EAAE;QAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,SAAS,4BAA4B,EAAE,CAAC,CAAC;IACxG,iBAAiB,CAAC,CAAC,IAAI,EAAE;QACrB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;KACnC,GAAG,OAAO,CAAC;QAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC,CAAC;CACpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationPort.js","sourceRoot":"","sources":["../../src/ApplicationPort.ts"],"names":[],"mappings":"","sourcesContent":["import type { IncomingMessage, ServerResponse } from \"node:http\";\nimport type { Duplex } from \"node:stream\";\nimport type { FunctionalityPreparationActivity, ProviderAccounting, RollbackReport } from \"./types.generated.ts\";\nimport type { ApplicationInboxMessage, ApplicationMessage, MessageResource } from \"./MessageResource.ts\";\nimport type { ApplicationStream } from \"./ApplicationStream.ts\";\nimport type {\n CapabilityPolicy,\n CapabilityProjection,\n ClientDisplayCapabilities,\n ClientInteractionProjection,\n ClientInteractionResolution,\n EntryReadResult,\n ModelCatalogPage,\n ModelCatalogQuery,\n ModelRoute,\n OperationResult,\n PlurnkStatement,\n ProposalProjection,\n Notice,\n Effort,\n SessionOwner,\n} from \"./types.ts\";\nimport type {\n ApplicationOwnerIdentity,\n ProposalResolution,\n ApplicationActionContext,\n ApplicationActionDescriptor,\n ClientEnvelope,\n ApplicationSessionOverview,\n ApplicationSessionProjection,\n ApplicationSessionQuery,\n ApplicationSessionArchiving,\n ApplicationSessionDeletion,\n ApplicationSessionTitling,\n ApplicationWorkspaceArchiving,\n ApplicationSessionIdentity,\n ApplicationSessionCreation,\n ApplicationLoopAdmission,\n ApplicationLoopProjection,\n ApplicationGauge,\n ApplicationProviderAlias,\n ApplicationPersonaProjection,\n ApplicationServiceUpdateResult,\n LogEntryWire,\n ApplicationEventHandler,\n CredentialAuthority,\n} from \"./Application.ts\";\nimport type { NotificationFilter } from \"./ApplicationNotifications.ts\";\n\n/** {§http-host} One request on the daemon's listener, handed to the adapter that mounted its prefix. */\nexport type HttpRouteHandler = (req: IncomingMessage, res: ServerResponse) => void | Promise<void>;\n\n/** {§http-host} One upgrade request on the daemon's listener, handed to the adapter that mounted its prefix. */\nexport type HttpUpgradeHandler = (req: IncomingMessage, socket: Duplex, head: Buffer) => void | Promise<void>;\n\n/**\n * {§http-host} The daemon's one HTTP listener, offered to exterior adapters. A daemon is one trust\n * domain on one address: core binds `PLURNK_HOST:PLURNK_PORT` before it admits durable state,\n * answers 503 until admission, then routes to the longest mounted prefix or answers 404.\n * Adapters mount at `start()`; none opens a socket of its own. This is the one place the\n * application port names a transport, by ruling (#641): the standards address by URL, never by\n * port, so every exterior interface shares the address.\n */\nexport interface HttpHost {\n registerHttpRoute(prefix: string, handler: HttpRouteHandler): void;\n registerHttpUpgrade(prefix: string, handler: HttpUpgradeHandler): void;\n httpAddress(): { readonly host: string; readonly port: number };\n}\n\n/** {§application-session-observation} The transport-neutral application contract consumed by exterior adapters. */\nexport interface ApplicationPort extends HttpHost {\n readonly credentials: CredentialAuthority;\n registerSessionOwner(workspaceId: number, owner: SessionOwner): Promise<void>;\n claimSessionOwner(args: { readonly workspaceId: number; readonly sessionId: number; readonly owner: string }): Promise<SessionOwner>;\n configurationNotices(workspaceId?: number): readonly Notice[];\n listClientDisplayCapabilities(): Promise<ClientDisplayCapabilities>;\n listModuleActions(): ApplicationActionDescriptor[];\n invokeModuleAction(\n name: string,\n params: Readonly<Record<string, unknown>>,\n context: ApplicationActionContext,\n ): Promise<unknown>;\n subscribeToEvents(handler: ApplicationEventHandler, filter?: NotificationFilter): () => void;\n pendingProposals(workspaceId: number): Promise<ProposalProjection[]>;\n resolveProposal(logEntryId: number, resolution: ProposalResolution, owner: ApplicationOwnerIdentity): Promise<void>;\n pendingClientInteractions(workspaceId: number): Promise<ClientInteractionProjection[]>;\n resolveClientInteraction(\n interactionId: number,\n resolution: ClientInteractionResolution,\n respondent: ApplicationOwnerIdentity,\n message?: { readonly body: string; readonly source: string; readonly envelope: Readonly<Record<string, unknown>> },\n ): Promise<void>;\n readMessages(args: { readonly workspaceId: number; readonly sessionId: number; readonly loopId?: number }): Promise<ApplicationMessage[]>;\n /** {§methods} The accepted messages the session has not yet observed at a turn boundary, in acceptance order, each with the lifecycle of the loop holding it. */\n readInbox(args: { readonly workspaceId: number; readonly sessionId: number }): Promise<ApplicationInboxMessage[]>;\n /** {§methods} The accepted messages the session has not yet completed, in acceptance order, each with the lifecycle of the loop holding it. */\n readOpenMessages(args: { readonly workspaceId: number; readonly sessionId: number }): Promise<ApplicationInboxMessage[]>;\n /** {§methods} The streams the session holds open, in opening order, each with its channels' states. */\n readStreams(args: { readonly workspaceId: number; readonly sessionId: number }): Promise<ApplicationStream[]>;\n /** {§methods} A client message's address is its idempotency key: `new` when nothing is accepted there,\n * `accepted` when the same body is; another body under an accepted address is refused, 422 `message-address-reused`. */\n messageAdmission(args: { readonly workspaceId: number; readonly address: string; readonly body: string }): Promise<\"new\" | \"accepted\">;\n ensureRuntimeSession(workspaceId: number): Promise<number>;\n runLoop(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly loopId?: number;\n readonly prompt: string;\n readonly source?: string;\n readonly messageAddress?: string;\n readonly attachments?: readonly MessageResource[];\n readonly envelope?: Readonly<Record<string, unknown>>;\n readonly maxTurns?: number;\n readonly openPaths?: string[];\n readonly selector?: string;\n readonly childSelector?: string | null;\n }): Promise<ApplicationLoopAdmission>;\n cancelDrain(sessionId: number, reason?: string): boolean;\n cancelSession(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly reason?: string;\n }): Promise<void>;\n // {§connection-lifecycle} — a person's client operation: one loop in the workspace's runtime session,\n // attributed to `actor`, its `log:///` addresses read in `contextSessionId`'s log\n // ({§connection-lifecycle}); `onLoop` hears that loop before any statement runs.\n dispatchClientAction(args: {\n readonly workspaceId: number;\n readonly actor: string;\n readonly contextSessionId?: number;\n readonly statements: PlurnkStatement[];\n readonly onLoop?: (loop: { readonly sessionId: number; readonly loopId: number }) => void;\n }): Promise<OperationResult[]>;\n // {§connection-lifecycle} — cancel exactly one client operation: its dispatch while it runs and every execution its\n // rows started that still runs; false when nothing of it was running.\n cancelLoop(args: { readonly workspaceId: number; readonly loopId: number; readonly reason?: string }): Promise<boolean>;\n // {§expression-boundaries} — the workspace's available names also permit slotless invocation.\n executorTags(workspaceId: number): readonly string[];\n readLog(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly loopId?: number;\n readonly turnId?: number;\n readonly sinceId?: number;\n readonly beforeId?: number;\n readonly limit?: number;\n readonly loopSeq?: number;\n readonly turnSeq?: number;\n readonly sequence?: number;\n }): Promise<LogEntryWire[]>;\n /** {§acp-status-descendants} Each alias is the route a session seeded from it gets, its configured effort included. */\n listProviders(): { readonly aliases: Array<ApplicationProviderAlias> };\n listModels(query: ModelCatalogQuery): ModelCatalogPage;\n /** {§startup-admission} Explicitly refresh the Models.dev catalog cache when `PLURNK_SERVICE_UPDATEABLE=1`. */\n updateService?(): Promise<ApplicationServiceUpdateResult>;\n createWorkspace(args: {\n readonly name?: string;\n readonly projectRoot?: string | null;\n readonly settings?: string | object;\n }): Promise<ClientEnvelope>;\n /** {§methods-workspace-create} Read-only selection; folder defaults are derived by the daemon. */\n attachWorkspace(args:\n | { readonly workspaceId: number; readonly name?: never; readonly projectRoot?: never }\n | { readonly name: string; readonly workspaceId?: never; readonly projectRoot?: never }\n | { readonly projectRoot: string; readonly workspaceId?: never; readonly name?: never }\n ): Promise<ClientEnvelope>;\n /** {§session-external-reference} Opaque, adapter-namespaced identity; reading never allocates. */\n readSessionReference(args: { readonly namespace: string; readonly reference: string }): Promise<{ readonly workspaceId: number; readonly sessionId: number } | null>;\n /** {§session-external-reference} Atomically allocate a folderless workspace and model session when absent. */\n ensureSessionReference(args: { readonly namespace: string; readonly reference: string }): Promise<{ readonly workspaceId: number; readonly sessionId: number }>;\n /** {§session-external-reference} Inspect the adapter's retained references to this session. */\n listSessionReferences(args: { readonly workspaceId: number; readonly sessionId: number; readonly namespace: string }): Promise<string[]>;\n /** {§machine-processes} Omitted `archived` lists every workspace; true only archived ones, false only unarchived ones. */\n listWorkspaces(query?: { readonly archived?: boolean }): Promise<Array<{\n readonly id: number;\n readonly name: string;\n readonly project_root: string | null;\n /** {§execution-output-identity} */\n readonly project_label: string | null;\n readonly created_at: string;\n /** {§machine-processes} When the workspace was archived, or null while it is unarchived. */\n readonly archived_at: string | null;\n }>>;\n listSessions(\n workspaceId: number,\n query?: ApplicationSessionQuery,\n ): Promise<ApplicationSessionProjection[]>;\n readSession(args: {\n readonly workspaceId: number;\n readonly identity: ApplicationSessionIdentity;\n }): Promise<ApplicationSessionProjection | null>;\n listSessionLoops(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n }): Promise<ApplicationLoopProjection[]>;\n // {§methods-workspace-create} — the places of the daemon, or of one workspace, with what waits there.\n readSessionOverview(args: {\n readonly workspaceId?: number;\n readonly limit: number;\n readonly excerptChars: number;\n }): Promise<ApplicationSessionOverview>;\n // {§methods-workspace-create} — the spend of the session and its descendants since it began.\n sessionAccounting(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n }): Promise<ProviderAccounting>;\n // {§methods-workspace-create} — the client gauge the session's latest packet reported.\n sessionGauge(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n }): Promise<ApplicationGauge>;\n // {§methods-workspace-create} — an omitted sessionId lists every model session's client-addressed seeds.\n listPrompts(workspaceId: number, limit?: number, sessionId?: number): Promise<string[]>;\n // {§share} — the workspace's share, from a consistent copy of the daemon's database, into an absolute folder.\n shareWorkspace(args: { readonly workspaceId: number; readonly folder: string }): Promise<{ readonly folder: string }>;\n renameWorkspace(workspaceId: number, name: string): Promise<{ readonly id: number; readonly name: string }>;\n /** {§methods-workspace-create} Archive or unarchive a workspace; an archive is refused while it holds live work. */\n setWorkspaceArchived(args: { readonly workspaceId: number; readonly archived: boolean }): Promise<ApplicationWorkspaceArchiving>;\n /** {§methods-workspace-create} Archive or unarchive a session with every session beneath it; an archive is refused while they hold live work. */\n setSessionArchived(args: { readonly workspaceId: number; readonly sessionId: number; readonly archived: boolean }): Promise<ApplicationSessionArchiving>;\n /** {§methods-workspace-create} Permanently delete a session and its descendant subtree; refused while they hold live work. */\n deleteSession(args: { readonly workspaceId: number; readonly sessionId: number }): Promise<ApplicationSessionDeletion>;\n /** {§methods-workspace-create} Store a normalized human-readable title on a session. */\n setSessionTitle(args: { readonly workspaceId: number; readonly sessionId: number; readonly title: string }): Promise<ApplicationSessionTitling>;\n /** {§methods-workspace-create} Cancel a single live stream subscription owned by a session without cancelling the whole session. */\n cancelStream(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly entryId?: number;\n readonly target?: string;\n readonly coordinate?: string;\n }): Promise<boolean>;\n // {§log-wire-format} — reverse `sessionId`'s settled file mutations after its log coordinate `to`, latest\n // first, as one client operation of `actor` ({§connection-lifecycle}); stops at the first file that no\n // longer holds what its mutation wrote.\n rollback(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly actor: string;\n readonly to: string;\n }): Promise<RollbackReport>;\n /** {§methods-workspace-create} Activate a cold workspace's Functionality without a turn; resolves when it is active. */\n activateWorkspace(args: { readonly workspaceId: number }): Promise<void>;\n workspacePreparationStatus(workspaceId: number): readonly FunctionalityPreparationActivity[];\n workspaceDerivationStatus(workspaceId: number): {\n readonly phase: \"preparing\" | \"indexing\" | \"complete\" | \"failed\";\n readonly completed: number;\n readonly total: number;\n readonly percent: number;\n readonly message: string;\n // {§operation-results}: the producer's level rides unchanged — `warn` when a completed pass carries failed members.\n readonly level: \"info\" | \"warn\" | \"error\";\n } | null;\n readEntry(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly target: string;\n readonly channel?: string;\n readonly offset?: number;\n }): Promise<EntryReadResult>;\n // {§methods} — the channel `target` selects, its fragment's or else its scheme's default, complete.\n readEntryChannel(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly target: string;\n }): Promise<EntryReadResult>;\n forkSession(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly name?: string;\n }): Promise<{\n readonly sessionId: number;\n readonly sessionName: string | null;\n readonly parentSessionId: number;\n }>;\n createSession(args: ApplicationSessionCreation): Promise<{ readonly sessionId: number; readonly sessionName: string }>;\n readSessionModel(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n }): Promise<{ readonly model: ModelRoute | null; readonly spawnModel: ModelRoute | null }>;\n setSessionModel(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly selector: string;\n /** An effort chosen with the model; the daemon validates and persists the pair as one. */\n readonly effort?: unknown;\n }): Promise<ModelRoute>;\n setSessionSpawnModel(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly selector: string | null;\n }): Promise<ModelRoute | null>;\n readSessionEffort(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n }): Promise<{\n readonly effort: Effort | null;\n // {§session-model-selection} — `explicit` only after setSessionEffort.\n readonly source: \"default\" | \"explicit\";\n readonly supportedEfforts: readonly Effort[];\n }>;\n setSessionEffort(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly effort: unknown;\n }): Promise<{\n readonly effort: Effort;\n readonly source: \"explicit\";\n readonly supportedEfforts: readonly Effort[];\n }>;\n readWorkspaceCapabilities(args: {\n readonly workspaceId: number;\n }): Promise<CapabilityProjection>;\n setWorkspaceCapabilities(args: {\n readonly workspaceId: number;\n readonly policy: CapabilityPolicy;\n }): Promise<CapabilityProjection>;\n listPersonas?(args: { readonly workspaceId: number }): Promise<readonly ApplicationPersonaProjection[]>;\n}\n"]}
1
+ {"version":3,"file":"ApplicationPort.js","sourceRoot":"","sources":["../../src/ApplicationPort.ts"],"names":[],"mappings":"","sourcesContent":["import type { IncomingMessage, ServerResponse } from \"node:http\";\nimport type { Duplex } from \"node:stream\";\nimport type { FunctionalityPreparationActivity, ProviderAccounting, RollbackReport } from \"./types.generated.ts\";\nimport type { ApplicationInboxMessage, ApplicationMessage, MessageResource } from \"./MessageResource.ts\";\nimport type { ApplicationStream } from \"./ApplicationStream.ts\";\nimport type {\n ClientDisplayCapabilities,\n ClientInteractionProjection,\n ClientInteractionResolution,\n EntryReadResult,\n ModelCatalogPage,\n ModelCatalogQuery,\n ModelRoute,\n OperationResult,\n PlurnkStatement,\n ProposalPolicy,\n ProposalProjection,\n Notice,\n Effort,\n SessionOwner,\n} from \"./types.ts\";\nimport type {\n ApplicationOwnerIdentity,\n ProposalResolution,\n ApplicationActionContext,\n ApplicationActionDescriptor,\n ClientEnvelope,\n ApplicationSessionOverview,\n ApplicationSessionProjection,\n ApplicationSessionQuery,\n ApplicationSessionArchiving,\n ApplicationSessionDeletion,\n ApplicationSessionTitling,\n ApplicationWorkspaceArchiving,\n ApplicationSessionIdentity,\n ApplicationSessionCreation,\n ApplicationLoopAdmission,\n ApplicationLoopProjection,\n ApplicationGauge,\n ApplicationProviderAlias,\n ApplicationPersonaProjection,\n ApplicationServiceUpdateResult,\n LogEntryWire,\n ApplicationEventHandler,\n CredentialAuthority,\n} from \"./Application.ts\";\nimport type {\n ApplicationRuntimeStreamHandler,\n NotificationFilter,\n NotificationReplayResult,\n} from \"./ApplicationNotifications.ts\";\n\n/** {§http-host} One request on the daemon's listener, handed to the adapter that mounted its prefix. */\nexport type HttpRouteHandler = (req: IncomingMessage, res: ServerResponse) => void | Promise<void>;\n\n/** {§http-host} One upgrade request on the daemon's listener, handed to the adapter that mounted its prefix. */\nexport type HttpUpgradeHandler = (req: IncomingMessage, socket: Duplex, head: Buffer) => void | Promise<void>;\n\n/**\n * {§http-host} The daemon's one HTTP listener, offered to exterior adapters. A daemon is one trust\n * domain on one address: core binds `PLURNK_HOST:PLURNK_PORT` before it admits durable state,\n * answers 503 until admission, then routes to the longest mounted prefix or answers 404.\n * Adapters mount at `start()`; none opens a socket of its own. This is the one place the\n * application port names a transport, by ruling (#641): the standards address by URL, never by\n * port, so every exterior interface shares the address.\n */\nexport interface HttpHost {\n registerHttpRoute(prefix: string, handler: HttpRouteHandler): void;\n registerHttpUpgrade(prefix: string, handler: HttpUpgradeHandler): void;\n httpAddress(): { readonly host: string; readonly port: number };\n}\n\n/** {§application-session-observation} The transport-neutral application contract consumed by exterior adapters. */\nexport interface ApplicationPort extends HttpHost {\n readonly credentials: CredentialAuthority;\n registerSessionOwner(workspaceId: number, owner: SessionOwner): Promise<void>;\n claimSessionOwner(args: { readonly workspaceId: number; readonly sessionId: number; readonly owner: string }): Promise<SessionOwner>;\n configurationNotices(workspaceId?: number): readonly Notice[];\n listClientDisplayCapabilities(): Promise<ClientDisplayCapabilities>;\n listModuleActions(): ApplicationActionDescriptor[];\n invokeModuleAction(\n name: string,\n params: Readonly<Record<string, unknown>>,\n context: ApplicationActionContext,\n ): Promise<unknown>;\n subscribeToEvents(handler: ApplicationEventHandler, filter?: NotificationFilter): () => void;\n subscribeToRuntimeStream?(handler: ApplicationRuntimeStreamHandler): () => void;\n readonly notificationEpoch?: string;\n replayNotifications?(args: {\n readonly lastEventId: string;\n readonly filter?: NotificationFilter;\n }): NotificationReplayResult;\n pendingProposals(workspaceId: number): Promise<ProposalProjection[]>;\n resolveProposal(logEntryId: number, resolution: ProposalResolution, owner: ApplicationOwnerIdentity): Promise<void>;\n pendingClientInteractions(workspaceId: number): Promise<ClientInteractionProjection[]>;\n resolveClientInteraction(\n interactionId: number,\n resolution: ClientInteractionResolution,\n respondent: ApplicationOwnerIdentity,\n message?: { readonly body: string; readonly source: string; readonly envelope: Readonly<Record<string, unknown>> },\n ): Promise<void>;\n readMessages(args: { readonly workspaceId: number; readonly sessionId: number; readonly loopId?: number }): Promise<ApplicationMessage[]>;\n /** {§methods} The accepted messages the session has not yet observed at a turn boundary, in acceptance order, each with the lifecycle of the loop holding it. */\n readInbox(args: { readonly workspaceId: number; readonly sessionId: number }): Promise<ApplicationInboxMessage[]>;\n /** {§methods} The accepted messages the session has not yet completed, in acceptance order, each with the lifecycle of the loop holding it. */\n readOpenMessages(args: { readonly workspaceId: number; readonly sessionId: number }): Promise<ApplicationInboxMessage[]>;\n /** {§methods} The streams the session holds open, in opening order, each with its channels' states. */\n readStreams(args: { readonly workspaceId: number; readonly sessionId: number }): Promise<ApplicationStream[]>;\n /** {§methods} A client message's address is its idempotency key: `new` when nothing is accepted there,\n * `accepted` when the same body is; another body under an accepted address is refused, 422 `message-address-reused`. */\n messageAdmission(args: { readonly workspaceId: number; readonly address: string; readonly body: string }): Promise<\"new\" | \"accepted\">;\n ensureRuntimeSession(workspaceId: number): Promise<number>;\n runLoop(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly loopId?: number;\n readonly prompt: string;\n readonly source?: string;\n readonly messageAddress?: string;\n readonly attachments?: readonly MessageResource[];\n readonly envelope?: Readonly<Record<string, unknown>>;\n readonly maxTurns?: number;\n readonly openPaths?: string[];\n readonly selector?: string;\n readonly childSelector?: string | null;\n }): Promise<ApplicationLoopAdmission>;\n cancelDrain(sessionId: number, reason?: string): boolean;\n cancelSession(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly reason?: string;\n }): Promise<void>;\n // {§connection-lifecycle} — a person's client operation: one loop in the workspace's runtime session,\n // attributed to `actor`, its `log:///` addresses read in `contextSessionId`'s log\n // ({§connection-lifecycle}); `onLoop` hears that loop before any statement runs.\n dispatchClientAction(args: {\n readonly workspaceId: number;\n readonly actor: string;\n readonly contextSessionId?: number;\n readonly statements: PlurnkStatement[];\n readonly onLoop?: (loop: { readonly sessionId: number; readonly loopId: number }) => void;\n }): Promise<OperationResult[]>;\n // {§connection-lifecycle} — cancel exactly one client operation: its dispatch while it runs and every execution its\n // rows started that still runs; false when nothing of it was running.\n cancelLoop(args: { readonly workspaceId: number; readonly loopId: number; readonly reason?: string }): Promise<boolean>;\n // {§expression-boundaries} — the workspace's available names also permit slotless invocation.\n executorTags(workspaceId: number): readonly string[];\n readLog(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly loopId?: number;\n readonly turnId?: number;\n readonly sinceId?: number;\n readonly beforeId?: number;\n readonly limit?: number;\n readonly loopSeq?: number;\n readonly turnSeq?: number;\n readonly sequence?: number;\n }): Promise<LogEntryWire[]>;\n /** {§acp-status-descendants} Each alias is the route a session seeded from it gets, its configured effort included. */\n listProviders(): { readonly aliases: Array<ApplicationProviderAlias> };\n listModels(query: ModelCatalogQuery): ModelCatalogPage;\n /** {§startup-admission} Explicitly refresh the Models.dev catalog cache when `PLURNK_SERVICE_UPDATEABLE=1`. */\n updateService?(): Promise<ApplicationServiceUpdateResult>;\n createWorkspace(args: {\n readonly name?: string;\n readonly projectRoot?: string | null;\n readonly settings?: string | object;\n }): Promise<ClientEnvelope>;\n /** {§methods-workspace-create} Read-only selection; folder defaults are derived by the daemon. */\n attachWorkspace(args:\n | { readonly workspaceId: number; readonly name?: never; readonly projectRoot?: never }\n | { readonly name: string; readonly workspaceId?: never; readonly projectRoot?: never }\n | { readonly projectRoot: string; readonly workspaceId?: never; readonly name?: never }\n ): Promise<ClientEnvelope>;\n /** {§session-external-reference} Opaque, adapter-namespaced identity; reading never allocates. */\n readSessionReference(args: { readonly namespace: string; readonly reference: string }): Promise<{ readonly workspaceId: number; readonly sessionId: number } | null>;\n /** {§session-external-reference} Atomically allocate a folderless workspace and model session when absent. */\n ensureSessionReference(args: { readonly namespace: string; readonly reference: string }): Promise<{ readonly workspaceId: number; readonly sessionId: number }>;\n /** {§session-external-reference} Inspect the adapter's retained references to this session. */\n listSessionReferences(args: { readonly workspaceId: number; readonly sessionId: number; readonly namespace: string }): Promise<string[]>;\n /** {§machine-processes} Omitted `archived` lists every workspace; true only archived ones, false only unarchived ones. */\n listWorkspaces(query?: { readonly archived?: boolean }): Promise<Array<{\n readonly id: number;\n readonly name: string;\n readonly project_root: string | null;\n /** {§execution-output-identity} */\n readonly project_label: string | null;\n readonly created_at: string;\n /** {§machine-processes} When the workspace was archived, or null while it is unarchived. */\n readonly archived_at: string | null;\n }>>;\n listSessions(\n workspaceId: number,\n query?: ApplicationSessionQuery,\n ): Promise<ApplicationSessionProjection[]>;\n readSession(args: {\n readonly workspaceId: number;\n readonly identity: ApplicationSessionIdentity;\n }): Promise<ApplicationSessionProjection | null>;\n listSessionLoops(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n }): Promise<ApplicationLoopProjection[]>;\n // {§methods-workspace-create} — the places of the daemon, or of one workspace, with what waits there.\n readSessionOverview(args: {\n readonly workspaceId?: number;\n readonly limit: number;\n readonly excerptChars: number;\n }): Promise<ApplicationSessionOverview>;\n // {§methods-workspace-create} — the spend of the session and its descendants since it began.\n sessionAccounting(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n }): Promise<ProviderAccounting>;\n // {§methods-workspace-create} — the client gauge the session's latest packet reported.\n sessionGauge(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n }): Promise<ApplicationGauge>;\n // {§methods-workspace-create} — an omitted sessionId lists every model session's client-addressed seeds.\n listPrompts(workspaceId: number, limit?: number, sessionId?: number): Promise<string[]>;\n // {§share} — the workspace's share, from a consistent copy of the daemon's database, into an absolute folder.\n shareWorkspace(args: { readonly workspaceId: number; readonly folder: string }): Promise<{ readonly folder: string }>;\n renameWorkspace(workspaceId: number, name: string): Promise<{ readonly id: number; readonly name: string }>;\n /** {§methods-workspace-create} Archive or unarchive a workspace; an archive is refused while it holds live work. */\n setWorkspaceArchived(args: { readonly workspaceId: number; readonly archived: boolean }): Promise<ApplicationWorkspaceArchiving>;\n /** {§methods-workspace-create} Archive or unarchive a session with every session beneath it; an archive is refused while they hold live work. */\n setSessionArchived(args: { readonly workspaceId: number; readonly sessionId: number; readonly archived: boolean }): Promise<ApplicationSessionArchiving>;\n /** {§methods-workspace-create} Permanently delete a session and its descendant subtree; refused while they hold live work. */\n deleteSession(args: { readonly workspaceId: number; readonly sessionId: number }): Promise<ApplicationSessionDeletion>;\n /** {§methods-workspace-create} Store a normalized human-readable title on a session. */\n setSessionTitle(args: { readonly workspaceId: number; readonly sessionId: number; readonly title: string }): Promise<ApplicationSessionTitling>;\n /** {§methods-workspace-create} Cancel a single live stream subscription owned by a session without cancelling the whole session. */\n cancelStream(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly entryId?: number;\n readonly target?: string;\n readonly coordinate?: string;\n }): Promise<boolean>;\n // {§log-wire-format} — reverse `sessionId`'s settled file mutations after its log coordinate `to`, latest\n // first, as one client operation of `actor` ({§connection-lifecycle}); stops at the first file that no\n // longer holds what its mutation wrote.\n rollback(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly actor: string;\n readonly to: string;\n }): Promise<RollbackReport>;\n /** {§methods-workspace-create} Activate a cold workspace's Functionality without a turn; resolves when it is active. */\n activateWorkspace(args: { readonly workspaceId: number }): Promise<void>;\n workspacePreparationStatus(workspaceId: number): readonly FunctionalityPreparationActivity[];\n workspaceDerivationStatus(workspaceId: number): {\n readonly phase: \"preparing\" | \"indexing\" | \"complete\" | \"failed\";\n readonly completed: number;\n readonly total: number;\n readonly percent: number;\n readonly message: string;\n // {§operation-results}: the producer's level rides unchanged — `warn` when a completed pass carries failed members.\n readonly level: \"info\" | \"warn\" | \"error\";\n } | null;\n readEntry(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly target: string;\n readonly channel?: string;\n readonly offset?: number;\n }): Promise<EntryReadResult>;\n // {§methods} — the channel `target` selects, its fragment's or else its scheme's default, complete.\n readEntryChannel(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly target: string;\n }): Promise<EntryReadResult>;\n forkSession(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly name?: string;\n }): Promise<{\n readonly sessionId: number;\n readonly sessionName: string | null;\n readonly parentSessionId: number;\n }>;\n createSession(args: ApplicationSessionCreation): Promise<{ readonly sessionId: number; readonly sessionName: string }>;\n readSessionModel(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n }): Promise<{ readonly model: ModelRoute | null; readonly spawnModel: ModelRoute | null }>;\n setSessionModel(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly selector: string;\n /** An effort chosen with the model; the daemon validates and persists the pair as one. */\n readonly effort?: unknown;\n }): Promise<ModelRoute>;\n setSessionSpawnModel(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly selector: string | null;\n }): Promise<ModelRoute | null>;\n readSessionEffort(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n }): Promise<{\n readonly effort: Effort | null;\n // {§session-model-selection} — `explicit` only after setSessionEffort.\n readonly source: \"default\" | \"explicit\";\n readonly supportedEfforts: readonly Effort[];\n }>;\n setSessionEffort(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly effort: unknown;\n }): Promise<{\n readonly effort: Effort;\n readonly source: \"explicit\";\n readonly supportedEfforts: readonly Effort[];\n }>;\n readWorkspaceProposalPolicy(args: {\n readonly workspaceId: number;\n }): Promise<{\n readonly policy: ProposalPolicy | null;\n readonly effective: ProposalPolicy;\n }>;\n setWorkspaceProposalPolicy(args: {\n readonly workspaceId: number;\n readonly policy: ProposalPolicy | null;\n }): Promise<{\n readonly policy: ProposalPolicy | null;\n readonly effective: ProposalPolicy;\n }>;\n listPersonas?(args: { readonly workspaceId: number }): Promise<readonly ApplicationPersonaProjection[]>;\n setSessionPersona?(args: {\n readonly workspaceId: number;\n readonly sessionId: number;\n readonly persona: string | null;\n }): Promise<{ readonly persona: string | null }>;\n}\n"]}
@@ -19,7 +19,7 @@ export declare const LOG_ENTRY_KINDS: readonly ["emission", "message", "loop_ter
19
19
  export type LogEntryKind = (typeof LOG_ENTRY_KINDS)[number];
20
20
  export declare const isLogEntryKind: (value: unknown) => value is LogEntryKind;
21
21
  /**
22
- * {§acp-plurnk-metadata} {§capability-policy-cascade} Canonical tool-call kind classification for a log or proposal operation.
22
+ * {§acp-plurnk-metadata} Canonical tool-call kind classification for a log or proposal operation.
23
23
  */
24
24
  export declare const toolKindOf: (op: string | null, scheme: string | null) => ProposalToolKind;
25
25
  /**
@@ -10,7 +10,7 @@ export const LOG_ENTRY_KINDS = Object.freeze([
10
10
  ]);
11
11
  export const isLogEntryKind = (value) => typeof value === "string" && LOG_ENTRY_KINDS.includes(value);
12
12
  /**
13
- * {§acp-plurnk-metadata} {§capability-policy-cascade} Canonical tool-call kind classification for a log or proposal operation.
13
+ * {§acp-plurnk-metadata} Canonical tool-call kind classification for a log or proposal operation.
14
14
  */
15
15
  export const toolKindOf = (op, scheme) => {
16
16
  switch (op) {
@@ -1 +1 @@
1
- {"version":3,"file":"LogRow.js","sourceRoot":"","sources":["../../src/LogRow.ts"],"names":[],"mappings":"AAeA;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC;IACzC,UAAU;IACV,SAAS;IACT,kBAAkB;IAClB,oBAAoB;IACpB,iBAAiB;CACX,CAAC,CAAC;AAIZ,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAc,EAAyB,EAAE,CACpE,OAAO,KAAK,KAAK,QAAQ,IAAK,eAAqC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAExF;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC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AAC;IAC7E,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,EAAE,CAAC;IACrD,MAAM,IAAI,GAAG,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAChE,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;IACpE,OAAO,GAAG,MAAM,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,IAAI,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,EAAE,CAAC;AAC1F,CAAC,CAAC","sourcesContent":["import type { ProposalProjection } from \"./types.generated.ts\";\n\nexport type LogAddressColumns = {\n scheme: string | null;\n username: string | null;\n password: string | null;\n hostname: string | null;\n port: number | null;\n pathname: string | null;\n query: string | null;\n fragment: string | null;\n};\n\nexport type ProposalToolKind = Extract<NonNullable<ProposalProjection[\"subject\"]>, { type: \"tool_call\" }>[\"kind\"];\n\n/**\n * {§turn-source-resources} {§db-migrations} Closed union of `log_entries.attrs` `kind` discriminator values.\n */\nexport const LOG_ENTRY_KINDS = Object.freeze([\n \"emission\",\n \"message\",\n \"loop_termination\",\n \"entry_materialized\",\n \"emissionAttempt\",\n] as const);\n\nexport type LogEntryKind = (typeof LOG_ENTRY_KINDS)[number];\n\nexport const isLogEntryKind = (value: unknown): value is LogEntryKind =>\n typeof value === \"string\" && (LOG_ENTRY_KINDS as readonly string[]).includes(value);\n\n/**\n * {§acp-plurnk-metadata} {§capability-policy-cascade} Canonical tool-call kind classification for a log or proposal operation.\n */\nexport const toolKindOf = (op: string | null, scheme: string | null): ProposalToolKind => {\n switch (op) {\n case \"read\":\n return scheme === \"http\" || scheme === \"https\" ? \"fetch\" : \"read\";\n case \"edit\":\n case \"copy\":\n return \"edit\";\n case \"move\":\n return \"move\";\n case \"kill\":\n return \"delete\";\n case \"find\":\n return \"search\";\n case \"note\":\n case \"wait\":\n return \"think\";\n case \"send\":\n case \"done\":\n case \"fail\":\n return \"other\";\n case \"work\":\n case \"fork\":\n return \"execute\";\n default:\n return op === null ? \"other\" : \"execute\";\n }\n};\n\n/**\n * {§acp-plurnk-metadata} The address a row recorded: `scheme://host[:port]path[?query][#fragment]`, or the bare path a\n * file target records, with its channel; null when the row named none.\n */\nexport const addressOf = (row: {\n readonly scheme?: unknown;\n readonly hostname?: unknown;\n readonly port?: unknown;\n readonly pathname?: unknown;\n readonly query?: unknown;\n readonly fragment?: unknown;\n}): string | null => {\n const text = (value: unknown): string | null => (typeof value === \"string\" ? value : null);\n const pathname = text(row.pathname);\n if (pathname === null) return null;\n const fragment = text(row.fragment) === null ? \"\" : `#${text(row.fragment)}`;\n const scheme = text(row.scheme);\n if (scheme === null) return `${pathname}${fragment}`;\n const port = typeof row.port === \"number\" ? `:${row.port}` : \"\";\n const query = text(row.query) === null ? \"\" : `?${text(row.query)}`;\n return `${scheme}://${text(row.hostname) ?? \"\"}${port}${pathname}${query}${fragment}`;\n};\n"]}
1
+ {"version":3,"file":"LogRow.js","sourceRoot":"","sources":["../../src/LogRow.ts"],"names":[],"mappings":"AAeA;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC;IACzC,UAAU;IACV,SAAS;IACT,kBAAkB;IAClB,oBAAoB;IACpB,iBAAiB;CACX,CAAC,CAAC;AAIZ,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAc,EAAyB,EAAE,CACpE,OAAO,KAAK,KAAK,QAAQ,IAAK,eAAqC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAExF;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I,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC7E,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,EAAE,CAAC;IACrD,MAAM,IAAI,GAAG,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAChE,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;IACpE,OAAO,GAAG,MAAM,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,IAAI,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,EAAE,CAAC;AAC1F,CAAC,CAAC","sourcesContent":["import type { ProposalProjection } from \"./types.generated.ts\";\n\nexport type LogAddressColumns = {\n scheme: string | null;\n username: string | null;\n password: string | null;\n hostname: string | null;\n port: number | null;\n pathname: string | null;\n query: string | null;\n fragment: string | null;\n};\n\nexport type ProposalToolKind = Extract<NonNullable<ProposalProjection[\"subject\"]>, { type: \"tool_call\" }>[\"kind\"];\n\n/**\n * {§turn-source-resources} {§db-migrations} Closed union of `log_entries.attrs` `kind` discriminator values.\n */\nexport const LOG_ENTRY_KINDS = Object.freeze([\n \"emission\",\n \"message\",\n \"loop_termination\",\n \"entry_materialized\",\n \"emissionAttempt\",\n] as const);\n\nexport type LogEntryKind = (typeof LOG_ENTRY_KINDS)[number];\n\nexport const isLogEntryKind = (value: unknown): value is LogEntryKind =>\n typeof value === \"string\" && (LOG_ENTRY_KINDS as readonly string[]).includes(value);\n\n/**\n * {§acp-plurnk-metadata} Canonical tool-call kind classification for a log or proposal operation.\n */\nexport const toolKindOf = (op: string | null, scheme: string | null): ProposalToolKind => {\n switch (op) {\n case \"read\":\n return scheme === \"http\" || scheme === \"https\" ? \"fetch\" : \"read\";\n case \"edit\":\n case \"copy\":\n return \"edit\";\n case \"move\":\n return \"move\";\n case \"kill\":\n return \"delete\";\n case \"find\":\n return \"search\";\n case \"note\":\n case \"wait\":\n return \"think\";\n case \"send\":\n case \"done\":\n case \"fail\":\n return \"other\";\n case \"work\":\n case \"fork\":\n return \"execute\";\n default:\n return op === null ? \"other\" : \"execute\";\n }\n};\n\n/**\n * {§acp-plurnk-metadata} The address a row recorded: `scheme://host[:port]path[?query][#fragment]`, or the bare path a\n * file target records, with its channel; null when the row named none.\n */\nexport const addressOf = (row: {\n readonly scheme?: unknown;\n readonly hostname?: unknown;\n readonly port?: unknown;\n readonly pathname?: unknown;\n readonly query?: unknown;\n readonly fragment?: unknown;\n}): string | null => {\n const text = (value: unknown): string | null => (typeof value === \"string\" ? value : null);\n const pathname = text(row.pathname);\n if (pathname === null) return null;\n const fragment = text(row.fragment) === null ? \"\" : `#${text(row.fragment)}`;\n const scheme = text(row.scheme);\n if (scheme === null) return `${pathname}${fragment}`;\n const port = typeof row.port === \"number\" ? `:${row.port}` : \"\";\n const query = text(row.query) === null ? \"\" : `?${text(row.query)}`;\n return `${scheme}://${text(row.hostname) ?? \"\"}${port}${pathname}${query}${fragment}`;\n};\n"]}
@@ -1,5 +1,5 @@
1
1
  import { type OutputUnit } from "@cfworker/json-schema";
2
- import 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";
2
+ import type { SessionOwner, RollbackReport, AcpDiscovery, ClientDisplayCapabilities, ClientInteractionProjection, ClientInteractionRequest, ClientInteractionResolution, DaemonNotificationEnvelope, 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";
3
3
  export type ValidationResult = {
4
4
  valid: boolean;
5
5
  errors: OutputUnit[];
@@ -25,8 +25,6 @@ export default class Validator {
25
25
  static assertEntryReadResult(value: unknown): EntryReadResult;
26
26
  static assertTextRegion(value: unknown): TextRegion;
27
27
  static assertRangeExtent(value: unknown): RangeExtent;
28
- static assertCapabilityDescriptor(value: unknown): CapabilityDescriptor;
29
- static assertCapabilityPolicy(value: unknown): CapabilityPolicy;
30
28
  static assertProposalProjection(value: unknown): ProposalProjection;
31
29
  static assertClientDisplayCapabilities(value: unknown): ClientDisplayCapabilities;
32
30
  static assertMcpServerDefinition(value: unknown): McpServerDefinition;
@@ -46,5 +44,7 @@ export default class Validator {
46
44
  static assertModelReadiness(value: unknown): ModelReadiness;
47
45
  static assertModelRoute(value: unknown): ModelRoute;
48
46
  static assertAcpDiscovery(value: unknown): AcpDiscovery;
47
+ static validateDaemonNotification(value: unknown): ValidationResult;
48
+ static assertDaemonNotification(value: unknown): DaemonNotificationEnvelope;
49
49
  }
50
50
  //# sourceMappingURL=Validator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Validator.d.ts","sourceRoot":"","sources":["../../src/Validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,UAAU,EAAe,MAAM,uBAAuB,CAAC;AAwB/F,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc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BAA2B,CAEpF;IAED,MAAM,CAAC,iCAAiC,CAAC,KAAK,EAAE,OAAO,GAAG,2BAA2B,CAEpF;IAED,MAAM,CAAC,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,iBAAiB,CAEhE;IAED,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,CAM1D;IAED,MAAM,CAAC,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAElD;IAED,MAAM,CAAC,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY,CAEtD;IAED,MAAM,CAAC,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,CAElE;IAED,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,0BAA0B,CAM1E;CACJ"}
@@ -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 applicationOperationEventSchema from "../schema/ApplicationOperationEvent.json" with { type: "json" };
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" };
@@ -57,7 +53,7 @@ export class InvalidOperationResultError extends TypeError {
57
53
  export default class Validator {
58
54
  static #jsonSchemaValidators = new WeakMap();
59
55
  static #publicSchemas = [
60
- applicationOperationEventSchema,
56
+ daemonNotificationEnvelopeSchema,
61
57
  plurnkStatementSchema,
62
58
  positionSchema,
63
59
  lineMarkerSchema,
@@ -86,10 +82,6 @@ export default class Validator {
86
82
  mcpOAuthSchema,
87
83
  mcpServerDefinitionSchema,
88
84
  skillDefinitionSchema,
89
- capabilityDescriptorSchema,
90
- capabilityPolicySchema,
91
- capabilityProjectionSchema,
92
- capabilitySelectorSchema,
93
85
  sessionOwnerSchema,
94
86
  modelCatalogPageSchema,
95
87
  modelCatalogQuerySchema,
@@ -253,12 +245,6 @@ export default class Validator {
253
245
  }
254
246
  return exact;
255
247
  }
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
248
  static assertProposalProjection(value) {
263
249
  return Validator.#assert(proposalProjectionSchema, "ProposalProjection", value);
264
250
  }
@@ -344,5 +330,11 @@ export default class Validator {
344
330
  static assertAcpDiscovery(value) {
345
331
  return Validator.#assert(acpDiscoverySchema, "ACP discovery manifest", value);
346
332
  }
333
+ static validateDaemonNotification(value) {
334
+ return Validator.validateJsonSchemaInstance(daemonNotificationEnvelopeSchema, value);
335
+ }
336
+ static assertDaemonNotification(value) {
337
+ return Validator.#assert(daemonNotificationEnvelopeSchema, "DaemonNotificationEnvelope", value);
338
+ }
347
339
  }
348
340
  //# sourceMappingURL=Validator.js.map