openmeld 0.3.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +315 -0
- package/dist/add-me-membership-B9sBeKPr.js +11 -0
- package/dist/add-me-membership-B9sBeKPr.js.map +1 -0
- package/dist/api-client-foundation-BnsgZrnh.js +384 -0
- package/dist/api-client-foundation-BnsgZrnh.js.map +1 -0
- package/dist/auth-session-_ideKYyk.js +746 -0
- package/dist/auth-session-_ideKYyk.js.map +1 -0
- package/dist/base-url-Bdqmyw0D.js +2327 -0
- package/dist/base-url-Bdqmyw0D.js.map +1 -0
- package/dist/command-DAwIiSbe.js +102198 -0
- package/dist/command-DAwIiSbe.js.map +1 -0
- package/dist/daemon-runtime-lease-B9LdD-he.js +702 -0
- package/dist/daemon-runtime-lease-B9LdD-he.js.map +1 -0
- package/dist/dist-BvAAI13G.js +15925 -0
- package/dist/dist-BvAAI13G.js.map +1 -0
- package/dist/openmeld-dev.js +24 -0
- package/dist/openmeld-dev.js.map +1 -0
- package/dist/openmeld.js +32013 -0
- package/dist/openmeld.js.map +1 -0
- package/dist/runtime-transport-rv43yBPB.js +6391 -0
- package/dist/runtime-transport-rv43yBPB.js.map +1 -0
- package/dist/service-contract-DZWQdPz5.js +39 -0
- package/dist/service-contract-DZWQdPz5.js.map +1 -0
- package/package.json +86 -0
- package/skills/README.md +27 -0
- package/skills/openmeld-cli/SKILL.md +1012 -0
- package/skills/openmeld-cli/playbooks/agent-onboarding.md +185 -0
- package/skills/openmeld-cli/playbooks/space-ops.md +343 -0
- package/skills/openmeld-cli/references/commands.md +666 -0
- package/skills/openmeld-cli/references/runtime-resolution.md +80 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-BvAAI13G.js","names":["boundedIdentifierSchema","reasonCodeSchema","boundedIdentifierSchema","reasonCodeSchema","ISO_DATE_TIME_SCHEMA","trimmedNonEmptyStringSchema","nullableTrimmedStringSchema","nullableIsoDateTimeSchema","ISO_DATE_TIME_SCHEMA","trimmedNonEmptyStringSchema","nullableTrimmedStringSchema","nullableIsoDateTimeSchema","boundedIdentifierSchema","timestampMsSchema","boundedIdentifierSchema","defineRequestFrame","defineResultFrame","nonEmptyStringSchema","timestampMsSchema","trimmedIdentifierSchema","boundedIdentifierSchema","timestampMsSchema","timestampMsSchema","boundedIdentifierSchema","timestampMsSchema","ISO_DATE_TIME_SCHEMA","ISO_DATE_TIME_SCHEMA","trimmedNonEmptyStringSchema","nullableTrimmedStringSchema","identifierSchema","isoDateTimeSchema","operationIdSchema","trimmedNonEmptyStringSchema","isoDateTimeSchema","ISO_DATE_TIME_SCHEMA","trimmedNonEmptyStringSchema","nullableIsoDateTimeSchema","boundedIdentifierSchema","boundedIdentifierSchema","ISO_DATE_TIME_SCHEMA","trimmedNonEmptyStringSchema","contentHashSchema","nonEmptyStringSchema","reasonCodeSchema","trimmedNonEmptyStringSchema","isoDateTimeSchema","identifierSchema","titleSchema","isoDateTimeSchema","trimmedNonEmptyStringSchema","ISO_DATE_TIME_SCHEMA","NON_NEGATIVE_INT_RE","trimmedNonEmptyStringSchema","nullableTrimmedStringSchema","nullableNonNegativeIntSchema","nullableIsoDateTimeSchema","ISO_DATE_TIME_SCHEMA","trimmedNonEmptyStringSchema","nullableTrimmedStringSchema","nullableIsoDateTimeSchema","NON_NEGATIVE_INT_RE","clientMessageIdSchema","boundedIdentifierSchema","nonEmptyStringSchema","nonEmptyStringSchema","trimmedNonEmptyStringSchema","timestampMsSchema","ISO_DATE_TIME_SCHEMA","reasonCodeSchema","boundedIdentifierSchema","reasonCodeSchema","isoDateTimeSchema","isoDateTimeSchema","MAX_TEXT_LENGTH","clientMessageIdSchema","ISO_DATE_TIME_SCHEMA","trimmedNonEmptyStringSchema","nullableTrimmedStringSchema","MAX_TEXT_LENGTH","nullableIsoDateTimeSchema","ISO_DATE_TIME_SCHEMA","trimmedNonEmptyStringSchema","nullableTrimmedStringSchema","nullableIsoDateTimeSchema","MAX_TEXT_LENGTH","ISO_DATE_TIME_SCHEMA","trimmedNonEmptyStringSchema","boundedIdentifierSchema","identifierSchema","isoDateTimeSchema","normalizeUniqueStrings","ISO_DATE_TIME_SCHEMA","clientMessageIdSchema","optionalSelectorSchema","clientMessageIdSchema","nullableReasonCodeSchema","clientMessageIdSchema","clientMessageIdSchema","toErrorMessage","toErrorMessage","toErrorMessage$1"],"sources":["../../../packages/schemas/dist/agent-execution-readiness-impact-taxonomy.js","../../../packages/schemas/dist/compatibility/legacy-space-addressing-wire.js","../../../packages/schemas/dist/schemas/agent-controller-collaboration-mode.js","../../../packages/schemas/dist/schemas/agent-controller-permission-mode.js","../../../packages/schemas/dist/schemas/runtime/local-agent-catalog.js","../../../packages/schemas/dist/schemas/daemon/reply-readiness.js","../../../packages/schemas/dist/schemas/start/shared.js","../../../packages/schemas/dist/schemas/daemon/route-observation-summary.js","../../../packages/schemas/dist/schemas/open-code-permission.js","../../../packages/schemas/dist/schemas/http/agent-profile-binding.js","../../../packages/schemas/dist/schemas/http/prepare-readiness.js","../../../packages/schemas/dist/schemas/http/agent-execution-readiness.js","../../../packages/schemas/dist/schemas/http/space-members.js","../../../packages/schemas/dist/schemas/http/projects.js","../../../packages/schemas/dist/schemas/daemon/local-project-control.js","../../../packages/schemas/dist/schemas/runtime/message-channel.js","../../../packages/schemas/dist/schemas/http/center-agent-speaker.js","../../../packages/schemas/dist/schemas/http/agent-activity.js","../../../packages/schemas/dist/schemas/http/space-name.js","../../../packages/schemas/dist/schemas/http/center-agent-routines.js","../../../packages/schemas/dist/schemas/http/feedback.js","../../../packages/schemas/dist/schemas/http/profiles.js","../../../packages/schemas/dist/schemas/http/organization-directory.js","../../../packages/schemas/dist/schemas/http/organization-skills.js","../../../packages/schemas/dist/schemas/http/space-access-mode.js","../../../packages/schemas/dist/schemas/http/space-meta.js","../../../packages/schemas/dist/schemas/http/organization-space-directory.js","../../../packages/schemas/dist/schemas/common/error-response.js","../../../packages/schemas/dist/schemas/config/model-catalog.js","../../../packages/schemas/dist/schemas/daemon/computer-file-access.js","../../../packages/schemas/dist/schemas/http/center-agent-context-manifest.js","../../../packages/schemas/dist/schemas/http/message-channels.js","../../../packages/schemas/dist/schemas/http/center-agent-member-research.js","../../../packages/schemas/dist/schemas/http/organization-documents.js","../../../packages/schemas/dist/schemas/http/gateway-error.js","../../../packages/schemas/dist/schemas/http/identity-image.js","../../../packages/schemas/dist/schemas/http/profile-space-history.js","../../../packages/schemas/dist/schemas/http/account-space-index.js","../../../packages/schemas/dist/schemas/http/catchup-response.js","../../../packages/schemas/dist/schemas/protocol/hello.js","../../../packages/schemas/dist/schemas/protocol/server-error.js","../../../packages/schemas/dist/schemas/protocol/envelope.js","../../../packages/schemas/dist/schemas/runtime/center-agent-model.js","../../../packages/schemas/dist/schemas/runtime/channel-context.js","../../../packages/schemas/dist/schemas/runtime/remote-agent-turn-envelope.js","../../../packages/schemas/dist/schemas/http/connector-connections.js","../../../packages/schemas/dist/schemas/runtime/agent-controller-interface.js","../../../packages/schemas/dist/schemas/http/local-runtimes.js","../../../packages/schemas/dist/schemas/http/runtime-reporting.js","../../../packages/schemas/dist/schemas/http/space-status.js","../../../packages/schemas/dist/schemas/http/space-threads.js","../../../packages/schemas/dist/schemas/http/space-bootstrap.js","../../../packages/schemas/dist/schemas/http/space-create.js","../../../packages/schemas/dist/schemas/runtime/remote-agent-worker.js","../../../packages/schemas/dist/schemas/http/observability-correlation.js","../../../packages/schemas/dist/schemas/http/space-dispatch-trace.js","../../../packages/schemas/dist/schemas/http/center-agent.js","../../../packages/schemas/dist/schemas/http/center-agent-direct-message-space.js","../../../packages/schemas/dist/schemas/http/center-agent-memory.js","../../../packages/schemas/dist/schemas/http/center-agent-tasks.js","../../../packages/schemas/dist/schemas/http/current-device-target.js","../../../packages/schemas/dist/schemas/http/device-metadata.js","../../../packages/schemas/dist/schemas/http/inbox.js","../../../packages/schemas/dist/schemas/http/list-signals-query.js","../../../packages/schemas/dist/schemas/http/local-runtime-expected-routes.js","../../../packages/schemas/dist/schemas/http/organization-logo.js","../../../packages/schemas/dist/schemas/http/organization-member-openmeld-service-status.js","../../../packages/schemas/dist/schemas/http/organization-usage.js","../../../packages/schemas/dist/schemas/http/space-agent-interaction.js","../../../packages/schemas/dist/schemas/http/space-attachments.js","../../../packages/schemas/dist/schemas/http/space-create-response.js","../../../packages/schemas/dist/schemas/http/space-delete.js","../../../packages/schemas/dist/schemas/http/space-diagnostic-report.js","../../../packages/schemas/dist/schemas/http/space-direct-message.js","../../../packages/schemas/dist/schemas/http/space-wake-trace-waterfall.js","../../../packages/schemas/dist/schemas/http/space-message-details.js","../../../packages/schemas/dist/schemas/http/space-signals.js","../../../packages/schemas/dist/schemas/http/space-updates.js","../../../packages/schemas/dist/schemas/http/space-wake-progress.js","../../../packages/utils/dist/index.js","../../../packages/gateway-contract/dist/index.js","../../../packages/protocol/dist/index.js","../../../packages/api-client/dist/index.js"],"sourcesContent":["import { z } from \"zod/v4\";\n//#region src/agent-execution-readiness-impact-taxonomy.ts\nconst AGENT_EXECUTION_READINESS_IMPACT_FRESH_TTL_MS = 1800 * 1e3;\nconst AGENT_EXECUTION_READINESS_IMPACT_REASON_CODES = [\n\t\"controller.launch.choice_required\",\n\t\"controller.launch.needs_repair\",\n\t\"controller.client.upgrade_required\",\n\t\"controller.runtime.missing\",\n\t\"runtime_coordinator.delivery_expired\",\n\t\"workspace.invalid\",\n\t\"workspace.missing\"\n];\nconst AGENT_EXECUTION_READINESS_IMPACT_KINDS = [\"local_execution\"];\nconst AGENT_EXECUTION_READINESS_IMPACT_SOURCES = [\"wake_failure\"];\nconst AGENT_EXECUTION_READINESS_IMPACT_EFFECTS = [\"current_readiness_blocker\"];\nconst AGENT_EXECUTION_READINESS_IMPACT_SCOPES = [\"agent_profile_binding_agent_controller_report\"];\nconst AGENT_EXECUTION_READINESS_IMPACT_CLEARING_TRIGGERS = [\n\t\"fresh_ttl_expires\",\n\t\"matching_execution_running\",\n\t\"matching_execution_success\"\n];\nconst AGENT_EXECUTION_READINESS_IMPACT_REASON_CODE_ALIASES = {\n\t\"project.local_connection.folder_missing\": \"workspace.missing\",\n\t\"project.local_connection.missing\": \"workspace.missing\",\n\t\"profile.workspace.invalid\": \"workspace.invalid\",\n\t\"profile.workspace.missing\": \"workspace.missing\"\n};\nconst AGENT_EXECUTION_READINESS_IMPACT_TAXONOMY = [\n\t{\n\t\tclearingTriggers: AGENT_EXECUTION_READINESS_IMPACT_CLEARING_TRIGGERS,\n\t\teffect: \"current_readiness_blocker\",\n\t\tfreshTtlMs: AGENT_EXECUTION_READINESS_IMPACT_FRESH_TTL_MS,\n\t\timpactKind: \"local_execution\",\n\t\treasonCode: \"controller.launch.choice_required\",\n\t\tscope: \"agent_profile_binding_agent_controller_report\",\n\t\tsource: \"wake_failure\"\n\t},\n\t{\n\t\tclearingTriggers: AGENT_EXECUTION_READINESS_IMPACT_CLEARING_TRIGGERS,\n\t\teffect: \"current_readiness_blocker\",\n\t\tfreshTtlMs: AGENT_EXECUTION_READINESS_IMPACT_FRESH_TTL_MS,\n\t\timpactKind: \"local_execution\",\n\t\treasonCode: \"controller.launch.needs_repair\",\n\t\tscope: \"agent_profile_binding_agent_controller_report\",\n\t\tsource: \"wake_failure\"\n\t},\n\t{\n\t\tclearingTriggers: AGENT_EXECUTION_READINESS_IMPACT_CLEARING_TRIGGERS,\n\t\teffect: \"current_readiness_blocker\",\n\t\tfreshTtlMs: AGENT_EXECUTION_READINESS_IMPACT_FRESH_TTL_MS,\n\t\timpactKind: \"local_execution\",\n\t\treasonCode: \"controller.client.upgrade_required\",\n\t\tscope: \"agent_profile_binding_agent_controller_report\",\n\t\tsource: \"wake_failure\"\n\t},\n\t{\n\t\tclearingTriggers: AGENT_EXECUTION_READINESS_IMPACT_CLEARING_TRIGGERS,\n\t\teffect: \"current_readiness_blocker\",\n\t\tfreshTtlMs: AGENT_EXECUTION_READINESS_IMPACT_FRESH_TTL_MS,\n\t\timpactKind: \"local_execution\",\n\t\treasonCode: \"controller.runtime.missing\",\n\t\tscope: \"agent_profile_binding_agent_controller_report\",\n\t\tsource: \"wake_failure\"\n\t},\n\t{\n\t\tclearingTriggers: AGENT_EXECUTION_READINESS_IMPACT_CLEARING_TRIGGERS,\n\t\teffect: \"current_readiness_blocker\",\n\t\tfreshTtlMs: AGENT_EXECUTION_READINESS_IMPACT_FRESH_TTL_MS,\n\t\timpactKind: \"local_execution\",\n\t\treasonCode: \"runtime_coordinator.delivery_expired\",\n\t\tscope: \"agent_profile_binding_agent_controller_report\",\n\t\tsource: \"wake_failure\"\n\t},\n\t{\n\t\tclearingTriggers: AGENT_EXECUTION_READINESS_IMPACT_CLEARING_TRIGGERS,\n\t\teffect: \"current_readiness_blocker\",\n\t\tfreshTtlMs: AGENT_EXECUTION_READINESS_IMPACT_FRESH_TTL_MS,\n\t\timpactKind: \"local_execution\",\n\t\treasonCode: \"workspace.invalid\",\n\t\tscope: \"agent_profile_binding_agent_controller_report\",\n\t\tsource: \"wake_failure\"\n\t},\n\t{\n\t\tclearingTriggers: AGENT_EXECUTION_READINESS_IMPACT_CLEARING_TRIGGERS,\n\t\teffect: \"current_readiness_blocker\",\n\t\tfreshTtlMs: AGENT_EXECUTION_READINESS_IMPACT_FRESH_TTL_MS,\n\t\timpactKind: \"local_execution\",\n\t\treasonCode: \"workspace.missing\",\n\t\tscope: \"agent_profile_binding_agent_controller_report\",\n\t\tsource: \"wake_failure\"\n\t}\n];\nconst KNOWN_FINAL_FAILURE_REASON_CODES_WITHOUT_READINESS_IMPACT = [\n\t\"openmeld.space_action.repair_failed\",\n\t\"daemon.delivery.execution_stalled\",\n\t\"daemon.delivery.finalization_timeout\",\n\t\"daemon.delivery.start_timeout\",\n\t\"daemon.delivery.timeout\",\n\t\"delivery.result_timeout\",\n\t\"delivery.start_timeout\",\n\t\"final_visible_outcome.publication_pending\",\n\t\"final_visible_outcome.publication_retrying\",\n\t\"final_visible_outcome.publication_unresolved\",\n\t\"local_adapter.timeout\",\n\t\"reply.invalid_space_action\",\n\t\"reply.publication_failed\",\n\t\"runtime.progress_stale\",\n\t\"runtime.reply.empty_output\",\n\t\"runtime.reply.metadata_missing.agent_controller_ref\",\n\t\"runtime_coordinator.failure_publication_failed\",\n\t\"runtime_coordinator.failure_publication_unavailable\",\n\t\"runtime_coordinator.publication_retry_exhausted\",\n\t\"runtime_coordinator.publication_unresolved\",\n\t\"space.signal.persist_failed\",\n\t\"timed_out_after_output\",\n\t\"timed_out_no_output\",\n\t\"timeout\"\n];\nconst agentExecutionReadinessImpactReasonCodeSchema = z.enum(AGENT_EXECUTION_READINESS_IMPACT_REASON_CODES);\nconst agentExecutionReadinessImpactKindSchema = z.enum(AGENT_EXECUTION_READINESS_IMPACT_KINDS);\nconst agentExecutionReadinessImpactSourceSchema = z.enum(AGENT_EXECUTION_READINESS_IMPACT_SOURCES);\nconst agentExecutionReadinessImpactEffectSchema = z.enum(AGENT_EXECUTION_READINESS_IMPACT_EFFECTS);\nconst agentExecutionReadinessImpactScopeSchema = z.enum(AGENT_EXECUTION_READINESS_IMPACT_SCOPES);\nconst agentExecutionReadinessImpactClearingTriggerSchema = z.enum(AGENT_EXECUTION_READINESS_IMPACT_CLEARING_TRIGGERS);\nfunction resolveAgentExecutionReadinessImpactTaxonomyEntry(reasonCode) {\n\tconst resolvedReasonCode = resolveAgentExecutionReadinessImpactReasonCode(reasonCode);\n\tif (!resolvedReasonCode) return null;\n\treturn AGENT_EXECUTION_READINESS_IMPACT_TAXONOMY.find((entry) => entry.reasonCode === resolvedReasonCode) ?? null;\n}\nfunction resolveAgentExecutionReadinessImpactReasonCode(reasonCode) {\n\tif (typeof reasonCode !== \"string\") return null;\n\tconst normalized = reasonCode.trim().toLowerCase();\n\tif (!normalized) return null;\n\tconst alias = AGENT_EXECUTION_READINESS_IMPACT_REASON_CODE_ALIASES[normalized];\n\tif (alias) return alias;\n\treturn AGENT_EXECUTION_READINESS_IMPACT_REASON_CODES.includes(normalized) ? normalized : null;\n}\nfunction isAgentExecutionReadinessImpactReasonCode(reasonCode) {\n\treturn resolveAgentExecutionReadinessImpactReasonCode(reasonCode) !== null;\n}\nfunction isKnownFinalFailureReasonCodeWithoutReadinessImpact(reasonCode) {\n\treturn typeof reasonCode === \"string\" && KNOWN_FINAL_FAILURE_REASON_CODES_WITHOUT_READINESS_IMPACT.includes(reasonCode);\n}\n//#endregion\nexport { AGENT_EXECUTION_READINESS_IMPACT_CLEARING_TRIGGERS, AGENT_EXECUTION_READINESS_IMPACT_EFFECTS, AGENT_EXECUTION_READINESS_IMPACT_FRESH_TTL_MS, AGENT_EXECUTION_READINESS_IMPACT_KINDS, AGENT_EXECUTION_READINESS_IMPACT_REASON_CODES, AGENT_EXECUTION_READINESS_IMPACT_REASON_CODE_ALIASES, AGENT_EXECUTION_READINESS_IMPACT_SCOPES, AGENT_EXECUTION_READINESS_IMPACT_SOURCES, AGENT_EXECUTION_READINESS_IMPACT_TAXONOMY, KNOWN_FINAL_FAILURE_REASON_CODES_WITHOUT_READINESS_IMPACT, agentExecutionReadinessImpactClearingTriggerSchema, agentExecutionReadinessImpactEffectSchema, agentExecutionReadinessImpactKindSchema, agentExecutionReadinessImpactReasonCodeSchema, agentExecutionReadinessImpactScopeSchema, agentExecutionReadinessImpactSourceSchema, isAgentExecutionReadinessImpactReasonCode, isKnownFinalFailureReasonCodeWithoutReadinessImpact, resolveAgentExecutionReadinessImpactReasonCode, resolveAgentExecutionReadinessImpactTaxonomyEntry };\n\n//# sourceMappingURL=agent-execution-readiness-impact-taxonomy.js.map","//#region src/compatibility/legacy-space-addressing-wire.ts\nconst MESSAGE_ENVELOPE_WIRE_FIELD_NAMES = /* @__PURE__ */ new Set([\"messageEnvelope\", \"sourceMessageEnvelope\"]);\n/**\n* Temporary transport-only compatibility for clients released before Space\n* Message Addressing moved to Wake and Reference.\n*\n* Callers must pass values that have already crossed current schemas. The\n* returned value is for JSON serialization only and must never be reused as a\n* domain object. Remove this encoder after the minimum supported Web, CLI,\n* Local Service, Gateway, Core, and Remote Agent versions all understand the\n* two-relation contract and production history has completed one retention\n* window under the current read projection.\n*/\nfunction toLegacySpaceAddressingWireValue(value) {\n\treturn encodeLegacySpaceAddressingWireValue(value, null);\n}\nfunction encodeLegacySpaceAddressingWireValue(value, fieldName) {\n\tif (Array.isArray(value)) return value.map((item) => encodeLegacySpaceAddressingWireValue(item, fieldName));\n\tif (!isJsonRecord(value)) return value;\n\tconst encoded = Object.fromEntries(Object.entries(value).map(([key, nestedValue]) => [key, encodeLegacySpaceAddressingWireValue(nestedValue, key)]));\n\tif ((fieldName === null || fieldName !== null && MESSAGE_ENVELOPE_WIRE_FIELD_NAMES.has(fieldName)) && isCurrentMessageEnvelope(encoded)) return {\n\t\t...encoded,\n\t\tccTargets: []\n\t};\n\tif (fieldName === \"allowedRelations\" && isCurrentAllowedRelations(encoded)) return {\n\t\t...encoded,\n\t\tcc: false\n\t};\n\treturn encoded;\n}\nfunction isCurrentMessageEnvelope(value) {\n\treturn typeof value.text === \"string\" && Array.isArray(value.activationTargets) && Array.isArray(value.referenceTargets);\n}\nfunction isCurrentAllowedRelations(value) {\n\treturn typeof value.wake === \"boolean\" && typeof value.reference === \"boolean\";\n}\nfunction isJsonRecord(value) {\n\treturn typeof value === \"object\" && value !== null;\n}\n//#endregion\nexport { toLegacySpaceAddressingWireValue };\n\n//# sourceMappingURL=legacy-space-addressing-wire.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/agent-controller-collaboration-mode.ts\nconst agentControllerCollaborationModeSchema = z.enum([\"codex:default\", \"codex:plan\"]);\n//#endregion\nexport { agentControllerCollaborationModeSchema };\n\n//# sourceMappingURL=agent-controller-collaboration-mode.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/agent-controller-permission-mode.ts\nconst agentControllerPermissionModeSchema = z.enum([\n\t\"claude-code:default\",\n\t\"claude-code:acceptEdits\",\n\t\"claude-code:plan\",\n\t\"claude-code:auto\",\n\t\"claude-code:dontAsk\",\n\t\"claude-code:bypassPermissions\",\n\t\"codex:askForApproval\",\n\t\"codex:approveForMe\",\n\t\"codex:fullAccess\",\n\t\"codex:customConfig\",\n\t\"cursor:default\",\n\t\"cursor:plan\",\n\t\"cursor:ask\",\n\t\"cursor:autoReview\",\n\t\"cursor:force\"\n]);\n//#endregion\nexport { agentControllerPermissionModeSchema };\n\n//# sourceMappingURL=agent-controller-permission-mode.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/runtime/local-agent-catalog.ts\nconst LOCAL_AGENT_CATALOG_BOUNDED_ID_SCHEMA = z.string().trim().min(1).max(256);\nconst LOCAL_AGENT_CATALOG_BOUNDED_LABEL_SCHEMA = z.string().trim().min(1).max(256);\nconst localAgentCatalogTargetKindSchema = z.enum([\"builtin\", \"custom\"]);\nconst localAgentCatalogLifecycleStatusSchema = z.enum([\"active\", \"suspended\"]);\nconst localAgentCatalogSelectableReasonSchema = z.enum([\n\t\"not_detected\",\n\t\"not_supported_yet\",\n\t\"needs_repair\",\n\t\"custom_coming_soon\"\n]);\nconst localAgentCatalogLaunchStatusSchema = z.enum([\n\t\"ready\",\n\t\"needs_choice\",\n\t\"needs_repair\",\n\t\"not_available\"\n]);\nconst localAgentCatalogEntryShape = {\n\tagentId: LOCAL_AGENT_CATALOG_BOUNDED_ID_SCHEMA,\n\tdisplayName: LOCAL_AGENT_CATALOG_BOUNDED_LABEL_SCHEMA,\n\ttargetKind: localAgentCatalogTargetKindSchema,\n\tdetected: z.boolean(),\n\tenabled: z.boolean(),\n\tlaunchStatus: localAgentCatalogLaunchStatusSchema,\n\tselectable: z.boolean(),\n\tselectableReason: z.union([localAgentCatalogSelectableReasonSchema, z.null()])\n};\nconst localAgentCatalogEntrySchema = z.strictObject(localAgentCatalogEntryShape).superRefine(validateLocalAgentCatalogEntrySemantics);\nconst localAgentCatalogEntryWithLifecycleSchema = z.strictObject({\n\t...localAgentCatalogEntryShape,\n\tlifecycleStatus: localAgentCatalogLifecycleStatusSchema.default(\"active\")\n}).superRefine(validateLocalAgentCatalogEntrySemantics);\nconst localAgentCatalogSchema = createLocalAgentCatalogSchema(localAgentCatalogEntrySchema);\nconst localAgentCatalogWithLifecycleSchema = createLocalAgentCatalogSchema(localAgentCatalogEntryWithLifecycleSchema);\nfunction createLocalAgentCatalogSchema(entrySchema) {\n\treturn z.strictObject({\n\t\ttotalBuiltins: z.number().int().min(0),\n\t\tdetectedSupported: z.number().int().min(0),\n\t\tneedsChoice: z.number().int().min(0),\n\t\tneedsRepair: z.number().int().min(0),\n\t\tdetectedNotSupportedYet: z.number().int().min(0),\n\t\tnotDetected: z.number().int().min(0),\n\t\tentries: z.array(entrySchema)\n\t}).superRefine(validateLocalAgentCatalogSummary);\n}\nfunction validateLocalAgentCatalogEntrySemantics(value, ctx) {\n\tif (value.selectable && value.selectableReason !== null) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"selectableReason must be null when selectable is true\",\n\t\tpath: [\"selectableReason\"]\n\t});\n\tif (!value.selectable && value.selectableReason === null) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"selectableReason must be present when selectable is false\",\n\t\tpath: [\"selectableReason\"]\n\t});\n\tif (value.launchStatus === \"needs_choice\" && !(value.detected && value.targetKind === \"builtin\" && value.selectable)) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"needs_choice launchStatus only applies to detected selectable builtin entries\",\n\t\tpath: [\"launchStatus\"]\n\t});\n\tif (value.launchStatus === \"needs_repair\" && !(value.detected && value.enabled && value.targetKind === \"builtin\" && value.selectable && value.selectableReason === null)) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"needs_repair launchStatus only applies to detected selectable builtin entries\",\n\t\tpath: [\"launchStatus\"]\n\t});\n\tif (value.selectableReason === \"not_detected\" && value.detected) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"not_detected selectableReason requires detected to be false\",\n\t\tpath: [\"detected\"]\n\t});\n\tif (value.selectableReason === \"not_supported_yet\" && (!value.detected || value.targetKind !== \"builtin\")) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"not_supported_yet selectableReason only applies to detected builtin entries\",\n\t\tpath: [\"selectableReason\"]\n\t});\n\tif (value.selectableReason === \"needs_repair\" && (!value.detected || value.targetKind !== \"builtin\")) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"needs_repair selectableReason only applies to detected builtin entries\",\n\t\tpath: [\"selectableReason\"]\n\t});\n\tif (value.selectableReason === \"custom_coming_soon\" && value.targetKind !== \"custom\") ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"custom_coming_soon selectableReason only applies to custom entries\",\n\t\tpath: [\"selectableReason\"]\n\t});\n}\nfunction validateLocalAgentCatalogSummary(value, ctx) {\n\tconst builtinEntries = value.entries.filter((entry) => entry.targetKind === \"builtin\");\n\tconst detectedSupported = builtinEntries.filter((entry) => entry.detected && entry.launchStatus === \"ready\").length;\n\tconst needsChoice = builtinEntries.filter((entry) => entry.detected && entry.launchStatus === \"needs_choice\").length;\n\tconst detectedNotSupportedYet = builtinEntries.filter((entry) => entry.detected && entry.launchStatus === \"not_available\" && entry.selectableReason === \"not_supported_yet\").length;\n\tconst needsRepair = builtinEntries.filter((entry) => entry.detected && entry.launchStatus === \"needs_repair\").length;\n\tconst notDetected = builtinEntries.filter((entry) => !entry.detected).length;\n\tconst expectations = [\n\t\t{\n\t\t\tactual: builtinEntries.length,\n\t\t\texpected: value.totalBuiltins,\n\t\t\tlabel: \"totalBuiltins\",\n\t\t\tpath: [\"totalBuiltins\"]\n\t\t},\n\t\t{\n\t\t\tactual: detectedSupported,\n\t\t\texpected: value.detectedSupported,\n\t\t\tlabel: \"detectedSupported\",\n\t\t\tpath: [\"detectedSupported\"]\n\t\t},\n\t\t{\n\t\t\tactual: needsChoice,\n\t\t\texpected: value.needsChoice,\n\t\t\tlabel: \"needsChoice\",\n\t\t\tpath: [\"needsChoice\"]\n\t\t},\n\t\t{\n\t\t\tactual: detectedNotSupportedYet,\n\t\t\texpected: value.detectedNotSupportedYet,\n\t\t\tlabel: \"detectedNotSupportedYet\",\n\t\t\tpath: [\"detectedNotSupportedYet\"]\n\t\t},\n\t\t{\n\t\t\tactual: needsRepair,\n\t\t\texpected: value.needsRepair,\n\t\t\tlabel: \"needsRepair\",\n\t\t\tpath: [\"needsRepair\"]\n\t\t},\n\t\t{\n\t\t\tactual: notDetected,\n\t\t\texpected: value.notDetected,\n\t\t\tlabel: \"notDetected\",\n\t\t\tpath: [\"notDetected\"]\n\t\t}\n\t];\n\tfor (const expectation of expectations) {\n\t\tif (expectation.actual === expectation.expected) continue;\n\t\tctx.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: `${expectation.label} must match the builtin entry summary`,\n\t\t\tpath: expectation.path\n\t\t});\n\t}\n}\n//#endregion\nexport { localAgentCatalogEntrySchema, localAgentCatalogEntryWithLifecycleSchema, localAgentCatalogLaunchStatusSchema, localAgentCatalogLifecycleStatusSchema, localAgentCatalogSchema, localAgentCatalogSelectableReasonSchema, localAgentCatalogTargetKindSchema, localAgentCatalogWithLifecycleSchema };\n\n//# sourceMappingURL=local-agent-catalog.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/daemon/reply-readiness.ts\nconst REPLY_READINESS_LEVEL_VALUES = [\n\t\"blocked\",\n\t\"degraded\",\n\t\"ready\",\n\t\"unknown\"\n];\nconst REPLY_READINESS_REASON_CODE_VALUES = [\n\t\"service.not_installed\",\n\t\"service.drifted\",\n\t\"service.not_running\",\n\t\"service.account_mismatch\",\n\t\"service.auth_missing\",\n\t\"service.auth_stale\",\n\t\"dispatch.storage_not_ready\",\n\t\"service.gateway_chain_unhealthy\",\n\t\"profile.not_selected\",\n\t\"profile.inactive\",\n\t\"profile.unbound\",\n\t\"controller.binding.disabled\",\n\t\"projection.missing\",\n\t\"controller.registry.disabled\",\n\t\"controller.launch.choice_required\",\n\t\"controller.launch.needs_repair\",\n\t\"workspace.missing\",\n\t\"workspace.invalid\",\n\t\"runtime.adapter.unsupported\",\n\t\"controller.bootstrap.failed\",\n\t\"controller.gateway.unhealthy\",\n\t\"local_agents.none_needed\",\n\t\"route.offline\",\n\t\"route.not_registered\"\n];\nconst replyReadinessLevelSchema = z.enum(REPLY_READINESS_LEVEL_VALUES);\nconst replyReadinessReasonCodeSchema = z.enum(REPLY_READINESS_REASON_CODE_VALUES);\n//#endregion\nexport { REPLY_READINESS_LEVEL_VALUES, REPLY_READINESS_REASON_CODE_VALUES, replyReadinessLevelSchema, replyReadinessReasonCodeSchema };\n\n//# sourceMappingURL=reply-readiness.js.map","import { replyReadinessLevelSchema, replyReadinessReasonCodeSchema } from \"../daemon/reply-readiness.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/start/shared.ts\nconst START_ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });\nconst START_TRIMMED_NON_EMPTY_STRING_SCHEMA = z.string().trim().min(1);\nconst START_BOUNDED_ID_SCHEMA = START_TRIMMED_NON_EMPTY_STRING_SCHEMA.max(256);\nSTART_TRIMMED_NON_EMPTY_STRING_SCHEMA.max(256);\nconst START_BOUNDED_VERSION_SCHEMA = START_TRIMMED_NON_EMPTY_STRING_SCHEMA.max(128);\nz.union([START_ISO_DATE_TIME_SCHEMA, z.null()]);\nconst startReplyReadinessSummarySchema = z.strictObject({\n\tlevel: replyReadinessLevelSchema,\n\treasonCodes: z.array(replyReadinessReasonCodeSchema)\n});\n//#endregion\nexport { START_BOUNDED_ID_SCHEMA, START_BOUNDED_VERSION_SCHEMA, START_ISO_DATE_TIME_SCHEMA, START_TRIMMED_NON_EMPTY_STRING_SCHEMA, startReplyReadinessSummarySchema };\n\n//# sourceMappingURL=shared.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/daemon/route-observation-summary.ts\nconst DAEMON_ROUTE_OBSERVATION_STATUS_VALUES = [\n\t\"online\",\n\t\"offline\",\n\t\"unavailable\"\n];\nconst DAEMON_ROUTE_OBSERVATION_UNAVAILABLE_REASON_CODE_VALUES = [\n\t\"lookup_failed\",\n\t\"not_requested\",\n\t\"profile_not_agent\",\n\t\"profile_not_selected\",\n\t\"server_unsupported\"\n];\nconst DAEMON_ROUTE_OBSERVATION_REASON_CODE_VALUES = [\n\t\"online\",\n\t\"route.not_registered\",\n\t...DAEMON_ROUTE_OBSERVATION_UNAVAILABLE_REASON_CODE_VALUES\n];\nconst daemonRouteObservationStatusSchema = z.enum(DAEMON_ROUTE_OBSERVATION_STATUS_VALUES);\nconst daemonRouteObservationUnavailableReasonCodeSchema = z.enum(DAEMON_ROUTE_OBSERVATION_UNAVAILABLE_REASON_CODE_VALUES);\nconst daemonRouteObservationReasonCodeSchema = z.enum(DAEMON_ROUTE_OBSERVATION_REASON_CODE_VALUES);\nconst CANONICAL_UNAVAILABLE_REASON_CODE_SET = new Set(DAEMON_ROUTE_OBSERVATION_UNAVAILABLE_REASON_CODE_VALUES);\nfunction isCanonicalUnavailableReasonCode(value) {\n\treturn value !== null && value !== void 0 ? CANONICAL_UNAVAILABLE_REASON_CODE_SET.has(value) : false;\n}\nfunction createDaemonRouteObservationSummary(input) {\n\tif (input.status === \"online\") return {\n\t\tobservedAt: input.observedAt,\n\t\treasonCode: \"online\",\n\t\tstatus: \"online\"\n\t};\n\tif (input.status === \"offline\") return {\n\t\tobservedAt: input.observedAt,\n\t\treasonCode: \"route.not_registered\",\n\t\tstatus: \"offline\"\n\t};\n\treturn {\n\t\tobservedAt: input.observedAt,\n\t\treasonCode: isCanonicalUnavailableReasonCode(input.reasonCode) ? input.reasonCode : \"lookup_failed\",\n\t\tstatus: \"unavailable\"\n\t};\n}\nconst daemonRouteObservationSummarySchema = z.strictObject({\n\tobservedAt: z.iso.datetime({ offset: true }),\n\treasonCode: daemonRouteObservationReasonCodeSchema,\n\tstatus: daemonRouteObservationStatusSchema\n}).superRefine((value, ctx) => {\n\tif (value.status === \"online\" && value.reasonCode !== \"online\") ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"online route observation must use online reasonCode\",\n\t\tpath: [\"reasonCode\"]\n\t});\n\tif (value.status === \"offline\" && value.reasonCode !== \"route.not_registered\") ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"offline route observation must normalize to route.not_registered\",\n\t\tpath: [\"reasonCode\"]\n\t});\n\tif (value.status === \"unavailable\" && (value.reasonCode === \"online\" || value.reasonCode === \"route.not_registered\")) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"unavailable route observation must use an unavailable reasonCode\",\n\t\tpath: [\"reasonCode\"]\n\t});\n});\n//#endregion\nexport { DAEMON_ROUTE_OBSERVATION_REASON_CODE_VALUES, DAEMON_ROUTE_OBSERVATION_STATUS_VALUES, DAEMON_ROUTE_OBSERVATION_UNAVAILABLE_REASON_CODE_VALUES, createDaemonRouteObservationSummary, daemonRouteObservationReasonCodeSchema, daemonRouteObservationStatusSchema, daemonRouteObservationSummarySchema, daemonRouteObservationUnavailableReasonCodeSchema };\n\n//# sourceMappingURL=route-observation-summary.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/open-code-permission.ts\nconst openCodePermissionActionSchema = z.enum([\n\t\"allow\",\n\t\"ask\",\n\t\"deny\"\n]);\nconst openCodePermissionKeySchema = z.string().trim().min(1).max(128);\nconst openCodePermissionPatternSchema = z.string().trim().min(1).max(512);\nconst plainJsonObjectSchema = z.custom((value) => typeof value === \"object\" && value !== null && !Array.isArray(value), \"Expected an object\");\nconst openCodePermissionPatternRulesSchema = plainJsonObjectSchema.pipe(z.record(openCodePermissionPatternSchema, openCodePermissionActionSchema)).superRefine((value, context) => {\n\tif (Object.keys(value).length > 128) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"OpenCode permission pattern rules cannot exceed 128 entries\"\n\t});\n});\nconst openCodePermissionConfigSchema = plainJsonObjectSchema.pipe(z.record(openCodePermissionKeySchema, z.union([openCodePermissionActionSchema, openCodePermissionPatternRulesSchema]))).superRefine((value, context) => {\n\tif (Object.keys(value).length > 64) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"OpenCode permission config cannot exceed 64 permission keys\"\n\t});\n\tif (JSON.stringify(value).length > 2e4) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"OpenCode permission config cannot exceed 20 KB\"\n\t});\n});\n//#endregion\nexport { openCodePermissionActionSchema, openCodePermissionConfigSchema, openCodePermissionPatternRulesSchema };\n\n//# sourceMappingURL=open-code-permission.js.map","import { agentControllerCollaborationModeSchema } from \"../agent-controller-collaboration-mode.js\";\nimport { agentControllerPermissionModeSchema } from \"../agent-controller-permission-mode.js\";\nimport { openCodePermissionConfigSchema } from \"../open-code-permission.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/agent-profile-binding.ts\nconst boundedIdentifierSchema = z.string().trim().min(1).max(256);\nconst reasonCodeSchema = z.string().trim().min(1).max(256);\nconst agentProfileBindingRouteParamsSchema = z.strictObject({ agentProfileId: boundedIdentifierSchema });\nconst agentProfileBindingRuntimeIdSchema = z.strictObject({\n\tsource: z.literal(\"runtime_registry_authority\"),\n\tvalue: z.string().trim().min(1).max(512)\n});\nconst agentProfileBindingModelSelectionSchema = z.strictObject({\n\tmodelId: boundedIdentifierSchema,\n\treasoningLevel: boundedIdentifierSchema.optional()\n});\nconst agentProfileBindingAgentControllerPermissionModeSchema = agentControllerPermissionModeSchema;\nconst agentProfileBindingAgentControllerCollaborationModeSchema = agentControllerCollaborationModeSchema;\nconst agentProfileBindingOpenCodePermissionSchema = openCodePermissionConfigSchema;\nconst agentProfileBindingWriteModeSchema = z.enum([\"ensure\", \"reconnect\"]);\nconst ensureAgentProfilePrimaryBindingBodySchema = z.strictObject({\n\tagentControllerRef: boundedIdentifierSchema,\n\tagentControllerConversationId: boundedIdentifierSchema.optional(),\n\tdeviceId: boundedIdentifierSchema,\n\tlane: boundedIdentifierSchema,\n\topenMeldServiceRuntimeId: agentProfileBindingRuntimeIdSchema,\n\tagentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),\n\tagentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),\n\tmodelId: boundedIdentifierSchema.optional(),\n\topenCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),\n\treasoningLevel: boundedIdentifierSchema.optional(),\n\twriteMode: agentProfileBindingWriteModeSchema.optional()\n}).superRefine((value, context) => {\n\tif (value.reasoningLevel && !value.modelId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"reasoningLevel requires modelId\",\n\t\tpath: [\"reasoningLevel\"]\n\t});\n});\nconst updateAgentProfilePrimaryBindingModelSelectionBodySchema = z.strictObject({\n\tmodelId: boundedIdentifierSchema,\n\treasoningLevel: boundedIdentifierSchema.optional()\n}).superRefine((value, context) => {\n\tif (value.reasoningLevel && !value.modelId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"reasoningLevel requires modelId\",\n\t\tpath: [\"reasoningLevel\"]\n\t});\n});\nconst updateAgentProfilePrimaryBindingAgentControllerPermissionModeBodySchema = z.strictObject({ agentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema });\nconst updateAgentProfilePrimaryBindingAgentControllerCollaborationModeBodySchema = z.strictObject({ agentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema });\nconst updateAgentProfilePrimaryBindingOpenCodePermissionBodySchema = z.strictObject({ openCodePermission: agentProfileBindingOpenCodePermissionSchema.nullable() });\nconst authorizeAgentProfileBindingForOrganizationResponseSchema = z.strictObject({\n\tagentProfileId: boundedIdentifierSchema,\n\tauthorizedBy: boundedIdentifierSchema,\n\tbindingId: boundedIdentifierSchema,\n\tcreatedAt: z.iso.datetime({ offset: true }),\n\torganizationId: boundedIdentifierSchema,\n\tstatus: z.enum([\"authorized\", \"already_authorized\"])\n});\nconst organizationBindingAuthorizationSchema = z.strictObject({\n\tagentProfileId: boundedIdentifierSchema,\n\tauthorizedBy: boundedIdentifierSchema,\n\tbindingId: boundedIdentifierSchema,\n\tcreatedAt: z.iso.datetime({ offset: true })\n});\nconst bulkAuthorizeAgentProfileBindingsForOrganizationBodySchema = z.strictObject({ agentProfileIds: z.array(boundedIdentifierSchema).min(1).max(100).optional() });\nconst bulkOrganizationBindingAuthorizationSchema = organizationBindingAuthorizationSchema.extend({\n\torganizationId: boundedIdentifierSchema,\n\tstatus: z.enum([\"authorized\", \"already_authorized\"])\n});\nconst bulkAuthorizeAgentProfileBindingsForOrganizationResponseSchema = z.strictObject({\n\talreadyAuthorizedCount: z.number().int().nonnegative(),\n\tauthorizedCount: z.number().int().nonnegative(),\n\tauthorizations: z.array(bulkOrganizationBindingAuthorizationSchema),\n\torganizationId: boundedIdentifierSchema\n});\nconst organizationBindingAuthorizationPreferenceSchema = z.strictObject({\n\tautoAuthorizeAgentProfileBindings: z.boolean(),\n\torganizationId: boundedIdentifierSchema,\n\tupdatedAt: z.iso.datetime({ offset: true }).nullable(),\n\tuserId: boundedIdentifierSchema\n});\nconst setOrganizationBindingAuthorizationPreferenceBodySchema = z.strictObject({ autoAuthorizeAgentProfileBindings: z.boolean() });\nconst getOrganizationBindingAuthorizationPreferenceResponseSchema = organizationBindingAuthorizationPreferenceSchema;\nconst setOrganizationBindingAuthorizationPreferenceResponseSchema = organizationBindingAuthorizationPreferenceSchema;\nconst saveOrganizationWakeAccessChoiceBodySchema = z.strictObject({ enableWakeAccess: z.boolean() });\nconst saveOrganizationWakeAccessChoiceResponseSchema = z.strictObject({\n\talreadyAuthorizedCount: z.number().int().nonnegative(),\n\tauthorizedCount: z.number().int().nonnegative(),\n\torganizationId: boundedIdentifierSchema,\n\tpreference: organizationBindingAuthorizationPreferenceSchema\n});\nconst listOrganizationBindingAuthorizationsResponseSchema = z.strictObject({\n\torganizationId: boundedIdentifierSchema,\n\tauthorizations: z.array(organizationBindingAuthorizationSchema)\n});\nconst organizationBindingAuthorizationProfileStatusSchema = z.enum([\n\t\"authorized\",\n\t\"not_authorized\",\n\t\"binding_required\"\n]);\nconst organizationBindingAuthorizationProfileSchema = z.strictObject({\n\tagentProfileId: boundedIdentifierSchema,\n\tprofileName: z.string().trim().min(1).max(256),\n\tprofileHandle: z.string().trim().min(1).max(256),\n\tprofileOrganizationId: boundedIdentifierSchema,\n\townerUserId: boundedIdentifierSchema,\n\tbindingId: boundedIdentifierSchema.nullable(),\n\tauthorized: z.boolean(),\n\tauthorizedBy: boundedIdentifierSchema.nullable(),\n\tauthorizedAt: z.iso.datetime({ offset: true }).nullable(),\n\tstatus: organizationBindingAuthorizationProfileStatusSchema\n});\nconst listOrganizationBindingAuthorizationProfilesResponseSchema = z.strictObject({\n\torganizationId: boundedIdentifierSchema,\n\tprofiles: z.array(organizationBindingAuthorizationProfileSchema)\n});\nconst agentProfileOrganizationWakeAccessEntrySchema = z.strictObject({\n\tagentProfileId: boundedIdentifierSchema,\n\torganizations: z.array(z.strictObject({\n\t\torganizationId: boundedIdentifierSchema,\n\t\torganizationName: z.string().trim().min(1).max(256),\n\t\torganizationSlug: z.string().trim().min(1).max(256)\n\t}))\n});\nconst listCurrentUserAgentProfileOrganizationWakeAccessResponseSchema = z.strictObject({ profiles: z.array(agentProfileOrganizationWakeAccessEntrySchema) });\nconst revokeAgentProfileBindingForOrganizationResponseSchema = z.strictObject({\n\tagentProfileId: boundedIdentifierSchema,\n\tbindingId: boundedIdentifierSchema.nullable(),\n\torganizationId: boundedIdentifierSchema,\n\trevoked: z.boolean(),\n\tstatus: z.enum([\"revoked\", \"missing\"])\n});\nconst disableAgentProfilePrimaryBindingResponseSchema = z.strictObject({\n\tagentProfileId: boundedIdentifierSchema,\n\tdisabled: z.boolean(),\n\treasonCodes: z.array(reasonCodeSchema),\n\tstatus: z.enum([\n\t\t\"disabled\",\n\t\t\"missing\",\n\t\t\"unavailable\"\n\t])\n});\nconst notifyAgentProfileRouteCatalogChangedBodySchema = z.strictObject({ reason: z.string().trim().min(1).max(100).optional() });\nconst notifyAgentProfilesRouteCatalogChangedBodySchema = z.strictObject({\n\tagentProfileIds: z.array(boundedIdentifierSchema).min(1).max(100),\n\treason: z.string().trim().min(1).max(100).optional()\n});\nconst notifyAgentProfileRouteCatalogChangedResponseSchema = z.strictObject({\n\tok: z.boolean(),\n\tnotifiedSessions: z.number().int().nonnegative()\n});\nconst agentProfileBindingStateSchema = z.enum([\n\t\"missing\",\n\t\"enabled_primary\",\n\t\"disabled_historical\",\n\t\"conflict\",\n\t\"owner_mismatch\"\n]);\nconst agentProfileBindingResolutionSourceSchema = z.enum([\n\t\"binding_truth\",\n\t\"missing_projection\",\n\t\"conflict_evidence\"\n]);\nconst agentProfileBindingAuthoritySourceSchema = z.enum([\n\t\"binding_truth\",\n\t\"none\",\n\t\"blocked\"\n]);\nconst agentProfileBindingAgentControllerReportSchema = z.strictObject({\n\tagentControllerRef: boundedIdentifierSchema,\n\tagentControllerConversationId: boundedIdentifierSchema.optional(),\n\topenMeldServiceRuntimeId: agentProfileBindingRuntimeIdSchema\n});\nconst agentProfileBindingDispatchEligibilitySchema = z.strictObject({\n\treasonCodes: z.array(reasonCodeSchema),\n\troutable: z.boolean(),\n\tstatus: z.enum([\"routable\", \"not_routable\"])\n});\nconst agentProfileBindingProjectionSchema = z.strictObject({\n\tagentProfileId: boundedIdentifierSchema,\n\tauthoritySource: agentProfileBindingAuthoritySourceSchema,\n\tbindingId: boundedIdentifierSchema.optional(),\n\tbindingState: agentProfileBindingStateSchema,\n\tdispatchEligibility: agentProfileBindingDispatchEligibilitySchema,\n\tgrantsClaimSuccess: z.literal(false),\n\tagentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),\n\tagentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),\n\tmodelSelection: agentProfileBindingModelSelectionSchema.optional(),\n\topenCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),\n\treasonCodes: z.array(reasonCodeSchema),\n\tresolutionSource: agentProfileBindingResolutionSourceSchema,\n\troutable: z.boolean(),\n\texecutionTarget: agentProfileBindingAgentControllerReportSchema.nullable()\n}).superRefine(validateAgentProfileBindingProjection);\nconst getAgentProfilePrimaryBindingResponseSchema = z.strictObject({\n\tbinding: agentProfileBindingProjectionSchema,\n\tgrantsClaimSuccess: z.literal(false),\n\tstatus: z.enum([\n\t\t\"found\",\n\t\t\"missing\",\n\t\t\"unavailable\"\n\t])\n}).superRefine((value, context) => {\n\tif (value.binding.bindingState !== \"missing\") {\n\t\tif (value.status !== \"found\") context.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"Binding read status must match Binding projection\",\n\t\t\tpath: [\"status\"]\n\t\t});\n\t\treturn;\n\t}\n\tif (value.status === \"found\") {\n\t\tcontext.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"Binding read status must match Binding projection\",\n\t\t\tpath: [\"status\"]\n\t\t});\n\t\treturn;\n\t}\n\tconst unavailable = hasUnavailableBindingReadReason(value.binding.reasonCodes);\n\tif (value.status === \"unavailable\" && !unavailable) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"unavailable Binding read requires unavailable reason code\",\n\t\tpath: [\"binding\", \"reasonCodes\"]\n\t});\n\tif (value.status === \"missing\" && unavailable) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"unavailable Binding read cannot be reported as missing\",\n\t\tpath: [\"status\"]\n\t});\n});\nconst ensureAgentProfilePrimaryBindingResponseSchema = z.strictObject({\n\tbinding: agentProfileBindingProjectionSchema.optional(),\n\tgrantsClaimSuccess: z.literal(false),\n\toutcome: z.enum([\n\t\t\"created\",\n\t\t\"reused\",\n\t\t\"reconnected\"\n\t]).optional(),\n\treasonCodes: z.array(reasonCodeSchema),\n\troutable: z.boolean(),\n\tstatus: z.enum([\"accepted\", \"rejected\"])\n}).superRefine((value, context) => {\n\tif (value.status === \"accepted\") {\n\t\tif (!value.binding) context.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"accepted Binding command response requires Binding truth\",\n\t\t\tpath: [\"binding\"]\n\t\t});\n\t\tif (!value.outcome) context.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"accepted Binding command response requires an outcome\",\n\t\t\tpath: [\"outcome\"]\n\t\t});\n\t\tif (!value.routable) context.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"accepted Binding command response must be routable\",\n\t\t\tpath: [\"routable\"]\n\t\t});\n\t\tif (value.binding) requireAcceptedBindingCommandProjection(value.binding, context);\n\t\treturn;\n\t}\n\tif (value.outcome) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"rejected Binding command response cannot include outcome\",\n\t\tpath: [\"outcome\"]\n\t});\n\tif (value.routable) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"rejected Binding command response cannot be routable\",\n\t\tpath: [\"routable\"]\n\t});\n});\nfunction validateAgentProfileBindingProjection(value, context) {\n\tvalidateBindingDispatchEligibility(value, context);\n\tbindingProjectionValidators[value.bindingState](value, context);\n}\nconst bindingProjectionValidators = {\n\tconflict: validateConflictProjection,\n\tdisabled_historical: validateDisabledHistoricalProjection,\n\tenabled_primary: validateEnabledPrimaryProjection,\n\tmissing: validateMissingProjection,\n\towner_mismatch: validateOwnerMismatchProjection\n};\nfunction validateBindingDispatchEligibility(value, context) {\n\tif (value.dispatchEligibility.routable !== value.routable) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Binding routable fields must agree\",\n\t\tpath: [\"dispatchEligibility\", \"routable\"]\n\t});\n\tif (value.dispatchEligibility.status !== (value.routable ? \"routable\" : \"not_routable\")) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Binding dispatch status must match routable state\",\n\t\tpath: [\"dispatchEligibility\", \"status\"]\n\t});\n}\nfunction validateEnabledPrimaryProjection(value, context) {\n\trequireBindingTruthProjection(value, context);\n\tif (!value.routable) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"enabled primary Binding must be routable\",\n\t\tpath: [\"routable\"]\n\t});\n}\nfunction validateDisabledHistoricalProjection(value, context) {\n\trequireBindingTruthProjection(value, context);\n\tif (value.routable) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"disabled historical Binding cannot be routable\",\n\t\tpath: [\"routable\"]\n\t});\n}\nfunction validateMissingProjection(value, context) {\n\tif (value.authoritySource !== \"none\") context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"missing Binding projection cannot have authority source\",\n\t\tpath: [\"authoritySource\"]\n\t});\n\tif (value.resolutionSource !== \"missing_projection\") context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"missing Binding projection requires missing source\",\n\t\tpath: [\"resolutionSource\"]\n\t});\n\trejectMissingProjectionEvidence(value, context);\n}\nfunction rejectMissingProjectionEvidence(value, context) {\n\tif (value.bindingId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"missing Binding projection cannot include bindingId\",\n\t\tpath: [\"bindingId\"]\n\t});\n\tif (value.executionTarget) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"missing Binding projection cannot include Agent Controller availability\",\n\t\tpath: [\"executionTarget\"]\n\t});\n\tif (value.modelSelection) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"missing Binding projection cannot include model selection\",\n\t\tpath: [\"modelSelection\"]\n\t});\n\tif (value.openCodePermission) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"missing Binding projection cannot include OpenCode permissions\",\n\t\tpath: [\"openCodePermission\"]\n\t});\n\tif (value.agentControllerPermissionMode) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"missing Binding projection cannot include Agent Controller Permission Mode\",\n\t\tpath: [\"agentControllerPermissionMode\"]\n\t});\n\tif (value.agentControllerCollaborationMode) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"missing Binding projection cannot include Agent Controller Collaboration Mode\",\n\t\tpath: [\"agentControllerCollaborationMode\"]\n\t});\n\tif (value.routable) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"missing Binding projection cannot be routable\",\n\t\tpath: [\"routable\"]\n\t});\n}\nfunction validateConflictProjection(value, context) {\n\tif (value.authoritySource !== \"blocked\") context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"conflict Binding projection must be blocked\",\n\t\tpath: [\"authoritySource\"]\n\t});\n\tif (value.resolutionSource !== \"conflict_evidence\") context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"conflict Binding projection requires conflict evidence\",\n\t\tpath: [\"resolutionSource\"]\n\t});\n\tif (value.routable) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"conflict Binding projection cannot be routable\",\n\t\tpath: [\"routable\"]\n\t});\n}\nfunction validateOwnerMismatchProjection(value, context) {\n\tif (value.authoritySource !== \"blocked\") context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"owner mismatch Binding projection must be blocked\",\n\t\tpath: [\"authoritySource\"]\n\t});\n\tif (value.routable) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"owner mismatch Binding projection cannot be routable\",\n\t\tpath: [\"routable\"]\n\t});\n}\nfunction requireBindingTruthProjection(value, context) {\n\tif (value.authoritySource !== \"binding_truth\") context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Binding truth projection requires binding authority\",\n\t\tpath: [\"authoritySource\"]\n\t});\n\tif (value.resolutionSource !== \"binding_truth\") context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Binding truth projection requires binding resolution source\",\n\t\tpath: [\"resolutionSource\"]\n\t});\n\tif (!value.bindingId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Binding truth projection requires bindingId\",\n\t\tpath: [\"bindingId\"]\n\t});\n\tif (!value.executionTarget) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Binding truth projection requires Agent Controller availability\",\n\t\tpath: [\"executionTarget\"]\n\t});\n}\nfunction requireAcceptedBindingCommandProjection(binding, context) {\n\tif (binding.bindingState !== \"enabled_primary\") context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"accepted Binding command response requires enabled primary truth\",\n\t\tpath: [\"binding\", \"bindingState\"]\n\t});\n\tif (binding.authoritySource !== \"binding_truth\") context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"accepted Binding command response requires Binding authority\",\n\t\tpath: [\"binding\", \"authoritySource\"]\n\t});\n\tif (binding.resolutionSource !== \"binding_truth\") context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"accepted Binding command response requires Binding truth source\",\n\t\tpath: [\"binding\", \"resolutionSource\"]\n\t});\n\tif (!binding.bindingId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"accepted Binding command response requires bindingId\",\n\t\tpath: [\"binding\", \"bindingId\"]\n\t});\n\tif (!binding.executionTarget) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"accepted Binding command response requires Agent Controller availability\",\n\t\tpath: [\"binding\", \"executionTarget\"]\n\t});\n\tif (!(binding.routable && binding.dispatchEligibility.routable)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"accepted Binding command response requires routable Binding truth\",\n\t\tpath: [\"binding\", \"routable\"]\n\t});\n\tif (binding.dispatchEligibility.status !== \"routable\") context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"accepted Binding command response requires routable status\",\n\t\tpath: [\n\t\t\t\"binding\",\n\t\t\t\"dispatchEligibility\",\n\t\t\t\"status\"\n\t\t]\n\t});\n}\nfunction hasUnavailableBindingReadReason(reasonCodes) {\n\treturn reasonCodes.some((reasonCode) => reasonCode === \"agent_profile_binding.lookup_failed\" || reasonCode === \"agent_profile_binding.owner_mismatch\" || reasonCode === \"agent_profile_binding.profile_owner_invalid\" || reasonCode === \"agent_profile_binding.profile_owner_unavailable\" || reasonCode === \"agent_profile_binding.read_unavailable\" || reasonCode === \"agent_profile_binding.store_unavailable\");\n}\n//#endregion\nexport { agentProfileBindingAgentControllerCollaborationModeSchema, agentProfileBindingAgentControllerPermissionModeSchema, agentProfileBindingAgentControllerReportSchema, agentProfileBindingAuthoritySourceSchema, agentProfileBindingDispatchEligibilitySchema, agentProfileBindingModelSelectionSchema, agentProfileBindingOpenCodePermissionSchema, agentProfileBindingProjectionSchema, agentProfileBindingResolutionSourceSchema, agentProfileBindingRouteParamsSchema, agentProfileBindingRuntimeIdSchema, agentProfileBindingStateSchema, agentProfileBindingWriteModeSchema, agentProfileOrganizationWakeAccessEntrySchema, authorizeAgentProfileBindingForOrganizationResponseSchema, bulkAuthorizeAgentProfileBindingsForOrganizationBodySchema, bulkAuthorizeAgentProfileBindingsForOrganizationResponseSchema, bulkOrganizationBindingAuthorizationSchema, disableAgentProfilePrimaryBindingResponseSchema, ensureAgentProfilePrimaryBindingBodySchema, ensureAgentProfilePrimaryBindingResponseSchema, getAgentProfilePrimaryBindingResponseSchema, getOrganizationBindingAuthorizationPreferenceResponseSchema, listCurrentUserAgentProfileOrganizationWakeAccessResponseSchema, listOrganizationBindingAuthorizationProfilesResponseSchema, listOrganizationBindingAuthorizationsResponseSchema, notifyAgentProfileRouteCatalogChangedBodySchema, notifyAgentProfileRouteCatalogChangedResponseSchema, notifyAgentProfilesRouteCatalogChangedBodySchema, organizationBindingAuthorizationPreferenceSchema, organizationBindingAuthorizationProfileSchema, organizationBindingAuthorizationProfileStatusSchema, organizationBindingAuthorizationSchema, revokeAgentProfileBindingForOrganizationResponseSchema, saveOrganizationWakeAccessChoiceBodySchema, saveOrganizationWakeAccessChoiceResponseSchema, setOrganizationBindingAuthorizationPreferenceBodySchema, setOrganizationBindingAuthorizationPreferenceResponseSchema, updateAgentProfilePrimaryBindingAgentControllerCollaborationModeBodySchema, updateAgentProfilePrimaryBindingAgentControllerPermissionModeBodySchema, updateAgentProfilePrimaryBindingModelSelectionBodySchema, updateAgentProfilePrimaryBindingOpenCodePermissionBodySchema };\n\n//# sourceMappingURL=agent-profile-binding.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/http/prepare-readiness.ts\nconst boundedIdentifierSchema = z.string().trim().min(1).max(256);\nconst reasonCodeSchema = z.string().trim().min(1).max(256);\nconst prepareReadinessRouteParamsSchema = z.strictObject({ deviceId: boundedIdentifierSchema });\nconst getPrepareReadinessQuerySchema = z.strictObject({\n\tagentControllerRefs: z.array(z.string().trim().min(1).max(256)).optional(),\n\tlane: boundedIdentifierSchema,\n\topenMeldServiceRuntimeId: z.string().trim().min(1).max(512).optional()\n});\nconst prepareReadinessRuntimeIdSchema = z.strictObject({\n\tsource: z.literal(\"runtime_registry_authority\"),\n\tvalue: z.string().trim().min(1).max(512)\n});\nconst prepareReadinessDisplayStateSchema = z.enum([\n\t\"ready\",\n\t\"pending\",\n\t\"unavailable\",\n\t\"needs_prepare\",\n\t\"needs_repair\",\n\t\"stale\",\n\t\"unknown\"\n]);\nconst prepareReadinessRunnableCapabilitySchema = z.strictObject({\n\tagentControllerRef: z.string().trim().min(1).max(256),\n\texpiresAtMs: z.int().nonnegative(),\n\tobservedAtMs: z.int().nonnegative(),\n\treasonCodes: z.array(reasonCodeSchema),\n\tstatus: z.literal(\"ready\")\n});\nconst prepareReadinessNonRunnableCapabilitySchema = z.strictObject({\n\tagentControllerRef: z.string().trim().min(1).max(256),\n\texpiresAtMs: z.int().nonnegative().optional(),\n\tobservedAtMs: z.int().nonnegative().optional(),\n\treasonCodes: z.array(reasonCodeSchema),\n\tstatus: z.enum([\n\t\t\"disabled\",\n\t\t\"invalid\",\n\t\t\"missing\",\n\t\t\"stale\",\n\t\t\"unavailable\",\n\t\t\"unknown\"\n\t])\n});\nconst prepareReadinessProjectionSchema = z.strictObject({\n\tallRunnableCapabilitiesPrepared: z.strictObject({ status: z.enum([\n\t\t\"prepared\",\n\t\t\"not_prepared\",\n\t\t\"partial\",\n\t\t\"unknown\"\n\t]) }).optional(),\n\tprojectionStatus: prepareReadinessDisplayStateSchema,\n\treasonCodes: z.array(reasonCodeSchema),\n\tserviceReadiness: z.strictObject({ status: z.enum([\n\t\t\"running\",\n\t\t\"starting\",\n\t\t\"not_running\",\n\t\t\"not_installed\",\n\t\t\"needs_repair\",\n\t\t\"unavailable\",\n\t\t\"unknown\"\n\t]) }).optional()\n});\nconst prepareReadinessSummarySchema = z.strictObject({\n\tdisplayState: prepareReadinessDisplayStateSchema,\n\tready: z.boolean(),\n\treasonCodes: z.array(reasonCodeSchema)\n});\nconst getPrepareReadinessResponseSchema = z.strictObject({\n\tagentControllerReportsRead: z.boolean(),\n\tnonRunnableCapabilities: z.array(prepareReadinessNonRunnableCapabilitySchema),\n\tprojection: prepareReadinessProjectionSchema,\n\treason: z.enum([\n\t\t\"openmeld_service_runtime_identity_invalid\",\n\t\t\"openmeld_service_runtime_id_invalid\",\n\t\t\"openmeld_service_runtime_id_mismatch\",\n\t\t\"runtime_lookup_conflict\",\n\t\t\"runtime_missing\",\n\t\t\"runtime_not_ready\"\n\t]).optional(),\n\trunnableCapabilities: z.array(prepareReadinessRunnableCapabilitySchema),\n\topenMeldServiceRuntimeId: prepareReadinessRuntimeIdSchema.optional(),\n\tstatus: z.enum([\"not_ready\", \"ready\"]),\n\tsummary: prepareReadinessSummarySchema\n}).superRefine((value, context) => {\n\tif (value.status === \"ready\" && !value.openMeldServiceRuntimeId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"ready prepare readiness response requires authority openMeldServiceRuntimeId evidence\",\n\t\tpath: [\"openMeldServiceRuntimeId\"]\n\t});\n});\n//#endregion\nexport { getPrepareReadinessQuerySchema, getPrepareReadinessResponseSchema, prepareReadinessDisplayStateSchema, prepareReadinessNonRunnableCapabilitySchema, prepareReadinessProjectionSchema, prepareReadinessRouteParamsSchema, prepareReadinessRunnableCapabilitySchema, prepareReadinessRuntimeIdSchema, prepareReadinessSummarySchema };\n\n//# sourceMappingURL=prepare-readiness.js.map","import { agentExecutionReadinessImpactKindSchema, agentExecutionReadinessImpactSourceSchema } from \"../../agent-execution-readiness-impact-taxonomy.js\";\nimport { daemonServiceLaneSchema } from \"../daemon/service-contract.js\";\nimport { agentProfileIdSchema } from \"../protocol/profile.js\";\nimport { daemonRouteObservationSummarySchema } from \"../daemon/route-observation-summary.js\";\nimport { openMeldDaemonProviderAccessEvidenceProviderSchema } from \"../daemon/task-result.js\";\nimport { CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH } from \"../daemon/runtime-transport.js\";\nimport { agentProfileBindingProjectionSchema } from \"./agent-profile-binding.js\";\nimport { prepareReadinessRuntimeIdSchema } from \"./prepare-readiness.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/agent-execution-readiness.ts\nconst ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });\nconst trimmedNonEmptyStringSchema = z.string().trim().min(1);\nconst nullableTrimmedStringSchema = z.union([trimmedNonEmptyStringSchema, z.null()]);\nconst nullableIsoDateTimeSchema = z.union([ISO_DATE_TIME_SCHEMA, z.null()]);\nconst agentExecutionReadinessRouteParamsSchema = z.strictObject({ agentProfileId: agentProfileIdSchema });\nconst agentExecutionReadinessTargetRuntimeSchema = z.discriminatedUnion(\"kind\", [z.strictObject({ kind: z.literal(\"current_local_runtime\") }), z.strictObject({\n\tkind: z.literal(\"openmeld_service_runtime_id\"),\n\topenMeldServiceRuntimeId: prepareReadinessRuntimeIdSchema\n})]);\nconst getAgentExecutionReadinessBatchBodySchema = z.strictObject({\n\tagentProfileIds: z.array(agentProfileIdSchema).min(1).max(100),\n\ttargetRuntime: agentExecutionReadinessTargetRuntimeSchema.optional()\n});\nconst agentExecutionReadinessPrimaryActionSchema = z.enum([\n\t\"none\",\n\t\"connect_service\",\n\t\"reconnect_binding\",\n\t\"run_prepare\",\n\t\"update_service\",\n\t\"check_status\",\n\t\"fix_provider_account\"\n]);\nconst agentExecutionReadinessPrimaryActionPlanSchema = z.discriminatedUnion(\"action\", [\n\tz.strictObject({\n\t\taction: z.literal(\"none\"),\n\t\ttarget: z.null()\n\t}),\n\tz.strictObject({\n\t\taction: z.literal(\"connect_service\"),\n\t\ttarget: z.strictObject({ kind: z.literal(\"openmeld_service_connection\") })\n\t}),\n\tz.strictObject({\n\t\taction: z.literal(\"reconnect_binding\"),\n\t\ttarget: z.union([z.strictObject({ kind: z.literal(\"choose_local_agent\") }), z.strictObject({\n\t\t\tagentControllerRef: trimmedNonEmptyStringSchema,\n\t\t\tkind: z.literal(\"local_agent_connection\")\n\t\t})])\n\t}),\n\tz.strictObject({\n\t\taction: z.literal(\"run_prepare\"),\n\t\ttarget: z.strictObject({ kind: z.literal(\"current_computer\") })\n\t}),\n\tz.strictObject({\n\t\taction: z.literal(\"update_service\"),\n\t\ttarget: z.strictObject({ kind: z.literal(\"openmeld_service\") })\n\t}),\n\tz.strictObject({\n\t\taction: z.literal(\"check_status\"),\n\t\ttarget: z.strictObject({ kind: z.literal(\"status\") })\n\t}),\n\tz.strictObject({\n\t\taction: z.literal(\"fix_provider_account\"),\n\t\ttarget: z.strictObject({\n\t\t\tkind: z.literal(\"provider_account\"),\n\t\t\tprovider: openMeldDaemonProviderAccessEvidenceProviderSchema\n\t\t})\n\t})\n]);\nconst wakeRouteEvidenceSchema = daemonRouteObservationSummarySchema;\nconst wakeRouteStatusSchema = z.discriminatedUnion(\"status\", [z.strictObject({\n\tconnectionGeneration: z.int().positive(),\n\tdaemonSessionId: trimmedNonEmptyStringSchema,\n\tdeviceId: trimmedNonEmptyStringSchema,\n\tlane: daemonServiceLaneSchema,\n\tlastHeartbeatMs: z.int().nonnegative(),\n\tleaseEpoch: z.int().positive(),\n\tstatus: z.literal(\"ready\")\n}), z.strictObject({ status: z.enum([\n\t\"checking\",\n\t\"offline\",\n\t\"unavailable\"\n]) })]);\nconst agentWakeRouteRegistrationStatusSchema = z.enum([\n\t\"registered\",\n\t\"pending\",\n\t\"skipped\",\n\t\"rejected\",\n\t\"expired\",\n\t\"unavailable\"\n]);\nconst agentWakeRouteRegistrationSchema = z.strictObject({\n\tstatus: agentWakeRouteRegistrationStatusSchema,\n\treasonCode: nullableTrimmedStringSchema,\n\treportedAtMs: z.number().int().nonnegative().nullable(),\n\tdaemonSessionId: nullableTrimmedStringSchema,\n\tdeviceId: nullableTrimmedStringSchema,\n\tlane: z.union([daemonServiceLaneSchema, z.null()]),\n\tserviceVersion: nullableTrimmedStringSchema\n});\nconst agentWakeAvailabilityStatusSchema = z.enum([\n\t\"available_for_wake\",\n\t\"checking_connection\",\n\t\"offline_for_wake\",\n\t\"unavailable_for_wake\"\n]);\nconst agentWakeAvailabilityCategorySchema = z.enum([\n\t\"available\",\n\t\"checking\",\n\t\"offline\",\n\t\"unavailable\"\n]);\nconst agentWakeAvailabilityPhaseSchema = z.enum([\n\t\"available\",\n\t\"checking_route\",\n\t\"checking_runtime\",\n\t\"checking_service\",\n\t\"checking_status\",\n\t\"connect_local_agent\",\n\t\"offline\",\n\t\"provider_blocked\",\n\t\"provider_sign_in_needed\",\n\t\"service_not_connected\",\n\t\"service_update_required\",\n\t\"unavailable\"\n]);\nconst agentWakeAvailabilitySchema = z.strictObject({\n\taction: agentExecutionReadinessPrimaryActionSchema,\n\tbadgeLabel: trimmedNonEmptyStringSchema,\n\tcategory: agentWakeAvailabilityCategorySchema,\n\tisRefreshing: z.boolean(),\n\tlabel: trimmedNonEmptyStringSchema,\n\tphase: agentWakeAvailabilityPhaseSchema,\n\treasonCode: nullableTrimmedStringSchema,\n\tstatus: agentWakeAvailabilityStatusSchema,\n\tsummary: trimmedNonEmptyStringSchema,\n\ttooltip: trimmedNonEmptyStringSchema\n});\nconst agentExecutionReadinessSchema = z.strictObject({\n\tagentProfileId: agentProfileIdSchema,\n\tdisplayState: z.enum([\n\t\t\"ready\",\n\t\t\"not_ready\",\n\t\t\"blocked\",\n\t\t\"unknown\"\n\t]),\n\tfacts: z.strictObject({\n\t\tprofile: z.strictObject({\n\t\t\tactive: z.boolean(),\n\t\t\treasonCodes: z.array(trimmedNonEmptyStringSchema),\n\t\t\tsource: z.enum([\n\t\t\t\t\"not_checked\",\n\t\t\t\t\"profile_identity\",\n\t\t\t\t\"unavailable\"\n\t\t\t])\n\t\t}),\n\t\tbinding: z.strictObject({\n\t\t\treasonCodes: z.array(trimmedNonEmptyStringSchema),\n\t\t\troutable: z.boolean(),\n\t\t\tsource: z.enum([\n\t\t\t\t\"binding_truth\",\n\t\t\t\t\"blocked\",\n\t\t\t\t\"missing\",\n\t\t\t\t\"not_checked\",\n\t\t\t\t\"unavailable\"\n\t\t\t])\n\t\t}),\n\t\tclaim: z.strictObject({\n\t\t\texecutionBlocked: z.boolean(),\n\t\t\tgrantsClaimSuccess: z.literal(false),\n\t\t\treasonCodes: z.array(trimmedNonEmptyStringSchema),\n\t\t\tsource: z.enum([\"claim_diagnostics\", \"not_checked\"])\n\t\t}),\n\t\tproviderAccount: z.strictObject({\n\t\t\tblocked: z.boolean(),\n\t\t\texpiresAtMs: z.number().int().nonnegative().nullable(),\n\t\t\tobservedAtMs: z.number().int().nonnegative().nullable(),\n\t\t\tprovider: z.union([openMeldDaemonProviderAccessEvidenceProviderSchema, z.null()]),\n\t\t\treasonCodes: z.array(trimmedNonEmptyStringSchema),\n\t\t\tsource: z.enum([\"not_checked\", \"wake_failure\"])\n\t\t}),\n\t\tproviderConversation: z.strictObject({\n\t\t\tagentControllerConversationId: nullableTrimmedStringSchema,\n\t\t\terrorCode: nullableTrimmedStringSchema,\n\t\t\terrorMessage: nullableTrimmedStringSchema,\n\t\t\terrorType: nullableTrimmedStringSchema,\n\t\t\texpiresAtMs: z.number().int().nonnegative().nullable(),\n\t\t\tmethod: z.union([z.literal(\"codex_app_server_thread_resume\"), z.null()]),\n\t\t\tobservedAtMs: z.number().int().nonnegative().nullable(),\n\t\t\tprovider: z.union([z.literal(\"codex\"), z.null()]),\n\t\t\tready: z.boolean(),\n\t\t\treasonCodes: z.array(trimmedNonEmptyStringSchema),\n\t\t\trequired: z.boolean(),\n\t\t\tsource: z.enum([\n\t\t\t\t\"not_required\",\n\t\t\t\t\"runtime_reporting\",\n\t\t\t\t\"unavailable\"\n\t\t\t]),\n\t\t\tstatus: z.enum([\n\t\t\t\t\"failed\",\n\t\t\t\t\"missing\",\n\t\t\t\t\"not_required\",\n\t\t\t\t\"passed\",\n\t\t\t\t\"unavailable\"\n\t\t\t])\n\t\t}),\n\t\treadinessImpact: z.strictObject({\n\t\t\tblocked: z.boolean(),\n\t\t\texpiresAtMs: z.number().int().nonnegative().nullable(),\n\t\t\timpactKind: z.union([agentExecutionReadinessImpactKindSchema, z.null()]),\n\t\t\tobservedAtMs: z.number().int().nonnegative().nullable(),\n\t\t\treasonCodes: z.array(trimmedNonEmptyStringSchema),\n\t\t\tsource: z.union([z.literal(\"not_checked\"), agentExecutionReadinessImpactSourceSchema])\n\t\t}),\n\t\tlocalService: z.strictObject({\n\t\t\treachable: z.boolean(),\n\t\t\trefreshable: z.boolean(),\n\t\t\treasonCodes: z.array(trimmedNonEmptyStringSchema),\n\t\t\tsource: z.enum([\n\t\t\t\t\"runtime_transport\",\n\t\t\t\t\"not_checked\",\n\t\t\t\t\"unavailable\"\n\t\t\t])\n\t\t}),\n\t\tservice: z.strictObject({\n\t\t\texecutionCompatible: z.boolean(),\n\t\t\texpectedEpoch: z.literal(CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH),\n\t\t\tobservedEpoch: z.union([trimmedNonEmptyStringSchema, z.null()]),\n\t\t\treasonCodes: z.array(trimmedNonEmptyStringSchema),\n\t\t\tsource: z.enum([\n\t\t\t\t\"runtime_transport\",\n\t\t\t\t\"not_checked\",\n\t\t\t\t\"unavailable\"\n\t\t\t])\n\t\t}),\n\t\troute: z.strictObject({\n\t\t\tdeviceId: nullableTrimmedStringSchema,\n\t\t\tlane: z.union([daemonServiceLaneSchema, z.null()]),\n\t\t\tobservedAt: nullableIsoDateTimeSchema,\n\t\t\tonline: z.boolean(),\n\t\t\treasonCodes: z.array(trimmedNonEmptyStringSchema),\n\t\t\tsource: z.enum([\"daemon_route\", \"missing\"])\n\t\t}),\n\t\truntime: z.strictObject({\n\t\t\tready: z.boolean(),\n\t\t\treasonCodes: z.array(trimmedNonEmptyStringSchema),\n\t\t\tsource: z.enum([\"missing\", \"prepare_readiness\"])\n\t\t})\n\t}),\n\tprimaryAction: agentExecutionReadinessPrimaryActionSchema,\n\treasonCodes: z.array(trimmedNonEmptyStringSchema)\n});\nconst getAgentExecutionReadinessResponseSchema = z.strictObject({\n\tagentExecutionReadiness: agentExecutionReadinessSchema,\n\tagentWakeAvailability: agentWakeAvailabilitySchema,\n\tagentWakeRouteRegistration: agentWakeRouteRegistrationSchema,\n\tagentProfileId: agentProfileIdSchema,\n\tagentControllerRef: nullableTrimmedStringSchema,\n\tgeneratedAt: ISO_DATE_TIME_SCHEMA,\n\townerUserId: nullableTrimmedStringSchema,\n\tprimaryBinding: agentProfileBindingProjectionSchema.nullable().optional(),\n\tprimaryActionPlan: agentExecutionReadinessPrimaryActionPlanSchema,\n\tprofileName: nullableTrimmedStringSchema,\n\trouteDeviceId: nullableTrimmedStringSchema,\n\trouteLane: z.union([daemonServiceLaneSchema, z.null()]),\n\truntimeDeviceDisplayName: nullableTrimmedStringSchema,\n\twakeRouteEvidence: wakeRouteEvidenceSchema,\n\twakeRouteStatus: wakeRouteStatusSchema\n});\nconst getAgentExecutionReadinessBatchResponseSchema = z.strictObject({ items: z.array(getAgentExecutionReadinessResponseSchema) });\n//#endregion\nexport { agentExecutionReadinessPrimaryActionPlanSchema, agentExecutionReadinessPrimaryActionSchema, agentExecutionReadinessRouteParamsSchema, agentExecutionReadinessSchema, agentExecutionReadinessTargetRuntimeSchema, agentWakeAvailabilityCategorySchema, agentWakeAvailabilityPhaseSchema, agentWakeAvailabilitySchema, agentWakeAvailabilityStatusSchema, agentWakeRouteRegistrationSchema, agentWakeRouteRegistrationStatusSchema, getAgentExecutionReadinessBatchBodySchema, getAgentExecutionReadinessBatchResponseSchema, getAgentExecutionReadinessResponseSchema, wakeRouteEvidenceSchema, wakeRouteStatusSchema };\n\n//# sourceMappingURL=agent-execution-readiness.js.map","import { agentControllerPermissionModeSchema } from \"../agent-controller-permission-mode.js\";\nimport { agentProfileIdSchema, openMeldRuntimeProfileIdSchema, profileWorkingDirectorySchema, uuidProfileIdSchema } from \"../protocol/profile.js\";\nimport { spaceMentionLabelSchema, spaceMentionLabelSourceSchema } from \"./space-mention-label.js\";\nimport { agentProfileBindingModelSelectionSchema } from \"./agent-profile-binding.js\";\nimport { agentExecutionReadinessSchema, agentWakeAvailabilitySchema, agentWakeRouteRegistrationSchema, wakeRouteEvidenceSchema, wakeRouteStatusSchema } from \"./agent-execution-readiness.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-members.ts\nconst ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });\nconst MAX_SPACE_MEMBERS_BATCH_SIZE = 100;\nconst trimmedNonEmptyStringSchema = z.string().trim().min(1);\nconst profileIdSchema = openMeldRuntimeProfileIdSchema;\nconst nullableTrimmedStringSchema = z.union([trimmedNonEmptyStringSchema, z.null()]);\nconst nullableRuntimeProfileIdSchema = z.union([profileIdSchema, z.null()]);\nconst nullableIsoDateTimeSchema = z.union([ISO_DATE_TIME_SCHEMA, z.null()]);\nconst retiredAgentSnapshotKeys = /* @__PURE__ */ new Set([\n\t\"agentExecutionReadiness\",\n\t\"daemonRouteObservation\",\n\t\"publicReplyPresence\",\n\t\"publicPresence\",\n\t\"viewerLocalControl\",\n\t\"viewerLocalRecovery\",\n\t\"wakeState\",\n\t\"wakeability\"\n]);\nconst rejectRetiredAgentSnapshotKeysSchema = z.unknown().superRefine((value, ctx) => {\n\tif (!(value && typeof value === \"object\")) return;\n\tfor (const key of retiredAgentSnapshotKeys) {\n\t\tif (!Object.hasOwn(value, key)) continue;\n\t\tctx.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: `retired agent member field is not allowed: ${key}`,\n\t\t\tpath: [key]\n\t\t});\n\t}\n});\nfunction validateRuntimeProfileIdForMemberKind(input) {\n\tif ((input.profileKind === \"human\" ? uuidProfileIdSchema : agentProfileIdSchema).safeParse(input.profileId).success) return;\n\tinput.ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: input.profileKind === \"human\" ? \"human profileId must be a UUID\" : \"agent profileId must use agt_<UUID>\",\n\t\tpath: input.path\n\t});\n}\nconst spaceMemberKindSchema = z.enum([\"human\", \"agent\"]);\nconst spaceMemberStatusSchema = z.enum([\"active\", \"removed\"]);\nconst spaceMemberSourceSchema = z.enum([\n\t\"space_creator\",\n\t\"joined_directly\",\n\t\"added_by_member\",\n\t\"backfilled\"\n]);\nconst spaceMemberAgentExecutionReadinessSchema = agentExecutionReadinessSchema;\nconst spaceMemberAgentWakeAvailabilitySchema = agentWakeAvailabilitySchema;\nconst spaceMemberAgentOwnerWakeDiagnosticsSchema = z.object({\n\tstate: z.enum([\n\t\t\"none\",\n\t\t\"checking_wake_status\",\n\t\t\"action_required\"\n\t]),\n\tagentExecutionReadiness: spaceMemberAgentExecutionReadinessSchema,\n\tagentWakeRouteRegistration: agentWakeRouteRegistrationSchema,\n\twakeRouteEvidence: wakeRouteEvidenceSchema,\n\twakeRouteStatus: wakeRouteStatusSchema\n});\nconst baseSpaceMemberSnapshotSchema = z.object({\n\tprofileId: profileIdSchema,\n\tprofileName: trimmedNonEmptyStringSchema,\n\tprofileKind: spaceMemberKindSchema,\n\tstatus: spaceMemberStatusSchema,\n\tmemberSource: spaceMemberSourceSchema,\n\tmemberSourceLabel: trimmedNonEmptyStringSchema,\n\taddedAt: ISO_DATE_TIME_SCHEMA,\n\tremovedAt: nullableIsoDateTimeSchema,\n\tcreatedAt: ISO_DATE_TIME_SCHEMA,\n\tupdatedAt: ISO_DATE_TIME_SCHEMA,\n\taddedByProfileId: nullableRuntimeProfileIdSchema,\n\taddedByOwnerUserId: nullableTrimmedStringSchema,\n\taddedByDisplayName: nullableTrimmedStringSchema,\n\tremovedByProfileId: nullableRuntimeProfileIdSchema,\n\tremovedByOwnerUserId: nullableTrimmedStringSchema,\n\tremovalReason: nullableTrimmedStringSchema,\n\tfirstEnteredAt: nullableIsoDateTimeSchema,\n\tlastEnteredAt: nullableIsoDateTimeSchema,\n\tlastSeenAt: nullableIsoDateTimeSchema,\n\tlastSeenLabel: nullableTrimmedStringSchema,\n\tliveNow: z.boolean(),\n\tavatarUrl: nullableTrimmedStringSchema.optional()\n});\nconst spaceMemberHumanSnapshotSchema = baseSpaceMemberSnapshotSchema.extend({\n\tprofileKind: z.literal(\"human\"),\n\tmentionAlias: nullableTrimmedStringSchema,\n\townerUserId: nullableTrimmedStringSchema,\n\townerName: nullableTrimmedStringSchema\n}).superRefine((value, ctx) => {\n\tvalidateRuntimeProfileIdForMemberKind({\n\t\tprofileId: value.profileId,\n\t\tprofileKind: \"human\",\n\t\tctx,\n\t\tpath: [\"profileId\"]\n\t});\n});\nconst spaceMemberAgentSnapshotSchema = rejectRetiredAgentSnapshotKeysSchema.pipe(baseSpaceMemberSnapshotSchema.extend({\n\tprofileKind: z.literal(\"agent\"),\n\tmentionAlias: nullableTrimmedStringSchema,\n\townerUserId: nullableTrimmedStringSchema,\n\townerName: nullableTrimmedStringSchema,\n\tagentControllerRef: nullableTrimmedStringSchema,\n\tagentControllerPermissionMode: agentControllerPermissionModeSchema.optional(),\n\truntimeDeviceDisplayName: nullableTrimmedStringSchema.optional(),\n\tagentControllerConversationId: nullableTrimmedStringSchema,\n\tmodelSelection: agentProfileBindingModelSelectionSchema.optional(),\n\tworkingDirectory: profileWorkingDirectorySchema.nullable().optional(),\n\tagentWakeAvailability: spaceMemberAgentWakeAvailabilitySchema.optional(),\n\townerWakeDiagnostics: z.union([spaceMemberAgentOwnerWakeDiagnosticsSchema, z.null()]).optional()\n}).superRefine((value, ctx) => {\n\tvalidateRuntimeProfileIdForMemberKind({\n\t\tprofileId: value.profileId,\n\t\tprofileKind: \"agent\",\n\t\tctx,\n\t\tpath: [\"profileId\"]\n\t});\n}));\nconst spaceMembersSummarySchema = z.object({\n\ttotalCount: z.number().int().min(0),\n\thumanCount: z.number().int().min(0),\n\tagentCount: z.number().int().min(0),\n\tliveNowCount: z.number().int().min(0),\n\twakeableAgentCount: z.number().int().min(0).optional(),\n\tcheckingAgentCount: z.number().int().min(0).optional(),\n\tofflineAgentCount: z.number().int().min(0).optional(),\n\tunavailableAgentCount: z.number().int().min(0).optional()\n});\nconst spaceMembersSnapshotSchema = z.object({\n\tspaceId: trimmedNonEmptyStringSchema,\n\tgeneratedAt: ISO_DATE_TIME_SCHEMA,\n\tsummary: spaceMembersSummarySchema,\n\thumans: z.array(spaceMemberHumanSnapshotSchema),\n\tagents: z.array(spaceMemberAgentSnapshotSchema)\n}).superRefine((value, ctx) => {\n\tconst totalCount = value.humans.length + value.agents.length;\n\tconst liveNowCount = [...value.humans, ...value.agents].filter((item) => item.liveNow).length;\n\tconst wakeableAgentCount = value.agents.filter(isPublicWakeableAgent).length;\n\tconst checkingAgentCount = value.agents.filter(isPublicCheckingAgent).length;\n\tconst offlineAgentCount = value.agents.filter(isPublicOfflineAgent).length;\n\tconst unavailableAgentCount = value.agents.filter(isPublicUnavailableAgent).length;\n\taddSummaryMismatchIssue({\n\t\tctx,\n\t\tactual: totalCount,\n\t\texpected: value.summary.totalCount,\n\t\tpath: [\"summary\", \"totalCount\"],\n\t\tlabel: \"totalCount\"\n\t});\n\taddSummaryMismatchIssue({\n\t\tctx,\n\t\tactual: value.humans.length,\n\t\texpected: value.summary.humanCount,\n\t\tpath: [\"summary\", \"humanCount\"],\n\t\tlabel: \"humanCount\"\n\t});\n\taddSummaryMismatchIssue({\n\t\tctx,\n\t\tactual: value.agents.length,\n\t\texpected: value.summary.agentCount,\n\t\tpath: [\"summary\", \"agentCount\"],\n\t\tlabel: \"agentCount\"\n\t});\n\taddSummaryMismatchIssue({\n\t\tctx,\n\t\tactual: liveNowCount,\n\t\texpected: value.summary.liveNowCount,\n\t\tpath: [\"summary\", \"liveNowCount\"],\n\t\tlabel: \"liveNowCount\"\n\t});\n\tif (value.summary.wakeableAgentCount !== void 0) addSummaryMismatchIssue({\n\t\tctx,\n\t\tactual: wakeableAgentCount,\n\t\texpected: value.summary.wakeableAgentCount,\n\t\tpath: [\"summary\", \"wakeableAgentCount\"],\n\t\tlabel: \"wakeableAgentCount\"\n\t});\n\tif (value.summary.checkingAgentCount !== void 0) addSummaryMismatchIssue({\n\t\tctx,\n\t\tactual: checkingAgentCount,\n\t\texpected: value.summary.checkingAgentCount,\n\t\tpath: [\"summary\", \"checkingAgentCount\"],\n\t\tlabel: \"checkingAgentCount\"\n\t});\n\tif (value.summary.offlineAgentCount !== void 0) addSummaryMismatchIssue({\n\t\tctx,\n\t\tactual: offlineAgentCount,\n\t\texpected: value.summary.offlineAgentCount,\n\t\tpath: [\"summary\", \"offlineAgentCount\"],\n\t\tlabel: \"offlineAgentCount\"\n\t});\n\tif (value.summary.unavailableAgentCount !== void 0) addSummaryMismatchIssue({\n\t\tctx,\n\t\tactual: unavailableAgentCount,\n\t\texpected: value.summary.unavailableAgentCount,\n\t\tpath: [\"summary\", \"unavailableAgentCount\"],\n\t\tlabel: \"unavailableAgentCount\"\n\t});\n});\nconst spaceViewerMembershipProfileSchema = z.strictObject({\n\tprofileId: profileIdSchema,\n\tprofileKind: spaceMemberKindSchema,\n\tprofileName: trimmedNonEmptyStringSchema,\n\tlastEnteredAt: nullableIsoDateTimeSchema\n});\nconst spaceViewerMembershipResponseSchema = z.strictObject({\n\tspaceId: trimmedNonEmptyStringSchema,\n\tactiveMemberProfiles: z.array(spaceViewerMembershipProfileSchema),\n\tpreferredOpenProfileId: nullableRuntimeProfileIdSchema\n});\nconst spaceIdentityDirectoryEntrySchema = z.strictObject({\n\tprofileId: profileIdSchema,\n\tprofileName: trimmedNonEmptyStringSchema,\n\tprofileKind: spaceMemberKindSchema,\n\tmentionAlias: nullableTrimmedStringSchema,\n\townerUserId: nullableTrimmedStringSchema,\n\townerName: nullableTrimmedStringSchema,\n\tagentControllerRef: nullableTrimmedStringSchema\n}).superRefine((value, ctx) => {\n\tvalidateRuntimeProfileIdForMemberKind({\n\t\tprofileId: value.profileId,\n\t\tprofileKind: value.profileKind,\n\t\tctx,\n\t\tpath: [\"profileId\"]\n\t});\n});\nconst spaceIdentityDirectorySchema = z.strictObject({\n\tspaceId: trimmedNonEmptyStringSchema,\n\tgeneratedAt: ISO_DATE_TIME_SCHEMA,\n\tentries: z.array(spaceIdentityDirectoryEntrySchema)\n});\nconst currentSpaceMemberDirectoryAllowedRelationsSchema = z.strictObject({\n\twake: z.boolean(),\n\treference: z.boolean()\n});\nconst spaceMemberDirectoryAllowedRelationsSchema = z.preprocess((value) => {\n\tif (!(value && typeof value === \"object\") || Array.isArray(value)) return value;\n\tconst record = value;\n\tif (typeof record.cc !== \"boolean\") return value;\n\tconst { cc: _legacyCc, ...currentRelations } = record;\n\treturn currentRelations;\n}, currentSpaceMemberDirectoryAllowedRelationsSchema);\nconst spaceMemberDirectoryCardSchema = z.strictObject({\n\trole: nullableTrimmedStringSchema,\n\troleDescription: nullableTrimmedStringSchema\n});\nconst spaceMemberDirectoryEntrySchema = z.strictObject({\n\tprofileId: profileIdSchema,\n\tprofileKind: spaceMemberKindSchema,\n\tdisplayName: trimmedNonEmptyStringSchema,\n\tprimaryMentionLabel: spaceMentionLabelSchema,\n\tmentionLabels: z.array(spaceMentionLabelSchema).min(1),\n\tmentionAlias: nullableTrimmedStringSchema,\n\tlabelSource: spaceMentionLabelSourceSchema,\n\tlookupTokens: z.array(trimmedNonEmptyStringSchema).min(1),\n\tpreferredLookupToken: trimmedNonEmptyStringSchema,\n\tprofileIdShort: trimmedNonEmptyStringSchema,\n\tallowedRelations: spaceMemberDirectoryAllowedRelationsSchema,\n\townerUserId: nullableTrimmedStringSchema,\n\townerName: nullableTrimmedStringSchema,\n\tagentCard: z.union([spaceMemberDirectoryCardSchema, z.null()]),\n\tspaceRole: z.union([spaceMemberDirectoryCardSchema, z.null()])\n}).superRefine((value, ctx) => {\n\tvalidateRuntimeProfileIdForMemberKind({\n\t\tprofileId: value.profileId,\n\t\tprofileKind: value.profileKind,\n\t\tctx,\n\t\tpath: [\"profileId\"]\n\t});\n\tif (value.primaryMentionLabel && !value.mentionLabels.includes(value.primaryMentionLabel)) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"primaryMentionLabel must be included in mentionLabels\",\n\t\tpath: [\"primaryMentionLabel\"]\n\t});\n\tif (value.profileKind === \"human\" && value.allowedRelations.wake) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"human members cannot support Wake\",\n\t\tpath: [\"allowedRelations\", \"wake\"]\n\t});\n});\nconst spaceMemberDirectorySchema = z.strictObject({\n\tspaceId: trimmedNonEmptyStringSchema,\n\tgeneratedAt: ISO_DATE_TIME_SCHEMA,\n\tmembers: z.array(spaceMemberDirectoryEntrySchema)\n});\nconst postSpaceMembersBodySchema = z.strictObject({ memberProfileIds: z.array(profileIdSchema).min(1).max(MAX_SPACE_MEMBERS_BATCH_SIZE) });\nconst addCenterAgentToSpaceBodySchema = z.strictObject({ expectedCenterAgentProfileId: agentProfileIdSchema });\nconst addOrganizationDirectoryProfilesToSpaceBodySchema = z.strictObject({\n\tdirectoryProfileIds: z.array(profileIdSchema).min(1).max(MAX_SPACE_MEMBERS_BATCH_SIZE),\n\texpectedCenterAgentProfileId: agentProfileIdSchema.optional()\n}).superRefine((value, ctx) => {\n\tif (new Set(value.directoryProfileIds).size !== value.directoryProfileIds.length) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"directoryProfileIds must not contain duplicates\",\n\t\tpath: [\"directoryProfileIds\"]\n\t});\n\tif (value.expectedCenterAgentProfileId && !value.directoryProfileIds.includes(value.expectedCenterAgentProfileId)) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"expectedCenterAgentProfileId must be included in directoryProfileIds\",\n\t\tpath: [\"expectedCenterAgentProfileId\"]\n\t});\n});\nconst removeSpaceMembersBodySchema = z.strictObject({ memberProfileIds: z.array(profileIdSchema).min(1).max(MAX_SPACE_MEMBERS_BATCH_SIZE) });\nconst resolvedSpaceMemberProfileSchema = z.strictObject({\n\tprofileId: profileIdSchema,\n\tprofileName: trimmedNonEmptyStringSchema,\n\tprofileKind: spaceMemberKindSchema,\n\townerUserId: nullableTrimmedStringSchema,\n\townerName: nullableTrimmedStringSchema,\n\tagentControllerRef: nullableTrimmedStringSchema\n}).superRefine((value, ctx) => {\n\tvalidateRuntimeProfileIdForMemberKind({\n\t\tprofileId: value.profileId,\n\t\tprofileKind: value.profileKind,\n\t\tctx,\n\t\tpath: [\"profileId\"]\n\t});\n});\nconst postResolvedSpaceMembersBodySchema = z.strictObject({ members: z.array(resolvedSpaceMemberProfileSchema).min(1).max(MAX_SPACE_MEMBERS_BATCH_SIZE) });\nconst postSpaceMembersResponseSchema = z.strictObject({\n\taddedMemberIds: z.array(profileIdSchema),\n\talreadyMemberIds: z.array(profileIdSchema),\n\titems: z.array(z.union([spaceMemberHumanSnapshotSchema, spaceMemberAgentSnapshotSchema]))\n});\nconst removeSpaceMembersResponseSchema = z.strictObject({\n\tremovedMemberIds: z.array(profileIdSchema),\n\talreadyAbsentMemberIds: z.array(profileIdSchema)\n});\nconst leaveSpaceResponseSchema = z.strictObject({\n\tleftProfileId: profileIdSchema,\n\tstatus: z.enum([\"left\", \"already_absent\"])\n});\nfunction addSummaryMismatchIssue(input) {\n\tif (input.actual === input.expected) return;\n\tinput.ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: `${input.label} must match derived member counts`,\n\t\tpath: input.path\n\t});\n}\nfunction isPublicWakeableAgent(agent) {\n\treturn agent.agentWakeAvailability?.status === \"available_for_wake\";\n}\nfunction isPublicCheckingAgent(agent) {\n\treturn agent.agentWakeAvailability?.status === \"checking_connection\";\n}\nfunction isPublicOfflineAgent(agent) {\n\treturn agent.agentWakeAvailability?.status === \"offline_for_wake\";\n}\nfunction isPublicUnavailableAgent(agent) {\n\treturn agent.agentWakeAvailability?.status === \"unavailable_for_wake\";\n}\n//#endregion\nexport { addCenterAgentToSpaceBodySchema, addOrganizationDirectoryProfilesToSpaceBodySchema, leaveSpaceResponseSchema, postResolvedSpaceMembersBodySchema, postSpaceMembersBodySchema, postSpaceMembersResponseSchema, removeSpaceMembersBodySchema, removeSpaceMembersResponseSchema, resolvedSpaceMemberProfileSchema, spaceIdentityDirectoryEntrySchema, spaceIdentityDirectorySchema, spaceMemberAgentExecutionReadinessSchema, spaceMemberAgentOwnerWakeDiagnosticsSchema, spaceMemberAgentSnapshotSchema, spaceMemberAgentWakeAvailabilitySchema, spaceMemberDirectoryAllowedRelationsSchema, spaceMemberDirectoryCardSchema, spaceMemberDirectoryEntrySchema, spaceMemberDirectorySchema, spaceMemberHumanSnapshotSchema, spaceMemberKindSchema, spaceMemberSourceSchema, spaceMemberStatusSchema, spaceMembersSnapshotSchema, spaceMembersSummarySchema, spaceViewerMembershipProfileSchema, spaceViewerMembershipResponseSchema };\n\n//# sourceMappingURL=space-members.js.map","import { openMeldRequestContextSchema } from \"../daemon/profile-identity.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/projects.ts\nconst PROJECT_NAME_MAX_CHARS = 120;\nconst PROJECT_SLUG_MAX_CHARS = 80;\nconst ACTIVE_PROJECT_LIMIT = 500;\nconst boundedIdentifierSchema = z.string().trim().min(1).max(256);\nconst timestampMsSchema = z.number().int().nonnegative();\nconst repositoryFingerprintSchema = z.string().regex(/^sha256:[a-f0-9]{64}$/u);\nconst repositoryUrlSchema = z.string().trim().max(2048).refine((value) => {\n\ttry {\n\t\tconst url = new URL(value);\n\t\treturn url.protocol === \"https:\" && url.username === \"\" && url.password === \"\" && url.search === \"\" && url.hash === \"\" && url.pathname !== \"/\";\n\t} catch {\n\t\treturn false;\n\t}\n}, \"Repository URL must be a safe canonical HTTPS URL.\");\nconst projectSlugSchema = z.string().trim().min(1).max(80).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/u);\nconst projectSchema = z.strictObject({\n\tarchivedAtMs: timestampMsSchema.nullable(),\n\tcanArchive: z.boolean(),\n\tcanManage: z.boolean(),\n\tcreatedAtMs: timestampMsSchema,\n\tcreatedByUserId: boundedIdentifierSchema,\n\tid: boundedIdentifierSchema,\n\tname: z.string().trim().min(1).max(120),\n\torganizationId: boundedIdentifierSchema,\n\trepositoryFingerprint: repositoryFingerprintSchema.nullable(),\n\trepositoryUrl: repositoryUrlSchema.nullable().optional(),\n\tslug: projectSlugSchema,\n\tupdatedAtMs: timestampMsSchema\n});\nconst createProjectBodySchema = z.strictObject({\n\texpectedOrganizationId: boundedIdentifierSchema,\n\tname: z.string().trim().min(1).max(120),\n\trepositoryFingerprint: repositoryFingerprintSchema.optional(),\n\trepositoryUrl: repositoryUrlSchema.optional(),\n\tslug: projectSlugSchema.optional()\n});\nconst listProjectsQuerySchema = z.strictObject({});\nconst listProjectsResponseSchema = z.strictObject({\n\torganizationId: boundedIdentifierSchema,\n\tprojects: z.array(projectSchema).max(500)\n});\nconst createProjectResponseSchema = z.strictObject({ project: projectSchema });\nconst projectRouteParamsSchema = z.strictObject({ projectId: boundedIdentifierSchema });\nconst projectUpdateShape = {\n\tname: z.string().trim().min(1).max(120).optional(),\n\trepositoryFingerprint: repositoryFingerprintSchema.nullable().optional(),\n\trepositoryUrl: repositoryUrlSchema.nullable().optional(),\n\tslug: projectSlugSchema.optional()\n};\nconst hasProjectUpdate = (value) => value.name !== void 0 || value.repositoryFingerprint !== void 0 || value.repositoryUrl !== void 0 || value.slug !== void 0;\nconst updateProjectBodySchema = z.strictObject({\n\texpectedOrganizationId: boundedIdentifierSchema,\n\t...projectUpdateShape\n}).refine(hasProjectUpdate, \"At least one Project field must be updated.\");\nconst updateProjectResponseSchema = z.strictObject({ project: projectSchema });\nconst archiveProjectBodySchema = z.strictObject({ expectedOrganizationId: boundedIdentifierSchema });\nconst archiveProjectResponseSchema = z.strictObject({ project: projectSchema });\nconst projectRpcContextShape = { context: openMeldRequestContextSchema.optional() };\nconst listProjectsRpcInputSchema = z.strictObject({ ...projectRpcContextShape });\nconst createProjectRpcInputSchema = z.strictObject({\n\t...projectRpcContextShape,\n\t...createProjectBodySchema.shape\n});\nconst updateProjectRpcInputSchema = z.strictObject({\n\t...projectRpcContextShape,\n\texpectedOrganizationId: boundedIdentifierSchema,\n\t...projectRouteParamsSchema.shape,\n\t...projectUpdateShape\n}).refine(hasProjectUpdate, \"At least one Project field must be updated.\");\nconst archiveProjectRpcInputSchema = z.strictObject({\n\t...projectRpcContextShape,\n\t...archiveProjectBodySchema.shape,\n\t...projectRouteParamsSchema.shape\n});\n//#endregion\nexport { ACTIVE_PROJECT_LIMIT, PROJECT_NAME_MAX_CHARS, PROJECT_SLUG_MAX_CHARS, archiveProjectBodySchema, archiveProjectResponseSchema, archiveProjectRpcInputSchema, createProjectBodySchema, createProjectResponseSchema, createProjectRpcInputSchema, listProjectsQuerySchema, listProjectsResponseSchema, listProjectsRpcInputSchema, projectRouteParamsSchema, projectSchema, projectSlugSchema, repositoryFingerprintSchema, repositoryUrlSchema, updateProjectBodySchema, updateProjectResponseSchema, updateProjectRpcInputSchema };\n\n//# sourceMappingURL=projects.js.map","import { daemonServiceLaneSchema } from \"./service-contract.js\";\nimport { openMeldRequestContextSchema } from \"./profile-identity.js\";\nimport { localFolderPathSchema } from \"./local-folder-path.js\";\nimport { projectSlugSchema, repositoryFingerprintSchema } from \"../http/projects.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/daemon/local-project-control.ts\nconst boundedIdentifierSchema = z.string().trim().min(1).max(512);\nconst clientGenerationSchema = z.number().int().nonnegative();\nconst localProjectControlAbsolutePathSchema = localFolderPathSchema;\nconst localProjectControlGitStatusSchema = z.enum([\n\t\"available\",\n\t\"not_installed\",\n\t\"command_line_tools_missing\",\n\t\"timed_out\",\n\t\"unavailable\"\n]);\nconst localProjectControlCandidateSchema = z.strictObject({\n\tcandidateId: boundedIdentifierSchema,\n\tcanonicalPath: localProjectControlAbsolutePathSchema,\n\tcandidateKind: z.enum([\"repository\", \"worktree\"]),\n\trepositoryFingerprint: repositoryFingerprintSchema\n});\nconst localProjectControlConnectionSchema = z.strictObject({\n\tbindingGeneration: boundedIdentifierSchema,\n\tpath: localProjectControlAbsolutePathSchema,\n\tisDefault: z.boolean(),\n\tstatus: z.enum([\"available\", \"missing\"])\n});\nconst localProjectControlDiscoveryBaseShape = {\n\tcandidates: z.array(localProjectControlCandidateSchema),\n\tconnections: z.array(localProjectControlConnectionSchema),\n\tprojectId: boundedIdentifierSchema\n};\nconst localProjectControlProjectDiscoverySchema = z.discriminatedUnion(\"status\", [\n\tz.strictObject({\n\t\t...localProjectControlDiscoveryBaseShape,\n\t\tconnections: z.array(localProjectControlConnectionSchema).min(1),\n\t\tstatus: z.literal(\"connected\")\n\t}),\n\tz.strictObject({\n\t\t...localProjectControlDiscoveryBaseShape,\n\t\tconnections: z.array(localProjectControlConnectionSchema).min(1),\n\t\tstatus: z.literal(\"connected_folder_missing\")\n\t}),\n\tz.strictObject({\n\t\t...localProjectControlDiscoveryBaseShape,\n\t\tcandidates: z.array(localProjectControlCandidateSchema).min(1),\n\t\tconnections: z.array(localProjectControlConnectionSchema).max(0),\n\t\tstatus: z.literal(\"found\")\n\t}),\n\tz.strictObject({\n\t\t...localProjectControlDiscoveryBaseShape,\n\t\tcandidates: z.array(localProjectControlCandidateSchema).max(0),\n\t\tconnections: z.array(localProjectControlConnectionSchema).max(0),\n\t\tstatus: z.literal(\"not_found\")\n\t}),\n\tz.strictObject({\n\t\t...localProjectControlDiscoveryBaseShape,\n\t\tcandidates: z.array(localProjectControlCandidateSchema).max(0),\n\t\tconnections: z.array(localProjectControlConnectionSchema).max(0),\n\t\tstatus: z.literal(\"verification_unavailable\")\n\t})\n]).superRefine((project, context) => {\n\tif (project.status !== \"connected\" && project.status !== \"connected_folder_missing\") return;\n\tconst defaults = project.connections.filter((connection) => connection.isDefault);\n\tif (defaults.length !== 1) {\n\t\tcontext.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"A connected Project must have exactly one default connection.\",\n\t\t\tpath: [\"connections\"]\n\t\t});\n\t\treturn;\n\t}\n\tconst expectedDefaultStatus = project.status === \"connected\" ? \"available\" : \"missing\";\n\tif (defaults[0]?.status !== expectedDefaultStatus) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: `The default connection must be ${expectedDefaultStatus} for ${project.status}.`,\n\t\tpath: [\"connections\"]\n\t});\n});\nconst localProjectControlDiscoverProjectsRequestSchema = z.strictObject({\n\texpectedOrganizationId: boundedIdentifierSchema,\n\tclientGeneration: clientGenerationSchema,\n\tprojectIds: z.array(boundedIdentifierSchema).min(1).max(500).optional()\n});\nconst localProjectControlCanonicalProjectSchema = z.strictObject({\n\tprojectId: boundedIdentifierSchema,\n\trepositoryFingerprint: repositoryFingerprintSchema.nullable()\n});\nconst localProjectControlDiscoverProjectsDaemonRequestSchema = z.strictObject({\n\texpectedOrganizationId: boundedIdentifierSchema,\n\tclientGeneration: clientGenerationSchema,\n\tprojects: z.array(localProjectControlCanonicalProjectSchema).max(500)\n});\nconst localProjectControlDiscoverProjectsResponseSchema = z.strictObject({\n\trequestId: boundedIdentifierSchema,\n\tclientGeneration: clientGenerationSchema,\n\tdeviceId: boundedIdentifierSchema,\n\tcheckedAtMs: z.number().int().nonnegative(),\n\tgitStatus: localProjectControlGitStatusSchema,\n\tprojects: z.array(localProjectControlProjectDiscoverySchema).max(500)\n});\nconst localProjectControlConnectBaseShape = {\n\texpectedOrganizationId: boundedIdentifierSchema,\n\tprojectId: boundedIdentifierSchema,\n\tclientGeneration: clientGenerationSchema,\n\tidempotencyKey: boundedIdentifierSchema,\n\tmoveConfirmationToken: boundedIdentifierSchema.optional()\n};\nconst localProjectControlConnectCandidateRequestSchema = z.strictObject({\n\t...localProjectControlConnectBaseShape,\n\tcandidateId: boundedIdentifierSchema,\n\tcandidatePath: localProjectControlAbsolutePathSchema\n});\nconst localProjectControlConnectDeclaredPathRequestSchema = z.strictObject({\n\t...localProjectControlConnectBaseShape,\n\tconfirmNonGit: z.boolean().optional(),\n\tdeclaredPath: localProjectControlAbsolutePathSchema\n});\nconst localProjectControlCanonicalConnectShape = {\n\tprojectSlug: projectSlugSchema,\n\trepositoryFingerprint: repositoryFingerprintSchema.nullable()\n};\nconst localProjectControlConnectCandidateDaemonRequestSchema = z.strictObject({\n\t...localProjectControlConnectBaseShape,\n\t...localProjectControlCanonicalConnectShape,\n\tcandidateId: boundedIdentifierSchema,\n\tcandidatePath: localProjectControlAbsolutePathSchema\n});\nconst localProjectControlConnectDeclaredPathDaemonRequestSchema = z.strictObject({\n\t...localProjectControlConnectBaseShape,\n\t...localProjectControlCanonicalConnectShape,\n\tconfirmNonGit: z.boolean().optional(),\n\tdeclaredPath: localProjectControlAbsolutePathSchema\n});\nconst localProjectControlConnectResponseSchema = z.strictObject({\n\tstatus: z.enum([\"connected\", \"unchanged\"]),\n\tbindingGeneration: boundedIdentifierSchema,\n\tisDefault: z.boolean(),\n\tcanonicalPath: localProjectControlAbsolutePathSchema\n});\nconst localProjectControlExpectedBindingGenerationSchema = boundedIdentifierSchema;\nconst localProjectControlMutationBaseShape = {\n\texpectedOrganizationId: boundedIdentifierSchema,\n\tprojectId: boundedIdentifierSchema,\n\tclientGeneration: clientGenerationSchema,\n\tidempotencyKey: boundedIdentifierSchema\n};\nconst localProjectControlSetDefaultConnectionRequestSchema = z.strictObject({\n\t...localProjectControlMutationBaseShape,\n\ttargetBindingGeneration: boundedIdentifierSchema\n});\nconst localProjectControlSetDefaultConnectionResponseSchema = z.strictObject({\n\tstatus: z.enum([\"updated\", \"unchanged\"]),\n\tconnections: z.array(localProjectControlConnectionSchema)\n});\nconst localProjectControlRemoveConnectionRequestSchema = z.strictObject({\n\t...localProjectControlMutationBaseShape,\n\tbindingGeneration: boundedIdentifierSchema,\n\treplacementBindingGeneration: boundedIdentifierSchema.optional()\n});\nconst localProjectControlRemoveConnectionResponseSchema = z.strictObject({\n\tstatus: z.enum([\"removed\", \"unchanged\"]),\n\tconnections: z.array(localProjectControlConnectionSchema)\n});\nconst localProjectControlRemoveMissingConnectionsRequestSchema = z.strictObject(localProjectControlMutationBaseShape);\nconst localProjectControlRemoveMissingConnectionsResponseSchema = z.strictObject({\n\tremovedCount: z.number().int().nonnegative(),\n\tconnections: z.array(localProjectControlConnectionSchema)\n});\nconst localProjectControlDiscoverProjectsRpcInputSchema = localProjectControlDiscoverProjectsRequestSchema.extend({ context: openMeldRequestContextSchema });\nconst localProjectControlConnectCandidateRpcInputSchema = localProjectControlConnectCandidateRequestSchema.extend({ context: openMeldRequestContextSchema });\nconst localProjectControlConnectDeclaredPathRpcInputSchema = localProjectControlConnectDeclaredPathRequestSchema.extend({ context: openMeldRequestContextSchema });\nconst localProjectControlSetDefaultConnectionRpcInputSchema = localProjectControlSetDefaultConnectionRequestSchema.extend({ context: openMeldRequestContextSchema });\nconst localProjectControlRemoveConnectionRpcInputSchema = localProjectControlRemoveConnectionRequestSchema.extend({ context: openMeldRequestContextSchema });\nconst localProjectControlRemoveMissingConnectionsRpcInputSchema = localProjectControlRemoveMissingConnectionsRequestSchema.extend({ context: openMeldRequestContextSchema });\nconst localProjectControlErrorCodeSchema = z.enum([\n\t\"invalid_request\",\n\t\"invalid_response\",\n\t\"path_not_found\",\n\t\"path_not_directory\",\n\t\"path_unreadable\",\n\t\"path_conflict\",\n\t\"fingerprint_mismatch\",\n\t\"git_repository_required\",\n\t\"needs_confirmation\",\n\t\"git_unavailable\",\n\t\"command_line_tools_missing\",\n\t\"candidate_unavailable\",\n\t\"binding_not_found\",\n\t\"binding_generation_stale\",\n\t\"replacement_required\",\n\t\"replacement_invalid\",\n\t\"default_missing_requires_replacement\",\n\t\"service_offline\",\n\t\"service_update_required\",\n\t\"timeout\",\n\t\"unsupported\",\n\t\"internal_error\"\n]);\nconst localProjectControlNonConflictErrorCodeSchema = localProjectControlErrorCodeSchema.exclude([\"path_conflict\"]);\nconst localProjectControlPathConflictResponseSchema = z.strictObject({\n\tstatus: z.literal(\"rejected\"),\n\tcode: z.literal(\"path_conflict\"),\n\tmessage: z.string().trim().min(1).max(1024),\n\tconflictingProjectSlug: projectSlugSchema,\n\tconflictScope: z.enum([\"same_organization\", \"another_organization\"]),\n\tmoveConfirmationToken: boundedIdentifierSchema,\n\tmoveImpact: z.enum([\n\t\t\"additional_connection\",\n\t\t\"default_connection\",\n\t\t\"only_connection\"\n\t])\n});\nconst localProjectControlLegacyPathConflictResponseSchema = z.strictObject({\n\tstatus: z.literal(\"rejected\"),\n\tcode: z.literal(\"path_conflict\"),\n\tmessage: z.string().trim().min(1).max(1024),\n\tconflictingProjectSlug: projectSlugSchema\n});\nconst localProjectControlErrorResponseSchema = z.union([\n\tlocalProjectControlPathConflictResponseSchema,\n\tlocalProjectControlLegacyPathConflictResponseSchema,\n\tz.strictObject({\n\t\tstatus: z.literal(\"rejected\"),\n\t\tcode: localProjectControlNonConflictErrorCodeSchema,\n\t\tmessage: z.string().trim().min(1).max(1024)\n\t})\n]);\nconst localProjectControlDiscoverProjectsResultSchema = z.union([localProjectControlDiscoverProjectsResponseSchema, localProjectControlErrorResponseSchema]);\nconst localProjectControlConnectResultSchema = z.union([localProjectControlConnectResponseSchema, localProjectControlErrorResponseSchema]);\nconst localProjectControlConnectOutcomeSchema = z.union([localProjectControlConnectResponseSchema, localProjectControlPathConflictResponseSchema]);\nconst localProjectControlSetDefaultConnectionResultSchema = z.union([localProjectControlSetDefaultConnectionResponseSchema, localProjectControlErrorResponseSchema]);\nconst localProjectControlRemoveConnectionResultSchema = z.union([localProjectControlRemoveConnectionResponseSchema, localProjectControlErrorResponseSchema]);\nconst localProjectControlRemoveMissingConnectionsResultSchema = z.union([localProjectControlRemoveMissingConnectionsResponseSchema, localProjectControlErrorResponseSchema]);\nconst LOCAL_PROJECT_CONTROL_FRAME_VERSION = 1;\nfunction defineRequestFrame(code, request) {\n\treturn z.strictObject({\n\t\tv: z.literal(LOCAL_PROJECT_CONTROL_FRAME_VERSION),\n\t\tcode: z.literal(code),\n\t\tpayload: z.strictObject({\n\t\t\trequestId: boundedIdentifierSchema,\n\t\t\trequest\n\t\t})\n\t});\n}\nfunction defineResultFrame(code, result) {\n\treturn z.strictObject({\n\t\tv: z.literal(LOCAL_PROJECT_CONTROL_FRAME_VERSION),\n\t\tcode: z.literal(code),\n\t\tpayload: z.strictObject({\n\t\t\trequestId: boundedIdentifierSchema,\n\t\t\tresult\n\t\t})\n\t});\n}\nconst localProjectControlDiscoverProjectsRequestFrameSchema = defineRequestFrame(\"daemon.local_project_control.discover_projects\", localProjectControlDiscoverProjectsDaemonRequestSchema);\nconst localProjectControlDiscoverProjectsResultFrameSchema = defineResultFrame(\"daemon.local_project_control.discover_projects_result\", localProjectControlDiscoverProjectsResultSchema);\nconst localProjectControlConnectCandidateRequestFrameSchema = defineRequestFrame(\"daemon.local_project_control.connect_candidate\", localProjectControlConnectCandidateDaemonRequestSchema);\nconst localProjectControlConnectCandidateResultFrameSchema = defineResultFrame(\"daemon.local_project_control.connect_candidate_result\", localProjectControlConnectResultSchema);\nconst localProjectControlConnectDeclaredPathRequestFrameSchema = defineRequestFrame(\"daemon.local_project_control.connect_declared_path\", localProjectControlConnectDeclaredPathDaemonRequestSchema);\nconst localProjectControlConnectDeclaredPathResultFrameSchema = defineResultFrame(\"daemon.local_project_control.connect_declared_path_result\", localProjectControlConnectResultSchema);\nconst localProjectControlSetDefaultConnectionRequestFrameSchema = defineRequestFrame(\"daemon.local_project_control.set_default_connection\", localProjectControlSetDefaultConnectionRequestSchema);\nconst localProjectControlSetDefaultConnectionResultFrameSchema = defineResultFrame(\"daemon.local_project_control.set_default_connection_result\", localProjectControlSetDefaultConnectionResultSchema);\nconst localProjectControlRemoveConnectionRequestFrameSchema = defineRequestFrame(\"daemon.local_project_control.remove_connection\", localProjectControlRemoveConnectionRequestSchema);\nconst localProjectControlRemoveConnectionResultFrameSchema = defineResultFrame(\"daemon.local_project_control.remove_connection_result\", localProjectControlRemoveConnectionResultSchema);\nconst localProjectControlRemoveMissingConnectionsRequestFrameSchema = defineRequestFrame(\"daemon.local_project_control.remove_missing_connections\", localProjectControlRemoveMissingConnectionsRequestSchema);\nconst localProjectControlRemoveMissingConnectionsResultFrameSchema = defineResultFrame(\"daemon.local_project_control.remove_missing_connections_result\", localProjectControlRemoveMissingConnectionsResultSchema);\nconst localProjectControlDaemonFrameSchema = z.discriminatedUnion(\"code\", [\n\tlocalProjectControlDiscoverProjectsRequestFrameSchema,\n\tlocalProjectControlDiscoverProjectsResultFrameSchema,\n\tlocalProjectControlConnectCandidateRequestFrameSchema,\n\tlocalProjectControlConnectCandidateResultFrameSchema,\n\tlocalProjectControlConnectDeclaredPathRequestFrameSchema,\n\tlocalProjectControlConnectDeclaredPathResultFrameSchema,\n\tlocalProjectControlSetDefaultConnectionRequestFrameSchema,\n\tlocalProjectControlSetDefaultConnectionResultFrameSchema,\n\tlocalProjectControlRemoveConnectionRequestFrameSchema,\n\tlocalProjectControlRemoveConnectionResultFrameSchema,\n\tlocalProjectControlRemoveMissingConnectionsRequestFrameSchema,\n\tlocalProjectControlRemoveMissingConnectionsResultFrameSchema\n]);\nconst runtimeTransportLocalProjectControlTargetShape = {\n\tv: z.literal(LOCAL_PROJECT_CONTROL_FRAME_VERSION),\n\townerUserId: boundedIdentifierSchema,\n\tdeviceId: boundedIdentifierSchema,\n\tlane: daemonServiceLaneSchema,\n\trequestId: boundedIdentifierSchema\n};\nconst runtimeTransportLocalProjectControlDiscoverProjectsRequestSchema = z.strictObject({\n\t...runtimeTransportLocalProjectControlTargetShape,\n\trequest: localProjectControlDiscoverProjectsDaemonRequestSchema\n});\nconst runtimeTransportLocalProjectControlConnectCandidateRequestSchema = z.strictObject({\n\t...runtimeTransportLocalProjectControlTargetShape,\n\trequest: localProjectControlConnectCandidateDaemonRequestSchema\n});\nconst runtimeTransportLocalProjectControlConnectDeclaredPathRequestSchema = z.strictObject({\n\t...runtimeTransportLocalProjectControlTargetShape,\n\trequest: localProjectControlConnectDeclaredPathDaemonRequestSchema\n});\nconst runtimeTransportLocalProjectControlSetDefaultConnectionRequestSchema = z.strictObject({\n\t...runtimeTransportLocalProjectControlTargetShape,\n\trequest: localProjectControlSetDefaultConnectionRequestSchema\n});\nconst runtimeTransportLocalProjectControlRemoveConnectionRequestSchema = z.strictObject({\n\t...runtimeTransportLocalProjectControlTargetShape,\n\trequest: localProjectControlRemoveConnectionRequestSchema\n});\nconst runtimeTransportLocalProjectControlRemoveMissingConnectionsRequestSchema = z.strictObject({\n\t...runtimeTransportLocalProjectControlTargetShape,\n\trequest: localProjectControlRemoveMissingConnectionsRequestSchema\n});\n//#endregion\nexport { localProjectControlCandidateSchema, localProjectControlCanonicalProjectSchema, localProjectControlConnectCandidateDaemonRequestSchema, localProjectControlConnectCandidateRequestFrameSchema, localProjectControlConnectCandidateRequestSchema, localProjectControlConnectCandidateResultFrameSchema, localProjectControlConnectCandidateRpcInputSchema, localProjectControlConnectDeclaredPathDaemonRequestSchema, localProjectControlConnectDeclaredPathRequestFrameSchema, localProjectControlConnectDeclaredPathRequestSchema, localProjectControlConnectDeclaredPathResultFrameSchema, localProjectControlConnectDeclaredPathRpcInputSchema, localProjectControlConnectOutcomeSchema, localProjectControlConnectResponseSchema, localProjectControlConnectResultSchema, localProjectControlConnectionSchema, localProjectControlDaemonFrameSchema, localProjectControlDiscoverProjectsDaemonRequestSchema, localProjectControlDiscoverProjectsRequestFrameSchema, localProjectControlDiscoverProjectsRequestSchema, localProjectControlDiscoverProjectsResponseSchema, localProjectControlDiscoverProjectsResultFrameSchema, localProjectControlDiscoverProjectsResultSchema, localProjectControlDiscoverProjectsRpcInputSchema, localProjectControlErrorCodeSchema, localProjectControlErrorResponseSchema, localProjectControlExpectedBindingGenerationSchema, localProjectControlGitStatusSchema, localProjectControlPathConflictResponseSchema, localProjectControlProjectDiscoverySchema, localProjectControlRemoveConnectionRequestFrameSchema, localProjectControlRemoveConnectionRequestSchema, localProjectControlRemoveConnectionResponseSchema, localProjectControlRemoveConnectionResultFrameSchema, localProjectControlRemoveConnectionResultSchema, localProjectControlRemoveConnectionRpcInputSchema, localProjectControlRemoveMissingConnectionsRequestFrameSchema, localProjectControlRemoveMissingConnectionsRequestSchema, localProjectControlRemoveMissingConnectionsResponseSchema, localProjectControlRemoveMissingConnectionsResultFrameSchema, localProjectControlRemoveMissingConnectionsResultSchema, localProjectControlRemoveMissingConnectionsRpcInputSchema, localProjectControlSetDefaultConnectionRequestFrameSchema, localProjectControlSetDefaultConnectionRequestSchema, localProjectControlSetDefaultConnectionResponseSchema, localProjectControlSetDefaultConnectionResultFrameSchema, localProjectControlSetDefaultConnectionResultSchema, localProjectControlSetDefaultConnectionRpcInputSchema, runtimeTransportLocalProjectControlConnectCandidateRequestSchema, runtimeTransportLocalProjectControlConnectDeclaredPathRequestSchema, runtimeTransportLocalProjectControlDiscoverProjectsRequestSchema, runtimeTransportLocalProjectControlRemoveConnectionRequestSchema, runtimeTransportLocalProjectControlRemoveMissingConnectionsRequestSchema, runtimeTransportLocalProjectControlSetDefaultConnectionRequestSchema };\n\n//# sourceMappingURL=local-project-control.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/runtime/message-channel.ts\nconst MESSAGE_CHANNEL_PROVIDERS = [\n\t\"slack\",\n\t\"lark\",\n\t\"feishu\"\n];\nconst MESSAGE_CHANNEL_TRANSPORTS = [\"webhook\", \"websocket\"];\nconst MESSAGE_CHANNEL_EVENT_KINDS = [\n\t\"message\",\n\t\"card_action\",\n\t\"bot_added\",\n\t\"reaction\",\n\t\"document_comment\"\n];\nconst MESSAGE_CHANNEL_RESOURCE_TYPES = [\n\t\"image\",\n\t\"file\",\n\t\"audio\",\n\t\"video\",\n\t\"sticker\"\n];\nconst MESSAGE_CHANNEL_MENTION_TYPES = [\n\t\"direct_message\",\n\t\"group_mention\",\n\t\"group_message\",\n\t\"none\"\n];\nconst MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS = 4e3;\nconst MESSAGE_CHANNEL_MAX_RESOURCES = 10;\nconst nonEmptyStringSchema = z.string().trim().min(1);\nconst providerIdSchema = nonEmptyStringSchema.max(512);\nconst timestampMsSchema = z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);\nconst messageChannelProviderSchema = z.enum(MESSAGE_CHANNEL_PROVIDERS);\nconst messageChannelParticipantIdentitySchema = z.strictObject({\n\tconnectionId: providerIdSchema,\n\tprovider: messageChannelProviderSchema,\n\tproviderUserEmail: z.email().max(320).optional(),\n\tproviderUserId: providerIdSchema\n});\nconst messageChannelTransportSchema = z.enum(MESSAGE_CHANNEL_TRANSPORTS);\nconst messageChannelEventKindSchema = z.enum(MESSAGE_CHANNEL_EVENT_KINDS);\nconst messageChannelResourceTypeSchema = z.enum(MESSAGE_CHANNEL_RESOURCE_TYPES);\nconst messageChannelMentionTypeSchema = z.enum(MESSAGE_CHANNEL_MENTION_TYPES);\nconst slackMessageChannelConversationLocatorSchema = z.strictObject({\n\tprovider: z.literal(\"slack\"),\n\tconnectionId: providerIdSchema,\n\tteamId: providerIdSchema,\n\tchannelId: providerIdSchema,\n\trootMessageId: providerIdSchema\n});\nconst createLarkPlatformConversationLocatorSchema = (provider) => z.strictObject({\n\tprovider: z.literal(provider),\n\tconnectionId: providerIdSchema,\n\tappId: providerIdSchema,\n\ttenantKey: providerIdSchema.nullable(),\n\tchatId: providerIdSchema,\n\trootMessageId: providerIdSchema,\n\tthreadId: providerIdSchema.nullable()\n});\nconst messageChannelConversationLocatorSchema = z.discriminatedUnion(\"provider\", [\n\tslackMessageChannelConversationLocatorSchema,\n\tcreateLarkPlatformConversationLocatorSchema(\"lark\"),\n\tcreateLarkPlatformConversationLocatorSchema(\"feishu\")\n]);\nconst messageChannelResourceDescriptorSchema = z.strictObject({\n\ttype: messageChannelResourceTypeSchema,\n\tfileKey: providerIdSchema,\n\tfileName: nonEmptyStringSchema.max(512).nullable(),\n\tmimeType: nonEmptyStringSchema.max(256).nullable(),\n\tsizeBytes: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER).nullable()\n});\nconst messageChannelConversationEventShape = { locator: messageChannelConversationLocatorSchema };\nconst normalizedMessageChannelMessageEventSchema = z.strictObject({\n\tkind: z.literal(\"message\"),\n\tmessageId: providerIdSchema,\n\tsentAtMs: timestampMsSchema,\n\tsenderId: providerIdSchema,\n\tsenderDisplayName: nonEmptyStringSchema.max(256).optional(),\n\tsenderTenantKey: providerIdSchema.optional(),\n\t...messageChannelConversationEventShape,\n\ttext: nonEmptyStringSchema.max(MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS),\n\tmention: messageChannelMentionTypeSchema,\n\tresources: z.array(messageChannelResourceDescriptorSchema).max(10)\n});\nconst normalizedMessageChannelCardActionEventSchema = z.strictObject({\n\tkind: z.literal(\"card_action\"),\n\tactionId: providerIdSchema,\n\toccurredAtMs: timestampMsSchema,\n\tsenderId: providerIdSchema,\n\t...messageChannelConversationEventShape,\n\tactionName: nonEmptyStringSchema.max(128),\n\tactionValue: nonEmptyStringSchema.max(2e3).nullable()\n});\nconst normalizedMessageChannelBotAddedEventSchema = z.strictObject({\n\tkind: z.literal(\"bot_added\"),\n\tchatId: providerIdSchema,\n\toccurredAtMs: timestampMsSchema,\n\taddedById: providerIdSchema.nullable()\n});\nconst normalizedMessageChannelReactionEventSchema = z.strictObject({\n\tkind: z.literal(\"reaction\"),\n\tmessageId: providerIdSchema,\n\toccurredAtMs: timestampMsSchema,\n\tsenderId: providerIdSchema,\n\t...messageChannelConversationEventShape,\n\treaction: nonEmptyStringSchema.max(128),\n\toperation: z.enum([\"add\", \"remove\"])\n});\nconst normalizedMessageChannelDocumentCommentEventSchema = z.strictObject({\n\tkind: z.literal(\"document_comment\"),\n\tcommentId: providerIdSchema,\n\tdocumentToken: providerIdSchema,\n\toccurredAtMs: timestampMsSchema,\n\tsenderId: providerIdSchema,\n\t...messageChannelConversationEventShape,\n\ttext: nonEmptyStringSchema.max(MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS)\n});\nconst normalizedMessageChannelEventSchema = z.discriminatedUnion(\"kind\", [\n\tnormalizedMessageChannelMessageEventSchema,\n\tnormalizedMessageChannelCardActionEventSchema,\n\tnormalizedMessageChannelBotAddedEventSchema,\n\tnormalizedMessageChannelReactionEventSchema,\n\tnormalizedMessageChannelDocumentCommentEventSchema\n]);\nconst messageChannelIngressEnvelopeSchema = z.strictObject({\n\tv: z.literal(1),\n\tkind: z.literal(\"remote_agent_message_channel_event\"),\n\tprovider: messageChannelProviderSchema,\n\tconnectionId: providerIdSchema,\n\tproviderEventId: providerIdSchema,\n\treceivedAtMs: timestampMsSchema,\n\tgatewayRequestId: providerIdSchema,\n\tevent: normalizedMessageChannelEventSchema\n}).superRefine((envelope, context) => {\n\tif (!(\"locator\" in envelope.event)) return;\n\tif (envelope.event.locator.provider !== envelope.provider) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Ingress provider must match the conversation locator.\",\n\t\tpath: [\n\t\t\t\"event\",\n\t\t\t\"locator\",\n\t\t\t\"provider\"\n\t\t]\n\t});\n\tif (envelope.event.locator.connectionId !== envelope.connectionId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Ingress connection must match the conversation locator.\",\n\t\tpath: [\n\t\t\t\"event\",\n\t\t\t\"locator\",\n\t\t\t\"connectionId\"\n\t\t]\n\t});\n});\nfunction buildMessageChannelConversationId(locator) {\n\tif (locator.provider === \"slack\") return [\n\t\tlocator.provider,\n\t\tlocator.connectionId,\n\t\tlocator.channelId,\n\t\tlocator.rootMessageId\n\t].map(encodeConversationIdPart).join(\":\");\n\treturn [\n\t\tlocator.provider,\n\t\tlocator.connectionId,\n\t\tlocator.chatId,\n\t\tlocator.rootMessageId\n\t].map(encodeConversationIdPart).join(\":\");\n}\nfunction encodeConversationIdPart(value) {\n\treturn encodeURIComponent(value);\n}\n//#endregion\nexport { MESSAGE_CHANNEL_EVENT_KINDS, MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS, MESSAGE_CHANNEL_MAX_RESOURCES, MESSAGE_CHANNEL_MENTION_TYPES, MESSAGE_CHANNEL_PROVIDERS, MESSAGE_CHANNEL_RESOURCE_TYPES, MESSAGE_CHANNEL_TRANSPORTS, buildMessageChannelConversationId, messageChannelConversationLocatorSchema, messageChannelEventKindSchema, messageChannelIngressEnvelopeSchema, messageChannelMentionTypeSchema, messageChannelParticipantIdentitySchema, messageChannelProviderSchema, messageChannelResourceDescriptorSchema, messageChannelResourceTypeSchema, messageChannelTransportSchema, normalizedMessageChannelBotAddedEventSchema, normalizedMessageChannelCardActionEventSchema, normalizedMessageChannelDocumentCommentEventSchema, normalizedMessageChannelEventSchema, normalizedMessageChannelMessageEventSchema, normalizedMessageChannelReactionEventSchema };\n\n//# sourceMappingURL=message-channel.js.map","import { openMeldRequestContextSchema } from \"../daemon/profile-identity.js\";\nimport { messageChannelParticipantIdentitySchema } from \"../runtime/message-channel.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/center-agent-speaker.ts\nconst CENTER_AGENT_ANONYMOUS_MEMBER_TOOL_NAMES = [\n\t\"web_search\",\n\t\"web_fetch\",\n\t\"browser_read_page\",\n\t\"browser_get_links\",\n\t\"browser_extract\",\n\t\"browser_scrape\",\n\t\"browser_screenshot\",\n\t\"openmeld_require_identity_for_action\",\n\t\"openmeld_get_navigation_action\",\n\t\"openmeld_read_organization_directory\",\n\t\"openmeld_read_member_openmeld_service_status\",\n\t\"openmeld_read_org_documents\",\n\t\"openmeld_read_organization_skills\",\n\t\"openmeld_list_spaces\",\n\t\"openmeld_list_projects\",\n\t\"openmeld_read_agent_activity\",\n\t\"openmeld_list_connected_apps\",\n\t\"openmeld_list_app_actions\",\n\t\"openmeld_execute_app_action\",\n\t\"github_get_current_user\",\n\t\"github_list_my_repositories\",\n\t\"github_get_repository\",\n\t\"github_list_directory_contents\",\n\t\"github_get_file_contents\",\n\t\"github_search_code\",\n\t\"github_list_branches\",\n\t\"github_get_branch\",\n\t\"github_list_commits\",\n\t\"github_get_commit\",\n\t\"github_compare_commits\",\n\t\"github_search_commits\",\n\t\"github_list_repository_issues\",\n\t\"github_get_issue\",\n\t\"github_list_issue_comments\",\n\t\"github_list_repository_labels\",\n\t\"github_search_issues_and_pull_requests\",\n\t\"github_list_pull_requests\",\n\t\"github_get_pull_request\",\n\t\"github_list_pull_request_files\",\n\t\"github_list_pull_request_commits\",\n\t\"github_list_pull_request_reviews\",\n\t\"github_list_pull_request_review_comments\",\n\t\"github_list_pull_request_requested_reviewers\",\n\t\"github_check_pull_request_merged\",\n\t\"github_get_commit_statuses\",\n\t\"github_list_check_runs_for_ref\",\n\t\"github_list_repository_workflows\",\n\t\"github_list_workflow_runs\",\n\t\"github_get_workflow_run\",\n\t\"github_list_workflow_run_jobs\",\n\t\"github_create_issue_batch\",\n\t\"github_create_issue\",\n\t\"github_create_issue_comment\",\n\t\"github_add_issue_labels\",\n\t\"github_remove_issue_label\",\n\t\"github_add_issue_assignees\",\n\t\"github_remove_issue_assignees\",\n\t\"github_create_ref\",\n\t\"github_create_or_update_file\",\n\t\"github_create_pull_request\",\n\t\"github_create_pull_request_review\",\n\t\"github_create_pull_request_review_comment\",\n\t\"github_reply_pull_request_review_comment\",\n\t\"github_request_pull_request_reviewers\",\n\t\"github_remove_pull_request_reviewers\",\n\t\"github_update_issue\",\n\t\"github_update_pull_request\",\n\t\"github_update_pull_request_branch\",\n\t\"github_rerun_workflow\"\n];\nconst CENTER_AGENT_OPENMELD_IDENTITY_REQUIRED_CODE = \"center_agent.openmeld_identity_required\";\nconst trimmedIdentifierSchema = z.string().trim().min(1);\nconst centerAgentVerifiedMemberToolSpeakerSchema = z.strictObject({\n\tmemberId: trimmedIdentifierSchema,\n\tuserId: trimmedIdentifierSchema\n});\nconst centerAgentAnonymousMemberToolSpeakerSchema = z.strictObject({\n\tdisplayName: trimmedIdentifierSchema,\n\tkind: z.literal(\"anonymous_member\"),\n\tmessageChannelIdentity: messageChannelParticipantIdentitySchema\n});\nconst centerAgentToolSpeakerSchema = z.union([centerAgentVerifiedMemberToolSpeakerSchema, centerAgentAnonymousMemberToolSpeakerSchema]);\nconst centerAgentAnonymousMemberToolNameSchema = z.enum(CENTER_AGENT_ANONYMOUS_MEMBER_TOOL_NAMES);\nconst centerAgentAuthorizeAnonymousMemberToolRpcInputSchema = z.strictObject({\n\tconnectToUserId: trimmedIdentifierSchema.optional(),\n\tmessageChannelIdentityLinkCapabilityVersion: z.union([z.literal(1), z.literal(2)]).optional(),\n\tcontext: openMeldRequestContextSchema,\n\tspeakerMember: centerAgentAnonymousMemberToolSpeakerSchema,\n\ttoolName: centerAgentAnonymousMemberToolNameSchema\n});\nconst centerAgentAuthorizeAnonymousMemberToolResponseSchema = z.strictObject({\n\tauthorized: z.literal(true),\n\tmessageChannelAccountTargetSupported: z.literal(true).optional(),\n\tmessageChannelIdentityLinkSupported: z.literal(true).optional(),\n\tslackIdentityLinkSupported: z.literal(true).optional(),\n\tsourceNativeDeliveryId: trimmedIdentifierSchema\n});\n//#endregion\nexport { CENTER_AGENT_ANONYMOUS_MEMBER_TOOL_NAMES, CENTER_AGENT_OPENMELD_IDENTITY_REQUIRED_CODE, centerAgentAnonymousMemberToolNameSchema, centerAgentAnonymousMemberToolSpeakerSchema, centerAgentAuthorizeAnonymousMemberToolResponseSchema, centerAgentAuthorizeAnonymousMemberToolRpcInputSchema, centerAgentToolSpeakerSchema, centerAgentVerifiedMemberToolSpeakerSchema };\n\n//# sourceMappingURL=center-agent-speaker.js.map","import { optionalBooleanQuerySchema } from \"../protocol/shared.js\";\nimport { openMeldRequestContextSchema } from \"../daemon/profile-identity.js\";\nimport { projectSchema, repositoryFingerprintSchema } from \"./projects.js\";\nimport { centerAgentToolSpeakerSchema } from \"./center-agent-speaker.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/agent-activity.ts\nconst AGENT_ACTIVITY_SNAPSHOT_PROJECT_LIMIT = 1e3;\nconst AGENT_ACTIVITY_TITLE_MAX_CHARS = 240;\nconst AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS = 5 * 6e4;\nconst AGENT_ACTIVITY_EVENT_MAX_BYTES = 16 * 1024;\nconst AGENT_ACTIVITY_EVENT_BATCH_LIMIT = 64;\nconst AGENT_ACTIVITY_EVENT_BATCH_MAX_BYTES = 1052672;\nconst AGENT_ACTIVITY_EVENT_RETENTION_MS = 336 * 60 * 6e4;\nconst AGENT_ACTIVITY_DIGEST_SUMMARY_MAX_CHARS = 1200;\nconst AGENT_ACTIVITY_DIGEST_EVIDENCE_MAX_ITEMS = 100;\nconst AGENT_ACTIVITY_STATS_DAILY_LIMIT = 400;\nconst AGENT_ACTIVITY_PROVIDERS = [\n\t\"codex\",\n\t\"claude-code\",\n\t\"cursor\",\n\t\"opencode\"\n];\nconst AGENT_ACTIVITY_CLIENT_KINDS = [\n\t\"codex-app\",\n\t\"codex-cli\",\n\t\"claude-code-cli\",\n\t\"cursor-cli\",\n\t\"cursor-ide\",\n\t\"unknown\"\n];\nconst boundedIdentifierSchema = z.string().trim().min(1).max(256);\nconst timestampMsSchema = z.number().int().nonnegative();\nconst nullableBoundedTextSchema = (maximum) => z.string().trim().min(1).max(maximum).nullable();\nconst agentActivityRpcContextShape = { context: openMeldRequestContextSchema.optional() };\nconst agentActivityEventTypeSchema = z.enum([\n\t\"session_started\",\n\t\"session_updated\",\n\t\"session_active\",\n\t\"session_idle\",\n\t\"session_ended\",\n\t\"session_error\",\n\t\"heartbeat\"\n]);\nconst agentActivitySessionStatusSchema = z.enum([\n\t\"active\",\n\t\"idle\",\n\t\"ended\",\n\t\"error\",\n\t\"unknown\"\n]);\nconst agentActivityProviderSchema = z.enum(AGENT_ACTIVITY_PROVIDERS);\nconst agentActivityClientKindSchema = z.enum(AGENT_ACTIVITY_CLIENT_KINDS);\nconst safeMetadataTextSchema = z.string().trim().min(1).max(256);\nconst codexAgentActivityProviderMetadataSchema = z.strictObject({\n\tapprovalPolicy: z.enum([\n\t\t\"untrusted\",\n\t\t\"on-failure\",\n\t\t\"on-request\",\n\t\t\"never\"\n\t]).optional(),\n\tcliVersion: safeMetadataTextSchema.optional(),\n\tcontextWindow: z.number().int().positive().optional(),\n\tmodelProvider: safeMetadataTextSchema.optional(),\n\toriginator: z.enum([\n\t\t\"desktop\",\n\t\t\"cli\",\n\t\t\"subagent\"\n\t]).optional(),\n\treasoningEffort: z.enum([\n\t\t\"minimal\",\n\t\t\"low\",\n\t\t\"medium\",\n\t\t\"high\",\n\t\t\"xhigh\",\n\t\t\"ultra\"\n\t]).optional(),\n\tsandboxMode: z.enum([\n\t\t\"read-only\",\n\t\t\"workspace-write\",\n\t\t\"danger-full-access\"\n\t]).optional(),\n\tsource: z.enum([\n\t\t\"rollout\",\n\t\t\"hook\",\n\t\t\"reconciliation\"\n\t]).optional()\n});\nconst claudeCodeAgentActivityProviderMetadataSchema = z.strictObject({\n\tentrypoint: z.enum([\"cli\", \"desktop\"]).optional(),\n\tisSidechain: z.boolean().optional(),\n\tparentSessionId: boundedIdentifierSchema.optional(),\n\tpermissionMode: z.enum([\n\t\t\"default\",\n\t\t\"acceptEdits\",\n\t\t\"plan\",\n\t\t\"dontAsk\",\n\t\t\"bypassPermissions\",\n\t\t\"ask\",\n\t\t\"allow\"\n\t]).optional(),\n\tsource: z.enum([\n\t\t\"jsonl\",\n\t\t\"hook\",\n\t\t\"reconciliation\"\n\t]).optional(),\n\tversion: safeMetadataTextSchema.optional()\n});\nconst openCodeAgentActivityProviderMetadataSchema = z.strictObject({\n\tagent: safeMetadataTextSchema.optional(),\n\tcost: z.number().nonnegative().finite().optional(),\n\tmodelProvider: safeMetadataTextSchema.optional(),\n\tmodelVariant: safeMetadataTextSchema.optional(),\n\tparentSessionId: boundedIdentifierSchema.optional(),\n\ttokensCacheRead: z.number().int().nonnegative().optional(),\n\ttokensCacheWrite: z.number().int().nonnegative().optional(),\n\ttokensInput: z.number().int().nonnegative().optional(),\n\ttokensOutput: z.number().int().nonnegative().optional(),\n\ttokensReasoning: z.number().int().nonnegative().optional(),\n\tversion: safeMetadataTextSchema.optional()\n});\nconst cursorAgentActivityProviderMetadataSchema = z.strictObject({\n\tcomposerMode: z.enum([\n\t\t\"agent\",\n\t\t\"chat\",\n\t\t\"plan\",\n\t\t\"debug\"\n\t]).optional(),\n\tisBackgroundAgent: z.boolean().optional(),\n\tsource: z.enum([\"acp\", \"hook\"]),\n\tversion: safeMetadataTextSchema.optional()\n});\nconst codexPublicAgentActivityProviderMetadataSchema = codexAgentActivityProviderMetadataSchema;\nconst claudeCodePublicAgentActivityProviderMetadataSchema = claudeCodeAgentActivityProviderMetadataSchema.omit({ parentSessionId: true });\nconst cursorPublicAgentActivityProviderMetadataSchema = cursorAgentActivityProviderMetadataSchema;\nconst openCodePublicAgentActivityProviderMetadataSchema = openCodeAgentActivityProviderMetadataSchema.omit({ parentSessionId: true });\nconst agentActivityEventCommonShape = {\n\teventId: boundedIdentifierSchema,\n\teventType: agentActivityEventTypeSchema,\n\texpiresAtMs: timestampMsSchema,\n\tgitBranch: nullableBoundedTextSchema(512),\n\tgitCommit: nullableBoundedTextSchema(128),\n\tmodel: nullableBoundedTextSchema(256),\n\tobservedAtMs: timestampMsSchema,\n\torganizationId: boundedIdentifierSchema,\n\tprojectId: boundedIdentifierSchema,\n\tproviderSessionId: z.string().trim().min(1).max(512),\n\trepositoryFingerprint: repositoryFingerprintSchema.nullable(),\n\tsource: z.literal(\"observed\"),\n\tstartedAtMs: timestampMsSchema.nullable(),\n\tstatus: agentActivitySessionStatusSchema,\n\ttitle: nullableBoundedTextSchema(240)\n};\nconst codexAgentActivityEventSchema = z.strictObject({\n\t...agentActivityEventCommonShape,\n\tclientKind: z.enum([\n\t\t\"codex-app\",\n\t\t\"codex-cli\",\n\t\t\"unknown\"\n\t]),\n\tprovider: z.literal(\"codex\"),\n\tproviderMetadata: codexAgentActivityProviderMetadataSchema\n});\nconst claudeCodeAgentActivityEventSchema = z.strictObject({\n\t...agentActivityEventCommonShape,\n\tclientKind: z.enum([\"claude-code-cli\", \"unknown\"]),\n\tprovider: z.literal(\"claude-code\"),\n\tproviderMetadata: claudeCodeAgentActivityProviderMetadataSchema\n});\nconst openCodeAgentActivityEventSchema = z.strictObject({\n\t...agentActivityEventCommonShape,\n\tclientKind: z.literal(\"unknown\"),\n\tprovider: z.literal(\"opencode\"),\n\tproviderMetadata: openCodeAgentActivityProviderMetadataSchema\n});\nconst cursorAgentActivityEventSchema = z.strictObject({\n\t...agentActivityEventCommonShape,\n\tclientKind: z.enum([\n\t\t\"cursor-cli\",\n\t\t\"cursor-ide\",\n\t\t\"unknown\"\n\t]),\n\tprovider: z.literal(\"cursor\"),\n\tproviderMetadata: cursorAgentActivityProviderMetadataSchema\n});\nconst agentActivityEventSchema = z.discriminatedUnion(\"provider\", [\n\tcodexAgentActivityEventSchema,\n\tclaudeCodeAgentActivityEventSchema,\n\tcursorAgentActivityEventSchema,\n\topenCodeAgentActivityEventSchema\n]).superRefine((value, context) => {\n\tif (!{\n\t\theartbeat: [\"active\"],\n\t\tsession_active: [\"active\"],\n\t\tsession_ended: [\"ended\"],\n\t\tsession_error: [\"error\"],\n\t\tsession_idle: [\"idle\"],\n\t\tsession_started: [\"active\", \"unknown\"],\n\t\tsession_updated: [\"unknown\"]\n\t}[value.eventType].includes(value.status)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Agent Activity event type and session status are inconsistent.\",\n\t\tpath: [\"status\"]\n\t});\n\tif (value.startedAtMs !== null && value.startedAtMs > value.observedAtMs) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Agent Activity start time cannot follow its observation.\",\n\t\tpath: [\"startedAtMs\"]\n\t});\n\tif (value.status === \"active\" && value.expiresAtMs <= value.observedAtMs) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Active Agent Activity requires a bounded future expiry.\",\n\t\tpath: [\"expiresAtMs\"]\n\t});\n\tif (value.expiresAtMs - value.observedAtMs > 3e5) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Agent Activity expiry exceeds the presence TTL.\",\n\t\tpath: [\"expiresAtMs\"]\n\t});\n\tif (value.expiresAtMs < value.observedAtMs) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Agent Activity expiry cannot precede its observation.\",\n\t\tpath: [\"expiresAtMs\"]\n\t});\n});\nconst agentActivityEventOutcomeSchema = z.enum([\n\t\"accepted\",\n\t\"reused\",\n\t\"retryable_rejected\",\n\t\"permanent_rejected\"\n]);\nconst agentActivityEventRejectionReasonSchema = z.enum([\n\t\"event_id_conflict\",\n\t\"event_invalid\",\n\t\"event_time_invalid\",\n\t\"membership_removed\",\n\t\"membership_unavailable\",\n\t\"project_archived\",\n\t\"project_missing\",\n\t\"repository_fingerprint_mismatch\",\n\t\"runtime_lookup_conflict\",\n\t\"runtime_missing\",\n\t\"openmeld_service_runtime_id_invalid\",\n\t\"openmeld_service_runtime_id_mismatch\",\n\t\"openmeld_service_runtime_identity_invalid\"\n]);\nconst submitAgentActivityEventsBodySchema = z.strictObject({\n\tevents: z.array(z.unknown()).min(1).max(64),\n\tlane: boundedIdentifierSchema,\n\topenMeldServiceRuntimeId: z.strictObject({\n\t\tsource: z.literal(\"runtime_registry_authority\"),\n\t\tvalue: z.string().trim().min(1).max(512)\n\t})\n});\nconst submitAgentActivityEventResultSchema = z.strictObject({\n\teventId: boundedIdentifierSchema.optional(),\n\tindex: z.number().int().nonnegative().max(63),\n\toutcome: agentActivityEventOutcomeSchema,\n\treason: agentActivityEventRejectionReasonSchema.optional()\n}).superRefine((value, context) => {\n\tif ((value.outcome === \"retryable_rejected\" || value.outcome === \"permanent_rejected\") !== Boolean(value.reason)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Rejected Agent Activity events require exactly one reason.\",\n\t\tpath: [\"reason\"]\n\t});\n});\nconst submitAgentActivityEventsResponseSchema = z.strictObject({\n\tevents: z.array(submitAgentActivityEventResultSchema).min(1).max(64),\n\tstatus: z.enum([\n\t\t\"accepted\",\n\t\t\"partial\",\n\t\t\"rejected\"\n\t]),\n\topenMeldServiceRuntimeId: z.strictObject({\n\t\tsource: z.literal(\"runtime_registry_authority\"),\n\t\tvalue: z.string().trim().min(1).max(512)\n\t}).optional()\n}).superRefine((value, context) => {\n\tconst indices = value.events.map((event) => event.index);\n\tif (new Set(indices).size !== indices.length) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Agent Activity event result indices must be unique.\",\n\t\tpath: [\"events\"]\n\t});\n\tif (value.status !== \"rejected\" && !value.openMeldServiceRuntimeId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Accepted Agent Activity responses require Runtime authority.\",\n\t\tpath: [\"openMeldServiceRuntimeId\"]\n\t});\n});\nconst submitAgentActivityEventsRpcInputSchema = z.strictObject({\n\t...agentActivityRpcContextShape,\n\t...submitAgentActivityEventsBodySchema.shape,\n\tdeviceId: boundedIdentifierSchema\n});\nconst agentActivitySnapshotQuerySchema = z.strictObject({\n\tincludeProviderMetadata: optionalBooleanQuerySchema,\n\tmemberUserId: boundedIdentifierSchema.optional(),\n\tprojectId: boundedIdentifierSchema.optional(),\n\tprovider: agentActivityProviderSchema.optional(),\n\tstatus: agentActivitySessionStatusSchema.optional()\n});\nconst agentActivityPublicSessionCommonShape = {\n\texpiresAtMs: timestampMsSchema,\n\tgitBranch: nullableBoundedTextSchema(512),\n\tgitCommit: nullableBoundedTextSchema(128),\n\tid: boundedIdentifierSchema,\n\tisActive: z.boolean(),\n\tlastObservedAtMs: timestampMsSchema,\n\tmemberName: z.string().trim().min(1).max(256),\n\tmemberUserId: boundedIdentifierSchema,\n\tmodel: nullableBoundedTextSchema(256),\n\tprojectId: boundedIdentifierSchema,\n\tstartedAtMs: timestampMsSchema.nullable(),\n\tstatus: agentActivitySessionStatusSchema,\n\ttitle: nullableBoundedTextSchema(240)\n};\nconst agentActivityPublicSessionSchema = z.discriminatedUnion(\"provider\", [\n\tz.strictObject({\n\t\t...agentActivityPublicSessionCommonShape,\n\t\tclientKind: z.enum([\n\t\t\t\"codex-app\",\n\t\t\t\"codex-cli\",\n\t\t\t\"unknown\"\n\t\t]),\n\t\tprovider: z.literal(\"codex\"),\n\t\tproviderMetadata: codexPublicAgentActivityProviderMetadataSchema.optional()\n\t}),\n\tz.strictObject({\n\t\t...agentActivityPublicSessionCommonShape,\n\t\tclientKind: z.enum([\"claude-code-cli\", \"unknown\"]),\n\t\tprovider: z.literal(\"claude-code\"),\n\t\tproviderMetadata: claudeCodePublicAgentActivityProviderMetadataSchema.optional()\n\t}),\n\tz.strictObject({\n\t\t...agentActivityPublicSessionCommonShape,\n\t\tclientKind: z.enum([\n\t\t\t\"cursor-cli\",\n\t\t\t\"cursor-ide\",\n\t\t\t\"unknown\"\n\t\t]),\n\t\tprovider: z.literal(\"cursor\"),\n\t\tproviderMetadata: cursorPublicAgentActivityProviderMetadataSchema.optional()\n\t}),\n\tz.strictObject({\n\t\t...agentActivityPublicSessionCommonShape,\n\t\tclientKind: z.literal(\"unknown\"),\n\t\tprovider: z.literal(\"opencode\"),\n\t\tproviderMetadata: openCodePublicAgentActivityProviderMetadataSchema.optional()\n\t})\n]);\nconst agentActivityPublicEventSchema = z.strictObject({\n\tclientKind: agentActivityClientKindSchema,\n\teventId: boundedIdentifierSchema,\n\teventType: agentActivityEventTypeSchema,\n\tmemberName: z.string().trim().min(1).max(256),\n\tmemberUserId: boundedIdentifierSchema,\n\tobservedAtMs: timestampMsSchema,\n\tprojectId: boundedIdentifierSchema,\n\tprovider: agentActivityProviderSchema,\n\tstatus: agentActivitySessionStatusSchema,\n\ttitle: nullableBoundedTextSchema(240)\n});\nconst agentActivityDigestCitationSchema = z.strictObject({\n\teventId: boundedIdentifierSchema,\n\tobservedAtMs: timestampMsSchema\n});\nconst agentActivityPublicDigestSchema = z.strictObject({\n\tcitations: z.array(agentActivityDigestCitationSchema).max(20),\n\tcreatedAtMs: timestampMsSchema,\n\teventCount: z.number().int().positive(),\n\tfailureReason: z.string().trim().min(1).max(256).nullable(),\n\tid: boundedIdentifierSchema,\n\tprojectId: boundedIdentifierSchema,\n\tstatus: z.enum([\"completed\", \"failed\"]),\n\tsummary: z.string().trim().min(1).max(AGENT_ACTIVITY_DIGEST_SUMMARY_MAX_CHARS).nullable(),\n\twindowEndedAtMs: timestampMsSchema,\n\twindowStartedAtMs: timestampMsSchema\n}).superRefine((value, context) => {\n\tif (value.windowStartedAtMs > value.windowEndedAtMs) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Agent Activity digest start cannot follow its end.\",\n\t\tpath: [\"windowStartedAtMs\"]\n\t});\n\tconst completed = value.status === \"completed\";\n\tif (completed !== Boolean(value.summary)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Completed Agent Activity digests require exactly one summary.\",\n\t\tpath: [\"summary\"]\n\t});\n\tif (completed === Boolean(value.failureReason)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Failed Agent Activity digests require exactly one failure reason.\",\n\t\tpath: [\"failureReason\"]\n\t});\n\tif (completed !== value.citations.length > 0) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Completed Agent Activity digests require evidence citations.\",\n\t\tpath: [\"citations\"]\n\t});\n});\nconst agentActivityDigestEvidenceSchema = z.strictObject({\n\teventId: boundedIdentifierSchema,\n\teventType: agentActivityEventTypeSchema,\n\tmemberName: z.string().trim().min(1).max(256),\n\tobservedAtMs: timestampMsSchema,\n\tprovider: agentActivityProviderSchema,\n\tstatus: agentActivitySessionStatusSchema,\n\ttitle: nullableBoundedTextSchema(240)\n});\nconst summarizeAgentActivityDigestRpcInputSchema = z.strictObject({\n\teventCount: z.number().int().positive(),\n\tevidence: z.array(agentActivityDigestEvidenceSchema).min(1).max(100),\n\torganizationId: boundedIdentifierSchema,\n\tprojectId: boundedIdentifierSchema,\n\twindowEndedAtMs: timestampMsSchema,\n\twindowStartedAtMs: timestampMsSchema\n}).superRefine((value, context) => {\n\tif (value.eventCount < value.evidence.length) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Digest event count cannot be smaller than its evidence sample.\",\n\t\tpath: [\"eventCount\"]\n\t});\n\tif (value.windowStartedAtMs > value.windowEndedAtMs) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Agent Activity digest start cannot follow its end.\",\n\t\tpath: [\"windowStartedAtMs\"]\n\t});\n});\nconst summarizeAgentActivityDigestRpcResponseSchema = z.strictObject({\n\tcitations: z.array(agentActivityDigestCitationSchema).min(1).max(20),\n\tsummary: z.string().trim().min(1).max(AGENT_ACTIVITY_DIGEST_SUMMARY_MAX_CHARS)\n}).superRefine((value, context) => {\n\tconst keys = value.citations.map((citation) => `${citation.eventId}\\0${citation.observedAtMs}`);\n\tif (new Set(keys).size !== keys.length) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Agent Activity digest citations must be unique.\",\n\t\tpath: [\"citations\"]\n\t});\n});\nconst agentActivitySnapshotResponseSchema = z.strictObject({\n\tasOfMs: timestampMsSchema,\n\tdigestsTruncated: z.boolean(),\n\torganizationId: boundedIdentifierSchema,\n\tdigests: z.array(agentActivityPublicDigestSchema).max(500),\n\tprojects: z.array(projectSchema).max(AGENT_ACTIVITY_SNAPSHOT_PROJECT_LIMIT),\n\trecentEvents: z.array(agentActivityPublicEventSchema).max(100),\n\tsessions: z.array(agentActivityPublicSessionSchema).max(500),\n\tsessionsTruncated: z.boolean(),\n\tstalenessThresholdMs: z.number().int().positive()\n});\nconst agentActivitySnapshotRpcInputSchema = z.strictObject({\n\t...agentActivityRpcContextShape,\n\t...agentActivitySnapshotQuerySchema.shape\n});\nconst agentActivityStatsDailySchema = z.strictObject({\n\tactiveDurationMs: z.number().int().nonnegative(),\n\tsessionCount: z.number().int().nonnegative(),\n\tutcDate: z.iso.date()\n});\nconst agentActivityStatsQuerySchema = z.strictObject({ projectId: boundedIdentifierSchema.optional() });\nconst agentActivityStatsResponseSchema = z.strictObject({\n\tdaily: z.array(agentActivityStatsDailySchema).max(400),\n\tdailyTruncated: z.boolean(),\n\torganizationId: boundedIdentifierSchema,\n\tsinceMs: timestampMsSchema.nullable(),\n\ttotalActiveDurationMs: z.number().int().nonnegative(),\n\ttotalSessions: z.number().int().nonnegative()\n});\nconst agentActivityStatsRpcInputSchema = z.strictObject({\n\t...agentActivityRpcContextShape,\n\t...agentActivityStatsQuerySchema.shape\n});\nconst centerAgentReadAgentActivityToolRpcInputSchema = z.strictObject({\n\tcontext: openMeldRequestContextSchema,\n\t...agentActivitySnapshotQuerySchema.shape,\n\tspeakerMember: centerAgentToolSpeakerSchema\n});\n//#endregion\nexport { AGENT_ACTIVITY_CLIENT_KINDS, AGENT_ACTIVITY_DIGEST_EVIDENCE_MAX_ITEMS, AGENT_ACTIVITY_DIGEST_SUMMARY_MAX_CHARS, AGENT_ACTIVITY_EVENT_BATCH_LIMIT, AGENT_ACTIVITY_EVENT_BATCH_MAX_BYTES, AGENT_ACTIVITY_EVENT_MAX_BYTES, AGENT_ACTIVITY_EVENT_RETENTION_MS, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS, AGENT_ACTIVITY_PROVIDERS, AGENT_ACTIVITY_SNAPSHOT_PROJECT_LIMIT, AGENT_ACTIVITY_STATS_DAILY_LIMIT, AGENT_ACTIVITY_TITLE_MAX_CHARS, agentActivityClientKindSchema, agentActivityDigestCitationSchema, agentActivityDigestEvidenceSchema, agentActivityEventOutcomeSchema, agentActivityEventRejectionReasonSchema, agentActivityEventSchema, agentActivityEventTypeSchema, agentActivityProviderSchema, agentActivityPublicDigestSchema, agentActivityPublicEventSchema, agentActivityPublicSessionSchema, agentActivitySessionStatusSchema, agentActivitySnapshotQuerySchema, agentActivitySnapshotResponseSchema, agentActivitySnapshotRpcInputSchema, agentActivityStatsDailySchema, agentActivityStatsQuerySchema, agentActivityStatsResponseSchema, agentActivityStatsRpcInputSchema, centerAgentReadAgentActivityToolRpcInputSchema, claudeCodeAgentActivityProviderMetadataSchema, claudeCodePublicAgentActivityProviderMetadataSchema, codexAgentActivityProviderMetadataSchema, codexPublicAgentActivityProviderMetadataSchema, cursorAgentActivityProviderMetadataSchema, cursorPublicAgentActivityProviderMetadataSchema, openCodeAgentActivityProviderMetadataSchema, openCodePublicAgentActivityProviderMetadataSchema, submitAgentActivityEventResultSchema, submitAgentActivityEventsBodySchema, submitAgentActivityEventsResponseSchema, submitAgentActivityEventsRpcInputSchema, summarizeAgentActivityDigestRpcInputSchema, summarizeAgentActivityDigestRpcResponseSchema };\n\n//# sourceMappingURL=agent-activity.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/http/space-name.ts\nconst MAX_SPACE_NAME_LENGTH = 80;\nconst spaceNameSchema = z.string().trim().min(1).max(80);\n//#endregion\nexport { MAX_SPACE_NAME_LENGTH, spaceNameSchema };\n\n//# sourceMappingURL=space-name.js.map","import { openMeldRequestContextSchema } from \"../daemon/profile-identity.js\";\nimport { centerAgentVerifiedMemberToolSpeakerSchema } from \"./center-agent-speaker.js\";\nimport { spaceNameSchema } from \"./space-name.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/center-agent-routines.ts\nconst CENTER_AGENT_ROUTINE_NAME_MAX_CHARS = 120;\nconst CENTER_AGENT_ROUTINE_INSTRUCTIONS_MAX_CHARS = 2e4;\nconst CENTER_AGENT_ROUTINE_CRON_EXPRESSION_MAX_CHARS = 256;\nconst CENTER_AGENT_ROUTINE_TIMEZONE_MAX_CHARS = 128;\nconst CENTER_AGENT_ROUTINE_SLACK_THREAD_LABEL_MAX_CHARS = 160;\nconst CENTER_AGENT_ROUTINE_RUN_FAILURE_DETAIL_MAX_CHARS = 4e3;\nconst CENTER_AGENT_ROUTINE_RUN_LIST_MAX_LIMIT = 100;\nconst CENTER_AGENT_ROUTINE_TARGET_SPACE_LIST_MAX_ITEMS = 500;\nconst CENTER_AGENT_ROUTINE_LIMIT = 50;\nconst CENTER_AGENT_ROUTINE_ERROR_CODES = [\n\t\"routine.center_agent_required\",\n\t\"routine.client_update_required\",\n\t\"routine.forbidden\",\n\t\"routine.member_actor_required\",\n\t\"routine.not_found\",\n\t\"routine.schedule.invalid_cron\",\n\t\"routine.schedule.invalid_reference_time\",\n\t\"routine.schedule.invalid_timezone\",\n\t\"routine.schedule.too_frequent\",\n\t\"routine.schedule.run_at_past\",\n\t\"routine.status_conflict\",\n\t\"routine.store_unavailable\",\n\t\"routine.target_space_not_found\",\n\t\"routine.target_space_org_mismatch\",\n\t\"routine.target_space_publication_unavailable\",\n\t\"routine.slack_thread_unavailable\",\n\t\"routine.total_limit_reached\"\n];\nconst CENTER_AGENT_ROUTINE_STATUSES = [\n\t\"enabled\",\n\t\"paused\",\n\t\"completed\"\n];\nconst CENTER_AGENT_ROUTINE_RUN_STATUSES = [\n\t\"claimed\",\n\t\"submitted\",\n\t\"completed\",\n\t\"failed\",\n\t\"skipped\"\n];\nconst CENTER_AGENT_ROUTINE_TARGET_SPACE_KINDS = [\"space\", \"center_agent_dm\"];\nconst CENTER_AGENT_ROUTINE_DESTINATION_KINDS = [\"space\", \"slack_thread\"];\nconst CENTER_AGENT_ROUTINE_AUTHORIZED_ACTIONS = [\"organization_documents.save_approved_knowledge\", \"slack.publish_channel_report\"];\nconst CENTER_AGENT_ROUTINE_EXTERNAL_ACTION_POLICIES = [\"standard\", \"read_only\"];\nconst CENTER_AGENT_ROUTINE_PRACTICAL_CONTRACT = \"practical-v2\";\nconst CENTER_AGENT_ROUTINE_MANAGEMENT_CONTRACT = \"management-v1\";\nconst trimmedIdentifierSchema = z.string().trim().min(1).max(256);\nconst timestampMsSchema = z.number().int().nonnegative();\nconst centerAgentRoutineRunScheduledForMsSchema = z.number().int().min(Number.MIN_SAFE_INTEGER).max(Number.MAX_SAFE_INTEGER);\nconst nullableTrimmedTextSchema = (maximum) => z.string().trim().min(1).max(maximum).nullable();\nconst queryIntegerPattern = /^\\d+$/u;\nconst querySignedIntegerPattern = /^-?\\d+$/u;\nconst centerAgentRoutineStatusSchema = z.enum(CENTER_AGENT_ROUTINE_STATUSES);\nconst centerAgentRoutineRunStatusSchema = z.enum(CENTER_AGENT_ROUTINE_RUN_STATUSES);\nconst centerAgentRoutineScheduleKindSchema = z.enum([\"cron\", \"once\"]);\nconst centerAgentRoutineDestinationKindSchema = z.enum(CENTER_AGENT_ROUTINE_DESTINATION_KINDS);\nconst centerAgentRoutineAuthorizedActionSchema = z.enum(CENTER_AGENT_ROUTINE_AUTHORIZED_ACTIONS);\nconst centerAgentRoutineAuthorizedActionsSchema = z.array(centerAgentRoutineAuthorizedActionSchema).max(CENTER_AGENT_ROUTINE_AUTHORIZED_ACTIONS.length);\nconst centerAgentRoutineExternalActionPolicySchema = z.enum(CENTER_AGENT_ROUTINE_EXTERNAL_ACTION_POLICIES);\nconst centerAgentRoutineContractSchema = z.literal(CENTER_AGENT_ROUTINE_PRACTICAL_CONTRACT);\nconst centerAgentRoutineListContractSchema = z.enum([CENTER_AGENT_ROUTINE_PRACTICAL_CONTRACT, CENTER_AGENT_ROUTINE_MANAGEMENT_CONTRACT]);\nconst centerAgentRoutineTargetSpaceKindSchema = z.enum(CENTER_AGENT_ROUTINE_TARGET_SPACE_KINDS);\nconst centerAgentRoutineTargetSpaceSchema = z.strictObject({\n\tkind: centerAgentRoutineTargetSpaceKindSchema,\n\tname: spaceNameSchema,\n\tspaceId: trimmedIdentifierSchema\n});\nconst centerAgentRoutineLastRunSummarySchema = z.strictObject({\n\tfailureCode: nullableTrimmedTextSchema(256),\n\tfailureDetail: nullableTrimmedTextSchema(CENTER_AGENT_ROUTINE_RUN_FAILURE_DETAIL_MAX_CHARS),\n\tfinishedAtMs: timestampMsSchema.nullable(),\n\tid: trimmedIdentifierSchema,\n\tpublishedSignalId: nullableTrimmedTextSchema(256),\n\tscheduledFor: centerAgentRoutineRunScheduledForMsSchema,\n\tstartedAtMs: timestampMsSchema.nullable(),\n\tstatus: centerAgentRoutineRunStatusSchema\n}).superRefine(validateRoutineRunScheduledFor);\nconst routineScheduleShape = {\n\tcronExpression: nullableTrimmedTextSchema(256),\n\trunAtMs: timestampMsSchema.nullable().default(null),\n\tscheduleKind: centerAgentRoutineScheduleKindSchema.default(\"cron\"),\n\ttimezone: nullableTrimmedTextSchema(128)\n};\nconst routineDestinationShape = {\n\tdestinationKind: centerAgentRoutineDestinationKindSchema.default(\"space\"),\n\tslackChannelId: nullableTrimmedTextSchema(256).default(null),\n\tslackConversationId: nullableTrimmedTextSchema(512).default(null),\n\tslackTeamId: nullableTrimmedTextSchema(256).default(null),\n\tslackThreadLabel: nullableTrimmedTextSchema(160).default(null),\n\tslackThreadTs: nullableTrimmedTextSchema(256).default(null),\n\ttargetSpaceId: trimmedIdentifierSchema.nullable().default(null)\n};\nconst centerAgentRoutineSchema = z.strictObject({\n\tcanManage: z.boolean(),\n\tcreatedAtMs: timestampMsSchema,\n\tcreatedByUserId: trimmedIdentifierSchema,\n\t...routineScheduleShape,\n\t...routineDestinationShape,\n\tid: trimmedIdentifierSchema,\n\tinstructions: z.string().trim().min(1).max(CENTER_AGENT_ROUTINE_INSTRUCTIONS_MAX_CHARS),\n\tlastRun: centerAgentRoutineLastRunSummarySchema.nullable(),\n\tname: z.string().trim().min(1).max(120),\n\tnextDueAt: timestampMsSchema.nullable(),\n\torganizationId: trimmedIdentifierSchema,\n\tstatus: centerAgentRoutineStatusSchema,\n\tupdatedAtMs: timestampMsSchema,\n\tupdatedByUserId: trimmedIdentifierSchema\n}).superRefine(validateRoutineScheduleAndDestination);\nconst centerAgentRoutineCapabilityStateSchema = z.strictObject({\n\tapprovedKnowledge: z.boolean(),\n\tcanRepair: z.boolean(),\n\texternalActionPolicy: centerAgentRoutineExternalActionPolicySchema,\n\tslackChannelReport: z.boolean()\n});\nconst centerAgentRoutineManagementSchema = z.strictObject({\n\t...centerAgentRoutineSchema.shape,\n\tcapabilityState: centerAgentRoutineCapabilityStateSchema\n}).superRefine(validateRoutineScheduleAndDestination);\nconst centerAgentRoutineRunSchema = z.strictObject({\n\t...routineDestinationShape,\n\tfailureCode: nullableTrimmedTextSchema(256),\n\tfailureDetail: nullableTrimmedTextSchema(CENTER_AGENT_ROUTINE_RUN_FAILURE_DETAIL_MAX_CHARS),\n\tfinishedAtMs: timestampMsSchema.nullable(),\n\tid: trimmedIdentifierSchema,\n\tnativeDeliveryId: nullableTrimmedTextSchema(256),\n\torganizationId: trimmedIdentifierSchema,\n\tpublishedSignalId: nullableTrimmedTextSchema(256),\n\troutineId: trimmedIdentifierSchema,\n\tscheduledFor: centerAgentRoutineRunScheduledForMsSchema,\n\tstartedAtMs: timestampMsSchema.nullable(),\n\tstatus: centerAgentRoutineRunStatusSchema\n}).superRefine(validateRoutineRunScheduledFor);\nconst centerAgentRoutineLegacyV1Schema = z.strictObject({\n\tcanManage: z.boolean(),\n\tcreatedAtMs: timestampMsSchema,\n\tcreatedByUserId: trimmedIdentifierSchema,\n\tcronExpression: z.string().trim().min(1).max(256),\n\tid: trimmedIdentifierSchema,\n\tinstructions: z.string().trim().min(1).max(CENTER_AGENT_ROUTINE_INSTRUCTIONS_MAX_CHARS),\n\tlastRun: centerAgentRoutineLastRunSummarySchema.nullable(),\n\tname: z.string().trim().min(1).max(120),\n\tnextDueAt: timestampMsSchema.nullable(),\n\torganizationId: trimmedIdentifierSchema,\n\tscheduleKind: z.literal(\"cron\"),\n\tstatus: z.enum([\"enabled\", \"paused\"]),\n\ttargetSpaceId: trimmedIdentifierSchema,\n\ttimezone: z.string().trim().min(1).max(128),\n\tupdatedAtMs: timestampMsSchema,\n\tupdatedByUserId: trimmedIdentifierSchema\n});\nconst centerAgentRoutineRunLegacyV1Schema = z.strictObject({\n\tfailureCode: nullableTrimmedTextSchema(256),\n\tfailureDetail: nullableTrimmedTextSchema(CENTER_AGENT_ROUTINE_RUN_FAILURE_DETAIL_MAX_CHARS),\n\tfinishedAtMs: timestampMsSchema.nullable(),\n\tid: trimmedIdentifierSchema,\n\tnativeDeliveryId: nullableTrimmedTextSchema(256),\n\torganizationId: trimmedIdentifierSchema,\n\tpublishedSignalId: nullableTrimmedTextSchema(256),\n\troutineId: trimmedIdentifierSchema,\n\tscheduledFor: centerAgentRoutineRunScheduledForMsSchema,\n\tstartedAtMs: timestampMsSchema.nullable(),\n\tstatus: centerAgentRoutineRunStatusSchema\n}).superRefine(validateRoutineRunScheduledFor);\nconst routineContractQueryShape = { contract: centerAgentRoutineContractSchema.optional() };\nconst centerAgentRoutineContractQuerySchema = z.strictObject(routineContractQueryShape);\nconst listCenterAgentRoutinesQuerySchema = z.strictObject({ contract: centerAgentRoutineListContractSchema.optional() });\nconst listCenterAgentRoutinesResponseSchema = z.strictObject({\n\tcurrentUserId: trimmedIdentifierSchema,\n\torganizationId: trimmedIdentifierSchema,\n\troutines: z.array(centerAgentRoutineSchema).max(50)\n});\nconst listCenterAgentRoutinesManagementResponseSchema = z.strictObject({\n\tcurrentUserId: trimmedIdentifierSchema,\n\torganizationId: trimmedIdentifierSchema,\n\troutines: z.array(centerAgentRoutineManagementSchema).max(50)\n});\nconst listCenterAgentRoutinesLegacyV1ResponseSchema = z.strictObject({\n\tcurrentUserId: trimmedIdentifierSchema,\n\torganizationId: trimmedIdentifierSchema,\n\troutines: z.array(centerAgentRoutineLegacyV1Schema).max(50)\n});\nconst listCenterAgentRoutineTargetSpacesQuerySchema = z.strictObject({});\nconst listCenterAgentRoutineTargetSpacesResponseSchema = z.strictObject({\n\torganizationId: trimmedIdentifierSchema,\n\tspaces: z.array(centerAgentRoutineTargetSpaceSchema).max(500)\n});\nconst createCenterAgentRoutineBodySchema = z.strictObject({\n\tauthorizedActions: centerAgentRoutineAuthorizedActionsSchema.optional(),\n\texternalActionPolicy: centerAgentRoutineExternalActionPolicySchema.optional(),\n\t...routineScheduleShape,\n\t...routineDestinationShape,\n\tinstructions: z.string().trim().min(1).max(CENTER_AGENT_ROUTINE_INSTRUCTIONS_MAX_CHARS),\n\tname: z.string().trim().min(1).max(120)\n}).superRefine(validateRoutineScheduleAndDestination);\nconst createCenterAgentRoutineResponseSchema = z.strictObject({ routine: centerAgentRoutineSchema });\nconst centerAgentRoutineMutationLegacyV1ResponseSchema = z.strictObject({ routine: centerAgentRoutineLegacyV1Schema });\nconst centerAgentRoutineRouteParamsSchema = z.strictObject({ routineId: trimmedIdentifierSchema });\nconst routineUpdateShape = {\n\tauthorizedActions: centerAgentRoutineAuthorizedActionsSchema.optional(),\n\texternalActionPolicy: centerAgentRoutineExternalActionPolicySchema.optional(),\n\tcronExpression: z.string().trim().min(1).max(256).nullable().optional(),\n\tdestinationKind: centerAgentRoutineDestinationKindSchema.optional(),\n\tinstructions: z.string().trim().min(1).max(CENTER_AGENT_ROUTINE_INSTRUCTIONS_MAX_CHARS).optional(),\n\tname: z.string().trim().min(1).max(120).optional(),\n\trunAtMs: timestampMsSchema.nullable().optional(),\n\tscheduleKind: centerAgentRoutineScheduleKindSchema.optional(),\n\tslackChannelId: nullableTrimmedTextSchema(256).optional(),\n\tslackConversationId: nullableTrimmedTextSchema(512).optional(),\n\tslackTeamId: nullableTrimmedTextSchema(256).optional(),\n\tslackThreadLabel: nullableTrimmedTextSchema(160).optional(),\n\tslackThreadTs: nullableTrimmedTextSchema(256).optional(),\n\ttargetSpaceId: trimmedIdentifierSchema.nullable().optional(),\n\ttimezone: z.string().trim().min(1).max(128).nullable().optional()\n};\nconst updateCenterAgentRoutineBodySchema = z.strictObject(routineUpdateShape).refine(hasRoutineUpdate, \"At least one Routine field must be updated.\");\nconst updateCenterAgentRoutineResponseSchema = z.strictObject({ routine: centerAgentRoutineSchema });\nconst pauseCenterAgentRoutineBodySchema = z.strictObject({});\nconst pauseCenterAgentRoutineResponseSchema = z.strictObject({ routine: centerAgentRoutineSchema });\nconst resumeCenterAgentRoutineBodySchema = z.strictObject({});\nconst resumeCenterAgentRoutineResponseSchema = z.strictObject({ routine: centerAgentRoutineSchema });\nconst deleteCenterAgentRoutineBodySchema = z.strictObject({});\nconst deleteCenterAgentRoutineResponseSchema = z.strictObject({\n\tdeleted: z.literal(true),\n\torganizationId: trimmedIdentifierSchema,\n\troutineId: trimmedIdentifierSchema\n});\nconst routineRunLimitSchema = z.number().int().min(1).max(100);\nconst queryScheduledForMsSchema = z.string().regex(querySignedIntegerPattern).transform((value) => Number(value)).pipe(centerAgentRoutineRunScheduledForMsSchema);\nconst queryLimitSchema = z.string().regex(queryIntegerPattern).transform((value) => Number(value)).pipe(routineRunLimitSchema);\nconst listCenterAgentRoutineRunsQuerySchema = z.strictObject({\n\tbeforeScheduledFor: queryScheduledForMsSchema.optional(),\n\t...routineContractQueryShape,\n\tlimit: queryLimitSchema.optional()\n});\nconst listCenterAgentRoutineRunsResponseSchema = z.strictObject({\n\torganizationId: trimmedIdentifierSchema,\n\troutineId: trimmedIdentifierSchema,\n\truns: z.array(centerAgentRoutineRunSchema).max(100)\n});\nconst listCenterAgentRoutineRunsLegacyV1ResponseSchema = z.strictObject({\n\torganizationId: trimmedIdentifierSchema,\n\troutineId: trimmedIdentifierSchema,\n\truns: z.array(centerAgentRoutineRunLegacyV1Schema).max(100)\n});\nconst routineRpcContextShape = { context: openMeldRequestContextSchema.optional() };\nconst routineRpcContractShape = { contract: centerAgentRoutineContractSchema.optional() };\nconst listCenterAgentRoutinesRpcInputSchema = z.strictObject({\n\t...routineRpcContextShape,\n\tcontract: centerAgentRoutineListContractSchema.optional()\n});\nconst listCenterAgentRoutineTargetSpacesRpcInputSchema = z.strictObject(routineRpcContextShape);\nconst createCenterAgentRoutineRpcInputSchema = z.strictObject({\n\t...routineRpcContextShape,\n\t...routineRpcContractShape,\n\t...createCenterAgentRoutineBodySchema.shape\n}).superRefine(validateRoutineScheduleAndDestination);\nconst updateCenterAgentRoutineRpcInputSchema = z.strictObject({\n\t...routineRpcContextShape,\n\t...routineRpcContractShape,\n\t...centerAgentRoutineRouteParamsSchema.shape,\n\t...routineUpdateShape\n}).refine(hasRoutineUpdate, \"At least one Routine field must be updated.\");\nconst pauseCenterAgentRoutineRpcInputSchema = z.strictObject({\n\t...routineRpcContextShape,\n\t...routineRpcContractShape,\n\t...centerAgentRoutineRouteParamsSchema.shape\n});\nconst resumeCenterAgentRoutineRpcInputSchema = z.strictObject({\n\t...routineRpcContextShape,\n\t...routineRpcContractShape,\n\t...centerAgentRoutineRouteParamsSchema.shape\n});\nconst deleteCenterAgentRoutineRpcInputSchema = z.strictObject({\n\t...routineRpcContextShape,\n\t...routineRpcContractShape,\n\t...centerAgentRoutineRouteParamsSchema.shape\n});\nconst listCenterAgentRoutineRunsRpcInputSchema = z.strictObject({\n\tbeforeScheduledFor: centerAgentRoutineRunScheduledForMsSchema.optional(),\n\t...routineRpcContextShape,\n\t...routineRpcContractShape,\n\tlimit: routineRunLimitSchema.optional(),\n\t...centerAgentRoutineRouteParamsSchema.shape\n});\nconst centerAgentRoutineToolSpeakerSchema = centerAgentVerifiedMemberToolSpeakerSchema;\nconst routineToolRpcContextShape = {\n\tcontext: openMeldRequestContextSchema,\n\tspeakerMember: centerAgentRoutineToolSpeakerSchema\n};\nconst centerAgentListRoutinesToolRpcInputSchema = z.strictObject(routineToolRpcContextShape);\nconst centerAgentCreateRoutineToolRpcInputSchema = z.strictObject({\n\t...routineToolRpcContextShape,\n\t...createCenterAgentRoutineBodySchema.shape\n}).superRefine(validateRoutineScheduleAndDestination);\nconst centerAgentUpdateRoutineToolRpcInputSchema = z.strictObject({\n\t...routineToolRpcContextShape,\n\t...centerAgentRoutineRouteParamsSchema.shape,\n\t...routineUpdateShape\n}).refine(hasRoutineUpdate, \"At least one Routine field must be updated.\");\nconst centerAgentDeleteRoutineToolRpcInputSchema = z.strictObject({\n\t...routineToolRpcContextShape,\n\t...centerAgentRoutineRouteParamsSchema.shape\n});\nconst centerAgentPauseRoutineToolRpcInputSchema = z.strictObject({\n\t...routineToolRpcContextShape,\n\t...centerAgentRoutineRouteParamsSchema.shape\n});\nconst centerAgentResumeRoutineToolRpcInputSchema = z.strictObject({\n\t...routineToolRpcContextShape,\n\t...centerAgentRoutineRouteParamsSchema.shape\n});\nfunction hasRoutineUpdate(value) {\n\treturn value.authorizedActions !== void 0 || value.cronExpression !== void 0 || value.destinationKind !== void 0 || value.externalActionPolicy !== void 0 || value.instructions !== void 0 || value.name !== void 0 || value.runAtMs !== void 0 || value.scheduleKind !== void 0 || value.slackChannelId !== void 0 || value.slackConversationId !== void 0 || value.slackTeamId !== void 0 || value.slackThreadLabel !== void 0 || value.slackThreadTs !== void 0 || value.targetSpaceId !== void 0 || value.timezone !== void 0;\n}\nfunction validateRoutineScheduleAndDestination(value, context) {\n\tconst recurringScheduleComplete = Boolean(value.cronExpression && value.timezone && value.runAtMs === null);\n\tconst onceScheduleComplete = Boolean(value.runAtMs !== null && value.cronExpression === null && value.timezone === null);\n\tif (value.scheduleKind === \"cron\" && !recurringScheduleComplete || value.scheduleKind === \"once\" && !onceScheduleComplete) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"A recurring Routine requires cronExpression and timezone; a one-time Routine requires only runAtMs.\",\n\t\tpath: [\"scheduleKind\"]\n\t});\n\tconst spaceDestinationComplete = Boolean(value.targetSpaceId && !value.slackTeamId && !value.slackChannelId && !value.slackThreadTs && !value.slackConversationId);\n\tconst slackDestinationComplete = Boolean(!value.targetSpaceId && value.slackTeamId && value.slackChannelId && value.slackThreadTs && value.slackConversationId);\n\tif (value.destinationKind === \"space\" && !spaceDestinationComplete || value.destinationKind === \"slack_thread\" && !slackDestinationComplete) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"A Space destination requires targetSpaceId; a Slack thread destination requires the durable Slack thread locator.\",\n\t\tpath: [\"destinationKind\"]\n\t});\n}\nfunction validateRoutineRunScheduledFor(value, context) {\n\tif (value.scheduledFor >= 0 || value.status === \"skipped\" && value.failureCode === \"routine.schedule_invalid\") return;\n\tcontext.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"A negative Run scheduledFor is reserved for invalid-schedule quarantine evidence.\",\n\t\tpath: [\"scheduledFor\"]\n\t});\n}\n//#endregion\nexport { CENTER_AGENT_ROUTINE_AUTHORIZED_ACTIONS, CENTER_AGENT_ROUTINE_CRON_EXPRESSION_MAX_CHARS, CENTER_AGENT_ROUTINE_DESTINATION_KINDS, CENTER_AGENT_ROUTINE_ERROR_CODES, CENTER_AGENT_ROUTINE_EXTERNAL_ACTION_POLICIES, CENTER_AGENT_ROUTINE_INSTRUCTIONS_MAX_CHARS, CENTER_AGENT_ROUTINE_LIMIT, CENTER_AGENT_ROUTINE_MANAGEMENT_CONTRACT, CENTER_AGENT_ROUTINE_NAME_MAX_CHARS, CENTER_AGENT_ROUTINE_PRACTICAL_CONTRACT, CENTER_AGENT_ROUTINE_RUN_FAILURE_DETAIL_MAX_CHARS, CENTER_AGENT_ROUTINE_RUN_LIST_MAX_LIMIT, CENTER_AGENT_ROUTINE_RUN_STATUSES, CENTER_AGENT_ROUTINE_SLACK_THREAD_LABEL_MAX_CHARS, CENTER_AGENT_ROUTINE_STATUSES, CENTER_AGENT_ROUTINE_TARGET_SPACE_KINDS, CENTER_AGENT_ROUTINE_TARGET_SPACE_LIST_MAX_ITEMS, CENTER_AGENT_ROUTINE_TIMEZONE_MAX_CHARS, centerAgentCreateRoutineToolRpcInputSchema, centerAgentDeleteRoutineToolRpcInputSchema, centerAgentListRoutinesToolRpcInputSchema, centerAgentPauseRoutineToolRpcInputSchema, centerAgentResumeRoutineToolRpcInputSchema, centerAgentRoutineAuthorizedActionSchema, centerAgentRoutineAuthorizedActionsSchema, centerAgentRoutineCapabilityStateSchema, centerAgentRoutineContractQuerySchema, centerAgentRoutineContractSchema, centerAgentRoutineDestinationKindSchema, centerAgentRoutineExternalActionPolicySchema, centerAgentRoutineLastRunSummarySchema, centerAgentRoutineLegacyV1Schema, centerAgentRoutineListContractSchema, centerAgentRoutineManagementSchema, centerAgentRoutineMutationLegacyV1ResponseSchema, centerAgentRoutineRouteParamsSchema, centerAgentRoutineRunLegacyV1Schema, centerAgentRoutineRunScheduledForMsSchema, centerAgentRoutineRunSchema, centerAgentRoutineRunStatusSchema, centerAgentRoutineScheduleKindSchema, centerAgentRoutineSchema, centerAgentRoutineStatusSchema, centerAgentRoutineTargetSpaceKindSchema, centerAgentRoutineTargetSpaceSchema, centerAgentRoutineToolSpeakerSchema, centerAgentUpdateRoutineToolRpcInputSchema, createCenterAgentRoutineBodySchema, createCenterAgentRoutineResponseSchema, createCenterAgentRoutineRpcInputSchema, deleteCenterAgentRoutineBodySchema, deleteCenterAgentRoutineResponseSchema, deleteCenterAgentRoutineRpcInputSchema, listCenterAgentRoutineRunsLegacyV1ResponseSchema, listCenterAgentRoutineRunsQuerySchema, listCenterAgentRoutineRunsResponseSchema, listCenterAgentRoutineRunsRpcInputSchema, listCenterAgentRoutineTargetSpacesQuerySchema, listCenterAgentRoutineTargetSpacesResponseSchema, listCenterAgentRoutineTargetSpacesRpcInputSchema, listCenterAgentRoutinesLegacyV1ResponseSchema, listCenterAgentRoutinesManagementResponseSchema, listCenterAgentRoutinesQuerySchema, listCenterAgentRoutinesResponseSchema, listCenterAgentRoutinesRpcInputSchema, pauseCenterAgentRoutineBodySchema, pauseCenterAgentRoutineResponseSchema, pauseCenterAgentRoutineRpcInputSchema, resumeCenterAgentRoutineBodySchema, resumeCenterAgentRoutineResponseSchema, resumeCenterAgentRoutineRpcInputSchema, updateCenterAgentRoutineBodySchema, updateCenterAgentRoutineResponseSchema, updateCenterAgentRoutineRpcInputSchema };\n\n//# sourceMappingURL=center-agent-routines.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/http/feedback.ts\nconst FEEDBACK_SUBMIT_INVALID_INPUT_ERROR_CODE = \"feedback.submit.invalid_input\";\nconst FEEDBACK_SUBMIT_INBOX_NOT_FOUND_ERROR_CODE = \"feedback.submit.inbox_not_found\";\nconst FEEDBACK_SUBMIT_RATE_LIMITED_ERROR_CODE = \"feedback.submit.rate_limited\";\nconst FEEDBACK_SUBMIT_DISABLED_ERROR_CODE = \"feedback.submit.disabled\";\nconst FEEDBACK_ISSUE_NOT_FOUND_ERROR_CODE = \"feedback.issue.not_found\";\nconst FEEDBACK_ISSUE_INVALID_INPUT_ERROR_CODE = \"feedback.issue.invalid_input\";\nconst FEEDBACK_ISSUE_INVALID_TRANSITION_ERROR_CODE = \"feedback.issue.invalid_transition\";\nconst FEEDBACK_SUBMIT_ERROR_CODES = [\n\tFEEDBACK_SUBMIT_INVALID_INPUT_ERROR_CODE,\n\tFEEDBACK_SUBMIT_INBOX_NOT_FOUND_ERROR_CODE,\n\tFEEDBACK_SUBMIT_RATE_LIMITED_ERROR_CODE,\n\tFEEDBACK_SUBMIT_DISABLED_ERROR_CODE\n];\nconst FEEDBACK_ISSUE_ERROR_CODES = [\n\tFEEDBACK_ISSUE_NOT_FOUND_ERROR_CODE,\n\tFEEDBACK_ISSUE_INVALID_INPUT_ERROR_CODE,\n\tFEEDBACK_ISSUE_INVALID_TRANSITION_ERROR_CODE\n];\nconst boundedIdentifierSchema = z.string().trim().min(1).max(256);\nconst timestampMsSchema = z.number().int().nonnegative();\nconst FEEDBACK_ISSUE_CATEGORIES = [\n\t\"bug\",\n\t\"experience\",\n\t\"idea\",\n\t\"question\"\n];\nconst feedbackIssueCategorySchema = z.enum(FEEDBACK_ISSUE_CATEGORIES);\nconst feedbackSubmitterKindSchema = z.enum([\n\t\"human\",\n\t\"local_agent\",\n\t\"center_agent\"\n]);\nconst FEEDBACK_ISSUE_STATUSES = [\n\t\"new\",\n\t\"dismissed\",\n\t\"investigating\",\n\t\"ticketed\",\n\t\"needs_human\",\n\t\"resolved\"\n];\nconst feedbackIssueStatusSchema = z.enum(FEEDBACK_ISSUE_STATUSES);\nconst feedbackSubmitErrorCodeSchema = z.enum(FEEDBACK_SUBMIT_ERROR_CODES);\nconst feedbackIssueErrorCodeSchema = z.enum(FEEDBACK_ISSUE_ERROR_CODES);\nconst feedbackClientContextSchema = z.strictObject({\n\tclientKind: z.enum([\n\t\t\"web\",\n\t\t\"cli\",\n\t\t\"desktop\",\n\t\t\"center_agent\",\n\t\t\"other\"\n\t]).optional(),\n\tclientVersion: z.string().max(64).optional(),\n\tos: z.string().max(64).optional()\n});\nconst submitFeedbackIssueRequestSchema = z.strictObject({\n\tcategory: feedbackIssueCategorySchema,\n\tsummary: z.string().min(1).max(200),\n\tdetails: z.string().max(4e3).optional(),\n\tsubmitterKind: feedbackSubmitterKindSchema,\n\tsourceOrganizationId: z.string().optional(),\n\tcontactEmail: z.email().optional(),\n\tclientContext: feedbackClientContextSchema.optional()\n});\nconst submitFeedbackIssueResponseSchema = z.strictObject({\n\tok: z.literal(true),\n\tissueId: z.string().min(1)\n});\nconst feedbackIssueSubmitRpcRequestSchema = z.strictObject({\n\tinboxKey: z.string().min(1).max(256),\n\trequest: submitFeedbackIssueRequestSchema,\n\tsubmitterUserId: z.string().min(1).nullable()\n});\nconst feedbackIssueCursorSchema = z.strictObject({\n\tcreatedAtMs: timestampMsSchema,\n\tissueId: boundedIdentifierSchema\n});\nconst feedbackIssueRecordSchema = z.strictObject({\n\tissueId: boundedIdentifierSchema,\n\tinboxId: boundedIdentifierSchema,\n\torganizationId: boundedIdentifierSchema,\n\tcategory: feedbackIssueCategorySchema,\n\tsummary: z.string().min(1).max(200),\n\tdetails: z.string().max(4e3).nullable(),\n\tsubmitterKind: feedbackSubmitterKindSchema,\n\tsubmitterUserId: z.string().nullable(),\n\tsourceOrganizationId: z.string().nullable(),\n\tcontactEmail: z.email().nullable(),\n\tclientContext: feedbackClientContextSchema.nullable(),\n\tstatus: feedbackIssueStatusSchema,\n\ttriageNote: z.string().max(2e3).nullable(),\n\tcreatedAtMs: timestampMsSchema,\n\tupdatedAtMs: timestampMsSchema\n});\nconst listFeedbackIssuesForOrganizationRequestSchema = z.strictObject({\n\torganizationId: boundedIdentifierSchema,\n\tstatus: feedbackIssueStatusSchema.optional(),\n\tcursor: feedbackIssueCursorSchema.optional(),\n\tlimit: z.number().int().min(1).max(100).optional()\n});\nconst listFeedbackIssuesForOrganizationResponseSchema = z.strictObject({\n\titems: z.array(feedbackIssueRecordSchema),\n\tnextCursor: feedbackIssueCursorSchema.nullable()\n});\nconst updateFeedbackIssueStatusForOrganizationRequestSchema = z.strictObject({\n\torganizationId: boundedIdentifierSchema,\n\tissueId: boundedIdentifierSchema,\n\tstatus: feedbackIssueStatusSchema,\n\ttriageNote: z.string().max(2e3).optional()\n});\nconst feedbackReportingPolicyResponseSchema = z.strictObject({\n\torganizationId: boundedIdentifierSchema,\n\treportingEnabled: z.boolean(),\n\tupdatedByUserId: boundedIdentifierSchema.nullable()\n});\nconst readFeedbackReportingPolicyRequestSchema = z.strictObject({ organizationId: boundedIdentifierSchema });\nconst updateFeedbackReportingPolicyBodySchema = z.strictObject({ reportingEnabled: z.boolean() });\n//#endregion\nexport { FEEDBACK_ISSUE_CATEGORIES, FEEDBACK_ISSUE_ERROR_CODES, FEEDBACK_ISSUE_INVALID_INPUT_ERROR_CODE, FEEDBACK_ISSUE_INVALID_TRANSITION_ERROR_CODE, FEEDBACK_ISSUE_NOT_FOUND_ERROR_CODE, FEEDBACK_ISSUE_STATUSES, FEEDBACK_SUBMIT_DISABLED_ERROR_CODE, FEEDBACK_SUBMIT_ERROR_CODES, FEEDBACK_SUBMIT_INBOX_NOT_FOUND_ERROR_CODE, FEEDBACK_SUBMIT_INVALID_INPUT_ERROR_CODE, FEEDBACK_SUBMIT_RATE_LIMITED_ERROR_CODE, feedbackClientContextSchema, feedbackIssueCategorySchema, feedbackIssueCursorSchema, feedbackIssueErrorCodeSchema, feedbackIssueRecordSchema, feedbackIssueStatusSchema, feedbackIssueSubmitRpcRequestSchema, feedbackReportingPolicyResponseSchema, feedbackSubmitErrorCodeSchema, feedbackSubmitterKindSchema, listFeedbackIssuesForOrganizationRequestSchema, listFeedbackIssuesForOrganizationResponseSchema, readFeedbackReportingPolicyRequestSchema, submitFeedbackIssueRequestSchema, submitFeedbackIssueResponseSchema, updateFeedbackIssueStatusForOrganizationRequestSchema, updateFeedbackReportingPolicyBodySchema };\n\n//# sourceMappingURL=feedback.js.map","import { openMeldRequestContextSchema } from \"../daemon/profile-identity.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/profiles.ts\nconst ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });\nconst ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE = \"profile.additional_human_profile_creation_disabled\";\nconst ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE = \"Creating additional Human Profiles is currently unavailable. Use your default Human Profile, or create an Agent Profile.\";\nconst profileErrorStatusSchema = z.union([\n\tz.literal(400),\n\tz.literal(404),\n\tz.literal(409),\n\tz.literal(500)\n]);\nconst profileErrorResponseSchema = z.strictObject({\n\tok: z.literal(false),\n\tcode: z.string().min(1),\n\tmessage: z.string().min(1)\n});\nconst profileRpcErrorResponseSchema = profileErrorResponseSchema.extend({ status: profileErrorStatusSchema });\nconst additionalHumanProfileCreationDisabledErrorResponseSchema = profileErrorResponseSchema.extend({\n\tcode: z.literal(ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE),\n\tmessage: z.literal(ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE)\n});\nconst additionalHumanProfileCreationDisabledRpcErrorResponseSchema = additionalHumanProfileCreationDisabledErrorResponseSchema.extend({ status: z.literal(409) });\nconst authProfileKindSchema = z.enum([\"human\", \"agent\"]);\nconst authProfileStatusSchema = z.enum([\"active\", \"disabled\"]);\nconst authProfileManagedRoleSchema = z.enum([\"openmeld_assistant\", \"center_agent\"]);\nconst authProfileViewManagedRoleSchema = authProfileManagedRoleSchema.nullish().transform((value) => value ?? null);\nconst authProfileViewSchema = z.strictObject({\n\topenMeldProfileId: z.string().min(1),\n\tprofileName: z.string().min(1),\n\tprofileHandle: z.string().min(1),\n\tprofileKind: authProfileKindSchema,\n\tisDefault: z.boolean(),\n\tstatus: authProfileStatusSchema,\n\townerUserId: z.string().min(1),\n\townerName: z.string().min(1).optional(),\n\tavatarUrl: z.string().min(1).optional(),\n\tsource: z.string().min(1),\n\tmanagedRole: authProfileViewManagedRoleSchema,\n\tdefaultProjectId: z.string().trim().min(1).nullable().optional(),\n\tcreatedByUserId: z.string().min(1).nullable(),\n\tcreatorProfileId: z.string().min(1).nullable(),\n\tlastUsedAt: ISO_DATE_TIME_SCHEMA.nullable(),\n\tcreatedAt: ISO_DATE_TIME_SCHEMA,\n\tupdatedAt: ISO_DATE_TIME_SCHEMA\n}).superRefine((profile, context) => {\n\tif (profile.defaultProjectId === void 0 || profile.profileKind === \"agent\" && profile.managedRole === null) return;\n\tcontext.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Default Project is only available for ordinary Agent Profiles.\",\n\t\tpath: [\"defaultProjectId\"]\n\t});\n});\nconst updateAgentProfileDefaultProjectBodySchema = z.strictObject({\n\texpectedOrganizationId: z.string().trim().min(1),\n\tdefaultProjectId: z.string().trim().min(1).nullable()\n});\nconst updateAgentProfileDefaultProjectRouteParamsSchema = z.strictObject({ agentProfileId: z.string().trim().min(1) });\nconst updateAgentProfileDefaultProjectRpcInputSchema = updateAgentProfileDefaultProjectBodySchema.extend({\n\tagentProfileId: updateAgentProfileDefaultProjectRouteParamsSchema.shape.agentProfileId,\n\tcontext: openMeldRequestContextSchema\n});\nconst createHumanProfileBodySchema = z.strictObject({\n\tprofileName: z.string().trim().min(1),\n\tcreatorProfileId: z.string().min(1).optional()\n});\nconst createAgentProfileBodySchema = z.strictObject({\n\tprofileName: z.string().trim().min(1),\n\tcreatorProfileId: z.string().min(1).optional()\n});\nconst ensureManagedAgentProfileBodySchema = z.strictObject({\n\tprofileName: z.string().trim().min(1),\n\tmanagedRole: authProfileManagedRoleSchema,\n\tcreatorProfileId: z.string().min(1).optional()\n});\nconst listProfilesResponseSchema = z.strictObject({\n\tok: z.literal(true),\n\tprofiles: z.array(authProfileViewSchema)\n});\nconst profileCapabilitiesResponseSchema = z.strictObject({\n\tok: z.literal(true),\n\tadditionalHumanProfileCreationEnabled: z.boolean()\n});\nconst resolveProfileResponseSchema = z.strictObject({\n\tok: z.literal(true),\n\tprofile: authProfileViewSchema\n});\nconst createHumanProfileResponseSchema = z.strictObject({\n\tok: z.literal(true),\n\tprofile: authProfileViewSchema\n});\nconst createAgentProfileResponseSchema = z.strictObject({\n\tok: z.literal(true),\n\tprofile: authProfileViewSchema\n});\nconst ensureManagedAgentProfileResponseSchema = z.strictObject({\n\tok: z.literal(true),\n\tprofile: authProfileViewSchema\n});\nconst updateProfileResponseSchema = z.strictObject({\n\tok: z.literal(true),\n\tprofile: authProfileViewSchema\n});\nconst updateAgentProfileDefaultProjectResponseSchema = updateProfileResponseSchema;\nconst deleteProfileResponseSchema = z.strictObject({\n\tok: z.literal(true),\n\tprofile: authProfileViewSchema\n});\n//#endregion\nexport { ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE, additionalHumanProfileCreationDisabledErrorResponseSchema, additionalHumanProfileCreationDisabledRpcErrorResponseSchema, authProfileKindSchema, authProfileManagedRoleSchema, authProfileStatusSchema, authProfileViewSchema, createAgentProfileBodySchema, createAgentProfileResponseSchema, createHumanProfileBodySchema, createHumanProfileResponseSchema, deleteProfileResponseSchema, ensureManagedAgentProfileBodySchema, ensureManagedAgentProfileResponseSchema, listProfilesResponseSchema, profileCapabilitiesResponseSchema, profileErrorResponseSchema, profileErrorStatusSchema, profileRpcErrorResponseSchema, resolveProfileResponseSchema, updateAgentProfileDefaultProjectBodySchema, updateAgentProfileDefaultProjectResponseSchema, updateAgentProfileDefaultProjectRouteParamsSchema, updateAgentProfileDefaultProjectRpcInputSchema, updateProfileResponseSchema };\n\n//# sourceMappingURL=profiles.js.map","import { agentProfileIdSchema, uuidProfileIdSchema } from \"../protocol/profile.js\";\nimport { getAgentExecutionReadinessResponseSchema } from \"./agent-execution-readiness.js\";\nimport { authProfileManagedRoleSchema } from \"./profiles.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/organization-directory.ts\nconst ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });\nconst trimmedNonEmptyStringSchema = z.string().trim().min(1);\nconst nullableTrimmedStringSchema = z.union([trimmedNonEmptyStringSchema, z.null()]);\nconst organizationDirectoryHumanProfileSchema = z.strictObject({\n\tlastUsedAt: z.union([ISO_DATE_TIME_SCHEMA, z.null()]).optional(),\n\tprofileId: uuidProfileIdSchema,\n\tprofileName: trimmedNonEmptyStringSchema,\n\tprofileHandle: trimmedNonEmptyStringSchema,\n\tstatus: z.enum([\"active\", \"disabled\"])\n});\nconst organizationDirectoryMemberSchema = z.strictObject({\n\tmemberId: trimmedNonEmptyStringSchema,\n\torganizationId: trimmedNonEmptyStringSchema,\n\tuserId: trimmedNonEmptyStringSchema,\n\trole: trimmedNonEmptyStringSchema,\n\tjoinedAt: ISO_DATE_TIME_SCHEMA,\n\tuser: z.strictObject({\n\t\tid: trimmedNonEmptyStringSchema,\n\t\tname: trimmedNonEmptyStringSchema,\n\t\temail: trimmedNonEmptyStringSchema,\n\t\timage: nullableTrimmedStringSchema\n\t}),\n\thumanProfile: organizationDirectoryHumanProfileSchema.nullable()\n});\nconst organizationDirectoryAgentProfileIdentitySchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tprofileId: agentProfileIdSchema,\n\tprofileName: trimmedNonEmptyStringSchema,\n\tprofileHandle: trimmedNonEmptyStringSchema,\n\tprofileKind: z.literal(\"agent\"),\n\tisDefault: z.literal(false),\n\tstatus: z.enum([\"active\", \"disabled\"]),\n\townerUserId: trimmedNonEmptyStringSchema,\n\townerName: trimmedNonEmptyStringSchema.optional(),\n\tavatarUrl: trimmedNonEmptyStringSchema.optional(),\n\tsource: trimmedNonEmptyStringSchema,\n\tmanagedRole: z.union([authProfileManagedRoleSchema, z.null()]),\n\tcreatedByUserId: nullableTrimmedStringSchema,\n\tcreatorProfileId: nullableTrimmedStringSchema,\n\tlastUsedAt: z.union([ISO_DATE_TIME_SCHEMA, z.null()]),\n\tcreatedAt: ISO_DATE_TIME_SCHEMA,\n\tupdatedAt: ISO_DATE_TIME_SCHEMA\n});\nconst organizationDirectoryAgentProfileSchema = organizationDirectoryAgentProfileIdentitySchema.extend({\n\tisCenterAgent: z.boolean().optional(),\n\treadiness: getAgentExecutionReadinessResponseSchema\n});\nconst organizationDirectoryResponseSchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tgeneratedAt: ISO_DATE_TIME_SCHEMA,\n\tmembers: z.array(organizationDirectoryMemberSchema),\n\tagentProfiles: z.array(organizationDirectoryAgentProfileSchema)\n});\n//#endregion\nexport { organizationDirectoryAgentProfileIdentitySchema, organizationDirectoryAgentProfileSchema, organizationDirectoryHumanProfileSchema, organizationDirectoryMemberSchema, organizationDirectoryResponseSchema };\n\n//# sourceMappingURL=organization-directory.js.map","import { openMeldRequestContextSchema } from \"../daemon/profile-identity.js\";\nimport { centerAgentToolSpeakerSchema } from \"./center-agent-speaker.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/organization-skills.ts\nconst ORGANIZATION_SKILL_NAME_MAX_CHARS = 64;\nconst ORGANIZATION_SKILL_DESCRIPTION_MAX_CHARS = 1024;\nconst ORGANIZATION_SKILL_INSTRUCTIONS_MAX_CHARS = 1e5;\nconst ORGANIZATION_SKILL_FILE_MAX_BYTES = 256e3;\nconst ORGANIZATION_SKILL_BUNDLE_MAX_BYTES = 2e6;\nconst ORGANIZATION_SKILL_FILE_LIMIT = 128;\nconst ORGANIZATION_SKILL_RUNTIME_RELEASE_LIMIT = 64;\nconst ORGANIZATION_SKILL_RUNTIME_CATALOG_MAX_BYTES = 16e6;\nconst ORGANIZATION_SKILL_OPERATION_ID_MAX_CHARS = 256;\nconst ORGANIZATION_SKILL_ERROR_CODES = [\n\t\"organization_skill.bundle_too_large\",\n\t\"organization_skill.edit_forbidden\",\n\t\"organization_skill.file_limit_reached\",\n\t\"organization_skill.frontmatter_invalid\",\n\t\"organization_skill.github_response_invalid\",\n\t\"organization_skill.github_selection_required\",\n\t\"organization_skill.github_source_changed\",\n\t\"organization_skill.github_tree_too_large\",\n\t\"organization_skill.github_unavailable\",\n\t\"organization_skill.github_url_invalid\",\n\t\"organization_skill.human_actor_required\",\n\t\"organization_skill.invalid_bundle\",\n\t\"organization_skill.maintainer_not_member\",\n\t\"organization_skill.manage_forbidden\",\n\t\"organization_skill.name_exists\",\n\t\"organization_skill.not_found\",\n\t\"organization_skill.operation_conflict\",\n\t\"organization_skill.operation_in_progress\",\n\t\"organization_skill.organization_context_changed\",\n\t\"organization_skill.release_digest_mismatch\",\n\t\"organization_skill.release_invalid\",\n\t\"organization_skill.release_missing\",\n\t\"organization_skill.release_object_missing\",\n\t\"organization_skill.runtime_catalog_too_large\",\n\t\"organization_skill.runtime_release_limit\",\n\t\"organization_skill.skill_markdown_invalid\",\n\t\"organization_skill.skill_markdown_missing\",\n\t\"organization_skill.store_unavailable\",\n\t\"organization_skill.unsafe_bundle\",\n\t\"organization_skill.version_conflict\"\n];\nconst identifierSchema = z.string().trim().min(1).max(256);\nconst isoDateTimeSchema = z.iso.datetime({ offset: true });\nconst digestSchema = z.string().regex(/^[a-f0-9]{64}$/);\nconst skillNameSchema = z.string().trim().min(1).max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, \"Skill names use lowercase letters, numbers, and single hyphens.\");\nconst descriptionSchema = z.string().trim().min(1).max(ORGANIZATION_SKILL_DESCRIPTION_MAX_CHARS);\nconst instructionsSchema = z.string().max(ORGANIZATION_SKILL_INSTRUCTIONS_MAX_CHARS);\nconst sourceUrlSchema = z.url().max(2048);\nconst operationIdSchema = z.string().trim().min(1).max(256);\nconst metadataSchema = z.record(z.string().trim().min(1).max(128), z.string().max(1024));\nconst organizationSkillGitHubSourceSchema = z.strictObject({\n\tcommitSha: z.string().regex(/^[a-f0-9]{40}$/),\n\tkind: z.literal(\"github\"),\n\tpath: z.string().max(1024),\n\trepository: sourceUrlSchema\n});\nconst organizationSkillSourceSchema = z.discriminatedUnion(\"kind\", [z.strictObject({ kind: z.literal(\"created\") }), organizationSkillGitHubSourceSchema]);\nconst organizationSkillPortableMetadataSchema = z.strictObject({\n\tallowedTools: z.string().max(2048).nullable(),\n\tcompatibility: z.string().max(500).nullable(),\n\tdescription: descriptionSchema,\n\tlicense: z.string().max(1024).nullable(),\n\tmetadata: metadataSchema,\n\tname: skillNameSchema\n});\nconst organizationSkillFileSchema = z.strictObject({\n\tcontent: z.string().max(ORGANIZATION_SKILL_FILE_MAX_BYTES),\n\tencoding: z.enum([\"base64\", \"utf8\"]),\n\tmediaType: z.string().trim().min(1).max(256),\n\tpath: z.string().trim().min(1).max(1024).refine(isSafePortableSkillPath, \"Skill file path is not safe.\"),\n\tsize: z.number().int().nonnegative().max(ORGANIZATION_SKILL_FILE_MAX_BYTES)\n});\nconst organizationSkillBundleSchema = z.strictObject({\n\tfiles: z.array(organizationSkillFileSchema).max(128),\n\tinstructions: instructionsSchema,\n\tportable: organizationSkillPortableMetadataSchema\n}).superRefine((bundle, context) => {\n\tconst normalizedPaths = /* @__PURE__ */ new Set();\n\tlet totalSize = new TextEncoder().encode(bundle.instructions).byteLength;\n\tfor (const [index, file] of bundle.files.entries()) {\n\t\tconst normalized = file.path.normalize(\"NFC\");\n\t\tif (normalizedPaths.has(normalized)) context.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"Skill file paths must be unique after normalization.\",\n\t\t\tpath: [\n\t\t\t\t\"files\",\n\t\t\t\tindex,\n\t\t\t\t\"path\"\n\t\t\t]\n\t\t});\n\t\tif (normalized === \"SKILL.md\") context.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"SKILL.md is represented by the portable Skill fields.\",\n\t\t\tpath: [\n\t\t\t\t\"files\",\n\t\t\t\tindex,\n\t\t\t\t\"path\"\n\t\t\t]\n\t\t});\n\t\tnormalizedPaths.add(normalized);\n\t\tconst actualSize = readOrganizationSkillFileSize(file);\n\t\tif (actualSize === null) {\n\t\t\tcontext.addIssue({\n\t\t\t\tcode: \"custom\",\n\t\t\t\tmessage: \"Skill file content is not valid base64.\",\n\t\t\t\tpath: [\n\t\t\t\t\t\"files\",\n\t\t\t\t\tindex,\n\t\t\t\t\t\"content\"\n\t\t\t\t]\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (actualSize !== file.size) context.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"Skill file size does not match its content.\",\n\t\t\tpath: [\n\t\t\t\t\"files\",\n\t\t\t\tindex,\n\t\t\t\t\"size\"\n\t\t\t]\n\t\t});\n\t\tif (actualSize > 256e3) context.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"Skill file is too large.\",\n\t\t\tpath: [\"files\", index]\n\t\t});\n\t\ttotalSize += actualSize;\n\t}\n\tif (totalSize > 2e6) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Skill bundle is too large.\",\n\t\tpath: [\"files\"]\n\t});\n});\nconst organizationSkillReleaseSummarySchema = z.strictObject({\n\tcreatedAt: isoDateTimeSchema,\n\tcreatedByUserId: identifierSchema,\n\tdigest: digestSchema,\n\tid: identifierSchema,\n\tsource: organizationSkillSourceSchema\n});\nconst organizationSkillPermissionsSchema = z.strictObject({\n\tcanEdit: z.boolean(),\n\tcanManage: z.boolean()\n});\nconst organizationSkillSummarySchema = z.strictObject({\n\tactiveRelease: organizationSkillReleaseSummarySchema,\n\tcreatedAt: isoDateTimeSchema,\n\tdescription: descriptionSchema,\n\tenabled: z.boolean(),\n\tid: identifierSchema,\n\tname: skillNameSchema,\n\torganizationId: identifierSchema,\n\tpermissions: organizationSkillPermissionsSchema,\n\tsource: organizationSkillSourceSchema,\n\tupdatedAt: isoDateTimeSchema,\n\tversion: z.number().int().positive()\n});\nconst organizationSkillSchema = organizationSkillSummarySchema.extend({\n\tbundle: organizationSkillBundleSchema,\n\tmaintainerUserIds: z.array(identifierSchema),\n\treleases: z.array(organizationSkillReleaseSummarySchema)\n});\nconst listOrganizationSkillsQuerySchema = z.strictObject({});\nconst listOrganizationSkillsResponseSchema = z.strictObject({\n\tcanManage: z.boolean(),\n\torganizationId: identifierSchema,\n\tskills: z.array(organizationSkillSummarySchema)\n});\nconst organizationSkillRouteParamsSchema = z.strictObject({ skillId: identifierSchema });\nconst getOrganizationSkillResponseSchema = z.strictObject({ skill: organizationSkillSchema });\nconst createOrganizationSkillBodySchema = z.strictObject({\n\tdescription: descriptionSchema,\n\texpectedOrganizationId: identifierSchema,\n\tinstructions: instructionsSchema,\n\tname: skillNameSchema\n});\nconst createOrganizationSkillResponseSchema = z.strictObject({ skill: organizationSkillSchema });\nconst updateOrganizationSkillBodySchema = z.strictObject({\n\tbundle: organizationSkillBundleSchema,\n\texpectedActiveReleaseId: identifierSchema,\n\texpectedOrganizationId: identifierSchema,\n\texpectedVersion: z.number().int().positive()\n});\nconst updateOrganizationSkillResponseSchema = z.strictObject({ skill: organizationSkillSchema });\nconst setOrganizationSkillEnabledBodySchema = z.strictObject({\n\tenabled: z.boolean(),\n\texpectedOrganizationId: identifierSchema,\n\texpectedVersion: z.number().int().positive()\n});\nconst setOrganizationSkillEnabledResponseSchema = z.strictObject({ skill: organizationSkillSchema });\nconst setOrganizationSkillMaintainersBodySchema = z.strictObject({\n\texpectedOrganizationId: identifierSchema,\n\texpectedVersion: z.number().int().positive(),\n\tmaintainerUserIds: z.array(identifierSchema).max(100)\n});\nconst setOrganizationSkillMaintainersResponseSchema = z.strictObject({ skill: organizationSkillSchema });\nconst deleteOrganizationSkillBodySchema = z.strictObject({\n\texpectedOrganizationId: identifierSchema,\n\texpectedVersion: z.number().int().positive()\n});\nconst deleteOrganizationSkillResponseSchema = z.strictObject({\n\tdeleted: z.literal(true),\n\torganizationId: identifierSchema,\n\tskillId: identifierSchema\n});\nconst importOrganizationSkillFromGitHubBodySchema = z.strictObject({\n\texpectedCommitSha: z.string().regex(/^[a-f0-9]{40}$/).optional(),\n\texpectedOrganizationId: identifierSchema,\n\turl: sourceUrlSchema\n});\nconst importOrganizationSkillFromGitHubResponseSchema = z.strictObject({ skill: organizationSkillSchema });\nconst previewOrganizationSkillFromGitHubBodySchema = z.strictObject({\n\texpectedOrganizationId: identifierSchema,\n\turl: sourceUrlSchema\n});\nconst organizationSkillGitHubPreviewSchema = z.strictObject({\n\tfiles: z.array(organizationSkillFileSchema.pick({\n\t\tencoding: true,\n\t\tmediaType: true,\n\t\tpath: true,\n\t\tsize: true\n\t})),\n\tinstructionsCharacters: z.number().int().nonnegative(),\n\tportable: organizationSkillPortableMetadataSchema,\n\tsource: organizationSkillGitHubSourceSchema,\n\twarnings: z.array(z.string().trim().min(1).max(1024))\n});\nconst previewOrganizationSkillFromGitHubResponseSchema = z.strictObject({\n\torganizationId: identifierSchema,\n\tpreview: organizationSkillGitHubPreviewSchema\n});\nconst centerAgentListOrganizationSkillsRpcInputSchema = z.strictObject({\n\taction: z.literal(\"list\"),\n\tcontext: openMeldRequestContextSchema,\n\tspeakerMember: centerAgentToolSpeakerSchema\n});\nconst centerAgentGetOrganizationSkillRpcInputSchema = z.strictObject({\n\taction: z.literal(\"get\"),\n\tcontext: openMeldRequestContextSchema,\n\tskillId: identifierSchema,\n\tspeakerMember: centerAgentToolSpeakerSchema\n});\nconst centerAgentPreviewOrganizationSkillFromGitHubRpcInputSchema = z.strictObject({\n\taction: z.literal(\"preview_github\"),\n\tcontext: openMeldRequestContextSchema,\n\tspeakerMember: centerAgentToolSpeakerSchema,\n\turl: sourceUrlSchema\n});\nconst centerAgentReadOrganizationSkillsRpcInputSchema = z.discriminatedUnion(\"action\", [\n\tcenterAgentListOrganizationSkillsRpcInputSchema,\n\tcenterAgentGetOrganizationSkillRpcInputSchema,\n\tcenterAgentPreviewOrganizationSkillFromGitHubRpcInputSchema\n]);\nconst centerAgentReadOrganizationSkillsResponseSchema = z.discriminatedUnion(\"action\", [\n\tz.strictObject({\n\t\taction: z.literal(\"list\"),\n\t\tcanManage: z.boolean(),\n\t\torganizationId: identifierSchema,\n\t\tskills: z.array(organizationSkillSummarySchema)\n\t}),\n\tz.strictObject({\n\t\taction: z.literal(\"get\"),\n\t\torganizationId: identifierSchema,\n\t\tskill: organizationSkillSchema\n\t}),\n\tz.strictObject({\n\t\taction: z.literal(\"preview_github\"),\n\t\torganizationId: identifierSchema,\n\t\tpreview: organizationSkillGitHubPreviewSchema\n\t})\n]);\nconst centerAgentCreateOrganizationSkillRpcInputSchema = z.strictObject({\n\taction: z.literal(\"create\"),\n\tbundle: organizationSkillBundleSchema,\n\tcontext: openMeldRequestContextSchema,\n\toperationId: operationIdSchema,\n\tspeakerMember: centerAgentToolSpeakerSchema\n});\nconst centerAgentImportOrganizationSkillFromGitHubRpcInputSchema = z.strictObject({\n\taction: z.literal(\"import_github\"),\n\tcontext: openMeldRequestContextSchema,\n\texpectedCommitSha: z.string().regex(/^[a-f0-9]{40}$/),\n\toperationId: operationIdSchema,\n\tspeakerMember: centerAgentToolSpeakerSchema,\n\turl: sourceUrlSchema\n});\nconst centerAgentInstallOrganizationSkillRpcInputSchema = z.discriminatedUnion(\"action\", [centerAgentCreateOrganizationSkillRpcInputSchema, centerAgentImportOrganizationSkillFromGitHubRpcInputSchema]);\nconst centerAgentInstallOrganizationSkillResponseSchema = z.discriminatedUnion(\"action\", [z.strictObject({\n\taction: z.literal(\"create\"),\n\torganizationId: identifierSchema,\n\tskill: organizationSkillSummarySchema\n}), z.strictObject({\n\taction: z.literal(\"import_github\"),\n\torganizationId: identifierSchema,\n\tskill: organizationSkillSummarySchema\n})]);\nconst organizationSkillRuntimeReleaseSchema = z.strictObject({\n\tbundle: organizationSkillBundleSchema,\n\tdigest: digestSchema,\n\treleaseId: identifierSchema,\n\tskillId: identifierSchema\n});\nconst organizationSkillRuntimeReleaseSelectionSchema = z.strictObject({\n\tdigest: digestSchema,\n\tname: skillNameSchema,\n\treleaseId: identifierSchema,\n\tskillId: identifierSchema\n});\nconst organizationSkillRuntimeSnapshotResponseSchema = z.strictObject({\n\torganizationId: identifierSchema,\n\treleases: z.array(organizationSkillRuntimeReleaseSchema).max(64)\n});\nconst listOrganizationSkillsRpcInputSchema = z.strictObject({ context: openMeldRequestContextSchema });\nconst getOrganizationSkillRpcInputSchema = z.strictObject({\n\tcontext: openMeldRequestContextSchema,\n\tskillId: identifierSchema\n});\nconst createOrganizationSkillRpcInputSchema = createOrganizationSkillBodySchema.extend({ context: openMeldRequestContextSchema });\nconst updateOrganizationSkillRpcInputSchema = updateOrganizationSkillBodySchema.extend({\n\tcontext: openMeldRequestContextSchema,\n\tskillId: identifierSchema\n});\nconst setOrganizationSkillEnabledRpcInputSchema = setOrganizationSkillEnabledBodySchema.extend({\n\tcontext: openMeldRequestContextSchema,\n\tskillId: identifierSchema\n});\nconst setOrganizationSkillMaintainersRpcInputSchema = setOrganizationSkillMaintainersBodySchema.extend({\n\tcontext: openMeldRequestContextSchema,\n\tskillId: identifierSchema\n});\nconst deleteOrganizationSkillRpcInputSchema = deleteOrganizationSkillBodySchema.extend({\n\tcontext: openMeldRequestContextSchema,\n\tskillId: identifierSchema\n});\nconst importOrganizationSkillFromGitHubRpcInputSchema = importOrganizationSkillFromGitHubBodySchema.extend({ context: openMeldRequestContextSchema });\nconst previewOrganizationSkillFromGitHubRpcInputSchema = previewOrganizationSkillFromGitHubBodySchema.extend({ context: openMeldRequestContextSchema });\nconst readOrganizationSkillRuntimeSnapshotRpcInputSchema = z.strictObject({\n\tcontext: openMeldRequestContextSchema,\n\treleases: z.array(organizationSkillRuntimeReleaseSelectionSchema).max(64)\n});\nconst recordOrganizationSkillActivationRpcInputSchema = z.strictObject({\n\tcontext: openMeldRequestContextSchema,\n\tdigest: digestSchema,\n\treleaseId: identifierSchema,\n\troutineRunId: identifierSchema.nullable(),\n\tskillId: identifierSchema,\n\tsubmissionId: identifierSchema\n});\nconst recordOrganizationSkillActivationResponseSchema = z.strictObject({ recorded: z.boolean() });\nfunction isSafePortableSkillPath(value) {\n\tif (value.startsWith(\"/\") || value.startsWith(\"\\\\\") || value.includes(\"\\\\\") || value.includes(\"\\0\")) return false;\n\treturn value.split(\"/\").every((segment) => segment.length > 0 && segment !== \".\" && segment !== \"..\");\n}\nfunction readOrganizationSkillFileSize(file) {\n\tif (file.encoding === \"utf8\") return new TextEncoder().encode(file.content).byteLength;\n\ttry {\n\t\treturn atob(file.content).length;\n\t} catch {\n\t\treturn null;\n\t}\n}\nfunction stringifyOrganizationSkillBundleCanonicalJson(bundle) {\n\treturn JSON.stringify(sortOrganizationSkillJson(bundle));\n}\nfunction sortOrganizationSkillJson(value) {\n\tif (Array.isArray(value)) return value.map(sortOrganizationSkillJson);\n\tif (value && typeof value === \"object\") return Object.fromEntries(Object.entries(value).sort(([left], [right]) => compareOrganizationSkillJsonKeys(left, right)).map(([key, item]) => [key, sortOrganizationSkillJson(item)]));\n\treturn value;\n}\nfunction compareOrganizationSkillJsonKeys(left, right) {\n\tif (left < right) return -1;\n\tif (left > right) return 1;\n\treturn 0;\n}\n//#endregion\nexport { ORGANIZATION_SKILL_BUNDLE_MAX_BYTES, ORGANIZATION_SKILL_DESCRIPTION_MAX_CHARS, ORGANIZATION_SKILL_ERROR_CODES, ORGANIZATION_SKILL_FILE_LIMIT, ORGANIZATION_SKILL_FILE_MAX_BYTES, ORGANIZATION_SKILL_INSTRUCTIONS_MAX_CHARS, ORGANIZATION_SKILL_NAME_MAX_CHARS, ORGANIZATION_SKILL_OPERATION_ID_MAX_CHARS, ORGANIZATION_SKILL_RUNTIME_CATALOG_MAX_BYTES, ORGANIZATION_SKILL_RUNTIME_RELEASE_LIMIT, centerAgentInstallOrganizationSkillResponseSchema, centerAgentInstallOrganizationSkillRpcInputSchema, centerAgentReadOrganizationSkillsResponseSchema, centerAgentReadOrganizationSkillsRpcInputSchema, createOrganizationSkillBodySchema, createOrganizationSkillResponseSchema, createOrganizationSkillRpcInputSchema, deleteOrganizationSkillBodySchema, deleteOrganizationSkillResponseSchema, deleteOrganizationSkillRpcInputSchema, getOrganizationSkillResponseSchema, getOrganizationSkillRpcInputSchema, importOrganizationSkillFromGitHubBodySchema, importOrganizationSkillFromGitHubResponseSchema, importOrganizationSkillFromGitHubRpcInputSchema, listOrganizationSkillsQuerySchema, listOrganizationSkillsResponseSchema, listOrganizationSkillsRpcInputSchema, organizationSkillBundleSchema, organizationSkillFileSchema, organizationSkillGitHubPreviewSchema, organizationSkillGitHubSourceSchema, organizationSkillPermissionsSchema, organizationSkillPortableMetadataSchema, organizationSkillReleaseSummarySchema, organizationSkillRouteParamsSchema, organizationSkillRuntimeReleaseSchema, organizationSkillRuntimeReleaseSelectionSchema, organizationSkillRuntimeSnapshotResponseSchema, organizationSkillSchema, organizationSkillSourceSchema, organizationSkillSummarySchema, previewOrganizationSkillFromGitHubBodySchema, previewOrganizationSkillFromGitHubResponseSchema, previewOrganizationSkillFromGitHubRpcInputSchema, readOrganizationSkillRuntimeSnapshotRpcInputSchema, recordOrganizationSkillActivationResponseSchema, recordOrganizationSkillActivationRpcInputSchema, setOrganizationSkillEnabledBodySchema, setOrganizationSkillEnabledResponseSchema, setOrganizationSkillEnabledRpcInputSchema, setOrganizationSkillMaintainersBodySchema, setOrganizationSkillMaintainersResponseSchema, setOrganizationSkillMaintainersRpcInputSchema, stringifyOrganizationSkillBundleCanonicalJson, updateOrganizationSkillBodySchema, updateOrganizationSkillResponseSchema, updateOrganizationSkillRpcInputSchema };\n\n//# sourceMappingURL=organization-skills.js.map","import { spacePasswordSchema } from \"./space-password.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-access-mode.ts\nconst SPACE_ACCESS_MODES = [\n\t\"public\",\n\t\"members_only\",\n\t\"public_view_join_password\",\n\t\"protected\"\n];\nfunction spaceAccessModeUsesPassword(accessMode) {\n\treturn accessMode === \"public_view_join_password\" || accessMode === \"protected\";\n}\nconst spaceAccessModeSchema = z.enum(SPACE_ACCESS_MODES);\nconst setSpaceAccessModeBodySchema = z.strictObject({\n\taccessMode: spaceAccessModeSchema,\n\tpassword: spacePasswordSchema.optional()\n});\nconst spaceAccessModeStateSchema = z.strictObject({\n\tspaceId: z.string().trim().min(1),\n\taccessMode: spaceAccessModeSchema,\n\tpasswordProtected: z.boolean()\n});\n//#endregion\nexport { SPACE_ACCESS_MODES, setSpaceAccessModeBodySchema, spaceAccessModeSchema, spaceAccessModeStateSchema, spaceAccessModeUsesPassword };\n\n//# sourceMappingURL=space-access-mode.js.map","import { agentProfileIdSchema, openMeldRuntimeProfileIdSchema, profileKindSchema, uuidProfileIdSchema } from \"../protocol/profile.js\";\nimport { spaceNameSchema } from \"./space-name.js\";\nimport { spaceAccessModeSchema } from \"./space-access-mode.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-meta.ts\nconst trimmedNonEmptyStringSchema = z.string().trim().min(1);\nconst isoDateTimeSchema = z.iso.datetime({ offset: true });\nconst MAX_SPACE_GUIDE_LENGTH = 4e3;\nconst spaceOrganizationVisibilitySchema = z.enum([\"public\", \"private\"]);\nconst spaceCreatorSchema = z.strictObject({\n\tprofileId: openMeldRuntimeProfileIdSchema,\n\tprofileName: trimmedNonEmptyStringSchema.optional(),\n\tkind: profileKindSchema.optional(),\n\tprofile: trimmedNonEmptyStringSchema.optional(),\n\townerUserId: trimmedNonEmptyStringSchema.optional(),\n\townerName: trimmedNonEmptyStringSchema.optional()\n}).superRefine((value, ctx) => {\n\tif (!value.kind) return;\n\tif ((value.kind === \"agent\" ? agentProfileIdSchema : uuidProfileIdSchema).safeParse(value.profileId).success) return;\n\tctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: value.kind === \"agent\" ? \"agent profileId must use agt_<UUID>\" : \"human/system profileId must be a UUID\",\n\t\tpath: [\"profileId\"]\n\t});\n});\nconst spaceStorageUsageSchema = z.strictObject({\n\tusedBytes: z.number().finite().min(0),\n\tsoftLimitBytes: z.number().finite().positive(),\n\tusagePercent: z.number().finite().min(0)\n});\nconst spaceDirectMessageMetaSchema = z.strictObject({\n\tconvertedAt: isoDateTimeSchema.optional(),\n\tpairKey: trimmedNonEmptyStringSchema\n});\nconst spaceMetaSchema = z.strictObject({\n\tspaceId: trimmedNonEmptyStringSchema,\n\torganizationId: trimmedNonEmptyStringSchema,\n\tvisibility: spaceOrganizationVisibilitySchema,\n\tname: trimmedNonEmptyStringSchema.optional(),\n\tpurpose: trimmedNonEmptyStringSchema.optional(),\n\tdirectMessage: spaceDirectMessageMetaSchema.optional(),\n\tcreator: spaceCreatorSchema.optional(),\n\tguide: trimmedNonEmptyStringSchema.optional(),\n\taccessMode: spaceAccessModeSchema.optional(),\n\tpasswordProtected: z.boolean().optional(),\n\tcreatedAt: isoDateTimeSchema.optional(),\n\tupdatedAt: isoDateTimeSchema.optional(),\n\tstorageUsage: spaceStorageUsageSchema.optional()\n});\nconst patchSpaceMetaResponseSchema = spaceMetaSchema;\nconst getSpaceMetaResponseSchema = spaceMetaSchema;\nconst patchSpaceMetaBodySchema = z.strictObject({\n\tname: spaceNameSchema.optional(),\n\tpurpose: z.string().optional(),\n\tguide: z.string().max(MAX_SPACE_GUIDE_LENGTH).optional()\n}).superRefine((value, ctx) => {\n\tif (value.name !== void 0 || value.purpose !== void 0 || value.guide !== void 0) return;\n\tctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Expected name, purpose or guide\"\n\t});\n}).transform((value) => ({\n\t...value.name === void 0 ? {} : { name: value.name },\n\t...value.purpose === void 0 ? {} : { purpose: value.purpose },\n\t...value.guide === void 0 ? {} : { guide: value.guide }\n}));\n//#endregion\nexport { MAX_SPACE_GUIDE_LENGTH, getSpaceMetaResponseSchema, patchSpaceMetaBodySchema, patchSpaceMetaResponseSchema, spaceCreatorSchema, spaceDirectMessageMetaSchema, spaceMetaSchema, spaceOrganizationVisibilitySchema, spaceStorageUsageSchema };\n\n//# sourceMappingURL=space-meta.js.map","import { spaceOrganizationVisibilitySchema } from \"./space-meta.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/organization-space-directory.ts\nconst ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });\nconst trimmedNonEmptyStringSchema = z.string().trim().min(1);\nconst nullableIsoDateTimeSchema = z.union([ISO_DATE_TIME_SCHEMA, z.null()]);\nconst organizationSpaceDirectoryItemSchema = z.strictObject({\n\tspaceId: trimmedNonEmptyStringSchema,\n\tname: trimmedNonEmptyStringSchema,\n\torganizationId: trimmedNonEmptyStringSchema,\n\tvisibility: spaceOrganizationVisibilitySchema,\n\tjoined: z.boolean(),\n\tlastJoinedAt: nullableIsoDateTimeSchema,\n\tspaceCreatedAt: nullableIsoDateTimeSchema,\n\tspaceUpdatedAt: nullableIsoDateTimeSchema,\n\tupdatedAt: ISO_DATE_TIME_SCHEMA\n});\nconst organizationSpaceDirectoryResponseSchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tgeneratedAt: ISO_DATE_TIME_SCHEMA,\n\tspaces: z.array(organizationSpaceDirectoryItemSchema)\n});\nconst organizationSpaceDirectoryWithMemberCountsItemSchema = organizationSpaceDirectoryItemSchema.extend({ activeMemberCount: z.number().int().nonnegative().nullable() });\nconst organizationSpaceDirectoryWithMemberCountsResponseSchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tgeneratedAt: ISO_DATE_TIME_SCHEMA,\n\tspaces: z.array(organizationSpaceDirectoryWithMemberCountsItemSchema)\n});\n//#endregion\nexport { organizationSpaceDirectoryItemSchema, organizationSpaceDirectoryResponseSchema, organizationSpaceDirectoryWithMemberCountsItemSchema, organizationSpaceDirectoryWithMemberCountsResponseSchema };\n\n//# sourceMappingURL=organization-space-directory.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/common/error-response.ts\nconst commonErrorSchema = z.strictObject({\n\tcode: z.string().min(1),\n\tmessage: z.string().min(1),\n\trequestId: z.string().min(1).optional(),\n\tdetails: z.unknown().optional()\n});\nconst errorResponseSchema = z.strictObject({\n\tok: z.literal(false),\n\terror: commonErrorSchema,\n\trequestId: z.string().min(1).optional()\n});\n//#endregion\nexport { commonErrorSchema, errorResponseSchema };\n\n//# sourceMappingURL=error-response.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/config/model-catalog.ts\nconst MODEL_CATALOG_SCHEMA_VERSION = 1;\nconst boundedIdentifierSchema = z.string().trim().min(1).max(256);\nconst boundedDisplayNameSchema = z.string().trim().min(1).max(256);\nconst nullableBoundedIdentifierSchema = boundedIdentifierSchema.nullable();\nconst hostedModelInputModalitySchema = z.enum([\"text\", \"image\"]);\nconst hostedModelReasoningLevelSchema = z.enum([\n\t\"off\",\n\t\"minimal\",\n\t\"low\",\n\t\"medium\",\n\t\"high\",\n\t\"xhigh\"\n]);\nconst modelCatalogHostedRuntimeSchema = z.strictObject({\n\tprovider: z.literal(\"openrouter\"),\n\tinputModalities: z.array(hostedModelInputModalitySchema).min(1),\n\tcontextWindow: z.number().int().positive(),\n\tmaxOutputTokens: z.number().int().positive(),\n\treasoningLevel: hostedModelReasoningLevelSchema\n});\nconst modelCatalogModelSchema = z.strictObject({\n\tid: boundedIdentifierSchema,\n\tdisplayName: boundedDisplayNameSchema,\n\thostedRuntime: modelCatalogHostedRuntimeSchema.optional(),\n\tunavailable: z.boolean(),\n\tsupportedReasoningLevels: z.array(boundedIdentifierSchema),\n\tminCliVersion: nullableBoundedIdentifierSchema\n});\nconst modelCatalogHostedRuntimePolicySchema = z.strictObject({\n\tautomaticModelFallback: z.literal(false),\n\timageUnderstandingModelId: boundedIdentifierSchema\n});\nconst modelCatalogAgentControllerSchema = z.strictObject({\n\tdefaultModelId: boundedIdentifierSchema,\n\thostedRuntimePolicy: modelCatalogHostedRuntimePolicySchema.optional(),\n\tmodels: z.array(modelCatalogModelSchema).min(1)\n}).superRefine((value, context) => {\n\tconst modelIds = /* @__PURE__ */ new Set();\n\tfor (const [index, model] of value.models.entries()) {\n\t\tif (modelIds.has(model.id)) context.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"model ids must be unique per agent controller\",\n\t\t\tpath: [\n\t\t\t\t\"models\",\n\t\t\t\tindex,\n\t\t\t\t\"id\"\n\t\t\t]\n\t\t});\n\t\tmodelIds.add(model.id);\n\t\tconst reasoningLevels = /* @__PURE__ */ new Set();\n\t\tfor (const [reasoningLevelIndex, reasoningLevel] of model.supportedReasoningLevels.entries()) {\n\t\t\tif (!reasoningLevels.has(reasoningLevel)) {\n\t\t\t\treasoningLevels.add(reasoningLevel);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcontext.addIssue({\n\t\t\t\tcode: \"custom\",\n\t\t\t\tmessage: \"reasoning levels must be unique per model\",\n\t\t\t\tpath: [\n\t\t\t\t\t\"models\",\n\t\t\t\t\tindex,\n\t\t\t\t\t\"supportedReasoningLevels\",\n\t\t\t\t\treasoningLevelIndex\n\t\t\t\t]\n\t\t\t});\n\t\t}\n\t}\n\tif (!modelIds.has(value.defaultModelId)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"defaultModelId must reference a listed model\",\n\t\tpath: [\"defaultModelId\"]\n\t});\n\tif (value.models.find((model) => model.id === value.defaultModelId)?.unavailable) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"defaultModelId must reference an available model\",\n\t\tpath: [\"defaultModelId\"]\n\t});\n\tif (!value.hostedRuntimePolicy) return;\n\tfor (const [index, model] of value.models.entries()) {\n\t\tif (model.hostedRuntime) continue;\n\t\tcontext.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"hosted controller models must define hostedRuntime\",\n\t\t\tpath: [\n\t\t\t\t\"models\",\n\t\t\t\tindex,\n\t\t\t\t\"hostedRuntime\"\n\t\t\t]\n\t\t});\n\t}\n\tconst imageUnderstandingModel = value.models.find((model) => model.id === value.hostedRuntimePolicy?.imageUnderstandingModelId);\n\tif (!imageUnderstandingModel) {\n\t\tcontext.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"imageUnderstandingModelId must reference a listed hosted model\",\n\t\t\tpath: [\"hostedRuntimePolicy\", \"imageUnderstandingModelId\"]\n\t\t});\n\t\treturn;\n\t}\n\tif (imageUnderstandingModel.unavailable) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"imageUnderstandingModelId must reference an available hosted model\",\n\t\tpath: [\"hostedRuntimePolicy\", \"imageUnderstandingModelId\"]\n\t});\n\tif (!imageUnderstandingModel.hostedRuntime?.inputModalities.includes(\"image\")) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"imageUnderstandingModelId must support image input\",\n\t\tpath: [\"hostedRuntimePolicy\", \"imageUnderstandingModelId\"]\n\t});\n});\nconst modelCatalogSchema = z.strictObject({\n\tschemaVersion: z.literal(1),\n\tupdatedAt: z.iso.datetime({ offset: true }),\n\tagentControllers: z.record(boundedIdentifierSchema, modelCatalogAgentControllerSchema)\n});\nconst getModelCatalogResponseSchema = modelCatalogSchema;\n//#endregion\nexport { MODEL_CATALOG_SCHEMA_VERSION, getModelCatalogResponseSchema, hostedModelInputModalitySchema, hostedModelReasoningLevelSchema, modelCatalogAgentControllerSchema, modelCatalogHostedRuntimePolicySchema, modelCatalogHostedRuntimeSchema, modelCatalogModelSchema, modelCatalogSchema };\n\n//# sourceMappingURL=model-catalog.js.map","import { daemonServiceLaneSchema } from \"./service-contract.js\";\nimport { openMeldRequestContextSchema } from \"./profile-identity.js\";\nimport { localFolderPathSchema } from \"./local-folder-path.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/daemon/computer-file-access.ts\nconst boundedIdentifierSchema = z.string().trim().min(1).max(512);\nconst OPENMELD_RUNTIME_CAPABILITIES_HEADER = \"x-openmeld-runtime-capabilities\";\nconst COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY = \"computer-file-access-v1\";\nconst computerFileAccessAbsolutePathSchema = localFolderPathSchema;\nconst computerFileAccessModeSchema = z.enum([\n\t\"local_agent_settings\",\n\t\"only_selected_folders\",\n\t\"block_selected_folders\"\n]);\nconst computerFileAccessDefaultPolicyInputSchema = z.strictObject({ mode: z.literal(\"local_agent_settings\") });\nconst computerFileAccessFolderPolicyInputSchema = z.strictObject({\n\tfolders: z.array(computerFileAccessAbsolutePathSchema).min(1).max(128),\n\tmode: z.enum([\"only_selected_folders\", \"block_selected_folders\"])\n});\nconst computerFileAccessPolicyInputSchema = z.discriminatedUnion(\"mode\", [computerFileAccessDefaultPolicyInputSchema, computerFileAccessFolderPolicyInputSchema]);\nconst computerFileAccessPolicyMetadataShape = {\n\trevision: z.number().int().positive(),\n\tupdatedAtMs: z.number().int().nonnegative()\n};\nconst computerFileAccessPolicySchema = z.discriminatedUnion(\"mode\", [computerFileAccessDefaultPolicyInputSchema.extend(computerFileAccessPolicyMetadataShape), computerFileAccessFolderPolicyInputSchema.extend(computerFileAccessPolicyMetadataShape)]);\nconst computerFileAccessReadRequestSchema = z.strictObject({ expectedDeviceId: boundedIdentifierSchema });\nconst computerFileAccessUpdateRequestSchema = z.strictObject({\n\texpectedDeviceId: boundedIdentifierSchema,\n\texpectedRevision: z.number().int().positive(),\n\tidempotencyKey: boundedIdentifierSchema,\n\tpolicy: computerFileAccessPolicyInputSchema\n});\nconst computerFileAccessPolicyResponseSchema = z.strictObject({\n\tdeviceId: boundedIdentifierSchema,\n\tpolicy: computerFileAccessPolicySchema\n});\nconst computerFileAccessErrorCodeSchema = z.enum([\n\t\"computer.file_access.device_mismatch\",\n\t\"computer.file_access.internal_error\",\n\t\"computer.file_access.invalid_request\",\n\t\"computer.file_access.invalid_response\",\n\t\"computer.file_access.path_not_directory\",\n\t\"computer.file_access.path_not_found\",\n\t\"computer.file_access.path_unreadable\",\n\t\"computer.file_access.revision_mismatch\",\n\t\"computer.file_access.service_offline\",\n\t\"computer.file_access.service_update_required\",\n\t\"computer.file_access.timeout\",\n\t\"computer.file_access.unsupported\"\n]);\nconst computerFileAccessErrorResponseSchema = z.strictObject({\n\tstatus: z.literal(\"rejected\"),\n\tcode: computerFileAccessErrorCodeSchema,\n\tmessage: z.string().trim().min(1).max(1024)\n});\nconst computerFileAccessPolicyResultSchema = z.union([computerFileAccessPolicyResponseSchema, computerFileAccessErrorResponseSchema]);\nconst computerFileAccessReadRpcInputSchema = computerFileAccessReadRequestSchema.extend({ context: openMeldRequestContextSchema });\nconst computerFileAccessUpdateRpcInputSchema = computerFileAccessUpdateRequestSchema.extend({ context: openMeldRequestContextSchema });\nconst COMPUTER_FILE_ACCESS_FRAME_VERSION = 1;\nfunction defineRequestFrame(code, request) {\n\treturn z.strictObject({\n\t\tv: z.literal(COMPUTER_FILE_ACCESS_FRAME_VERSION),\n\t\tcode: z.literal(code),\n\t\tpayload: z.strictObject({\n\t\t\trequestId: boundedIdentifierSchema,\n\t\t\trequest\n\t\t})\n\t});\n}\nfunction defineResultFrame(code) {\n\treturn z.strictObject({\n\t\tv: z.literal(COMPUTER_FILE_ACCESS_FRAME_VERSION),\n\t\tcode: z.literal(code),\n\t\tpayload: z.strictObject({\n\t\t\trequestId: boundedIdentifierSchema,\n\t\t\tresult: computerFileAccessPolicyResultSchema\n\t\t})\n\t});\n}\nconst computerFileAccessReadRequestFrameSchema = defineRequestFrame(\"daemon.computer_file_access.read_policy\", computerFileAccessReadRequestSchema);\nconst computerFileAccessReadResultFrameSchema = defineResultFrame(\"daemon.computer_file_access.read_policy_result\");\nconst computerFileAccessUpdateRequestFrameSchema = defineRequestFrame(\"daemon.computer_file_access.update_policy\", computerFileAccessUpdateRequestSchema);\nconst computerFileAccessUpdateResultFrameSchema = defineResultFrame(\"daemon.computer_file_access.update_policy_result\");\nconst computerFileAccessDaemonFrameSchema = z.discriminatedUnion(\"code\", [\n\tcomputerFileAccessReadRequestFrameSchema,\n\tcomputerFileAccessReadResultFrameSchema,\n\tcomputerFileAccessUpdateRequestFrameSchema,\n\tcomputerFileAccessUpdateResultFrameSchema\n]);\nconst runtimeTransportComputerFileAccessTargetShape = {\n\tv: z.literal(COMPUTER_FILE_ACCESS_FRAME_VERSION),\n\townerUserId: boundedIdentifierSchema,\n\tdeviceId: boundedIdentifierSchema,\n\tlane: daemonServiceLaneSchema,\n\trequestId: boundedIdentifierSchema\n};\nconst runtimeTransportComputerFileAccessReadRequestSchema = z.strictObject({\n\t...runtimeTransportComputerFileAccessTargetShape,\n\trequest: computerFileAccessReadRequestSchema\n});\nconst runtimeTransportComputerFileAccessUpdateRequestSchema = z.strictObject({\n\t...runtimeTransportComputerFileAccessTargetShape,\n\trequest: computerFileAccessUpdateRequestSchema\n});\n//#endregion\nexport { COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY, OPENMELD_RUNTIME_CAPABILITIES_HEADER, computerFileAccessAbsolutePathSchema, computerFileAccessDaemonFrameSchema, computerFileAccessErrorCodeSchema, computerFileAccessErrorResponseSchema, computerFileAccessModeSchema, computerFileAccessPolicyInputSchema, computerFileAccessPolicyResponseSchema, computerFileAccessPolicyResultSchema, computerFileAccessPolicySchema, computerFileAccessReadRequestFrameSchema, computerFileAccessReadRequestSchema, computerFileAccessReadResultFrameSchema, computerFileAccessReadRpcInputSchema, computerFileAccessUpdateRequestFrameSchema, computerFileAccessUpdateRequestSchema, computerFileAccessUpdateResultFrameSchema, computerFileAccessUpdateRpcInputSchema, runtimeTransportComputerFileAccessReadRequestSchema, runtimeTransportComputerFileAccessUpdateRequestSchema };\n\n//# sourceMappingURL=computer-file-access.js.map","import { centerAgentInteractionSourceSchema } from \"../protocol/center-agent-interaction-source.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/center-agent-context-manifest.ts\nconst CENTER_AGENT_CONTEXT_MANIFEST_VERSION = \"center_agent_context_manifest.v1\";\nconst CENTER_AGENT_CONTEXT_LOAD_RECEIPT_VERSION = \"center_agent_context_load_receipt.v1\";\nconst CENTER_AGENT_CONTEXT_TOKEN_ESTIMATE_ALGORITHM = \"utf8_bytes_divided_by_3.v1\";\nconst CENTER_AGENT_CONTEXT_DEFAULT_MESSAGE_LIMIT = 20;\nconst CENTER_AGENT_CONTEXT_MAX_MESSAGE_LIMIT = 50;\nconst CENTER_AGENT_CONTEXT_DEFAULT_TOKEN_BUDGET = 8e3;\nconst CENTER_AGENT_CONTEXT_MIN_TOKEN_BUDGET = 256;\nconst CENTER_AGENT_CONTEXT_MAX_TOKEN_BUDGET = 32768;\nconst CENTER_AGENT_CONTEXT_ERROR_CODES = [\n\t\"center_agent.context_conversation_required\",\n\t\"center_agent.context_cursor_invalid\",\n\t\"center_agent.context_token_budget_too_small\",\n\t\"center_agent.context_manifest_not_found\",\n\t\"center_agent.context_load_already_recorded\",\n\t\"center_agent.context_load_client_mismatch\",\n\t\"center_agent.context_load_manifest_empty\",\n\t\"center_agent.context_load_selection_duplicate\",\n\t\"center_agent.context_load_selection_invalid\"\n];\nconst ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });\nconst trimmedNonEmptyStringSchema = z.string().trim().min(1);\nconst contentHashSchema = z.string().regex(/^sha256:[0-9a-f]{64}$/u);\nconst centerAgentContextManifestIdSchema = z.string().regex(/^center_agent_context_manifest_[0-9a-f-]{36}$/u);\nconst loadReceiptIdSchema = z.string().regex(/^center_agent_context_load_receipt_[0-9a-f-]{36}$/u);\nconst centerAgentContextManifestViewSchema = z.literal(\"messages\");\nconst createCenterAgentContextManifestBodySchema = z.strictObject({\n\tcursor: z.string().trim().min(1).max(768).optional(),\n\tlimit: z.number().int().min(1).max(50).default(20),\n\tmaxContextTokens: z.number().int().min(256).max(CENTER_AGENT_CONTEXT_MAX_TOKEN_BUDGET).default(CENTER_AGENT_CONTEXT_DEFAULT_TOKEN_BUDGET),\n\tsource: centerAgentInteractionSourceSchema,\n\tview: centerAgentContextManifestViewSchema.default(\"messages\")\n});\nconst centerAgentContextManifestSourceRefSchema = z.strictObject({\n\tid: trimmedNonEmptyStringSchema,\n\ttype: z.literal(\"space_signal\"),\n\turi: z.string().regex(/^openmeld:\\/\\/spaces\\/[^/]+\\/signals\\/[^/]+$/u),\n\tversion: contentHashSchema\n});\nconst centerAgentContextManifestEntrySchema = z.strictObject({\n\tauthor: z.strictObject({\n\t\tprofileId: trimmedNonEmptyStringSchema,\n\t\tprofileKind: z.enum([\n\t\t\t\"agent\",\n\t\t\t\"human\",\n\t\t\t\"system\"\n\t\t]),\n\t\tprofileName: trimmedNonEmptyStringSchema\n\t}),\n\tcarrier: z.strictObject({\n\t\tclient: trimmedNonEmptyStringSchema.max(80),\n\t\tkind: z.literal(\"local_agent\")\n\t}).optional(),\n\tcontent: z.strictObject({\n\t\toriginalCharacterCount: z.number().int().nonnegative(),\n\t\ttext: z.string(),\n\t\ttruncated: z.boolean(),\n\t\ttype: z.literal(\"text\")\n\t}),\n\tmaterializedContentHash: contentHashSchema,\n\toccurredAt: ISO_DATE_TIME_SCHEMA,\n\tredactions: z.array(z.enum([\n\t\t\"attachments_not_in_messages_view\",\n\t\t\"local_session_locator_omitted\",\n\t\t\"message_content_budget\"\n\t])),\n\treplyToSignalId: trimmedNonEmptyStringSchema.optional(),\n\tsourceRef: centerAgentContextManifestSourceRefSchema\n});\nconst centerAgentContextManifestMaterializationSchema = z.strictObject({\n\testimatedTokens: z.number().int().nonnegative(),\n\tmaterializedContentHash: contentHashSchema,\n\tsourceRef: centerAgentContextManifestSourceRefSchema\n});\nconst centerAgentContextLoadSelectedEntrySchema = z.strictObject({\n\tmaterializedContentHash: contentHashSchema,\n\tsourceRefId: trimmedNonEmptyStringSchema\n});\nconst centerAgentContextLoadSelectionSchema = z.discriminatedUnion(\"kind\", [z.strictObject({ kind: z.literal(\"all_manifest_entries\") }), z.strictObject({\n\tentries: z.array(centerAgentContextLoadSelectedEntrySchema).min(1).max(50),\n\tkind: z.literal(\"selected_entries\")\n})]);\nconst createCenterAgentContextLoadReceiptBodySchema = z.strictObject({\n\tselection: centerAgentContextLoadSelectionSchema,\n\tsource: centerAgentInteractionSourceSchema\n});\nconst createCenterAgentContextManifestResponseSchema = z.strictObject({\n\tauthorization: z.strictObject({\n\t\tprincipal: z.literal(\"authenticated_member\"),\n\t\tscope: z.literal(\"requester_private\")\n\t}),\n\tavailableViews: z.tuple([z.literal(\"messages\")]),\n\tbudget: z.strictObject({\n\t\testimateAlgorithm: z.literal(CENTER_AGENT_CONTEXT_TOKEN_ESTIMATE_ALGORITHM),\n\t\testimatedTokens: z.number().int().nonnegative(),\n\t\tincludedMessages: z.number().int().nonnegative(),\n\t\trequestedTokens: z.number().int().positive(),\n\t\ttruncated: z.boolean(),\n\t\ttruncationReasons: z.array(z.enum([\n\t\t\t\"context_token_budget\",\n\t\t\t\"message_content_budget\",\n\t\t\t\"message_limit\",\n\t\t\t\"older_messages_available\"\n\t\t]))\n\t}),\n\tcontinuation: z.strictObject({\n\t\tcursor: z.string().trim().min(1).max(768).nullable(),\n\t\thasMore: z.boolean()\n\t}),\n\tentries: z.array(centerAgentContextManifestEntrySchema),\n\tgeneratedAt: ISO_DATE_TIME_SCHEMA,\n\tmanifestId: centerAgentContextManifestIdSchema,\n\tprovenance: z.strictObject({\n\t\tauditEntryId: trimmedNonEmptyStringSchema,\n\t\tcontentProjection: z.literal(\"user_visible_space_signals\")\n\t}),\n\trequest: z.strictObject({ source: centerAgentInteractionSourceSchema }),\n\tschemaVersion: z.literal(CENTER_AGENT_CONTEXT_MANIFEST_VERSION),\n\tsubject: z.strictObject({\n\t\tcenterAgentProfileId: trimmedNonEmptyStringSchema,\n\t\tconversationId: trimmedNonEmptyStringSchema,\n\t\tkind: z.literal(\"center_agent_conversation\"),\n\t\tmemberProfileId: trimmedNonEmptyStringSchema,\n\t\torganizationId: trimmedNonEmptyStringSchema\n\t}),\n\tview: centerAgentContextManifestViewSchema\n});\nconst createCenterAgentContextLoadReceiptResponseSchema = z.strictObject({\n\tauthorization: z.strictObject({\n\t\tprincipal: z.literal(\"authenticated_member\"),\n\t\tscope: z.literal(\"requester_private\")\n\t}),\n\tprovenance: z.strictObject({ auditEntryId: trimmedNonEmptyStringSchema }),\n\treceipt: z.strictObject({\n\t\tclient: trimmedNonEmptyStringSchema.max(80),\n\t\testimatedTokens: z.number().int().nonnegative(),\n\t\tid: loadReceiptIdSchema,\n\t\tincludedMessages: z.number().int().min(1).max(50),\n\t\tmanifestId: centerAgentContextManifestIdSchema,\n\t\tselectedEntries: z.array(centerAgentContextLoadSelectedEntrySchema).min(1).max(50),\n\t\tstatus: z.literal(\"loaded\")\n\t}),\n\trecordedAt: ISO_DATE_TIME_SCHEMA,\n\tschemaVersion: z.literal(CENTER_AGENT_CONTEXT_LOAD_RECEIPT_VERSION)\n});\n//#endregion\nexport { CENTER_AGENT_CONTEXT_DEFAULT_MESSAGE_LIMIT, CENTER_AGENT_CONTEXT_DEFAULT_TOKEN_BUDGET, CENTER_AGENT_CONTEXT_ERROR_CODES, CENTER_AGENT_CONTEXT_LOAD_RECEIPT_VERSION, CENTER_AGENT_CONTEXT_MANIFEST_VERSION, CENTER_AGENT_CONTEXT_MAX_MESSAGE_LIMIT, CENTER_AGENT_CONTEXT_MAX_TOKEN_BUDGET, CENTER_AGENT_CONTEXT_MIN_TOKEN_BUDGET, CENTER_AGENT_CONTEXT_TOKEN_ESTIMATE_ALGORITHM, centerAgentContextLoadSelectedEntrySchema, centerAgentContextLoadSelectionSchema, centerAgentContextManifestEntrySchema, centerAgentContextManifestIdSchema, centerAgentContextManifestMaterializationSchema, centerAgentContextManifestSourceRefSchema, centerAgentContextManifestViewSchema, createCenterAgentContextLoadReceiptBodySchema, createCenterAgentContextLoadReceiptResponseSchema, createCenterAgentContextManifestBodySchema, createCenterAgentContextManifestResponseSchema };\n\n//# sourceMappingURL=center-agent-context-manifest.js.map","import { MESSAGE_CHANNEL_PROVIDERS, messageChannelIngressEnvelopeSchema, messageChannelProviderSchema, messageChannelTransportSchema } from \"../runtime/message-channel.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/message-channels.ts\nconst MESSAGE_CHANNEL_CONNECTION_STATUSES = [\n\t\"pending_registration\",\n\t\"credentials_received\",\n\t\"configuring\",\n\t\"connected\",\n\t\"repair_required\",\n\t\"revoked\",\n\t\"disconnected\"\n];\nconst MESSAGE_CHANNEL_ERROR_CODES = [\n\t\"message_channel.actor_required\",\n\t\"message_channel.already_connected\",\n\t\"message_channel.connection_changed\",\n\t\"message_channel.identity_already_linked\",\n\t\"message_channel.identity_link_account_required\",\n\t\"message_channel.identity_link_membership_required\",\n\t\"message_channel.identity_link_token_invalid\",\n\t\"message_channel.provider_disabled\",\n\t\"message_channel.provider_unavailable\",\n\t\"message_channel.repair_unavailable\",\n\t\"message_channel.registration_not_found\",\n\t\"message_channel.store_unavailable\"\n];\nconst LARK_PLATFORM_WEBHOOK_RAW_BODY_MAX_BYTES = 262144;\nconst LARK_PLATFORM_WEBHOOK_RAW_BODY_MAX_CHARS = LARK_PLATFORM_WEBHOOK_RAW_BODY_MAX_BYTES;\nconst nonEmptyStringSchema = z.string().trim().min(1);\nconst capabilityGroupSchema = nonEmptyStringSchema.max(64).regex(/^[a-z0-9][a-z0-9._-]*$/u);\nconst reasonCodeSchema = nonEmptyStringSchema.max(128).regex(/^[a-z0-9][a-z0-9._-]*$/u);\nconst messageChannelConnectionStatusSchema = z.enum(MESSAGE_CHANNEL_CONNECTION_STATUSES);\nconst larkPlatformProviderSchema = z.enum([\"lark\", \"feishu\"]);\nconst larkPlatformRegistrationBeginModeSchema = z.enum([\n\t\"resume\",\n\t\"restart\",\n\t\"repair\"\n]);\nconst messageChannelConnectionProjectionSchema = z.strictObject({\n\tid: nonEmptyStringSchema.max(256),\n\tprovider: messageChannelProviderSchema,\n\ttransport: messageChannelTransportSchema,\n\tstatus: messageChannelConnectionStatusSchema,\n\texternalAccountId: nonEmptyStringSchema.max(512).nullable(),\n\texternalAccountName: nonEmptyStringSchema.max(256).nullable(),\n\tpermissionBundleVersion: nonEmptyStringSchema.max(128).nullable(),\n\tgrantedCapabilityGroups: z.array(capabilityGroupSchema).max(32),\n\tlastVerifiedAt: z.iso.datetime({ offset: true }).nullable(),\n\treasonCode: reasonCodeSchema.nullable()\n}).superRefine((connection, context) => {\n\tif (new Set(connection.grantedCapabilityGroups).size !== connection.grantedCapabilityGroups.length) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Granted capability groups must be unique.\",\n\t\tpath: [\"grantedCapabilityGroups\"]\n\t});\n});\nconst messageChannelConnectionListResponseSchema = z.strictObject({\n\torganizationId: nonEmptyStringSchema.max(256),\n\tavailableLarkPlatformProviders: z.array(larkPlatformProviderSchema).max(2),\n\tconnections: z.array(messageChannelConnectionProjectionSchema).max(MESSAGE_CHANNEL_PROVIDERS.length)\n}).superRefine((response, context) => {\n\tif (new Set(response.availableLarkPlatformProviders).size !== response.availableLarkPlatformProviders.length) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Available Message Channel providers must be unique.\",\n\t\tpath: [\"availableLarkPlatformProviders\"]\n\t});\n\tconst providers = /* @__PURE__ */ new Set();\n\tfor (const [index, connection] of response.connections.entries()) {\n\t\tif (providers.has(connection.provider)) context.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"An Organization can expose at most one connection per Message Channel provider.\",\n\t\t\tpath: [\n\t\t\t\t\"connections\",\n\t\t\t\tindex,\n\t\t\t\t\"provider\"\n\t\t\t]\n\t\t});\n\t\tproviders.add(connection.provider);\n\t}\n});\nconst larkPlatformRegistrationAttemptIdSchema = nonEmptyStringSchema.max(256);\nconst larkPlatformActiveRegistrationProjectionSchema = z.strictObject({\n\tcanResume: z.boolean(),\n\texpiresAt: z.iso.datetime({ offset: true }),\n\tid: larkPlatformRegistrationAttemptIdSchema,\n\tnextPollAt: z.iso.datetime({ offset: true }),\n\tprovider: larkPlatformProviderSchema,\n\treasonCode: reasonCodeSchema.nullable(),\n\tstatus: z.enum([\n\t\t\"pending_registration\",\n\t\t\"credentials_received\",\n\t\t\"configuring\"\n\t])\n});\nconst larkPlatformActiveRegistrationListResponseSchema = z.strictObject({\n\torganizationId: nonEmptyStringSchema.max(256),\n\tregistrations: z.array(larkPlatformActiveRegistrationProjectionSchema).max(2)\n}).superRefine((response, context) => {\n\tconst providers = /* @__PURE__ */ new Set();\n\tfor (const [index, registration] of response.registrations.entries()) {\n\t\tif (providers.has(registration.provider)) context.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"An Organization can expose at most one active registration per Lark-platform provider.\",\n\t\t\tpath: [\n\t\t\t\t\"registrations\",\n\t\t\t\tindex,\n\t\t\t\t\"provider\"\n\t\t\t]\n\t\t});\n\t\tproviders.add(registration.provider);\n\t}\n});\nconst larkPlatformRegistrationAttemptProjectionSchema = z.strictObject({\n\tid: larkPlatformRegistrationAttemptIdSchema,\n\tprovider: larkPlatformProviderSchema,\n\tstatus: messageChannelConnectionStatusSchema,\n\texpiresAt: z.iso.datetime({ offset: true }),\n\tnextPollAt: z.iso.datetime({ offset: true }),\n\tregistrationUrl: z.string().trim().max(16384).url().nullable(),\n\treasonCode: reasonCodeSchema.nullable()\n}).superRefine((attempt, context) => {\n\tif (attempt.status === \"pending_registration\" !== (attempt.registrationUrl !== null)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Only a pending registration attempt may expose its registration URL.\",\n\t\tpath: [\"registrationUrl\"]\n\t});\n\tif (attempt.registrationUrl) {\n\t\tconst url = new URL(attempt.registrationUrl);\n\t\tif (url.protocol !== \"https:\" || url.hostname !== \"open.feishu.cn\" || url.pathname !== \"/page/launcher\") context.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"Registration URL must use the pinned provider launcher.\",\n\t\t\tpath: [\"registrationUrl\"]\n\t\t});\n\t}\n});\nconst larkPlatformRegistrationResponseSchema = z.strictObject({\n\torganizationId: nonEmptyStringSchema.max(256),\n\tattempt: larkPlatformRegistrationAttemptProjectionSchema,\n\tconnection: messageChannelConnectionProjectionSchema.nullable()\n}).superRefine((response, context) => {\n\tif (response.connection && response.connection.provider !== response.attempt.provider) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Registration attempt and connection providers must match.\",\n\t\tpath: [\"connection\", \"provider\"]\n\t});\n});\nconst larkPlatformWebhookVerificationInputSchema = z.strictObject({\n\tprovider: larkPlatformProviderSchema,\n\tconnectionId: nonEmptyStringSchema.max(256),\n\tsurface: z.enum([\"events\", \"callbacks\"]),\n\trawBody: z.string().min(2).max(LARK_PLATFORM_WEBHOOK_RAW_BODY_MAX_CHARS),\n\theaders: z.strictObject({\n\t\ttimestamp: nonEmptyStringSchema.max(64).nullable(),\n\t\tnonce: nonEmptyStringSchema.max(256).nullable(),\n\t\tsignature: nonEmptyStringSchema.max(256).nullable()\n\t}),\n\treceivedAtMs: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),\n\tgatewayRequestId: nonEmptyStringSchema.max(256)\n});\nconst larkPlatformWebhookVerificationResponseSchema = z.discriminatedUnion(\"status\", [\n\tz.strictObject({\n\t\tstatus: z.literal(\"challenge\"),\n\t\tchallenge: nonEmptyStringSchema.max(2048)\n\t}),\n\tz.strictObject({\n\t\tstatus: z.literal(\"enqueue\"),\n\t\tenvelope: messageChannelIngressEnvelopeSchema\n\t}),\n\tz.strictObject({\n\t\tstatus: z.literal(\"ignored\"),\n\t\treasonCode: reasonCodeSchema\n\t}),\n\tz.strictObject({\n\t\tstatus: z.literal(\"rejected\"),\n\t\treasonCode: reasonCodeSchema\n\t})\n]);\nconst messageChannelIdentityLinkTokenSchema = z.string().trim().regex(/^messagechannellink_[0-9a-f]{64}$/);\nconst messageChannelIdentityLinkPreviewBodySchema = z.strictObject({ token: messageChannelIdentityLinkTokenSchema });\nconst messageChannelIdentityLinkPreviewResponseSchema = z.strictObject({\n\talreadyMember: z.boolean().default(true),\n\tcontinuesRequest: z.boolean().default(false),\n\texpiresAt: z.iso.datetime({ offset: true }),\n\torganizationId: nonEmptyStringSchema.max(256),\n\torganizationName: nonEmptyStringSchema.max(256),\n\tprovider: larkPlatformProviderSchema,\n\tproviderUserDisplayName: nonEmptyStringSchema.max(256),\n\tproviderUserId: nonEmptyStringSchema.max(512),\n\topenMeldAccountEmail: nonEmptyStringSchema.max(320)\n});\nconst messageChannelIdentityLinkConsumeBodySchema = z.strictObject({ token: messageChannelIdentityLinkTokenSchema });\nconst messageChannelIdentityLinkConsumeResponseSchema = z.strictObject({\n\tcontinuationRetryable: z.boolean().default(false),\n\tcontinued: z.boolean().default(false),\n\tcontinuesRequest: z.boolean().default(false),\n\tjoinedOrganization: z.boolean().default(false),\n\tlinked: z.literal(true),\n\torganizationId: nonEmptyStringSchema.max(256),\n\torganizationName: nonEmptyStringSchema.max(256),\n\tprovider: larkPlatformProviderSchema,\n\tproviderUserDisplayName: nonEmptyStringSchema.max(256),\n\tproviderUserId: nonEmptyStringSchema.max(512),\n\topenMeldUserId: nonEmptyStringSchema.max(256)\n});\n//#endregion\nexport { LARK_PLATFORM_WEBHOOK_RAW_BODY_MAX_BYTES, LARK_PLATFORM_WEBHOOK_RAW_BODY_MAX_CHARS, MESSAGE_CHANNEL_CONNECTION_STATUSES, MESSAGE_CHANNEL_ERROR_CODES, larkPlatformActiveRegistrationListResponseSchema, larkPlatformActiveRegistrationProjectionSchema, larkPlatformProviderSchema, larkPlatformRegistrationAttemptIdSchema, larkPlatformRegistrationAttemptProjectionSchema, larkPlatformRegistrationBeginModeSchema, larkPlatformRegistrationResponseSchema, larkPlatformWebhookVerificationInputSchema, larkPlatformWebhookVerificationResponseSchema, messageChannelConnectionListResponseSchema, messageChannelConnectionProjectionSchema, messageChannelConnectionStatusSchema, messageChannelIdentityLinkConsumeBodySchema, messageChannelIdentityLinkConsumeResponseSchema, messageChannelIdentityLinkPreviewBodySchema, messageChannelIdentityLinkPreviewResponseSchema, messageChannelIdentityLinkTokenSchema };\n\n//# sourceMappingURL=message-channels.js.map","import { openMeldRequestContextSchema } from \"../daemon/profile-identity.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/center-agent-member-research.ts\nconst trimmedNonEmptyStringSchema = z.string().trim().min(1);\nconst isoDateTimeSchema = z.iso.datetime({ offset: true });\nconst memberResearchTextSchema = z.string().trim().min(1).max(1e3);\nconst CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_SOURCES = [\n\t\"organization_directory\",\n\t\"approved_profile_report\",\n\t\"agent_activity\",\n\t\"github\",\n\t\"slack_workspace_directory\"\n];\nconst CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_STATUSES = [\n\t\"checked\",\n\t\"unavailable\",\n\t\"not_attributable\"\n];\nconst CENTER_AGENT_MEMBER_RESEARCH_EVIDENCE_SOURCES = [\"agent_activity\", \"github\"];\nconst centerAgentMemberResearchEvidenceSourceSchema = z.enum(CENTER_AGENT_MEMBER_RESEARCH_EVIDENCE_SOURCES);\nconst centerAgentMemberResearchEvidenceItemSchema = z.strictObject({\n\tdate: z.iso.date(),\n\tsource: centerAgentMemberResearchEvidenceSourceSchema,\n\tsourceId: trimmedNonEmptyStringSchema.max(256),\n\tsourceUrl: z.url().max(2048).optional(),\n\ttext: memberResearchTextSchema\n}).superRefine((item, context) => {\n\tif (item.source === \"agent_activity\" && item.sourceUrl) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Agent Activity evidence uses its stable sourceId, not a URL.\",\n\t\tpath: [\"sourceUrl\"]\n\t});\n\tif (item.source === \"github\" && !item.sourceUrl) {\n\t\tcontext.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"GitHub evidence requires a direct HTTPS sourceUrl.\",\n\t\t\tpath: [\"sourceUrl\"]\n\t\t});\n\t\treturn;\n\t}\n\tif (item.source === \"github\" && item.sourceUrl && new URL(item.sourceUrl).protocol !== \"https:\") context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"GitHub evidence requires a direct HTTPS sourceUrl.\",\n\t\tpath: [\"sourceUrl\"]\n\t});\n});\nconst centerAgentMemberResearchCoverageSourceSchema = z.enum(CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_SOURCES);\nconst centerAgentMemberResearchCoverageStatusSchema = z.enum(CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_STATUSES);\nconst centerAgentMemberResearchCoverageSchema = z.strictObject({\n\tevidence: memberResearchTextSchema.max(500),\n\tsource: centerAgentMemberResearchCoverageSourceSchema,\n\tstatus: centerAgentMemberResearchCoverageStatusSchema,\n\ttimeRange: trimmedNonEmptyStringSchema.max(120)\n});\nconst centerAgentMemberResearchCoverageListSchema = z.array(centerAgentMemberResearchCoverageSchema).length(CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_SOURCES.length).superRefine((coverage, context) => {\n\tfor (const source of CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_SOURCES) if (coverage.filter((entry) => entry.source === source).length !== 1) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: `Research coverage must include ${source} exactly once.`\n\t});\n});\nconst centerAgentMemberResearchEvidenceBackedReportSchema = z.strictObject({\n\tcollaborationGuidance: z.array(centerAgentMemberResearchEvidenceItemSchema).max(4),\n\tcoverage: centerAgentMemberResearchCoverageListSchema,\n\tcurrentFocus: z.array(centerAgentMemberResearchEvidenceItemSchema).min(1).max(5),\n\tobservedActivity: z.array(centerAgentMemberResearchEvidenceItemSchema).min(2).max(12),\n\trecentContributions: z.array(centerAgentMemberResearchEvidenceItemSchema).min(1).max(8),\n\tresult: z.literal(\"evidence_backed\"),\n\tsuggestedAboutAdditions: z.array(centerAgentMemberResearchEvidenceItemSchema).max(5)\n}).superRefine((report, context) => {\n\tif (new Set(report.observedActivity.map((item) => `${item.source}:${item.sourceId}`)).size < 2) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"An evidence-backed report requires at least two distinct observed work items.\",\n\t\tpath: [\"observedActivity\"]\n\t});\n});\nconst centerAgentMemberResearchInsufficientEvidenceReportSchema = z.strictObject({\n\tcoverage: centerAgentMemberResearchCoverageListSchema,\n\tnextSteps: z.array(memberResearchTextSchema.max(400)).min(1).max(2),\n\tresult: z.literal(\"insufficient_evidence\")\n});\nconst centerAgentMemberResearchReportSchema = z.discriminatedUnion(\"result\", [centerAgentMemberResearchEvidenceBackedReportSchema, centerAgentMemberResearchInsufficientEvidenceReportSchema]);\nconst centerAgentMemberResearchScopeSchema = z.enum([\"member\", \"all\"]);\nconst centerAgentMemberResearchBatchStatusSchema = z.enum([\n\t\"queued\",\n\t\"running\",\n\t\"completed\"\n]);\nconst centerAgentMemberResearchTaskStatusSchema = z.enum([\n\t\"queued\",\n\t\"running\",\n\t\"completed\",\n\t\"failed\"\n]);\nconst centerAgentMemberResearchTaskSchema = z.strictObject({\n\tid: trimmedNonEmptyStringSchema,\n\tsubjectUserId: trimmedNonEmptyStringSchema,\n\tsubjectDisplayName: trimmedNonEmptyStringSchema,\n\tposition: z.number().int().positive(),\n\tstatus: centerAgentMemberResearchTaskStatusSchema,\n\tfailureCode: trimmedNonEmptyStringSchema.nullable(),\n\tstartedAt: isoDateTimeSchema.nullable(),\n\tfinishedAt: isoDateTimeSchema.nullable()\n}).superRefine((task, context) => {\n\tif (!(task.status === \"queued\" && task.startedAt === null && task.finishedAt === null && task.failureCode === null || task.status === \"running\" && task.startedAt !== null && task.finishedAt === null && task.failureCode === null || task.status === \"completed\" && task.startedAt !== null && task.finishedAt !== null && task.failureCode === null || task.status === \"failed\" && task.startedAt !== null && task.finishedAt !== null && task.failureCode !== null)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Task timestamps and failureCode must match the task status.\",\n\t\tpath: [\"status\"]\n\t});\n\tif (task.startedAt !== null && task.finishedAt !== null && Date.parse(task.finishedAt) < Date.parse(task.startedAt)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"finishedAt must not be before startedAt.\",\n\t\tpath: [\"finishedAt\"]\n\t});\n});\nconst centerAgentMemberResearchBatchSchema = z.strictObject({\n\tid: trimmedNonEmptyStringSchema,\n\torganizationId: trimmedNonEmptyStringSchema,\n\tscope: centerAgentMemberResearchScopeSchema,\n\tstatus: centerAgentMemberResearchBatchStatusSchema,\n\ttotalCount: z.number().int().positive(),\n\tcompletedCount: z.number().int().nonnegative(),\n\tfailedCount: z.number().int().nonnegative(),\n\tcreatedAt: isoDateTimeSchema,\n\tupdatedAt: isoDateTimeSchema,\n\ttasks: z.array(centerAgentMemberResearchTaskSchema).min(1)\n}).superRefine((batch, context) => {\n\tconst completedCount = batch.tasks.filter((task) => task.status === \"completed\").length;\n\tconst failedCount = batch.tasks.filter((task) => task.status === \"failed\").length;\n\tconst countChecks = [\n\t\t[\n\t\t\t\"totalCount\",\n\t\t\tbatch.totalCount,\n\t\t\tbatch.tasks.length\n\t\t],\n\t\t[\n\t\t\t\"completedCount\",\n\t\t\tbatch.completedCount,\n\t\t\tcompletedCount\n\t\t],\n\t\t[\n\t\t\t\"failedCount\",\n\t\t\tbatch.failedCount,\n\t\t\tfailedCount\n\t\t]\n\t];\n\tfor (const [field, actual, expected] of countChecks) if (actual !== expected) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: `${field} must match the task list.`,\n\t\tpath: [field]\n\t});\n\tfor (const [index, task] of batch.tasks.entries()) if (task.position !== index + 1) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Task positions must be ordered and contiguous.\",\n\t\tpath: [\n\t\t\t\"tasks\",\n\t\t\tindex,\n\t\t\t\"position\"\n\t\t]\n\t});\n\tif (batch.scope === \"member\" && batch.tasks.length !== 1) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Single-member research must contain exactly one task.\",\n\t\tpath: [\"tasks\"]\n\t});\n\tconst allQueued = batch.tasks.every((task) => task.status === \"queued\");\n\tconst allTerminal = batch.tasks.every((task) => task.status === \"completed\" || task.status === \"failed\");\n\tif (batch.status === \"queued\" && !allQueued || batch.status === \"running\" && allQueued || batch.status === \"completed\" && !allTerminal) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Batch status must match its task lifecycle.\",\n\t\tpath: [\"status\"]\n\t});\n\tif (Date.parse(batch.updatedAt) < Date.parse(batch.createdAt)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"updatedAt must not be before createdAt.\",\n\t\tpath: [\"updatedAt\"]\n\t});\n});\nconst startCenterAgentMemberResearchBodySchema = z.discriminatedUnion(\"scope\", [z.strictObject({\n\texpectedOrganizationId: trimmedNonEmptyStringSchema,\n\tscope: z.literal(\"member\"),\n\tsubjectUserId: trimmedNonEmptyStringSchema\n}), z.strictObject({\n\texpectedOrganizationId: trimmedNonEmptyStringSchema,\n\tscope: z.literal(\"all\")\n})]);\nconst startCenterAgentMemberResearchResponseSchema = z.strictObject({ batch: centerAgentMemberResearchBatchSchema });\nconst startCenterAgentMemberResearchRpcInputSchema = startCenterAgentMemberResearchBodySchema.and(z.strictObject({ context: openMeldRequestContextSchema }));\nconst getCenterAgentMemberResearchStatusResponseSchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tlatestBatch: centerAgentMemberResearchBatchSchema.nullable()\n});\nconst getCenterAgentMemberResearchStatusRpcInputSchema = z.strictObject({ context: openMeldRequestContextSchema });\n//#endregion\nexport { CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_SOURCES, CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_STATUSES, CENTER_AGENT_MEMBER_RESEARCH_EVIDENCE_SOURCES, centerAgentMemberResearchBatchSchema, centerAgentMemberResearchBatchStatusSchema, centerAgentMemberResearchCoverageSchema, centerAgentMemberResearchCoverageSourceSchema, centerAgentMemberResearchCoverageStatusSchema, centerAgentMemberResearchEvidenceItemSchema, centerAgentMemberResearchEvidenceSourceSchema, centerAgentMemberResearchReportSchema, centerAgentMemberResearchScopeSchema, centerAgentMemberResearchTaskSchema, centerAgentMemberResearchTaskStatusSchema, getCenterAgentMemberResearchStatusResponseSchema, getCenterAgentMemberResearchStatusRpcInputSchema, startCenterAgentMemberResearchBodySchema, startCenterAgentMemberResearchResponseSchema, startCenterAgentMemberResearchRpcInputSchema };\n\n//# sourceMappingURL=center-agent-member-research.js.map","import { openMeldRequestContextSchema } from \"../daemon/profile-identity.js\";\nimport { organizationProtectedInformationSchema } from \"./organization-information-protection.js\";\nimport { centerAgentToolSpeakerSchema } from \"./center-agent-speaker.js\";\nimport { centerAgentMemberResearchReportSchema } from \"./center-agent-member-research.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/organization-documents.ts\nconst ORGANIZATION_DOCUMENT_CONTENT_MAX_CHARS = 2e4;\nconst ORGANIZATION_DOCUMENT_TITLE_MAX_CHARS = 200;\nconst ORGANIZATION_DOCUMENT_FOLDER_NAME_MAX_CHARS = 200;\nconst ORGANIZATION_DOCUMENT_OPERATION_ID_MAX_CHARS = 256;\nconst ORGANIZATION_KNOWLEDGE_DOCUMENT_LIMIT = 50;\nconst ORGANIZATION_DOCUMENT_FOLDER_LIMIT = 50;\nconst CENTER_AGENT_ORGANIZATION_DOCUMENT_DRAFT_CREATED_BY = \"center_agent\";\nconst ORGANIZATION_DOCUMENT_ERROR_CODES = [\n\t\"organization_document.brief_exists\",\n\t\"organization_document.content_too_long\",\n\t\"organization_document.draft_changed\",\n\t\"organization_document.draft_not_found\",\n\t\"organization_document.folder_exists\",\n\t\"organization_document.folder_cycle\",\n\t\"organization_document.folder_limit_reached\",\n\t\"organization_document.folder_name_invalid\",\n\t\"organization_document.folder_not_found\",\n\t\"organization_document.human_actor_required\",\n\t\"organization_document.knowledge_limit_reached\",\n\t\"organization_document.member_profile_exists\",\n\t\"organization_document.not_found\",\n\t\"organization_document.operation_conflict\",\n\t\"organization_document.organization_context_changed\",\n\t\"organization_document.pending_draft_conflict\",\n\t\"organization_document.store_unavailable\",\n\t\"organization_document.subject_invalid\",\n\t\"organization_document.subject_not_member\",\n\t\"organization_document.title_invalid\",\n\t\"organization_document.write_forbidden\",\n\t\"organization_document.working_copy_conflict\"\n];\nconst organizationDocumentKindSchema = z.enum([\n\t\"brief\",\n\t\"member_profile\",\n\t\"knowledge\"\n]);\nconst identifierSchema = z.string().trim().min(1).max(256);\nconst titleSchema = z.string().trim().min(1).max(200);\nconst folderNameSchema = z.string().trim().min(1).max(200);\nconst contentSchema = z.string().max(ORGANIZATION_DOCUMENT_CONTENT_MAX_CHARS);\nconst isoDateTimeSchema = z.iso.datetime({ offset: true });\nconst operationIdSchema = z.string().trim().min(1).max(256);\nconst organizationDocumentFolderSchema = z.strictObject({\n\tcreatedAt: isoDateTimeSchema,\n\tid: identifierSchema,\n\tname: folderNameSchema,\n\torganizationId: identifierSchema,\n\tparentFolderId: identifierSchema.nullable().optional(),\n\tupdatedAt: isoDateTimeSchema\n});\nconst organizationDocumentSummarySchema = z.strictObject({\n\tcanEditContent: z.boolean(),\n\tcanManage: z.boolean(),\n\tcreatedAt: isoDateTimeSchema,\n\tfolderId: identifierSchema.nullable(),\n\thasDraft: z.boolean(),\n\tid: identifierSchema,\n\tkind: organizationDocumentKindSchema,\n\torganizationId: identifierSchema,\n\tsubjectUserId: identifierSchema.nullable(),\n\ttitle: titleSchema,\n\tupdatedAt: isoDateTimeSchema\n});\nconst organizationDocumentSchema = organizationDocumentSummarySchema.omit({ hasDraft: true }).extend({\n\tcontent: contentSchema,\n\tdraftContent: contentSchema.nullable(),\n\tdraftCreatedAt: isoDateTimeSchema.nullable(),\n\tdraftCreatedBy: z.literal(CENTER_AGENT_ORGANIZATION_DOCUMENT_DRAFT_CREATED_BY).nullable()\n});\nconst listOrganizationDocumentsQuerySchema = z.strictObject({});\nconst listOrganizationDocumentsResponseSchema = z.strictObject({\n\tcanManage: z.boolean(),\n\tcurrentUserId: identifierSchema,\n\tdocuments: z.array(organizationDocumentSummarySchema),\n\tfolders: z.array(organizationDocumentFolderSchema),\n\torganizationId: identifierSchema\n});\nconst organizationDocumentRouteParamsSchema = z.strictObject({ documentId: identifierSchema });\nconst getOrganizationDocumentResponseSchema = z.strictObject({ document: organizationDocumentSchema });\nconst createOrganizationDocumentBodySchema = z.strictObject({\n\tcontent: contentSchema,\n\texpectedOrganizationId: identifierSchema,\n\tfolderId: identifierSchema.nullable().optional(),\n\tkind: organizationDocumentKindSchema,\n\tsubjectUserId: identifierSchema.nullable().optional(),\n\ttitle: titleSchema.optional()\n}).superRefine(validateCreateDocumentShape);\nconst createOrganizationDocumentResponseSchema = z.strictObject({ document: organizationDocumentSchema });\nconst updateOrganizationDocumentBodySchema = z.strictObject({\n\tcontent: contentSchema.optional(),\n\texpectedOrganizationId: identifierSchema,\n\tfolderId: identifierSchema.nullable().optional(),\n\ttitle: titleSchema.optional()\n}).refine((value) => value.content !== void 0 || value.title !== void 0 || value.folderId !== void 0, { message: \"At least one document field must be updated.\" });\nconst updateOrganizationDocumentResponseSchema = z.strictObject({ document: organizationDocumentSchema });\nconst deleteOrganizationDocumentBodySchema = z.strictObject({ expectedOrganizationId: identifierSchema });\nconst deleteOrganizationDocumentResponseSchema = z.strictObject({\n\tdeleted: z.literal(true),\n\tdocumentId: identifierSchema,\n\torganizationId: identifierSchema\n});\nconst organizationDocumentFolderRouteParamsSchema = z.strictObject({ folderId: identifierSchema });\nconst createOrganizationDocumentFolderBodySchema = z.strictObject({\n\texpectedOrganizationId: identifierSchema,\n\tname: folderNameSchema,\n\tparentFolderId: identifierSchema.nullable().optional()\n});\nconst createOrganizationDocumentFolderResponseSchema = z.strictObject({ folder: organizationDocumentFolderSchema });\nconst updateOrganizationDocumentFolderBodySchema = z.strictObject({\n\texpectedOrganizationId: identifierSchema,\n\tname: folderNameSchema.optional(),\n\tparentFolderId: identifierSchema.nullable().optional()\n}).refine((value) => Number(value.name !== void 0) + Number(value.parentFolderId !== void 0) === 1, { message: \"Exactly one folder field must be updated.\" });\nconst updateOrganizationDocumentFolderResponseSchema = z.strictObject({ folder: organizationDocumentFolderSchema });\nconst deleteOrganizationDocumentFolderBodySchema = z.strictObject({ expectedOrganizationId: identifierSchema });\nconst deleteOrganizationDocumentFolderResponseSchema = z.strictObject({\n\tdeleted: z.literal(true),\n\tfolderId: identifierSchema,\n\torganizationId: identifierSchema\n});\nconst approveOrganizationDocumentDraftBodySchema = z.strictObject({\n\texpectedDraftCreatedAt: isoDateTimeSchema,\n\texpectedOrganizationId: identifierSchema\n});\nconst approveOrganizationDocumentDraftResponseSchema = z.strictObject({ document: organizationDocumentSchema });\nconst discardOrganizationDocumentDraftBodySchema = z.strictObject({\n\texpectedDraftCreatedAt: isoDateTimeSchema,\n\texpectedOrganizationId: identifierSchema\n});\nconst discardOrganizationDocumentDraftResponseSchema = z.strictObject({ document: organizationDocumentSchema });\nconst listOrganizationDocumentsRpcInputSchema = z.strictObject({ context: openMeldRequestContextSchema });\nconst getOrganizationDocumentRpcInputSchema = z.strictObject({\n\tcontext: openMeldRequestContextSchema,\n\tdocumentId: identifierSchema\n});\nconst createOrganizationDocumentRpcInputSchema = createOrganizationDocumentBodySchema.extend({ context: openMeldRequestContextSchema });\nconst updateOrganizationDocumentRpcInputSchema = updateOrganizationDocumentBodySchema.extend({\n\tcontext: openMeldRequestContextSchema,\n\tdocumentId: identifierSchema\n});\nconst deleteOrganizationDocumentRpcInputSchema = deleteOrganizationDocumentBodySchema.extend({\n\tcontext: openMeldRequestContextSchema,\n\tdocumentId: identifierSchema\n});\nconst createOrganizationDocumentFolderRpcInputSchema = createOrganizationDocumentFolderBodySchema.extend({ context: openMeldRequestContextSchema });\nconst updateOrganizationDocumentFolderRpcInputSchema = updateOrganizationDocumentFolderBodySchema.extend({\n\tcontext: openMeldRequestContextSchema,\n\tfolderId: identifierSchema\n});\nconst deleteOrganizationDocumentFolderRpcInputSchema = deleteOrganizationDocumentFolderBodySchema.extend({\n\tcontext: openMeldRequestContextSchema,\n\tfolderId: identifierSchema\n});\nconst approveOrganizationDocumentDraftRpcInputSchema = approveOrganizationDocumentDraftBodySchema.extend({\n\tcontext: openMeldRequestContextSchema,\n\tdocumentId: identifierSchema\n});\nconst discardOrganizationDocumentDraftRpcInputSchema = discardOrganizationDocumentDraftBodySchema.extend({\n\tcontext: openMeldRequestContextSchema,\n\tdocumentId: identifierSchema\n});\nconst centerAgentReadOrganizationDocumentsListInputSchema = z.strictObject({\n\taction: z.literal(\"list\"),\n\tcontext: openMeldRequestContextSchema,\n\tspeakerMember: centerAgentToolSpeakerSchema\n});\nconst centerAgentReadOrganizationDocumentInputSchema = z.strictObject({\n\taction: z.literal(\"get\"),\n\tcontext: openMeldRequestContextSchema,\n\tdocumentId: identifierSchema,\n\tspeakerMember: centerAgentToolSpeakerSchema\n});\nconst centerAgentReadOrganizationDocumentsRpcInputSchema = z.discriminatedUnion(\"action\", [centerAgentReadOrganizationDocumentsListInputSchema, centerAgentReadOrganizationDocumentInputSchema]);\nconst centerAgentReadOrganizationDocumentsResponseSchema = z.discriminatedUnion(\"action\", [z.strictObject({\n\taction: z.literal(\"list\"),\n\tdocuments: z.array(organizationDocumentSummarySchema.pick({\n\t\tfolderId: true,\n\t\tid: true,\n\t\tkind: true,\n\t\ttitle: true,\n\t\tupdatedAt: true\n\t})),\n\tfolders: z.array(organizationDocumentFolderSchema),\n\torganizationId: identifierSchema\n}), z.strictObject({\n\taction: z.literal(\"get\"),\n\tdocument: organizationDocumentSchema.pick({\n\t\tcontent: true,\n\t\tfolderId: true,\n\t\tid: true,\n\t\tkind: true,\n\t\tsubjectUserId: true,\n\t\ttitle: true,\n\t\tupdatedAt: true\n\t}),\n\torganizationId: identifierSchema\n})]);\nconst organizationDocumentComputerProjectionSchema = organizationDocumentSchema.pick({\n\tcontent: true,\n\tfolderId: true,\n\tid: true,\n\tkind: true,\n\tsubjectUserId: true,\n\ttitle: true,\n\tupdatedAt: true\n});\nconst centerAgentOrganizationDocumentsComputerSnapshotRpcInputSchema = z.strictObject({ context: openMeldRequestContextSchema });\nconst centerAgentOrganizationDocumentsComputerSnapshotResponseSchema = z.strictObject({\n\tdocuments: z.array(organizationDocumentComputerProjectionSchema),\n\tfolders: z.array(organizationDocumentFolderSchema),\n\torganizationId: identifierSchema,\n\trevision: z.string().regex(/^[a-f0-9]{64}$/u)\n});\nconst centerAgentDraftOrganizationDocumentRpcInputSchema = z.strictObject({\n\tcontext: openMeldRequestContextSchema,\n\tdocumentId: identifierSchema.optional(),\n\tdraftContent: contentSchema,\n\texpectedDocumentUpdatedAt: isoDateTimeSchema.optional(),\n\tfolderId: identifierSchema.nullable().optional(),\n\tkind: organizationDocumentKindSchema.optional(),\n\tmemberResearchReport: centerAgentMemberResearchReportSchema.optional(),\n\tmemberResearchTaskId: identifierSchema.optional(),\n\tspeakerMember: centerAgentToolSpeakerSchema,\n\tsubjectUserId: identifierSchema.optional(),\n\ttitle: titleSchema.optional()\n}).superRefine(validateCenterAgentDraftTarget);\nconst centerAgentDraftOrganizationDocumentResponseSchema = z.strictObject({\n\tdocument: organizationDocumentSummarySchema,\n\tdraftReplaced: z.boolean()\n});\nconst centerAgentOrganizationDocumentProjectionSchema = organizationDocumentSchema.pick({\n\tcontent: true,\n\tfolderId: true,\n\tid: true,\n\tkind: true,\n\ttitle: true,\n\tupdatedAt: true\n});\nconst centerAgentCreateOrganizationDocumentFolderInputSchema = z.strictObject({\n\taction: z.literal(\"create_folder\"),\n\tcontext: openMeldRequestContextSchema,\n\tname: folderNameSchema,\n\toperationId: operationIdSchema,\n\tparentFolderId: identifierSchema.nullable().optional(),\n\tspeakerMember: centerAgentToolSpeakerSchema\n});\nconst centerAgentRenameOrganizationDocumentFolderInputSchema = z.strictObject({\n\taction: z.literal(\"rename_folder\"),\n\tcontext: openMeldRequestContextSchema,\n\tfolderId: identifierSchema,\n\tname: folderNameSchema,\n\toperationId: operationIdSchema,\n\tspeakerMember: centerAgentToolSpeakerSchema\n});\nconst centerAgentMoveOrganizationDocumentInputSchema = z.strictObject({\n\taction: z.literal(\"move_document\"),\n\tcontext: openMeldRequestContextSchema,\n\tdocumentId: identifierSchema,\n\tfolderId: identifierSchema.nullable(),\n\toperationId: operationIdSchema,\n\tspeakerMember: centerAgentToolSpeakerSchema\n});\nconst centerAgentSaveOrganizationDocumentInputSchema = z.strictObject({\n\taction: z.literal(\"save_document\"),\n\tcontent: contentSchema,\n\tcontext: openMeldRequestContextSchema,\n\tdocumentId: identifierSchema.optional(),\n\tfolderId: identifierSchema.nullable().optional(),\n\toperationId: operationIdSchema,\n\tspeakerMember: centerAgentToolSpeakerSchema,\n\ttitle: titleSchema.optional()\n}).superRefine((value, context) => {\n\tif (!(value.documentId || value.title)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"A new knowledge document requires a title.\",\n\t\tpath: [\"title\"]\n\t});\n});\nconst centerAgentManageOrganizationDocumentsRpcInputSchema = z.discriminatedUnion(\"action\", [\n\tcenterAgentCreateOrganizationDocumentFolderInputSchema,\n\tcenterAgentRenameOrganizationDocumentFolderInputSchema,\n\tcenterAgentMoveOrganizationDocumentInputSchema,\n\tcenterAgentSaveOrganizationDocumentInputSchema\n]);\nconst centerAgentManageOrganizationDocumentsResponseSchema = z.discriminatedUnion(\"action\", [\n\tz.strictObject({\n\t\taction: z.literal(\"create_folder\"),\n\t\tfolder: organizationDocumentFolderSchema,\n\t\torganizationId: identifierSchema\n\t}),\n\tz.strictObject({\n\t\taction: z.literal(\"rename_folder\"),\n\t\tfolder: organizationDocumentFolderSchema,\n\t\torganizationId: identifierSchema\n\t}),\n\tz.strictObject({\n\t\taction: z.literal(\"move_document\"),\n\t\tdocument: centerAgentOrganizationDocumentProjectionSchema,\n\t\torganizationId: identifierSchema\n\t}),\n\tz.strictObject({\n\t\taction: z.literal(\"save_document\"),\n\t\tdocument: centerAgentOrganizationDocumentProjectionSchema,\n\t\torganizationId: identifierSchema,\n\t\toutcome: z.enum([\"created\", \"updated\"])\n\t})\n]);\nconst organizationDocumentPromptContextRpcInputSchema = z.strictObject({\n\tcontext: openMeldRequestContextSchema,\n\tincludeOrganizationProtectedInformation: z.literal(true).optional()\n});\nconst organizationDocumentPromptContextResponseSchema = z.strictObject({\n\tbriefContent: contentSchema.nullable(),\n\tdocumentTitles: z.array(titleSchema),\n\torganizationProtectedInformation: organizationProtectedInformationSchema.nullable().optional(),\n\torganizationId: identifierSchema\n});\nfunction validateCreateDocumentShape(value, context) {\n\tif (value.kind === \"member_profile\" && !value.subjectUserId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"A Profile Report requires a subject user.\",\n\t\tpath: [\"subjectUserId\"]\n\t});\n\tif (value.kind !== \"member_profile\" && value.subjectUserId != null) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Only a Profile Report can have a subject user.\",\n\t\tpath: [\"subjectUserId\"]\n\t});\n\tif (value.kind === \"knowledge\" && !value.title) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"A knowledge document requires a title.\",\n\t\tpath: [\"title\"]\n\t});\n}\nfunction validateCenterAgentDraftTarget(value, context) {\n\tif (Boolean(value.memberResearchTaskId) !== Boolean(value.memberResearchReport)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Member research drafts require both memberResearchTaskId and memberResearchReport.\",\n\t\tpath: [\"memberResearchReport\"]\n\t});\n\tif (value.documentId) {\n\t\tif (value.folderId !== void 0 || value.kind || value.subjectUserId || value.title) context.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"A document id cannot be combined with a new document target or folder placement.\"\n\t\t});\n\t\treturn;\n\t}\n\tif (!value.kind) {\n\t\tcontext.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"A new draft requires a document kind.\",\n\t\t\tpath: [\"kind\"]\n\t\t});\n\t\treturn;\n\t}\n\tif (value.expectedDocumentUpdatedAt) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"A working-copy version requires an existing document id.\",\n\t\tpath: [\"expectedDocumentUpdatedAt\"]\n\t});\n\tvalidateCreateDocumentShape({\n\t\tkind: value.kind,\n\t\t...value.subjectUserId ? { subjectUserId: value.subjectUserId } : {},\n\t\t...value.title ? { title: value.title } : {}\n\t}, context);\n}\n//#endregion\nexport { CENTER_AGENT_ORGANIZATION_DOCUMENT_DRAFT_CREATED_BY, ORGANIZATION_DOCUMENT_CONTENT_MAX_CHARS, ORGANIZATION_DOCUMENT_ERROR_CODES, ORGANIZATION_DOCUMENT_FOLDER_LIMIT, ORGANIZATION_DOCUMENT_FOLDER_NAME_MAX_CHARS, ORGANIZATION_DOCUMENT_OPERATION_ID_MAX_CHARS, ORGANIZATION_DOCUMENT_TITLE_MAX_CHARS, ORGANIZATION_KNOWLEDGE_DOCUMENT_LIMIT, approveOrganizationDocumentDraftBodySchema, approveOrganizationDocumentDraftResponseSchema, approveOrganizationDocumentDraftRpcInputSchema, centerAgentDraftOrganizationDocumentResponseSchema, centerAgentDraftOrganizationDocumentRpcInputSchema, centerAgentManageOrganizationDocumentsResponseSchema, centerAgentManageOrganizationDocumentsRpcInputSchema, centerAgentOrganizationDocumentsComputerSnapshotResponseSchema, centerAgentOrganizationDocumentsComputerSnapshotRpcInputSchema, centerAgentReadOrganizationDocumentsResponseSchema, centerAgentReadOrganizationDocumentsRpcInputSchema, createOrganizationDocumentBodySchema, createOrganizationDocumentFolderBodySchema, createOrganizationDocumentFolderResponseSchema, createOrganizationDocumentFolderRpcInputSchema, createOrganizationDocumentResponseSchema, createOrganizationDocumentRpcInputSchema, deleteOrganizationDocumentBodySchema, deleteOrganizationDocumentFolderBodySchema, deleteOrganizationDocumentFolderResponseSchema, deleteOrganizationDocumentFolderRpcInputSchema, deleteOrganizationDocumentResponseSchema, deleteOrganizationDocumentRpcInputSchema, discardOrganizationDocumentDraftBodySchema, discardOrganizationDocumentDraftResponseSchema, discardOrganizationDocumentDraftRpcInputSchema, getOrganizationDocumentResponseSchema, getOrganizationDocumentRpcInputSchema, listOrganizationDocumentsQuerySchema, listOrganizationDocumentsResponseSchema, listOrganizationDocumentsRpcInputSchema, organizationDocumentFolderRouteParamsSchema, organizationDocumentFolderSchema, organizationDocumentKindSchema, organizationDocumentPromptContextResponseSchema, organizationDocumentPromptContextRpcInputSchema, organizationDocumentRouteParamsSchema, organizationDocumentSchema, organizationDocumentSummarySchema, updateOrganizationDocumentBodySchema, updateOrganizationDocumentFolderBodySchema, updateOrganizationDocumentFolderResponseSchema, updateOrganizationDocumentFolderRpcInputSchema, updateOrganizationDocumentResponseSchema, updateOrganizationDocumentRpcInputSchema };\n\n//# sourceMappingURL=organization-documents.js.map","import { SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE } from \"./space-password.js\";\nimport { CENTER_AGENT_ROUTINE_ERROR_CODES } from \"./center-agent-routines.js\";\nimport { FEEDBACK_SUBMIT_ERROR_CODES } from \"./feedback.js\";\nimport { ORGANIZATION_SKILL_ERROR_CODES } from \"./organization-skills.js\";\nimport { commonErrorSchema } from \"../common/error-response.js\";\nimport { CENTER_AGENT_CONTEXT_ERROR_CODES } from \"./center-agent-context-manifest.js\";\nimport { MESSAGE_CHANNEL_ERROR_CODES } from \"./message-channels.js\";\nimport { ORGANIZATION_DOCUMENT_ERROR_CODES } from \"./organization-documents.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/gateway-error.ts\nconst trimmedNonEmptyStringSchema = z.string().trim().min(1);\nconst SPACE_ADDRESSING_TARGET_INVALID_ERROR_CODE = \"space.addressing.target_invalid\";\nconst gatewayErrorCodeSchema = z.enum([\n\t\"bad_request\",\n\t\"upstream_error\",\n\t\"upstream_unreachable\",\n\t\"invalid_json\",\n\t\"invalid_payload\",\n\t\"invalid_device_id\",\n\t\"invalid_space_id\",\n\t\"hello_required\",\n\t\"gateway.misconfigured\",\n\t\"auth.invalid_origin\",\n\t\"auth.unauthenticated\",\n\t\"account.avatar.conflict\",\n\t\"account.avatar.content_mismatch\",\n\t\"account.avatar.invalid_image\",\n\t\"account.avatar.profile_not_found\",\n\t\"account.avatar.storage_failed\",\n\t\"account.avatar.too_large\",\n\t\"account.avatar.transform_failed\",\n\t\"account.avatar.type_unsupported\",\n\t\"profile.not_found\",\n\t\"profile.invalid_input\",\n\t...FEEDBACK_SUBMIT_ERROR_CODES,\n\t\"organization.context_required\",\n\t\"organization.context_unavailable\",\n\t\"organization.membership_required\",\n\t\"organization.role_required\",\n\t\"usage.store_unavailable\",\n\t...MESSAGE_CHANNEL_ERROR_CODES,\n\t...ORGANIZATION_DOCUMENT_ERROR_CODES,\n\t...ORGANIZATION_SKILL_ERROR_CODES,\n\t\"connector.organization_context_changed\",\n\t\"organization.logo.conflict\",\n\t\"organization.logo.content_mismatch\",\n\t\"organization.logo.forbidden\",\n\t\"organization.logo.invalid_image\",\n\t\"organization.logo.metadata_invalid\",\n\t\"organization.logo.not_found\",\n\t\"organization.logo.personal_unsupported\",\n\t\"organization.logo.storage_failed\",\n\t\"organization.logo.too_large\",\n\t\"organization.logo.transform_failed\",\n\t\"organization.logo.type_unsupported\",\n\t\"organization_binding_authorization.binding_required\",\n\t\"organization_binding_authorization.no_bindings\",\n\t\"organization_binding_authorization.preference_unavailable\",\n\t\"organization_binding_authorization.profile_org_mismatch\",\n\t\"organization_binding_authorization.profile_owner_mismatch\",\n\t\"agent_profile_binding.model_not_supported\",\n\t\"agent_profile_binding.reasoning_level_not_supported\",\n\t\"center_agent.designation_required\",\n\t\"center_agent.designation_store_unavailable\",\n\t\"center_agent.not_designated\",\n\t\"center_agent.permission_required\",\n\t\"center_agent.profile_binding_required\",\n\t\"center_agent.profile_org_mismatch\",\n\t\"center_agent.profile_invalid\",\n\t\"center_agent.profile_not_found\",\n\t\"center_agent.audit_store_unavailable\",\n\t\"center_agent.dm_open_failed\",\n\t...CENTER_AGENT_CONTEXT_ERROR_CODES,\n\t...CENTER_AGENT_ROUTINE_ERROR_CODES,\n\t\"slack.workspace_already_bound\",\n\t\"slack.organization_already_bound\",\n\t\"slack.workspace_not_connected\",\n\t\"slack.identity_link_account_required\",\n\t\"slack.identity_link_token_invalid\",\n\t\"slack.identity_link_membership_required\",\n\t\"slack.identity_already_linked\",\n\t\"direct_message.open_failed\",\n\t\"direct_message.self_not_allowed\",\n\t\"direct_message.target_not_found\",\n\t\"direct_message.conversion_required\",\n\t\"connected_computer.enrollment_invalid\",\n\t\"device.forgotten\",\n\t\"invalid_password_payload\",\n\t\"space.not_found\",\n\t\"space.forbidden\",\n\t\"space.join.human_profile_required\",\n\t\"space.join.private\",\n\t\"space.organization_mismatch\",\n\t\"space.human_confirmation_required\",\n\t\"space.leave_space.creator_forbidden\",\n\t\"space.members.creator_forbidden\",\n\t\"space.members.current_profile_forbidden\",\n\t\"space.membership_required\",\n\tSPACE_ADDRESSING_TARGET_INVALID_ERROR_CODE,\n\t\"space.wake.client_message_id_required\",\n\t\"space.wake.handoff_seed_failed\",\n\t\"space.wake.target_invalid\",\n\t\"space.wake_progress.store_unavailable\",\n\t\"space_index.store_unavailable\",\n\t\"space.password_required\",\n\t\"space.password_invalid\",\n\tSPACE_PASSWORD_RATE_LIMITED_ERROR_CODE,\n\t\"space.password_too_short\",\n\t\"space.access_mode.password_not_configured\",\n\t\"space.publication_mode.owner_required\",\n\t\"space.publication_mode.password_not_configured\",\n\t\"attachment_too_large\",\n\t\"attachment_type_unsupported\",\n\t\"attachment_content_mismatch\",\n\t\"attachment_not_found\",\n\t\"attachment_reference_invalid\",\n\t\"attachment_storage_failed\",\n\t\"diagnostic_report.reported_signal_not_found\",\n\t\"diagnostic_report.store_unavailable\",\n\t\"start.session.retired\",\n\t\"prepare.session.navigation_action_already_started\",\n\t\"prepare.session.not_found\",\n\t\"prepare.session.revision_conflict\",\n\t\"prepare.session.store_unavailable\",\n\t\"prepare.session.terminal_stale\",\n\t\"prepare.session.token_invalid\"\n]);\nconst gatewayErrorSchema = commonErrorSchema.extend({\n\tcode: gatewayErrorCodeSchema,\n\trequestId: trimmedNonEmptyStringSchema,\n\tupstreamCode: trimmedNonEmptyStringSchema.optional()\n});\nconst gatewayErrorEnvelopeSchema = z.strictObject({\n\tok: z.literal(false),\n\terror: gatewayErrorSchema\n});\n//#endregion\nexport { SPACE_ADDRESSING_TARGET_INVALID_ERROR_CODE, gatewayErrorCodeSchema, gatewayErrorEnvelopeSchema };\n\n//# sourceMappingURL=gateway-error.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/http/identity-image.ts\nconst IDENTITY_IMAGE_MAX_SIZE_BYTES = 5242880;\nconst IDENTITY_IMAGE_MAX_DIMENSION = 2e4;\nconst IDENTITY_IMAGE_MAX_PIXELS = 4e7;\nconst IDENTITY_IMAGE_OUTPUT_SIZE = 512;\nconst IDENTITY_IMAGE_OUTPUT_MIME_TYPE = \"image/webp\";\nconst identityImageMimeTypeSchema = z.enum([\n\t\"image/jpeg\",\n\t\"image/png\",\n\t\"image/webp\"\n]);\n//#endregion\nexport { IDENTITY_IMAGE_MAX_DIMENSION, IDENTITY_IMAGE_MAX_PIXELS, IDENTITY_IMAGE_MAX_SIZE_BYTES, IDENTITY_IMAGE_OUTPUT_MIME_TYPE, IDENTITY_IMAGE_OUTPUT_SIZE, identityImageMimeTypeSchema };\n\n//# sourceMappingURL=identity-image.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/http/profile-space-history.ts\nconst ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });\nconst GATEWAY_HOST_MAX_LENGTH = 255;\nconst PROFILE_SPACE_HISTORY_MAX_LIMIT = 500;\nconst NON_NEGATIVE_INT_RE = /^\\d+$/;\nconst GATEWAY_HOST_PATH_CHARS_RE = /[/?#]/;\nconst trimmedNonEmptyStringSchema = z.string().trim().min(1);\nconst nullableTrimmedStringSchema = z.union([trimmedNonEmptyStringSchema, z.null()]);\nconst nullableNonNegativeIntSchema = z.union([z.number().int().min(0), z.null()]);\nconst nullableIsoDateTimeSchema = z.union([ISO_DATE_TIME_SCHEMA, z.null()]);\nconst profileSpaceHistoryGatewayHostSchema = z.string().transform((value, ctx) => {\n\tconst normalized = value.trim().toLowerCase();\n\tif (normalized.length === 0) {\n\t\tctx.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"gatewayHost is required\"\n\t\t});\n\t\treturn z.NEVER;\n\t}\n\tif (normalized.includes(\"://\")) try {\n\t\tconst url = new URL(normalized);\n\t\tif (url.pathname !== \"/\" || url.search.length > 0 || url.hash.length > 0) {\n\t\t\tctx.addIssue({\n\t\t\t\tcode: \"custom\",\n\t\t\t\tmessage: \"gatewayHost must not include path/query/hash\"\n\t\t\t});\n\t\t\treturn z.NEVER;\n\t\t}\n\t\tif (url.host.length === 0) {\n\t\t\tctx.addIssue({\n\t\t\t\tcode: \"custom\",\n\t\t\t\tmessage: \"gatewayHost is required\"\n\t\t\t});\n\t\t\treturn z.NEVER;\n\t\t}\n\t\treturn url.host.toLowerCase();\n\t} catch {\n\t\tctx.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"gatewayHost must be a valid host\"\n\t\t});\n\t\treturn z.NEVER;\n\t}\n\tif (GATEWAY_HOST_PATH_CHARS_RE.test(normalized)) {\n\t\tctx.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"gatewayHost must not include path/query/hash\"\n\t\t});\n\t\treturn z.NEVER;\n\t}\n\treturn normalized;\n}).pipe(z.string().max(GATEWAY_HOST_MAX_LENGTH));\nconst profileSpaceHistoryLimitSchema = z.preprocess((value) => {\n\tif (typeof value === \"number\") return value;\n\tif (typeof value !== \"string\") return value;\n\tconst normalized = value.trim();\n\tif (!NON_NEGATIVE_INT_RE.test(normalized)) return NaN;\n\treturn Number.parseInt(normalized, 10);\n}, z.number().int().min(1).max(PROFILE_SPACE_HISTORY_MAX_LIMIT)).optional();\nconst profileSpaceHistoryPinnedFilterSchema = z.union([z.boolean(), z.enum([\"true\", \"false\"])]).optional().transform((value) => {\n\tif (value === void 0 || typeof value === \"boolean\") return value;\n\treturn value === \"true\";\n});\nconst profileSpaceHistoryStatusSchema = z.enum([\n\t\"active\",\n\t\"removed\",\n\t\"inaccessible\"\n]);\nconst profileSpaceCreatorKindSchema = z.enum([\n\t\"human\",\n\t\"agent\",\n\t\"system\"\n]);\nconst profileSpaceHistoryStatusListSchema = z.union([profileSpaceHistoryStatusSchema, z.array(profileSpaceHistoryStatusSchema)]).optional().transform((value) => {\n\tif (value === void 0) return;\n\treturn Array.isArray(value) ? value : [value];\n});\nconst profileSpaceHistoryRecordSchema = z.strictObject({\n\tprofileId: trimmedNonEmptyStringSchema,\n\tgatewayHost: profileSpaceHistoryGatewayHostSchema,\n\tspaceId: trimmedNonEmptyStringSchema,\n\tspaceName: nullableTrimmedStringSchema,\n\tcreatorProfileId: nullableTrimmedStringSchema,\n\tcreatorKind: z.union([profileSpaceCreatorKindSchema, z.null()]),\n\tspaceCreatedAt: nullableIsoDateTimeSchema,\n\tspaceUpdatedAt: nullableIsoDateTimeSchema,\n\tlastJoinedAt: ISO_DATE_TIME_SCHEMA,\n\tlastSeenTs: nullableNonNegativeIntSchema,\n\tpinnedAt: nullableIsoDateTimeSchema,\n\tstatus: profileSpaceHistoryStatusSchema,\n\tcreatedAt: ISO_DATE_TIME_SCHEMA,\n\tupdatedAt: ISO_DATE_TIME_SCHEMA\n});\nconst listProfileSpaceHistoryQuerySchema = z.strictObject({\n\tgatewayHost: profileSpaceHistoryGatewayHostSchema,\n\tstatus: profileSpaceHistoryStatusListSchema,\n\tlimit: profileSpaceHistoryLimitSchema,\n\tpinned: profileSpaceHistoryPinnedFilterSchema\n});\nconst listProfileSpaceHistoryResponseSchema = z.strictObject({ items: z.array(profileSpaceHistoryRecordSchema) });\nconst profileSpaceHistorySpaceIndexOverlaySchema = z.strictObject({\n\trepairAttempted: z.boolean(),\n\tstatus: z.enum([\n\t\t\"applied\",\n\t\t\"degraded\",\n\t\t\"pending\"\n\t]),\n\tupdated: z.boolean()\n});\nconst upsertProfileSpaceHistoryBodySchema = z.strictObject({\n\tgatewayHost: profileSpaceHistoryGatewayHostSchema,\n\tspaceName: nullableTrimmedStringSchema.optional(),\n\tcreatorProfileId: nullableTrimmedStringSchema.optional(),\n\tcreatorKind: z.union([profileSpaceCreatorKindSchema, z.null()]).optional(),\n\tspaceCreatedAt: nullableIsoDateTimeSchema.optional(),\n\tspaceUpdatedAt: nullableIsoDateTimeSchema.optional(),\n\tlastJoinedAt: ISO_DATE_TIME_SCHEMA.optional(),\n\tlastSeenTs: nullableNonNegativeIntSchema.optional(),\n\tpinnedAt: nullableIsoDateTimeSchema.optional(),\n\tstatus: profileSpaceHistoryStatusSchema.optional()\n});\nconst upsertProfileSpaceHistoryResponseSchema = z.strictObject({\n\titem: profileSpaceHistoryRecordSchema,\n\tspaceIndexOverlay: profileSpaceHistorySpaceIndexOverlaySchema\n});\nconst patchProfileSpaceHistoryStatusBodySchema = z.strictObject({\n\tgatewayHost: profileSpaceHistoryGatewayHostSchema,\n\tstatus: profileSpaceHistoryStatusSchema,\n\treason: z.string().trim().min(1).max(500).optional()\n});\nconst patchProfileSpaceHistoryStatusResponseSchema = z.strictObject({\n\tprofileId: trimmedNonEmptyStringSchema,\n\tgatewayHost: profileSpaceHistoryGatewayHostSchema,\n\tspaceId: trimmedNonEmptyStringSchema,\n\tstatus: profileSpaceHistoryStatusSchema,\n\tupdatedAt: ISO_DATE_TIME_SCHEMA\n});\n//#endregion\nexport { listProfileSpaceHistoryQuerySchema, listProfileSpaceHistoryResponseSchema, patchProfileSpaceHistoryStatusBodySchema, patchProfileSpaceHistoryStatusResponseSchema, profileSpaceCreatorKindSchema, profileSpaceHistoryGatewayHostSchema, profileSpaceHistoryRecordSchema, profileSpaceHistorySpaceIndexOverlaySchema, profileSpaceHistoryStatusSchema, upsertProfileSpaceHistoryBodySchema, upsertProfileSpaceHistoryResponseSchema };\n\n//# sourceMappingURL=profile-space-history.js.map","import { spaceOrganizationVisibilitySchema } from \"./space-meta.js\";\nimport { profileSpaceCreatorKindSchema, profileSpaceHistoryGatewayHostSchema } from \"./profile-space-history.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/account-space-index.ts\nconst ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });\nconst trimmedNonEmptyStringSchema = z.string().trim().min(1);\nconst nullableTrimmedStringSchema = z.union([trimmedNonEmptyStringSchema, z.null()]);\nconst nullableNonNegativeIntSchema = z.union([z.number().int().min(0), z.null()]);\nconst nullableIsoDateTimeSchema = z.union([ISO_DATE_TIME_SCHEMA, z.null()]);\nconst ACCOUNT_SPACE_INDEX_MAX_LIMIT = 500;\nconst NON_NEGATIVE_INT_RE = /^\\d+$/;\nconst accountSpaceIndexScopeSchema = z.enum([\"account\", \"profile\"]);\nconst accountSpaceIndexLimitSchema = z.preprocess((value) => {\n\tif (typeof value === \"number\") return value;\n\tif (typeof value !== \"string\") return value;\n\tconst normalized = value.trim();\n\tif (!NON_NEGATIVE_INT_RE.test(normalized)) return NaN;\n\treturn Number.parseInt(normalized, 10);\n}, z.number().int().min(1).max(ACCOUNT_SPACE_INDEX_MAX_LIMIT)).optional();\nconst accountSpaceIndexIncludeRecentlyDeletedItemsSchema = z.preprocess((value) => {\n\tif (typeof value === \"boolean\") return value;\n\treturn value === \"true\";\n}, z.boolean()).optional();\nconst accountSpaceIndexIncludePurposesSchema = z.preprocess((value) => {\n\tif (typeof value === \"boolean\") return value;\n\treturn value === \"true\";\n}, z.boolean()).optional();\nconst accountSpaceIndexQuerySchema = z.strictObject({\n\tgatewayHost: profileSpaceHistoryGatewayHostSchema,\n\tincludeRecentlyDeletedItems: accountSpaceIndexIncludeRecentlyDeletedItemsSchema,\n\tincludePurposes: accountSpaceIndexIncludePurposesSchema,\n\tlimit: accountSpaceIndexLimitSchema,\n\tscope: accountSpaceIndexScopeSchema.default(\"account\"),\n\tselectedProfileId: trimmedNonEmptyStringSchema\n});\nconst accountSpaceIndexJoinedProfileSchema = z.strictObject({\n\tlastJoinedAt: ISO_DATE_TIME_SCHEMA,\n\tpinnedAt: nullableIsoDateTimeSchema,\n\tprofileId: trimmedNonEmptyStringSchema,\n\tprofileName: trimmedNonEmptyStringSchema\n});\nconst accountSpaceIndexItemSchema = z.strictObject({\n\tcreatorKind: z.union([profileSpaceCreatorKindSchema, z.null()]),\n\tcreatorOwnerUserId: nullableTrimmedStringSchema,\n\tcreatorProfileId: nullableTrimmedStringSchema,\n\tcreatorProfileName: nullableTrimmedStringSchema,\n\tgatewayHost: profileSpaceHistoryGatewayHostSchema,\n\tjoinedProfiles: z.array(accountSpaceIndexJoinedProfileSchema),\n\tlastJoinedAt: ISO_DATE_TIME_SCHEMA,\n\tlastSeenTs: nullableNonNegativeIntSchema,\n\topenProfileId: trimmedNonEmptyStringSchema,\n\topenProfileName: trimmedNonEmptyStringSchema,\n\torganizationId: trimmedNonEmptyStringSchema,\n\tpinnedAt: nullableIsoDateTimeSchema,\n\tpinnedProfileIds: z.array(trimmedNonEmptyStringSchema),\n\tspaceCreatedAt: nullableIsoDateTimeSchema,\n\tspaceId: trimmedNonEmptyStringSchema,\n\tspaceName: trimmedNonEmptyStringSchema,\n\tactiveAgentCount: nullableNonNegativeIntSchema.optional(),\n\tactiveHumanCount: nullableNonNegativeIntSchema.optional(),\n\tactiveMemberCount: nullableNonNegativeIntSchema.optional(),\n\tdirectMessageConvertedAt: nullableIsoDateTimeSchema.optional(),\n\tspacePurpose: nullableTrimmedStringSchema.optional(),\n\tspaceUpdatedAt: nullableIsoDateTimeSchema,\n\tstatus: trimmedNonEmptyStringSchema,\n\tupdatedAt: ISO_DATE_TIME_SCHEMA,\n\tvisibility: spaceOrganizationVisibilitySchema\n});\nconst accountSpaceIndexDeletedItemSchema = z.strictObject({\n\tdeletedAt: ISO_DATE_TIME_SCHEMA,\n\tdeletedByProfileName: nullableTrimmedStringSchema,\n\tspaceId: trimmedNonEmptyStringSchema,\n\tspaceName: nullableTrimmedStringSchema\n});\nconst accountSpaceIndexResponseSchema = z.strictObject({\n\tpinnedItems: z.array(accountSpaceIndexItemSchema),\n\trecentlyDeletedItems: z.array(accountSpaceIndexDeletedItemSchema).optional(),\n\tspaceItems: z.array(accountSpaceIndexItemSchema)\n});\n//#endregion\nexport { accountSpaceIndexDeletedItemSchema, accountSpaceIndexIncludePurposesSchema, accountSpaceIndexIncludeRecentlyDeletedItemsSchema, accountSpaceIndexItemSchema, accountSpaceIndexJoinedProfileSchema, accountSpaceIndexLimitSchema, accountSpaceIndexQuerySchema, accountSpaceIndexResponseSchema, accountSpaceIndexScopeSchema };\n\n//# sourceMappingURL=account-space-index.js.map","import { z } from \"zod/v4\";\n/**\n* Canonical catch-up response shape across Core/Gateway/CLI.\n* `nextCursor` is nullable; invalid cursor types fail fast.\n*/\nconst catchupResponseSchema = z.strictObject({\n\tsignals: z.array(z.unknown()),\n\tnextCursor: z.union([z.string().refine((value) => value.trim().length > 0), z.null()]).optional()\n}).transform((value) => {\n\tconst nextCursor = value.nextCursor ?? null;\n\treturn {\n\t\tsignals: value.signals,\n\t\tnextCursor\n\t};\n});\n//#endregion\nexport { catchupResponseSchema };\n\n//# sourceMappingURL=catchup-response.js.map","import { profileSchema } from \"./profile.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/protocol/hello.ts\nconst helloCapabilitiesSchema = z.object({ liveSignalHistory: z.boolean().optional() });\nconst helloSchema = z.object({\n\ttype: z.literal(\"hello\"),\n\tprofile: profileSchema,\n\tcapabilities: helloCapabilitiesSchema.optional()\n});\nconst helloAckSchema = z.object({\n\ttype: z.literal(\"system.hello.ack\"),\n\tprofile: profileSchema\n});\n//#endregion\nexport { helloAckSchema, helloCapabilitiesSchema, helloSchema };\n\n//# sourceMappingURL=hello.js.map","import { nonEmptyTrimmedStringFromUnknown } from \"./shared.js\";\nimport { clientMessageIdSchema } from \"./client-message-id.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/protocol/server-error.ts\nconst serverErrorFrameSchema = z.object({\n\terror: nonEmptyTrimmedStringFromUnknown,\n\trequestId: nonEmptyTrimmedStringFromUnknown.optional(),\n\tclientMessageId: clientMessageIdSchema.optional()\n});\n//#endregion\nexport { serverErrorFrameSchema };\n\n//# sourceMappingURL=server-error.js.map","import { finiteIntegerNumber, nonEmptyTrimmedStringFromUnknown } from \"./shared.js\";\nimport { profileSchema } from \"./profile.js\";\nimport { spaceAgentStreamDeltaFrameSchema, spaceAgentStreamPartFrameSchema, spaceAgentStreamTerminalFrameSchema } from \"./agent-stream.js\";\nimport { spaceThreadContextSchema, spaceThreadSignalPlacementSchema } from \"../space-mesh/space-thread.js\";\nimport { signalStatusDataSchema, signalSystemNoticeDataSchema, signalTextDataSchema } from \"./signal.js\";\nimport { helloAckSchema } from \"./hello.js\";\nimport { serverErrorFrameSchema } from \"./server-error.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/protocol/envelope.ts\nconst baseEnvelopeShape = {\n\tv: z.literal(1),\n\tid: nonEmptyTrimmedStringFromUnknown,\n\tspaceId: nonEmptyTrimmedStringFromUnknown,\n\tts: finiteIntegerNumber,\n\tprofile: profileSchema\n};\nconst presenceDataSchema = z.record(z.string(), z.unknown());\nconst presenceEnvelopeSchema = z.object({\n\t...baseEnvelopeShape,\n\ttype: z.enum([\"presence.join\", \"presence.quit\"]),\n\tdata: presenceDataSchema\n});\nconst signalTextEnvelopeSchema = z.object({\n\t...baseEnvelopeShape,\n\ttype: z.literal(\"signal.text\"),\n\tdata: signalTextDataSchema\n});\nconst signalStatusEnvelopeSchema = z.object({\n\t...baseEnvelopeShape,\n\ttype: z.literal(\"signal.status\"),\n\tdata: signalStatusDataSchema\n});\nconst signalSystemNoticeEnvelopeSchema = z.object({\n\t...baseEnvelopeShape,\n\ttype: z.literal(\"signal.system_notice\"),\n\tdata: signalSystemNoticeDataSchema\n});\nconst signalEnvelopeSchema = z.union([\n\tpresenceEnvelopeSchema,\n\tsignalTextEnvelopeSchema,\n\tsignalStatusEnvelopeSchema,\n\tsignalSystemNoticeEnvelopeSchema\n]);\nconst spaceLiveSignalFrameSchema = z.strictObject({\n\ttype: z.literal(\"space.signal\"),\n\tsignal: signalEnvelopeSchema,\n\thistory: z.strictObject({ persisted: z.boolean() }).optional(),\n\tthreadContext: spaceThreadContextSchema.optional(),\n\tthreadPlacement: spaceThreadSignalPlacementSchema.optional()\n});\nconst spaceLiveInvalidationFrameSchema = z.strictObject({\n\ttype: z.enum([\n\t\t\"space.members.changed\",\n\t\t\"space.meta.changed\",\n\t\t\"agent.readiness.invalidated\"\n\t]),\n\tspaceId: nonEmptyTrimmedStringFromUnknown,\n\tversion: finiteIntegerNumber,\n\tprofileIds: z.array(nonEmptyTrimmedStringFromUnknown).optional(),\n\tagentProfileIds: z.array(nonEmptyTrimmedStringFromUnknown).optional(),\n\treason: nonEmptyTrimmedStringFromUnknown.optional()\n});\nconst incomingServerMessageSchema = z.union([\n\tsignalEnvelopeSchema,\n\tspaceLiveSignalFrameSchema,\n\tspaceLiveInvalidationFrameSchema,\n\tspaceAgentStreamDeltaFrameSchema,\n\tspaceAgentStreamPartFrameSchema,\n\tspaceAgentStreamTerminalFrameSchema,\n\thelloAckSchema,\n\tserverErrorFrameSchema\n]);\n//#endregion\nexport { incomingServerMessageSchema, presenceEnvelopeSchema, signalEnvelopeSchema, signalStatusEnvelopeSchema, signalSystemNoticeEnvelopeSchema, signalTextEnvelopeSchema, spaceLiveInvalidationFrameSchema, spaceLiveSignalFrameSchema };\n\n//# sourceMappingURL=envelope.js.map","import { hostedModelReasoningLevelSchema } from \"../config/model-catalog.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/runtime/center-agent-model.ts\nconst boundedIdentifierSchema = z.string().trim().min(1).max(256);\nconst centerAgentModelPreferenceSchema = z.discriminatedUnion(\"kind\", [z.strictObject({ kind: z.literal(\"system_default\") }), z.strictObject({\n\tkind: z.literal(\"selected_model\"),\n\tmodelId: boundedIdentifierSchema\n})]);\nconst centerAgentModelSummarySchema = z.strictObject({\n\tavailability: z.enum([\n\t\t\"available\",\n\t\t\"unavailable\",\n\t\t\"unknown\"\n\t]),\n\tdisplayName: boundedIdentifierSchema,\n\tmodelId: boundedIdentifierSchema,\n\tsupportsImageInput: z.boolean()\n});\nconst centerAgentModelChoiceSchema = z.strictObject({\n\tdisplayName: boundedIdentifierSchema,\n\teffectiveModelDisplayName: boundedIdentifierSchema,\n\tpreference: centerAgentModelPreferenceSchema,\n\tsupportsImageInput: z.boolean()\n});\nconst centerAgentHostedModelRouteSchema = z.strictObject({\n\tcontextWindow: z.number().int().positive(),\n\tdisplayName: boundedIdentifierSchema,\n\tinputModalities: z.array(z.enum([\"text\", \"image\"])).min(1),\n\tmaxOutputTokens: z.number().int().positive(),\n\tmodelId: boundedIdentifierSchema,\n\tprovider: z.literal(\"openrouter\"),\n\treasoningLevel: hostedModelReasoningLevelSchema\n});\nconst centerAgentModelRouteSchema = z.strictObject({\n\tautomaticModelFallback: z.literal(false),\n\tcatalogUpdatedAt: z.iso.datetime({ offset: true }),\n\tcontextWindow: z.number().int().positive(),\n\tdisplayName: boundedIdentifierSchema,\n\timageUnderstandingModel: centerAgentHostedModelRouteSchema,\n\tinputModalities: z.array(z.enum([\"text\", \"image\"])).min(1),\n\tmaxOutputTokens: z.number().int().positive(),\n\tmodelId: boundedIdentifierSchema,\n\tpreference: centerAgentModelPreferenceSchema,\n\tprovider: z.literal(\"openrouter\"),\n\treasoningLevel: hostedModelReasoningLevelSchema\n});\n//#endregion\nexport { centerAgentModelChoiceSchema, centerAgentModelPreferenceSchema, centerAgentModelRouteSchema, centerAgentModelSummarySchema };\n\n//# sourceMappingURL=center-agent-model.js.map","import { messageChannelProviderSchema } from \"./message-channel.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/runtime/channel-context.ts\nconst CHANNEL_CONTEXT_MAX_MESSAGES = 20;\nconst CHANNEL_CONTEXT_MESSAGE_TEXT_MAX_CHARS = 4e3;\nconst CHANNEL_CONTEXT_TOTAL_TEXT_MAX_CHARS = 16e3;\nconst nonEmptyStringSchema = z.string().trim().min(1);\nconst channelContextAuthorSchema = z.strictObject({\n\tkind: z.enum([\n\t\t\"human\",\n\t\t\"agent\",\n\t\t\"bot\",\n\t\t\"system\",\n\t\t\"unknown\"\n\t]),\n\tid: nonEmptyStringSchema.max(256).optional(),\n\tdisplayName: nonEmptyStringSchema.max(256).optional()\n});\nconst channelContextMessageSchema = z.strictObject({\n\tid: nonEmptyStringSchema.max(256),\n\tauthor: channelContextAuthorSchema,\n\tsentAtMs: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),\n\ttext: nonEmptyStringSchema.max(CHANNEL_CONTEXT_MESSAGE_TEXT_MAX_CHARS)\n});\nconst channelContextSyncSchema = z.strictObject({\n\tmode: z.enum([\"snapshot\", \"delta\"]),\n\tstatus: z.enum([\n\t\t\"complete\",\n\t\t\"truncated\",\n\t\t\"unavailable\",\n\t\t\"forbidden\",\n\t\t\"rate_limited\"\n\t])\n});\nconst channelContextSchema = z.strictObject({\n\tprovider: messageChannelProviderSchema,\n\tconversationId: nonEmptyStringSchema.max(512),\n\tcurrentMessageId: nonEmptyStringSchema.max(256),\n\tsync: channelContextSyncSchema,\n\tmessages: z.array(channelContextMessageSchema).max(20)\n}).superRefine((context, refinement) => {\n\tif (context.sync.status !== \"complete\" && context.sync.status !== \"truncated\" && context.messages.length > 0) refinement.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Unavailable channel context statuses cannot include message records.\",\n\t\tpath: [\"messages\"]\n\t});\n\tconst messageIds = /* @__PURE__ */ new Set();\n\tlet previousSentAtMs = -1;\n\tlet totalTextCharacters = 0;\n\tfor (const [index, message] of context.messages.entries()) {\n\t\tif (messageIds.has(message.id)) refinement.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"Channel context message identifiers must be unique.\",\n\t\t\tpath: [\n\t\t\t\t\"messages\",\n\t\t\t\tindex,\n\t\t\t\t\"id\"\n\t\t\t]\n\t\t});\n\t\tmessageIds.add(message.id);\n\t\tif (message.id === context.currentMessageId) refinement.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"The current trigger message must not be duplicated in channel context.\",\n\t\t\tpath: [\n\t\t\t\t\"messages\",\n\t\t\t\tindex,\n\t\t\t\t\"id\"\n\t\t\t]\n\t\t});\n\t\tif (message.sentAtMs < previousSentAtMs) refinement.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"Channel context messages must be ordered by sentAtMs.\",\n\t\t\tpath: [\n\t\t\t\t\"messages\",\n\t\t\t\tindex,\n\t\t\t\t\"sentAtMs\"\n\t\t\t]\n\t\t});\n\t\telse previousSentAtMs = message.sentAtMs;\n\t\ttotalTextCharacters += message.text.length;\n\t}\n\tif (totalTextCharacters > 16e3) refinement.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Channel context message text exceeds the total size limit.\",\n\t\tpath: [\"messages\"]\n\t});\n});\n//#endregion\nexport { CHANNEL_CONTEXT_MAX_MESSAGES, CHANNEL_CONTEXT_MESSAGE_TEXT_MAX_CHARS, CHANNEL_CONTEXT_TOTAL_TEXT_MAX_CHARS, channelContextAuthorSchema, channelContextMessageSchema, channelContextSchema, channelContextSyncSchema };\n\n//# sourceMappingURL=channel-context.js.map","import { openMeldWebUrlSchema } from \"../../navigation-action.js\";\nimport { centerAgentInteractionSourceSchema } from \"../protocol/center-agent-interaction-source.js\";\nimport { agentDelegationSnapshotSchema, agentTaskCompletionObservationSchema, agentTaskHandleSchema, agentTaskTerminalOutcomeSchema, areAgentTaskTerminalOutcomesEqual, buildAgentTaskKey } from \"./agent-task-coordination.js\";\nimport { messageChannelParticipantIdentitySchema, messageChannelProviderSchema } from \"./message-channel.js\";\nimport { centerAgentRoutineAuthorizedActionsSchema, centerAgentRoutineExternalActionPolicySchema } from \"../http/center-agent-routines.js\";\nimport { MAX_SPACE_GUIDE_LENGTH } from \"../http/space-meta.js\";\nimport { channelContextSchema } from \"./channel-context.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/runtime/remote-agent-turn-envelope.ts\nconst nonEmptyStringSchema = z.string().trim().min(1);\nconst REMOTE_AGENT_TRIGGER_TEXT_MAX_CHARS = 4e3;\nconst REMOTE_AGENT_TURN_ENVELOPE_MEMORY_ITEM_TEXT_MAX_CHARS = 1200;\nconst remoteAgentInteractionEnvironmentSchema = z.enum([\n\t\"requester_private\",\n\t\"organization_shared\",\n\t\"externally_shared\"\n]);\nconst centerAgentContextHandlingSchema = z.enum([\n\t\"use_and_share\",\n\t\"use_privately\",\n\t\"share_when_authorized\",\n\t\"never_available\"\n]);\nconst centerAgentRequesterIdentitySchema = z.enum([\n\t\"verified_member\",\n\t\"connected_organization_member\",\n\t\"external_participant\",\n\t\"organization_routine\",\n\t\"agent_profile\"\n]);\nconst centerAgentResultAudienceSchema = z.enum([\n\t\"requester_only\",\n\t\"organization_members\",\n\t\"external_conversation\"\n]);\nconst centerAgentContextScopePlanSchema = z.strictObject({\n\tauthenticationSecrets: z.literal(\"never_available\"),\n\tinteractionEnvironment: remoteAgentInteractionEnvironmentSchema,\n\tmemberMemory: centerAgentContextHandlingSchema,\n\torganizationDocuments: centerAgentContextHandlingSchema,\n\torganizationMemory: centerAgentContextHandlingSchema,\n\torganizationSkills: centerAgentContextHandlingSchema,\n\tprotectedInformation: centerAgentContextHandlingSchema,\n\trequesterIdentity: centerAgentRequesterIdentitySchema,\n\tresultAudience: centerAgentResultAudienceSchema,\n\tv: z.literal(1)\n});\nconst remoteAgentTurnEnvelopePersonSenderShape = {\n\tid: nonEmptyStringSchema,\n\tdisplayName: nonEmptyStringSchema,\n\townerUserId: nonEmptyStringSchema.optional(),\n\tprofileId: nonEmptyStringSchema.optional(),\n\trole: nonEmptyStringSchema.optional(),\n\tmessageChannelIdentity: messageChannelParticipantIdentitySchema.optional(),\n\tverified: z.boolean()\n};\nconst remoteAgentTurnEnvelopeSenderSchema = z.discriminatedUnion(\"kind\", [\n\tz.strictObject({\n\t\tkind: z.literal(\"member\"),\n\t\t...remoteAgentTurnEnvelopePersonSenderShape\n\t}),\n\tz.strictObject({\n\t\tkind: z.literal(\"agent_profile\"),\n\t\t...remoteAgentTurnEnvelopePersonSenderShape\n\t}),\n\tz.strictObject({\n\t\tkind: z.literal(\"routine\"),\n\t\troutineId: nonEmptyStringSchema,\n\t\tcreatedByUserId: nonEmptyStringSchema,\n\t\tdelegatedBy: z.strictObject({\n\t\t\tid: nonEmptyStringSchema,\n\t\t\tdisplayName: nonEmptyStringSchema,\n\t\t\townerUserId: nonEmptyStringSchema,\n\t\t\trole: nonEmptyStringSchema.optional(),\n\t\t\tverified: z.literal(true)\n\t\t})\n\t})\n]);\nconst remoteAgentTurnEnvelopeSpaceSchema = z.strictObject({\n\tid: nonEmptyStringSchema,\n\tname: nonEmptyStringSchema,\n\tkind: z.enum([\"dm\", \"space\"]),\n\tisCenterAgentDm: z.boolean(),\n\tguide: nonEmptyStringSchema.max(MAX_SPACE_GUIDE_LENGTH).optional()\n});\nconst remoteAgentTurnEnvelopeOrganizationSchema = z.strictObject({\n\tid: nonEmptyStringSchema,\n\tname: nonEmptyStringSchema,\n\tpersonal: z.boolean(),\n\tmemberCount: z.number().int().nonnegative(),\n\twebUrl: openMeldWebUrlSchema.optional()\n});\nconst remoteAgentTurnEnvelopeCenterAgentSchema = z.strictObject({\n\tprofileName: nonEmptyStringSchema,\n\tprofileHandle: nonEmptyStringSchema\n});\nconst remoteAgentSlackSearchAuthorizationSchema = z.strictObject({ encryptedAuthorization: nonEmptyStringSchema.max(8192) });\nconst remoteAgentRoutineDestinationSchema = z.discriminatedUnion(\"kind\", [z.strictObject({\n\tkind: z.literal(\"space\"),\n\tspaceId: nonEmptyStringSchema\n}), z.strictObject({\n\tchannelId: nonEmptyStringSchema,\n\tconversationId: nonEmptyStringSchema,\n\tkind: z.literal(\"slack_thread\"),\n\tlabel: nonEmptyStringSchema.optional(),\n\tteamId: nonEmptyStringSchema,\n\tthreadTs: nonEmptyStringSchema\n})]);\nconst remoteAgentRoutineContinuationSchema = z.strictObject({\n\tdelegation: agentDelegationSnapshotSchema,\n\tdelegationId: nonEmptyStringSchema,\n\toutcome: agentTaskTerminalOutcomeSchema,\n\tsubscriptionId: nonEmptyStringSchema,\n\twatchedTask: agentTaskHandleSchema\n});\nconst remoteAgentTurnEnvelopeTriggerSchema = z.discriminatedUnion(\"source\", [\n\tz.strictObject({ source: z.literal(\"web_dm\") }),\n\tz.strictObject({ source: z.literal(\"space_wake\") }),\n\tz.strictObject({\n\t\tsource: z.literal(\"slack\"),\n\t\tteamId: nonEmptyStringSchema.optional(),\n\t\tchannelId: nonEmptyStringSchema.optional(),\n\t\tthreadTs: nonEmptyStringSchema.optional(),\n\t\tconversationId: nonEmptyStringSchema.optional(),\n\t\tchannelName: nonEmptyStringSchema.optional(),\n\t\tsearchAuthorization: remoteAgentSlackSearchAuthorizationSchema.optional()\n\t}),\n\tz.strictObject({\n\t\tsource: z.literal(\"message_channel\"),\n\t\tprovider: messageChannelProviderSchema,\n\t\tconnectionId: nonEmptyStringSchema,\n\t\tconversationId: nonEmptyStringSchema\n\t}),\n\tz.strictObject({\n\t\tauthorizedActions: centerAgentRoutineAuthorizedActionsSchema.default([]),\n\t\texternalActionPolicy: centerAgentRoutineExternalActionPolicySchema.optional(),\n\t\tsource: z.literal(\"routine\"),\n\t\troutineId: nonEmptyStringSchema,\n\t\trunId: nonEmptyStringSchema,\n\t\tscheduledFor: z.number().int().nonnegative(),\n\t\troutineName: nonEmptyStringSchema.max(120),\n\t\tdestination: remoteAgentRoutineDestinationSchema.optional(),\n\t\tcontinuation: remoteAgentRoutineContinuationSchema.optional()\n\t}),\n\tz.strictObject({\n\t\tsource: z.literal(\"member_research\"),\n\t\ttaskId: nonEmptyStringSchema,\n\t\tsubjectUserId: nonEmptyStringSchema,\n\t\tsubjectDisplayName: nonEmptyStringSchema\n\t}),\n\tz.strictObject({\n\t\tdelegation: agentDelegationSnapshotSchema.optional(),\n\t\tdelegationId: nonEmptyStringSchema,\n\t\toutcome: agentTaskTerminalOutcomeSchema,\n\t\tsource: z.literal(\"task_continuation\"),\n\t\tsubscriptionId: nonEmptyStringSchema,\n\t\twatchedTask: agentTaskHandleSchema\n\t}),\n\tz.strictObject({\n\t\toutcome: agentTaskCompletionObservationSchema,\n\t\tsource: z.literal(\"task_watch_continuation\"),\n\t\tsubscriptionId: nonEmptyStringSchema,\n\t\twatchedTask: agentTaskHandleSchema,\n\t\twatchId: nonEmptyStringSchema\n\t})\n]);\nconst remoteAgentTurnEnvelopeMemorySourceSchema = z.enum([\n\t\"ca_dm\",\n\t\"explicit_tool\",\n\t\"space_conversation\",\n\t\"slack_conversation\",\n\t\"message_channel_conversation\"\n]);\nconst remoteAgentTurnEnvelopeMemorySubjectSchema = z.enum([\"member\", \"organization\"]);\nconst remoteAgentTurnEnvelopeMemoryItemTextSchema = nonEmptyStringSchema.max(REMOTE_AGENT_TURN_ENVELOPE_MEMORY_ITEM_TEXT_MAX_CHARS);\nconst remoteAgentTurnEnvelopeMemoryItemSchema = z.discriminatedUnion(\"source\", [z.strictObject({\n\tsource: z.enum([\n\t\t\"ca_dm\",\n\t\t\"explicit_tool\",\n\t\t\"space_conversation\",\n\t\t\"slack_conversation\"\n\t]),\n\tsubject: remoteAgentTurnEnvelopeMemorySubjectSchema,\n\ttext: remoteAgentTurnEnvelopeMemoryItemTextSchema\n}), z.strictObject({\n\tsource: z.literal(\"message_channel_conversation\"),\n\tprovider: messageChannelProviderSchema,\n\tsubject: remoteAgentTurnEnvelopeMemorySubjectSchema,\n\ttext: remoteAgentTurnEnvelopeMemoryItemTextSchema\n})]);\nconst remoteAgentTurnEnvelopeMemorySchema = z.strictObject({\n\titems: z.array(remoteAgentTurnEnvelopeMemoryItemSchema).max(8),\n\ttruncated: z.boolean()\n});\nconst remoteAgentTurnEnvelopeSchema = z.strictObject({\n\tsender: remoteAgentTurnEnvelopeSenderSchema,\n\tspace: remoteAgentTurnEnvelopeSpaceSchema,\n\torganization: remoteAgentTurnEnvelopeOrganizationSchema,\n\tcenterAgent: remoteAgentTurnEnvelopeCenterAgentSchema,\n\ttrigger: remoteAgentTurnEnvelopeTriggerSchema,\n\tcontextScopePlan: centerAgentContextScopePlanSchema.optional(),\n\tinteractionEnvironment: remoteAgentInteractionEnvironmentSchema.optional(),\n\tcenterAgentInteractionSource: centerAgentInteractionSourceSchema.optional(),\n\tchannelContext: channelContextSchema.optional(),\n\tmemory: remoteAgentTurnEnvelopeMemorySchema.optional()\n}).superRefine((envelope, context) => {\n\tconst hasRoutineSender = envelope.sender.kind === \"routine\";\n\tif (hasRoutineSender !== (envelope.trigger.source === \"routine\")) {\n\t\tcontext.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"Routine sender and trigger variants must be used together.\",\n\t\t\tpath: [hasRoutineSender ? \"trigger\" : \"sender\"]\n\t\t});\n\t\treturn;\n\t}\n\tif (envelope.sender.kind === \"routine\" && envelope.trigger.source === \"routine\" && envelope.sender.routineId !== envelope.trigger.routineId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Routine sender and trigger identifiers must match.\",\n\t\tpath: [\"trigger\", \"routineId\"]\n\t});\n\tif (envelope.sender.kind === \"routine\" && envelope.sender.delegatedBy.ownerUserId !== envelope.sender.createdByUserId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Routine delegation must belong to the user who created the Routine.\",\n\t\tpath: [\n\t\t\t\"sender\",\n\t\t\t\"delegatedBy\",\n\t\t\t\"ownerUserId\"\n\t\t]\n\t});\n\tif (envelope.trigger.source === \"routine\" && envelope.trigger.destination && envelope.trigger.destination.kind === \"space\" && envelope.trigger.destination.spaceId !== envelope.space.id) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Routine Space destination must match the envelope conversation.\",\n\t\tpath: [\n\t\t\t\"trigger\",\n\t\t\t\"destination\",\n\t\t\t\"spaceId\"\n\t\t]\n\t});\n\tif (envelope.trigger.source === \"routine\" && envelope.trigger.destination && envelope.trigger.destination.kind === \"slack_thread\" && envelope.trigger.destination.conversationId !== envelope.space.id) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Routine Slack destination must match the envelope conversation.\",\n\t\tpath: [\n\t\t\t\"trigger\",\n\t\t\t\"destination\",\n\t\t\t\"conversationId\"\n\t\t]\n\t});\n\tif (envelope.trigger.source === \"member_research\" && (envelope.sender.kind !== \"member\" || !envelope.sender.verified || !envelope.sender.ownerUserId || !envelope.sender.profileId)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Member research turns require a verified human member sender.\",\n\t\tpath: [\"sender\"]\n\t});\n\tif (envelope.trigger.source === \"task_continuation\" && (envelope.sender.kind !== \"member\" || !envelope.sender.verified || !envelope.sender.ownerUserId || !envelope.sender.profileId)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Task continuation turns require the original verified human member sender.\",\n\t\tpath: [\"sender\"]\n\t});\n\tvalidateTaskContinuationTrigger(envelope.trigger, context);\n\tvalidateMessageChannelTurn(envelope, context);\n});\nfunction validateMessageChannelTurn(envelope, context) {\n\tif (envelope.trigger.source !== \"message_channel\") return;\n\tif (envelope.trigger.conversationId !== envelope.space.id) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Message Channel trigger must match the envelope conversation.\",\n\t\tpath: [\"trigger\", \"conversationId\"]\n\t});\n\tif (envelope.channelContext && (envelope.channelContext.provider !== envelope.trigger.provider || envelope.channelContext.conversationId !== envelope.trigger.conversationId)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Message Channel context must match the trigger provider and conversation.\",\n\t\tpath: [\"channelContext\"]\n\t});\n}\nfunction validateTaskContinuationTrigger(trigger, context) {\n\tlet continuation = null;\n\tif (trigger.source === \"task_continuation\" && trigger.delegation) continuation = {\n\t\tdelegation: trigger.delegation,\n\t\tdelegationId: trigger.delegationId,\n\t\toutcome: trigger.outcome,\n\t\tsubscriptionId: trigger.subscriptionId,\n\t\twatchedTask: trigger.watchedTask\n\t};\n\telse if (trigger.source === \"routine\") continuation = trigger.continuation ?? null;\n\tif (!continuation) return;\n\tconst { delegation, delegationId, outcome, watchedTask } = continuation;\n\tif (delegation.delegationId !== delegationId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Task continuation delegation identifiers must match the snapshot.\",\n\t\tpath: [\n\t\t\t\"trigger\",\n\t\t\t\"delegation\",\n\t\t\t\"delegationId\"\n\t\t]\n\t});\n\tconst watchedTaskKey = buildAgentTaskKey(watchedTask);\n\tconst watchedChild = delegation.children.find((child) => buildAgentTaskKey(child.task) === watchedTaskKey);\n\tif (!watchedChild) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Task continuation watched task must identify a snapshot child.\",\n\t\tpath: [\"trigger\", \"watchedTask\"]\n\t});\n\telse if (!(watchedChild.terminalOutcome && areAgentTaskTerminalOutcomesEqual(watchedChild.terminalOutcome, outcome))) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Task continuation outcome must match the watched snapshot child.\",\n\t\tpath: [\"trigger\", \"outcome\"]\n\t});\n}\n//#endregion\nexport { REMOTE_AGENT_TRIGGER_TEXT_MAX_CHARS, REMOTE_AGENT_TURN_ENVELOPE_MEMORY_ITEM_TEXT_MAX_CHARS, centerAgentContextHandlingSchema, centerAgentContextScopePlanSchema, centerAgentRequesterIdentitySchema, centerAgentResultAudienceSchema, remoteAgentInteractionEnvironmentSchema, remoteAgentSlackSearchAuthorizationSchema, remoteAgentTurnEnvelopeCenterAgentSchema, remoteAgentTurnEnvelopeMemoryItemSchema, remoteAgentTurnEnvelopeMemorySchema, remoteAgentTurnEnvelopeMemorySourceSchema, remoteAgentTurnEnvelopeMemorySubjectSchema, remoteAgentTurnEnvelopeOrganizationSchema, remoteAgentTurnEnvelopeSchema, remoteAgentTurnEnvelopeSenderSchema, remoteAgentTurnEnvelopeSpaceSchema, remoteAgentTurnEnvelopeTriggerSchema };\n\n//# sourceMappingURL=remote-agent-turn-envelope.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/http/connector-connections.ts\nconst CENTER_AGENT_APP_CONNECTOR_SERVICES = [\n\t\"gmail\",\n\t\"googlecalendar\",\n\t\"googledrive\",\n\t\"notion\",\n\t\"linear\",\n\t\"figma\",\n\t\"posthog\",\n\t\"cloudflare_browser_rendering\",\n\t\"cloudflare_dns\",\n\t\"cloudflare_r2\",\n\t\"cloudflare_worker\"\n];\nconst CONNECTOR_SERVICES = [\"github\", ...CENTER_AGENT_APP_CONNECTOR_SERVICES];\nconst CONNECTOR_CONNECTION_STATUSES = [\n\t\"pending\",\n\t\"active\",\n\t\"disconnected\"\n];\nconst CONNECTOR_CONNECTION_SCOPES = [\"member\", \"shared\"];\nconst CONNECTOR_CONNECTION_PREFERENCES = [\n\t\"automatic\",\n\t\"requester\",\n\t\"shared\"\n];\nconst CONNECTOR_APP_REQUEST_SOURCES = [\"openconnector_catalog\", \"freeform\"];\nconst CONNECTOR_APP_REQUEST_STATUSES = [\n\t\"requested\",\n\t\"available\",\n\t\"declined\"\n];\nfunction buildConnectorAppRequestProviderKey(input) {\n\tconst providerId = input.providerId?.trim().toLowerCase();\n\tif (input.source === \"openconnector_catalog\" && providerId) return `catalog:${providerId}`;\n\treturn `freeform:${input.providerName.normalize(\"NFKC\").trim().toLowerCase().replace(/\\s+/gu, \" \")}`;\n}\nconst trimmedNonEmptyStringSchema = z.string().trim().min(1);\nconst timestampMsSchema = z.number().int().nonnegative();\nconst connectorCredentialValueSchema = z.string().min(1).max(8192);\nconst connectorAppRequestOptionalTextSchema = z.string().trim().min(1).max(2e3).nullable();\nconst connectorAppRequestedCapabilitiesSchema = z.array(z.string().trim().min(1).max(80)).max(12);\nconst connectorServiceSchema = z.enum(CONNECTOR_SERVICES);\nconst connectorConnectionStatusSchema = z.enum(CONNECTOR_CONNECTION_STATUSES);\nconst connectorConnectionScopeSchema = z.enum(CONNECTOR_CONNECTION_SCOPES);\nconst connectorConnectionPreferenceSchema = z.enum(CONNECTOR_CONNECTION_PREFERENCES);\nconst connectorAppRequestSourceSchema = z.enum(CONNECTOR_APP_REQUEST_SOURCES);\nconst connectorAppRequestStatusSchema = z.enum(CONNECTOR_APP_REQUEST_STATUSES);\nconst connectorConnectionNameSchema = z.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,63}$/u);\nconst githubAppInstallationStateSchema = z.string().regex(/^githubapp_[0-9a-f]{64}$/u);\nconst githubAppInstallationIdSchema = z.string().regex(/^[1-9][0-9]*$/u);\nconst connectorConnectionSchema = z.strictObject({\n\tcanDisconnect: z.boolean(),\n\tconnectionName: connectorConnectionNameSchema,\n\tcreatedAtMs: timestampMsSchema,\n\tdisconnectedAtMs: timestampMsSchema.nullable(),\n\torganizationId: trimmedNonEmptyStringSchema,\n\townerDisplayName: trimmedNonEmptyStringSchema,\n\tscope: connectorConnectionScopeSchema.default(\"member\"),\n\tservice: connectorServiceSchema,\n\tstatus: connectorConnectionStatusSchema,\n\tupdatedAtMs: timestampMsSchema,\n\tuserId: trimmedNonEmptyStringSchema\n});\nconst connectorConnectionListResponseSchema = z.strictObject({\n\tconnections: z.array(connectorConnectionSchema),\n\tcurrentUserId: trimmedNonEmptyStringSchema,\n\torganizationId: trimmedNonEmptyStringSchema\n});\nconst connectorAppRequestSchema = z.strictObject({\n\tavailableAtMs: timestampMsSchema.nullable(),\n\tcreatedAtMs: timestampMsSchema,\n\tid: z.string().trim().min(1).max(128),\n\tnotifiedAtMs: timestampMsSchema.nullable(),\n\torganizationId: trimmedNonEmptyStringSchema,\n\tproviderId: z.string().trim().min(1).max(160).nullable(),\n\tproviderName: z.string().trim().min(1).max(120),\n\trequestedCapabilities: connectorAppRequestedCapabilitiesSchema,\n\trequesterMemberId: trimmedNonEmptyStringSchema.nullable(),\n\trequesterUserId: trimmedNonEmptyStringSchema.nullable(),\n\tsource: connectorAppRequestSourceSchema,\n\tstatus: connectorAppRequestStatusSchema,\n\tupdatedAtMs: timestampMsSchema,\n\tuseCase: connectorAppRequestOptionalTextSchema\n});\nconst createConnectorAppRequestBodySchema = z.strictObject({\n\tproviderId: z.string().trim().min(1).max(160).nullable().optional(),\n\tproviderName: z.string().trim().min(1).max(120),\n\trequestedCapabilities: connectorAppRequestedCapabilitiesSchema.optional(),\n\tsource: connectorAppRequestSourceSchema,\n\tuseCase: connectorAppRequestOptionalTextSchema.optional()\n}).superRefine((input, context) => {\n\tif (input.source === \"openconnector_catalog\" && !input.providerId?.trim()) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"A catalog App request requires its OpenConnector provider ID.\",\n\t\tpath: [\"providerId\"]\n\t});\n\tif (input.source === \"freeform\" && input.providerId != null) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"A freeform App request cannot include a provider ID.\",\n\t\tpath: [\"providerId\"]\n\t});\n});\nconst connectorAppRequestResponseSchema = z.strictObject({ request: connectorAppRequestSchema });\nconst connectorAppRequestListResponseSchema = z.strictObject({\n\tcurrentUserId: trimmedNonEmptyStringSchema,\n\torganizationId: trimmedNonEmptyStringSchema,\n\trequests: z.array(connectorAppRequestSchema).max(500)\n});\nconst connectorAppCatalogProviderSchema = z.strictObject({\n\tauthTypes: z.array(z.string().trim().min(1).max(80)).max(12),\n\tcategories: z.array(z.strictObject({\n\t\tdisplayName: z.string().trim().min(1).max(120),\n\t\tid: z.string().trim().min(1).max(120)\n\t})).max(12),\n\tdisplayName: z.string().trim().min(1).max(120),\n\thomepageUrl: z.url().nullable(),\n\ticonUrl: z.url().nullable(),\n\tservice: z.string().trim().min(1).max(160)\n});\nconst connectorAppCatalogResponseSchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tproviders: z.array(connectorAppCatalogProviderSchema).max(5e3)\n});\nconst connectorAuthorizationStartResponseSchema = z.strictObject({\n\tauthorizationUrl: z.url(),\n\tconnection: connectorConnectionSchema,\n\texpiresAtMs: timestampMsSchema.optional()\n});\nconst githubAppInstallationStartResponseSchema = z.strictObject({\n\tconnection: connectorConnectionSchema,\n\texpiresAtMs: timestampMsSchema,\n\tstate: githubAppInstallationStateSchema\n});\nconst githubAppInstallationSetupQuerySchema = z.strictObject({\n\tinstallation_id: githubAppInstallationIdSchema,\n\tsetup_action: z.string().trim().min(1).max(64).optional(),\n\tstate: githubAppInstallationStateSchema\n});\nconst githubAppInstallationVerificationResponseSchema = z.discriminatedUnion(\"status\", [\n\tz.strictObject({\n\t\tactorProfileId: trimmedNonEmptyStringSchema,\n\t\tinstallationId: githubAppInstallationIdSchema,\n\t\torganizationId: trimmedNonEmptyStringSchema,\n\t\tstatus: z.literal(\"valid\"),\n\t\ttargetConnectionName: connectorConnectionNameSchema,\n\t\tuserId: trimmedNonEmptyStringSchema,\n\t\tverificationConnectionName: connectorConnectionNameSchema\n\t}),\n\tz.strictObject({ status: z.literal(\"expired\") }),\n\tz.strictObject({ status: z.literal(\"invalid\") })\n]);\nconst pendingGitHubAppInstallationSchema = z.strictObject({\n\tinstallationId: githubAppInstallationIdSchema,\n\torganizationId: trimmedNonEmptyStringSchema,\n\tstatus: z.literal(\"verifying\"),\n\ttargetConnectionName: connectorConnectionNameSchema,\n\tuserId: trimmedNonEmptyStringSchema,\n\tverificationConnectionName: connectorConnectionNameSchema\n}).nullable();\nconst connectorCredentialAuthTypeSchema = z.enum([\"api_key\", \"custom_credential\"]);\nconst connectorCredentialConnectBodySchema = z.strictObject({\n\tauthType: connectorCredentialAuthTypeSchema,\n\tvalues: z.record(z.string().regex(/^[a-zA-Z][a-zA-Z0-9_]{0,63}$/u), connectorCredentialValueSchema).refine((values) => Object.keys(values).length > 0, { message: \"At least one credential value is required.\" }).refine((values) => Object.keys(values).length <= 16, { message: \"Too many credential values.\" })\n});\nconst connectorCredentialConnectResponseSchema = z.strictObject({ connection: connectorConnectionSchema });\nconst connectorOrganizationContextQuerySchema = z.strictObject({\n\texpectedOrganizationId: trimmedNonEmptyStringSchema,\n\tincludeAuthorizationExpiry: z.literal(\"true\").optional()\n});\nconst connectorDisconnectBodySchema = z.strictObject({ userId: trimmedNonEmptyStringSchema });\nconst connectorDisconnectResponseSchema = z.strictObject({ connection: connectorConnectionSchema });\nconst connectorConnectionReconcileInputSchema = z.strictObject({\n\tavailableConnectionNames: z.array(connectorConnectionNameSchema).max(500),\n\tservice: connectorServiceSchema\n});\nconst centerAgentConnectorConnectionSelectionSchema = z.strictObject({\n\tconnection: connectorConnectionSchema.nullable(),\n\tselection: z.enum([\"requester\", \"shared\"]).nullable()\n});\n//#endregion\nexport { CENTER_AGENT_APP_CONNECTOR_SERVICES, CONNECTOR_APP_REQUEST_SOURCES, CONNECTOR_APP_REQUEST_STATUSES, CONNECTOR_CONNECTION_PREFERENCES, CONNECTOR_CONNECTION_SCOPES, CONNECTOR_CONNECTION_STATUSES, CONNECTOR_SERVICES, buildConnectorAppRequestProviderKey, centerAgentConnectorConnectionSelectionSchema, connectorAppCatalogProviderSchema, connectorAppCatalogResponseSchema, connectorAppRequestListResponseSchema, connectorAppRequestResponseSchema, connectorAppRequestSchema, connectorAppRequestSourceSchema, connectorAppRequestStatusSchema, connectorAuthorizationStartResponseSchema, connectorConnectionListResponseSchema, connectorConnectionNameSchema, connectorConnectionPreferenceSchema, connectorConnectionReconcileInputSchema, connectorConnectionSchema, connectorConnectionScopeSchema, connectorConnectionStatusSchema, connectorCredentialAuthTypeSchema, connectorCredentialConnectBodySchema, connectorCredentialConnectResponseSchema, connectorDisconnectBodySchema, connectorDisconnectResponseSchema, connectorOrganizationContextQuerySchema, connectorServiceSchema, createConnectorAppRequestBodySchema, githubAppInstallationIdSchema, githubAppInstallationSetupQuerySchema, githubAppInstallationStartResponseSchema, githubAppInstallationStateSchema, githubAppInstallationVerificationResponseSchema, pendingGitHubAppInstallationSchema };\n\n//# sourceMappingURL=connector-connections.js.map","import { localAgentCatalogLaunchStatusSchema } from \"./local-agent-catalog.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/runtime/agent-controller-interface.ts\nconst ACI_BOUNDED_ID_SCHEMA = z.string().trim().min(1).max(256);\nconst ACI_BOUNDED_LABEL_SCHEMA = z.string().trim().min(1).max(256);\nconst ACI_BOUNDED_TEXT_SCHEMA = z.string().trim().min(1).max(32e3);\nconst ACI_COMMAND_PATH_SCHEMA = z.string().trim().min(1).max(4096);\nconst ACI_ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });\nconst agentControllerInterfaceStatusSchema = z.enum([\n\t\"disabled\",\n\t\"error\",\n\t\"ready\",\n\t\"unavailable\",\n\t\"unknown\",\n\t\"warning\"\n]);\nconst agentControllerInterfaceAuthStatusSchema = z.enum([\n\t\"authenticated\",\n\t\"unauthenticated\",\n\t\"unknown\"\n]);\nconst agentControllerInterfaceAuthSnapshotSchema = z.strictObject({\n\temail: z.string().trim().email().max(320).optional(),\n\tlabel: ACI_BOUNDED_LABEL_SCHEMA.optional(),\n\tstatus: agentControllerInterfaceAuthStatusSchema,\n\ttype: ACI_BOUNDED_ID_SCHEMA.optional()\n});\nz.enum([\n\t\"failed\",\n\t\"not_run\",\n\t\"succeeded\"\n]);\nconst agentControllerInterfaceCheckSnapshotSchema = z.discriminatedUnion(\"status\", [\n\tz.strictObject({\n\t\tlastSucceededAt: ACI_ISO_DATE_TIME_SCHEMA.nullable(),\n\t\tstatus: z.literal(\"failed\")\n\t}),\n\tz.strictObject({\n\t\tlastSucceededAt: z.null(),\n\t\tstatus: z.literal(\"not_run\")\n\t}),\n\tz.strictObject({\n\t\tlastSucceededAt: ACI_ISO_DATE_TIME_SCHEMA,\n\t\tstatus: z.literal(\"succeeded\")\n\t})\n]);\nconst agentControllerInterfaceVersionAdvisoryStatusSchema = z.enum([\n\t\"behind_latest\",\n\t\"current\",\n\t\"unknown\"\n]);\nconst agentControllerInterfaceVersionAdvisorySchema = z.strictObject({\n\tcheckedAt: ACI_ISO_DATE_TIME_SCHEMA.nullable(),\n\tcurrentVersion: ACI_BOUNDED_ID_SCHEMA.nullable(),\n\tlatestVersion: ACI_BOUNDED_ID_SCHEMA.nullable(),\n\tmessage: ACI_BOUNDED_TEXT_SCHEMA.nullable(),\n\tstatus: agentControllerInterfaceVersionAdvisoryStatusSchema,\n\tupdateCommand: ACI_BOUNDED_TEXT_SCHEMA.nullable()\n});\nconst agentControllerInterfaceModelSchema = z.strictObject({\n\tdisplayName: ACI_BOUNDED_LABEL_SCHEMA,\n\tid: ACI_BOUNDED_ID_SCHEMA\n});\nconst agentControllerInterfaceSkillSchema = z.strictObject({\n\tdescription: ACI_BOUNDED_TEXT_SCHEMA.optional(),\n\tdisplayName: ACI_BOUNDED_LABEL_SCHEMA.optional(),\n\tid: ACI_BOUNDED_ID_SCHEMA\n});\nconst agentControllerInterfaceCapabilitiesSchema = z.strictObject({\n\tapprovals: z.boolean(),\n\tcancel: z.boolean(),\n\tinterrupt: z.boolean(),\n\tmodelSelection: z.boolean(),\n\tnativeEventStream: z.boolean(),\n\tpermissionModes: z.boolean(),\n\tstructuredUserInput: z.boolean()\n});\nconst agentControllerInterfaceLaunchSnapshotSchema = z.strictObject({\n\targsPrefix: z.array(ACI_BOUNDED_TEXT_SCHEMA).max(64),\n\tcommandPath: ACI_COMMAND_PATH_SCHEMA.nullable(),\n\tinstallChoiceCount: z.number().int().nonnegative(),\n\tstatus: localAgentCatalogLaunchStatusSchema\n});\nconst agentControllerInterfaceNativeInterfaceSchema = z.enum([\n\t\"acp\",\n\t\"claude-agent-sdk\",\n\t\"claude-cli\",\n\t\"codex-app-server\",\n\t\"local-cli\"\n]);\nconst agentControllerInterfaceSnapshotSchema = z.strictObject({\n\tagentControllerRef: ACI_BOUNDED_ID_SCHEMA,\n\tauth: agentControllerInterfaceAuthSnapshotSchema,\n\tcapabilities: agentControllerInterfaceCapabilitiesSchema,\n\tcheck: agentControllerInterfaceCheckSnapshotSchema.optional(),\n\tcheckedAt: ACI_ISO_DATE_TIME_SCHEMA,\n\tcontrollerId: ACI_BOUNDED_ID_SCHEMA,\n\tdisplayName: ACI_BOUNDED_LABEL_SCHEMA,\n\tlaunch: agentControllerInterfaceLaunchSnapshotSchema,\n\tmessage: ACI_BOUNDED_TEXT_SCHEMA.nullable(),\n\tmodels: z.array(agentControllerInterfaceModelSchema).max(256),\n\tnativeInterface: agentControllerInterfaceNativeInterfaceSchema,\n\tschemaVersion: z.literal(1),\n\tskills: z.array(agentControllerInterfaceSkillSchema).max(512),\n\tstatus: agentControllerInterfaceStatusSchema,\n\tversion: ACI_BOUNDED_ID_SCHEMA.nullable(),\n\tversionAdvisory: agentControllerInterfaceVersionAdvisorySchema.optional()\n});\n//#endregion\nexport { agentControllerInterfaceAuthSnapshotSchema, agentControllerInterfaceAuthStatusSchema, agentControllerInterfaceCapabilitiesSchema, agentControllerInterfaceCheckSnapshotSchema, agentControllerInterfaceLaunchSnapshotSchema, agentControllerInterfaceModelSchema, agentControllerInterfaceNativeInterfaceSchema, agentControllerInterfaceSkillSchema, agentControllerInterfaceSnapshotSchema, agentControllerInterfaceStatusSchema, agentControllerInterfaceVersionAdvisorySchema, agentControllerInterfaceVersionAdvisoryStatusSchema };\n\n//# sourceMappingURL=agent-controller-interface.js.map","import { daemonServiceLaneSchema } from \"../daemon/service-contract.js\";\nimport { localAgentCatalogWithLifecycleSchema } from \"../runtime/local-agent-catalog.js\";\nimport { START_BOUNDED_ID_SCHEMA } from \"../start/shared.js\";\nimport { agentProfileIdSchema, profileWorkingDirectorySchema, profileWorkspaceModeSchema } from \"../protocol/profile.js\";\nimport { localComponentUpdateProjectionSchema } from \"../local-components.js\";\nimport { openMeldDaemonSyncRouteCatalogPayloadSchema } from \"../daemon/control-plane.js\";\nimport { daemonExecutionCompatibilitySchema } from \"../daemon/runtime-transport.js\";\nimport { prepareReadinessRuntimeIdSchema } from \"./prepare-readiness.js\";\nimport { agentControllerInterfaceSnapshotSchema } from \"../runtime/agent-controller-interface.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/local-runtimes.ts\nconst ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });\nconst reasonCodeSchema = z.string().trim().min(1).max(256);\nconst localRuntimeDisplayNameSourceSchema = z.enum([\n\t\"user\",\n\t\"observed\",\n\t\"placeholder\"\n]);\nconst localRuntimePlatformFamilySchema = z.enum([\n\t\"macOS\",\n\t\"Windows\",\n\t\"Linux\",\n\t\"Unknown\"\n]);\nconst localRuntimeDeviceTypeSchema = z.enum([\n\t\"laptop\",\n\t\"desktop\",\n\t\"server\",\n\t\"unknown\"\n]);\nconst localRuntimeExecutionTargetCapabilitySchema = z.strictObject({\n\tagentControllerRef: z.string().trim().min(1).max(256),\n\tagentControllerInterface: agentControllerInterfaceSnapshotSchema.nullable().optional(),\n\tenabled: z.boolean(),\n\treasonCodes: z.array(reasonCodeSchema),\n\tstatus: z.enum([\n\t\t\"ready\",\n\t\t\"not_ready\",\n\t\t\"stale\",\n\t\t\"unknown\"\n\t])\n}).superRefine((value, context) => {\n\tif (value.agentControllerInterface && value.agentControllerInterface.agentControllerRef !== value.agentControllerRef) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"agentControllerInterface.agentControllerRef must match capability agentControllerRef\",\n\t\tpath: [\"agentControllerInterface\", \"agentControllerRef\"]\n\t});\n});\nconst localRuntimeLocalAgentControlSchema = z.strictObject({\n\trefreshCatalog: z.boolean(),\n\tsetEnabled: z.boolean(),\n\tsetProfileWorkspace: z.boolean().optional()\n});\nconst localRuntimeLocalProjectControlSchema = z.strictObject({\n\tconnectCandidate: z.boolean(),\n\tconnectDeclaredPath: z.boolean(),\n\tdiscoverProjects: z.boolean(),\n\tmoveConnection: z.boolean().optional(),\n\tremoveConnection: z.boolean(),\n\tremoveMissingConnections: z.boolean(),\n\tsetDefaultConnection: z.boolean()\n});\nconst localRuntimeComputerFileAccessSchema = z.strictObject({\n\treadPolicy: z.boolean(),\n\tupdatePolicy: z.boolean()\n});\nconst localRuntimeLocalFolderPickerSchema = z.strictObject({ selectFolders: z.boolean() });\nconst localRuntimeExecutionTargetStatusSchema = z.enum([\n\t\"ready\",\n\t\"partial\",\n\t\"not_ready\",\n\t\"stale\",\n\t\"unknown\"\n]);\nconst localRuntimeExecutionTargetSchema = z.strictObject({\n\tdeviceId: START_BOUNDED_ID_SCHEMA,\n\truntimeLane: daemonServiceLaneSchema,\n\tuserFacingCommand: z.enum([\n\t\t\"openmeld\",\n\t\t\"openmeld-dev\",\n\t\t\"openmeld-canary\"\n\t]),\n\topenMeldServiceRuntimeId: prepareReadinessRuntimeIdSchema.nullable(),\n\tstatus: localRuntimeExecutionTargetStatusSchema,\n\tcapabilities: z.array(localRuntimeExecutionTargetCapabilitySchema),\n\tlocalAgentControl: localRuntimeLocalAgentControlSchema,\n\tlocalProjectControl: localRuntimeLocalProjectControlSchema.optional(),\n\tlocalAgentCatalog: localAgentCatalogWithLifecycleSchema,\n\treasonCodes: z.array(reasonCodeSchema),\n\tlastObservedAtMs: z.number().int().nonnegative().nullable(),\n\tisCurrent: z.boolean()\n});\nconst localRuntimeConnectionStatusSchema = z.enum([\"connected\", \"legacy_disconnected\"]);\nconst localRuntimeComputerSchema = z.strictObject({\n\tconnectedComputerId: START_BOUNDED_ID_SCHEMA.optional(),\n\tconnectionStatus: localRuntimeConnectionStatusSchema.optional(),\n\tdeviceId: START_BOUNDED_ID_SCHEMA,\n\tdeviceDisplayName: z.string().min(1),\n\tdeviceDisplayNameSource: localRuntimeDisplayNameSourceSchema,\n\tplatformFamily: localRuntimePlatformFamilySchema,\n\tosVersion: z.string().trim().min(1).max(120).nullable(),\n\tdeviceType: localRuntimeDeviceTypeSchema,\n\tfirstSeenAtMs: z.number().int().nonnegative(),\n\tlastObservedAtMs: z.number().int().nonnegative().nullable(),\n\tisCurrent: z.boolean(),\n\tcomputerFileAccess: localRuntimeComputerFileAccessSchema.optional(),\n\tlocalFolderPicker: localRuntimeLocalFolderPickerSchema.optional(),\n\tlegacyDeviceIds: z.array(START_BOUNDED_ID_SCHEMA).optional(),\n\texecutionTargets: z.array(localRuntimeExecutionTargetSchema)\n});\nconst localRuntimeLegacyDeviceEvidenceSchema = z.strictObject({\n\tconnectionStatus: z.literal(\"legacy_disconnected\"),\n\tdeviceId: START_BOUNDED_ID_SCHEMA,\n\tdeviceDisplayName: z.string().min(1),\n\tdeviceDisplayNameSource: localRuntimeDisplayNameSourceSchema,\n\tplatformFamily: localRuntimePlatformFamilySchema,\n\tosVersion: z.string().trim().min(1).max(120).nullable(),\n\tdeviceType: localRuntimeDeviceTypeSchema,\n\tfirstSeenAtMs: z.number().int().nonnegative(),\n\tlastObservedAtMs: z.number().int().nonnegative().nullable(),\n\texecutionTargets: z.array(localRuntimeExecutionTargetSchema)\n});\nconst localRuntimesConnectionIdentityAdoptionSchema = z.enum([\"safe_legacy_current\"]);\nconst localRuntimesQuerySchema = z.strictObject({ connectionIdentityAdoption: localRuntimesConnectionIdentityAdoptionSchema.optional() });\nconst localRuntimesResponseSchema = z.strictObject({\n\tcurrentConnectedComputerId: START_BOUNDED_ID_SCHEMA.nullable().optional(),\n\tcurrentDeviceId: START_BOUNDED_ID_SCHEMA.nullable(),\n\tcurrentRuntimeLane: daemonServiceLaneSchema.nullable(),\n\tlocalRuntimes: z.array(localRuntimeComputerSchema),\n\tlegacyDeviceEvidence: z.array(localRuntimeLegacyDeviceEvidenceSchema).optional()\n});\nconst setLocalRuntimeDisplayNameBodySchema = z.strictObject({ displayName: z.string().trim().min(1).max(80).nullable() });\nconst setCurrentLocalAgentEnabledRouteParamsSchema = z.strictObject({ agentId: z.string().trim().min(1).max(256) });\nconst setCurrentLocalAgentEnabledBodySchema = z.strictObject({ enabled: z.boolean() });\nconst setCurrentAgentProfileWorkspaceRouteParamsSchema = z.strictObject({ agentProfileId: agentProfileIdSchema });\nconst setCurrentAgentProfileWorkspaceBodySchema = z.strictObject({\n\tworkspaceMode: profileWorkspaceModeSchema,\n\tworkspacePath: profileWorkingDirectorySchema.optional()\n}).superRefine((value, context) => {\n\tif (value.workspaceMode === \"custom\" && !value.workspacePath) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"workspacePath is required for a custom profile workspace\",\n\t\tpath: [\"workspacePath\"]\n\t});\n\tif (value.workspaceMode === \"openmeld_managed\" && value.workspacePath) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"workspacePath must be omitted for an OpenMeld-managed profile workspace\",\n\t\tpath: [\"workspacePath\"]\n\t});\n});\nconst setCurrentLocalAgentEnabledResponseSchema = z.strictObject({\n\tagentId: z.string().trim().min(1).max(256),\n\tchanged: z.boolean(),\n\tenabled: z.boolean(),\n\tlocalRuntimes: localRuntimesResponseSchema,\n\treportSyncStatus: z.enum([\n\t\t\"submitted\",\n\t\t\"skipped\",\n\t\t\"failed\"\n\t]),\n\tstatus: z.enum([\"updated\", \"unchanged\"])\n});\nconst setCurrentAgentProfileWorkspaceResponseSchema = z.strictObject({\n\tagentProfileId: agentProfileIdSchema,\n\tstatus: z.literal(\"updated\"),\n\tworkspaceMode: profileWorkspaceModeSchema,\n\tworkspacePath: z.string().min(1)\n});\nconst refreshCurrentLocalAgentCatalogResponseSchema = z.strictObject({\n\tlocalRuntimes: localRuntimesResponseSchema,\n\tsync: openMeldDaemonSyncRouteCatalogPayloadSchema\n});\nconst localRuntimeReplyReadinessStatusSchema = z.enum([\n\t\"ready\",\n\t\"blocked\",\n\t\"checking\",\n\t\"unknown\"\n]);\nconst localRuntimeReplyReadinessPrimaryBlockerSchema = z.enum([\n\t\"none\",\n\t\"current_runtime_missing\",\n\t\"agent_controller_report_not_ready\",\n\t\"agent_controller_report_stale\",\n\t\"agent_controller_report_unknown\",\n\t\"service_not_connected\",\n\t\"service_update_required\",\n\t\"service_unavailable\"\n]);\nconst localRuntimeReplyReadinessNextActionSchema = z.enum([\n\t\"none\",\n\t\"connect_service\",\n\t\"reconnect_service\",\n\t\"run_setup\",\n\t\"check_status\",\n\t\"update_service\"\n]);\nconst currentLocalRuntimeReplyReadinessResponseSchema = z.strictObject({\n\tcanReplyFromThisComputer: z.boolean(),\n\tgeneratedAt: ISO_DATE_TIME_SCHEMA,\n\tmessage: z.string().trim().min(1).max(500),\n\tnextAction: localRuntimeReplyReadinessNextActionSchema,\n\tprimaryBlocker: localRuntimeReplyReadinessPrimaryBlockerSchema,\n\tstatus: localRuntimeReplyReadinessStatusSchema,\n\tcurrentTarget: z.discriminatedUnion(\"availability\", [z.strictObject({ availability: z.literal(\"missing\") }), z.strictObject({\n\t\tavailability: z.literal(\"resolved\"),\n\t\tdeviceId: START_BOUNDED_ID_SCHEMA,\n\t\truntimeLane: daemonServiceLaneSchema\n\t})]),\n\truntime: z.strictObject({\n\t\tdeviceDisplayName: z.string().trim().min(1).nullable(),\n\t\tdeviceId: START_BOUNDED_ID_SCHEMA.nullable(),\n\t\texecutionTargetStatus: localRuntimeExecutionTargetStatusSchema.nullable(),\n\t\tlastObservedAtMs: z.number().int().nonnegative().nullable(),\n\t\treasonCodes: z.array(reasonCodeSchema),\n\t\topenMeldServiceRuntimeId: prepareReadinessRuntimeIdSchema.nullable(),\n\t\truntimeLane: daemonServiceLaneSchema.nullable()\n\t}),\n\tservice: z.strictObject({\n\t\tconnected: z.boolean(),\n\t\texecutionCompatibility: daemonExecutionCompatibilitySchema.nullable(),\n\t\tmatchingCurrentRuntime: z.boolean(),\n\t\treasonCodes: z.array(reasonCodeSchema),\n\t\tsessionDeviceId: START_BOUNDED_ID_SCHEMA.nullable(),\n\t\tsessionLane: daemonServiceLaneSchema.nullable()\n\t}),\n\tlocalComponents: localComponentUpdateProjectionSchema\n});\n//#endregion\nexport { currentLocalRuntimeReplyReadinessResponseSchema, localRuntimeComputerFileAccessSchema, localRuntimeComputerSchema, localRuntimeConnectionStatusSchema, localRuntimeDeviceTypeSchema, localRuntimeDisplayNameSourceSchema, localRuntimeExecutionTargetCapabilitySchema, localRuntimeExecutionTargetSchema, localRuntimeExecutionTargetStatusSchema, localRuntimeLegacyDeviceEvidenceSchema, localRuntimeLocalAgentControlSchema, localRuntimeLocalFolderPickerSchema, localRuntimeLocalProjectControlSchema, localRuntimePlatformFamilySchema, localRuntimeReplyReadinessNextActionSchema, localRuntimeReplyReadinessPrimaryBlockerSchema, localRuntimeReplyReadinessStatusSchema, localRuntimesConnectionIdentityAdoptionSchema, localRuntimesQuerySchema, localRuntimesResponseSchema, refreshCurrentLocalAgentCatalogResponseSchema, setCurrentAgentProfileWorkspaceBodySchema, setCurrentAgentProfileWorkspaceResponseSchema, setCurrentAgentProfileWorkspaceRouteParamsSchema, setCurrentLocalAgentEnabledBodySchema, setCurrentLocalAgentEnabledResponseSchema, setCurrentLocalAgentEnabledRouteParamsSchema, setLocalRuntimeDisplayNameBodySchema };\n\n//# sourceMappingURL=local-runtimes.js.map","import { agentControllerRefSchema } from \"../daemon/agent-controller-ref.js\";\nimport { openMeldRequestContextSchema } from \"../daemon/profile-identity.js\";\nimport { runtimeTransportModeSchema } from \"../daemon/controller-contract.js\";\nimport { agentControllerInterfaceSnapshotSchema } from \"../runtime/agent-controller-interface.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/runtime-reporting.ts\nconst boundedIdentifierSchema = z.string().trim().min(1).max(256);\nconst reasonCodeSchema = z.string().trim().min(1).max(256);\nconst AGENT_CONTROLLER_TASK_LIFECYCLE_EVENT_BATCH_MAX_BYTES = 128 * 1024;\nconst runtimeReportingRouteParamsSchema = z.strictObject({ deviceId: boundedIdentifierSchema });\nconst runtimeReportingRuntimeIdSchema = z.strictObject({\n\tsource: z.literal(\"runtime_registry_authority\"),\n\tvalue: z.string().trim().min(1).max(512)\n});\nconst submitRuntimeRegistrationBodySchema = z.strictObject({ lane: boundedIdentifierSchema });\nconst agentControllerTaskLifecycleEventTypeSchema = z.enum([\n\t\"registered\",\n\t\"completed\",\n\t\"needs_attention\"\n]);\nconst agentControllerTaskLifecycleEventSourceSchema = z.enum([\n\t\"claude_notification\",\n\t\"claude_session_start\",\n\t\"claude_subagent_start\",\n\t\"claude_subagent_stop\",\n\t\"claude_task_completed\",\n\t\"claude_task_created\",\n\t\"codex_permission_request\",\n\t\"codex_stop\",\n\t\"codex_subagent_start\",\n\t\"codex_subagent_stop\",\n\t\"codex_user_prompt_submit\"\n]);\nconst submitAgentControllerTaskLifecycleEventItemSchema = z.strictObject({\n\tagentControllerRef: agentControllerRefSchema,\n\tattentionCode: reasonCodeSchema.nullable(),\n\teventId: boundedIdentifierSchema,\n\teventType: agentControllerTaskLifecycleEventTypeSchema,\n\toccurredAtMs: z.int().nonnegative(),\n\torganizationId: boundedIdentifierSchema,\n\tsource: agentControllerTaskLifecycleEventSourceSchema,\n\ttaskId: boundedIdentifierSchema\n}).superRefine((value, context) => {\n\tif (value.eventType === \"needs_attention\" && value.attentionCode === null) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"needs_attention lifecycle events require an attentionCode.\",\n\t\tpath: [\"attentionCode\"]\n\t});\n\tif (value.eventType !== \"needs_attention\" && value.attentionCode !== null) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Only needs_attention lifecycle events may carry attentionCode.\",\n\t\tpath: [\"attentionCode\"]\n\t});\n});\nconst submitAgentControllerTaskLifecycleEventsBodySchema = z.strictObject({\n\tevents: z.array(submitAgentControllerTaskLifecycleEventItemSchema).min(1).max(64),\n\tlane: boundedIdentifierSchema,\n\topenMeldServiceRuntimeId: runtimeReportingRuntimeIdSchema\n});\nconst submitAgentControllerTaskLifecycleEventsRpcInputSchema = z.strictObject({\n\t...submitAgentControllerTaskLifecycleEventsBodySchema.shape,\n\tcontext: openMeldRequestContextSchema.optional(),\n\tdeviceId: boundedIdentifierSchema\n});\nconst runtimeRegistrationRejectedReasonSchema = z.enum([\n\t\"device_forgotten\",\n\t\"owner_authorization_denied\",\n\t\"owner_authorization_unknown\",\n\t\"owner_authorization_unavailable\",\n\t\"owner_kind_unsupported\",\n\t\"openmeld_service_runtime_id_collision\",\n\t\"openmeld_service_runtime_id_invalid\",\n\t\"openmeld_service_runtime_id_not_opaque\",\n\t\"runtime_record_missing_after_conflict\",\n\t\"unknown\"\n]);\nconst submitRuntimeRegistrationResponseSchema = z.strictObject({\n\treason: runtimeRegistrationRejectedReasonSchema.optional(),\n\topenMeldServiceRuntimeId: runtimeReportingRuntimeIdSchema.optional(),\n\tstatus: z.enum([\n\t\t\"created\",\n\t\t\"reused\",\n\t\t\"rejected\"\n\t])\n}).superRefine((value, context) => {\n\tif (value.status !== \"rejected\" && !value.openMeldServiceRuntimeId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"registered Runtime response requires authority openMeldServiceRuntimeId\",\n\t\tpath: [\"openMeldServiceRuntimeId\"]\n\t});\n\tif (value.status === \"rejected\" && !value.reason) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"rejected Runtime registration requires a reason\",\n\t\tpath: [\"reason\"]\n\t});\n});\nconst runtimeAgentControllerReportStatusSchema = z.enum([\n\t\"ready\",\n\t\"disabled\",\n\t\"unavailable\",\n\t\"unknown\"\n]);\nconst submitRuntimeAgentControllerReportItemSchema = z.strictObject({\n\tagentControllerRef: boundedIdentifierSchema,\n\tagentControllerInterface: agentControllerInterfaceSnapshotSchema.optional(),\n\texpiresAtMs: z.int().positive(),\n\tobservedAtMs: z.int().positive(),\n\treasonCodes: z.array(reasonCodeSchema).optional(),\n\tstatus: runtimeAgentControllerReportStatusSchema\n}).superRefine((value, context) => {\n\tif (value.agentControllerInterface && value.agentControllerInterface.agentControllerRef !== value.agentControllerRef) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"agentControllerInterface.agentControllerRef must match report agentControllerRef\",\n\t\tpath: [\"agentControllerInterface\", \"agentControllerRef\"]\n\t});\n});\nconst submitRuntimeAgentControllerReportsBodySchema = z.strictObject({\n\tlane: boundedIdentifierSchema,\n\treports: z.array(submitRuntimeAgentControllerReportItemSchema).min(1).max(64),\n\topenMeldServiceRuntimeId: runtimeReportingRuntimeIdSchema\n});\nconst runtimeProviderConversationProofProviderSchema = z.literal(\"codex\");\nconst runtimeProviderConversationProofMethodSchema = z.literal(\"codex_app_server_thread_resume\");\nconst runtimeProviderConversationProofStatusSchema = z.enum([\"failed\", \"passed\"]);\nconst submitRuntimeProviderConversationProofItemSchema = z.strictObject({\n\tagentProfileId: boundedIdentifierSchema,\n\tbindingId: boundedIdentifierSchema,\n\tagentControllerRef: boundedIdentifierSchema,\n\tagentControllerConversationId: boundedIdentifierSchema,\n\ttransportMode: runtimeTransportModeSchema,\n\tprovider: runtimeProviderConversationProofProviderSchema,\n\tmethod: runtimeProviderConversationProofMethodSchema,\n\tintrusive: z.literal(false),\n\tobservedAtMs: z.int().positive(),\n\texpiresAtMs: z.int().positive(),\n\tstatus: runtimeProviderConversationProofStatusSchema,\n\terrorCode: boundedIdentifierSchema.optional(),\n\terrorMessage: z.string().trim().min(1).max(2e3).optional(),\n\terrorType: boundedIdentifierSchema.optional()\n});\nconst submitRuntimeProviderConversationProofsBodySchema = z.strictObject({\n\tlane: boundedIdentifierSchema,\n\tproofs: z.array(submitRuntimeProviderConversationProofItemSchema).min(1).max(64),\n\topenMeldServiceRuntimeId: runtimeReportingRuntimeIdSchema\n});\nconst runtimeAgentControllerReportRejectedReasonSchema = z.enum([\n\t\"agent_controller_ref_invalid\",\n\t\"conflict\",\n\t\"out_of_order\",\n\t\"report_status_invalid\",\n\t\"report_time_invalid\",\n\t\"openmeld_service_runtime_id_invalid\",\n\t\"openmeld_service_runtime_id_mismatch\",\n\t\"openmeld_service_runtime_identity_invalid\",\n\t\"runtime_lookup_conflict\",\n\t\"runtime_missing\",\n\t\"stale\"\n]);\nconst agentControllerTaskLifecycleEventRejectedReasonSchema = z.enum([\n\t\"agent_controller_ref_unsupported\",\n\t\"event_id_conflict\",\n\t\"event_source_invalid\",\n\t\"event_time_invalid\",\n\t\"organization_membership_denied\",\n\t\"organization_membership_unavailable\",\n\t\"registered_task_missing\",\n\t\"runtime_lookup_conflict\",\n\t\"runtime_missing\",\n\t\"openmeld_service_runtime_id_invalid\",\n\t\"openmeld_service_runtime_id_mismatch\",\n\t\"openmeld_service_runtime_identity_invalid\"\n]);\nconst runtimeProviderConversationProofRejectedReasonSchema = z.enum([\n\t\"agent_controller_ref_invalid\",\n\t\"agent_profile_binding_mismatch\",\n\t\"agent_profile_binding_missing\",\n\t\"openmeld_service_runtime_id_invalid\",\n\t\"openmeld_service_runtime_id_mismatch\",\n\t\"openmeld_service_runtime_identity_invalid\",\n\t\"binding_id_invalid\",\n\t\"conflict\",\n\t\"out_of_order\",\n\t\"proof_status_invalid\",\n\t\"proof_time_invalid\",\n\t\"provider_method_invalid\",\n\t\"provider_unsupported\",\n\t\"runtime_lookup_conflict\",\n\t\"runtime_missing\",\n\t\"stale\"\n]);\nconst submitRuntimeAgentControllerReportResultSchema = z.strictObject({\n\tagentControllerRef: boundedIdentifierSchema,\n\toutcome: z.enum([\n\t\t\"created\",\n\t\t\"updated\",\n\t\t\"reused\"\n\t]).optional(),\n\treason: runtimeAgentControllerReportRejectedReasonSchema.optional(),\n\tstatus: z.enum([\"accepted\", \"rejected\"])\n}).superRefine((value, context) => {\n\tif (value.status === \"accepted\" && !value.outcome) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"accepted Runtime Agent Controller Report requires an outcome\",\n\t\tpath: [\"outcome\"]\n\t});\n\tif (value.status === \"rejected\" && !value.reason) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"rejected Runtime Agent Controller Report requires a reason\",\n\t\tpath: [\"reason\"]\n\t});\n});\nconst submitRuntimeAgentControllerReportsResponseSchema = z.strictObject({\n\treports: z.array(submitRuntimeAgentControllerReportResultSchema),\n\topenMeldServiceRuntimeId: runtimeReportingRuntimeIdSchema.optional(),\n\tstatus: z.enum([\n\t\t\"accepted\",\n\t\t\"partial\",\n\t\t\"rejected\"\n\t])\n}).superRefine((value, context) => {\n\tif (value.status !== \"rejected\" && !value.openMeldServiceRuntimeId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"accepted Runtime Agent Controller Report response requires authority openMeldServiceRuntimeId\",\n\t\tpath: [\"openMeldServiceRuntimeId\"]\n\t});\n});\nconst submitAgentControllerTaskLifecycleEventResultSchema = z.strictObject({\n\teventId: boundedIdentifierSchema,\n\toutcome: z.enum([\"accepted\", \"reused\"]).optional(),\n\treason: agentControllerTaskLifecycleEventRejectedReasonSchema.optional(),\n\tstatus: z.enum([\n\t\t\"accepted\",\n\t\t\"permanently_rejected\",\n\t\t\"retryable_rejected\"\n\t])\n}).superRefine((value, context) => {\n\tif (value.status === \"accepted\" && !value.outcome) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Accepted Agent Controller task lifecycle events require an outcome.\",\n\t\tpath: [\"outcome\"]\n\t});\n\tif (value.status === \"accepted\" && value.reason) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Accepted Agent Controller task lifecycle events cannot carry a rejection reason.\",\n\t\tpath: [\"reason\"]\n\t});\n\tif (value.status !== \"accepted\" && !value.reason) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Rejected Agent Controller task lifecycle events require a reason.\",\n\t\tpath: [\"reason\"]\n\t});\n\tif (value.status !== \"accepted\" && value.outcome) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Rejected Agent Controller task lifecycle events cannot carry an accepted outcome.\",\n\t\tpath: [\"outcome\"]\n\t});\n});\nconst submitAgentControllerTaskLifecycleEventsResponseSchema = z.strictObject({\n\tevents: z.array(submitAgentControllerTaskLifecycleEventResultSchema),\n\tstatus: z.enum([\n\t\t\"accepted\",\n\t\t\"partial\",\n\t\t\"rejected\"\n\t])\n});\nconst submitRuntimeProviderConversationProofResultSchema = z.strictObject({\n\tagentProfileId: boundedIdentifierSchema,\n\tbindingId: boundedIdentifierSchema,\n\toutcome: z.enum([\n\t\t\"created\",\n\t\t\"updated\",\n\t\t\"reused\"\n\t]).optional(),\n\treason: runtimeProviderConversationProofRejectedReasonSchema.optional(),\n\tstatus: z.enum([\"accepted\", \"rejected\"])\n}).superRefine((value, context) => {\n\tif (value.status === \"accepted\" && !value.outcome) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"accepted Provider Conversation Proof requires an outcome\",\n\t\tpath: [\"outcome\"]\n\t});\n\tif (value.status === \"rejected\" && !value.reason) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"rejected Provider Conversation Proof requires a reason\",\n\t\tpath: [\"reason\"]\n\t});\n});\nconst submitRuntimeProviderConversationProofsResponseSchema = z.strictObject({\n\tproofs: z.array(submitRuntimeProviderConversationProofResultSchema),\n\topenMeldServiceRuntimeId: runtimeReportingRuntimeIdSchema.optional(),\n\tstatus: z.enum([\n\t\t\"accepted\",\n\t\t\"partial\",\n\t\t\"rejected\"\n\t])\n}).superRefine((value, context) => {\n\tif (value.status !== \"rejected\" && !value.openMeldServiceRuntimeId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"accepted Provider Conversation Proof response requires authority openMeldServiceRuntimeId\",\n\t\tpath: [\"openMeldServiceRuntimeId\"]\n\t});\n});\n//#endregion\nexport { AGENT_CONTROLLER_TASK_LIFECYCLE_EVENT_BATCH_MAX_BYTES, agentControllerTaskLifecycleEventRejectedReasonSchema, agentControllerTaskLifecycleEventSourceSchema, agentControllerTaskLifecycleEventTypeSchema, runtimeAgentControllerReportRejectedReasonSchema, runtimeAgentControllerReportStatusSchema, runtimeProviderConversationProofMethodSchema, runtimeProviderConversationProofProviderSchema, runtimeProviderConversationProofRejectedReasonSchema, runtimeProviderConversationProofStatusSchema, runtimeRegistrationRejectedReasonSchema, runtimeReportingRouteParamsSchema, runtimeReportingRuntimeIdSchema, submitAgentControllerTaskLifecycleEventItemSchema, submitAgentControllerTaskLifecycleEventResultSchema, submitAgentControllerTaskLifecycleEventsBodySchema, submitAgentControllerTaskLifecycleEventsResponseSchema, submitAgentControllerTaskLifecycleEventsRpcInputSchema, submitRuntimeAgentControllerReportItemSchema, submitRuntimeAgentControllerReportResultSchema, submitRuntimeAgentControllerReportsBodySchema, submitRuntimeAgentControllerReportsResponseSchema, submitRuntimeProviderConversationProofItemSchema, submitRuntimeProviderConversationProofResultSchema, submitRuntimeProviderConversationProofsBodySchema, submitRuntimeProviderConversationProofsResponseSchema, submitRuntimeRegistrationBodySchema, submitRuntimeRegistrationResponseSchema };\n\n//# sourceMappingURL=runtime-reporting.js.map","import { nonEmptyTrimmedStringFromUnknown } from \"../protocol/shared.js\";\nimport { agentProfileIdSchema, openMeldRuntimeProfileIdSchema } from \"../protocol/profile.js\";\nimport { spaceDispatchPolicySchema } from \"../space-mesh/dispatch-policy.js\";\nimport { spaceAllowedActionsSchema, spacePublicationModeSchema } from \"../space-mesh/publication-policy.js\";\nimport { resultArchivePolicySchema } from \"../space-mesh/result-archive-policy.js\";\nimport { spaceMembersSummarySchema } from \"./space-members.js\";\nimport { spaceAccessModeSchema } from \"./space-access-mode.js\";\nimport { spaceRouteParamsSchema } from \"./space-route-params.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-status.ts\nconst isoDateTimeSchema = z.iso.datetime({ offset: true });\nconst optionalTrimmedStringSchema = z.preprocess((value) => {\n\tconst normalized = String(value ?? \"\").trim();\n\treturn normalized.length > 0 ? normalized : void 0;\n}, z.string().min(1).optional());\nconst spaceStatusLatestVisibleUpdateSchema = z.object({\n\tsignalId: nonEmptyTrimmedStringFromUnknown,\n\tsignalType: z.enum([\n\t\t\"signal.text\",\n\t\t\"signal.status\",\n\t\t\"signal.system_notice\"\n\t]),\n\tcreatedAt: isoDateTimeSchema,\n\tactorProfileId: openMeldRuntimeProfileIdSchema,\n\tactorName: optionalTrimmedStringSchema,\n\tpreviewText: nonEmptyTrimmedStringFromUnknown\n});\nconst spaceStatusMembersSummarySchema = spaceMembersSummarySchema.extend({\n\tliveHumanCount: z.number().int().min(0),\n\tliveAgentCount: z.number().int().min(0)\n});\nconst getSpaceStatusInputSchema = spaceRouteParamsSchema;\nconst getSpaceStatusResponseSchema = z.object({\n\tspaceId: nonEmptyTrimmedStringFromUnknown,\n\tgeneratedAt: isoDateTimeSchema,\n\tcenterAgentProfileId: agentProfileIdSchema.optional(),\n\tname: optionalTrimmedStringSchema,\n\tspacePurpose: optionalTrimmedStringSchema,\n\tdirectMessageConvertedAt: isoDateTimeSchema.optional(),\n\taccessMode: spaceAccessModeSchema,\n\tpasswordProtected: z.boolean(),\n\tdispatchPolicy: spaceDispatchPolicySchema,\n\tpublicationMode: spacePublicationModeSchema,\n\tallowedActions: spaceAllowedActionsSchema,\n\tresultArchivePolicy: resultArchivePolicySchema,\n\tentryBrief: z.enum([\"default\", \"none\"]),\n\tdispatchBrief: z.enum([\"default\", \"none\"]),\n\tmembers: spaceStatusMembersSummarySchema,\n\tlatestVisibleUpdate: spaceStatusLatestVisibleUpdateSchema.optional()\n});\n//#endregion\nexport { getSpaceStatusInputSchema, getSpaceStatusResponseSchema, spaceStatusLatestVisibleUpdateSchema, spaceStatusMembersSummarySchema };\n\n//# sourceMappingURL=space-status.js.map","import { trimmedStringFromUnknown } from \"../protocol/shared.js\";\nimport { messageEnvelopeSchema } from \"../protocol/message-envelope.js\";\nimport { spaceThreadEventSchema, spaceThreadSchema, spaceThreadSignalPlacementSchema } from \"../space-mesh/space-thread.js\";\nimport { signalTextSchema } from \"../protocol/signal.js\";\nimport { signalEnvelopeSchema, signalTextEnvelopeSchema } from \"../protocol/envelope.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-threads.ts\nconst clientMutationIdSchema = z.preprocess(trimmedStringFromUnknown, z.string().min(1).max(200));\nconst clientMessageIdSchema = z.preprocess(trimmedStringFromUnknown, z.string().min(1).max(200));\nconst decimalIntegerPattern = /^\\d+$/u;\nconst optionalThreadSignalAnchorSchema = z.preprocess((value) => value === void 0 || value === null ? void 0 : trimmedStringFromUnknown(value), z.string().min(1).optional());\nconst optionalThreadSignalLimitSchema = z.preprocess((value) => {\n\tif (value === void 0 || value === null) return;\n\tif (typeof value === \"number\") return value;\n\tconst normalized = trimmedStringFromUnknown(value);\n\treturn decimalIntegerPattern.test(normalized) ? Number.parseInt(normalized, 10) : NaN;\n}, z.number().int().min(1).max(100).optional());\nconst listSpaceThreadSignalsQuerySchema = z.strictObject({\n\tafterSignalId: optionalThreadSignalAnchorSchema,\n\tlimit: optionalThreadSignalLimitSchema\n}).superRefine((value, ctx) => {\n\tif (value.afterSignalId === void 0 === (value.limit === void 0)) return;\n\tctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"afterSignalId and an integer limit from 1 to 100 are required together\"\n\t});\n});\nconst createSpaceThreadBodySchema = z.strictObject({\n\trootSignalId: z.preprocess(trimmedStringFromUnknown, z.string().min(1)),\n\tclientMutationId: clientMutationIdSchema\n});\nconst createSpaceThreadResponseSchema = z.strictObject({\n\tthread: spaceThreadSchema,\n\trootSignal: signalEnvelopeSchema,\n\tplacement: spaceThreadSignalPlacementSchema\n});\nconst getSpaceThreadResponseSchema = z.strictObject({\n\tthread: spaceThreadSchema,\n\trootSignal: z.union([signalEnvelopeSchema, z.null()])\n});\nconst listSpaceThreadEventsResponseSchema = z.strictObject({ events: z.array(spaceThreadEventSchema) });\nconst spaceThreadPreviewSchema = z.strictObject({\n\tthreadId: spaceThreadSchema.shape.threadId,\n\treplyCount: z.number().int().min(0),\n\tsignals: z.array(signalEnvelopeSchema),\n\tplacements: z.array(spaceThreadSignalPlacementSchema)\n});\nconst listSpaceThreadsResponseSchema = z.strictObject({\n\tthreads: z.array(spaceThreadSchema),\n\tpreviews: z.array(spaceThreadPreviewSchema).default([])\n});\nconst listSpaceThreadSignalsResponseSchema = z.strictObject({\n\tsignals: z.array(signalEnvelopeSchema),\n\tplacements: z.array(spaceThreadSignalPlacementSchema)\n});\nconst postSpaceThreadSignalBodySchema = z.strictObject({\n\ttext: z.preprocess(trimmedStringFromUnknown, z.string().min(1)),\n\tmessageEnvelope: messageEnvelopeSchema.optional(),\n\tclientMessageId: clientMessageIdSchema\n}).superRefine((value, ctx) => {\n\tconst parsed = signalTextSchema.shape.data.safeParse({\n\t\ttext: value.text,\n\t\t...value.messageEnvelope ? { messageEnvelope: value.messageEnvelope } : {},\n\t\tmeta: { clientMessageId: value.clientMessageId }\n\t});\n\tif (parsed.success) return;\n\tconst firstIssue = parsed.error.issues[0];\n\tctx.addIssue({\n\t\tcode: \"custom\",\n\t\tpath: firstIssue?.path ?? [],\n\t\tmessage: firstIssue?.message ?? \"Invalid thread signal payload\"\n\t});\n});\nconst postSpaceThreadSignalResponseSchema = z.strictObject({\n\tsignal: signalTextEnvelopeSchema,\n\tplacement: spaceThreadSignalPlacementSchema\n});\n//#endregion\nexport { createSpaceThreadBodySchema, createSpaceThreadResponseSchema, getSpaceThreadResponseSchema, listSpaceThreadEventsResponseSchema, listSpaceThreadSignalsQuerySchema, listSpaceThreadSignalsResponseSchema, listSpaceThreadsResponseSchema, postSpaceThreadSignalBodySchema, postSpaceThreadSignalResponseSchema, spaceThreadPreviewSchema };\n\n//# sourceMappingURL=space-threads.js.map","import { optionalBooleanQuerySchema } from \"../protocol/shared.js\";\nimport { spaceAgentStreamPresenceSchema, spaceAgentStreamSnapshotSchema } from \"../protocol/agent-stream.js\";\nimport { spaceMembersSnapshotSchema } from \"./space-members.js\";\nimport { catchupResponseSchema } from \"./catchup-response.js\";\nimport { getSpaceStatusResponseSchema } from \"./space-status.js\";\nimport { listSpaceThreadsResponseSchema } from \"./space-threads.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-bootstrap.ts\nconst spaceBootstrapResponseSchema = z.strictObject({\n\tactiveAgentStreamPresences: z.array(spaceAgentStreamPresenceSchema).optional(),\n\tactiveAgentStreams: z.array(spaceAgentStreamSnapshotSchema).optional(),\n\tstatus: getSpaceStatusResponseSchema,\n\tmembers: spaceMembersSnapshotSchema,\n\thistory: catchupResponseSchema,\n\tthreads: listSpaceThreadsResponseSchema\n});\nconst spaceBootstrapQuerySchema = z.strictObject({ includeAgentStreamPresence: optionalBooleanQuerySchema });\n//#endregion\nexport { spaceBootstrapQuerySchema, spaceBootstrapResponseSchema };\n\n//# sourceMappingURL=space-bootstrap.js.map","import { spacePasswordSchema } from \"./space-password.js\";\nimport { spaceAccessModeSchema, spaceAccessModeUsesPassword } from \"./space-access-mode.js\";\nimport { spaceOrganizationVisibilitySchema } from \"./space-meta.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-create.ts\nconst createSpaceBodySchema = z.strictObject({\n\tname: z.unknown().optional(),\n\tpurpose: z.unknown().optional(),\n\tguide: z.unknown().optional(),\n\tvisibility: z.unknown().optional(),\n\taccessMode: z.unknown().optional(),\n\tpassword: z.unknown().optional()\n}).transform((value, ctx) => {\n\tconst next = {};\n\tif (typeof value.name === \"string\") {\n\t\tconst normalizedName = value.name.trim();\n\t\tif (normalizedName.length > 0) next.name = normalizedName;\n\t}\n\tif (Object.hasOwn(value, \"purpose\")) {\n\t\tif (typeof value.purpose !== \"string\") {\n\t\t\tctx.addIssue({\n\t\t\t\tcode: \"custom\",\n\t\t\t\tmessage: \"Invalid purpose\",\n\t\t\t\tpath: [\"purpose\"]\n\t\t\t});\n\t\t\treturn z.NEVER;\n\t\t}\n\t\tnext.purpose = value.purpose.trim();\n\t}\n\tif (Object.hasOwn(value, \"guide\")) {\n\t\tif (typeof value.guide !== \"string\") {\n\t\t\tctx.addIssue({\n\t\t\t\tcode: \"custom\",\n\t\t\t\tmessage: \"Invalid guide\",\n\t\t\t\tpath: [\"guide\"]\n\t\t\t});\n\t\t\treturn z.NEVER;\n\t\t}\n\t\tnext.guide = value.guide.trim();\n\t}\n\tconst parsedVisibility = spaceOrganizationVisibilitySchema.safeParse(value.visibility);\n\tif (!parsedVisibility.success) {\n\t\tctx.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"Invalid visibility\",\n\t\t\tpath: [\"visibility\"]\n\t\t});\n\t\treturn z.NEVER;\n\t}\n\tif (Object.hasOwn(value, \"accessMode\")) {\n\t\tconst parsedAccessMode = spaceAccessModeSchema.safeParse(value.accessMode);\n\t\tif (!parsedAccessMode.success) {\n\t\t\tctx.addIssue({\n\t\t\t\tcode: \"custom\",\n\t\t\t\tmessage: \"Invalid accessMode\",\n\t\t\t\tpath: [\"accessMode\"]\n\t\t\t});\n\t\t\treturn z.NEVER;\n\t\t}\n\t\tnext.accessMode = parsedAccessMode.data;\n\t}\n\tif (Object.hasOwn(value, \"password\")) {\n\t\tconst parsedPassword = spacePasswordSchema.safeParse(value.password);\n\t\tif (!parsedPassword.success) {\n\t\t\tctx.addIssue({\n\t\t\t\tcode: \"custom\",\n\t\t\t\tmessage: \"Invalid password\",\n\t\t\t\tpath: [\"password\"]\n\t\t\t});\n\t\t\treturn z.NEVER;\n\t\t}\n\t\tnext.password = parsedPassword.data;\n\t}\n\tif (next.accessMode !== void 0 && !spaceAccessModeUsesPassword(next.accessMode) && next.password !== void 0) {\n\t\tctx.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"Password cannot be set for this access\",\n\t\t\tpath: [\"password\"]\n\t\t});\n\t\treturn z.NEVER;\n\t}\n\tif (next.accessMode !== void 0 && spaceAccessModeUsesPassword(next.accessMode) && next.password === void 0) {\n\t\tctx.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"Password required for this access\",\n\t\t\tpath: [\"password\"]\n\t\t});\n\t\treturn z.NEVER;\n\t}\n\treturn {\n\t\t...next,\n\t\tvisibility: parsedVisibility.data\n\t};\n});\n//#endregion\nexport { createSpaceBodySchema };\n\n//# sourceMappingURL=space-create.js.map","import { openMeldNavigationTargetSchema } from \"../../navigation-action.js\";\n \nimport { MAX_TEXT_LENGTH } from \"../protocol/constants.js\";\nimport { agentProfileIdSchema, openMeldRuntimeProfileIdSchema } from \"../protocol/profile.js\";\nimport { AGENT_STREAM_SNAPSHOT_MAX_CHARS, agentStreamToolPartSchema } from \"../protocol/agent-stream.js\";\nimport { conversationCompactionMarkerSchema } from \"../protocol/conversation-compaction.js\";\nimport { spaceMessageAttachmentSchema, spaceMessageAttachmentsSchema } from \"../protocol/space-attachment.js\";\nimport { centerAgentTaskReferenceSchema } from \"../protocol/signal.js\";\nimport { organizationSkillRuntimeReleaseSelectionSchema } from \"../http/organization-skills.js\";\nimport { centerAgentModelRouteSchema } from \"./center-agent-model.js\";\nimport { remoteAgentTurnEnvelopeSchema } from \"./remote-agent-turn-envelope.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/runtime/remote-agent-worker.ts\nconst nonEmptyStringSchema = z.string().trim().min(1);\nconst optionalNonEmptyStringSchema = nonEmptyStringSchema.optional();\nconst nullableNonEmptyStringSchema = nonEmptyStringSchema.nullable();\nconst optionalDispatchErrorSummarySchema = nonEmptyStringSchema.max(512).optional();\nconst REMOTE_AGENT_CONVERSATION_CONTINUITY_MAX_ENTRIES = 20;\nconst REMOTE_AGENT_CONVERSATION_CONTINUITY_ENTRY_TEXT_MAX_CHARS = 4e3;\nconst REMOTE_AGENT_CONVERSATION_CONTINUITY_TOTAL_TEXT_MAX_CHARS = 16e3;\nconst REMOTE_AGENT_LOGICAL_CONVERSATION_ID_MAX_CHARS = 1024;\nconst REMOTE_AGENT_RUNTIME_CONVERSATION_ID_MAX_CHARS = 2048;\nconst contentHashSchema = z.string().regex(/^sha256:[0-9a-f]{64}$/u);\nconst isoDateTimeSchema = z.iso.datetime({ offset: true });\nfunction buildRemoteAgentRuntimeConversationId(input) {\n\tconst organizationId = nonEmptyStringSchema.max(256).parse(input.organizationId);\n\tconst logicalConversationId = nonEmptyStringSchema.max(REMOTE_AGENT_LOGICAL_CONVERSATION_ID_MAX_CHARS).parse(input.logicalConversationId);\n\tconst generation = z.number().int().nonnegative().parse(input.generation);\n\tif (generation === 0) return logicalConversationId;\n\treturn nonEmptyStringSchema.max(REMOTE_AGENT_RUNTIME_CONVERSATION_ID_MAX_CHARS).parse([\n\t\t\"remote-agent-runtime-generation.v1\",\n\t\t`${organizationId.length}:${organizationId}`,\n\t\t`${logicalConversationId.length}:${logicalConversationId}`,\n\t\tString(generation)\n\t].join(\"|\"));\n}\nconst remoteAgentConversationContinuityEntrySourceSchema = z.discriminatedUnion(\"kind\", [\n\tz.strictObject({\n\t\tkind: z.literal(\"space_signal\"),\n\t\tsignalId: nonEmptyStringSchema.max(256),\n\t\tspaceId: nonEmptyStringSchema.max(256),\n\t\tversion: contentHashSchema\n\t}),\n\tz.strictObject({\n\t\tconversationId: nonEmptyStringSchema.max(512),\n\t\tkind: z.literal(\"message_channel_message\"),\n\t\tmessageId: nonEmptyStringSchema.max(256),\n\t\tprovider: z.enum([\n\t\t\t\"feishu\",\n\t\t\t\"lark\",\n\t\t\t\"slack\"\n\t\t])\n\t}),\n\tz.strictObject({\n\t\teventId: nonEmptyStringSchema.max(256),\n\t\tkind: z.literal(\"center_agent_task_event\"),\n\t\ttaskId: nonEmptyStringSchema.max(256)\n\t})\n]);\nconst remoteAgentConversationContinuityEntrySchema = z.strictObject({\n\tauthor: z.strictObject({\n\t\tdisplayName: nonEmptyStringSchema.max(256).optional(),\n\t\tid: nonEmptyStringSchema.max(256).optional(),\n\t\tkind: z.enum([\n\t\t\t\"agent\",\n\t\t\t\"bot\",\n\t\t\t\"human\",\n\t\t\t\"system\",\n\t\t\t\"unknown\"\n\t\t])\n\t}),\n\tcontent: z.strictObject({\n\t\tmaterializedContentHash: contentHashSchema,\n\t\toriginalCharacterCount: z.number().int().nonnegative(),\n\t\ttext: z.string().max(REMOTE_AGENT_CONVERSATION_CONTINUITY_ENTRY_TEXT_MAX_CHARS * 2),\n\t\ttruncated: z.boolean()\n\t}),\n\toccurredAt: isoDateTimeSchema,\n\tsource: remoteAgentConversationContinuityEntrySourceSchema\n}).superRefine((entry, context) => {\n\tconst materializedCharacterCount = Array.from(entry.content.text).length;\n\tif (materializedCharacterCount > 4e3) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Continuity entry text exceeds its character budget.\",\n\t\tpath: [\"content\", \"text\"]\n\t});\n\tif (materializedCharacterCount > entry.content.originalCharacterCount) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Continuity entry text cannot exceed its original character count.\",\n\t\tpath: [\"content\", \"originalCharacterCount\"]\n\t});\n});\nconst remoteAgentConversationContinuityContextSchema = z.strictObject({\n\tentries: z.array(remoteAgentConversationContinuityEntrySchema).min(1).max(20),\n\tfromGeneration: z.number().int().nonnegative(),\n\tlogicalConversationId: nonEmptyStringSchema.max(REMOTE_AGENT_LOGICAL_CONVERSATION_ID_MAX_CHARS),\n\ttoGeneration: z.number().int().positive(),\n\ttruncated: z.boolean(),\n\tv: z.literal(1)\n}).superRefine((continuity, context) => {\n\tif (continuity.toGeneration !== continuity.fromGeneration + 1) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Continuity context must connect adjacent runtime generations.\",\n\t\tpath: [\"toGeneration\"]\n\t});\n\tif (continuity.entries.reduce((total, entry) => total + Array.from(entry.content.text).length, 0) > 16e3) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Continuity context exceeds its total text budget.\",\n\t\tpath: [\"entries\"]\n\t});\n});\nconst remoteAgentRuntimeConversationSchema = z.strictObject({\n\tgeneration: z.number().int().nonnegative(),\n\tid: nonEmptyStringSchema.max(REMOTE_AGENT_RUNTIME_CONVERSATION_ID_MAX_CHARS)\n});\nconst REMOTE_AGENT_CENTER_AGENT_TASK_CONVERSATION_ID_PREFIX = \"center-agent-task:\";\nfunction buildRemoteAgentCenterAgentTaskConversationId(taskId) {\n\treturn `${REMOTE_AGENT_CENTER_AGENT_TASK_CONVERSATION_ID_PREFIX}${nonEmptyStringSchema.parse(taskId)}`;\n}\nconst REMOTE_AGENT_STREAM_DELTA_MAX_CHARS = 1024;\nconst REMOTE_AGENT_RUNTIME_EVIDENCE_EVENTS = {\n\tADMISSION_STAGE: \"remote_agent.openmeld.admission_stage\",\n\tRPC: \"remote_agent.openmeld.rpc\",\n\tTURN: \"remote_agent.openmeld.turn\"\n};\nconst REMOTE_AGENT_ADMISSION_STAGE_OPERATIONS = {\n\tCALLBACK_RETRY_ARM_COMPLETED: \"callback_retry_arm_completed\",\n\tCALLBACK_RETRY_ARM_STARTED: \"callback_retry_arm_started\",\n\tDURABLE_OBJECT_ENTERED: \"durable_object_entered\",\n\tDURABLE_OBJECT_EXITED: \"durable_object_exited\",\n\tFLUE_REQUEST_COMPLETED: \"flue_request_completed\",\n\tFLUE_REQUEST_STARTED: \"flue_request_started\",\n\tPROVIDER_REGISTERED: \"provider_registered\",\n\tSTORAGE_INITIALIZED: \"storage_initialized\",\n\tSUBMISSION_ACKNOWLEDGED: \"submission_acknowledged\",\n\tSUBMISSION_ATTACHMENTS_RESOLVED: \"submission_attachments_resolved\",\n\tSUBMISSION_DEDUPE_COMPLETED: \"submission_dedupe_completed\",\n\tSUBMISSION_REQUEST_DIGESTED: \"submission_request_digested\",\n\tSUBMISSION_STARTED: \"submission_started\"\n};\nconst remoteAgentAdmissionStageOperationSchema = z.enum(Object.values(REMOTE_AGENT_ADMISSION_STAGE_OPERATIONS));\nconst REMOTE_AGENT_RPC_OPERATIONS = {\n\tCANCEL_EXECUTION: \"cancelExecution\",\n\tREAD_EXECUTION_STATE: \"readExecutionState\",\n\tRECONCILE_EXECUTION: \"reconcileExecution\",\n\tREAD_RUNTIME_DIAGNOSTICS: \"readRuntimeDiagnostics\",\n\tREAD_USAGE_DIAGNOSTICS: \"readUsageDiagnostics\",\n\tSUBMIT_CONVERSATION_TURN: \"submitConversationTurn\",\n\tSUMMARIZE_AGENT_ACTIVITY_DIGEST: \"summarizeAgentActivityDigest\"\n};\nconst remoteAgentRpcOperationSchema = z.enum(Object.values(REMOTE_AGENT_RPC_OPERATIONS));\nconst REMOTE_AGENT_RUNTIME_EVIDENCE_REASON_CODES = {\n\tADMISSION_ACCEPTED: \"remote_agent.admission.accepted\",\n\tADMISSION_CONVERSATION_BUSY: \"remote_agent.admission.conversation_busy\",\n\tADMISSION_NOT_ACCEPTED: \"remote_agent.admission.not_accepted\",\n\tPROVIDER_AUTHENTICATION_FAILED: \"remote_agent.provider.authentication_failed\",\n\tPROVIDER_FAILED: \"remote_agent.provider.failed\",\n\tPROVIDER_RATE_LIMITED: \"remote_agent.provider.rate_limited\",\n\tPROVIDER_UNAVAILABLE: \"remote_agent.provider.unavailable\",\n\tRPC_FAILED: \"remote_agent.rpc.failed\",\n\tRPC_INVALID_REQUEST: \"remote_agent.rpc.invalid_request\",\n\tRPC_SUCCEEDED: \"remote_agent.rpc.succeeded\",\n\tTURN_COMPLETED: \"remote_agent.turn.completed\",\n\tTURN_CONTEXT_WINDOW_EXCEEDED: \"remote_agent.turn.context_window_exceeded\",\n\tTURN_EMPTY_ASSISTANT_RESPONSE: \"remote_agent.empty_assistant_response\",\n\tTURN_FAILED: \"remote_agent.turn.failed\",\n\tTURN_NOT_COMPLETED: \"remote_agent.turn_not_completed\",\n\tTURN_TIMEOUT: \"remote_agent.turn.timeout\"\n};\nconst remoteAgentRuntimeEvidenceReasonCodeSchema = z.enum(Object.values(REMOTE_AGENT_RUNTIME_EVIDENCE_REASON_CODES));\nconst remoteAgentWorkerSubmissionStatusSchema = z.enum([\n\t\"pending\",\n\t\"running\",\n\t\"completed\",\n\t\"aborted\",\n\t\"skipped\",\n\t\"error\"\n]);\nconst remoteAgentWorkerSubmitMessagesResultSchema = z.strictObject({\n\tsubmissionId: nonEmptyStringSchema,\n\tidempotencyKey: optionalNonEmptyStringSchema,\n\trequestId: optionalNonEmptyStringSchema,\n\tstatus: remoteAgentWorkerSubmissionStatusSchema,\n\terror: optionalNonEmptyStringSchema,\n\tmetadata: z.record(z.string(), z.unknown()).optional(),\n\tcreatedAt: z.number().finite(),\n\tstartedAt: z.number().finite().optional(),\n\tcompletedAt: z.number().finite().optional(),\n\taccepted: z.boolean()\n});\nconst remoteAgentWorkerAdmissionRejectionCodeSchema = z.enum([\n\t\"remote_agent.conversation_history_limit_exceeded\",\n\t\"remote_agent.routine_identity_mismatch\",\n\t\"remote_agent.member_research_identity_mismatch\",\n\t\"remote_agent.center_agent_task_identity_mismatch\",\n\t\"remote_agent.turn_envelope_identity_mismatch\"\n]);\nconst remoteAgentRuntimeEvidenceOutcomeReasonCodeSchema = z.union([remoteAgentRuntimeEvidenceReasonCodeSchema, remoteAgentWorkerAdmissionRejectionCodeSchema]);\nconst remoteAgentWorkerAdmissionRejectedResponseSchema = z.strictObject({\n\tidempotencyKey: nonEmptyStringSchema,\n\tmessage: nonEmptyStringSchema,\n\toutcome: z.literal(\"rejected\"),\n\treasonCode: remoteAgentWorkerAdmissionRejectionCodeSchema,\n\tv: z.literal(1)\n});\nconst remoteAgentWorkerSubmitTurnResponseSchema = z.union([remoteAgentWorkerSubmitMessagesResultSchema, remoteAgentWorkerAdmissionRejectedResponseSchema]);\nconst remoteAgentWorkerInputAttachmentSchema = spaceMessageAttachmentSchema.extend({ removeAfterAdmission: z.literal(true).optional() });\nconst remoteAgentWorkerInputAttachmentsSchema = z.array(remoteAgentWorkerInputAttachmentSchema).max(4);\nconst remoteAgentWorkerTurnMessageSchema = z.strictObject({\n\trole: z.enum([\"user\"]),\n\tcontent: nonEmptyStringSchema,\n\tattachments: remoteAgentWorkerInputAttachmentsSchema.optional()\n});\nconst remoteAgentWorkerAuthorContextSchema = z.strictObject({\n\tprofileId: openMeldRuntimeProfileIdSchema.nullable(),\n\tprofileKind: z.enum([\n\t\t\"human\",\n\t\t\"agent\",\n\t\t\"system\"\n\t]).nullable(),\n\tdisplayName: nullableNonEmptyStringSchema\n});\nconst remoteAgentWorkerSubmitTurnRequestShape = {\n\torganizationId: nonEmptyStringSchema,\n\tspaceId: nonEmptyStringSchema,\n\tconversationId: optionalNonEmptyStringSchema,\n\tagentProfileId: agentProfileIdSchema,\n\tagentProfileOwnerUserId: nonEmptyStringSchema,\n\tbindingId: nonEmptyStringSchema,\n\ttriggerMessageId: nonEmptyStringSchema,\n\tdispatchId: nonEmptyStringSchema,\n\tsourceClientMessageId: nullableNonEmptyStringSchema.optional(),\n\tidempotencyKey: nonEmptyStringSchema,\n\ttoolExecutionDeadlineAtMs: z.number().int().positive().max(Number.MAX_SAFE_INTEGER).optional(),\n\tmessages: z.array(remoteAgentWorkerTurnMessageSchema).min(1),\n\tauthor: remoteAgentWorkerAuthorContextSchema,\n\tonBehalfOf: remoteAgentWorkerAuthorContextSchema.nullable(),\n\torganizationSkillReleases: z.array(organizationSkillRuntimeReleaseSelectionSchema).max(64).optional(),\n\tturnEnvelope: remoteAgentTurnEnvelopeSchema\n};\nconst remoteAgentWorkerSubmitTurnRequestV1Schema = z.strictObject({\n\tv: z.literal(1),\n\t...remoteAgentWorkerSubmitTurnRequestShape\n});\nconst remoteAgentWorkerSubmitTurnRequestV2Schema = z.strictObject({\n\tv: z.literal(2),\n\t...remoteAgentWorkerSubmitTurnRequestShape,\n\tmodelRoute: centerAgentModelRouteSchema\n});\nconst remoteAgentWorkerConversationIdentitySchema = z.discriminatedUnion(\"kind\", [z.strictObject({\n\tkind: z.literal(\"center_agent_task\"),\n\ttaskId: nonEmptyStringSchema\n})]);\nconst remoteAgentWorkerSubmitTurnRequestV3Schema = z.strictObject({\n\tv: z.literal(3),\n\t...remoteAgentWorkerSubmitTurnRequestShape,\n\tconversationIdentity: remoteAgentWorkerConversationIdentitySchema,\n\tmodelRoute: centerAgentModelRouteSchema\n});\nconst remoteAgentWorkerSubmitTurnRequestV4Schema = z.strictObject({\n\tv: z.literal(4),\n\t...remoteAgentWorkerSubmitTurnRequestShape,\n\tconversationId: nonEmptyStringSchema.max(REMOTE_AGENT_LOGICAL_CONVERSATION_ID_MAX_CHARS),\n\tconversationIdentity: remoteAgentWorkerConversationIdentitySchema.optional(),\n\tcontinuityContext: remoteAgentConversationContinuityContextSchema.optional(),\n\tmodelRoute: centerAgentModelRouteSchema,\n\truntimeConversation: remoteAgentRuntimeConversationSchema\n}).superRefine((request, context) => {\n\tconst expectedRuntimeConversationId = buildRemoteAgentRuntimeConversationId({\n\t\tgeneration: request.runtimeConversation.generation,\n\t\tlogicalConversationId: request.conversationId,\n\t\torganizationId: request.organizationId\n\t});\n\tif (request.runtimeConversation.id !== expectedRuntimeConversationId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Runtime conversation identity must match its logical conversation generation.\",\n\t\tpath: [\"runtimeConversation\", \"id\"]\n\t});\n\tif (request.runtimeConversation.generation === 0 && request.continuityContext) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Legacy generation zero cannot carry rollover continuity.\",\n\t\tpath: [\"continuityContext\"]\n\t});\n\tif (request.continuityContext && (request.continuityContext.logicalConversationId !== request.conversationId || request.continuityContext.toGeneration !== request.runtimeConversation.generation)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Continuity context must match the admitted logical conversation generation.\",\n\t\tpath: [\"continuityContext\"]\n\t});\n});\nconst remoteAgentWorkerSubmitTurnRequestSchema = z.discriminatedUnion(\"v\", [\n\tremoteAgentWorkerSubmitTurnRequestV1Schema,\n\tremoteAgentWorkerSubmitTurnRequestV2Schema,\n\tremoteAgentWorkerSubmitTurnRequestV3Schema,\n\tremoteAgentWorkerSubmitTurnRequestV4Schema\n]);\nconst remoteAgentWorkerExecutionIdentitySchema = {\n\tv: z.literal(1),\n\torganizationId: nonEmptyStringSchema,\n\tspaceId: nonEmptyStringSchema,\n\tsubmissionId: nonEmptyStringSchema,\n\tidempotencyKey: nonEmptyStringSchema\n};\nconst remoteAgentWorkerExecutionStatusSchema = z.enum([\n\t\"pending\",\n\t\"running\",\n\t\"cancellation_requested\",\n\t\"completed\",\n\t\"failed\",\n\t\"aborted\"\n]);\nconst remoteAgentWorkerExecutionProgressKindSchema = z.enum([\n\t\"admitted\",\n\t\"agent_started\",\n\t\"thinking_delta\",\n\t\"text_delta\",\n\t\"tool_started\",\n\t\"tool_completed\",\n\t\"tool_failed\",\n\t\"prompt_completed\",\n\t\"prompt_failed\",\n\t\"cancellation_requested\",\n\t\"aborted\"\n]);\nconst remoteAgentWorkerExecutionQuerySchema = z.strictObject({\n\t...remoteAgentWorkerExecutionIdentitySchema,\n\tconversationId: optionalNonEmptyStringSchema\n});\nconst remoteAgentWorkerExecutionStateSchema = z.strictObject({\n\t...remoteAgentWorkerExecutionIdentitySchema,\n\tstatus: remoteAgentWorkerExecutionStatusSchema,\n\tacceptedAtMs: z.number().int().nonnegative(),\n\tlastProgressAtMs: z.number().int().nonnegative(),\n\tlastProgressKind: remoteAgentWorkerExecutionProgressKindSchema,\n\tcompletedAtMs: z.number().int().nonnegative().nullable(),\n\tcancellationReason: nonEmptyStringSchema.max(512).nullable()\n});\nconst remoteAgentWorkerExecutionQueryResponseSchema = z.union([\n\tz.strictObject({\n\t\tstatus: z.literal(\"found\"),\n\t\texecution: remoteAgentWorkerExecutionStateSchema\n\t}),\n\tz.strictObject({ status: z.literal(\"not_found\") }),\n\tz.strictObject({\n\t\tstatus: z.literal(\"identity_mismatch\"),\n\t\treasonCode: z.literal(\"remote_agent.execution_identity_mismatch\")\n\t})\n]);\nconst remoteAgentWorkerCancellationRequestSchema = z.strictObject({\n\t...remoteAgentWorkerExecutionIdentitySchema,\n\tconversationId: optionalNonEmptyStringSchema,\n\treason: nonEmptyStringSchema.max(512).optional()\n});\nconst remoteAgentWorkerCancellationResponseSchema = z.union([\n\tz.strictObject({\n\t\tstatus: z.literal(\"cancellation_requested\"),\n\t\texecution: remoteAgentWorkerExecutionStateSchema\n\t}),\n\tz.strictObject({\n\t\tstatus: z.literal(\"already_cancelled\"),\n\t\texecution: remoteAgentWorkerExecutionStateSchema\n\t}),\n\tz.strictObject({\n\t\tstatus: z.literal(\"not_stoppable\"),\n\t\texecution: remoteAgentWorkerExecutionStateSchema\n\t}),\n\tz.strictObject({ status: z.literal(\"not_found\") }),\n\tz.strictObject({\n\t\tstatus: z.literal(\"identity_mismatch\"),\n\t\treasonCode: z.literal(\"remote_agent.execution_identity_mismatch\")\n\t})\n]);\nconst remoteAgentWorkerReadUsageDiagnosticsRequestSchema = z.strictObject({\n\torganizationId: optionalNonEmptyStringSchema,\n\tspaceId: nonEmptyStringSchema\n});\nconst remoteAgentWorkerRuntimeDiagnosticsRequestSchema = z.strictObject({ spaceId: nonEmptyStringSchema });\nconst nullableNonNegativeIntegerSchema = z.number().int().nonnegative().nullable();\nconst remoteAgentRuntimeSubmissionDiagnosticSchema = z.strictObject({\n\tabortRequestedAtMs: nullableNonNegativeIntegerSchema,\n\tacceptedAtMs: z.number().int().nonnegative(),\n\tattemptCount: z.number().int().nonnegative(),\n\tattemptId: nullableNonEmptyStringSchema,\n\tcanonicalReadyAtMs: nullableNonNegativeIntegerSchema,\n\tinputAppliedAtMs: nullableNonNegativeIntegerSchema,\n\tkind: z.enum([\"direct\", \"dispatch\"]),\n\tleaseExpiresAtMs: z.number().int().nonnegative(),\n\tmaxRetry: z.number().int().nonnegative(),\n\townerId: nullableNonEmptyStringSchema,\n\trecoveryRequestedAtMs: nullableNonNegativeIntegerSchema,\n\tsequence: z.number().int().positive(),\n\tsettledAtMs: nullableNonNegativeIntegerSchema,\n\tstartedAtMs: nullableNonNegativeIntegerSchema,\n\tstatus: z.enum([\n\t\t\"queued\",\n\t\t\"running\",\n\t\t\"terminalizing\",\n\t\t\"settled\"\n\t]),\n\tsubmissionId: nonEmptyStringSchema,\n\ttimeoutAtMs: z.number().int().nonnegative()\n});\nconst remoteAgentRuntimeAttemptMarkerDiagnosticSchema = z.strictObject({\n\tattemptId: nonEmptyStringSchema,\n\tcreatedAtMs: z.number().int().nonnegative(),\n\tsubmissionId: nonEmptyStringSchema\n});\nconst remoteAgentRuntimeActiveRunDiagnosticSchema = z.strictObject({\n\tcreatedAtMs: z.number().int().nonnegative(),\n\tid: nonEmptyStringSchema,\n\tname: nonEmptyStringSchema\n});\nconst remoteAgentRuntimeFiberDiagnosticSchema = z.strictObject({\n\tcompletedAtMs: nullableNonNegativeIntegerSchema,\n\tcreatedAtMs: z.number().int().nonnegative(),\n\tfiberId: nonEmptyStringSchema,\n\tidempotencyKey: nullableNonEmptyStringSchema,\n\tname: nonEmptyStringSchema,\n\tstartedAtMs: nullableNonNegativeIntegerSchema,\n\tstatus: nonEmptyStringSchema\n});\nconst remoteAgentRuntimeScheduleDiagnosticSchema = z.strictObject({\n\tcallback: nullableNonEmptyStringSchema,\n\tcreatedAtSeconds: z.number().int().nonnegative(),\n\tdelayInSeconds: nullableNonNegativeIntegerSchema,\n\texecutionStartedAtMs: nullableNonNegativeIntegerSchema,\n\tid: nonEmptyStringSchema,\n\trunning: z.boolean(),\n\ttimeMs: nullableNonNegativeIntegerSchema,\n\ttype: nonEmptyStringSchema\n});\nconst remoteAgentRuntimeCallbackContextDiagnosticSchema = z.strictObject({\n\tcallbackAttempts: z.number().int().nonnegative(),\n\tcallbackCompletedAt: z.iso.datetime({ offset: true }).nullable(),\n\tcallbackNextAttemptAt: z.iso.datetime({ offset: true }).nullable(),\n\tcallbackStatus: z.enum([\n\t\t\"completed\",\n\t\t\"delivery_failed\",\n\t\t\"failed\",\n\t\t\"pending\",\n\t\t\"rejected\",\n\t\t\"retryable\"\n\t]),\n\tdispatchId: nonEmptyStringSchema,\n\thasCompletedText: z.boolean(),\n\tlastCoreResponseReasonCode: nullableNonEmptyStringSchema,\n\tlastCoreResponseStatus: z.enum([\n\t\t\"accepted\",\n\t\t\"duplicate_rejected\",\n\t\t\"rejected\",\n\t\t\"retryable\"\n\t]).nullable(),\n\tlastFailureCode: nullableNonEmptyStringSchema,\n\tsubmissionId: nonEmptyStringSchema,\n\tupdatedAtMs: z.number().int().nonnegative()\n});\nconst remoteAgentWorkerRuntimeDiagnosticsResponseSchema = z.strictObject({\n\tactiveRuns: z.array(remoteAgentRuntimeActiveRunDiagnosticSchema).max(50),\n\tattemptMarkers: z.array(remoteAgentRuntimeAttemptMarkerDiagnosticSchema).max(50),\n\tcallbackContexts: z.array(remoteAgentRuntimeCallbackContextDiagnosticSchema).max(50),\n\tcollectedAt: z.iso.datetime({ offset: true }),\n\tdurableObjectAlarmAtMs: nullableNonNegativeIntegerSchema,\n\tfibers: z.array(remoteAgentRuntimeFiberDiagnosticSchema).max(50),\n\tschedules: z.array(remoteAgentRuntimeScheduleDiagnosticSchema).max(50),\n\tspaceId: nonEmptyStringSchema,\n\tsubmissions: z.array(remoteAgentRuntimeSubmissionDiagnosticSchema).max(50),\n\tv: z.literal(1)\n});\nconst remoteAgentCoreCallbackIdentitySchema = {\n\tsubmissionId: nonEmptyStringSchema,\n\tidempotencyKey: nonEmptyStringSchema,\n\torganizationId: nonEmptyStringSchema,\n\tspaceId: nonEmptyStringSchema,\n\tagentProfileId: agentProfileIdSchema,\n\tbindingId: nonEmptyStringSchema,\n\ttriggerMessageId: nonEmptyStringSchema,\n\tdispatchId: nonEmptyStringSchema,\n\tcallbackAttempt: z.number().int().positive().optional()\n};\nconst remoteAgentStreamDeltaCallbackIdentitySchema = {\n\tsubmissionId: nonEmptyStringSchema,\n\tidempotencyKey: nonEmptyStringSchema,\n\torganizationId: nonEmptyStringSchema,\n\tspaceId: nonEmptyStringSchema,\n\tagentProfileId: agentProfileIdSchema,\n\tbindingId: nonEmptyStringSchema,\n\ttriggerMessageId: nonEmptyStringSchema,\n\tdispatchId: nonEmptyStringSchema\n};\nconst legacyRemoteAgentStreamDeltaCallbackBodySchema = z.strictObject({\n\tv: z.literal(1),\n\tstreamId: nonEmptyStringSchema,\n\tsequence: z.number().int().positive(),\n\t...remoteAgentStreamDeltaCallbackIdentitySchema,\n\tsource: z.enum([\"flue.text_delta\", \"simulated.final_text\"]),\n\ttextDelta: z.string().min(1).max(REMOTE_AGENT_STREAM_DELTA_MAX_CHARS),\n\ttextSnapshot: z.string().min(1).max(AGENT_STREAM_SNAPSHOT_MAX_CHARS),\n\tobservedAtMs: z.number().int().nonnegative()\n});\nconst typedRemoteAgentStreamDeltaCallbackIdentitySchema = {\n\tv: z.literal(2),\n\tstreamId: nonEmptyStringSchema,\n\tsequence: z.number().int().positive(),\n\t...remoteAgentStreamDeltaCallbackIdentitySchema,\n\tdelta: z.string().min(1).max(REMOTE_AGENT_STREAM_DELTA_MAX_CHARS),\n\tsnapshot: z.string().min(1).max(AGENT_STREAM_SNAPSHOT_MAX_CHARS),\n\tobservedAtMs: z.number().int().nonnegative()\n};\nconst remoteAgentStreamDeltaCallbackBodySchema = z.union([\n\tlegacyRemoteAgentStreamDeltaCallbackBodySchema,\n\tz.strictObject({\n\t\t...typedRemoteAgentStreamDeltaCallbackIdentitySchema,\n\t\tkind: z.literal(\"text\"),\n\t\tsource: z.literal(\"flue.text_delta\")\n\t}),\n\tz.strictObject({\n\t\t...typedRemoteAgentStreamDeltaCallbackIdentitySchema,\n\t\tkind: z.literal(\"thinking\"),\n\t\tsource: z.literal(\"flue.thinking_delta\")\n\t})\n]);\nconst remoteAgentStreamPartCallbackBodySchema = z.strictObject({\n\tv: z.literal(1),\n\tstreamId: nonEmptyStringSchema,\n\tsequence: z.number().int().positive(),\n\t...remoteAgentStreamDeltaCallbackIdentitySchema,\n\tsource: z.literal(\"flue.tool\"),\n\tpart: agentStreamToolPartSchema,\n\tobservedAtMs: z.number().int().nonnegative()\n});\nconst remoteAgentStreamLastSequenceSchema = z.number().int().nonnegative();\nconst remoteAgentRetryAfterMsSchema = z.number().int().nonnegative().max(3e5);\nconst remoteAgentStreamDeltaCallbackResponseSchema = z.union([\n\tz.strictObject({\n\t\tstatus: z.literal(\"accepted\"),\n\t\tlastSequence: remoteAgentStreamLastSequenceSchema,\n\t\tgapDetected: z.boolean().optional()\n\t}),\n\tz.strictObject({\n\t\tstatus: z.literal(\"duplicate_accepted\"),\n\t\tlastSequence: remoteAgentStreamLastSequenceSchema\n\t}),\n\tz.strictObject({\n\t\tstatus: z.literal(\"rejected\"),\n\t\tlastSequence: remoteAgentStreamLastSequenceSchema,\n\t\treasonCode: nonEmptyStringSchema\n\t}),\n\tz.strictObject({\n\t\tstatus: z.literal(\"retryable\"),\n\t\tlastSequence: remoteAgentStreamLastSequenceSchema,\n\t\treasonCode: nonEmptyStringSchema,\n\t\tretryAfterMs: remoteAgentRetryAfterMsSchema.optional()\n\t})\n]);\nconst remoteAgentCoreCallbackBodySchema = z.union([z.strictObject({\n\t...remoteAgentCoreCallbackIdentitySchema,\n\tcenterAgentTaskReferences: z.array(centerAgentTaskReferenceSchema).max(20).optional(),\n\tconversationCompaction: conversationCompactionMarkerSchema.optional(),\n\tnavigationTarget: openMeldNavigationTargetSchema.optional(),\n\tstatus: z.literal(\"completed\").optional(),\n\ttext: nonEmptyStringSchema.max(MAX_TEXT_LENGTH),\n\tattachments: spaceMessageAttachmentsSchema.optional()\n}), z.strictObject({\n\t...remoteAgentCoreCallbackIdentitySchema,\n\tstatus: z.literal(\"failed\"),\n\tfailureCode: nonEmptyStringSchema,\n\tfailureDetail: optionalDispatchErrorSummarySchema,\n\tfailureMessage: nonEmptyStringSchema\n})]);\nconst routineWorkflowContinuationEventPayloadSchema = z.discriminatedUnion(\"kind\", [z.strictObject({\n\tcallback: remoteAgentCoreCallbackBodySchema,\n\tkind: z.literal(\"callback\")\n}), z.strictObject({\n\tfailureCode: nonEmptyStringSchema,\n\tkind: z.literal(\"terminal_failure\")\n})]);\nconst remoteAgentCoreCompletedCallbackBodySchema = z.strictObject({\n\t...remoteAgentCoreCallbackIdentitySchema,\n\tcenterAgentTaskReferences: z.array(centerAgentTaskReferenceSchema).max(20).optional(),\n\tconversationCompaction: conversationCompactionMarkerSchema.optional(),\n\tnavigationTarget: openMeldNavigationTargetSchema.optional(),\n\tstatus: z.literal(\"completed\"),\n\ttext: nonEmptyStringSchema.max(MAX_TEXT_LENGTH),\n\tattachments: spaceMessageAttachmentsSchema.optional()\n});\nconst remoteAgentCoreFailedCallbackBodySchema = z.strictObject({\n\t...remoteAgentCoreCallbackIdentitySchema,\n\tstatus: z.literal(\"failed\"),\n\tfailureCode: nonEmptyStringSchema,\n\tfailureDetail: optionalDispatchErrorSummarySchema,\n\tfailureMessage: nonEmptyStringSchema\n});\nconst remoteAgentCoreCallbackResponseSchema = z.strictObject({\n\tstatus: z.enum([\n\t\t\"accepted\",\n\t\t\"duplicate_rejected\",\n\t\t\"rejected\",\n\t\t\"retryable\"\n\t]),\n\treasonCode: nonEmptyStringSchema.optional(),\n\tpublishedSignalId: nonEmptyStringSchema.nullable().optional(),\n\tretryAfterMs: remoteAgentRetryAfterMsSchema.optional()\n});\n//#endregion\nexport { REMOTE_AGENT_ADMISSION_STAGE_OPERATIONS, REMOTE_AGENT_CENTER_AGENT_TASK_CONVERSATION_ID_PREFIX, REMOTE_AGENT_CONVERSATION_CONTINUITY_ENTRY_TEXT_MAX_CHARS, REMOTE_AGENT_CONVERSATION_CONTINUITY_MAX_ENTRIES, REMOTE_AGENT_CONVERSATION_CONTINUITY_TOTAL_TEXT_MAX_CHARS, REMOTE_AGENT_RPC_OPERATIONS, REMOTE_AGENT_RUNTIME_EVIDENCE_EVENTS, REMOTE_AGENT_RUNTIME_EVIDENCE_REASON_CODES, REMOTE_AGENT_STREAM_DELTA_MAX_CHARS, buildRemoteAgentCenterAgentTaskConversationId, buildRemoteAgentRuntimeConversationId, remoteAgentAdmissionStageOperationSchema, remoteAgentConversationContinuityContextSchema, remoteAgentConversationContinuityEntrySchema, remoteAgentConversationContinuityEntrySourceSchema, remoteAgentCoreCallbackBodySchema, remoteAgentCoreCallbackResponseSchema, remoteAgentCoreCompletedCallbackBodySchema, remoteAgentCoreFailedCallbackBodySchema, remoteAgentRpcOperationSchema, remoteAgentRuntimeConversationSchema, remoteAgentRuntimeEvidenceOutcomeReasonCodeSchema, remoteAgentRuntimeEvidenceReasonCodeSchema, remoteAgentStreamDeltaCallbackBodySchema, remoteAgentStreamDeltaCallbackResponseSchema, remoteAgentStreamPartCallbackBodySchema, remoteAgentWorkerAdmissionRejectedResponseSchema, remoteAgentWorkerAdmissionRejectionCodeSchema, remoteAgentWorkerAuthorContextSchema, remoteAgentWorkerCancellationRequestSchema, remoteAgentWorkerCancellationResponseSchema, remoteAgentWorkerConversationIdentitySchema, remoteAgentWorkerExecutionProgressKindSchema, remoteAgentWorkerExecutionQueryResponseSchema, remoteAgentWorkerExecutionQuerySchema, remoteAgentWorkerExecutionStateSchema, remoteAgentWorkerExecutionStatusSchema, remoteAgentWorkerInputAttachmentSchema, remoteAgentWorkerInputAttachmentsSchema, remoteAgentWorkerReadUsageDiagnosticsRequestSchema, remoteAgentWorkerRuntimeDiagnosticsRequestSchema, remoteAgentWorkerRuntimeDiagnosticsResponseSchema, remoteAgentWorkerSubmissionStatusSchema, remoteAgentWorkerSubmitMessagesResultSchema, remoteAgentWorkerSubmitTurnRequestSchema, remoteAgentWorkerSubmitTurnRequestV1Schema, remoteAgentWorkerSubmitTurnRequestV2Schema, remoteAgentWorkerSubmitTurnRequestV3Schema, remoteAgentWorkerSubmitTurnRequestV4Schema, remoteAgentWorkerSubmitTurnResponseSchema, remoteAgentWorkerTurnMessageSchema, routineWorkflowContinuationEventPayloadSchema };\n\n//# sourceMappingURL=remote-agent-worker.js.map","import { clientMessageIdSchema } from \"../protocol/client-message-id.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/observability-correlation.ts\nconst OBSERVABILITY_WAKE_CORRELATION_MODEL_VERSION = \"openmeld.observability.wake.v1\";\nconst observabilityIdentifierSchema = z.string().trim().min(1).max(512);\nconst nullableObservabilityIdentifierSchema = observabilityIdentifierSchema.nullable();\nconst spaceScopedSelectorBaseSchema = z.strictObject({ spaceId: observabilityIdentifierSchema });\nconst observabilityWakeTraceSelectorSchema = z.discriminatedUnion(\"kind\", [\n\tspaceScopedSelectorBaseSchema.extend({\n\t\tkind: z.literal(\"dispatch\"),\n\t\tdispatchId: observabilityIdentifierSchema\n\t}),\n\tspaceScopedSelectorBaseSchema.extend({\n\t\tkind: z.literal(\"client_message\"),\n\t\tclientMessageId: clientMessageIdSchema,\n\t\ttargetProfileId: observabilityIdentifierSchema\n\t}),\n\tspaceScopedSelectorBaseSchema.extend({\n\t\tkind: z.literal(\"source_signal\"),\n\t\tsourceSignalId: observabilityIdentifierSchema,\n\t\ttargetProfileId: observabilityIdentifierSchema\n\t}),\n\tz.strictObject({\n\t\tkind: z.literal(\"claim_lease\"),\n\t\tclaimLeaseId: observabilityIdentifierSchema\n\t})\n]);\nconst observabilityCloudflareRuntimeEvidenceSchema = z.strictObject({\n\tcfRayId: nullableObservabilityIdentifierSchema,\n\trequestId: nullableObservabilityIdentifierSchema,\n\ttraceId: nullableObservabilityIdentifierSchema\n});\nconst observabilityWakeCorrelationSchema = z.strictObject({\n\tmodelVersion: z.literal(OBSERVABILITY_WAKE_CORRELATION_MODEL_VERSION),\n\tselector: observabilityWakeTraceSelectorSchema,\n\tspaceId: nullableObservabilityIdentifierSchema,\n\tclientMessageId: clientMessageIdSchema.nullable(),\n\tsourceSignalId: nullableObservabilityIdentifierSchema,\n\ttargetProfileId: nullableObservabilityIdentifierSchema,\n\tdispatchId: nullableObservabilityIdentifierSchema,\n\truntimeCoordinatorExecutionId: nullableObservabilityIdentifierSchema,\n\tlatestAttemptId: nullableObservabilityIdentifierSchema,\n\tclaimLeaseId: nullableObservabilityIdentifierSchema,\n\tbindingId: nullableObservabilityIdentifierSchema,\n\topenMeldServiceRuntimeId: nullableObservabilityIdentifierSchema,\n\tagentControllerRef: nullableObservabilityIdentifierSchema,\n\tresultRef: nullableObservabilityIdentifierSchema,\n\tpublishedSignalId: nullableObservabilityIdentifierSchema,\n\treplySignalId: nullableObservabilityIdentifierSchema,\n\tcloudflare: observabilityCloudflareRuntimeEvidenceSchema\n}).superRefine((value, context) => {\n\tconst addIssue = (path, message) => {\n\t\tcontext.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage,\n\t\t\tpath\n\t\t});\n\t};\n\tswitch (value.selector.kind) {\n\t\tcase \"client_message\":\n\t\t\tif (value.spaceId !== value.selector.spaceId) addIssue([\"spaceId\"], \"spaceId must match selector.spaceId\");\n\t\t\tif (value.clientMessageId !== value.selector.clientMessageId) addIssue([\"clientMessageId\"], \"clientMessageId must match selector.clientMessageId\");\n\t\t\tif (value.targetProfileId !== value.selector.targetProfileId) addIssue([\"targetProfileId\"], \"targetProfileId must match selector.targetProfileId\");\n\t\t\treturn;\n\t\tcase \"source_signal\":\n\t\t\tif (value.spaceId !== value.selector.spaceId) addIssue([\"spaceId\"], \"spaceId must match selector.spaceId\");\n\t\t\tif (value.sourceSignalId !== value.selector.sourceSignalId) addIssue([\"sourceSignalId\"], \"sourceSignalId must match selector.sourceSignalId\");\n\t\t\tif (value.targetProfileId !== value.selector.targetProfileId) addIssue([\"targetProfileId\"], \"targetProfileId must match selector.targetProfileId\");\n\t\t\treturn;\n\t\tcase \"dispatch\":\n\t\t\tif (value.spaceId !== value.selector.spaceId) addIssue([\"spaceId\"], \"spaceId must match selector.spaceId\");\n\t\t\tif (value.dispatchId !== value.selector.dispatchId) addIssue([\"dispatchId\"], \"dispatchId must match selector.dispatchId\");\n\t\t\treturn;\n\t\tcase \"claim_lease\":\n\t\t\tif (value.claimLeaseId !== value.selector.claimLeaseId) addIssue([\"claimLeaseId\"], \"claimLeaseId must match selector.claimLeaseId\");\n\t\t\treturn;\n\t\tdefault: return;\n\t}\n});\nfunction buildObservabilityWakeCorrelation(input) {\n\tconst candidate = {\n\t\tmodelVersion: OBSERVABILITY_WAKE_CORRELATION_MODEL_VERSION,\n\t\tselector: input.selector,\n\t\tspaceId: normalizeOptionalObservabilityId(input.spaceId),\n\t\tclientMessageId: normalizeOptionalClientMessageId(input.clientMessageId),\n\t\tsourceSignalId: normalizeOptionalObservabilityId(input.sourceSignalId),\n\t\ttargetProfileId: normalizeOptionalObservabilityId(input.targetProfileId),\n\t\tdispatchId: normalizeOptionalObservabilityId(input.dispatchId),\n\t\truntimeCoordinatorExecutionId: normalizeOptionalObservabilityId(input.runtimeCoordinatorExecutionId),\n\t\tlatestAttemptId: normalizeOptionalObservabilityId(input.latestAttemptId),\n\t\tclaimLeaseId: normalizeOptionalObservabilityId(input.claimLeaseId),\n\t\tbindingId: normalizeOptionalObservabilityId(input.bindingId),\n\t\topenMeldServiceRuntimeId: normalizeOptionalObservabilityId(input.openMeldServiceRuntimeId),\n\t\tagentControllerRef: normalizeOptionalObservabilityId(input.agentControllerRef),\n\t\tresultRef: normalizeOptionalObservabilityId(input.resultRef),\n\t\tpublishedSignalId: normalizeOptionalObservabilityId(input.publishedSignalId),\n\t\treplySignalId: normalizeOptionalObservabilityId(input.replySignalId),\n\t\tcloudflare: {\n\t\t\tcfRayId: normalizeOptionalObservabilityId(input.cloudflare?.cfRayId),\n\t\t\trequestId: normalizeOptionalObservabilityId(input.cloudflare?.requestId),\n\t\t\ttraceId: normalizeOptionalObservabilityId(input.cloudflare?.traceId)\n\t\t}\n\t};\n\tconst parsed = observabilityWakeCorrelationSchema.safeParse(candidate);\n\tif (!parsed.success) throw new Error(\"invalid observability wake correlation evidence\");\n\treturn parsed.data;\n}\nfunction projectObservabilityWakeCorrelation(input) {\n\tconst selector = parseObservabilityWakeTraceSelector(input.selector);\n\tconst dispatch = input.facts?.dispatch ?? null;\n\tconst latestAttempt = input.facts?.latestAttempt ?? null;\n\tconst coordinatorExecution = input.facts?.coordinatorExecution ?? null;\n\tconst claimLease = input.facts?.claimLease ?? null;\n\tconst result = input.facts?.result ?? null;\n\tconst replySignal = input.facts?.replySignal ?? null;\n\treturn buildObservabilityWakeCorrelation({\n\t\tselector,\n\t\tspaceId: consistentObservabilityId(input.spaceId, getSelectorSpaceId(selector)),\n\t\tclientMessageId: consistentClientMessageId(dispatch?.sourceClientMessageId, coordinatorExecution?.sourceClientMessageId, claimLease?.sourceClientMessageId, input.clientMessageId, getSelectorClientMessageId(selector)),\n\t\tsourceSignalId: consistentObservabilityId(dispatch?.sourceEventId, claimLease?.sourceEventId, input.sourceSignalId, getSelectorSourceSignalId(selector)),\n\t\ttargetProfileId: consistentObservabilityId(dispatch?.targetProfileId, coordinatorExecution?.targetProfileId, claimLease?.targetProfileId, input.targetProfileId, getSelectorTargetProfileId(selector)),\n\t\tdispatchId: consistentObservabilityId(dispatch?.dispatchId, coordinatorExecution?.dispatchId, latestAttempt?.dispatchId, claimLease?.dispatchId, result?.dispatchId, input.dispatchId, getSelectorDispatchId(selector)),\n\t\tlatestAttemptId: consistentObservabilityId(latestAttempt?.attemptId, dispatch?.latestAttemptId, input.latestAttemptId),\n\t\truntimeCoordinatorExecutionId: consistentObservabilityId(coordinatorExecution?.runtimeCoordinatorExecutionId, input.runtimeCoordinatorExecutionId),\n\t\tclaimLeaseId: consistentObservabilityId(claimLease?.claimLeaseId, input.claimLeaseId, getSelectorClaimLeaseId(selector)),\n\t\tbindingId: consistentObservabilityId(coordinatorExecution?.bindingId, claimLease?.bindingId, input.bindingId),\n\t\topenMeldServiceRuntimeId: consistentObservabilityId(coordinatorExecution?.openMeldServiceRuntimeId, claimLease?.openMeldServiceRuntimeId, input.openMeldServiceRuntimeId),\n\t\tagentControllerRef: consistentObservabilityId(coordinatorExecution?.agentControllerRef, claimLease?.agentControllerRef, input.agentControllerRef),\n\t\tresultRef: consistentObservabilityId(result?.resultRef, input.resultRef),\n\t\tpublishedSignalId: consistentObservabilityId(result?.publishedSignalId, input.publishedSignalId),\n\t\treplySignalId: consistentObservabilityId(replySignal?.signalId, input.replySignalId),\n\t\tcloudflare: projectCloudflareRuntimeEvidence(input.cloudflare)\n\t});\n}\nfunction parseObservabilityWakeTraceSelector(value) {\n\tconst parsed = observabilityWakeTraceSelectorSchema.safeParse(value);\n\tif (!parsed.success) throw new Error(\"invalid observability wake trace selector\");\n\treturn parsed.data;\n}\nfunction getSelectorSpaceId(selector) {\n\tswitch (selector.kind) {\n\t\tcase \"client_message\":\n\t\tcase \"dispatch\":\n\t\tcase \"source_signal\": return selector.spaceId;\n\t\tcase \"claim_lease\": return null;\n\t\tdefault: return null;\n\t}\n}\nfunction getSelectorClientMessageId(selector) {\n\treturn selector.kind === \"client_message\" ? selector.clientMessageId : null;\n}\nfunction getSelectorSourceSignalId(selector) {\n\treturn selector.kind === \"source_signal\" ? selector.sourceSignalId : null;\n}\nfunction getSelectorTargetProfileId(selector) {\n\tswitch (selector.kind) {\n\t\tcase \"client_message\":\n\t\tcase \"source_signal\": return selector.targetProfileId;\n\t\tcase \"claim_lease\":\n\t\tcase \"dispatch\": return null;\n\t\tdefault: return null;\n\t}\n}\nfunction getSelectorDispatchId(selector) {\n\treturn selector.kind === \"dispatch\" ? selector.dispatchId : null;\n}\nfunction getSelectorClaimLeaseId(selector) {\n\treturn selector.kind === \"claim_lease\" ? selector.claimLeaseId : null;\n}\nfunction consistentObservabilityId(...values) {\n\tlet projected = null;\n\tfor (const value of values) {\n\t\tconst normalized = projectOptionalObservabilityId(value);\n\t\tif (normalized === null) continue;\n\t\tif (projected === null) {\n\t\t\tprojected = normalized;\n\t\t\tcontinue;\n\t\t}\n\t\tif (projected !== normalized) throw new Error(\"invalid observability wake correlation evidence\");\n\t}\n\treturn projected;\n}\nfunction consistentClientMessageId(...values) {\n\tlet projected = null;\n\tfor (const value of values) {\n\t\tconst normalized = projectOptionalClientMessageId(value);\n\t\tif (normalized === null) continue;\n\t\tif (projected === null) {\n\t\t\tprojected = normalized;\n\t\t\tcontinue;\n\t\t}\n\t\tif (projected !== normalized) throw new Error(\"invalid observability wake correlation evidence\");\n\t}\n\treturn projected;\n}\nfunction projectCloudflareRuntimeEvidence(value) {\n\tif (value === null || value === void 0) return null;\n\treturn {\n\t\tcfRayId: projectOptionalObservabilityId(value.cfRayId),\n\t\trequestId: projectOptionalObservabilityId(value.requestId),\n\t\ttraceId: projectOptionalObservabilityId(value.traceId)\n\t};\n}\nfunction projectOptionalObservabilityId(value) {\n\tif (value === null || value === void 0) return null;\n\tconst parsed = observabilityIdentifierSchema.safeParse(value);\n\tif (!parsed.success) throw new Error(\"invalid observability wake correlation evidence\");\n\treturn parsed.data;\n}\nfunction projectOptionalClientMessageId(value) {\n\tif (value === null || value === void 0) return null;\n\tconst parsed = clientMessageIdSchema.safeParse(value);\n\tif (!parsed.success) throw new Error(\"invalid observability wake correlation evidence\");\n\treturn parsed.data;\n}\nfunction normalizeOptionalObservabilityId(value) {\n\tconst parsed = observabilityIdentifierSchema.safeParse(value);\n\treturn parsed.success ? parsed.data : null;\n}\nfunction normalizeOptionalClientMessageId(value) {\n\tconst parsed = clientMessageIdSchema.safeParse(value);\n\treturn parsed.success ? parsed.data : null;\n}\n//#endregion\nexport { OBSERVABILITY_WAKE_CORRELATION_MODEL_VERSION, observabilityCloudflareRuntimeEvidenceSchema, observabilityWakeCorrelationSchema, observabilityWakeTraceSelectorSchema, projectObservabilityWakeCorrelation };\n\n//# sourceMappingURL=observability-correlation.js.map","import { MAX_TEXT_LENGTH } from \"../protocol/constants.js\";\nimport { spaceMentionLabelSchema } from \"./space-mention-label.js\";\nimport { spaceTraceExecutionIdentityProjectionSchema } from \"../daemon/execution-identity.js\";\nimport { runtimeCoordinatorExecutionCreationDiagnosticSchema, runtimeCoordinatorExecutionEventSchema, runtimeCoordinatorExecutionRecordSchema } from \"../daemon/runtime-coordinator-execution.js\";\nimport { targetWakeLifecycleIdentitySchema } from \"../protocol/target-wake-lifecycle.js\";\nimport { dispatchExecutionSchema } from \"../daemon/conversation-lifecycle.js\";\nimport { openMeldDaemonTaskResultProjectFailureContextSchema } from \"../daemon/task-result.js\";\nimport { runtimeTransportRuntimeCoordinatorHeadLifecycleStatusSchema, runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionSourceSchema, runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema, runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema, runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema, runtimeTransportRuntimeCoordinatorHeadWaitingCategorySchema, runtimeTransportRuntimeCoordinatorHeadWaitingReasonCodeSchema, runtimeTransportRuntimeCoordinatorHeadWaitingRecoveryActionSchema } from \"../daemon/runtime-transport.js\";\nimport { remoteAgentWorkerRuntimeDiagnosticsResponseSchema } from \"../runtime/remote-agent-worker.js\";\nimport { observabilityWakeCorrelationSchema } from \"./observability-correlation.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-dispatch-trace.ts\nconst ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });\nconst trimmedNonEmptyStringSchema = z.string().trim().min(1);\nconst SPACE_DISPATCH_TRACE_TIMEOUT_POLICY_MAX_MS = 6048e5;\nconst SPACE_DISPATCH_TRACE_PROMPT_LENGTH_MAX = 1e6;\nconst SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS = 1200;\nconst SPACE_DISPATCH_TRACE_INVALID_OUTPUT_PREVIEW_MAX_CHARS = 180;\nconst boundedNullableTrimmedStringSchema = (maxLength) => z.union([trimmedNonEmptyStringSchema.max(maxLength), z.null()]);\nconst nullableTrimmedStringSchema = boundedNullableTrimmedStringSchema(4096);\nconst nullableSignalTextSchema = boundedNullableTrimmedStringSchema(MAX_TEXT_LENGTH);\nconst nullableIsoDateTimeSchema = z.union([ISO_DATE_TIME_SCHEMA, z.null()]);\nconst nullableIntegerSchema = z.union([z.int(), z.null()]);\nconst boundedNullableNonNegativeIntegerSchema = (maxValue) => z.union([z.int().min(0).max(maxValue), z.null()]);\nconst nullableProfileKindSchema = z.union([z.enum([\n\t\"human\",\n\t\"agent\",\n\t\"system\"\n]), z.null()]);\nconst dispatchTraceOwnerSchema = z.strictObject({\n\tid: trimmedNonEmptyStringSchema,\n\tkind: trimmedNonEmptyStringSchema\n});\nconst spaceDispatchTraceDispatchStatusSchema = z.enum([\n\t\"queued\",\n\t\"dispatching\",\n\t\"succeeded\",\n\t\"failed_retryable\",\n\t\"failed_terminal\",\n\t\"deduped\",\n\t\"blocked\",\n\t\"cancelled\"\n]);\nconst spaceDispatchTraceAttemptStatusSchema = z.enum([\n\t\"blocked\",\n\t\"dispatching\",\n\t\"failed_retryable\",\n\t\"failed_terminal\",\n\t\"succeeded\",\n\t\"superseded\",\n\t\"timed_out\",\n\t\"waiting_result\"\n]);\nconst spaceDispatchTraceQuerySchema = z.strictObject({\n\tspaceId: trimmedNonEmptyStringSchema,\n\tdispatchId: trimmedNonEmptyStringSchema\n});\nconst spaceDispatchTraceDispatchSchema = z.strictObject({\n\tfactSource: z.literal(\"dispatch_ledger\"),\n\tdispatchId: trimmedNonEmptyStringSchema,\n\tidempotencyKey: trimmedNonEmptyStringSchema,\n\tsourceEventId: trimmedNonEmptyStringSchema,\n\tsourceClientMessageId: nullableTrimmedStringSchema,\n\towner: z.union([dispatchTraceOwnerSchema, z.null()]),\n\ttargetProfileId: trimmedNonEmptyStringSchema,\n\tstatus: spaceDispatchTraceDispatchStatusSchema,\n\tfirstSeenAt: ISO_DATE_TIME_SCHEMA,\n\tlastAttemptAt: ISO_DATE_TIME_SCHEMA,\n\tattemptCount: z.int().min(0),\n\tlatestAttemptId: nullableTrimmedStringSchema\n});\nconst spaceDispatchTraceLatestAttemptSchema = z.strictObject({\n\tfactSource: z.literal(\"dispatch_attempt\"),\n\tattemptId: trimmedNonEmptyStringSchema,\n\tdispatchId: trimmedNonEmptyStringSchema,\n\tidempotencyKey: trimmedNonEmptyStringSchema,\n\tattemptNo: z.int().min(1),\n\tstatus: spaceDispatchTraceAttemptStatusSchema,\n\tdaemonSessionId: nullableTrimmedStringSchema,\n\tconnectionGeneration: nullableIntegerSchema,\n\tleaseEpoch: nullableIntegerSchema,\n\tcreatedAt: ISO_DATE_TIME_SCHEMA,\n\tstartedAt: nullableIsoDateTimeSchema,\n\tfinishedAt: nullableIsoDateTimeSchema,\n\terrorCode: nullableTrimmedStringSchema,\n\terrorMessage: nullableTrimmedStringSchema\n});\nconst spaceDispatchTraceNativeDeliverySchema = z.strictObject({\n\tfactSource: z.literal(\"remote_agent_native_delivery_ledger\"),\n\tdeliveryId: trimmedNonEmptyStringSchema,\n\tdispatchId: trimmedNonEmptyStringSchema,\n\tidempotencyKey: trimmedNonEmptyStringSchema,\n\tbindingId: trimmedNonEmptyStringSchema,\n\truntimeFamily: z.literal(\"hosted_center_agent\"),\n\tstatus: z.enum([\n\t\t\"guardrail_rejected\",\n\t\t\"flag_rejected\",\n\t\t\"worker_unavailable\",\n\t\t\"submitted\",\n\t\t\"accepted\",\n\t\t\"retry_observed\",\n\t\t\"completed\",\n\t\t\"callback_rejected\",\n\t\t\"failed\"\n\t]),\n\tsubmissionId: nullableTrimmedStringSchema,\n\tdestination: z.strictObject({\n\t\tconversationKind: z.enum([\n\t\t\t\"message_channel\",\n\t\t\t\"slack\",\n\t\t\t\"space\"\n\t\t]),\n\t\torganizationId: trimmedNonEmptyStringSchema,\n\t\tspaceId: trimmedNonEmptyStringSchema,\n\t\ttargetProfileId: trimmedNonEmptyStringSchema\n\t}),\n\tcontrollerNormalization: z.strictObject({\n\t\tfactSource: z.literal(\"remote_agent_native_delivery_ledger\"),\n\t\tcanonicalAgentControllerRef: z.literal(\"hosted:center-agent\"),\n\t\treasonCode: z.literal(\"hosted_runtime_family_controller_canonicalized\"),\n\t\tstoredAgentControllerRef: nullableTrimmedStringSchema,\n\t\tstoredAgentControllerRefStatus: z.enum([\n\t\t\t\"canonical\",\n\t\t\t\"stale\",\n\t\t\t\"malformed\",\n\t\t\t\"missing\"\n\t\t]),\n\t\tbindingUpdatedAt: nullableIsoDateTimeSchema\n\t}),\n\tcreatedAt: ISO_DATE_TIME_SCHEMA,\n\tupdatedAt: ISO_DATE_TIME_SCHEMA\n});\nconst spaceDispatchTraceOpsDecisionSchema = z.strictObject({\n\tfactSource: z.literal(\"ops_decision\"),\n\tid: trimmedNonEmptyStringSchema,\n\tdecisionCode: trimmedNonEmptyStringSchema,\n\tdecidedBy: trimmedNonEmptyStringSchema,\n\tsource: trimmedNonEmptyStringSchema,\n\tdecidedAt: ISO_DATE_TIME_SCHEMA,\n\tcorrelationId: nullableTrimmedStringSchema,\n\texpectedRecoveryCriteria: nullableTrimmedStringSchema\n});\nconst spaceDispatchTraceReplySignalSchema = z.strictObject({\n\tfactSource: z.enum([\"space_signal_by_published_signal_id\", \"space_signal_recent_window\"]),\n\tsignalId: trimmedNonEmptyStringSchema,\n\tprofileId: trimmedNonEmptyStringSchema,\n\tprofileKind: nullableProfileKindSchema,\n\tprofileName: nullableTrimmedStringSchema,\n\ttext: trimmedNonEmptyStringSchema,\n\tcreatedAt: ISO_DATE_TIME_SCHEMA\n});\nconst spaceDispatchTraceFinalVisibleMessageFactSourceSchema = z.enum([\"space_signal_by_published_signal_id\", \"space_final_reply_claim\"]);\nconst spaceDispatchTraceFinalVisibleMessageSchema = z.strictObject({\n\tfactSource: spaceDispatchTraceFinalVisibleMessageFactSourceSchema,\n\tsignalId: trimmedNonEmptyStringSchema,\n\tsignalType: z.enum([\n\t\t\"signal.text\",\n\t\t\"signal.status\",\n\t\t\"signal.system_notice\"\n\t]),\n\tdispatchId: trimmedNonEmptyStringSchema,\n\ttargetProfileId: trimmedNonEmptyStringSchema,\n\tprofileId: nullableTrimmedStringSchema,\n\tprofileKind: nullableProfileKindSchema,\n\tprofileName: nullableTrimmedStringSchema,\n\ttext: nullableSignalTextSchema,\n\treasonCode: nullableTrimmedStringSchema,\n\tnoticeType: z.union([z.enum([\n\t\t\"policy_blocked\",\n\t\t\"stay_silent\",\n\t\t\"terminal_failure\",\n\t\t\"wake_stopped\"\n\t]), z.null()]),\n\tstatusType: nullableTrimmedStringSchema,\n\tcreatedAt: ISO_DATE_TIME_SCHEMA\n});\nconst spaceDispatchTraceFinalVisibleMessageLinkageStatusSchema = z.enum([\n\t\"matched_published_signal\",\n\t\"matched_final_reply_claim\",\n\t\"projection_pending\",\n\t\"linkage_missing\",\n\t\"storage_inconsistent\"\n]);\nconst spaceDispatchTraceFinalVisibleMessageLinkageSourceFactSchema = z.enum([\n\t\"published_signal_candidate\",\n\t\"space_final_reply_claim\",\n\t\"none\"\n]);\nconst spaceDispatchTraceFinalVisibleMessageLinkageSchema = z.strictObject({\n\tstatus: spaceDispatchTraceFinalVisibleMessageLinkageStatusSchema,\n\treasonCode: nullableTrimmedStringSchema,\n\tsourceFact: spaceDispatchTraceFinalVisibleMessageLinkageSourceFactSchema,\n\tcandidateSignalIds: z.array(trimmedNonEmptyStringSchema).max(16),\n\tclaimSignalId: nullableTrimmedStringSchema,\n\tselectedSignalId: nullableTrimmedStringSchema\n});\nconst spaceDispatchTraceFinalVisibleOutcomeStatusSchema = z.enum([\n\t\"visible_reply\",\n\t\"visible_failure\",\n\t\"visible_stopped\",\n\t\"publication_pending\",\n\t\"publication_retrying\",\n\t\"publication_unresolved\",\n\t\"not_applicable\"\n]);\nconst spaceDispatchTraceFinalVisibleOutcomePublicationKindSchema = z.enum([\n\t\"success_reply\",\n\t\"failure_notice\",\n\t\"stopped_notice\"\n]);\nconst spaceDispatchTraceFinalVisibleOutcomeSourceFactSchema = z.enum([\n\t\"final_visible_message\",\n\t\"result_inbox\",\n\t\"runtime_coordinator_execution\",\n\t\"runtime_coordinator_event\",\n\t\"runtime_coordinator_head_lifecycle\",\n\t\"dispatch_result\",\n\t\"none\"\n]);\nconst spaceDispatchTraceFinalVisibleOutcomeSchema = z.strictObject({\n\tdelivered: z.boolean(),\n\tpublicationErrorCode: nullableTrimmedStringSchema,\n\tpublicationKind: z.union([spaceDispatchTraceFinalVisibleOutcomePublicationKindSchema, z.null()]),\n\treasonCode: nullableTrimmedStringSchema,\n\tsignalId: nullableTrimmedStringSchema,\n\tsourceFact: spaceDispatchTraceFinalVisibleOutcomeSourceFactSchema,\n\tsourceReasonCode: nullableTrimmedStringSchema,\n\tsourceStatus: nullableTrimmedStringSchema,\n\tstatus: spaceDispatchTraceFinalVisibleOutcomeStatusSchema\n});\nconst spaceDispatchTraceClaimLeaseSchema = z.strictObject({\n\tfactSource: z.literal(\"dispatch_claim_lease\"),\n\tclaimLeaseId: trimmedNonEmptyStringSchema,\n\tdispatchId: trimmedNonEmptyStringSchema,\n\tsourceEventId: trimmedNonEmptyStringSchema,\n\tsourceClientMessageId: nullableTrimmedStringSchema,\n\ttargetProfileId: trimmedNonEmptyStringSchema,\n\tbindingId: trimmedNonEmptyStringSchema,\n\topenMeldServiceRuntimeId: trimmedNonEmptyStringSchema,\n\tagentControllerRef: trimmedNonEmptyStringSchema,\n\tleaseState: z.enum([\n\t\t\"active\",\n\t\t\"cancelled\",\n\t\t\"expired\",\n\t\t\"released\",\n\t\t\"superseded\"\n\t]),\n\tclaimTraceReason: nullableTrimmedStringSchema,\n\tcreatedAt: ISO_DATE_TIME_SCHEMA,\n\tupdatedAt: ISO_DATE_TIME_SCHEMA,\n\texpiresAt: ISO_DATE_TIME_SCHEMA\n});\nconst spaceDispatchTraceResultSchema = z.strictObject({\n\tfactSource: z.literal(\"dispatch_result\"),\n\tresultRef: trimmedNonEmptyStringSchema,\n\tdispatchId: trimmedNonEmptyStringSchema,\n\tresultKind: trimmedNonEmptyStringSchema,\n\tpublicOutcome: trimmedNonEmptyStringSchema,\n\tpublishedSignalId: nullableTrimmedStringSchema,\n\tstatusType: nullableTrimmedStringSchema,\n\tcreatedAt: ISO_DATE_TIME_SCHEMA\n});\nconst spaceDispatchTraceResultInboxPublishStateSchema = z.enum([\n\t\"result_accepted\",\n\t\"late_result_available\",\n\t\"reply_published\",\n\t\"reply_suppressed_stopped\",\n\t\"reply_publication_failed\",\n\t\"invalid_space_action\",\n\t\"legacy_result_quarantined\"\n]);\nconst spaceDispatchTraceResultInboxSchema = z.strictObject({\n\tfactSource: z.literal(\"dispatch_result_inbox\"),\n\tresultKey: trimmedNonEmptyStringSchema,\n\tdispatchId: trimmedNonEmptyStringSchema,\n\tattemptId: trimmedNonEmptyStringSchema,\n\ttaskId: trimmedNonEmptyStringSchema,\n\ttargetProfileId: trimmedNonEmptyStringSchema,\n\tdaemonSessionId: trimmedNonEmptyStringSchema,\n\tleaseEpoch: z.int(),\n\tsubmittedConnectionGeneration: z.int(),\n\tprojectFailureContext: openMeldDaemonTaskResultProjectFailureContextSchema.optional(),\n\tpublishState: spaceDispatchTraceResultInboxPublishStateSchema,\n\tpublishedSignalId: nullableTrimmedStringSchema,\n\tpublicationErrorCode: nullableTrimmedStringSchema,\n\tacceptedAt: ISO_DATE_TIME_SCHEMA,\n\tupdatedAt: ISO_DATE_TIME_SCHEMA\n});\nconst spaceDispatchTraceStreamingSchema = z.strictObject({\n\tstreamingMode: z.enum([\"final\", \"stream\"]),\n\tpreviewEmitted: z.boolean(),\n\tfirstStdoutAt: nullableIsoDateTimeSchema,\n\tfirstOutputAt: nullableIsoDateTimeSchema\n});\nconst spaceDispatchTraceRuntimeSchema = z.strictObject({\n\tprocessId: nullableIntegerSchema,\n\tprocessSpawnedAt: nullableIsoDateTimeSchema,\n\tstdinClosedAt: nullableIsoDateTimeSchema,\n\tfirstStderrAt: nullableIsoDateTimeSchema,\n\texitObservedAt: nullableIsoDateTimeSchema,\n\texitCode: nullableIntegerSchema,\n\texitSignal: nullableTrimmedStringSchema,\n\ttimeoutTriggeredAt: nullableIsoDateTimeSchema\n});\nconst spaceDispatchTraceExecutionSchema = z.strictObject({\n\tphase: z.enum([\n\t\t\"starting\",\n\t\t\"accepted_local\",\n\t\t\"running\",\n\t\t\"completed_local\",\n\t\t\"result_received\"\n\t]),\n\tphaseEnteredAt: nullableIsoDateTimeSchema,\n\tlastLifecycleAt: nullableIsoDateTimeSchema,\n\tprogressEvidenceState: z.enum([\n\t\t\"active\",\n\t\t\"stalled\",\n\t\t\"unknown\"\n\t]),\n\ttimeoutPolicy: z.strictObject({\n\t\tfinalizationTimeoutMs: boundedNullableNonNegativeIntegerSchema(SPACE_DISPATCH_TRACE_TIMEOUT_POLICY_MAX_MS),\n\t\tstartTimeoutMs: boundedNullableNonNegativeIntegerSchema(SPACE_DISPATCH_TRACE_TIMEOUT_POLICY_MAX_MS),\n\t\ttaskProgressEvidenceStaleAfterMs: boundedNullableNonNegativeIntegerSchema(SPACE_DISPATCH_TRACE_TIMEOUT_POLICY_MAX_MS),\n\t\twaitWindowMs: boundedNullableNonNegativeIntegerSchema(SPACE_DISPATCH_TRACE_TIMEOUT_POLICY_MAX_MS)\n\t})\n});\nconst spaceDispatchTraceOriginSchema = z.strictObject({\n\tagentControllerConversationId: nullableTrimmedStringSchema,\n\tagentControllerRef: nullableTrimmedStringSchema,\n\tagentControllerConversationKind: nullableTrimmedStringSchema,\n\tresolvedAgentControllerConversationId: nullableTrimmedStringSchema,\n\teffectiveRuntimeWorkingDirectory: nullableTrimmedStringSchema,\n\truntimeWorkspaceFingerprint: nullableTrimmedStringSchema\n});\nconst spaceDispatchTracePromptSchema = z.strictObject({\n\tfingerprint: nullableTrimmedStringSchema,\n\tlength: boundedNullableNonNegativeIntegerSchema(SPACE_DISPATCH_TRACE_PROMPT_LENGTH_MAX),\n\tpreview: boundedNullableTrimmedStringSchema(SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS)\n});\nconst spaceDispatchTraceDispatchExecutionSchema = dispatchExecutionSchema;\nconst spaceDispatchTraceExecutionIdentitySchema = spaceTraceExecutionIdentityProjectionSchema;\nconst spaceDispatchTraceRuntimeCoordinatorExecutionSchema = runtimeCoordinatorExecutionRecordSchema.extend({ factSource: z.literal(\"runtime_coordinator_projection\") });\nconst spaceDispatchTraceRuntimeCoordinatorCreationDiagnosticSchema = runtimeCoordinatorExecutionCreationDiagnosticSchema.extend({ factSource: z.literal(\"runtime_coordinator_projection\") });\nconst spaceDispatchTraceRuntimeCoordinatorEventSchema = runtimeCoordinatorExecutionEventSchema.extend({ factSource: z.literal(\"runtime_coordinator_projection\") });\nconst spaceDispatchTraceRuntimeCoordinatorHeadNoExecutionDecisionSchema = z.strictObject({\n\tdecidedAt: ISO_DATE_TIME_SCHEMA,\n\tpublicationCategory: runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema,\n\treasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,\n\tsource: runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionSourceSchema,\n\tuserRecoveryAction: runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema\n});\nconst spaceDispatchTraceRuntimeCoordinatorHeadPublicationIntentSchema = z.union([z.strictObject({\n\tintentId: trimmedNonEmptyStringSchema.max(4096),\n\tkind: z.literal(\"no_execution_failure\"),\n\tpublicationCategory: runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema,\n\treadyAt: ISO_DATE_TIME_SCHEMA,\n\treasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,\n\tstatus: z.literal(\"ready_for_phase_6\"),\n\tuserRecoveryAction: runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema\n}), z.strictObject({\n\tintentId: trimmedNonEmptyStringSchema.max(4096),\n\tkind: z.literal(\"stopped_notice\"),\n\treadyAt: ISO_DATE_TIME_SCHEMA,\n\treasonCode: z.literal(\"runtime_coordinator.pre_agent_stop_requested\"),\n\tstatus: z.literal(\"ready_for_phase_6\")\n})]);\nconst spaceDispatchTraceRuntimeCoordinatorHeadPublicationOutcomeSchema = z.strictObject({\n\tfailurePublicationCommandId: trimmedNonEmptyStringSchema.max(4096),\n\tfinalMessageKind: z.enum([\n\t\t\"failure_notice\",\n\t\t\"status\",\n\t\t\"success_reply\",\n\t\t\"unknown\"\n\t]).nullable(),\n\tobservedAt: ISO_DATE_TIME_SCHEMA,\n\tpublicationErrorCode: z.string().trim().min(1).max(160).nullable(),\n\tpublishedSignalId: trimmedNonEmptyStringSchema.nullable(),\n\tstatus: z.enum([\n\t\t\"failure_published\",\n\t\t\"already_final\",\n\t\t\"failure_publication_failed\"\n\t])\n});\nconst spaceDispatchTraceRuntimeCoordinatorHeadPublicationExhaustionSchema = z.strictObject({\n\tattemptCount: z.int().positive(),\n\texhaustedAt: ISO_DATE_TIME_SCHEMA,\n\tlastFailureAt: ISO_DATE_TIME_SCHEMA,\n\tlastReasonCode: z.string().trim().min(1).max(160),\n\treasonCode: z.literal(\"runtime_coordinator.publication_retry_exhausted\"),\n\tstatus: z.literal(\"publication_exhausted\")\n});\nconst spaceDispatchTraceRuntimeCoordinatorHeadTargetDisplaySchema = z.strictObject({\n\ttargetProfileMentionLabel: spaceMentionLabelSchema.nullable(),\n\ttargetProfileName: z.string().min(1).max(64).nullable()\n});\nconst spaceDispatchTraceRuntimeCoordinatorHeadWaitingBoundarySchema = z.strictObject({\n\tdeadlineAt: ISO_DATE_TIME_SCHEMA,\n\tdeadlineOutcome: z.literal(\"publication_intent_ready\"),\n\tobservedAt: ISO_DATE_TIME_SCHEMA,\n\treasonCode: runtimeTransportRuntimeCoordinatorHeadWaitingReasonCodeSchema,\n\tsoftDeadlineAt: ISO_DATE_TIME_SCHEMA,\n\ttrigger: z.literal(\"openmeld_service_route_connected\"),\n\ttriggerOwner: z.literal(\"runtime_coordinator\"),\n\tuserRecoveryAction: runtimeTransportRuntimeCoordinatorHeadWaitingRecoveryActionSchema,\n\tuserVisibleState: z.literal(\"waiting_for_openmeld_service\"),\n\twaitingCategory: runtimeTransportRuntimeCoordinatorHeadWaitingCategorySchema,\n\twaitingFor: z.literal(\"openmeld_service_route_connection\"),\n\twaitingSince: ISO_DATE_TIME_SCHEMA\n});\nconst spaceDispatchTraceRuntimeCoordinatorHeadLifecycleSchema = z.discriminatedUnion(\"readStatus\", [\n\tz.strictObject({\n\t\tcreatedAt: ISO_DATE_TIME_SCHEMA,\n\t\tduplicateDispatchCount: z.int().min(0),\n\t\texecutionLinkedAt: nullableIsoDateTimeSchema,\n\t\tfactSource: z.literal(\"runtime_coordinator_head_lifecycle\"),\n\t\tmodelVersion: z.literal(\"openmeld.runtime_coordinator.head_lifecycle.v1\"),\n\t\tnoExecutionDecision: z.union([spaceDispatchTraceRuntimeCoordinatorHeadNoExecutionDecisionSchema, z.null()]),\n\t\townerUserId: trimmedNonEmptyStringSchema,\n\t\tprimaryDispatchId: trimmedNonEmptyStringSchema,\n\t\tpublicationIntent: z.union([spaceDispatchTraceRuntimeCoordinatorHeadPublicationIntentSchema, z.null()]),\n\t\tpublicationExhaustion: spaceDispatchTraceRuntimeCoordinatorHeadPublicationExhaustionSchema.optional(),\n\t\tpublicationOutcome: spaceDispatchTraceRuntimeCoordinatorHeadPublicationOutcomeSchema.optional(),\n\t\treadStatus: z.literal(\"found\"),\n\t\truntimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.nullable(),\n\t\tstatus: runtimeTransportRuntimeCoordinatorHeadLifecycleStatusSchema,\n\t\ttargetWakeLifecycleIdentity: targetWakeLifecycleIdentitySchema,\n\t\ttargetWakeLifecycleId: trimmedNonEmptyStringSchema.max(2048),\n\t\ttargetDisplay: spaceDispatchTraceRuntimeCoordinatorHeadTargetDisplaySchema.optional(),\n\t\tupdatedAt: ISO_DATE_TIME_SCHEMA,\n\t\twaitingBoundary: z.union([spaceDispatchTraceRuntimeCoordinatorHeadWaitingBoundarySchema, z.null()])\n\t}),\n\tz.strictObject({\n\t\tfactSource: z.literal(\"runtime_coordinator_head_lifecycle\"),\n\t\treadStatus: z.literal(\"missing\"),\n\t\treasonCode: z.literal(\"runtime_coordinator.head_lifecycle_not_found\"),\n\t\ttargetWakeLifecycleId: trimmedNonEmptyStringSchema.max(2048)\n\t}),\n\tz.strictObject({\n\t\tfactSource: z.literal(\"runtime_coordinator_head_lifecycle\"),\n\t\treadStatus: z.literal(\"authority_unavailable\"),\n\t\treasonCode: trimmedNonEmptyStringSchema.max(160),\n\t\ttargetWakeLifecycleId: trimmedNonEmptyStringSchema.max(2048)\n\t})\n]);\nconst spaceDispatchTraceStructuredActionFailureSchema = z.strictObject({\n\tcarrierKind: z.enum([\n\t\t\"fenced_block\",\n\t\t\"invalid_json\",\n\t\t\"none\",\n\t\t\"trailing_json\"\n\t]),\n\tinvalidOutputPreview: boundedNullableTrimmedStringSchema(SPACE_DISPATCH_TRACE_INVALID_OUTPUT_PREVIEW_MAX_CHARS),\n\tpublicFailureReason: nullableTrimmedStringSchema,\n\trepairMode: z.enum([\n\t\t\"required_check\",\n\t\t\"local_synthetic\",\n\t\t\"controller_roundtrip\"\n\t]),\n\tspaceActionCandidatePresent: z.boolean(),\n\tspaceActionParseError: nullableTrimmedStringSchema\n});\nconst spaceDispatchTraceOpenClawGatewayVisibilitySchema = z.strictObject({\n\tagentId: trimmedNonEmptyStringSchema,\n\tgatewayRestartAttempted: z.boolean(),\n\tgatewayVisibility: z.enum([\n\t\t\"missing_after_restart\",\n\t\t\"missing_before_restart\",\n\t\t\"visible\",\n\t\t\"visible_after_restart\"\n\t])\n});\nconst spaceDispatchTraceOpenClawBindingSchema = z.strictObject({\n\tclassification: z.enum([\n\t\t\"missing\",\n\t\t\"canonical_owned\",\n\t\t\"legacy\",\n\t\t\"foreign\"\n\t]),\n\tbindingSource: z.union([z.enum([\"daemon-launch\", \"imported\"]), z.null()]),\n\tupgradeApplied: z.boolean()\n});\nconst spaceDispatchTraceSnapshotSchema = z.strictObject({\n\tdispatch: spaceDispatchTraceDispatchSchema,\n\tnativeDelivery: z.union([spaceDispatchTraceNativeDeliverySchema, z.null()]).optional(),\n\truntimeCoordinatorExecution: z.union([spaceDispatchTraceRuntimeCoordinatorExecutionSchema, z.null()]),\n\truntimeCoordinatorCreationDiagnostics: z.array(spaceDispatchTraceRuntimeCoordinatorCreationDiagnosticSchema),\n\truntimeCoordinatorEvents: z.array(spaceDispatchTraceRuntimeCoordinatorEventSchema),\n\truntimeCoordinatorHeadLifecycle: z.union([spaceDispatchTraceRuntimeCoordinatorHeadLifecycleSchema, z.null()]),\n\tlatestAttempt: z.union([spaceDispatchTraceLatestAttemptSchema, z.null()]),\n\texecutionIdentity: z.union([spaceDispatchTraceExecutionIdentitySchema, z.null()]),\n\tclaimLease: z.union([spaceDispatchTraceClaimLeaseSchema, z.null()]),\n\tresult: z.union([spaceDispatchTraceResultSchema, z.null()]),\n\tresultInbox: z.union([spaceDispatchTraceResultInboxSchema, z.null()]),\n\trecentOpsDecisions: z.array(spaceDispatchTraceOpsDecisionSchema),\n\treplySignal: z.union([spaceDispatchTraceReplySignalSchema, z.null()]),\n\tfinalVisibleMessage: z.union([spaceDispatchTraceFinalVisibleMessageSchema, z.null()]).optional(),\n\tfinalVisibleMessageLinkage: z.union([spaceDispatchTraceFinalVisibleMessageLinkageSchema, z.null()]).optional(),\n\tfinalVisibleOutcome: spaceDispatchTraceFinalVisibleOutcomeSchema.optional(),\n\tstreaming: z.union([spaceDispatchTraceStreamingSchema, z.null()]),\n\truntime: z.union([spaceDispatchTraceRuntimeSchema, z.null()]),\n\texecution: z.union([spaceDispatchTraceExecutionSchema, z.null()]),\n\torigin: z.union([spaceDispatchTraceOriginSchema, z.null()]),\n\tprompt: z.union([spaceDispatchTracePromptSchema, z.null()]),\n\tdispatchExecution: z.union([spaceDispatchTraceDispatchExecutionSchema, z.null()]),\n\topenClawGatewayVisibility: z.union([spaceDispatchTraceOpenClawGatewayVisibilitySchema, z.null()]),\n\topenClawBinding: z.union([spaceDispatchTraceOpenClawBindingSchema, z.null()]),\n\tstructuredActionFailure: z.union([spaceDispatchTraceStructuredActionFailureSchema, z.null()])\n});\nconst spaceDispatchTraceResponseSchema = z.strictObject({\n\tcorrelation: observabilityWakeCorrelationSchema,\n\tquery: spaceDispatchTraceQuerySchema,\n\tremoteAgentRuntimeDiagnostics: remoteAgentWorkerRuntimeDiagnosticsResponseSchema.optional(),\n\ttrace: z.union([spaceDispatchTraceSnapshotSchema, z.null()])\n}).superRefine((value, context) => {\n\texpectTraceEvidence(context, value.correlation.selector.kind, \"dispatch\", [\n\t\t\"correlation\",\n\t\t\"selector\",\n\t\t\"kind\"\n\t], \"trace response correlation selector must be dispatch\");\n\texpectTraceEvidence(context, value.correlation.spaceId, value.query.spaceId, [\"correlation\", \"spaceId\"], \"correlation.spaceId must match query.spaceId\");\n\texpectTraceEvidence(context, value.correlation.dispatchId, value.query.dispatchId, [\"correlation\", \"dispatchId\"], \"correlation.dispatchId must match query.dispatchId\");\n\tif (value.trace === null) {\n\t\texpectNullTraceEvidence(context, value.correlation.clientMessageId, [\"correlation\", \"clientMessageId\"]);\n\t\texpectNullTraceEvidence(context, value.correlation.sourceSignalId, [\"correlation\", \"sourceSignalId\"]);\n\t\texpectNullTraceEvidence(context, value.correlation.targetProfileId, [\"correlation\", \"targetProfileId\"]);\n\t\texpectNullTraceEvidence(context, value.correlation.latestAttemptId, [\"correlation\", \"latestAttemptId\"]);\n\t\texpectNullTraceEvidence(context, value.correlation.runtimeCoordinatorExecutionId, [\"correlation\", \"runtimeCoordinatorExecutionId\"]);\n\t\texpectNullTraceEvidence(context, value.correlation.claimLeaseId, [\"correlation\", \"claimLeaseId\"]);\n\t\texpectNullTraceEvidence(context, value.correlation.bindingId, [\"correlation\", \"bindingId\"]);\n\t\texpectNullTraceEvidence(context, value.correlation.openMeldServiceRuntimeId, [\"correlation\", \"openMeldServiceRuntimeId\"]);\n\t\texpectNullTraceEvidence(context, value.correlation.agentControllerRef, [\"correlation\", \"agentControllerRef\"]);\n\t\texpectNullTraceEvidence(context, value.correlation.resultRef, [\"correlation\", \"resultRef\"]);\n\t\texpectNullTraceEvidence(context, value.correlation.publishedSignalId, [\"correlation\", \"publishedSignalId\"]);\n\t\texpectNullTraceEvidence(context, value.correlation.replySignalId, [\"correlation\", \"replySignalId\"]);\n\t\treturn;\n\t}\n\texpectTraceEvidence(context, value.trace.dispatch.dispatchId, value.query.dispatchId, [\n\t\t\"trace\",\n\t\t\"dispatch\",\n\t\t\"dispatchId\"\n\t], \"trace.dispatch.dispatchId must match query.dispatchId\");\n\texpectTraceEvidence(context, value.correlation.clientMessageId, value.trace.dispatch.sourceClientMessageId, [\"correlation\", \"clientMessageId\"], \"correlation.clientMessageId must match trace.dispatch.sourceClientMessageId\");\n\texpectTraceEvidence(context, value.correlation.sourceSignalId, value.trace.dispatch.sourceEventId, [\"correlation\", \"sourceSignalId\"], \"correlation.sourceSignalId must match trace.dispatch.sourceEventId\");\n\texpectTraceEvidence(context, value.correlation.targetProfileId, value.trace.dispatch.targetProfileId, [\"correlation\", \"targetProfileId\"], \"correlation.targetProfileId must match trace.dispatch.targetProfileId\");\n\texpectTraceEvidence(context, value.correlation.latestAttemptId, value.trace.latestAttempt?.attemptId ?? value.trace.dispatch.latestAttemptId, [\"correlation\", \"latestAttemptId\"], \"correlation.latestAttemptId must match latest attempt evidence\");\n\texpectTraceEvidence(context, value.correlation.runtimeCoordinatorExecutionId, value.trace.runtimeCoordinatorExecution?.runtimeCoordinatorExecutionId ?? null, [\"correlation\", \"runtimeCoordinatorExecutionId\"], \"correlation.runtimeCoordinatorExecutionId must match trace.runtimeCoordinatorExecution.runtimeCoordinatorExecutionId\");\n\texpectTraceEvidence(context, value.correlation.claimLeaseId, value.trace.claimLease?.claimLeaseId ?? null, [\"correlation\", \"claimLeaseId\"], \"correlation.claimLeaseId must match trace.claimLease.claimLeaseId\");\n\texpectTraceEvidence(context, value.correlation.bindingId, value.trace.runtimeCoordinatorExecution?.bindingId ?? value.trace.executionIdentity?.core.bindingId ?? value.trace.nativeDelivery?.bindingId ?? value.trace.claimLease?.bindingId ?? null, [\"correlation\", \"bindingId\"], \"correlation.bindingId must match trace execution identity evidence\");\n\texpectTraceEvidence(context, value.correlation.openMeldServiceRuntimeId, value.trace.runtimeCoordinatorExecution?.openMeldServiceRuntimeId.value ?? value.trace.executionIdentity?.core.openMeldServiceRuntimeId.value ?? value.trace.claimLease?.openMeldServiceRuntimeId ?? null, [\"correlation\", \"openMeldServiceRuntimeId\"], \"correlation.openMeldServiceRuntimeId must match trace execution identity evidence\");\n\texpectTraceEvidence(context, value.correlation.agentControllerRef, value.trace.runtimeCoordinatorExecution?.agentControllerRef ?? value.trace.executionIdentity?.core.agentControllerRef ?? value.trace.nativeDelivery?.controllerNormalization.canonicalAgentControllerRef ?? value.trace.claimLease?.agentControllerRef ?? null, [\"correlation\", \"agentControllerRef\"], \"correlation.agentControllerRef must match trace execution identity evidence\");\n\texpectTraceEvidence(context, value.correlation.resultRef, value.trace.result?.resultRef ?? null, [\"correlation\", \"resultRef\"], \"correlation.resultRef must match trace.result.resultRef\");\n\texpectTraceEvidence(context, value.correlation.publishedSignalId, value.trace.result?.publishedSignalId ?? null, [\"correlation\", \"publishedSignalId\"], \"correlation.publishedSignalId must match trace.result.publishedSignalId\");\n\texpectTraceEvidence(context, value.correlation.replySignalId, value.trace.replySignal?.signalId ?? null, [\"correlation\", \"replySignalId\"], \"correlation.replySignalId must match trace.replySignal.signalId\");\n\texpectFinalVisibleMessageTraceEvidence(context, value.trace);\n\tif (value.trace.latestAttempt) expectTraceEvidence(context, value.trace.latestAttempt.dispatchId, value.trace.dispatch.dispatchId, [\n\t\t\"trace\",\n\t\t\"latestAttempt\",\n\t\t\"dispatchId\"\n\t], \"trace.latestAttempt.dispatchId must match trace.dispatch.dispatchId\");\n\texpectNativeDeliveryTraceEvidence(context, {\n\t\tquery: value.query,\n\t\ttrace: value.trace\n\t});\n\tif (value.trace.claimLease) {\n\t\texpectTraceEvidence(context, value.trace.claimLease.dispatchId, value.trace.dispatch.dispatchId, [\n\t\t\t\"trace\",\n\t\t\t\"claimLease\",\n\t\t\t\"dispatchId\"\n\t\t], \"trace.claimLease.dispatchId must match trace.dispatch.dispatchId\");\n\t\texpectTraceEvidence(context, value.trace.claimLease.sourceEventId, value.trace.dispatch.sourceEventId, [\n\t\t\t\"trace\",\n\t\t\t\"claimLease\",\n\t\t\t\"sourceEventId\"\n\t\t], \"trace.claimLease.sourceEventId must match trace.dispatch.sourceEventId\");\n\t\texpectTraceEvidence(context, value.trace.claimLease.sourceClientMessageId, value.trace.dispatch.sourceClientMessageId, [\n\t\t\t\"trace\",\n\t\t\t\"claimLease\",\n\t\t\t\"sourceClientMessageId\"\n\t\t], \"trace.claimLease.sourceClientMessageId must match trace.dispatch.sourceClientMessageId\");\n\t\texpectTraceEvidence(context, value.trace.claimLease.targetProfileId, value.trace.dispatch.targetProfileId, [\n\t\t\t\"trace\",\n\t\t\t\"claimLease\",\n\t\t\t\"targetProfileId\"\n\t\t], \"trace.claimLease.targetProfileId must match trace.dispatch.targetProfileId\");\n\t}\n\tif (value.trace.executionIdentity) {\n\t\texpectTraceEvidence(context, value.trace.executionIdentity.core.spaceId, value.query.spaceId, [\n\t\t\t\"trace\",\n\t\t\t\"executionIdentity\",\n\t\t\t\"core\",\n\t\t\t\"spaceId\"\n\t\t], \"trace.executionIdentity.core.spaceId must match query.spaceId\");\n\t\texpectTraceEvidence(context, value.trace.executionIdentity.core.dispatchId, value.trace.dispatch.dispatchId, [\n\t\t\t\"trace\",\n\t\t\t\"executionIdentity\",\n\t\t\t\"core\",\n\t\t\t\"dispatchId\"\n\t\t], \"trace.executionIdentity.core.dispatchId must match trace.dispatch.dispatchId\");\n\t\texpectTraceEvidence(context, value.trace.executionIdentity.core.targetProfileId, value.trace.dispatch.targetProfileId, [\n\t\t\t\"trace\",\n\t\t\t\"executionIdentity\",\n\t\t\t\"core\",\n\t\t\t\"targetProfileId\"\n\t\t], \"trace.executionIdentity.core.targetProfileId must match trace.dispatch.targetProfileId\");\n\t}\n\tif (value.trace.runtimeCoordinatorExecution) {\n\t\texpectTraceEvidence(context, value.trace.runtimeCoordinatorExecution.spaceId, value.query.spaceId, [\n\t\t\t\"trace\",\n\t\t\t\"runtimeCoordinatorExecution\",\n\t\t\t\"spaceId\"\n\t\t], \"trace.runtimeCoordinatorExecution.spaceId must match query.spaceId\");\n\t\texpectTraceEvidence(context, value.trace.runtimeCoordinatorExecution.dispatchId, value.trace.dispatch.dispatchId, [\n\t\t\t\"trace\",\n\t\t\t\"runtimeCoordinatorExecution\",\n\t\t\t\"dispatchId\"\n\t\t], \"trace.runtimeCoordinatorExecution.dispatchId must match trace.dispatch.dispatchId\");\n\t\texpectTraceEvidence(context, value.trace.runtimeCoordinatorExecution.targetProfileId, value.trace.dispatch.targetProfileId, [\n\t\t\t\"trace\",\n\t\t\t\"runtimeCoordinatorExecution\",\n\t\t\t\"targetProfileId\"\n\t\t], \"trace.runtimeCoordinatorExecution.targetProfileId must match trace.dispatch.targetProfileId\");\n\t}\n\texpectRuntimeCoordinatorHeadLifecycleTraceEvidence(context, {\n\t\tquery: value.query,\n\t\ttrace: value.trace\n\t});\n\tfor (const diagnostic of value.trace.runtimeCoordinatorCreationDiagnostics) {\n\t\texpectTraceEvidence(context, diagnostic.spaceId, value.query.spaceId, [\"trace\", \"runtimeCoordinatorCreationDiagnostics\"], \"trace.runtimeCoordinatorCreationDiagnostics.spaceId must match query.spaceId\");\n\t\texpectTraceEvidence(context, diagnostic.dispatchId, value.trace.dispatch.dispatchId, [\"trace\", \"runtimeCoordinatorCreationDiagnostics\"], \"trace.runtimeCoordinatorCreationDiagnostics.dispatchId must match trace.dispatch.dispatchId\");\n\t\texpectTraceEvidence(context, diagnostic.targetProfileId, value.trace.dispatch.targetProfileId, [\"trace\", \"runtimeCoordinatorCreationDiagnostics\"], \"trace.runtimeCoordinatorCreationDiagnostics.targetProfileId must match trace.dispatch.targetProfileId\");\n\t}\n\tfor (const event of value.trace.runtimeCoordinatorEvents) expectTraceEvidence(context, event.runtimeCoordinatorExecutionId, value.trace.runtimeCoordinatorExecution?.runtimeCoordinatorExecutionId ?? null, [\"trace\", \"runtimeCoordinatorEvents\"], \"trace.runtimeCoordinatorEvents.runtimeCoordinatorExecutionId must match trace.runtimeCoordinatorExecution.runtimeCoordinatorExecutionId\");\n\tif (value.trace.result) expectTraceEvidence(context, value.trace.result.dispatchId, value.trace.dispatch.dispatchId, [\n\t\t\"trace\",\n\t\t\"result\",\n\t\t\"dispatchId\"\n\t], \"trace.result.dispatchId must match trace.dispatch.dispatchId\");\n\tif (value.trace.resultInbox) {\n\t\texpectTraceEvidence(context, value.trace.resultInbox.dispatchId, value.trace.dispatch.dispatchId, [\n\t\t\t\"trace\",\n\t\t\t\"resultInbox\",\n\t\t\t\"dispatchId\"\n\t\t], \"trace.resultInbox.dispatchId must match trace.dispatch.dispatchId\");\n\t\texpectTraceEvidence(context, value.trace.resultInbox.targetProfileId, value.trace.dispatch.targetProfileId, [\n\t\t\t\"trace\",\n\t\t\t\"resultInbox\",\n\t\t\t\"targetProfileId\"\n\t\t], \"trace.resultInbox.targetProfileId must match trace.dispatch.targetProfileId\");\n\t\texpectTraceEvidence(context, value.trace.resultInbox.attemptId, value.trace.latestAttempt?.attemptId ?? value.trace.dispatch.latestAttemptId, [\n\t\t\t\"trace\",\n\t\t\t\"resultInbox\",\n\t\t\t\"attemptId\"\n\t\t], \"trace.resultInbox.attemptId must match latest attempt evidence\");\n\t}\n});\nconst FINAL_VISIBLE_OUTCOME_PUBLICATION_PENDING_REASON_CODE = \"final_visible_outcome.publication_pending\";\nconst FINAL_VISIBLE_OUTCOME_PUBLICATION_RETRYING_REASON_CODE = \"final_visible_outcome.publication_retrying\";\nconst FINAL_VISIBLE_OUTCOME_PUBLICATION_UNRESOLVED_REASON_CODE = \"final_visible_outcome.publication_unresolved\";\nconst RUNTIME_COORDINATOR_PUBLICATION_UNRESOLVED_REASON_CODE = \"runtime_coordinator.publication_unresolved\";\nconst RUNTIME_COORDINATOR_DELIVERY_EXPIRED_REASON_CODE = \"runtime_coordinator.delivery_expired\";\nfunction listSpaceDispatchTraceFinalVisibleSignalCandidates(trace) {\n\tconst candidates = [];\n\taddRuntimeCoordinatorStoppedNoticeSignalCandidates(candidates, trace.runtimeCoordinatorEvents);\n\taddFinalVisibleSignalCandidate(candidates, trace.runtimeCoordinatorHeadLifecycle?.readStatus === \"found\" ? trace.runtimeCoordinatorHeadLifecycle.publicationOutcome?.publishedSignalId : null);\n\taddFinalVisibleSignalCandidate(candidates, trace.result?.publishedSignalId);\n\taddFinalVisibleSignalCandidate(candidates, trace.resultInbox?.publishedSignalId);\n\treturn candidates;\n}\nfunction addRuntimeCoordinatorStoppedNoticeSignalCandidates(candidates, events) {\n\tfor (const event of events) {\n\t\tif (event.eventType !== \"cancellation_control_accepted\") continue;\n\t\taddFinalVisibleSignalCandidate(candidates, readPayloadString(readPayloadObject(parseRuntimeCoordinatorEventPayload(event), \"stoppedNoticePublication\"), \"publishedSignalId\"));\n\t}\n}\nfunction addFinalVisibleSignalCandidate(candidates, value) {\n\tconst normalized = normalizeOptionalTraceText(value);\n\tif (normalized && !candidates.includes(normalized)) candidates.push(normalized);\n}\nfunction normalizeOptionalTraceText(value) {\n\tconst normalized = typeof value === \"string\" ? value.trim() : \"\";\n\treturn normalized.length > 0 ? normalized : null;\n}\nfunction projectSpaceDispatchTraceFinalVisibleOutcome(trace) {\n\treturn resolveFinalVisibleMessageOutcome(trace) ?? resolvePublicationBlockerOutcome(trace) ?? resolveHeadPublicationExhaustionOutcome(trace) ?? resolveHeadPublicationOutcome(trace) ?? resolveResultPublicationOutcome(trace) ?? resolveRuntimeCoordinatorExecutionPublicationOutcome(trace) ?? resolveHeadPublicationIntentOutcome(trace) ?? createNotApplicableFinalVisibleOutcome();\n}\nfunction resolveFinalVisibleMessageOutcome(trace) {\n\tconst finalVisibleMessage = trace.finalVisibleMessage ?? null;\n\tif (!finalVisibleMessage) return null;\n\tconst visibleStopped = isStoppedFinalVisibleSystemNotice(finalVisibleMessage);\n\tconst visibleFailure = isFailureFinalVisibleSystemNotice(finalVisibleMessage);\n\tlet publicationKind = \"success_reply\";\n\tlet status = \"visible_reply\";\n\tif (visibleStopped) {\n\t\tpublicationKind = \"stopped_notice\";\n\t\tstatus = \"visible_stopped\";\n\t} else if (visibleFailure) {\n\t\tpublicationKind = \"failure_notice\";\n\t\tstatus = \"visible_failure\";\n\t}\n\treturn {\n\t\tdelivered: true,\n\t\tpublicationErrorCode: null,\n\t\tpublicationKind,\n\t\treasonCode: resolveFinalVisibleMessageOutcomeReasonCode(finalVisibleMessage, visibleStopped, visibleFailure),\n\t\tsignalId: finalVisibleMessage.signalId,\n\t\tsourceFact: \"final_visible_message\",\n\t\tsourceReasonCode: finalVisibleMessage.reasonCode,\n\t\tsourceStatus: finalVisibleMessage.signalType,\n\t\tstatus\n\t};\n}\nfunction isStoppedFinalVisibleSystemNotice(finalVisibleMessage) {\n\treturn finalVisibleMessage.signalType === \"signal.system_notice\" && finalVisibleMessage.noticeType === \"wake_stopped\";\n}\nfunction isFailureFinalVisibleSystemNotice(finalVisibleMessage) {\n\treturn finalVisibleMessage.signalType === \"signal.system_notice\" && (finalVisibleMessage.noticeType === \"terminal_failure\" || finalVisibleMessage.noticeType === \"policy_blocked\");\n}\nfunction resolveFinalVisibleMessageOutcomeReasonCode(finalVisibleMessage, visibleStopped, visibleFailure) {\n\tif (visibleStopped) return finalVisibleMessage.reasonCode ?? \"space.wake_stopped_notice_published\";\n\tif (!visibleFailure) return finalVisibleMessage.noticeType === \"stay_silent\" ? \"space.stay_silent_notice_published\" : \"reply.delivered\";\n\tif (finalVisibleMessage.reasonCode) return finalVisibleMessage.reasonCode;\n\treturn finalVisibleMessage.noticeType === \"policy_blocked\" ? \"space.policy_blocked_notice_published\" : \"space.terminal_failure_notice_published\";\n}\nfunction resolvePublicationBlockerOutcome(trace) {\n\tconst publicationBlocker = resolveRuntimeCoordinatorPublicationUnresolvedBlocker(trace);\n\treturn publicationBlocker ? {\n\t\tdelivered: false,\n\t\tpublicationErrorCode: null,\n\t\tpublicationKind: publicationBlocker.publicationKind,\n\t\treasonCode: FINAL_VISIBLE_OUTCOME_PUBLICATION_UNRESOLVED_REASON_CODE,\n\t\tsignalId: null,\n\t\tsourceFact: \"runtime_coordinator_event\",\n\t\tsourceReasonCode: publicationBlocker.reasonCode,\n\t\tsourceStatus: publicationBlocker.status,\n\t\tstatus: \"publication_unresolved\"\n\t} : null;\n}\nfunction resolveHeadPublicationExhaustionOutcome(trace) {\n\tconst headPublicationExhaustion = trace.runtimeCoordinatorHeadLifecycle?.readStatus === \"found\" ? trace.runtimeCoordinatorHeadLifecycle.publicationExhaustion ?? null : null;\n\tif (!headPublicationExhaustion) return null;\n\treturn {\n\t\tdelivered: false,\n\t\tpublicationErrorCode: null,\n\t\tpublicationKind: \"failure_notice\",\n\t\treasonCode: FINAL_VISIBLE_OUTCOME_PUBLICATION_UNRESOLVED_REASON_CODE,\n\t\tsignalId: null,\n\t\tsourceFact: \"runtime_coordinator_head_lifecycle\",\n\t\tsourceReasonCode: headPublicationExhaustion.reasonCode,\n\t\tsourceStatus: headPublicationExhaustion.status,\n\t\tstatus: \"publication_unresolved\"\n\t};\n}\nfunction resolveHeadPublicationOutcome(trace) {\n\tconst headPublicationOutcome = trace.runtimeCoordinatorHeadLifecycle?.readStatus === \"found\" ? trace.runtimeCoordinatorHeadLifecycle.publicationOutcome ?? null : null;\n\tif (!headPublicationOutcome) return null;\n\tif (headPublicationOutcome?.status === \"failure_publication_failed\") return {\n\t\tdelivered: false,\n\t\tpublicationErrorCode: headPublicationOutcome.publicationErrorCode,\n\t\tpublicationKind: \"failure_notice\",\n\t\treasonCode: FINAL_VISIBLE_OUTCOME_PUBLICATION_RETRYING_REASON_CODE,\n\t\tsignalId: headPublicationOutcome.publishedSignalId,\n\t\tsourceFact: \"runtime_coordinator_head_lifecycle\",\n\t\tsourceReasonCode: headPublicationOutcome.publicationErrorCode ?? \"runtime_coordinator.failure_publication_failed\",\n\t\tsourceStatus: headPublicationOutcome.status,\n\t\tstatus: \"publication_retrying\"\n\t};\n\treturn {\n\t\tdelivered: false,\n\t\tpublicationErrorCode: headPublicationOutcome.publicationErrorCode,\n\t\tpublicationKind: headPublicationOutcome.finalMessageKind === \"success_reply\" ? \"success_reply\" : \"failure_notice\",\n\t\treasonCode: FINAL_VISIBLE_OUTCOME_PUBLICATION_UNRESOLVED_REASON_CODE,\n\t\tsignalId: headPublicationOutcome.publishedSignalId,\n\t\tsourceFact: \"runtime_coordinator_head_lifecycle\",\n\t\tsourceReasonCode: headPublicationOutcome.publicationErrorCode ?? \"reply.not_found\",\n\t\tsourceStatus: headPublicationOutcome.status,\n\t\tstatus: \"publication_unresolved\"\n\t};\n}\nfunction resolveResultPublicationOutcome(trace) {\n\tif (hasRuntimeCoordinatorPreResultAuthority(trace)) return null;\n\tconst resultInbox = trace.resultInbox;\n\tif (resultInbox?.publishState === \"reply_publication_failed\") return {\n\t\tdelivered: false,\n\t\tpublicationErrorCode: resultInbox.publicationErrorCode,\n\t\tpublicationKind: \"success_reply\",\n\t\treasonCode: FINAL_VISIBLE_OUTCOME_PUBLICATION_RETRYING_REASON_CODE,\n\t\tsignalId: resultInbox.publishedSignalId,\n\t\tsourceFact: \"result_inbox\",\n\t\tsourceReasonCode: resultInbox.publicationErrorCode ?? \"reply.publication_failed\",\n\t\tsourceStatus: resultInbox.publishState,\n\t\tstatus: \"publication_retrying\"\n\t};\n\tif (resultInbox?.publishState === \"reply_published\" || trace.result?.publishedSignalId) return {\n\t\tdelivered: false,\n\t\tpublicationErrorCode: resultInbox?.publicationErrorCode ?? null,\n\t\tpublicationKind: \"success_reply\",\n\t\treasonCode: FINAL_VISIBLE_OUTCOME_PUBLICATION_UNRESOLVED_REASON_CODE,\n\t\tsignalId: trace.result?.publishedSignalId ?? resultInbox?.publishedSignalId ?? null,\n\t\tsourceFact: trace.result?.publishedSignalId ? \"dispatch_result\" : \"result_inbox\",\n\t\tsourceReasonCode: \"reply.not_found\",\n\t\tsourceStatus: resultInbox?.publishState ?? (trace.result?.publishedSignalId ? \"published_signal_missing\" : null),\n\t\tstatus: \"publication_unresolved\"\n\t};\n\treturn null;\n}\nfunction resolveRuntimeCoordinatorExecutionPublicationOutcome(trace) {\n\tconst runtimeCoordinatorExecution = trace.runtimeCoordinatorExecution;\n\tconst runtimeCoordinatorReason = runtimeCoordinatorExecution?.terminalOutcome?.reasonCode ?? null;\n\tif (runtimeCoordinatorExecution?.status === \"failed_retryable\" && isPublicationFailureReasonCode(runtimeCoordinatorReason)) return {\n\t\tdelivered: false,\n\t\tpublicationErrorCode: runtimeCoordinatorReason,\n\t\tpublicationKind: \"success_reply\",\n\t\treasonCode: FINAL_VISIBLE_OUTCOME_PUBLICATION_RETRYING_REASON_CODE,\n\t\tsignalId: null,\n\t\tsourceFact: \"runtime_coordinator_execution\",\n\t\tsourceReasonCode: runtimeCoordinatorReason,\n\t\tsourceStatus: runtimeCoordinatorExecution.status,\n\t\tstatus: \"publication_retrying\"\n\t};\n\tif (runtimeCoordinatorExecution?.status === \"failed_terminal\" && runtimeCoordinatorReason === RUNTIME_COORDINATOR_DELIVERY_EXPIRED_REASON_CODE) return {\n\t\tdelivered: false,\n\t\tpublicationErrorCode: null,\n\t\tpublicationKind: \"failure_notice\",\n\t\treasonCode: FINAL_VISIBLE_OUTCOME_PUBLICATION_UNRESOLVED_REASON_CODE,\n\t\tsignalId: null,\n\t\tsourceFact: \"runtime_coordinator_execution\",\n\t\tsourceReasonCode: runtimeCoordinatorReason,\n\t\tsourceStatus: runtimeCoordinatorExecution.status,\n\t\tstatus: \"publication_unresolved\"\n\t};\n\tif (runtimeCoordinatorExecution?.status === \"reply_published\") return {\n\t\tdelivered: false,\n\t\tpublicationErrorCode: null,\n\t\tpublicationKind: \"success_reply\",\n\t\treasonCode: FINAL_VISIBLE_OUTCOME_PUBLICATION_UNRESOLVED_REASON_CODE,\n\t\tsignalId: null,\n\t\tsourceFact: \"runtime_coordinator_execution\",\n\t\tsourceReasonCode: \"reply.not_found\",\n\t\tsourceStatus: runtimeCoordinatorExecution.status,\n\t\tstatus: \"publication_unresolved\"\n\t};\n\tif (runtimeCoordinatorExecution?.status === \"cancelled\") return {\n\t\tdelivered: false,\n\t\tpublicationErrorCode: null,\n\t\tpublicationKind: \"stopped_notice\",\n\t\treasonCode: FINAL_VISIBLE_OUTCOME_PUBLICATION_UNRESOLVED_REASON_CODE,\n\t\tsignalId: null,\n\t\tsourceFact: \"runtime_coordinator_execution\",\n\t\tsourceReasonCode: runtimeCoordinatorReason ?? \"space.wake_stopped_notice_missing\",\n\t\tsourceStatus: runtimeCoordinatorExecution.status,\n\t\tstatus: \"publication_unresolved\"\n\t};\n\treturn null;\n}\nfunction resolveHeadPublicationIntentOutcome(trace) {\n\tconst headLifecycle = trace.runtimeCoordinatorHeadLifecycle;\n\tif (headLifecycle?.readStatus !== \"found\" || !headLifecycle.publicationIntent) return null;\n\treturn {\n\t\tdelivered: false,\n\t\tpublicationErrorCode: null,\n\t\tpublicationKind: headLifecycle.publicationIntent.kind === \"stopped_notice\" ? \"stopped_notice\" : \"failure_notice\",\n\t\treasonCode: FINAL_VISIBLE_OUTCOME_PUBLICATION_PENDING_REASON_CODE,\n\t\tsignalId: null,\n\t\tsourceFact: \"runtime_coordinator_head_lifecycle\",\n\t\tsourceReasonCode: headLifecycle.publicationIntent.reasonCode,\n\t\tsourceStatus: headLifecycle.publicationIntent.status,\n\t\tstatus: \"publication_pending\"\n\t};\n}\nfunction createNotApplicableFinalVisibleOutcome() {\n\treturn {\n\t\tdelivered: false,\n\t\tpublicationErrorCode: null,\n\t\tpublicationKind: null,\n\t\treasonCode: null,\n\t\tsignalId: null,\n\t\tsourceFact: \"none\",\n\t\tsourceReasonCode: null,\n\t\tsourceStatus: null,\n\t\tstatus: \"not_applicable\"\n\t};\n}\nfunction projectSpaceDispatchTraceRootCause(trace) {\n\tconst finalVisibleOutcomeRootCause = resolveFinalVisibleOutcomeRootCause(trace);\n\tif (finalVisibleOutcomeRootCause) return finalVisibleOutcomeRootCause;\n\tconst legacyResultInboxRootCause = resolveLegacyResultInboxRootCause(trace);\n\tif (legacyResultInboxRootCause) return legacyResultInboxRootCause;\n\tconst headLifecycleRootCause = resolveRuntimeCoordinatorHeadLifecycleRootCause(trace);\n\tif (headLifecycleRootCause) return headLifecycleRootCause;\n\tconst runtimeCoordinatorCreationFailure = resolveRuntimeCoordinatorCreationRootCause(trace);\n\tif (runtimeCoordinatorCreationFailure) return runtimeCoordinatorCreationFailure;\n\tconst runtimeProgressStale = resolveRuntimeProgressStaleRootCause(trace);\n\tif (runtimeProgressStale) return runtimeProgressStale;\n\tconst runtimeCoordinatorRootCause = resolveRuntimeCoordinatorExecutionRootCause(trace);\n\tif (runtimeCoordinatorRootCause) return runtimeCoordinatorRootCause;\n\tconst attemptErrorRootCause = resolveLatestAttemptErrorRootCause(trace);\n\tif (attemptErrorRootCause) return attemptErrorRootCause;\n\tif (trace.result?.publishedSignalId) return {\n\t\treasonCode: \"reply.not_found\",\n\t\tsource: \"reply_lookup\"\n\t};\n\tif (trace.dispatch.status === \"succeeded\") return {\n\t\treasonCode: \"dispatch.succeeded\",\n\t\tsource: \"dispatch\"\n\t};\n\tif (trace.execution?.progressEvidenceState === \"stalled\") return {\n\t\treasonCode: \"daemon.execution_stalled\",\n\t\tsource: \"runtime\"\n\t};\n\tif (trace.runtime?.timeoutTriggeredAt) return {\n\t\treasonCode: \"runtime.timeout\",\n\t\tsource: \"runtime\"\n\t};\n\tif (trace.latestAttempt?.status) return {\n\t\treasonCode: `attempt.${trace.latestAttempt.status}`,\n\t\tsource: \"latest_attempt\"\n\t};\n\treturn {\n\t\treasonCode: `dispatch.${trace.dispatch.status}`,\n\t\tsource: \"dispatch\"\n\t};\n}\nfunction resolveSpaceDispatchTraceRootCause(trace) {\n\treturn projectSpaceDispatchTraceRootCause(trace).reasonCode;\n}\nfunction resolveFinalVisibleOutcomeRootCause(trace) {\n\tconst finalVisibleOutcome = projectSpaceDispatchTraceFinalVisibleOutcome(trace);\n\tswitch (finalVisibleOutcome.status) {\n\t\tcase \"visible_reply\": return {\n\t\t\treasonCode: finalVisibleOutcome.reasonCode ?? \"reply.delivered\",\n\t\t\tsource: \"final_visible_message\"\n\t\t};\n\t\tcase \"visible_failure\": return {\n\t\t\treasonCode: finalVisibleOutcome.reasonCode ?? \"space.terminal_failure_notice_published\",\n\t\t\tsource: \"final_visible_message\"\n\t\t};\n\t\tcase \"visible_stopped\": return {\n\t\t\treasonCode: finalVisibleOutcome.reasonCode ?? \"space.wake_stopped_notice_published\",\n\t\t\tsource: \"final_visible_message\"\n\t\t};\n\t\tcase \"publication_pending\":\n\t\tcase \"publication_retrying\": return {\n\t\t\treasonCode: finalVisibleOutcome.reasonCode ?? FINAL_VISIBLE_OUTCOME_PUBLICATION_UNRESOLVED_REASON_CODE,\n\t\t\tsource: \"final_visible_outcome\"\n\t\t};\n\t\tcase \"publication_unresolved\": return resolveFinalVisibleMessageLinkageRootCause(trace, finalVisibleOutcome) ?? {\n\t\t\treasonCode: finalVisibleOutcome.reasonCode ?? FINAL_VISIBLE_OUTCOME_PUBLICATION_UNRESOLVED_REASON_CODE,\n\t\t\tsource: \"final_visible_outcome\"\n\t\t};\n\t\tcase \"not_applicable\": return resolveFinalVisibleMessageLinkageRootCause(trace, finalVisibleOutcome);\n\t\tdefault: return assertNever(finalVisibleOutcome.status);\n\t}\n}\nfunction resolveFinalVisibleMessageLinkageRootCause(trace, finalVisibleOutcome) {\n\tconst linkage = trace.finalVisibleMessageLinkage ?? null;\n\tif (!linkage || linkage.status === \"matched_published_signal\" || linkage.status === \"matched_final_reply_claim\" || linkage.status === \"projection_pending\") return null;\n\tif (isAuthoritativePublicationUnresolved(finalVisibleOutcome)) return null;\n\tif (linkage.status === \"linkage_missing\" || linkage.status === \"storage_inconsistent\") return {\n\t\treasonCode: linkage.reasonCode ?? `final_visible_message.${linkage.status}`,\n\t\tsource: \"final_visible_message\"\n\t};\n\treturn null;\n}\nfunction isAuthoritativePublicationUnresolved(finalVisibleOutcome) {\n\treturn finalVisibleOutcome.status === \"publication_unresolved\" && (finalVisibleOutcome.sourceFact === \"runtime_coordinator_event\" || finalVisibleOutcome.sourceFact === \"runtime_coordinator_head_lifecycle\" && finalVisibleOutcome.signalId === null);\n}\nfunction resolveLegacyResultInboxRootCause(trace) {\n\tif (hasRuntimeCoordinatorPreResultAuthority(trace)) return null;\n\tif (trace.resultInbox?.publishState === \"late_result_available\") return {\n\t\treasonCode: \"runtime_coordinator.late_result_available\",\n\t\tsource: \"result_inbox\"\n\t};\n\tif (trace.resultInbox?.publishState === \"reply_publication_failed\") return {\n\t\treasonCode: \"reply.publication_failed\",\n\t\tsource: \"result_inbox\"\n\t};\n\tif (trace.resultInbox?.publishState === \"invalid_space_action\") return {\n\t\treasonCode: \"reply.invalid_space_action\",\n\t\tsource: \"result_inbox\"\n\t};\n\treturn null;\n}\nfunction resolveRuntimeProgressStaleRootCause(trace) {\n\tif (hasRuntimeCoordinatorPreResultAuthority(trace) && hasRuntimeCoordinatorProgressStalePolicyEvidence(trace)) return {\n\t\treasonCode: \"runtime.progress_stale\",\n\t\tsource: \"runtime\"\n\t};\n\tif (!hasRuntimeCoordinatorPreResultAuthority(trace) && trace.runtimeCoordinatorExecution) return null;\n\tif (trace.execution?.progressEvidenceState === \"stalled\") return {\n\t\treasonCode: \"runtime.progress_stale\",\n\t\tsource: \"runtime\"\n\t};\n\tif (trace.latestAttempt?.errorCode === \"daemon.delivery.execution_stalled\") return {\n\t\treasonCode: \"runtime.progress_stale\",\n\t\tsource: \"runtime\"\n\t};\n\treturn null;\n}\nfunction hasRuntimeCoordinatorProgressStalePolicyEvidence(trace) {\n\treturn trace.runtimeCoordinatorEvents.some((event) => event.eventType === \"runtime_coordinator_decision_recorded\" && event.reasonCode === \"runtime_coordinator.progress_stale_policy_pending\");\n}\nfunction resolveRuntimeCoordinatorHeadLifecycleRootCause(trace) {\n\tif (trace.runtimeCoordinatorExecution) return null;\n\tconst headLifecycle = trace.runtimeCoordinatorHeadLifecycle;\n\tif (!headLifecycle) return null;\n\tif (headLifecycle.readStatus === \"authority_unavailable\") return {\n\t\treasonCode: headLifecycle.reasonCode,\n\t\tsource: \"runtime_coordinator\"\n\t};\n\tif (headLifecycle.readStatus === \"missing\") return {\n\t\treasonCode: headLifecycle.reasonCode,\n\t\tsource: \"runtime_coordinator\"\n\t};\n\treturn {\n\t\treasonCode: headLifecycle.noExecutionDecision?.reasonCode ?? headLifecycle.publicationIntent?.reasonCode ?? headLifecycle.waitingBoundary?.reasonCode ?? resolvePreExecutionNoExecutionEvidenceRootCause(trace) ?? resolveRuntimeCoordinatorHeadStatusRootCause(headLifecycle.status),\n\t\tsource: \"runtime_coordinator\"\n\t};\n}\nfunction resolveRuntimeCoordinatorHeadStatusRootCause(status) {\n\tif (status === \"accepted\") return \"runtime_coordinator.head_accepted\";\n\tif (status === \"execution_linked\") return \"runtime_coordinator.head_execution_linked\";\n\tif (status === \"waiting\") return \"runtime_coordinator.head_waiting\";\n\treturn \"runtime_coordinator.head_publication_intent_ready\";\n}\nfunction resolveRuntimeCoordinatorCreationRootCause(trace) {\n\tif (trace.runtimeCoordinatorExecution || trace.runtimeCoordinatorHeadLifecycle?.readStatus === \"found\" || trace.runtimeCoordinatorHeadLifecycle?.readStatus === \"authority_unavailable\" || trace.runtimeCoordinatorCreationDiagnostics.length === 0) return null;\n\treturn {\n\t\treasonCode: trace.runtimeCoordinatorCreationDiagnostics.at(-1)?.reasonCode ?? \"runtime_coordinator.execution_not_created\",\n\t\tsource: \"runtime_coordinator\"\n\t};\n}\nconst PRE_EXECUTION_NO_EXECUTION_EVIDENCE_REASON_CODES = /* @__PURE__ */ new Set([\"local_service.identity_mismatch\"]);\nfunction resolvePreExecutionNoExecutionEvidenceRootCause(trace) {\n\tconst headLifecycle = trace.runtimeCoordinatorHeadLifecycle;\n\tif (trace.runtimeCoordinatorExecution || headLifecycle?.readStatus !== \"found\" || headLifecycle.runtimeCoordinatorExecutionId || headLifecycle.waitingBoundary) return null;\n\tconst authoritativeHeadReason = headLifecycle.noExecutionDecision?.reasonCode ?? headLifecycle.publicationIntent?.reasonCode ?? null;\n\treturn authoritativeHeadReason && PRE_EXECUTION_NO_EXECUTION_EVIDENCE_REASON_CODES.has(authoritativeHeadReason) ? authoritativeHeadReason : null;\n}\nfunction resolveRuntimeCoordinatorExecutionRootCause(trace) {\n\tconst execution = trace.runtimeCoordinatorExecution;\n\tif (!execution) return null;\n\tswitch (execution.status) {\n\t\tcase \"failed_retryable\":\n\t\tcase \"failed_terminal\": return {\n\t\t\treasonCode: execution.terminalOutcome?.reasonCode ?? `runtime_coordinator.${execution.status}`,\n\t\t\tsource: \"runtime_coordinator\"\n\t\t};\n\t\tcase \"reply_published\":\n\t\tcase \"cancelled\": return null;\n\t\tcase \"state_unknown\": return {\n\t\t\treasonCode: \"runtime_coordinator.state_unknown\",\n\t\t\tsource: \"runtime_coordinator\"\n\t\t};\n\t\tdefault: return {\n\t\t\treasonCode: `runtime_coordinator.${execution.status}`,\n\t\t\tsource: \"runtime_coordinator\"\n\t\t};\n\t}\n}\nfunction resolveLatestAttemptErrorRootCause(trace) {\n\tif (!trace.latestAttempt?.errorCode) return null;\n\treturn {\n\t\treasonCode: resolveAttemptErrorRootCause(trace.latestAttempt.errorCode) ?? trace.latestAttempt.errorCode,\n\t\tsource: \"latest_attempt\"\n\t};\n}\nfunction resolveAttemptErrorRootCause(errorCode) {\n\tswitch (errorCode) {\n\t\tcase \"daemon.delivery.execution_stalled\": return \"runtime.progress_stale\";\n\t\tcase \"timeout\":\n\t\tcase \"timed_out_no_output\":\n\t\tcase \"timed_out_after_output\": return \"local_adapter.timeout\";\n\t\tcase \"daemon.delivery.timeout\":\n\t\tcase \"daemon.delivery.finalization_timeout\": return \"delivery.result_timeout\";\n\t\tcase \"daemon.delivery.start_timeout\": return \"delivery.start_timeout\";\n\t\tcase \"core.transport_restarting\": return \"runtime_transport.restarting\";\n\t\tdefault: return null;\n\t}\n}\nfunction hasRuntimeCoordinatorPreResultAuthority(trace) {\n\tswitch (trace.runtimeCoordinatorExecution?.status) {\n\t\tcase \"created\":\n\t\tcase \"delivery_pending\":\n\t\tcase \"delivery_accepted\":\n\t\tcase \"cancellation_requested\":\n\t\tcase \"accepted_local\":\n\t\tcase \"running\":\n\t\tcase \"completed_local\": return true;\n\t\tdefault: return false;\n\t}\n}\nfunction resolveRuntimeCoordinatorPublicationUnresolvedBlocker(trace) {\n\tconst event = trace.runtimeCoordinatorEvents.filter((candidate) => candidate.eventType === \"runtime_coordinator_decision_recorded\" && candidate.reasonCode === RUNTIME_COORDINATOR_PUBLICATION_UNRESOLVED_REASON_CODE).at(-1);\n\tif (!event) return null;\n\tconst payload = parseRuntimeCoordinatorEventPayload(event);\n\tif (readPayloadString(payload, \"status\") !== \"unresolved_publication_failure\") return null;\n\tconst publicationKind = readPayloadString(payload, \"publicationKind\");\n\tlet parsedPublicationKind = \"success_reply\";\n\tif (publicationKind === \"failure_notice\") parsedPublicationKind = \"failure_notice\";\n\telse if (publicationKind === \"stopped_notice\") parsedPublicationKind = \"stopped_notice\";\n\treturn {\n\t\tpublicationKind: parsedPublicationKind,\n\t\treasonCode: readPayloadString(payload, \"reasonCode\"),\n\t\tstatus: \"unresolved_publication_failure\"\n\t};\n}\nfunction parseRuntimeCoordinatorEventPayload(event) {\n\ttry {\n\t\tconst parsed = JSON.parse(event.payloadJson);\n\t\treturn parsed && typeof parsed === \"object\" && !Array.isArray(parsed) ? parsed : null;\n\t} catch {\n\t\treturn null;\n\t}\n}\nfunction readPayloadString(payload, fieldName) {\n\tconst value = payload?.[fieldName];\n\treturn typeof value === \"string\" && value.trim().length > 0 ? value.trim() : null;\n}\nfunction readPayloadObject(payload, fieldName) {\n\tconst value = payload?.[fieldName];\n\treturn value && typeof value === \"object\" && !Array.isArray(value) ? value : null;\n}\nfunction isPublicationFailureReasonCode(reasonCode) {\n\treturn Boolean(reasonCode && (reasonCode.includes(\"publication\") || reasonCode.includes(\"finalization\") || reasonCode.includes(\"space.signal\")));\n}\nfunction assertNever(value) {\n\tthrow new Error(`Unexpected space dispatch trace value: ${String(value)}`);\n}\nfunction expectRuntimeCoordinatorHeadLifecycleTraceEvidence(context, value) {\n\tconst headLifecycle = value.trace.runtimeCoordinatorHeadLifecycle;\n\tif (headLifecycle?.readStatus !== \"found\") return;\n\texpectTraceEvidence(context, headLifecycle.targetWakeLifecycleIdentity.spaceId, value.query.spaceId, [\"trace\", \"runtimeCoordinatorHeadLifecycle\"], \"trace.runtimeCoordinatorHeadLifecycle.spaceId must match query.spaceId\");\n\texpectTraceEvidence(context, headLifecycle.targetWakeLifecycleIdentity.sourceSignalId, value.trace.dispatch.sourceEventId, [\"trace\", \"runtimeCoordinatorHeadLifecycle\"], \"trace.runtimeCoordinatorHeadLifecycle.sourceSignalId must match trace.dispatch.sourceEventId\");\n\texpectTraceEvidence(context, headLifecycle.targetWakeLifecycleIdentity.targetProfileId, value.trace.dispatch.targetProfileId, [\"trace\", \"runtimeCoordinatorHeadLifecycle\"], \"trace.runtimeCoordinatorHeadLifecycle.targetProfileId must match trace.dispatch.targetProfileId\");\n\tif (headLifecycle.runtimeCoordinatorExecutionId === null) return;\n\texpectTraceEvidence(context, headLifecycle.runtimeCoordinatorExecutionId, value.trace.runtimeCoordinatorExecution?.runtimeCoordinatorExecutionId ?? null, [\"trace\", \"runtimeCoordinatorHeadLifecycle\"], \"trace.runtimeCoordinatorHeadLifecycle.runtimeCoordinatorExecutionId must match trace.runtimeCoordinatorExecution\");\n}\nfunction expectNativeDeliveryTraceEvidence(context, value) {\n\tconst nativeDelivery = value.trace.nativeDelivery;\n\tif (!nativeDelivery) return;\n\texpectTraceEvidence(context, nativeDelivery.dispatchId, value.trace.dispatch.dispatchId, [\n\t\t\"trace\",\n\t\t\"nativeDelivery\",\n\t\t\"dispatchId\"\n\t], \"trace.nativeDelivery.dispatchId must match trace.dispatch.dispatchId\");\n\texpectTraceEvidence(context, nativeDelivery.destination.spaceId, value.query.spaceId, [\n\t\t\"trace\",\n\t\t\"nativeDelivery\",\n\t\t\"destination\",\n\t\t\"spaceId\"\n\t], \"trace.nativeDelivery.destination.spaceId must match query.spaceId\");\n\texpectTraceEvidence(context, nativeDelivery.destination.targetProfileId, value.trace.dispatch.targetProfileId, [\n\t\t\"trace\",\n\t\t\"nativeDelivery\",\n\t\t\"destination\",\n\t\t\"targetProfileId\"\n\t], \"trace.nativeDelivery.destination.targetProfileId must match trace.dispatch.targetProfileId\");\n}\nfunction expectFinalVisibleMessageTraceEvidence(context, trace) {\n\tif (!trace.finalVisibleMessage) return;\n\texpectTraceEvidence(context, trace.finalVisibleMessage.dispatchId, trace.dispatch.dispatchId, [\n\t\t\"trace\",\n\t\t\"finalVisibleMessage\",\n\t\t\"dispatchId\"\n\t], \"trace.finalVisibleMessage.dispatchId must match trace.dispatch.dispatchId\");\n\texpectTraceEvidence(context, trace.finalVisibleMessage.targetProfileId, trace.dispatch.targetProfileId, [\n\t\t\"trace\",\n\t\t\"finalVisibleMessage\",\n\t\t\"targetProfileId\"\n\t], \"trace.finalVisibleMessage.targetProfileId must match trace.dispatch.targetProfileId\");\n\tconst finalVisibleSignalCandidates = listSpaceDispatchTraceFinalVisibleSignalCandidates(trace);\n\tif (trace.finalVisibleMessage.factSource !== \"space_signal_by_published_signal_id\" || finalVisibleSignalCandidates.length === 0) return;\n\tif (!finalVisibleSignalCandidates.includes(trace.finalVisibleMessage.signalId)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"trace.finalVisibleMessage.signalId must match a canonical final visible publication signal\",\n\t\tpath: [\n\t\t\t\"trace\",\n\t\t\t\"finalVisibleMessage\",\n\t\t\t\"signalId\"\n\t\t]\n\t});\n}\nfunction expectTraceEvidence(context, actual, expected, path, message) {\n\tif (actual !== expected) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage,\n\t\tpath\n\t});\n}\nfunction expectNullTraceEvidence(context, actual, path) {\n\texpectTraceEvidence(context, actual, null, path, \"not-found trace correlation must not include resolved trace evidence\");\n}\n//#endregion\nexport { SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, listSpaceDispatchTraceFinalVisibleSignalCandidates, projectSpaceDispatchTraceFinalVisibleOutcome, projectSpaceDispatchTraceRootCause, resolveSpaceDispatchTraceRootCause, spaceDispatchTraceAttemptStatusSchema, spaceDispatchTraceClaimLeaseSchema, spaceDispatchTraceDispatchExecutionSchema, spaceDispatchTraceDispatchSchema, spaceDispatchTraceDispatchStatusSchema, spaceDispatchTraceExecutionIdentitySchema, spaceDispatchTraceExecutionSchema, spaceDispatchTraceFinalVisibleMessageFactSourceSchema, spaceDispatchTraceFinalVisibleMessageLinkageSchema, spaceDispatchTraceFinalVisibleMessageLinkageSourceFactSchema, spaceDispatchTraceFinalVisibleMessageLinkageStatusSchema, spaceDispatchTraceFinalVisibleMessageSchema, spaceDispatchTraceFinalVisibleOutcomePublicationKindSchema, spaceDispatchTraceFinalVisibleOutcomeSchema, spaceDispatchTraceFinalVisibleOutcomeSourceFactSchema, spaceDispatchTraceFinalVisibleOutcomeStatusSchema, spaceDispatchTraceLatestAttemptSchema, spaceDispatchTraceNativeDeliverySchema, spaceDispatchTraceOpenClawBindingSchema, spaceDispatchTraceOpenClawGatewayVisibilitySchema, spaceDispatchTraceOpsDecisionSchema, spaceDispatchTraceOriginSchema, spaceDispatchTracePromptSchema, spaceDispatchTraceQuerySchema, spaceDispatchTraceReplySignalSchema, spaceDispatchTraceResponseSchema, spaceDispatchTraceResultInboxPublishStateSchema, spaceDispatchTraceResultInboxSchema, spaceDispatchTraceResultSchema, spaceDispatchTraceRuntimeCoordinatorCreationDiagnosticSchema, spaceDispatchTraceRuntimeCoordinatorEventSchema, spaceDispatchTraceRuntimeCoordinatorExecutionSchema, spaceDispatchTraceRuntimeCoordinatorHeadLifecycleSchema, spaceDispatchTraceRuntimeSchema, spaceDispatchTraceSnapshotSchema, spaceDispatchTraceStreamingSchema, spaceDispatchTraceStructuredActionFailureSchema };\n\n//# sourceMappingURL=space-dispatch-trace.js.map","import { agentControllerRefSchema } from \"../daemon/agent-controller-ref.js\";\nimport { computerSetupModeSchema } from \"../../navigation-action.js\";\n \nimport { MAX_TEXT_LENGTH } from \"../protocol/constants.js\";\nimport { agentProfileIdSchema, openMeldRuntimeProfileIdSchema, profileSchema, profileWorkingDirectorySchema, profileWorkspaceModeSchema } from \"../protocol/profile.js\";\nimport { openMeldRequestContextSchema } from \"../daemon/profile-identity.js\";\nimport { spacePasswordSchema } from \"./space-password.js\";\nimport { spaceThreadContextSchema } from \"../space-mesh/space-thread.js\";\nimport { agentTaskCompletionConditionSchema, agentTaskCompletionObservationSchema, agentTaskHandleSchema, agentTaskTerminalOutcomeSchema, controllerAgentTaskHandleSchema, spaceWakeAgentTaskHandleSchema } from \"../runtime/agent-task-coordination.js\";\nimport { agentProfileBindingAgentControllerCollaborationModeSchema, agentProfileBindingAgentControllerPermissionModeSchema, agentProfileBindingOpenCodePermissionSchema, ensureAgentProfilePrimaryBindingResponseSchema } from \"./agent-profile-binding.js\";\nimport { prepareReadinessRuntimeIdSchema } from \"./prepare-readiness.js\";\nimport { getAgentExecutionReadinessResponseSchema } from \"./agent-execution-readiness.js\";\nimport { postSpaceMembersResponseSchema, removeSpaceMembersResponseSchema } from \"./space-members.js\";\nimport { centerAgentToolSpeakerSchema } from \"./center-agent-speaker.js\";\nimport { authProfileViewSchema } from \"./profiles.js\";\nimport { spaceAccessModeSchema, spaceAccessModeStateSchema } from \"./space-access-mode.js\";\nimport { spaceMetaSchema } from \"./space-meta.js\";\nimport { signalEnvelopeSchema, signalTextEnvelopeSchema } from \"../protocol/envelope.js\";\nimport { centerAgentModelChoiceSchema, centerAgentModelPreferenceSchema, centerAgentModelSummarySchema } from \"../runtime/center-agent-model.js\";\nimport { remoteAgentSlackSearchAuthorizationSchema } from \"../runtime/remote-agent-turn-envelope.js\";\nimport { connectorConnectionNameSchema, connectorConnectionScopeSchema, connectorServiceSchema } from \"./connector-connections.js\";\nimport { setCurrentAgentProfileWorkspaceResponseSchema } from \"./local-runtimes.js\";\nimport { agentControllerTaskLifecycleEventSourceSchema } from \"./runtime-reporting.js\";\nimport { spaceBootstrapResponseSchema } from \"./space-bootstrap.js\";\nimport { createSpaceBodySchema } from \"./space-create.js\";\nimport { spaceDispatchTraceAttemptStatusSchema, spaceDispatchTraceDispatchStatusSchema } from \"./space-dispatch-trace.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/center-agent.ts\nconst ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });\nconst trimmedNonEmptyStringSchema = z.string().trim().min(1);\nconst nullableTrimmedStringSchema = z.union([trimmedNonEmptyStringSchema, z.null()]);\nconst nullableIsoDateTimeSchema = z.union([ISO_DATE_TIME_SCHEMA, z.null()]);\nconst nullableDiagnosticTextSchema = z.union([trimmedNonEmptyStringSchema.max(512), z.null()]);\nconst CENTER_AGENT_REFERENCE_OVERLAP_MESSAGE = \"A profile cannot be both a Wake target and a Reference target.\";\nfunction findCenterAgentReferenceOverlapIndex(input) {\n\tconst executableProfileIds = new Set(input.activationTargets);\n\tif (input.fallbackAgentProfileId) executableProfileIds.add(input.fallbackAgentProfileId);\n\treturn input.referenceTargets?.findIndex((profileId) => executableProfileIds.has(profileId));\n}\nconst centerAgentActionSchema = z.enum([\n\t\"create_space\",\n\t\"create_agent_profile\",\n\t\"enable_agent_profile\",\n\t\"invite_member\",\n\t\"carry_over_binding_authorization\",\n\t\"designate_remote_center_agent\",\n\t\"authorize_remote_center_agent_binding\",\n\t\"revoke_center_agent\",\n\t\"pause_center_agent\",\n\t\"resume_center_agent\",\n\t\"connect_slack_workspace\",\n\t\"move_slack_workspace\",\n\t\"disconnect_slack_workspace\",\n\t\"start_shared_app_authorization\",\n\t\"disconnect_shared_app\",\n\t\"add_members_to_space\",\n\t\"add_agent_profiles_to_space\",\n\t\"post_slack_channel_message\",\n\t\"list_slack_channels\",\n\t\"read_slack_channel_members\",\n\t\"read_slack_channel_history\",\n\t\"search_slack_messages\",\n\t\"post_space_message\",\n\t\"remove_agent_profiles_from_space\",\n\t\"read_org_directory\",\n\t\"read_member_openmeld_service_status\",\n\t\"read_slack_workspace_directory\",\n\t\"read_org_documents\",\n\t\"read_org_skills\",\n\t\"preview_org_skill\",\n\t\"install_org_skill\",\n\t\"create_org_document_folder\",\n\t\"rename_org_document_folder\",\n\t\"move_org_document\",\n\t\"save_org_document\",\n\t\"read_org_space_directory\",\n\t\"read_space_context\",\n\t\"read_dispatch_history\",\n\t\"read_projects\",\n\t\"create_project\",\n\t\"update_project\",\n\t\"set_agent_profile_default_project\",\n\t\"prepare_remove_project\",\n\t\"remove_project\",\n\t\"update_space_settings\",\n\t\"wake_agent_profiles_in_space\",\n\t\"read_agent_tasks\",\n\t\"watch_agent_task\",\n\t\"draft_org_document\",\n\t\"research_member\",\n\t\"execute_connector_action\",\n\t\"complete_connector_action\",\n\t\"fail_connector_action\",\n\t\"record_connector_action_outcome_unknown\",\n\t\"receive_local_agent_request\",\n\t\"read_center_agent_context\",\n\t\"load_center_agent_context\",\n\t\"create_routine\",\n\t\"update_routine\",\n\t\"pause_routine\",\n\t\"resume_routine\",\n\t\"delete_routine\"\n]);\nconst centerAgentConnectorActionAuditOutcomeSchema = z.enum([\n\t\"attempted\",\n\t\"completed\",\n\t\"failed\",\n\t\"outcome_unknown\"\n]);\nconst centerAgentRecordConnectorActionAuditBodySchema = z.strictObject({\n\tactionId: trimmedNonEmptyStringSchema.max(160),\n\toperationId: trimmedNonEmptyStringSchema.max(256),\n\toutcome: centerAgentConnectorActionAuditOutcomeSchema,\n\tservice: connectorServiceSchema,\n\tspeakerMember: centerAgentToolSpeakerSchema\n});\nconst centerAgentResourceSchema = z.strictObject({\n\ttype: trimmedNonEmptyStringSchema,\n\tid: trimmedNonEmptyStringSchema\n});\nconst centerAgentOnBehalfOfInputSchema = z.strictObject({ profileId: openMeldRuntimeProfileIdSchema });\nconst centerAgentAttributionSchema = z.strictObject({\n\tactorProfileId: agentProfileIdSchema,\n\tonBehalfOf: z.strictObject({\n\t\tprofileId: openMeldRuntimeProfileIdSchema,\n\t\tuserId: nullableTrimmedStringSchema,\n\t\tdisplayName: trimmedNonEmptyStringSchema\n\t}).nullable()\n});\nconst centerAgentRecordConnectorActionAuditResponseSchema = z.strictObject({\n\tattribution: centerAgentAttributionSchema,\n\trecorded: z.literal(true)\n});\nconst centerAgentConnectorActionOperationStatusSchema = z.enum([\n\t\"pending\",\n\t\"completed\",\n\t\"failed\",\n\t\"outcome_unknown\"\n]);\nconst centerAgentConnectorActionExecutionConnectionSchema = z.strictObject({\n\tconnectionName: connectorConnectionNameSchema,\n\townerDisplayName: trimmedNonEmptyStringSchema,\n\townerUserId: trimmedNonEmptyStringSchema,\n\tscope: connectorConnectionScopeSchema,\n\tservice: connectorServiceSchema\n});\nconst centerAgentReadConnectorActionOperationBodySchema = z.strictObject({\n\tactionId: trimmedNonEmptyStringSchema.max(160),\n\toperationId: trimmedNonEmptyStringSchema.max(256),\n\tservice: connectorServiceSchema,\n\tspeakerMember: centerAgentToolSpeakerSchema\n});\nconst centerAgentConnectorActionOperationSchema = z.strictObject({\n\tactionId: trimmedNonEmptyStringSchema.max(160),\n\tconnectionName: connectorConnectionNameSchema,\n\texecutionConnection: centerAgentConnectorActionExecutionConnectionSchema.nullable().optional(),\n\toperationId: trimmedNonEmptyStringSchema.max(256),\n\tservice: connectorServiceSchema,\n\tstatus: centerAgentConnectorActionOperationStatusSchema\n}).superRefine((value, context) => {\n\tif (value.executionConnection && (value.executionConnection.connectionName !== value.connectionName || value.executionConnection.service !== value.service)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"executionConnection must match the connector action operation.\",\n\t\tpath: [\"executionConnection\"]\n\t});\n});\nconst centerAgentReadConnectorActionOperationResponseSchema = z.strictObject({ operation: centerAgentConnectorActionOperationSchema.nullable() });\nconst centerAgentRecordConnectorActionOperationBodySchema = z.strictObject({\n\tactionId: trimmedNonEmptyStringSchema.max(160),\n\tconnectionName: connectorConnectionNameSchema,\n\toperationId: trimmedNonEmptyStringSchema.max(256),\n\toutcome: centerAgentConnectorActionAuditOutcomeSchema,\n\tproviderExecutionId: nullableTrimmedStringSchema,\n\trequestSignature: z.string().regex(/^[0-9a-f]{64}$/),\n\tservice: connectorServiceSchema,\n\tspeakerMember: centerAgentToolSpeakerSchema\n}).superRefine((value, context) => {\n\tif (value.outcome === \"attempted\" && value.providerExecutionId !== null) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"providerExecutionId must be null while claiming a connector action operation.\",\n\t\tpath: [\"providerExecutionId\"]\n\t});\n});\nconst centerAgentRecordConnectorActionOperationResponseSchema = z.strictObject({\n\tattribution: centerAgentAttributionSchema,\n\texecutionConnection: centerAgentConnectorActionExecutionConnectionSchema.nullable().optional(),\n\toperationId: trimmedNonEmptyStringSchema.max(256),\n\tproviderExecutionId: nullableTrimmedStringSchema,\n\trecorded: z.literal(true),\n\treplayed: z.boolean(),\n\tstatus: centerAgentConnectorActionOperationStatusSchema\n});\nconst centerAgentDesignationSchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tagentProfileId: agentProfileIdSchema,\n\tduty: z.null(),\n\tdesignatedBy: trimmedNonEmptyStringSchema,\n\tcreatedAt: ISO_DATE_TIME_SCHEMA\n});\nconst centerAgentModelConfigurationResponseSchema = z.strictObject({\n\tcanManage: z.boolean(),\n\tchoices: z.array(centerAgentModelChoiceSchema).min(1),\n\tconfigurationRevision: z.number().int().nonnegative(),\n\teffectiveModel: centerAgentModelSummarySchema,\n\torganizationId: trimmedNonEmptyStringSchema,\n\tpreference: centerAgentModelPreferenceSchema\n});\nconst updateCenterAgentModelBodySchema = z.strictObject({\n\texpectedConfigurationRevision: z.number().int().nonnegative(),\n\tpreference: centerAgentModelPreferenceSchema\n});\nconst updateCenterAgentModelResponseSchema = centerAgentModelConfigurationResponseSchema.extend({ changed: z.boolean() });\nconst centerAgentRemoteRuntimeAvailabilityReasonCodeSchema = z.enum([\n\t\"remote_runtime_disabled\",\n\t\"organization_blocked\",\n\t\"remote_runtime_policy_unavailable\"\n]);\nconst centerAgentRemoteRuntimeAvailabilitySchema = z.strictObject({\n\tselectable: z.boolean(),\n\treasonCode: centerAgentRemoteRuntimeAvailabilityReasonCodeSchema.optional()\n});\nconst centerAgentSlackWorkspaceConnectionSchema = z.strictObject({\n\tconnected: z.boolean(),\n\tslackTeamId: nullableTrimmedStringSchema,\n\tworkspaceName: nullableTrimmedStringSchema\n});\nconst getCenterAgentDesignationResponseSchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tdesignation: centerAgentDesignationSchema.nullable(),\n\tremoteRuntimeAvailability: centerAgentRemoteRuntimeAvailabilitySchema.optional(),\n\tslackConnection: centerAgentSlackWorkspaceConnectionSchema.optional()\n});\nconst centerAgentSlackWorkspaceConnectBodySchema = z.strictObject({ slackTeamId: trimmedNonEmptyStringSchema });\nconst centerAgentSlackWorkspaceConnectionResponseSchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tslackConnection: centerAgentSlackWorkspaceConnectionSchema\n});\nconst centerAgentSlackWorkspaceDisconnectResponseSchema = z.strictObject({\n\tdisconnected: z.boolean(),\n\torganizationId: trimmedNonEmptyStringSchema,\n\tslackConnection: centerAgentSlackWorkspaceConnectionSchema\n});\nconst slackIdentityLinkTokenSchema = z.string().trim().regex(/^slacklink_[0-9a-f]{64}$/);\nconst slackIdentityLinkPreviewBodySchema = z.strictObject({ token: slackIdentityLinkTokenSchema });\nconst slackIdentityLinkPreviewResponseSchema = z.strictObject({\n\talreadyMember: z.boolean().default(true),\n\tcontinuesRequest: z.boolean().default(true),\n\texpiresAt: ISO_DATE_TIME_SCHEMA,\n\torganizationId: trimmedNonEmptyStringSchema,\n\torganizationName: trimmedNonEmptyStringSchema,\n\tslackDisplayName: trimmedNonEmptyStringSchema,\n\tslackTeamId: trimmedNonEmptyStringSchema,\n\tslackUserId: trimmedNonEmptyStringSchema,\n\tslackWorkspaceLabel: trimmedNonEmptyStringSchema,\n\topenMeldAccountEmail: trimmedNonEmptyStringSchema\n});\nconst slackIdentityLinkConsumeBodySchema = z.strictObject({ token: slackIdentityLinkTokenSchema });\nconst slackIdentityLinkConsumeResponseSchema = z.strictObject({\n\tcontinuationRetryable: z.boolean().default(false),\n\tcontinued: z.boolean().default(false),\n\tjoinedOrganization: z.boolean().default(false),\n\tlinked: z.literal(true),\n\torganizationId: trimmedNonEmptyStringSchema,\n\torganizationName: trimmedNonEmptyStringSchema,\n\tslackDisplayName: trimmedNonEmptyStringSchema,\n\tslackTeamId: trimmedNonEmptyStringSchema,\n\tslackUserId: trimmedNonEmptyStringSchema,\n\topenMeldUserId: trimmedNonEmptyStringSchema\n});\nconst ensureSlackWorkspaceMemberOrganizationMembershipRpcInputSchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tuserId: trimmedNonEmptyStringSchema\n});\nconst ensureSlackWorkspaceMemberOrganizationMembershipRpcResponseSchema = z.discriminatedUnion(\"ok\", [z.strictObject({\n\talreadyMember: z.boolean(),\n\tok: z.literal(true),\n\torganizationId: trimmedNonEmptyStringSchema,\n\torganizationName: trimmedNonEmptyStringSchema,\n\torganizationSlug: trimmedNonEmptyStringSchema,\n\trole: z.enum([\n\t\t\"owner\",\n\t\t\"admin\",\n\t\t\"member\"\n\t])\n}), z.strictObject({\n\tcode: z.enum([\n\t\t\"slack.workspace_member_enrollment.account_unavailable\",\n\t\t\"slack.workspace_member_enrollment.invalid_input\",\n\t\t\"slack.workspace_member_enrollment.email_verification_required\",\n\t\t\"slack.workspace_member_enrollment.organization_inactive\",\n\t\t\"slack.workspace_member_enrollment.personal_organization\"\n\t]),\n\tmessage: trimmedNonEmptyStringSchema,\n\tok: z.literal(false)\n})]);\nconst ensureMessageChannelMemberOrganizationMembershipRpcInputSchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tprovider: z.enum([\n\t\t\"feishu\",\n\t\t\"lark\",\n\t\t\"slack\"\n\t]),\n\tuserId: trimmedNonEmptyStringSchema\n});\nconst ensureMessageChannelMemberOrganizationMembershipRpcResponseSchema = z.discriminatedUnion(\"ok\", [z.strictObject({\n\talreadyMember: z.boolean(),\n\tok: z.literal(true),\n\torganizationId: trimmedNonEmptyStringSchema,\n\torganizationName: trimmedNonEmptyStringSchema,\n\torganizationSlug: trimmedNonEmptyStringSchema,\n\trole: z.enum([\n\t\t\"owner\",\n\t\t\"admin\",\n\t\t\"member\"\n\t])\n}), z.strictObject({\n\tcode: z.enum([\n\t\t\"message_channel.member_enrollment.account_unavailable\",\n\t\t\"message_channel.member_enrollment.email_verification_required\",\n\t\t\"message_channel.member_enrollment.invalid_input\",\n\t\t\"message_channel.member_enrollment.organization_inactive\",\n\t\t\"message_channel.member_enrollment.personal_organization\"\n\t]),\n\tmessage: trimmedNonEmptyStringSchema,\n\tok: z.literal(false)\n})]);\nconst designateCenterAgentBodySchema = z.strictObject({\n\tagentProfileId: agentProfileIdSchema.optional(),\n\truntime: z.enum([\"self_hosted\", \"remote_agent\"]).default(\"self_hosted\")\n});\nconst designateCenterAgentResponseSchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tdesignation: centerAgentDesignationSchema,\n\tstatus: z.enum([\n\t\t\"designated\",\n\t\t\"replaced\",\n\t\t\"unchanged\"\n\t])\n});\nconst centerAgentOperatingStateSchema = z.enum([\"active\", \"paused\"]);\nconst getCenterAgentOperatingStateResponseSchema = z.strictObject({\n\tcanChangeOperatingState: z.boolean(),\n\toperatingState: centerAgentOperatingStateSchema,\n\torganizationId: trimmedNonEmptyStringSchema,\n\tpausedAt: nullableIsoDateTimeSchema\n});\nconst updateCenterAgentOperatingStateBodySchema = z.strictObject({ operatingState: centerAgentOperatingStateSchema });\nconst updateCenterAgentOperatingStateResponseSchema = getCenterAgentOperatingStateResponseSchema.extend({\n\taffectedTaskCount: z.number().int().nonnegative(),\n\tchanged: z.boolean()\n});\nconst centerAgentUpdateProfileBodySchema = z.strictObject({ profileName: trimmedNonEmptyStringSchema });\nconst centerAgentUpdateProfileResponseSchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tprofile: authProfileViewSchema\n});\nconst centerAgentAuditJournalEntrySchema = z.strictObject({\n\tid: trimmedNonEmptyStringSchema,\n\torganizationId: trimmedNonEmptyStringSchema,\n\tactorProfileId: openMeldRuntimeProfileIdSchema,\n\taction: centerAgentActionSchema,\n\tonBehalfOf: z.strictObject({\n\t\tprofileId: openMeldRuntimeProfileIdSchema,\n\t\tuserId: nullableTrimmedStringSchema,\n\t\tdisplayName: trimmedNonEmptyStringSchema\n\t}).nullable(),\n\tinteractionSource: z.strictObject({\n\t\tclient: trimmedNonEmptyStringSchema.max(80),\n\t\tkind: z.literal(\"local_agent\")\n\t}).optional(),\n\tcontextManifest: z.strictObject({\n\t\testimatedTokens: z.number().int().nonnegative(),\n\t\tincludedMessages: z.number().int().nonnegative(),\n\t\ttruncated: z.boolean()\n\t}).optional(),\n\tcontextLoad: z.strictObject({\n\t\testimatedTokens: z.number().int().nonnegative(),\n\t\tincludedMessages: z.number().int().min(1).max(50),\n\t\tmanifestId: trimmedNonEmptyStringSchema\n\t}).optional(),\n\tresource: centerAgentResourceSchema.nullable(),\n\tcreatedAt: ISO_DATE_TIME_SCHEMA\n});\nconst listCenterAgentAuditJournalQuerySchema = z.strictObject({\n\tactionSet: z.enum([\n\t\t\"v2\",\n\t\t\"v3\",\n\t\t\"v4\",\n\t\t\"v5\",\n\t\t\"v6\",\n\t\t\"v7\",\n\t\t\"v8\",\n\t\t\"v9\",\n\t\t\"v10\",\n\t\t\"v11\",\n\t\t\"v12\",\n\t\t\"v13\",\n\t\t\"v14\",\n\t\t\"v15\",\n\t\t\"v16\",\n\t\t\"v17\"\n\t]).optional(),\n\tlimit: z.coerce.number().int().min(1).max(200).optional()\n});\nconst listCenterAgentAuditJournalResponseSchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tentries: z.array(centerAgentAuditJournalEntrySchema)\n});\nconst centerAgentCreateSpaceBodySchema = z.strictObject({\n\tname: z.unknown().optional(),\n\tpurpose: z.unknown().optional(),\n\tguide: z.unknown().optional(),\n\tvisibility: z.unknown().optional(),\n\taccessMode: z.unknown().optional(),\n\tpassword: z.unknown().optional(),\n\tonBehalfOf: centerAgentOnBehalfOfInputSchema.optional()\n}).transform((value, ctx) => {\n\tconst { onBehalfOf, ...spaceBody } = value;\n\tconst parsedSpaceBody = createSpaceBodySchema.safeParse(spaceBody);\n\tif (!parsedSpaceBody.success) {\n\t\tctx.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: parsedSpaceBody.error.issues[0]?.message ?? \"Invalid Center Agent Space payload\"\n\t\t});\n\t\treturn z.NEVER;\n\t}\n\treturn {\n\t\t...parsedSpaceBody.data,\n\t\t...onBehalfOf === void 0 ? {} : { onBehalfOf }\n\t};\n});\nconst centerAgentCreateAgentProfileBodySchema = z.strictObject({\n\tprofileName: trimmedNonEmptyStringSchema,\n\tonBehalfOf: centerAgentOnBehalfOfInputSchema.optional()\n});\nconst centerAgentEnableAgentProfileBodySchema = z.strictObject({ onBehalfOf: centerAgentOnBehalfOfInputSchema.optional() });\nconst centerAgentAddAgentProfilesToSpaceBodySchema = z.strictObject({\n\tagentProfileIds: z.array(agentProfileIdSchema).min(1).max(100),\n\tonBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),\n\tpassword: trimmedNonEmptyStringSchema.optional(),\n\tspaceId: trimmedNonEmptyStringSchema\n});\nconst centerAgentAddMembersToSpaceBodySchema = z.strictObject({\n\tmemberUserIds: z.array(trimmedNonEmptyStringSchema).min(1).max(100),\n\tspaceId: trimmedNonEmptyStringSchema,\n\tspeakerMember: centerAgentToolSpeakerSchema\n});\nconst centerAgentRemoveAgentProfilesFromSpaceBodySchema = z.strictObject({\n\tagentProfileIds: z.array(agentProfileIdSchema).min(1).max(100),\n\tonBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),\n\tspaceId: trimmedNonEmptyStringSchema\n});\nconst centerAgentSpaceContextScopeSchema = z.enum([\n\t\"source\",\n\t\"thread\",\n\t\"delta\",\n\t\"history\"\n]);\nconst centerAgentSpaceContextAnchorByScope = {\n\tdelta: \"afterSignalId\",\n\thistory: null,\n\tsource: \"sourceSignalId\",\n\tthread: \"threadId\"\n};\nconst centerAgentReadSpaceContextBodySchema = z.strictObject({\n\tafterSignalId: trimmedNonEmptyStringSchema.optional(),\n\tlimit: z.number().int().min(1).max(100).optional(),\n\tscope: centerAgentSpaceContextScopeSchema.optional(),\n\tsourceSignalId: trimmedNonEmptyStringSchema.optional(),\n\tspaceId: trimmedNonEmptyStringSchema,\n\tthreadId: trimmedNonEmptyStringSchema.optional()\n}).superRefine((value, context) => {\n\tconst requiredAnchor = value.scope ? centerAgentSpaceContextAnchorByScope[value.scope] : null;\n\tif (requiredAnchor && !value[requiredAnchor]) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: `${requiredAnchor} is required for ${value.scope} context.`,\n\t\tpath: [requiredAnchor]\n\t});\n\tfor (const anchor of [\n\t\t\"sourceSignalId\",\n\t\t\"threadId\",\n\t\t\"afterSignalId\"\n\t]) if (value[anchor] && anchor !== requiredAnchor) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: `${anchor} is not valid for ${value.scope ?? \"legacy\"} context.`,\n\t\tpath: [anchor]\n\t});\n});\nconst centerAgentReadDispatchHistoryBodySchema = z.strictObject({\n\tdispatchId: trimmedNonEmptyStringSchema.optional(),\n\tlimit: z.number().int().min(1).max(20).optional(),\n\tspaceId: trimmedNonEmptyStringSchema,\n\ttargetProfileId: trimmedNonEmptyStringSchema.optional()\n});\nconst centerAgentPostSpaceMessageBodySchema = z.strictObject({\n\tonBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),\n\treferenceProfileIds: z.array(openMeldRuntimeProfileIdSchema).max(25).optional(),\n\tspaceId: trimmedNonEmptyStringSchema,\n\ttext: z.string().trim().min(1).max(MAX_TEXT_LENGTH)\n});\nconst centerAgentPublicationSourceSchema = z.discriminatedUnion(\"kind\", [\n\tz.strictObject({\n\t\tdocumentId: trimmedNonEmptyStringSchema.max(256),\n\t\tkind: z.literal(\"organization_document\")\n\t}),\n\tz.strictObject({\n\t\texecutionId: trimmedNonEmptyStringSchema.max(512),\n\t\tkind: z.literal(\"remote_agent_execution\")\n\t}),\n\tz.strictObject({\n\t\tkind: z.literal(\"routine_run\"),\n\t\trunId: trimmedNonEmptyStringSchema.max(256)\n\t})\n]);\nconst centerAgentPostSlackChannelMessageBodySchema = z.strictObject({\n\tchannelName: trimmedNonEmptyStringSchema.max(80),\n\tpublicationSource: centerAgentPublicationSourceSchema.optional(),\n\tspeakerMember: centerAgentToolSpeakerSchema,\n\ttext: z.string().trim().min(1).max(MAX_TEXT_LENGTH)\n});\nconst centerAgentSearchSlackMessagesBodySchema = z.strictObject({\n\tincludeBots: z.boolean().optional(),\n\tquery: trimmedNonEmptyStringSchema.max(500),\n\tsearchAuthorization: remoteAgentSlackSearchAuthorizationSchema,\n\tspeakerMember: centerAgentToolSpeakerSchema\n});\nconst CENTER_AGENT_DELEGATION_COMPLETION_MODES = [\n\t\"child_reports_directly\",\n\t\"resume_parent_when_all_terminal\",\n\t\"resume_parent_when_first_success\",\n\t\"resume_parent_on_failure\",\n\t\"resume_parent_on_each_terminal\"\n];\nconst centerAgentDelegationCompletionModeSchema = z.enum(CENTER_AGENT_DELEGATION_COMPLETION_MODES);\nconst centerAgentWakeAgentProfilesInSpaceBodySchema = z.strictObject({\n\tagentProfileIds: z.array(agentProfileIdSchema).min(1).max(25),\n\tcompletionMode: centerAgentDelegationCompletionModeSchema.optional(),\n\tfallbackAgentProfileId: agentProfileIdSchema.optional(),\n\tonBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),\n\treferenceProfileIds: z.array(openMeldRuntimeProfileIdSchema).max(25).optional(),\n\tspaceId: trimmedNonEmptyStringSchema,\n\ttext: z.string().trim().min(1).max(MAX_TEXT_LENGTH)\n}).superRefine((value, context) => {\n\tconst overlappingReferenceIndex = findCenterAgentReferenceOverlapIndex({\n\t\tactivationTargets: value.agentProfileIds,\n\t\tfallbackAgentProfileId: value.fallbackAgentProfileId,\n\t\treferenceTargets: value.referenceProfileIds\n\t});\n\tif (overlappingReferenceIndex !== void 0 && overlappingReferenceIndex >= 0) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: CENTER_AGENT_REFERENCE_OVERLAP_MESSAGE,\n\t\tpath: [\"referenceProfileIds\", overlappingReferenceIndex]\n\t});\n\tif (!value.fallbackAgentProfileId) return;\n\tif (!value.completionMode) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"completionMode is required when fallbackAgentProfileId is provided.\",\n\t\tpath: [\"completionMode\"]\n\t});\n\tconst primaryProfileIds = new Set(value.agentProfileIds);\n\tif (primaryProfileIds.has(value.fallbackAgentProfileId)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"fallbackAgentProfileId must differ from every primary Agent.\",\n\t\tpath: [\"fallbackAgentProfileId\"]\n\t});\n\tif (primaryProfileIds.size !== 1) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Fallback activation currently requires exactly one primary Agent.\",\n\t\tpath: [\"agentProfileIds\"]\n\t});\n\tif (value.completionMode === \"resume_parent_on_each_terminal\") context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Fallback activation does not support resume_parent_on_each_terminal.\",\n\t\tpath: [\"completionMode\"]\n\t});\n});\nconst centerAgentWakePublicationCommandSchema = z.strictObject({\n\tactivationTargets: z.array(agentProfileIdSchema).min(1),\n\tattribution: centerAgentAttributionSchema,\n\tclientMessageId: trimmedNonEmptyStringSchema,\n\tcompletionMode: centerAgentDelegationCompletionModeSchema,\n\tcontext: openMeldRequestContextSchema,\n\tdelegationId: trimmedNonEmptyStringSchema,\n\tfallbackAgentProfileId: agentProfileIdSchema.nullable(),\n\torganizationId: trimmedNonEmptyStringSchema,\n\tparentSubmissionId: trimmedNonEmptyStringSchema,\n\tprofile: profileSchema,\n\treferenceTargets: z.array(openMeldRuntimeProfileIdSchema).max(25).default([]),\n\tspaceId: trimmedNonEmptyStringSchema,\n\tsubscriptionIds: z.array(trimmedNonEmptyStringSchema).min(1),\n\ttext: z.string().trim().min(1).max(MAX_TEXT_LENGTH),\n\tv: z.literal(1)\n}).superRefine((value, context) => {\n\tconst overlappingReferenceIndex = findCenterAgentReferenceOverlapIndex({\n\t\tactivationTargets: value.activationTargets,\n\t\tfallbackAgentProfileId: value.fallbackAgentProfileId,\n\t\treferenceTargets: value.referenceTargets\n\t});\n\tif (overlappingReferenceIndex !== void 0 && overlappingReferenceIndex >= 0) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: CENTER_AGENT_REFERENCE_OVERLAP_MESSAGE,\n\t\tpath: [\"referenceTargets\", overlappingReferenceIndex]\n\t});\n});\nconst centerAgentWatchAgentTaskBodySchema = z.strictObject({\n\tcompletionCondition: agentTaskCompletionConditionSchema,\n\tinstruction: z.string().trim().min(1).max(4e3),\n\ttask: agentTaskHandleSchema\n});\nconst centerAgentListAgentTasksBodySchema = z.strictObject({\n\tagentControllerRef: agentControllerRefSchema.optional(),\n\tlimit: z.int().min(1).max(20).optional()\n});\nconst centerAgentUpdateSpaceSettingsBodySchema = z.strictObject({\n\taccessMode: spaceAccessModeSchema.optional(),\n\tguide: z.string().optional(),\n\tonBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),\n\tpassword: spacePasswordSchema.optional(),\n\tpurpose: z.string().optional(),\n\tspaceId: trimmedNonEmptyStringSchema\n}).superRefine((value, ctx) => {\n\tif (value.accessMode === void 0 && value.guide === void 0 && value.purpose === void 0) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Expected purpose, guide, or accessMode\"\n\t});\n\tif (value.password !== void 0 && value.accessMode === void 0) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"password can only be set with accessMode\",\n\t\tpath: [\"password\"]\n\t});\n\tif (value.password !== void 0 && value.accessMode === \"public\") ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"public access does not use a Space password\",\n\t\tpath: [\"password\"]\n\t});\n});\nconst centerAgentInviteMemberBodySchema = z.strictObject({\n\temail: z.email(),\n\trole: z.enum([\"admin\", \"member\"]).default(\"member\"),\n\tonBehalfOf: centerAgentOnBehalfOfInputSchema.optional()\n});\nconst centerAgentProductOperationStepNameSchema = z.enum([\n\t\"list_local_agent_connection_candidates\",\n\t\"select_local_agent_connection_candidate\",\n\t\"create_agent_profile\",\n\t\"enable_agent_profile\",\n\t\"connect_agent_profile_to_local_agent\",\n\t\"authorize_agent_profile_for_organization\",\n\t\"update_agent_profile_runtime_settings\",\n\t\"update_agent_profile_workspace\",\n\t\"add_agent_profile_to_space\",\n\t\"check_agent_profile_readiness\"\n]);\nconst centerAgentProductOperationStepSchema = z.strictObject({\n\tname: centerAgentProductOperationStepNameSchema,\n\tstatus: z.enum([\n\t\t\"completed\",\n\t\t\"failed\",\n\t\t\"skipped\"\n\t]),\n\tmessage: trimmedNonEmptyStringSchema.optional(),\n\tnextAction: trimmedNonEmptyStringSchema.optional()\n});\nconst centerAgentLocalAgentConnectionCandidateSchema = z.strictObject({\n\tagentControllerRef: trimmedNonEmptyStringSchema,\n\tagentDisplayName: trimmedNonEmptyStringSchema,\n\tcandidateId: trimmedNonEmptyStringSchema,\n\tconnectable: z.boolean(),\n\tdeviceDisplayName: trimmedNonEmptyStringSchema,\n\tdeviceId: trimmedNonEmptyStringSchema,\n\tfreshness: z.enum([\n\t\t\"fresh\",\n\t\t\"stale\",\n\t\t\"unknown\"\n\t]),\n\tlastObservedAtMs: z.number().int().nonnegative().nullable(),\n\treasonCodes: z.array(trimmedNonEmptyStringSchema),\n\truntimeLane: trimmedNonEmptyStringSchema,\n\tstatus: z.enum([\n\t\t\"ready\",\n\t\t\"not_ready\",\n\t\t\"stale\",\n\t\t\"unknown\"\n\t]),\n\topenMeldServiceRuntimeId: prepareReadinessRuntimeIdSchema\n});\nconst centerAgentComputerSetupOptionSchema = z.strictObject({\n\tconnectedComputerId: trimmedNonEmptyStringSchema.nullable(),\n\tdeviceDisplayName: trimmedNonEmptyStringSchema,\n\tdeviceId: trimmedNonEmptyStringSchema,\n\tisCurrent: z.boolean(),\n\tlastObservedAtMs: z.number().int().nonnegative().nullable(),\n\treasonCodes: z.array(trimmedNonEmptyStringSchema),\n\trecommendedMode: computerSetupModeSchema.nullable(),\n\tstatus: z.enum([\n\t\t\"connected\",\n\t\t\"needs_attention\",\n\t\t\"not_connected\",\n\t\t\"unknown\"\n\t])\n}).superRefine((value, context) => {\n\tif (value.recommendedMode !== null && value.recommendedMode !== \"setup\" && value.connectedComputerId === null) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"connectedComputerId is required for reconnect and update_service\",\n\t\tpath: [\"connectedComputerId\"]\n\t});\n});\nconst centerAgentListLocalAgentConnectionCandidatesBodySchema = z.strictObject({});\nconst centerAgentListLocalAgentConnectionCandidatesResponseSchema = z.strictObject({\n\tcandidates: z.array(centerAgentLocalAgentConnectionCandidateSchema),\n\torganizationId: trimmedNonEmptyStringSchema\n});\nconst centerAgentListComputersBodySchema = z.strictObject({ speakerMember: centerAgentToolSpeakerSchema });\nconst centerAgentListComputersResponseSchema = z.strictObject({\n\tcomputers: z.array(centerAgentComputerSetupOptionSchema),\n\torganizationId: trimmedNonEmptyStringSchema\n});\nconst centerAgentConnectAgentProfileToLocalAgentBodySchema = z.strictObject({\n\tagentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),\n\tagentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),\n\tagentProfileId: agentProfileIdSchema,\n\tcandidateId: trimmedNonEmptyStringSchema,\n\tmodelId: trimmedNonEmptyStringSchema.optional(),\n\tonBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),\n\topenCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),\n\treasoningLevel: trimmedNonEmptyStringSchema.optional()\n});\nconst centerAgentUpdateAgentProfileRuntimeSettingsBodySchema = z.strictObject({\n\tagentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),\n\tagentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),\n\tagentProfileId: agentProfileIdSchema,\n\tmodelId: trimmedNonEmptyStringSchema.optional(),\n\tonBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),\n\topenCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),\n\treasoningLevel: trimmedNonEmptyStringSchema.optional(),\n\tworkspaceMode: profileWorkspaceModeSchema.optional(),\n\tworkspacePath: profileWorkingDirectorySchema.optional()\n}).superRefine((value, ctx) => {\n\tif (value.agentControllerCollaborationMode === void 0 && value.agentControllerPermissionMode === void 0 && value.modelId === void 0 && value.openCodePermission === void 0 && value.reasoningLevel === void 0 && value.workspaceMode === void 0 && value.workspacePath === void 0) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Expected at least one runtime setting\"\n\t});\n\tif (value.reasoningLevel !== void 0 && value.modelId === void 0) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"reasoningLevel requires modelId\",\n\t\tpath: [\"reasoningLevel\"]\n\t});\n\tif (value.workspacePath !== void 0 && value.workspaceMode === void 0) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"workspacePath requires workspaceMode\",\n\t\tpath: [\"workspacePath\"]\n\t});\n});\nconst centerAgentCheckAgentProfileReadinessBodySchema = z.strictObject({ agentProfileId: agentProfileIdSchema });\nconst centerAgentCreateConfiguredAgentProfileBodySchema = z.strictObject({\n\tagentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),\n\tagentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),\n\tcandidateId: trimmedNonEmptyStringSchema,\n\tmodelId: trimmedNonEmptyStringSchema.optional(),\n\tonBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),\n\topenCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),\n\tprofileName: trimmedNonEmptyStringSchema,\n\treasoningLevel: trimmedNonEmptyStringSchema.optional(),\n\tspaceId: trimmedNonEmptyStringSchema,\n\tworkspaceMode: profileWorkspaceModeSchema.optional(),\n\tworkspacePath: profileWorkingDirectorySchema.optional()\n}).superRefine((value, ctx) => {\n\tif (value.reasoningLevel !== void 0 && value.modelId === void 0) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"reasoningLevel requires modelId\",\n\t\tpath: [\"reasoningLevel\"]\n\t});\n\tif (value.workspacePath !== void 0 && value.workspaceMode === void 0) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"workspacePath requires workspaceMode\",\n\t\tpath: [\"workspacePath\"]\n\t});\n});\nconst centerAgentReadinessBlockerSchema = z.strictObject({\n\treasonCode: trimmedNonEmptyStringSchema,\n\texplanation: trimmedNonEmptyStringSchema\n});\nconst centerAgentCheckAgentProfileReadinessResponseSchema = z.strictObject({\n\tagentProfileId: agentProfileIdSchema,\n\tblockers: z.array(centerAgentReadinessBlockerSchema),\n\tcanReply: z.boolean(),\n\torganizationId: trimmedNonEmptyStringSchema,\n\treadiness: getAgentExecutionReadinessResponseSchema,\n\tsummary: trimmedNonEmptyStringSchema\n});\nconst centerAgentProductOperationStatusSchema = z.enum([\"completed\", \"blocked\"]);\nconst centerAgentConnectAgentProfileToLocalAgentResponseSchema = z.strictObject({\n\tagentProfileId: agentProfileIdSchema,\n\tbinding: ensureAgentProfilePrimaryBindingResponseSchema.optional(),\n\tcanReply: z.boolean(),\n\tcandidate: centerAgentLocalAgentConnectionCandidateSchema.optional(),\n\torganizationId: trimmedNonEmptyStringSchema,\n\treadiness: centerAgentCheckAgentProfileReadinessResponseSchema.optional(),\n\tstatus: centerAgentProductOperationStatusSchema,\n\tsteps: z.array(centerAgentProductOperationStepSchema)\n});\nconst centerAgentUpdateAgentProfileRuntimeSettingsResponseSchema = z.strictObject({\n\tagentProfileId: agentProfileIdSchema,\n\tbinding: ensureAgentProfilePrimaryBindingResponseSchema.optional(),\n\tcanReply: z.boolean(),\n\torganizationId: trimmedNonEmptyStringSchema,\n\treadiness: centerAgentCheckAgentProfileReadinessResponseSchema.optional(),\n\tstatus: centerAgentProductOperationStatusSchema,\n\tsteps: z.array(centerAgentProductOperationStepSchema),\n\tworkspace: setCurrentAgentProfileWorkspaceResponseSchema.optional()\n});\nconst centerAgentCreateConfiguredAgentProfileResponseSchema = z.strictObject({\n\tagentProfileId: agentProfileIdSchema.optional(),\n\tcanReply: z.boolean(),\n\tconnection: centerAgentConnectAgentProfileToLocalAgentResponseSchema.optional(),\n\torganizationId: trimmedNonEmptyStringSchema,\n\tprofile: authProfileViewSchema.optional(),\n\treadiness: centerAgentCheckAgentProfileReadinessResponseSchema.optional(),\n\tspaceId: trimmedNonEmptyStringSchema,\n\tstatus: centerAgentProductOperationStatusSchema,\n\tsteps: z.array(centerAgentProductOperationStepSchema),\n\tworkspace: setCurrentAgentProfileWorkspaceResponseSchema.optional()\n});\nconst centerAgentConciergeActionResponseSchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tattribution: centerAgentAttributionSchema,\n\tresource: centerAgentResourceSchema.nullable()\n});\nconst centerAgentCreateSpaceResponseSchema = centerAgentConciergeActionResponseSchema.extend({\n\tmeta: spaceMetaSchema.optional(),\n\tspaceId: trimmedNonEmptyStringSchema\n});\nconst centerAgentCreateAgentProfileResponseSchema = centerAgentConciergeActionResponseSchema.extend({ profile: authProfileViewSchema });\nconst centerAgentEnableAgentProfileResponseSchema = centerAgentConciergeActionResponseSchema.extend({\n\tagentProfileId: agentProfileIdSchema,\n\tenabled: z.boolean()\n});\nconst centerAgentAddAgentProfilesToSpaceResponseSchema = centerAgentConciergeActionResponseSchema.extend({\n\tagentProfileIds: z.array(agentProfileIdSchema),\n\tspaceId: trimmedNonEmptyStringSchema,\n\tmembership: postSpaceMembersResponseSchema\n});\nconst centerAgentAddMembersToSpaceResultSchema = z.discriminatedUnion(\"status\", [z.strictObject({\n\tmemberUserId: trimmedNonEmptyStringSchema,\n\tprofileId: openMeldRuntimeProfileIdSchema,\n\tstatus: z.enum([\"added\", \"already_member\"])\n}), z.strictObject({\n\tcode: z.enum([\"not_organization_member\", \"active_human_profile_required\"]),\n\tmemberUserId: trimmedNonEmptyStringSchema,\n\tmessage: trimmedNonEmptyStringSchema,\n\tstatus: z.literal(\"rejected\")\n})]);\nconst centerAgentAddMembersToSpaceResponseSchema = centerAgentConciergeActionResponseSchema.extend({\n\tmembership: postSpaceMembersResponseSchema,\n\tresults: z.array(centerAgentAddMembersToSpaceResultSchema),\n\tspaceId: trimmedNonEmptyStringSchema\n});\nconst centerAgentRemoveAgentProfilesFromSpaceResponseSchema = centerAgentConciergeActionResponseSchema.extend({\n\tagentProfileIds: z.array(agentProfileIdSchema),\n\tspaceId: trimmedNonEmptyStringSchema,\n\tmembership: removeSpaceMembersResponseSchema\n});\nconst centerAgentSpaceContextBaseResponseShape = {\n\torganizationId: trimmedNonEmptyStringSchema,\n\tspaceId: trimmedNonEmptyStringSchema\n};\nconst centerAgentProgressiveSpaceContextSchema = z.discriminatedUnion(\"scope\", [\n\tz.strictObject({\n\t\tscope: z.literal(\"source\"),\n\t\tsignals: z.array(signalEnvelopeSchema).max(1),\n\t\tsourceSignalId: trimmedNonEmptyStringSchema,\n\t\tthreadContext: z.union([spaceThreadContextSchema, z.null()]),\n\t\ttruncated: z.literal(false)\n\t}),\n\tz.strictObject({\n\t\tscope: z.literal(\"thread\"),\n\t\tsignals: z.array(signalEnvelopeSchema).max(100),\n\t\tthreadId: trimmedNonEmptyStringSchema,\n\t\ttruncated: z.boolean()\n\t}),\n\tz.strictObject({\n\t\tafterSignalId: trimmedNonEmptyStringSchema,\n\t\tscope: z.literal(\"delta\"),\n\t\tsignals: z.array(signalEnvelopeSchema).max(100),\n\t\ttruncated: z.boolean()\n\t}),\n\tz.strictObject({\n\t\tscope: z.literal(\"history\"),\n\t\tsignals: z.array(signalEnvelopeSchema).max(100),\n\t\ttruncated: z.boolean()\n\t})\n]);\nconst centerAgentReadSpaceContextResponseSchema = z.union([z.strictObject({\n\t...centerAgentSpaceContextBaseResponseShape,\n\tbootstrap: spaceBootstrapResponseSchema\n}), z.strictObject({\n\t...centerAgentSpaceContextBaseResponseShape,\n\tcontext: centerAgentProgressiveSpaceContextSchema\n})]);\nconst centerAgentDispatchHistoryLatestAttemptSchema = z.strictObject({\n\tattemptId: trimmedNonEmptyStringSchema,\n\tattemptNo: z.int().min(1),\n\tcreatedAt: ISO_DATE_TIME_SCHEMA,\n\terrorCode: nullableTrimmedStringSchema,\n\terrorMessage: nullableDiagnosticTextSchema,\n\tfinishedAt: nullableIsoDateTimeSchema,\n\tstartedAt: nullableIsoDateTimeSchema,\n\tstatus: spaceDispatchTraceAttemptStatusSchema\n});\nconst centerAgentDispatchHistoryEntrySchema = z.strictObject({\n\tattemptCount: z.int().min(0),\n\tdispatchId: trimmedNonEmptyStringSchema,\n\tfirstSeenAt: ISO_DATE_TIME_SCHEMA,\n\tlastAttemptAt: ISO_DATE_TIME_SCHEMA,\n\tlatestAttempt: z.union([centerAgentDispatchHistoryLatestAttemptSchema, z.null()]),\n\tstatus: spaceDispatchTraceDispatchStatusSchema,\n\ttargetProfileId: trimmedNonEmptyStringSchema\n});\nconst centerAgentReadDispatchHistoryResponseSchema = z.strictObject({\n\tentries: z.array(centerAgentDispatchHistoryEntrySchema),\n\torganizationId: trimmedNonEmptyStringSchema,\n\tspaceId: trimmedNonEmptyStringSchema\n});\nconst centerAgentUpdateSpaceSettingsResponseSchema = centerAgentConciergeActionResponseSchema.extend({\n\taccessModeState: spaceAccessModeStateSchema.optional(),\n\tmeta: spaceMetaSchema.optional(),\n\tspaceId: trimmedNonEmptyStringSchema\n});\nconst centerAgentSpaceAuthoringContractResponseSchema = z.strictObject({\n\taddressingModel: z.literal(\"wake_reference\"),\n\tstructuredReferenceTargets: z.literal(true)\n});\nconst centerAgentPostSpaceMessageResponseSchema = centerAgentConciergeActionResponseSchema.extend({\n\tsignal: signalTextEnvelopeSchema,\n\tspaceId: trimmedNonEmptyStringSchema\n});\nconst centerAgentPostSlackChannelMessageResponseSchema = z.strictObject({\n\tattribution: centerAgentAttributionSchema,\n\tchannelName: trimmedNonEmptyStringSchema.max(80),\n\tjoinedChannel: z.boolean(),\n\tmessageTs: trimmedNonEmptyStringSchema,\n\torganizationId: trimmedNonEmptyStringSchema\n});\nconst centerAgentSlackSearchFailureSchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\treason: trimmedNonEmptyStringSchema.max(500),\n\tretryAfterSeconds: z.number().int().nonnegative().optional(),\n\tstatus: z.enum([\n\t\t\"authorization_expired\",\n\t\t\"forbidden\",\n\t\t\"rate_limited\",\n\t\t\"unavailable\"\n\t])\n});\nconst centerAgentSearchSlackMessagesResponseSchema = z.discriminatedUnion(\"status\", [z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tstatus: z.literal(\"presented\")\n}), centerAgentSlackSearchFailureSchema]);\nconst centerAgentWakeAgentProfilesInSpaceResponseBaseSchema = centerAgentConciergeActionResponseSchema.extend({\n\tagentProfileIds: z.array(agentProfileIdSchema),\n\tchildTasks: z.array(z.strictObject({\n\t\tcompletionCondition: z.literal(\"terminal\"),\n\t\tsubscriptionId: trimmedNonEmptyStringSchema,\n\t\ttask: spaceWakeAgentTaskHandleSchema\n\t})).optional(),\n\tdelegationId: trimmedNonEmptyStringSchema.optional(),\n\tfallbackTask: z.strictObject({\n\t\tactivationSubscriptionId: trimmedNonEmptyStringSchema,\n\t\tcompletionCondition: z.literal(\"terminal\"),\n\t\tsubscriptionId: trimmedNonEmptyStringSchema,\n\t\ttask: spaceWakeAgentTaskHandleSchema\n\t}).optional(),\n\tspaceId: trimmedNonEmptyStringSchema\n});\nconst centerAgentAcceptedWakeResponseSchema = centerAgentWakeAgentProfilesInSpaceResponseBaseSchema.extend({\n\tpublicationStatus: z.literal(\"accepted\").optional(),\n\tsignal: signalTextEnvelopeSchema\n});\nconst centerAgentPendingWakeResponseSchema = centerAgentWakeAgentProfilesInSpaceResponseBaseSchema.extend({\n\tpublicationStatus: z.literal(\"pending\"),\n\tretryAfterSeconds: z.int().positive().max(300)\n}).superRefine((value, context) => {\n\tif (!(value.delegationId && value.childTasks)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"a pending Wake publication requires its durable delegation contract\",\n\t\tpath: [\"delegationId\"]\n\t});\n});\nconst centerAgentWakeAgentProfilesInSpaceResponseSchema = z.union([centerAgentAcceptedWakeResponseSchema, centerAgentPendingWakeResponseSchema]).superRefine((value, context) => {\n\tif (value.delegationId === void 0 !== (value.childTasks === void 0)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"delegationId and childTasks must either both be present or both be absent\",\n\t\tpath: [\"delegationId\"]\n\t});\n\tif (value.fallbackTask && !value.delegationId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"fallbackTask requires a delegationId\",\n\t\tpath: [\"fallbackTask\"]\n\t});\n\tif (value.childTasks) {\n\t\tconst expectedProfileIds = [...new Set(value.agentProfileIds)].sort();\n\t\tconst childProfileIds = value.childTasks.map((child) => child.task.targetProfileId).sort();\n\t\tif (childProfileIds.length !== expectedProfileIds.length || childProfileIds.some((profileId, index) => profileId !== expectedProfileIds[index])) context.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"childTasks must contain exactly one Space Wake task for every agentProfileId\",\n\t\t\tpath: [\"childTasks\"]\n\t\t});\n\t\tif (value.fallbackTask && expectedProfileIds.includes(value.fallbackTask.task.targetProfileId)) context.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"fallbackTask must target a different Agent Profile\",\n\t\t\tpath: [\"fallbackTask\"]\n\t\t});\n\t}\n});\nconst centerAgentWatchAgentTaskResponseSchema = centerAgentConciergeActionResponseSchema.extend({\n\tcompletionCondition: agentTaskCompletionConditionSchema,\n\tstatus: z.enum([\n\t\t\"watching\",\n\t\t\"continuation_pending\",\n\t\t\"continuation_created\",\n\t\t\"condition_not_met\"\n\t]),\n\toutcome: z.union([agentTaskCompletionObservationSchema, z.null()]),\n\tsubscriptionId: trimmedNonEmptyStringSchema,\n\ttask: agentTaskHandleSchema,\n\twatchId: trimmedNonEmptyStringSchema\n});\nconst centerAgentListAgentTaskSchema = z.strictObject({\n\toutcome: z.union([agentTaskTerminalOutcomeSchema, z.null()]),\n\tregisteredAtMs: z.int().nonnegative(),\n\tregistrationSource: agentControllerTaskLifecycleEventSourceSchema,\n\tsupportedCompletionConditions: z.array(agentTaskCompletionConditionSchema),\n\ttask: controllerAgentTaskHandleSchema\n});\nconst centerAgentListAgentTasksResponseSchema = z.strictObject({\n\thasMore: z.boolean(),\n\torganizationId: trimmedNonEmptyStringSchema,\n\ttasks: z.array(centerAgentListAgentTaskSchema).max(20)\n});\nconst centerAgentInviteMemberResponseSchema = centerAgentConciergeActionResponseSchema.extend({ invited: z.literal(true) });\nconst openCenterAgentDirectMessageSpaceResponseSchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tcenterAgentProfileId: agentProfileIdSchema,\n\tmemberProfileId: openMeldRuntimeProfileIdSchema,\n\tspaceId: trimmedNonEmptyStringSchema,\n\tcreated: z.boolean()\n});\n//#endregion\nexport { CENTER_AGENT_DELEGATION_COMPLETION_MODES, centerAgentActionSchema, centerAgentAddAgentProfilesToSpaceBodySchema, centerAgentAddAgentProfilesToSpaceResponseSchema, centerAgentAddMembersToSpaceBodySchema, centerAgentAddMembersToSpaceResponseSchema, centerAgentAddMembersToSpaceResultSchema, centerAgentAttributionSchema, centerAgentAuditJournalEntrySchema, centerAgentCheckAgentProfileReadinessBodySchema, centerAgentCheckAgentProfileReadinessResponseSchema, centerAgentComputerSetupOptionSchema, centerAgentConciergeActionResponseSchema, centerAgentConnectAgentProfileToLocalAgentBodySchema, centerAgentConnectAgentProfileToLocalAgentResponseSchema, centerAgentConnectorActionAuditOutcomeSchema, centerAgentConnectorActionExecutionConnectionSchema, centerAgentConnectorActionOperationStatusSchema, centerAgentCreateAgentProfileBodySchema, centerAgentCreateAgentProfileResponseSchema, centerAgentCreateConfiguredAgentProfileBodySchema, centerAgentCreateConfiguredAgentProfileResponseSchema, centerAgentCreateSpaceBodySchema, centerAgentCreateSpaceResponseSchema, centerAgentDelegationCompletionModeSchema, centerAgentDesignationSchema, centerAgentDispatchHistoryEntrySchema, centerAgentDispatchHistoryLatestAttemptSchema, centerAgentEnableAgentProfileBodySchema, centerAgentEnableAgentProfileResponseSchema, centerAgentInviteMemberBodySchema, centerAgentInviteMemberResponseSchema, centerAgentListAgentTaskSchema, centerAgentListAgentTasksBodySchema, centerAgentListAgentTasksResponseSchema, centerAgentListComputersBodySchema, centerAgentListComputersResponseSchema, centerAgentListLocalAgentConnectionCandidatesBodySchema, centerAgentListLocalAgentConnectionCandidatesResponseSchema, centerAgentLocalAgentConnectionCandidateSchema, centerAgentModelConfigurationResponseSchema, centerAgentOnBehalfOfInputSchema, centerAgentOperatingStateSchema, centerAgentPostSlackChannelMessageBodySchema, centerAgentPostSlackChannelMessageResponseSchema, centerAgentPostSpaceMessageBodySchema, centerAgentPostSpaceMessageResponseSchema, centerAgentProductOperationStepNameSchema, centerAgentProductOperationStepSchema, centerAgentPublicationSourceSchema, centerAgentReadConnectorActionOperationBodySchema, centerAgentReadConnectorActionOperationResponseSchema, centerAgentReadDispatchHistoryBodySchema, centerAgentReadDispatchHistoryResponseSchema, centerAgentReadSpaceContextBodySchema, centerAgentReadSpaceContextResponseSchema, centerAgentReadinessBlockerSchema, centerAgentRecordConnectorActionAuditBodySchema, centerAgentRecordConnectorActionAuditResponseSchema, centerAgentRecordConnectorActionOperationBodySchema, centerAgentRecordConnectorActionOperationResponseSchema, centerAgentRemoteRuntimeAvailabilityReasonCodeSchema, centerAgentRemoteRuntimeAvailabilitySchema, centerAgentRemoveAgentProfilesFromSpaceBodySchema, centerAgentRemoveAgentProfilesFromSpaceResponseSchema, centerAgentResourceSchema, centerAgentSearchSlackMessagesBodySchema, centerAgentSearchSlackMessagesResponseSchema, centerAgentSlackWorkspaceConnectBodySchema, centerAgentSlackWorkspaceConnectionResponseSchema, centerAgentSlackWorkspaceConnectionSchema, centerAgentSlackWorkspaceDisconnectResponseSchema, centerAgentSpaceAuthoringContractResponseSchema, centerAgentSpaceContextScopeSchema, centerAgentUpdateAgentProfileRuntimeSettingsBodySchema, centerAgentUpdateAgentProfileRuntimeSettingsResponseSchema, centerAgentUpdateProfileBodySchema, centerAgentUpdateProfileResponseSchema, centerAgentUpdateSpaceSettingsBodySchema, centerAgentUpdateSpaceSettingsResponseSchema, centerAgentWakeAgentProfilesInSpaceBodySchema, centerAgentWakeAgentProfilesInSpaceResponseSchema, centerAgentWakePublicationCommandSchema, centerAgentWatchAgentTaskBodySchema, centerAgentWatchAgentTaskResponseSchema, designateCenterAgentBodySchema, designateCenterAgentResponseSchema, ensureMessageChannelMemberOrganizationMembershipRpcInputSchema, ensureMessageChannelMemberOrganizationMembershipRpcResponseSchema, ensureSlackWorkspaceMemberOrganizationMembershipRpcInputSchema, ensureSlackWorkspaceMemberOrganizationMembershipRpcResponseSchema, getCenterAgentDesignationResponseSchema, getCenterAgentOperatingStateResponseSchema, listCenterAgentAuditJournalQuerySchema, listCenterAgentAuditJournalResponseSchema, openCenterAgentDirectMessageSpaceResponseSchema, slackIdentityLinkConsumeBodySchema, slackIdentityLinkConsumeResponseSchema, slackIdentityLinkPreviewBodySchema, slackIdentityLinkPreviewResponseSchema, slackIdentityLinkTokenSchema, updateCenterAgentModelBodySchema, updateCenterAgentModelResponseSchema, updateCenterAgentOperatingStateBodySchema, updateCenterAgentOperatingStateResponseSchema };\n\n//# sourceMappingURL=center-agent.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/http/center-agent-direct-message-space.ts\nconst CENTER_AGENT_DIRECT_MESSAGE_SPACE_KIND = \"center_agent_direct_message_space\";\nconst DIRECT_MESSAGE_SPACE_PURPOSE = \"openmeld_dm_space\";\nconst ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });\nconst trimmedNonEmptyStringSchema = z.string().trim().min(1);\nconst centerAgentDirectMessageSpaceProjectionSchema = z.strictObject({\n\tcenterAgentProfileId: trimmedNonEmptyStringSchema,\n\tisCenterAgentDirectMessageSpace: z.literal(true),\n\tkind: z.literal(CENTER_AGENT_DIRECT_MESSAGE_SPACE_KIND),\n\tmemberProfileId: trimmedNonEmptyStringSchema,\n\torganizationId: trimmedNonEmptyStringSchema,\n\tspaceId: trimmedNonEmptyStringSchema\n});\nconst getCenterAgentDirectMessageSpaceProjectionResponseSchema = z.strictObject({\n\tgeneratedAt: ISO_DATE_TIME_SCHEMA,\n\torganizationId: trimmedNonEmptyStringSchema,\n\tprojection: z.union([centerAgentDirectMessageSpaceProjectionSchema, z.null()])\n});\nfunction deriveCenterAgentDirectMessageSpaceProjection(input) {\n\tconst centerAgentProfileId = normalizeNonEmptyText(input.centerAgentProfileId);\n\tif (input.spacePurpose !== DIRECT_MESSAGE_SPACE_PURPOSE || centerAgentProfileId === null) return null;\n\tconst pair = parseDirectMessagePairKey(input.directMessagePairKey);\n\tif (pair === null || !pair.includes(centerAgentProfileId)) return null;\n\tconst memberProfileId = pair[0] === centerAgentProfileId ? pair[1] : pair[0];\n\treturn {\n\t\tcenterAgentProfileId,\n\t\tisCenterAgentDirectMessageSpace: true,\n\t\tkind: CENTER_AGENT_DIRECT_MESSAGE_SPACE_KIND,\n\t\tmemberProfileId,\n\t\torganizationId: input.organizationId,\n\t\tspaceId: input.spaceId\n\t};\n}\nfunction isCenterAgentDirectMessageSpaceProjection(input) {\n\treturn deriveCenterAgentDirectMessageSpaceProjection({\n\t\t...input,\n\t\torganizationId: \"projection-check\",\n\t\tspaceId: \"projection-check\"\n\t}) !== null;\n}\nfunction parseDirectMessagePairKey(value) {\n\tconst normalized = normalizeNonEmptyText(value);\n\tif (normalized === null) return null;\n\tconst parts = normalized.split(\":\").map((part) => part.trim());\n\tif (parts.length !== 2 || parts.some((part) => part.length === 0)) return null;\n\tif (parts[0] === parts[1]) return null;\n\treturn parts;\n}\nfunction normalizeNonEmptyText(value) {\n\tif (typeof value !== \"string\") return null;\n\tconst normalized = value.trim();\n\treturn normalized.length > 0 ? normalized : null;\n}\n//#endregion\nexport { centerAgentDirectMessageSpaceProjectionSchema, deriveCenterAgentDirectMessageSpaceProjection, getCenterAgentDirectMessageSpaceProjectionResponseSchema, isCenterAgentDirectMessageSpaceProjection };\n\n//# sourceMappingURL=center-agent-direct-message-space.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/http/center-agent-memory.ts\nconst boundedIdentifierSchema = z.string().trim().min(1).max(256);\nconst CENTER_AGENT_ORGANIZATION_MEMORY_FACT_MAX_CHARS = 1200;\nconst centerAgentMemoryProviderSchema = z.enum([\"zep_cloud\"]);\nconst centerAgentMemoryWipeStatusSchema = z.enum([\"deleted\", \"not_found\"]);\nconst centerAgentWipeMemberMemoryResponseSchema = z.strictObject({\n\torganizationId: boundedIdentifierSchema,\n\tprovider: centerAgentMemoryProviderSchema,\n\tstatus: centerAgentMemoryWipeStatusSchema,\n\tuserId: boundedIdentifierSchema\n});\nconst centerAgentOrganizationMemoryPolicyResponseSchema = z.strictObject({\n\torganizationId: boundedIdentifierSchema,\n\torganizationMemoryOptIn: z.boolean(),\n\tprovider: centerAgentMemoryProviderSchema,\n\tupdatedByUserId: boundedIdentifierSchema.nullable()\n});\nconst updateCenterAgentOrganizationMemoryPolicyBodySchema = z.strictObject({ organizationMemoryOptIn: z.boolean() });\nconst centerAgentRememberForOrganizationBodySchema = z.strictObject({ fact: z.string().trim().min(1).max(CENTER_AGENT_ORGANIZATION_MEMORY_FACT_MAX_CHARS) });\nconst centerAgentRememberForOrganizationResponseSchema = z.strictObject({\n\tfact: z.string().trim().min(1).max(CENTER_AGENT_ORGANIZATION_MEMORY_FACT_MAX_CHARS),\n\torganizationId: boundedIdentifierSchema,\n\tsaved: z.literal(true),\n\tsource: z.literal(\"explicit_tool\")\n});\n//#endregion\nexport { CENTER_AGENT_ORGANIZATION_MEMORY_FACT_MAX_CHARS, centerAgentMemoryProviderSchema, centerAgentMemoryWipeStatusSchema, centerAgentOrganizationMemoryPolicyResponseSchema, centerAgentRememberForOrganizationBodySchema, centerAgentRememberForOrganizationResponseSchema, centerAgentWipeMemberMemoryResponseSchema, updateCenterAgentOrganizationMemoryPolicyBodySchema };\n\n//# sourceMappingURL=center-agent-memory.js.map","import { openMeldRequestContextSchema } from \"../daemon/profile-identity.js\";\n \nimport { agentTaskHandleSchema } from \"../runtime/agent-task-coordination.js\";\nimport { messageChannelConversationLocatorSchema } from \"../runtime/message-channel.js\";\nimport { centerAgentToolSpeakerSchema } from \"./center-agent-speaker.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/center-agent-tasks.ts\nconst CENTER_AGENT_TASK_TITLE_MAX_CHARS = 160;\nconst CENTER_AGENT_TASK_GOAL_MAX_CHARS = 4e3;\nconst CENTER_AGENT_TASK_EVENT_TEXT_MAX_CHARS = 4e3;\nconst CENTER_AGENT_TASK_LIST_DEFAULT_LIMIT = 40;\nconst CENTER_AGENT_TASK_LIST_MAX_LIMIT = 100;\nconst CENTER_AGENT_TASK_RESPONSE_CONTRACT_VERSION = 3;\nconst CENTER_AGENT_TASK_RESPONSE_CONTRACT_VERSION_HEADER = \"x-openmeld-center-agent-task-response-version\";\nconst identifierSchema = z.string().trim().min(1).max(256);\nconst idempotencyKeySchema = z.string().trim().min(1).max(512);\nconst isoDateTimeSchema = z.iso.datetime({ offset: true });\nconst taskTextSchema = z.string().trim().min(1);\nconst centerAgentTaskStatusSchema = z.enum([\n\t\"queued\",\n\t\"running\",\n\t\"stopping\",\n\t\"needs_attention\",\n\t\"succeeded\",\n\t\"failed\",\n\t\"stopped\"\n]);\nconst centerAgentTaskStateSchema = z.enum([\n\t\"active\",\n\t\"needs_action\",\n\t\"finished\"\n]);\nconst centerAgentTaskPhaseSchema = z.enum([\n\t\"queued\",\n\t\"working\",\n\t\"stopping\",\n\t\"waiting\"\n]);\nconst centerAgentTaskOutcomeSchema = z.enum([\n\t\"completed\",\n\t\"failed\",\n\t\"stopped\"\n]);\nconst centerAgentTaskResponseContractVersionSchema = z.union([z.literal(2), z.literal(3)]);\nconst centerAgentTaskResponseContractVersionHeaderSchema = z.union([z.literal(\"2\").transform(() => 2), z.literal(String(3)).transform(() => 3)]);\nconst centerAgentTaskExecutionEvidenceSchema = z.strictObject({\n\tattemptGeneration: z.number().int().positive(),\n\tkind: z.literal(\"native_delivery\"),\n\tobservedAt: isoDateTimeSchema\n});\nfunction resolveCenterAgentTaskPresentation(status, executionEvidence = null) {\n\tswitch (status) {\n\t\tcase \"queued\": return {\n\t\t\toutcome: null,\n\t\t\tphase: \"queued\",\n\t\t\tstate: \"active\"\n\t\t};\n\t\tcase \"running\": return {\n\t\t\toutcome: null,\n\t\t\tphase: executionEvidence ? \"working\" : null,\n\t\t\tstate: \"active\"\n\t\t};\n\t\tcase \"stopping\": return {\n\t\t\toutcome: null,\n\t\t\tphase: \"stopping\",\n\t\t\tstate: \"active\"\n\t\t};\n\t\tcase \"needs_attention\": return {\n\t\t\toutcome: null,\n\t\t\tphase: \"waiting\",\n\t\t\tstate: \"needs_action\"\n\t\t};\n\t\tcase \"succeeded\": return {\n\t\t\toutcome: \"completed\",\n\t\t\tphase: null,\n\t\t\tstate: \"finished\"\n\t\t};\n\t\tcase \"failed\": return {\n\t\t\toutcome: \"failed\",\n\t\t\tphase: null,\n\t\t\tstate: \"finished\"\n\t\t};\n\t\tcase \"stopped\": return {\n\t\t\toutcome: \"stopped\",\n\t\t\tphase: null,\n\t\t\tstate: \"finished\"\n\t\t};\n\t\tdefault: return assertNeverTaskStatus(status);\n\t}\n}\nfunction assertNeverTaskStatus(value) {\n\tthrow new Error(`Unsupported Center Agent Task status: ${String(value)}`);\n}\nconst centerAgentTaskOriginV2Schema = z.discriminatedUnion(\"kind\", [z.strictObject({ kind: z.literal(\"open_meld\") }), z.strictObject({\n\tdestination: messageChannelConversationLocatorSchema,\n\tkind: z.literal(\"message_channel\")\n})]);\nconst centerAgentTaskRequesterSchema = z.strictObject({\n\tdisplayName: z.string().trim().min(1).max(160),\n\tprofileId: identifierSchema,\n\tuserId: identifierSchema\n});\nconst centerAgentTaskLocalAgentSourceSchema = z.strictObject({\n\tclient: z.string().trim().min(1).max(80),\n\tkind: z.literal(\"local_agent\")\n});\nconst centerAgentTaskOriginSchema = z.discriminatedUnion(\"kind\", [z.strictObject({\n\tkind: z.literal(\"open_meld\"),\n\tlocalAgent: centerAgentTaskLocalAgentSourceSchema.optional(),\n\trequestedBy: centerAgentTaskRequesterSchema.optional()\n}), z.strictObject({\n\tdestination: messageChannelConversationLocatorSchema,\n\tkind: z.literal(\"message_channel\"),\n\trequestedBy: centerAgentTaskRequesterSchema.optional()\n})]);\n/** Frozen response parser for Web and Gateway builds released before v2. */\nconst centerAgentTaskResponseV1Schema = z.strictObject({\n\tactiveAttemptGeneration: z.number().int().positive().nullable(),\n\tcreatedAt: isoDateTimeSchema,\n\tfinishedAt: isoDateTimeSchema.nullable(),\n\tgoal: taskTextSchema.max(CENTER_AGENT_TASK_GOAL_MAX_CHARS),\n\tid: identifierSchema,\n\torganizationId: identifierSchema,\n\torigin: centerAgentTaskOriginV2Schema,\n\toutcome: centerAgentTaskOutcomeSchema.nullable().optional(),\n\tphase: centerAgentTaskPhaseSchema.nullable().optional(),\n\trequesterUserId: identifierSchema.nullable(),\n\tstate: centerAgentTaskStateSchema.optional(),\n\tstatus: centerAgentTaskStatusSchema,\n\ttitle: taskTextSchema.max(160),\n\tupdatedAt: isoDateTimeSchema,\n\tversion: z.number().int().positive()\n}).superRefine((task, context) => {\n\tconst presentation = resolveCenterAgentTaskPresentationV1(task.status);\n\tfor (const field of [\n\t\t\"outcome\",\n\t\t\"phase\",\n\t\t\"state\"\n\t]) if (task[field] !== void 0 && task[field] !== presentation[field]) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: `Task ${field} must match its version-one status projection.`,\n\t\tpath: [field]\n\t});\n\tvalidateCenterAgentTaskLifecycle(task, context);\n}).transform((task) => ({\n\t...task,\n\t...resolveCenterAgentTaskPresentationV1(task.status)\n}));\nconst centerAgentTaskResponseV2Schema = z.strictObject({\n\tactiveAttemptGeneration: z.number().int().positive().nullable(),\n\tcreatedAt: isoDateTimeSchema,\n\texecutionEvidence: centerAgentTaskExecutionEvidenceSchema.optional(),\n\tfinishedAt: isoDateTimeSchema.nullable(),\n\tgoal: taskTextSchema.max(CENTER_AGENT_TASK_GOAL_MAX_CHARS),\n\tid: identifierSchema,\n\torganizationId: identifierSchema,\n\torigin: centerAgentTaskOriginV2Schema,\n\toutcome: centerAgentTaskOutcomeSchema.nullable().optional(),\n\tphase: centerAgentTaskPhaseSchema.nullable().optional(),\n\trequesterUserId: identifierSchema.nullable(),\n\tstate: centerAgentTaskStateSchema.optional(),\n\tstatus: centerAgentTaskStatusSchema,\n\ttitle: taskTextSchema.max(160),\n\tupdatedAt: isoDateTimeSchema,\n\tversion: z.number().int().positive()\n}).superRefine((task, context) => {\n\tconst executionEvidence = task.executionEvidence ?? null;\n\tconst presentation = resolveCenterAgentTaskPresentation(task.status, executionEvidence);\n\tfor (const field of [\n\t\t\"outcome\",\n\t\t\"phase\",\n\t\t\"state\"\n\t]) if (task[field] !== void 0 && task[field] !== presentation[field]) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: `Task ${field} must match its canonical status projection.`,\n\t\tpath: [field]\n\t});\n\tvalidateCenterAgentTaskLifecycle(task, context);\n\tif (executionEvidence && (task.status !== \"running\" || executionEvidence.attemptGeneration !== task.activeAttemptGeneration)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Task executionEvidence must name the active running attempt.\",\n\t\tpath: [\"executionEvidence\"]\n\t});\n}).transform((task) => ({\n\t...task,\n\t...resolveCenterAgentTaskPresentation(task.status, task.executionEvidence ?? null)\n}));\nconst centerAgentTaskSchema = z.strictObject({\n\tactiveAttemptGeneration: z.number().int().positive().nullable(),\n\tcreatedAt: isoDateTimeSchema,\n\texecutionEvidence: centerAgentTaskExecutionEvidenceSchema.optional(),\n\tfinishedAt: isoDateTimeSchema.nullable(),\n\tgoal: taskTextSchema.max(CENTER_AGENT_TASK_GOAL_MAX_CHARS),\n\tid: identifierSchema,\n\torganizationId: identifierSchema,\n\torigin: centerAgentTaskOriginSchema,\n\toutcome: centerAgentTaskOutcomeSchema.nullable().optional(),\n\tphase: centerAgentTaskPhaseSchema.nullable().optional(),\n\trequesterUserId: identifierSchema.nullable(),\n\tstate: centerAgentTaskStateSchema.optional(),\n\tstatus: centerAgentTaskStatusSchema,\n\ttitle: taskTextSchema.max(160),\n\tupdatedAt: isoDateTimeSchema,\n\tversion: z.number().int().positive()\n}).superRefine((task, context) => {\n\tconst executionEvidence = task.executionEvidence ?? null;\n\tconst presentation = resolveCenterAgentTaskPresentation(task.status, executionEvidence);\n\tfor (const field of [\n\t\t\"outcome\",\n\t\t\"phase\",\n\t\t\"state\"\n\t]) if (task[field] !== void 0 && task[field] !== presentation[field]) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: `Task ${field} must match its canonical status projection.`,\n\t\tpath: [field]\n\t});\n\tvalidateCenterAgentTaskLifecycle(task, context);\n\tif (executionEvidence && (task.status !== \"running\" || executionEvidence.attemptGeneration !== task.activeAttemptGeneration)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Task executionEvidence must name the active running attempt.\",\n\t\tpath: [\"executionEvidence\"]\n\t});\n}).transform((task) => ({\n\t...task,\n\t...resolveCenterAgentTaskPresentation(task.status, task.executionEvidence ?? null)\n}));\nconst centerAgentTaskAttemptSchema = z.strictObject({\n\tcreatedAt: isoDateTimeSchema,\n\tfailureCode: z.string().trim().min(1).max(160).nullable(),\n\tfinishedAt: isoDateTimeSchema.nullable(),\n\tgeneration: z.number().int().positive(),\n\tid: identifierSchema,\n\tstartedAt: isoDateTimeSchema.nullable(),\n\tstatus: centerAgentTaskStatusSchema,\n\ttaskHandle: agentTaskHandleSchema,\n\ttaskId: identifierSchema\n}).superRefine((attempt, context) => {\n\tconst isQueued = attempt.status === \"queued\";\n\tconst isTerminal = isCenterAgentTaskTerminalStatus(attempt.status);\n\tif (!(isQueued && attempt.startedAt === null && attempt.finishedAt === null || !isQueued && attempt.startedAt !== null && (isTerminal ? attempt.finishedAt !== null : attempt.finishedAt === null))) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Attempt timestamps must match its status.\",\n\t\tpath: [\"status\"]\n\t});\n\tif (!(attempt.status === \"failed\" && attempt.failureCode !== null || attempt.status !== \"failed\" && attempt.failureCode === null)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Attempt failureCode must match its status.\",\n\t\tpath: [\"failureCode\"]\n\t});\n\tif (attempt.startedAt !== null && Date.parse(attempt.startedAt) < Date.parse(attempt.createdAt)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Attempt startedAt must not be before createdAt.\",\n\t\tpath: [\"startedAt\"]\n\t});\n\tif (attempt.startedAt !== null && attempt.finishedAt !== null && Date.parse(attempt.finishedAt) < Date.parse(attempt.startedAt)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Attempt finishedAt must not be before startedAt.\",\n\t\tpath: [\"finishedAt\"]\n\t});\n});\nconst centerAgentTaskEventKindSchema = z.enum([\n\t\"task_created\",\n\t\"requester_message\",\n\t\"center_agent_update\",\n\t\"needs_attention\",\n\t\"stop_requested\",\n\t\"task_succeeded\",\n\t\"task_failed\",\n\t\"task_stopped\"\n]);\nconst centerAgentTaskEventActorSchema = z.enum([\n\t\"requester\",\n\t\"center_agent\",\n\t\"system\"\n]);\nconst centerAgentTaskEventSchema = z.strictObject({\n\tactor: centerAgentTaskEventActorSchema,\n\tattemptGeneration: z.number().int().positive().nullable(),\n\tid: identifierSchema,\n\tkind: centerAgentTaskEventKindSchema,\n\toccurredAt: isoDateTimeSchema,\n\ttaskId: identifierSchema,\n\ttext: taskTextSchema.max(CENTER_AGENT_TASK_EVENT_TEXT_MAX_CHARS)\n});\nconst centerAgentTaskDetailSchema = z.strictObject({\n\tattempts: z.array(centerAgentTaskAttemptSchema),\n\tevents: z.array(centerAgentTaskEventSchema),\n\ttask: centerAgentTaskSchema\n});\nconst centerAgentTaskDetailResponseV1Schema = z.strictObject({\n\tattempts: z.array(centerAgentTaskAttemptSchema),\n\tevents: z.array(centerAgentTaskEventSchema),\n\ttask: centerAgentTaskResponseV1Schema\n});\nconst centerAgentTaskDetailResponseV2Schema = z.strictObject({\n\tattempts: z.array(centerAgentTaskAttemptSchema),\n\tevents: z.array(centerAgentTaskEventSchema),\n\ttask: centerAgentTaskResponseV2Schema\n});\nconst centerAgentCreateTaskToolRpcInputSchema = z.strictObject({\n\tcontext: openMeldRequestContextSchema,\n\tgoal: taskTextSchema.max(CENTER_AGENT_TASK_GOAL_MAX_CHARS),\n\tidempotencyKey: idempotencyKeySchema,\n\tspeakerMember: centerAgentToolSpeakerSchema,\n\tsubmissionId: identifierSchema,\n\ttitle: taskTextSchema.max(160)\n});\nconst createCenterAgentTaskResponseSchema = z.strictObject({ task: centerAgentTaskSchema });\nconst listCenterAgentTasksQuerySchema = z.strictObject({\n\tcursor: z.string().trim().min(1).max(1024).optional(),\n\tlimit: z.coerce.number().int().min(1).max(100).optional(),\n\tstatus: centerAgentTaskStatusSchema.optional()\n});\nconst listCenterAgentTasksResponseSchema = z.strictObject({\n\tnextCursor: z.string().trim().min(1).max(1024).nullable(),\n\torganizationId: identifierSchema,\n\ttasks: z.array(centerAgentTaskSchema)\n});\nconst listCenterAgentTasksResponseV1Schema = z.strictObject({\n\tnextCursor: z.string().trim().min(1).max(1024).nullable(),\n\torganizationId: identifierSchema,\n\ttasks: z.array(centerAgentTaskResponseV1Schema)\n});\nconst listCenterAgentTasksResponseV2Schema = z.strictObject({\n\tnextCursor: z.string().trim().min(1).max(1024).nullable(),\n\torganizationId: identifierSchema,\n\ttasks: z.array(centerAgentTaskResponseV2Schema)\n});\nconst centerAgentTaskRouteParamsSchema = z.strictObject({ taskId: identifierSchema });\nconst getCenterAgentTaskResponseSchema = centerAgentTaskDetailSchema;\nconst getCenterAgentTaskResponseV1Schema = centerAgentTaskDetailResponseV1Schema;\nconst getCenterAgentTaskResponseV2Schema = centerAgentTaskDetailResponseV2Schema;\nconst continueCenterAgentTaskBodySchema = z.strictObject({\n\texpectedVersion: z.number().int().positive(),\n\tidempotencyKey: idempotencyKeySchema,\n\ttext: taskTextSchema.max(CENTER_AGENT_TASK_EVENT_TEXT_MAX_CHARS)\n});\nconst stopCenterAgentTaskBodySchema = z.strictObject({ expectedVersion: z.number().int().positive() });\nconst retryCenterAgentTaskBodySchema = z.strictObject({\n\texpectedVersion: z.number().int().positive(),\n\tidempotencyKey: idempotencyKeySchema\n});\nconst listCenterAgentTasksRpcInputSchema = listCenterAgentTasksQuerySchema.extend({\n\tcontext: openMeldRequestContextSchema,\n\tresponseContractVersion: centerAgentTaskResponseContractVersionSchema.optional()\n});\nconst getCenterAgentTaskRpcInputSchema = centerAgentTaskRouteParamsSchema.extend({\n\tcontext: openMeldRequestContextSchema,\n\tresponseContractVersion: centerAgentTaskResponseContractVersionSchema.optional()\n});\nconst continueCenterAgentTaskRpcInputSchema = centerAgentTaskRouteParamsSchema.extend(continueCenterAgentTaskBodySchema.shape).extend({\n\tcontext: openMeldRequestContextSchema,\n\tresponseContractVersion: centerAgentTaskResponseContractVersionSchema.optional()\n});\nconst stopCenterAgentTaskRpcInputSchema = centerAgentTaskRouteParamsSchema.extend(stopCenterAgentTaskBodySchema.shape).extend({\n\tcontext: openMeldRequestContextSchema,\n\tresponseContractVersion: centerAgentTaskResponseContractVersionSchema.optional()\n});\nconst retryCenterAgentTaskRpcInputSchema = centerAgentTaskRouteParamsSchema.extend(retryCenterAgentTaskBodySchema.shape).extend({\n\tcontext: openMeldRequestContextSchema,\n\tresponseContractVersion: centerAgentTaskResponseContractVersionSchema.optional()\n});\nconst mutateCenterAgentTaskResponseSchema = centerAgentTaskDetailSchema;\nconst mutateCenterAgentTaskResponseV1Schema = centerAgentTaskDetailResponseV1Schema;\nconst mutateCenterAgentTaskResponseV2Schema = centerAgentTaskDetailResponseV2Schema;\nfunction resolveCenterAgentTaskPresentationV1(status) {\n\tif (status === \"running\") return {\n\t\toutcome: null,\n\t\tphase: \"working\",\n\t\tstate: \"active\"\n\t};\n\treturn resolveCenterAgentTaskPresentation(status);\n}\nfunction validateCenterAgentTaskLifecycle(task, context) {\n\tif (isCenterAgentTaskTerminalStatus(task.status) !== (task.finishedAt !== null)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Task finishedAt must match its terminal status.\",\n\t\tpath: [\"finishedAt\"]\n\t});\n\tif (task.status !== \"queued\" && task.activeAttemptGeneration === null) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"A non-queued task requires an active attempt generation.\",\n\t\tpath: [\"activeAttemptGeneration\"]\n\t});\n\tif (Date.parse(task.updatedAt) < Date.parse(task.createdAt)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Task updatedAt must not be before createdAt.\",\n\t\tpath: [\"updatedAt\"]\n\t});\n\tif (task.finishedAt !== null && Date.parse(task.finishedAt) < Date.parse(task.createdAt)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Task finishedAt must not be before createdAt.\",\n\t\tpath: [\"finishedAt\"]\n\t});\n}\nfunction isCenterAgentTaskTerminalStatus(status) {\n\treturn status === \"failed\" || status === \"stopped\" || status === \"succeeded\";\n}\n//#endregion\nexport { CENTER_AGENT_TASK_EVENT_TEXT_MAX_CHARS, CENTER_AGENT_TASK_GOAL_MAX_CHARS, CENTER_AGENT_TASK_LIST_DEFAULT_LIMIT, CENTER_AGENT_TASK_LIST_MAX_LIMIT, CENTER_AGENT_TASK_RESPONSE_CONTRACT_VERSION, CENTER_AGENT_TASK_RESPONSE_CONTRACT_VERSION_HEADER, CENTER_AGENT_TASK_TITLE_MAX_CHARS, centerAgentCreateTaskToolRpcInputSchema, centerAgentTaskAttemptSchema, centerAgentTaskDetailResponseV1Schema, centerAgentTaskDetailResponseV2Schema, centerAgentTaskDetailSchema, centerAgentTaskEventActorSchema, centerAgentTaskEventKindSchema, centerAgentTaskEventSchema, centerAgentTaskExecutionEvidenceSchema, centerAgentTaskLocalAgentSourceSchema, centerAgentTaskOriginSchema, centerAgentTaskOutcomeSchema, centerAgentTaskPhaseSchema, centerAgentTaskRequesterSchema, centerAgentTaskResponseContractVersionHeaderSchema, centerAgentTaskResponseContractVersionSchema, centerAgentTaskResponseV1Schema, centerAgentTaskResponseV2Schema, centerAgentTaskRouteParamsSchema, centerAgentTaskSchema, centerAgentTaskStateSchema, centerAgentTaskStatusSchema, continueCenterAgentTaskBodySchema, continueCenterAgentTaskRpcInputSchema, createCenterAgentTaskResponseSchema, getCenterAgentTaskResponseSchema, getCenterAgentTaskResponseV1Schema, getCenterAgentTaskResponseV2Schema, getCenterAgentTaskRpcInputSchema, isCenterAgentTaskTerminalStatus, listCenterAgentTasksQuerySchema, listCenterAgentTasksResponseSchema, listCenterAgentTasksResponseV1Schema, listCenterAgentTasksResponseV2Schema, listCenterAgentTasksRpcInputSchema, mutateCenterAgentTaskResponseSchema, mutateCenterAgentTaskResponseV1Schema, mutateCenterAgentTaskResponseV2Schema, resolveCenterAgentTaskPresentation, retryCenterAgentTaskBodySchema, retryCenterAgentTaskRpcInputSchema, stopCenterAgentTaskBodySchema, stopCenterAgentTaskRpcInputSchema };\n\n//# sourceMappingURL=center-agent-tasks.js.map","import { daemonServiceLaneSchema } from \"../daemon/service-contract.js\";\nimport { START_BOUNDED_ID_SCHEMA } from \"../start/shared.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/current-device-target.ts\nconst currentDeviceTargetDeviceIdSchema = START_BOUNDED_ID_SCHEMA;\nconst currentDeviceTargetResolvedSchema = z.strictObject({\n\tavailability: z.literal(\"resolved\"),\n\tconnectedComputerId: START_BOUNDED_ID_SCHEMA.optional(),\n\tdeviceId: currentDeviceTargetDeviceIdSchema,\n\truntimeLane: daemonServiceLaneSchema\n});\nconst currentDeviceTargetMissingSchema = z.strictObject({\n\tavailability: z.literal(\"missing\"),\n\treasonCodes: z.array(z.string().trim().min(1).max(256)).optional()\n});\nconst currentDeviceTargetResponseSchema = z.discriminatedUnion(\"availability\", [currentDeviceTargetResolvedSchema, currentDeviceTargetMissingSchema]);\nconst localRuntimeEnrollmentBodySchema = z.strictObject({\n\tconnectedComputerId: START_BOUNDED_ID_SCHEMA.optional(),\n\truntimeLane: daemonServiceLaneSchema\n});\nconst localRuntimeEnrollmentResponseSchema = z.strictObject({\n\tconnectedComputerId: START_BOUNDED_ID_SCHEMA.optional(),\n\tdeviceId: currentDeviceTargetDeviceIdSchema,\n\truntimeLane: daemonServiceLaneSchema\n});\nconst forgetCurrentComputerStatusSchema = z.enum([\"forgotten\", \"already_missing\"]);\nconst forgetCurrentComputerResponseSchema = z.strictObject({\n\tstatus: forgetCurrentComputerStatusSchema,\n\tforgottenDeviceId: START_BOUNDED_ID_SCHEMA.nullable(),\n\tcurrentDeviceTarget: currentDeviceTargetMissingSchema\n});\nconst forgetComputerRouteParamsSchema = z.strictObject({ deviceId: currentDeviceTargetDeviceIdSchema });\nconst forgetComputerResponseSchema = z.strictObject({\n\tstatus: forgetCurrentComputerStatusSchema,\n\tforgottenDeviceId: START_BOUNDED_ID_SCHEMA.nullable(),\n\tcurrentDeviceTarget: currentDeviceTargetResponseSchema\n});\n//#endregion\nexport { currentDeviceTargetDeviceIdSchema, currentDeviceTargetMissingSchema, currentDeviceTargetResolvedSchema, currentDeviceTargetResponseSchema, forgetComputerResponseSchema, forgetComputerRouteParamsSchema, forgetCurrentComputerResponseSchema, forgetCurrentComputerStatusSchema, localRuntimeEnrollmentBodySchema, localRuntimeEnrollmentResponseSchema };\n\n//# sourceMappingURL=current-device-target.js.map","import { localRuntimeDeviceTypeSchema, localRuntimePlatformFamilySchema } from \"./local-runtimes.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/device-metadata.ts\nconst observedDeviceTypeSchema = localRuntimeDeviceTypeSchema;\nconst observedDeviceMetadataSchema = z.strictObject({\n\tobservedDisplayName: z.string().trim().min(1).max(200).nullable(),\n\tplatformFamily: localRuntimePlatformFamilySchema,\n\tosVersion: z.string().trim().min(1).max(120).nullable(),\n\tdeviceType: observedDeviceTypeSchema,\n\tobservedAtMs: z.number().int().nonnegative()\n});\nconst writeCurrentDeviceObservedMetadataBodySchema = z.strictObject({ metadata: observedDeviceMetadataSchema });\nconst writeCurrentDeviceObservedMetadataResponseSchema = writeCurrentDeviceObservedMetadataBodySchema;\n//#endregion\nexport { observedDeviceMetadataSchema, observedDeviceTypeSchema, writeCurrentDeviceObservedMetadataBodySchema, writeCurrentDeviceObservedMetadataResponseSchema };\n\n//# sourceMappingURL=device-metadata.js.map","import { openMeldRequestContextSchema } from \"../daemon/profile-identity.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/inbox.ts\nconst INBOX_TITLE_MAX_CHARS = 160;\nconst INBOX_PREVIEW_MAX_CHARS = 500;\nconst INBOX_CONTEXT_LABEL_MAX_CHARS = 160;\nconst INBOX_LIST_DEFAULT_LIMIT = 40;\nconst INBOX_LIST_MAX_LIMIT = 100;\nconst INBOX_SPACE_SUMMARY_MAX_SPACES = 500;\nconst identifierSchema = z.string().trim().min(1).max(256);\nconst timestampMsSchema = z.number().int().nonnegative();\nconst isoDateTimeSchema = z.iso.datetime({ offset: true });\nconst titleSchema = z.string().trim().min(1).max(160);\nconst previewSchema = z.string().trim().min(1).max(500);\nconst contextLabelSchema = z.string().trim().min(1).max(160);\nconst inboxViewSchema = z.enum([\n\t\"all\",\n\t\"unread\",\n\t\"needs_action\",\n\t\"updates\"\n]);\nconst inboxAttentionSchema = z.enum([\"update\", \"action_required\"]);\nconst inboxImportanceSchema = z.enum([\"normal\", \"urgent\"]);\nconst inboxResolutionStatusSchema = z.enum([\n\t\"not_applicable\",\n\t\"open\",\n\t\"resolved\"\n]);\nconst inboxItemKindSchema = z.enum([\n\t\"space_message\",\n\t\"space_reference\",\n\t\"agent_reply\",\n\t\"agent_interaction\",\n\t\"wake_outcome\",\n\t\"center_agent_update\",\n\t\"center_agent_task\",\n\t\"document_review\",\n\t\"system_issue\"\n]);\nconst inboxSourceKindSchema = z.enum([\n\t\"space_signal\",\n\t\"runtime_coordinator_interaction\",\n\t\"remote_agent_native_delivery\",\n\t\"remote_agent_native_interaction\",\n\t\"center_agent_task_event\",\n\t\"organization_document_draft\",\n\t\"system_attention_event\"\n]);\nconst centerAgentAttentionImpactSchema = z.enum([\n\t\"response_needed\",\n\t\"work_blocked\",\n\t\"material_failure_risk\"\n]);\nconst centerAgentRequestMemberAttentionBodySchema = z.strictObject({\n\timpact: centerAgentAttentionImpactSchema,\n\tprompt: previewSchema,\n\tsubmissionId: identifierSchema,\n\ttitle: titleSchema\n});\nconst centerAgentRequestMemberAttentionResponseSchema = z.strictObject({\n\timportance: inboxImportanceSchema,\n\tinstruction: z.string().trim().min(1).max(500),\n\torganizationId: identifierSchema,\n\trequestId: identifierSchema\n});\nconst centerAgentInboxSourceTargetSchema = z.strictObject({\n\tkind: z.literal(\"center_agent\"),\n\tsignalId: identifierSchema.optional(),\n\tspaceId: identifierSchema.optional()\n}).superRefine((target, context) => {\n\tif (target.signalId === void 0 !== (target.spaceId === void 0)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Center Agent Inbox targets must include both spaceId and signalId.\"\n\t});\n});\nconst inboxSourceTargetSchema = z.discriminatedUnion(\"kind\", [\n\tz.strictObject({\n\t\tkind: z.literal(\"space\"),\n\t\tsignalId: identifierSchema.optional(),\n\t\tspaceId: identifierSchema,\n\t\tthreadRootSignalId: identifierSchema.optional()\n\t}),\n\tz.strictObject({\n\t\tinteractionId: identifierSchema,\n\t\tkind: z.literal(\"agent_interaction\"),\n\t\truntimeCoordinatorExecutionId: identifierSchema,\n\t\tsourceSignalId: identifierSchema.optional(),\n\t\tspaceId: identifierSchema\n\t}),\n\tz.strictObject({\n\t\tdocumentId: identifierSchema,\n\t\tkind: z.literal(\"organization_document\")\n\t}),\n\tz.strictObject({\n\t\tkind: z.literal(\"center_agent_task\"),\n\t\ttaskId: identifierSchema\n\t}),\n\tcenterAgentInboxSourceTargetSchema,\n\tz.strictObject({\n\t\tkind: z.literal(\"settings\"),\n\t\tsection: z.enum([\"computers\", \"notifications\"])\n\t})\n]);\nconst inboxItemSchema = z.strictObject({\n\tattention: inboxAttentionSchema,\n\tcontextLabel: contextLabelSchema.nullable(),\n\tcreatedAt: isoDateTimeSchema,\n\tid: identifierSchema,\n\timportance: inboxImportanceSchema,\n\tkind: inboxItemKindSchema,\n\toccurredAt: isoDateTimeSchema,\n\torganizationId: identifierSchema,\n\tpreview: previewSchema,\n\treadAt: isoDateTimeSchema.nullable(),\n\trecipientUserId: identifierSchema,\n\tresolutionStatus: inboxResolutionStatusSchema,\n\tsourceTarget: inboxSourceTargetSchema,\n\ttitle: titleSchema,\n\tupdatedAt: isoDateTimeSchema\n}).superRefine((item, context) => {\n\tif (!(item.attention === \"update\" ? item.resolutionStatus === \"not_applicable\" : item.resolutionStatus === \"open\" || item.resolutionStatus === \"resolved\")) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Inbox resolution status must match its attention class.\",\n\t\tpath: [\"resolutionStatus\"]\n\t});\n});\nconst listInboxItemsQuerySchema = z.strictObject({\n\tcursor: z.string().trim().min(1).max(1024).optional(),\n\tlimit: z.coerce.number().int().min(1).max(100).optional(),\n\tview: inboxViewSchema.optional()\n});\nconst listInboxItemsResponseSchema = z.strictObject({\n\titems: z.array(inboxItemSchema),\n\tnextCursor: z.string().min(1).max(1024).nullable(),\n\torganizationId: identifierSchema\n});\nconst inboxSummaryResponseSchema = z.strictObject({\n\torganizationId: identifierSchema,\n\ttotalUnreadCount: z.number().int().nonnegative(),\n\tunresolvedActionCount: z.number().int().nonnegative()\n});\nconst centerAgentInboxSummaryResponseSchema = z.strictObject({\n\torganizationId: identifierSchema,\n\tunreadCount: z.number().int().nonnegative()\n});\nconst spaceInboxSummaryItemSchema = z.strictObject({\n\tlatestUnreadOccurredAtMs: timestampMsSchema,\n\tspaceId: identifierSchema,\n\tunreadCount: z.number().int().positive()\n});\nconst spaceInboxSummaryResponseSchema = z.strictObject({\n\torganizationId: identifierSchema,\n\tspaces: z.array(spaceInboxSummaryItemSchema).max(500)\n});\nconst markCenterAgentInboxReadThroughBodySchema = z.strictObject({\n\tspaceId: identifierSchema,\n\tthroughOccurredAtMs: timestampMsSchema\n});\nconst markCenterAgentInboxReadThroughResponseSchema = z.strictObject({\n\tmarkedReadCount: z.number().int().nonnegative(),\n\treadThroughAt: isoDateTimeSchema\n});\nconst markSpaceInboxReadThroughBodySchema = z.strictObject({\n\tspaceId: identifierSchema,\n\tthroughOccurredAtMs: timestampMsSchema\n});\nconst markSpaceInboxReadThroughResponseSchema = z.strictObject({\n\tmarkedReadCount: z.number().int().nonnegative(),\n\treadThroughAt: isoDateTimeSchema\n});\nconst inboxNotificationPreferencesResponseSchema = z.strictObject({\n\tupdatedAt: isoDateTimeSchema.nullable(),\n\turgentEmailEnabled: z.boolean()\n});\nconst updateInboxNotificationPreferencesBodySchema = z.strictObject({ urgentEmailEnabled: z.boolean() });\nconst inboxItemRouteParamsSchema = z.strictObject({ itemId: identifierSchema });\nconst getInboxItemResponseSchema = z.strictObject({ item: inboxItemSchema });\nconst dismissInboxItemResponseSchema = z.strictObject({ dismissedItemId: identifierSchema });\nconst markInboxItemReadBodySchema = z.strictObject({ read: z.boolean() });\nconst markInboxItemReadResponseSchema = z.strictObject({ item: inboxItemSchema });\nconst markAllInboxItemsReadResponseSchema = z.strictObject({ markedReadCount: z.number().int().nonnegative() });\nconst inboxSourceCandidateSchema = z.strictObject({\n\tattention: inboxAttentionSchema,\n\tcontextLabel: contextLabelSchema.nullable(),\n\timportance: inboxImportanceSchema,\n\tkind: inboxItemKindSchema,\n\toccurredAtMs: timestampMsSchema,\n\torganizationId: identifierSchema,\n\tpreview: previewSchema,\n\trecipientUserId: identifierSchema,\n\tsourceKey: identifierSchema,\n\tsourceKind: inboxSourceKindSchema,\n\tsourceTarget: inboxSourceTargetSchema,\n\ttitle: titleSchema\n});\nconst listInboxItemsRpcInputSchema = listInboxItemsQuerySchema.extend({ context: openMeldRequestContextSchema });\nconst getInboxSummaryRpcInputSchema = z.strictObject({ context: openMeldRequestContextSchema });\nconst getCenterAgentInboxSummaryRpcInputSchema = z.strictObject({ context: openMeldRequestContextSchema });\nconst getSpaceInboxSummaryRpcInputSchema = z.strictObject({ context: openMeldRequestContextSchema });\nconst markCenterAgentInboxReadThroughRpcInputSchema = markCenterAgentInboxReadThroughBodySchema.extend({ context: openMeldRequestContextSchema });\nconst markSpaceInboxReadThroughRpcInputSchema = markSpaceInboxReadThroughBodySchema.extend({ context: openMeldRequestContextSchema });\nconst getInboxItemRpcInputSchema = inboxItemRouteParamsSchema.extend({ context: openMeldRequestContextSchema });\nconst dismissInboxItemRpcInputSchema = inboxItemRouteParamsSchema.extend({ context: openMeldRequestContextSchema });\nconst markInboxItemReadRpcInputSchema = markInboxItemReadBodySchema.extend({\n\tcontext: openMeldRequestContextSchema,\n\titemId: identifierSchema\n});\nconst markAllInboxItemsReadRpcInputSchema = z.strictObject({ context: openMeldRequestContextSchema });\nconst getInboxNotificationPreferencesRpcInputSchema = z.strictObject({ context: openMeldRequestContextSchema });\nconst updateInboxNotificationPreferencesRpcInputSchema = updateInboxNotificationPreferencesBodySchema.extend({ context: openMeldRequestContextSchema });\nconst centerAgentRequestMemberAttentionRpcInputSchema = centerAgentRequestMemberAttentionBodySchema.extend({ context: openMeldRequestContextSchema });\n//#endregion\nexport { INBOX_CONTEXT_LABEL_MAX_CHARS, INBOX_LIST_DEFAULT_LIMIT, INBOX_LIST_MAX_LIMIT, INBOX_PREVIEW_MAX_CHARS, INBOX_SPACE_SUMMARY_MAX_SPACES, INBOX_TITLE_MAX_CHARS, centerAgentAttentionImpactSchema, centerAgentInboxSummaryResponseSchema, centerAgentRequestMemberAttentionBodySchema, centerAgentRequestMemberAttentionResponseSchema, centerAgentRequestMemberAttentionRpcInputSchema, dismissInboxItemResponseSchema, dismissInboxItemRpcInputSchema, getCenterAgentInboxSummaryRpcInputSchema, getInboxItemResponseSchema, getInboxItemRpcInputSchema, getInboxNotificationPreferencesRpcInputSchema, getInboxSummaryRpcInputSchema, getSpaceInboxSummaryRpcInputSchema, inboxAttentionSchema, inboxImportanceSchema, inboxItemKindSchema, inboxItemRouteParamsSchema, inboxItemSchema, inboxNotificationPreferencesResponseSchema, inboxResolutionStatusSchema, inboxSourceCandidateSchema, inboxSourceKindSchema, inboxSourceTargetSchema, inboxSummaryResponseSchema, inboxViewSchema, listInboxItemsQuerySchema, listInboxItemsResponseSchema, listInboxItemsRpcInputSchema, markAllInboxItemsReadResponseSchema, markAllInboxItemsReadRpcInputSchema, markCenterAgentInboxReadThroughBodySchema, markCenterAgentInboxReadThroughResponseSchema, markCenterAgentInboxReadThroughRpcInputSchema, markInboxItemReadBodySchema, markInboxItemReadResponseSchema, markInboxItemReadRpcInputSchema, markSpaceInboxReadThroughBodySchema, markSpaceInboxReadThroughResponseSchema, markSpaceInboxReadThroughRpcInputSchema, spaceInboxSummaryItemSchema, spaceInboxSummaryResponseSchema, updateInboxNotificationPreferencesBodySchema, updateInboxNotificationPreferencesRpcInputSchema };\n\n//# sourceMappingURL=inbox.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/http/list-signals-query.ts\nconst CATCHUP_DEFAULT_LIMIT = 200;\nconst CATCHUP_MAX_LIMIT = 500;\nconst MAX_DATE_TIMESTAMP_MS = 864e13;\nconst NON_NEGATIVE_INT_RE = /^\\d+$/;\nconst SIGNAL_TYPE_SET = /* @__PURE__ */ new Set([\n\t\"signal.text\",\n\t\"signal.status\",\n\t\"signal.system_notice\"\n]);\nconst listSignalsQueryInputSchema = z.strictObject({\n\tafterTs: z.string().nullable(),\n\tcursor: z.string().nullable(),\n\tlimit: z.string().nullable(),\n\trecent: z.string().nullable(),\n\tafterSignalId: z.string().nullable(),\n\taroundSignalId: z.string().nullable(),\n\tbeforeCount: z.string().nullable(),\n\tafterCount: z.string().nullable(),\n\tfromProfileIds: z.array(z.string()),\n\tsignalTypes: z.array(z.string()),\n\thasLimit: z.boolean()\n});\nfunction readListSignalsQueryRawValues(searchParams) {\n\treturn {\n\t\tafterTs: searchParams.get(\"afterTs\"),\n\t\tcursor: searchParams.get(\"cursor\"),\n\t\tlimit: searchParams.get(\"limit\"),\n\t\trecent: searchParams.get(\"recent\"),\n\t\tafterSignalId: searchParams.get(\"afterSignalId\"),\n\t\taroundSignalId: searchParams.get(\"aroundSignalId\"),\n\t\tbeforeCount: searchParams.get(\"beforeCount\"),\n\t\tafterCount: searchParams.get(\"afterCount\"),\n\t\tfromProfileIds: searchParams.getAll(\"fromProfileId\"),\n\t\tsignalTypes: searchParams.getAll(\"signalType\"),\n\t\thasLimit: searchParams.has(\"limit\")\n\t};\n}\nconst parseOptionalNonNegativeInt = (value) => {\n\tif (value === null) return null;\n\tconst normalized = value.trim();\n\tif (normalized === \"\") return null;\n\tif (!NON_NEGATIVE_INT_RE.test(normalized)) return null;\n\tconst parsed = Number.parseInt(normalized, 10);\n\tif (!Number.isFinite(parsed) || parsed < 0) return null;\n\treturn parsed;\n};\nconst hasNonEmptyQueryValue = (value) => value !== null && value.trim() !== \"\";\n/** `null` and `0` both map to default page size; other values are capped. */\nconst parseLimit = (parsed) => {\n\tif (parsed === null || parsed === 0) return CATCHUP_DEFAULT_LIMIT;\n\treturn Math.min(parsed, CATCHUP_MAX_LIMIT);\n};\nconst normalizeCursor = (value) => {\n\tconst cursor = String(value ?? \"\").trim();\n\treturn cursor.length > 0 ? cursor : null;\n};\nconst normalizeIdentifier = (value) => {\n\tconst normalized = String(value ?? \"\").trim();\n\treturn normalized.length > 0 ? normalized : null;\n};\nconst parseRecentQuery = (value) => {\n\tconst normalized = String(value ?? \"\").trim().toLowerCase();\n\treturn normalized === \"1\" || normalized === \"true\";\n};\nconst normalizeUniqueStrings = (values) => {\n\tconst deduped = /* @__PURE__ */ new Set();\n\tfor (const value of values) {\n\t\tconst normalized = String(value ?? \"\").trim();\n\t\tif (normalized.length > 0) deduped.add(normalized);\n\t}\n\treturn [...deduped];\n};\nconst normalizeSignalTypes = (values) => {\n\tconst deduped = /* @__PURE__ */ new Set();\n\tfor (const value of values) {\n\t\tconst normalized = String(value ?? \"\").trim();\n\t\tif (SIGNAL_TYPE_SET.has(normalized)) deduped.add(normalized);\n\t}\n\treturn [...deduped];\n};\nconst addQueryIssue = (ctx, path, message) => {\n\tctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage,\n\t\tpath: [path]\n\t});\n};\nconst buildListSignalsQueryValidationState = (value) => ({\n\tafterTs: parseOptionalNonNegativeInt(value.afterTs),\n\tparsedLimit: parseOptionalNonNegativeInt(value.limit),\n\tafterSignalId: normalizeIdentifier(value.afterSignalId),\n\taroundSignalId: normalizeIdentifier(value.aroundSignalId),\n\tbeforeCount: parseOptionalNonNegativeInt(value.beforeCount),\n\tafterCount: parseOptionalNonNegativeInt(value.afterCount),\n\trecentOnly: parseRecentQuery(value.recent),\n\tcursor: normalizeCursor(value.cursor)\n});\nfunction resolveListSignalsReadQuerySemantics(input) {\n\tconst issues = [];\n\tif (input.afterSignalId && input.aroundSignalId) issues.push({\n\t\tpath: \"afterSignalId\",\n\t\tmessage: \"Cannot use both afterSignalId and aroundSignalId.\"\n\t});\n\tif (input.recentOnly && (input.afterSignalId || input.aroundSignalId)) issues.push({\n\t\tpath: \"recent\",\n\t\tmessage: \"Recent history mode cannot be combined with signal anchors.\"\n\t});\n\tif ((input.beforeCount !== null || input.afterCount !== null) && !input.aroundSignalId) issues.push({\n\t\tpath: input.beforeCount === null ? \"afterCount\" : \"beforeCount\",\n\t\tmessage: \"beforeCount and afterCount require aroundSignalId.\"\n\t});\n\tif (input.aroundSignalId && input.hasExplicitLimit) issues.push({\n\t\tpath: \"aroundSignalId\",\n\t\tmessage: \"aroundSignalId cannot be combined with limit.\"\n\t});\n\tif (input.aroundSignalId && (input.beforeCount ?? 0) <= 0 && (input.afterCount ?? 0) <= 0) issues.push({\n\t\tpath: \"aroundSignalId\",\n\t\tmessage: \"aroundSignalId requires beforeCount > 0 or afterCount > 0.\"\n\t});\n\tif (issues.length > 0) return {\n\t\tok: false,\n\t\tissues\n\t};\n\treturn {\n\t\tok: true,\n\t\tvalue: {\n\t\t\trecentOnly: input.recentOnly,\n\t\t\tincludeLimit: input.hasExplicitLimit,\n\t\t\tlimit: input.afterSignalId && input.limit === 0 ? 0 : parseLimit(input.limit),\n\t\t\tafterSignalId: input.afterSignalId,\n\t\t\taroundSignalId: input.aroundSignalId,\n\t\t\tbeforeCount: input.beforeCount,\n\t\t\tafterCount: input.afterCount\n\t\t}\n\t};\n}\nfunction normalizeListSignalsReadQuerySemantics(input) {\n\tconst result = resolveListSignalsReadQuerySemantics(input);\n\tif (!result.ok) throw new Error(result.issues[0]?.message ?? \"Invalid list signals query.\");\n\treturn result.value;\n}\nconst validateListSignalsPrimitiveValues = (value, state, ctx) => {\n\tif (hasNonEmptyQueryValue(value.afterTs) && (state.afterTs === null || state.afterTs > MAX_DATE_TIMESTAMP_MS)) addQueryIssue(ctx, \"afterTs\", \"Invalid afterTs\");\n\tif (hasNonEmptyQueryValue(value.limit) && state.parsedLimit === null) addQueryIssue(ctx, \"limit\", \"Invalid limit\");\n\tif (value.afterSignalId !== null && state.afterSignalId === null) addQueryIssue(ctx, \"afterSignalId\", \"Invalid afterSignalId\");\n\tif (value.aroundSignalId !== null && state.aroundSignalId === null) addQueryIssue(ctx, \"aroundSignalId\", \"Invalid aroundSignalId\");\n\tif (hasNonEmptyQueryValue(value.beforeCount) && state.beforeCount === null) addQueryIssue(ctx, \"beforeCount\", \"Invalid beforeCount\");\n\tif (hasNonEmptyQueryValue(value.afterCount) && state.afterCount === null) addQueryIssue(ctx, \"afterCount\", \"Invalid afterCount\");\n};\nconst validateListSignalsSignalTypes = (signalTypes, ctx) => {\n\tfor (const signalType of signalTypes) {\n\t\tconst normalized = signalType.trim();\n\t\tif (normalized.length === 0 || !SIGNAL_TYPE_SET.has(normalized)) {\n\t\t\taddQueryIssue(ctx, \"signalTypes\", \"Invalid signalType\");\n\t\t\tbreak;\n\t\t}\n\t}\n};\nconst validateListSignalsQueryCombinations = (value, state, ctx) => {\n\tif ((state.afterSignalId || state.aroundSignalId) && (state.afterTs !== null || state.cursor !== null)) addQueryIssue(ctx, state.afterSignalId ? \"afterSignalId\" : \"aroundSignalId\", \"signal anchors cannot be combined with afterTs or cursor\");\n\tconst resolvedSemantics = resolveListSignalsReadQuerySemantics({\n\t\trecentOnly: state.recentOnly,\n\t\thasExplicitLimit: value.hasLimit,\n\t\tlimit: state.parsedLimit,\n\t\tafterSignalId: state.afterSignalId,\n\t\taroundSignalId: state.aroundSignalId,\n\t\tbeforeCount: state.beforeCount,\n\t\tafterCount: state.afterCount\n\t});\n\tif (!resolvedSemantics.ok) for (const issue of resolvedSemantics.issues) addQueryIssue(ctx, issue.path, issue.message);\n};\n/**\n* Normalizes list-signals query into one execution shape.\n* `hasLimit` keeps cursor-response mode explicit even without cursor/afterTs.\n*/\nconst listSignalsQuerySchema = listSignalsQueryInputSchema.superRefine((value, ctx) => {\n\tconst state = buildListSignalsQueryValidationState(value);\n\tvalidateListSignalsPrimitiveValues(value, state, ctx);\n\tvalidateListSignalsSignalTypes(value.signalTypes, ctx);\n\tvalidateListSignalsQueryCombinations(value, state, ctx);\n}).transform((value) => {\n\tconst afterTs = parseOptionalNonNegativeInt(value.afterTs);\n\tconst cursor = normalizeCursor(value.cursor);\n\tconst afterSignalId = normalizeIdentifier(value.afterSignalId);\n\tconst aroundSignalId = normalizeIdentifier(value.aroundSignalId);\n\tconst parsedLimit = parseOptionalNonNegativeInt(value.limit);\n\tconst semantics = normalizeListSignalsReadQuerySemantics({\n\t\trecentOnly: parseRecentQuery(value.recent),\n\t\thasExplicitLimit: value.hasLimit,\n\t\tlimit: parsedLimit,\n\t\tafterSignalId,\n\t\taroundSignalId,\n\t\tbeforeCount: parseOptionalNonNegativeInt(value.beforeCount),\n\t\tafterCount: parseOptionalNonNegativeInt(value.afterCount)\n\t});\n\tconst useCursorResponse = afterTs !== null || cursor !== null || value.hasLimit;\n\treturn {\n\t\tafterTs,\n\t\tcursor,\n\t\tlimit: semantics.limit,\n\t\trecentOnly: semantics.recentOnly,\n\t\tuseCursorResponse,\n\t\tafterSignalId: semantics.afterSignalId,\n\t\taroundSignalId: semantics.aroundSignalId,\n\t\tbeforeCount: semantics.beforeCount,\n\t\tafterCount: semantics.afterCount,\n\t\tfromProfileIds: normalizeUniqueStrings(value.fromProfileIds),\n\t\tsignalTypes: normalizeSignalTypes(value.signalTypes)\n\t};\n});\n//#endregion\nexport { listSignalsQuerySchema, normalizeListSignalsReadQuerySemantics, readListSignalsQueryRawValues, resolveListSignalsReadQuerySemantics };\n\n//# sourceMappingURL=list-signals-query.js.map","import { agentProfileBindingAgentControllerCollaborationModeSchema, agentProfileBindingAgentControllerPermissionModeSchema, agentProfileBindingModelSelectionSchema, agentProfileBindingOpenCodePermissionSchema } from \"./agent-profile-binding.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/local-runtime-expected-routes.ts\nconst boundedIdentifierSchema = z.string().trim().min(1).max(256);\nconst runtimeIdentifierSchema = z.string().trim().min(1).max(512);\nconst reasonCodeSchema = z.string().trim().min(1).max(256);\nconst ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });\nconst getLocalRuntimeExpectedRoutesQuerySchema = z.strictObject({\n\tcontractVersion: z.enum([\"v2\", \"v3\"]).optional(),\n\tdeviceId: boundedIdentifierSchema,\n\tlane: boundedIdentifierSchema\n});\nconst localRuntimeExpectedRouteSchema = z.strictObject({\n\tagentProfileId: boundedIdentifierSchema,\n\tbindingId: boundedIdentifierSchema,\n\tbindingState: z.literal(\"enabled_primary\"),\n\tconfigurationRevision: z.number().int().positive().optional(),\n\texecutionTarget: z.strictObject({\n\t\tagentControllerConversationId: z.string().trim().min(1).max(512).nullable(),\n\t\tagentControllerRef: boundedIdentifierSchema,\n\t\topenMeldServiceRuntimeId: runtimeIdentifierSchema\n\t}),\n\tmodelSelection: agentProfileBindingModelSelectionSchema.optional(),\n\tagentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),\n\tagentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),\n\topenCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),\n\tprofileName: z.string().trim().min(1).max(256).nullable(),\n\treasonCodes: z.array(reasonCodeSchema),\n\troutable: z.boolean()\n});\nconst localRuntimeExpectedRouteExclusionSchema = z.strictObject({\n\tagentProfileId: boundedIdentifierSchema,\n\treasonCode: z.enum([\n\t\t\"profile.inactive\",\n\t\t\"binding.other_runtime\",\n\t\t\"binding.not_routable\"\n\t])\n});\nconst getLocalRuntimeExpectedRoutesResponseSchema = z.strictObject({\n\topenMeldServiceRuntimeId: runtimeIdentifierSchema.nullable(),\n\texcludedProfiles: z.array(localRuntimeExpectedRouteExclusionSchema).max(400),\n\texpectedRoutes: z.array(localRuntimeExpectedRouteSchema).max(200),\n\tgeneratedAt: ISO_DATE_TIME_SCHEMA,\n\truntimeResolution: z.enum([\n\t\t\"resolved\",\n\t\t\"missing\",\n\t\t\"conflict\"\n\t])\n});\n//#endregion\nexport { getLocalRuntimeExpectedRoutesQuerySchema, getLocalRuntimeExpectedRoutesResponseSchema, localRuntimeExpectedRouteExclusionSchema, localRuntimeExpectedRouteSchema };\n\n//# sourceMappingURL=local-runtime-expected-routes.js.map","import { IDENTITY_IMAGE_MAX_DIMENSION, IDENTITY_IMAGE_MAX_PIXELS, IDENTITY_IMAGE_MAX_SIZE_BYTES, IDENTITY_IMAGE_OUTPUT_MIME_TYPE, identityImageMimeTypeSchema } from \"./identity-image.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/organization-logo.ts\nconst ORGANIZATION_LOGO_MAX_SIZE_BYTES = IDENTITY_IMAGE_MAX_SIZE_BYTES;\nconst ORGANIZATION_LOGO_MAX_DIMENSION = IDENTITY_IMAGE_MAX_DIMENSION;\nconst ORGANIZATION_LOGO_MAX_PIXELS = IDENTITY_IMAGE_MAX_PIXELS;\nconst ORGANIZATION_LOGO_OUTPUT_SIZE = 512;\nconst ORGANIZATION_LOGO_OUTPUT_MIME_TYPE = IDENTITY_IMAGE_OUTPUT_MIME_TYPE;\nconst ORGANIZATION_LOGO_ROUTE = \"/v1/organizations/current/logo\";\nconst ORGANIZATION_LOGO_PUBLIC_ROUTE_PREFIX = \"/v1/organization-logos\";\nconst organizationLogoMimeTypeSchema = identityImageMimeTypeSchema;\nconst organizationLogoOrganizationIdSchema = z.string().trim().min(1).max(255).regex(/^[a-zA-Z0-9_-]+$/u);\nconst organizationLogoAssetIdSchema = z.uuid();\nconst organizationLogoStoredUrlSchema = z.string().trim().min(1).max(2048);\nconst organizationLogoReferenceSchema = z.strictObject({\n\tassetId: organizationLogoAssetIdSchema,\n\turl: z.url().max(2048)\n});\nconst organizationLogoPrepareRpcInputSchema = z.strictObject({\n\tactorUserId: z.string().trim().min(1).max(255),\n\torganizationId: organizationLogoOrganizationIdSchema\n});\nconst organizationLogoCommitRpcInputSchema = z.strictObject({\n\tactorUserId: z.string().trim().min(1).max(255),\n\texpectedLogo: organizationLogoStoredUrlSchema.nullable(),\n\tnextLogo: organizationLogoReferenceSchema.nullable(),\n\torganizationId: organizationLogoOrganizationIdSchema\n});\nconst organizationLogoMutationErrorCodeSchema = z.enum([\n\t\"organization.logo.conflict\",\n\t\"organization.logo.forbidden\",\n\t\"organization.logo.internal_error\",\n\t\"organization.logo.invalid_input\",\n\t\"organization.logo.invalid_reference\",\n\t\"organization.logo.metadata_invalid\",\n\t\"organization.logo.not_found\",\n\t\"organization.logo.personal_unsupported\"\n]);\nconst organizationLogoMutationFailureSchema = z.strictObject({\n\tcode: organizationLogoMutationErrorCodeSchema,\n\tmessage: z.string().trim().min(1),\n\tok: z.literal(false)\n});\nconst organizationLogoPrepareRpcResponseSchema = z.discriminatedUnion(\"ok\", [z.strictObject({\n\tcurrentLogo: organizationLogoStoredUrlSchema.nullable(),\n\tok: z.literal(true)\n}), organizationLogoMutationFailureSchema]);\nconst organizationLogoCommitRpcResponseSchema = z.discriminatedUnion(\"ok\", [z.strictObject({\n\tlogo: z.url().max(2048).nullable(),\n\tok: z.literal(true)\n}), organizationLogoMutationFailureSchema]);\nconst organizationLogoResponseSchema = z.strictObject({\n\tlogo: z.url().max(2048).nullable(),\n\tok: z.literal(true)\n});\nfunction buildOrganizationLogoObjectKey(input) {\n\tconst parsed = parseOrganizationLogoAddress(input);\n\treturn `organizations/${parsed.organizationId}/logos/${parsed.assetId}.webp`;\n}\nfunction buildOrganizationLogoPublicPath(input) {\n\tconst parsed = parseOrganizationLogoAddress(input);\n\treturn `${ORGANIZATION_LOGO_PUBLIC_ROUTE_PREFIX}/${encodeURIComponent(parsed.organizationId)}/${parsed.assetId}.webp`;\n}\nfunction parseOrganizationLogoReferenceFromUrl(value) {\n\tif (typeof value !== \"string\" || value.length > 2048) return null;\n\tlet url;\n\ttry {\n\t\turl = new URL(value);\n\t} catch {\n\t\treturn null;\n\t}\n\tif (url.protocol !== \"https:\" && url.protocol !== \"http:\" || url.search.length > 0 || url.hash.length > 0) return null;\n\tconst prefix = `${ORGANIZATION_LOGO_PUBLIC_ROUTE_PREFIX}/`;\n\tif (!url.pathname.startsWith(prefix)) return null;\n\tconst segments = url.pathname.slice(prefix.length).split(\"/\");\n\tif (segments.length !== 2) return null;\n\tlet organizationId;\n\ttry {\n\t\torganizationId = decodeURIComponent(segments[0] ?? \"\");\n\t} catch {\n\t\treturn null;\n\t}\n\tconst fileName = segments[1] ?? \"\";\n\tif (!fileName.endsWith(\".webp\")) return null;\n\tconst parsed = z.strictObject({\n\t\tassetId: organizationLogoAssetIdSchema,\n\t\torganizationId: organizationLogoOrganizationIdSchema\n\t}).safeParse({\n\t\tassetId: fileName.slice(0, -5),\n\t\torganizationId\n\t});\n\treturn parsed.success ? parsed.data : null;\n}\nfunction parseOrganizationLogoAddress(input) {\n\treturn z.strictObject({\n\t\tassetId: organizationLogoAssetIdSchema,\n\t\torganizationId: organizationLogoOrganizationIdSchema\n\t}).parse(input);\n}\n//#endregion\nexport { ORGANIZATION_LOGO_MAX_DIMENSION, ORGANIZATION_LOGO_MAX_PIXELS, ORGANIZATION_LOGO_MAX_SIZE_BYTES, ORGANIZATION_LOGO_OUTPUT_MIME_TYPE, ORGANIZATION_LOGO_OUTPUT_SIZE, ORGANIZATION_LOGO_PUBLIC_ROUTE_PREFIX, ORGANIZATION_LOGO_ROUTE, buildOrganizationLogoObjectKey, buildOrganizationLogoPublicPath, organizationLogoAssetIdSchema, organizationLogoCommitRpcInputSchema, organizationLogoCommitRpcResponseSchema, organizationLogoMimeTypeSchema, organizationLogoMutationErrorCodeSchema, organizationLogoOrganizationIdSchema, organizationLogoPrepareRpcInputSchema, organizationLogoPrepareRpcResponseSchema, organizationLogoReferenceSchema, organizationLogoResponseSchema, organizationLogoStoredUrlSchema, parseOrganizationLogoReferenceFromUrl };\n\n//# sourceMappingURL=organization-logo.js.map","import { z } from \"zod/v4\";\n//#region src/schemas/http/organization-member-openmeld-service-status.ts\nconst BOUNDED_ID_SCHEMA = z.string().trim().min(1).max(256);\nconst ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });\nconst organizationMemberOpenMeldServiceStateSchema = z.enum([\n\t\"connected\",\n\t\"needs_attention\",\n\t\"not_connected\",\n\t\"unknown\"\n]);\nconst organizationMemberOpenMeldServiceStatusSchema = z.strictObject({\n\tstate: organizationMemberOpenMeldServiceStateSchema,\n\tuserId: BOUNDED_ID_SCHEMA\n});\nconst centerAgentReadMemberOpenMeldServiceStatusBodySchema = z.strictObject({ memberUserId: BOUNDED_ID_SCHEMA });\nconst centerAgentReadMemberOpenMeldServiceStatusResponseSchema = z.strictObject({\n\tgeneratedAt: ISO_DATE_TIME_SCHEMA,\n\tmember: organizationMemberOpenMeldServiceStatusSchema,\n\torganizationId: BOUNDED_ID_SCHEMA\n});\nconst organizationMemberOpenMeldServiceStatusesResponseSchema = z.strictObject({\n\tgeneratedAt: ISO_DATE_TIME_SCHEMA,\n\tmembers: z.array(organizationMemberOpenMeldServiceStatusSchema),\n\torganizationId: BOUNDED_ID_SCHEMA\n});\n//#endregion\nexport { centerAgentReadMemberOpenMeldServiceStatusBodySchema, centerAgentReadMemberOpenMeldServiceStatusResponseSchema, organizationMemberOpenMeldServiceStateSchema, organizationMemberOpenMeldServiceStatusSchema, organizationMemberOpenMeldServiceStatusesResponseSchema };\n\n//# sourceMappingURL=organization-member-openmeld-service-status.js.map","import { openMeldRequestContextSchema } from \"../daemon/profile-identity.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/organization-usage.ts\nconst nonnegativeCountSchema = z.number().int().nonnegative();\nconst positiveLimitSchema = z.number().int().positive();\nconst organizationUsageOverviewResponseSchema = z.strictObject({\n\tcenterAgentWakes: z.strictObject({\n\t\tdailyLimit: positiveLimitSchema,\n\t\tresetsAt: z.iso.datetime({ offset: true }),\n\t\tusedToday: nonnegativeCountSchema\n\t}),\n\troutines: z.strictObject({\n\t\tcount: nonnegativeCountSchema,\n\t\tlimit: positiveLimitSchema\n\t})\n});\nconst organizationUsageOverviewRpcInputSchema = z.strictObject({ context: openMeldRequestContextSchema });\n//#endregion\nexport { organizationUsageOverviewResponseSchema, organizationUsageOverviewRpcInputSchema };\n\n//# sourceMappingURL=organization-usage.js.map","import { nonEmptyTrimmedStringFromUnknown } from \"../protocol/shared.js\";\nimport { runtimeCoordinatorExecutionRecordSchema } from \"../daemon/runtime-coordinator-execution.js\";\nimport { agentInteractionResponseSchema } from \"../protocol/agent-interaction.js\";\nimport { runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema } from \"../daemon/runtime-transport.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-agent-interaction.ts\nconst respondToSpaceAgentInteractionBodySchema = z.strictObject({\n\truntimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,\n\tinteractionId: z.string().trim().min(1).max(256),\n\tresponse: agentInteractionResponseSchema\n});\nconst respondToSpaceAgentInteractionInputSchema = z.strictObject({\n\tbody: respondToSpaceAgentInteractionBodySchema,\n\tspaceId: nonEmptyTrimmedStringFromUnknown\n});\nconst respondToSpaceAgentInteractionResponseSchema = runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema;\n//#endregion\nexport { respondToSpaceAgentInteractionBodySchema, respondToSpaceAgentInteractionInputSchema, respondToSpaceAgentInteractionResponseSchema };\n\n//# sourceMappingURL=space-agent-interaction.js.map","import { spaceAttachmentDescriptorSchema, spaceAttachmentDimensionSchema, spaceAttachmentFileNameSchema } from \"../protocol/space-attachment.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-attachments.ts\nconst spaceAttachmentQueryDimensionSchema = z.string().trim().regex(/^\\d+$/).transform(Number).pipe(spaceAttachmentDimensionSchema);\n/**\n* Optional metadata sent as query parameters on the raw-binary upload request.\n* Width and height are client-declared layout hints and are not verified by\n* decoding the image on the server.\n*/\nconst spaceAttachmentUploadQuerySchema = z.strictObject({\n\tfileName: spaceAttachmentFileNameSchema.optional(),\n\twidth: spaceAttachmentQueryDimensionSchema.optional(),\n\theight: spaceAttachmentQueryDimensionSchema.optional()\n});\nconst uploadSpaceAttachmentResponseSchema = z.strictObject({ attachment: spaceAttachmentDescriptorSchema });\n//#endregion\nexport { spaceAttachmentUploadQuerySchema, uploadSpaceAttachmentResponseSchema };\n\n//# sourceMappingURL=space-attachments.js.map","import { spaceMetaSchema } from \"./space-meta.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-create-response.ts\nconst createSpaceResponseSchema = z.strictObject({\n\tspaceId: spaceMetaSchema.shape.spaceId,\n\tmeta: spaceMetaSchema.optional()\n});\n//#endregion\nexport { createSpaceResponseSchema };\n\n//# sourceMappingURL=space-create-response.js.map","import { nonEmptyTrimmedStringFromUnknown } from \"../protocol/shared.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-delete.ts\nconst deleteSpaceResponseSchema = z.strictObject({\n\tspaceId: nonEmptyTrimmedStringFromUnknown,\n\tdeleted: z.literal(true)\n});\n//#endregion\nexport { deleteSpaceResponseSchema };\n\n//# sourceMappingURL=space-delete.js.map","import { nonEmptyTrimmedStringFromUnknown } from \"../protocol/shared.js\";\nimport { clientMessageIdSchema } from \"../protocol/client-message-id.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-diagnostic-report.ts\nconst diagnosticReportIdSchema = z.string().trim().min(1).max(128);\nconst diagnosticIdentifierSchema = z.string().trim().min(1).max(512);\nconst spaceDiagnosticReportProblemTypeSchema = z.enum([\n\t\"message_problem\",\n\t\"no_reply\",\n\t\"reply_problem\"\n]);\nconst spaceDiagnosticReportWakePointerDerivationStatusSchema = z.enum([\n\t\"exact\",\n\t\"source_multi_target\",\n\t\"fallback_multi_target\",\n\t\"not_wake\",\n\t\"unavailable\"\n]);\nconst spaceDiagnosticReportReasonCodeSchema = z.enum([\n\t\"diagnostic_report.reply_source_signal_not_found\",\n\t\"diagnostic_report.reply_target_exact\",\n\t\"diagnostic_report.reply_target_missing_fallback\",\n\t\"diagnostic_report.terminal_failure_source_signal_not_found\",\n\t\"diagnostic_report.terminal_failure_target_exact\",\n\t\"diagnostic_report.source_wake_targets\",\n\t\"diagnostic_report.not_wake_related\",\n\t\"diagnostic_report.wake_pointer_unavailable\"\n]);\nconst createSpaceDiagnosticReportRouteParamsSchema = z.strictObject({ spaceId: nonEmptyTrimmedStringFromUnknown });\nconst createSpaceDiagnosticReportBodySchema = z.strictObject({\n\treportedSignalId: diagnosticIdentifierSchema,\n\tproblemType: spaceDiagnosticReportProblemTypeSchema\n});\nconst spaceDiagnosticReportWakePointerSchema = z.strictObject({\n\tspaceId: diagnosticIdentifierSchema,\n\tclientMessageId: clientMessageIdSchema.nullable(),\n\tsourceSignalId: diagnosticIdentifierSchema,\n\ttargetProfileId: diagnosticIdentifierSchema\n});\nconst spaceDiagnosticReportWakePointerDerivationSchema = z.strictObject({\n\tstatus: spaceDiagnosticReportWakePointerDerivationStatusSchema,\n\treasonCodes: z.array(spaceDiagnosticReportReasonCodeSchema).min(1).max(8)\n});\nconst createSpaceDiagnosticReportResponseSchema = z.strictObject({\n\tdiagnosticReportId: diagnosticReportIdSchema,\n\tspaceId: diagnosticIdentifierSchema,\n\treportedSignalId: diagnosticIdentifierSchema,\n\treplyToSignalId: diagnosticIdentifierSchema.nullable(),\n\tthreadId: diagnosticIdentifierSchema.nullable(),\n\tproblemType: spaceDiagnosticReportProblemTypeSchema,\n\treporterProfileId: diagnosticIdentifierSchema,\n\tcreatedAtMs: z.int().min(0),\n\twakePointers: z.array(spaceDiagnosticReportWakePointerSchema).max(64),\n\twakePointerDerivation: spaceDiagnosticReportWakePointerDerivationSchema\n}).superRefine((value, context) => {\n\tfor (const [pointerIndex, pointer] of value.wakePointers.entries()) {\n\t\tif (pointer.spaceId === value.spaceId) continue;\n\t\tcontext.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"wake pointer spaceId must match report spaceId\",\n\t\t\tpath: [\n\t\t\t\t\"wakePointers\",\n\t\t\t\tpointerIndex,\n\t\t\t\t\"spaceId\"\n\t\t\t]\n\t\t});\n\t}\n\tconst pointerCount = value.wakePointers.length;\n\tswitch (value.wakePointerDerivation.status) {\n\t\tcase \"exact\":\n\t\t\tif (pointerCount !== 1) context.addIssue({\n\t\t\t\tcode: \"custom\",\n\t\t\t\tmessage: \"exact diagnostic report must include one wake pointer\",\n\t\t\t\tpath: [\"wakePointers\"]\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \"source_multi_target\":\n\t\tcase \"fallback_multi_target\":\n\t\t\tif (pointerCount < 1) context.addIssue({\n\t\t\t\tcode: \"custom\",\n\t\t\t\tmessage: \"multi-target diagnostic report must include at least one wake pointer\",\n\t\t\t\tpath: [\"wakePointers\"]\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \"not_wake\":\n\t\tcase \"unavailable\":\n\t\t\tif (pointerCount !== 0) context.addIssue({\n\t\t\t\tcode: \"custom\",\n\t\t\t\tmessage: \"diagnostic report without wake evidence must not include wake pointers\",\n\t\t\t\tpath: [\"wakePointers\"]\n\t\t\t});\n\t\t\tbreak;\n\t\tdefault: return value.wakePointerDerivation.status;\n\t}\n});\n//#endregion\nexport { createSpaceDiagnosticReportBodySchema, createSpaceDiagnosticReportResponseSchema, createSpaceDiagnosticReportRouteParamsSchema, spaceDiagnosticReportProblemTypeSchema, spaceDiagnosticReportReasonCodeSchema, spaceDiagnosticReportWakePointerDerivationSchema, spaceDiagnosticReportWakePointerDerivationStatusSchema, spaceDiagnosticReportWakePointerSchema };\n\n//# sourceMappingURL=space-diagnostic-report.js.map","import { openMeldRuntimeProfileIdSchema } from \"../protocol/profile.js\";\nimport { spaceNameSchema } from \"./space-name.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-direct-message.ts\nconst trimmedNonEmptyStringSchema = z.string().trim().min(1);\nconst openDirectMessageSpaceBodySchema = z.strictObject({ targetProfileId: openMeldRuntimeProfileIdSchema });\nconst openDirectMessageSpaceResponseSchema = z.strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tmemberProfileId: openMeldRuntimeProfileIdSchema,\n\ttargetProfileId: openMeldRuntimeProfileIdSchema,\n\tspaceId: trimmedNonEmptyStringSchema,\n\tcreated: z.boolean()\n});\nconst directMessageConversionProfileIdsSchema = z.array(openMeldRuntimeProfileIdSchema).min(1).max(100);\nconst convertDirectMessageToSpaceBodySchema = z.strictObject({\n\tname: spaceNameSchema,\n\tprofileIds: directMessageConversionProfileIdsSchema\n});\nconst convertDirectMessageToSpaceResponseSchema = z.strictObject({\n\taccessMode: z.literal(\"members_only\"),\n\taddedMemberIds: z.array(openMeldRuntimeProfileIdSchema),\n\talreadyMemberIds: z.array(openMeldRuntimeProfileIdSchema),\n\tconvertedAt: z.iso.datetime({ offset: true }),\n\tname: spaceNameSchema,\n\tspaceId: trimmedNonEmptyStringSchema\n});\n//#endregion\nexport { convertDirectMessageToSpaceBodySchema, convertDirectMessageToSpaceResponseSchema, openDirectMessageSpaceBodySchema, openDirectMessageSpaceResponseSchema };\n\n//# sourceMappingURL=space-direct-message.js.map","import { nonEmptyTrimmedStringFromUnknown } from \"../protocol/shared.js\";\nimport { clientMessageIdSchema } from \"../protocol/client-message-id.js\";\nimport { observabilityWakeCorrelationSchema } from \"./observability-correlation.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-wake-trace-waterfall.ts\nconst optionalSelectorSchema = z.preprocess((value) => {\n\tconst normalized = String(value ?? \"\").trim();\n\treturn normalized.length > 0 ? normalized : void 0;\n}, z.string().min(1).optional());\nconst optionalClientMessageIdSchema = z.preprocess((value) => {\n\tconst normalized = String(value ?? \"\").trim();\n\treturn normalized.length > 0 ? normalized : void 0;\n}, clientMessageIdSchema.optional());\nconst nullableTrimmedIdentifierSchema = z.string().trim().min(1).nullable();\nconst nullableReasonCodeSchema = z.string().trim().min(1).max(512).nullable();\nconst nullableIsoDateTimeSchema = z.iso.datetime({ offset: true }).nullable();\nconst WAKE_TRACE_WATERFALL_STEP_NAMES = [\n\t\"source_signal\",\n\t\"planner\",\n\t\"dispatch\",\n\t\"head_lifecycle\",\n\t\"attempt\",\n\t\"result_inbox\",\n\t\"result\",\n\t\"reply_signal\"\n];\nconst wakeTraceWaterfallStepNameSchema = z.enum(WAKE_TRACE_WATERFALL_STEP_NAMES);\nconst wakeTraceWaterfallStepStatusSchema = z.enum([\n\t\"found\",\n\t\"missing\",\n\t\"pending\",\n\t\"failed\",\n\t\"degraded\",\n\t\"not_applicable\"\n]);\nconst wakeTraceWaterfallSummaryStatusSchema = z.enum([\n\t\"missing\",\n\t\"pending\",\n\t\"running\",\n\t\"failed\",\n\t\"stopped\",\n\t\"replied\"\n]);\nconst wakeTargetExecutionContextResolutionStatusSchema = z.enum([\n\t\"resolved\",\n\t\"not_started\",\n\t\"not_resolved\",\n\t\"redacted\"\n]);\nconst wakeTargetExecutionContextFactSourceSchema = z.enum([\n\t\"dispatch_trace_origin\",\n\t\"runtime_coordinator_execution\",\n\t\"dispatch_attempt_execution_identity\",\n\t\"dispatch_record\",\n\t\"none\"\n]);\nconst wakeTraceWaterfallFactSourceSchema = z.enum([\n\t\"space_signal_by_client_message_id\",\n\t\"space_signal_by_source_signal_id\",\n\t\"dispatch_outbox\",\n\t\"dispatch_lookup\",\n\t\"dispatch_ledger\",\n\t\"dispatch_attempt\",\n\t\"runtime_coordinator_head_lifecycle\",\n\t\"dispatch_result_inbox\",\n\t\"dispatch_result\",\n\t\"space_signal_by_published_signal_id\",\n\t\"space_final_reply_claim\",\n\t\"space_signal_recent_window\",\n\t\"lookup_error\"\n]);\nconst wakeTraceWaterfallStepIdsSchema = z.strictObject({\n\tclientMessageId: clientMessageIdSchema.nullable(),\n\tsourceSignalId: nullableTrimmedIdentifierSchema,\n\ttargetProfileId: nullableTrimmedIdentifierSchema,\n\ttargetWakeLifecycleId: nullableTrimmedIdentifierSchema,\n\tdispatchId: nullableTrimmedIdentifierSchema,\n\tattemptId: nullableTrimmedIdentifierSchema,\n\tclaimLeaseId: nullableTrimmedIdentifierSchema,\n\tbindingId: nullableTrimmedIdentifierSchema,\n\topenMeldServiceRuntimeId: nullableTrimmedIdentifierSchema,\n\tagentControllerRef: nullableTrimmedIdentifierSchema,\n\tresultKey: nullableTrimmedIdentifierSchema,\n\tresultRef: nullableTrimmedIdentifierSchema,\n\tpublishedSignalId: nullableTrimmedIdentifierSchema,\n\treplySignalId: nullableTrimmedIdentifierSchema\n});\nconst wakeTraceWaterfallStepSchema = z.strictObject({\n\torder: z.int().min(0),\n\tname: wakeTraceWaterfallStepNameSchema,\n\tstatus: wakeTraceWaterfallStepStatusSchema,\n\tfactSource: wakeTraceWaterfallFactSourceSchema.nullable(),\n\tobservedAt: nullableIsoDateTimeSchema,\n\treasonCode: nullableReasonCodeSchema,\n\tids: wakeTraceWaterfallStepIdsSchema\n});\nconst wakeTargetExecutionContextSchema = z.strictObject({\n\tresolutionStatus: wakeTargetExecutionContextResolutionStatusSchema,\n\tfactSource: wakeTargetExecutionContextFactSourceSchema,\n\treasonCode: nullableReasonCodeSchema,\n\tbindingId: nullableTrimmedIdentifierSchema,\n\topenMeldServiceRuntimeId: nullableTrimmedIdentifierSchema,\n\tagentControllerRef: nullableTrimmedIdentifierSchema,\n\tagentControllerConversationId: nullableTrimmedIdentifierSchema,\n\tagentControllerConversationKind: nullableTrimmedIdentifierSchema,\n\truntimeWorkspacePath: nullableTrimmedIdentifierSchema,\n\truntimeWorkspaceFingerprint: nullableTrimmedIdentifierSchema\n});\nconst wakeTraceWaterfallItemSchema = z.strictObject({\n\ttargetProfileId: z.string().trim().min(1),\n\ttargetLabel: z.string().trim().min(1),\n\tcorrelation: observabilityWakeCorrelationSchema,\n\texecutionContext: wakeTargetExecutionContextSchema,\n\tsummary: z.strictObject({\n\t\tstatus: wakeTraceWaterfallSummaryStatusSchema,\n\t\tterminalStep: wakeTraceWaterfallStepNameSchema.nullable(),\n\t\treasonCode: nullableReasonCodeSchema\n\t}),\n\tsteps: z.array(wakeTraceWaterfallStepSchema)\n});\nconst getSpaceWakeTraceWaterfallInputSchema = z.strictObject({\n\tspaceId: nonEmptyTrimmedStringFromUnknown,\n\tsourceSignalId: optionalSelectorSchema,\n\tclientMessageId: optionalClientMessageIdSchema,\n\ttargetProfileId: optionalSelectorSchema\n}).superRefine((value, context) => {\n\tif (Number(value.sourceSignalId !== void 0) + Number(value.clientMessageId !== void 0) === 1) return;\n\tcontext.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"exactly one of sourceSignalId or clientMessageId is required\",\n\t\tpath: [\"sourceSignalId\"]\n\t});\n});\nconst getSpaceWakeTraceWaterfallResponseSchema = z.strictObject({\n\tquery: z.strictObject({\n\t\tspaceId: z.string().trim().min(1),\n\t\tsourceSignalId: z.string().trim().min(1).nullable(),\n\t\tclientMessageId: clientMessageIdSchema.nullable(),\n\t\ttargetProfileId: z.string().trim().min(1).nullable()\n\t}),\n\titems: z.array(wakeTraceWaterfallItemSchema)\n}).superRefine((value, context) => {\n\tvalidateWaterfallResponseQuerySelector(value, context);\n\tfor (const [itemIndex, item] of value.items.entries()) validateWaterfallResponseItem(value, context, item, itemIndex);\n});\nfunction validateWaterfallResponseQuerySelector(value, context) {\n\tif (Number(value.query.sourceSignalId !== null) + Number(value.query.clientMessageId !== null) === 1) return;\n\tcontext.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"response query must include exactly one Wake trace selector\",\n\t\tpath: [\"query\", \"sourceSignalId\"]\n\t});\n}\nfunction validateWaterfallResponseItem(value, context, item, itemIndex) {\n\tvalidateWaterfallItemTargetProfile(value, context, item, itemIndex);\n\tvalidateWaterfallItemSelector(value, context, item, itemIndex);\n\tvalidateWaterfallItemCorrelation(value, context, item, itemIndex);\n\tvalidateWaterfallItemSteps(value, context, item, itemIndex);\n}\nfunction validateWaterfallItemTargetProfile(value, context, item, itemIndex) {\n\tif (value.query.targetProfileId === null || item.targetProfileId === value.query.targetProfileId) return;\n\tcontext.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"item targetProfileId must match query.targetProfileId\",\n\t\tpath: [\n\t\t\t\"items\",\n\t\t\titemIndex,\n\t\t\t\"targetProfileId\"\n\t\t]\n\t});\n}\nfunction validateWaterfallItemSelector(value, context, item, itemIndex) {\n\tif (value.query.clientMessageId !== null) {\n\t\tvalidateWaterfallItemClientMessageSelector(value, context, item, itemIndex);\n\t\treturn;\n\t}\n\tif (value.query.sourceSignalId !== null) validateWaterfallItemSourceSignalSelector(value, context, item, itemIndex);\n}\nfunction validateWaterfallItemClientMessageSelector(value, context, item, itemIndex) {\n\tif (item.correlation.selector.kind === \"client_message\") {\n\t\texpectWaterfallEvidence(context, item.correlation.selector.spaceId, value.query.spaceId, [\n\t\t\t\"items\",\n\t\t\titemIndex,\n\t\t\t\"correlation\",\n\t\t\t\"selector\",\n\t\t\t\"spaceId\"\n\t\t], \"correlation selector spaceId must match query.spaceId\");\n\t\texpectWaterfallEvidence(context, item.correlation.selector.clientMessageId, value.query.clientMessageId, [\n\t\t\t\"items\",\n\t\t\titemIndex,\n\t\t\t\"correlation\",\n\t\t\t\"selector\",\n\t\t\t\"clientMessageId\"\n\t\t], \"correlation selector clientMessageId must match query.clientMessageId\");\n\t\texpectWaterfallEvidence(context, item.correlation.selector.targetProfileId, item.targetProfileId, [\n\t\t\t\"items\",\n\t\t\titemIndex,\n\t\t\t\"correlation\",\n\t\t\t\"selector\",\n\t\t\t\"targetProfileId\"\n\t\t], \"correlation selector targetProfileId must match item targetProfileId\");\n\t\treturn;\n\t}\n\tcontext.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"waterfall correlation selector must be client_message\",\n\t\tpath: [\n\t\t\t\"items\",\n\t\t\titemIndex,\n\t\t\t\"correlation\",\n\t\t\t\"selector\",\n\t\t\t\"kind\"\n\t\t]\n\t});\n}\nfunction validateWaterfallItemSourceSignalSelector(value, context, item, itemIndex) {\n\tif (item.correlation.selector.kind === \"source_signal\") {\n\t\texpectWaterfallEvidence(context, item.correlation.selector.spaceId, value.query.spaceId, [\n\t\t\t\"items\",\n\t\t\titemIndex,\n\t\t\t\"correlation\",\n\t\t\t\"selector\",\n\t\t\t\"spaceId\"\n\t\t], \"correlation selector spaceId must match query.spaceId\");\n\t\texpectWaterfallEvidence(context, item.correlation.selector.sourceSignalId, value.query.sourceSignalId, [\n\t\t\t\"items\",\n\t\t\titemIndex,\n\t\t\t\"correlation\",\n\t\t\t\"selector\",\n\t\t\t\"sourceSignalId\"\n\t\t], \"correlation selector sourceSignalId must match query.sourceSignalId\");\n\t\texpectWaterfallEvidence(context, item.correlation.selector.targetProfileId, item.targetProfileId, [\n\t\t\t\"items\",\n\t\t\titemIndex,\n\t\t\t\"correlation\",\n\t\t\t\"selector\",\n\t\t\t\"targetProfileId\"\n\t\t], \"correlation selector targetProfileId must match item targetProfileId\");\n\t\treturn;\n\t}\n\tcontext.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"waterfall correlation selector must be source_signal\",\n\t\tpath: [\n\t\t\t\"items\",\n\t\t\titemIndex,\n\t\t\t\"correlation\",\n\t\t\t\"selector\",\n\t\t\t\"kind\"\n\t\t]\n\t});\n}\nfunction validateWaterfallItemCorrelation(value, context, item, itemIndex) {\n\texpectWaterfallEvidence(context, item.correlation.spaceId, value.query.spaceId, [\n\t\t\"items\",\n\t\titemIndex,\n\t\t\"correlation\",\n\t\t\"spaceId\"\n\t], \"correlation spaceId must match query.spaceId\");\n\tif (value.query.clientMessageId !== null) expectWaterfallEvidence(context, item.correlation.clientMessageId, value.query.clientMessageId, [\n\t\t\"items\",\n\t\titemIndex,\n\t\t\"correlation\",\n\t\t\"clientMessageId\"\n\t], \"correlation clientMessageId must match query.clientMessageId\");\n\tif (value.query.sourceSignalId !== null) expectWaterfallEvidence(context, item.correlation.sourceSignalId, value.query.sourceSignalId, [\n\t\t\"items\",\n\t\titemIndex,\n\t\t\"correlation\",\n\t\t\"sourceSignalId\"\n\t], \"correlation sourceSignalId must match query.sourceSignalId\");\n\texpectWaterfallEvidence(context, item.correlation.targetProfileId, item.targetProfileId, [\n\t\t\"items\",\n\t\titemIndex,\n\t\t\"correlation\",\n\t\t\"targetProfileId\"\n\t], \"correlation targetProfileId must match item targetProfileId\");\n}\nfunction validateWaterfallItemSteps(value, context, item, itemIndex) {\n\tif (item.steps.length !== WAKE_TRACE_WATERFALL_STEP_NAMES.length) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"waterfall item must include all canonical steps\",\n\t\tpath: [\n\t\t\t\"items\",\n\t\t\titemIndex,\n\t\t\t\"steps\"\n\t\t]\n\t});\n\tfor (const [stepIndex, expectedName] of WAKE_TRACE_WATERFALL_STEP_NAMES.entries()) {\n\t\tconst step = item.steps[stepIndex];\n\t\tif (!step) continue;\n\t\tvalidateWaterfallItemStep(value, context, item, itemIndex, step, stepIndex, expectedName);\n\t}\n}\nfunction validateWaterfallItemStep(value, context, item, itemIndex, step, stepIndex, expectedName) {\n\texpectWaterfallEvidence(context, step.order, stepIndex, [\n\t\t\"items\",\n\t\titemIndex,\n\t\t\"steps\",\n\t\tstepIndex,\n\t\t\"order\"\n\t], \"waterfall step order must match canonical order\");\n\texpectWaterfallEvidence(context, step.name, expectedName, [\n\t\t\"items\",\n\t\titemIndex,\n\t\t\"steps\",\n\t\tstepIndex,\n\t\t\"name\"\n\t], \"waterfall step name must match canonical order\");\n\tif (value.query.clientMessageId !== null) expectWaterfallEvidence(context, step.ids.clientMessageId, value.query.clientMessageId, [\n\t\t\"items\",\n\t\titemIndex,\n\t\t\"steps\",\n\t\tstepIndex,\n\t\t\"ids\",\n\t\t\"clientMessageId\"\n\t], \"waterfall step clientMessageId must match query.clientMessageId\");\n\tif (value.query.sourceSignalId !== null) expectWaterfallEvidence(context, step.ids.sourceSignalId, value.query.sourceSignalId, [\n\t\t\"items\",\n\t\titemIndex,\n\t\t\"steps\",\n\t\tstepIndex,\n\t\t\"ids\",\n\t\t\"sourceSignalId\"\n\t], \"waterfall step sourceSignalId must match query.sourceSignalId\");\n\texpectWaterfallEvidence(context, step.ids.targetProfileId, item.targetProfileId, [\n\t\t\"items\",\n\t\titemIndex,\n\t\t\"steps\",\n\t\tstepIndex,\n\t\t\"ids\",\n\t\t\"targetProfileId\"\n\t], \"waterfall step targetProfileId must match item targetProfileId\");\n}\nfunction expectWaterfallEvidence(context, actual, expected, path, message) {\n\tif (actual === expected) return;\n\tcontext.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage,\n\t\tpath\n\t});\n}\n//#endregion\nexport { WAKE_TRACE_WATERFALL_STEP_NAMES, getSpaceWakeTraceWaterfallInputSchema, getSpaceWakeTraceWaterfallResponseSchema, wakeTargetExecutionContextFactSourceSchema, wakeTargetExecutionContextResolutionStatusSchema, wakeTargetExecutionContextSchema, wakeTraceWaterfallFactSourceSchema, wakeTraceWaterfallItemSchema, wakeTraceWaterfallStepIdsSchema, wakeTraceWaterfallStepNameSchema, wakeTraceWaterfallStepSchema, wakeTraceWaterfallStepStatusSchema, wakeTraceWaterfallSummaryStatusSchema };\n\n//# sourceMappingURL=space-wake-trace-waterfall.js.map","import { nonEmptyTrimmedStringFromUnknown } from \"../protocol/shared.js\";\nimport { clientMessageIdSchema } from \"../protocol/client-message-id.js\";\nimport { agentStreamToolPartSchema } from \"../protocol/agent-stream.js\";\nimport { wakeTraceWaterfallStepNameSchema, wakeTraceWaterfallStepSchema, wakeTraceWaterfallSummaryStatusSchema } from \"./space-wake-trace-waterfall.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-message-details.ts\nconst nullableTrimmedStringSchema = z.string().trim().min(1).nullable();\nconst nullableReasonCodeSchema = z.string().trim().min(1).max(512).nullable();\nconst spaceMessageDetailsFactStateSchema = z.enum([\n\t\"recorded\",\n\t\"not_recorded\",\n\t\"redacted\",\n\t\"not_applicable\"\n]);\nconst spaceMessageDetailsFactSourceSchema = z.enum([\n\t\"space_signal\",\n\t\"space_signal_profile\",\n\t\"reply_signal\",\n\t\"wake_trace\",\n\t\"wake_trace_execution_context\",\n\t\"wake_trace_correlation\",\n\t\"none\"\n]);\nconst spaceMessageDetailsStringFactSchema = z.strictObject({\n\tstate: spaceMessageDetailsFactStateSchema,\n\tvalue: nullableTrimmedStringSchema,\n\tsource: spaceMessageDetailsFactSourceSchema\n}).superRefine((value, context) => {\n\tif (value.state === \"recorded\" && value.value === null) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"recorded facts must include a value\",\n\t\tpath: [\"value\"]\n\t});\n\tif (value.state !== \"recorded\" && value.value !== null) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"only recorded facts may include a value\",\n\t\tpath: [\"value\"]\n\t});\n});\nconst spaceMessageDetailsSectionStateSchema = z.enum([\n\t\"recorded\",\n\t\"not_recorded\",\n\t\"not_applicable\"\n]);\nconst spaceMessageDetailsSignalTypeSchema = z.enum([\n\t\"signal.text\",\n\t\"signal.status\",\n\t\"signal.system_notice\"\n]);\nconst spaceMessageDetailsActorSchema = z.strictObject({\n\tprofileId: z.string().trim().min(1),\n\tprofileKind: z.enum([\n\t\t\"human\",\n\t\t\"agent\",\n\t\t\"system\"\n\t]),\n\tdisplayName: z.string().trim().min(1),\n\tprofileName: nullableTrimmedStringSchema,\n\tprofileHandle: nullableTrimmedStringSchema\n});\nconst spaceMessageDetailsMessageSectionSchema = z.strictObject({\n\tsignalId: z.string().trim().min(1),\n\tsignalType: spaceMessageDetailsSignalTypeSchema,\n\tsentAtMs: z.int().nonnegative(),\n\tactor: spaceMessageDetailsActorSchema\n});\nconst spaceMessageDetailsAgentContextSchema = z.strictObject({\n\tstate: spaceMessageDetailsSectionStateSchema,\n\tprofileId: spaceMessageDetailsStringFactSchema,\n\tprofileName: spaceMessageDetailsStringFactSchema,\n\tagentControllerRef: spaceMessageDetailsStringFactSchema,\n\tagentControllerConversationId: spaceMessageDetailsStringFactSchema,\n\tworkspacePath: spaceMessageDetailsStringFactSchema,\n\topenMeldServiceRuntimeId: spaceMessageDetailsStringFactSchema,\n\tbindingId: spaceMessageDetailsStringFactSchema,\n\tworkspaceFingerprint: spaceMessageDetailsStringFactSchema\n});\nconst spaceMessageDetailsWakeTargetSchema = z.strictObject({\n\ttargetProfileId: z.string().trim().min(1),\n\ttargetLabel: nullableTrimmedStringSchema,\n\tstatus: wakeTraceWaterfallSummaryStatusSchema.optional(),\n\tterminalStep: wakeTraceWaterfallStepNameSchema.nullable().optional(),\n\treasonCode: nullableReasonCodeSchema.optional(),\n\tagentContext: spaceMessageDetailsAgentContextSchema.optional(),\n\tsteps: z.array(wakeTraceWaterfallStepSchema).optional()\n});\nconst spaceMessageDetailsWakeContextSchema = z.strictObject({\n\tstate: spaceMessageDetailsSectionStateSchema,\n\tsourceSignalId: spaceMessageDetailsStringFactSchema,\n\tclientMessageId: spaceMessageDetailsStringFactSchema,\n\ttargets: z.array(spaceMessageDetailsWakeTargetSchema)\n});\nconst spaceMessageDetailsReplyContextSchema = z.strictObject({\n\tstate: spaceMessageDetailsSectionStateSchema,\n\treplyingToSignalId: spaceMessageDetailsStringFactSchema,\n\treplyingToAuthor: spaceMessageDetailsStringFactSchema,\n\tpreviewText: spaceMessageDetailsStringFactSchema,\n\tresolved: z.boolean()\n});\nconst spaceMessageDetailsToolActivitySchema = z.strictObject({\n\ttoolName: z.string().trim().min(1).max(160),\n\tstate: z.enum([\n\t\t\"input-available\",\n\t\t\"output-available\",\n\t\t\"output-error\"\n\t]),\n\tstartedAtMs: z.int().nonnegative(),\n\tupdatedAtMs: z.int().nonnegative(),\n\twork: agentStreamToolPartSchema.shape.work\n}).superRefine((value, context) => {\n\tif (value.updatedAtMs < value.startedAtMs) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"updatedAtMs must not precede startedAtMs\",\n\t\tpath: [\"updatedAtMs\"]\n\t});\n});\nconst spaceMessageDetailsWorkingDetailsSchema = z.strictObject({\n\tstate: spaceMessageDetailsSectionStateSchema,\n\ttools: z.array(spaceMessageDetailsToolActivitySchema).max(50),\n\ttruncated: z.boolean()\n}).superRefine((value, context) => {\n\tif (value.state === \"recorded\" && value.tools.length === 0) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"recorded working details must include tool activity\",\n\t\tpath: [\"tools\"]\n\t});\n\tif (value.state !== \"recorded\" && value.tools.length > 0) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"only recorded working details may include tool activity\",\n\t\tpath: [\"tools\"]\n\t});\n\tif (value.state !== \"recorded\" && value.truncated) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"only recorded working details may be truncated\",\n\t\tpath: [\"truncated\"]\n\t});\n});\nconst spaceMessageDetailsTraceSelectorSchema = z.strictObject({\n\tkind: z.enum([\n\t\t\"signal\",\n\t\t\"client_message\",\n\t\t\"wake_source_signal\",\n\t\t\"dispatch\"\n\t]),\n\tlabel: z.string().trim().min(1),\n\tvalue: z.string().trim().min(1),\n\ttargetProfileId: nullableTrimmedStringSchema\n});\nconst spaceMessageDetailsDiagnosticsSchema = z.strictObject({\n\tsignalId: z.string().trim().min(1),\n\ttraceSelectors: z.array(spaceMessageDetailsTraceSelectorSchema)\n});\nconst getSpaceMessageDetailsInputSchema = z.strictObject({\n\tspaceId: nonEmptyTrimmedStringFromUnknown,\n\tsignalId: nonEmptyTrimmedStringFromUnknown\n});\nconst getSpaceMessageDetailsResponseSchema = z.strictObject({\n\tquery: z.strictObject({\n\t\tspaceId: z.string().trim().min(1),\n\t\tsignalId: z.string().trim().min(1)\n\t}),\n\tmessage: spaceMessageDetailsMessageSectionSchema,\n\tagentContext: spaceMessageDetailsAgentContextSchema,\n\twakeContext: spaceMessageDetailsWakeContextSchema,\n\treplyContext: spaceMessageDetailsReplyContextSchema,\n\tworkingDetails: spaceMessageDetailsWorkingDetailsSchema.optional(),\n\tdiagnostics: spaceMessageDetailsDiagnosticsSchema\n});\nclientMessageIdSchema.nullable();\n//#endregion\nexport { getSpaceMessageDetailsInputSchema, getSpaceMessageDetailsResponseSchema, spaceMessageDetailsActorSchema, spaceMessageDetailsAgentContextSchema, spaceMessageDetailsDiagnosticsSchema, spaceMessageDetailsFactSourceSchema, spaceMessageDetailsFactStateSchema, spaceMessageDetailsMessageSectionSchema, spaceMessageDetailsReplyContextSchema, spaceMessageDetailsSectionStateSchema, spaceMessageDetailsSignalTypeSchema, spaceMessageDetailsStringFactSchema, spaceMessageDetailsToolActivitySchema, spaceMessageDetailsTraceSelectorSchema, spaceMessageDetailsWakeContextSchema, spaceMessageDetailsWakeTargetSchema, spaceMessageDetailsWorkingDetailsSchema };\n\n//# sourceMappingURL=space-message-details.js.map","import { signalTextSchema } from \"../protocol/signal.js\";\nimport { signalTextEnvelopeSchema } from \"../protocol/envelope.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-signals.ts\nconst signalTextRequestDataSchema = signalTextSchema.shape.data;\nconst SPACE_WAKE_CLIENT_MESSAGE_ID_REQUIRED_ERROR_CODE = \"space.wake.client_message_id_required\";\nconst SPACE_WAKE_CLIENT_MESSAGE_ID_REQUIRED_MESSAGE = \"Wake requests from user-authored signal posts require clientMessageId.\";\nconst SPACE_SIGNAL_AUTHORING_POLICY_REQUIRED_ERROR_CODE = \"space.signal_authoring_policy_required\";\nconst SPACE_SIGNAL_AUTHORING_POLICY_REQUIRED_MESSAGE = \"Signal posts must declare authoringPolicy before clientMessageId policy validation.\";\nconst spaceSignalAuthoringPolicySchema = z.enum([\n\t\"user_authored\",\n\t\"system_emitted\",\n\t\"legacy_nullable\"\n]);\nconst hasSpaceSignalWakeActivationTarget = (messageEnvelope) => (messageEnvelope?.activationTargets ?? []).some((target) => typeof target === \"string\" && target.trim().length > 0);\nconst hasSpaceSignalClientMessageId = (meta) => typeof meta?.clientMessageId === \"string\" && meta.clientMessageId.trim().length > 0;\nconst validateSpaceSignalClientMessageIdPolicy = (input) => {\n\tconst createsWakeDispatch = hasSpaceSignalWakeActivationTarget(input.messageEnvelope);\n\tconst authoringPolicy = spaceSignalAuthoringPolicySchema.safeParse(input.authoringPolicy);\n\tif (!authoringPolicy.success) return {\n\t\tok: false,\n\t\tcode: SPACE_SIGNAL_AUTHORING_POLICY_REQUIRED_ERROR_CODE,\n\t\tcreatesWakeDispatch,\n\t\tmessage: SPACE_SIGNAL_AUTHORING_POLICY_REQUIRED_MESSAGE,\n\t\trequiresClientMessageId: false\n\t};\n\tconst requiresClientMessageId = authoringPolicy.data === \"user_authored\" && createsWakeDispatch;\n\tif (requiresClientMessageId && !hasSpaceSignalClientMessageId(input.meta)) return {\n\t\tok: false,\n\t\tcode: SPACE_WAKE_CLIENT_MESSAGE_ID_REQUIRED_ERROR_CODE,\n\t\tcreatesWakeDispatch: true,\n\t\tmessage: SPACE_WAKE_CLIENT_MESSAGE_ID_REQUIRED_MESSAGE,\n\t\trequiresClientMessageId: true\n\t};\n\treturn {\n\t\tok: true,\n\t\tcreatesWakeDispatch,\n\t\trequiresClientMessageId\n\t};\n};\nconst postNormalMessageBodySchema = z.strictObject({\n\ttext: signalTextRequestDataSchema.shape.text,\n\tattachments: signalTextRequestDataSchema.shape.attachments.optional(),\n\tmessageEnvelope: signalTextRequestDataSchema.shape.messageEnvelope.optional(),\n\treplyTo: signalTextRequestDataSchema.shape.replyTo.optional(),\n\tmeta: signalTextRequestDataSchema.shape.meta.optional()\n}).superRefine((value, ctx) => {\n\tconst parsed = signalTextRequestDataSchema.safeParse(value);\n\tif (parsed.success) return;\n\tconst firstIssue = parsed.error.issues[0];\n\tctx.addIssue({\n\t\tcode: \"custom\",\n\t\tpath: firstIssue?.path ?? [],\n\t\tmessage: firstIssue?.message ?? \"Invalid normal message payload\"\n\t});\n});\nconst postNormalMessageResponseSchema = signalTextEnvelopeSchema;\n//#endregion\nexport { SPACE_SIGNAL_AUTHORING_POLICY_REQUIRED_ERROR_CODE, SPACE_SIGNAL_AUTHORING_POLICY_REQUIRED_MESSAGE, SPACE_WAKE_CLIENT_MESSAGE_ID_REQUIRED_ERROR_CODE, SPACE_WAKE_CLIENT_MESSAGE_ID_REQUIRED_MESSAGE, hasSpaceSignalWakeActivationTarget, postNormalMessageBodySchema, postNormalMessageResponseSchema, spaceSignalAuthoringPolicySchema, validateSpaceSignalClientMessageIdPolicy };\n\n//# sourceMappingURL=space-signals.js.map","import { nonEmptyTrimmedStringFromUnknown } from \"../protocol/shared.js\";\n \nimport { signalEnvelopeSchema } from \"../protocol/envelope.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-updates.ts\nconst DECIMAL_INTEGER_REGEX = /^\\d+$/u;\nconst updatesLimitSchema = z.preprocess((value) => {\n\tif (value === void 0 || value === null || value === \"\") return 20;\n\tif (typeof value === \"number\") return value;\n\tconst normalized = String(value).trim();\n\tif (normalized.length === 0) return 20;\n\tif (!DECIMAL_INTEGER_REGEX.test(normalized)) return NaN;\n\treturn Number.parseInt(normalized, 10);\n}, z.number().int().min(1).max(200)).default(20);\nconst getSpaceUpdatesInputSchema = z.strictObject({\n\tspaceId: nonEmptyTrimmedStringFromUnknown,\n\tafterSignalId: nonEmptyTrimmedStringFromUnknown,\n\tlimit: updatesLimitSchema\n});\nconst getSpaceUpdatesResponseSchema = z.strictObject({ signals: z.array(signalEnvelopeSchema) });\n//#endregion\nexport { getSpaceUpdatesInputSchema, getSpaceUpdatesResponseSchema };\n\n//# sourceMappingURL=space-updates.js.map","import { nonEmptyTrimmedStringFromUnknown, optionalBooleanQuerySchema } from \"../protocol/shared.js\";\nimport { runtimeCoordinatorExecutionRecordSchema } from \"../daemon/runtime-coordinator-execution.js\";\nimport { clientMessageIdSchema } from \"../protocol/client-message-id.js\";\nimport { agentInteractionPendingSummarySchema } from \"../protocol/agent-interaction.js\";\nimport { z } from \"zod/v4\";\n//#region src/schemas/http/space-wake-progress.ts\nconst optionalSelectorSchema = z.preprocess((value) => {\n\tconst normalized = String(value ?? \"\").trim();\n\treturn normalized.length > 0 ? normalized : void 0;\n}, z.string().min(1).optional());\nconst wakeProgressPhaseSchema = z.enum([\n\t\"sending\",\n\t\"request_sent\",\n\t\"queued\",\n\t\"connecting\",\n\t\"running\",\n\t\"writing\",\n\t\"publishing\",\n\t\"publication_unknown\",\n\t\"retrying\",\n\t\"failed\",\n\t\"stopped\",\n\t\"replied\"\n]);\nconst wakeStopEligibilityReasonCodeSchema = z.enum([\n\t\"agent_controller_interface.cancel_required\",\n\t\"agent_controller_interface.missing\",\n\t\"agent_controller_interface.stop_unsupported\",\n\t\"runtime_coordinator.pre_agent_stop_available\",\n\t\"runtime_coordinator.pre_agent_stop_unavailable\"\n]);\nconst wakeStopEligibilityReadModelSchema = z.union([\n\tz.strictObject({\n\t\tcontrolMode: z.literal(\"openmeld_owned_pre_agent_cancel\"),\n\t\treasonCode: z.null(),\n\t\treliability: z.literal(\"openmeld_owned_pre_agent\"),\n\t\tstatus: z.literal(\"eligible\")\n\t}),\n\tz.strictObject({\n\t\tcontrolMode: z.literal(\"cancel\"),\n\t\treasonCode: z.null(),\n\t\treliability: z.literal(\"native_cancel\"),\n\t\tstatus: z.literal(\"eligible\")\n\t}),\n\tz.strictObject({\n\t\tcontrolMode: z.literal(\"interrupt\"),\n\t\treasonCode: z.null(),\n\t\treliability: z.literal(\"native_interrupt\"),\n\t\tstatus: z.literal(\"eligible\")\n\t}),\n\tz.strictObject({\n\t\tcontrolMode: z.null(),\n\t\treasonCode: wakeStopEligibilityReasonCodeSchema,\n\t\treliability: z.literal(\"unsupported\"),\n\t\tstatus: z.literal(\"not_eligible\")\n\t})\n]);\nconst wakeProgressItemSchema = z.strictObject({\n\tclientMessageId: clientMessageIdSchema.nullable(),\n\tsourceSignalId: z.string().trim().min(1).nullable(),\n\tdispatchId: z.string().trim().min(1).nullable(),\n\truntimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.nullable().optional(),\n\ttargetProfileId: z.string().trim().min(1),\n\ttargetLabel: z.string().trim().min(1),\n\tphase: wakeProgressPhaseSchema,\n\tfailureReasonCode: z.string().trim().min(1).nullable().optional(),\n\tmessage: z.string().trim().min(1),\n\tstartedAtMs: z.int().min(0).optional(),\n\tupdatedAtMs: z.int().min(0),\n\tterminal: z.boolean(),\n\twakeStopEligibility: wakeStopEligibilityReadModelSchema.nullable().optional(),\n\tpendingInteraction: agentInteractionPendingSummarySchema.nullable().optional()\n});\nconst getSpaceWakeProgressInputSchema = z.strictObject({\n\tspaceId: nonEmptyTrimmedStringFromUnknown,\n\tclientMessageId: clientMessageIdSchema,\n\tincludeTiming: optionalBooleanQuerySchema,\n\tincludeWakeStopEligibility: optionalBooleanQuerySchema,\n\ttargetProfileId: optionalSelectorSchema\n});\nconst getSpaceWakeProgressResponseSchema = z.strictObject({\n\tquery: z.strictObject({\n\t\tspaceId: z.string().trim().min(1),\n\t\tclientMessageId: clientMessageIdSchema.nullable(),\n\t\ttargetProfileId: z.string().trim().min(1).nullable()\n\t}),\n\titems: z.array(wakeProgressItemSchema)\n});\nconst getActiveSpaceWakeProgressInputSchema = z.strictObject({\n\tspaceId: nonEmptyTrimmedStringFromUnknown,\n\tincludeTiming: optionalBooleanQuerySchema,\n\tincludeWakeStopEligibility: optionalBooleanQuerySchema,\n\ttargetProfileId: optionalSelectorSchema\n});\nconst getActiveSpaceWakeProgressResponseSchema = z.strictObject({\n\tquery: z.strictObject({\n\t\tspaceId: z.string().trim().min(1),\n\t\ttargetProfileId: z.string().trim().min(1).nullable()\n\t}),\n\titems: z.array(wakeProgressItemSchema)\n});\n//#endregion\nexport { getActiveSpaceWakeProgressInputSchema, getActiveSpaceWakeProgressResponseSchema, getSpaceWakeProgressInputSchema, getSpaceWakeProgressResponseSchema, wakeProgressItemSchema, wakeProgressPhaseSchema, wakeStopEligibilityReadModelSchema, wakeStopEligibilityReasonCodeSchema };\n\n//# sourceMappingURL=space-wake-progress.js.map","//#region src/index.ts\nfunction sleep(ms) {\n\treturn new Promise((resolve) => {\n\t\tsetTimeout(resolve, ms);\n\t});\n}\nasync function retryWithBackoff(operation, options = {}) {\n\tconst maxAttempts = normalizePositiveInteger(options.maxAttempts, 3);\n\tconst initialDelayMs = normalizeNonNegativeInteger(options.initialDelayMs, 100);\n\tconst backoffFactor = normalizePositiveNumber(options.backoffFactor, 2);\n\tlet delayMs = initialDelayMs;\n\tfor (let attempt = 1; attempt <= maxAttempts; attempt += 1) try {\n\t\treturn await operation();\n\t} catch (error) {\n\t\tif (attempt >= maxAttempts || options.shouldRetry?.(error, attempt) === false) throw error;\n\t\tawait sleep(delayMs);\n\t\tdelayMs = Math.trunc(delayMs * backoffFactor);\n\t}\n\tthrow new Error(\"retryWithBackoff exhausted without returning or throwing\");\n}\nfunction toErrorMessage(error) {\n\tif (error instanceof Error) return error.message;\n\treturn String(error);\n}\nfunction normalizePositiveInteger(value, fallback) {\n\tif (typeof value !== \"number\" || !Number.isFinite(value)) return fallback;\n\treturn Math.max(1, Math.trunc(value));\n}\nfunction normalizeNonNegativeInteger(value, fallback) {\n\tif (typeof value !== \"number\" || !Number.isFinite(value)) return fallback;\n\treturn Math.max(0, Math.trunc(value));\n}\nfunction normalizePositiveNumber(value, fallback) {\n\tif (typeof value !== \"number\" || !Number.isFinite(value) || value <= 0) return fallback;\n\treturn value;\n}\n//#endregion\nexport { retryWithBackoff, sleep, toErrorMessage };\n\n//# sourceMappingURL=index.js.map","import { MAX_PROFILE_ID_LENGTH, MAX_VISITED_PROFILE_IDS, gatewayErrorEnvelopeSchema, normalizeSpacePasswordText, openMeldRequestContextSchema, openMeldRequestedOrganizationSelectorSchema } from \"@openmeld/schemas\";\nimport { toErrorMessage as toErrorMessage$1 } from \"@openmeld/utils\";\n//#region src/audit.ts\nfunction contextAuditFields(context) {\n\treturn {\n\t\trequestId: context.actorContext.requestId,\n\t\topenMeldProfileId: context.actorContext.openMeldProfileId,\n\t\tprofileKind: context.actorContext.profileKind\n\t};\n}\n//#endregion\n//#region src/headers.ts\nconst OPENMELD_HEADER_REQUEST_ID = \"x-openmeld-request-id\";\nconst OPENMELD_HEADER_CALLER_PRINCIPAL_ID = \"x-openmeld-caller-principal-id\";\nconst OPENMELD_HEADER_PROFILE_ID = \"x-openmeld-profile-id\";\nconst OPENMELD_HEADER_PROFILE_KIND = \"x-openmeld-profile-kind\";\nconst OPENMELD_HEADER_PROFILE_HANDLE = \"x-openmeld-profile-handle\";\nconst OPENMELD_HEADER_PROFILE_NAME = \"x-openmeld-profile-name\";\nconst OPENMELD_HEADER_OWNER_USER_ID = \"x-openmeld-owner-user-id\";\nconst OPENMELD_HEADER_OWNER_NAME = \"x-openmeld-owner-name\";\nconst OPENMELD_HEADER_AVATAR_URL = \"x-openmeld-avatar-url\";\nconst OPENMELD_HEADER_SPACE_PASSWORD = \"x-openmeld-space-password\";\nconst OPENMELD_HEADER_ACTIVE_ORGANIZATION_ID = \"x-openmeld-active-organization-id\";\nconst OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID = \"x-openmeld-requested-organization-id\";\nconst OPENMELD_HEADER_REQUESTED_ORGANIZATION_SLUG = \"x-openmeld-requested-organization-slug\";\nconst OPENMELD_HEADER_AGENT_CONTROLLER_REF = \"x-openmeld-agent-controller-ref\";\nconst OPENMELD_HEADER_AGENT_CONTROLLER_CONVERSATION_ID = \"x-openmeld-agent-controller-conversation-id\";\nconst OPENMELD_HEADER_DISPATCH_CHAIN_ID = \"x-openmeld-dispatch-chain-id\";\nconst OPENMELD_HEADER_AUTO_RELAY_DEPTH = \"x-openmeld-auto-relay-depth\";\nconst OPENMELD_HEADER_VISITED_PROFILE_IDS = \"x-openmeld-visited-profile-ids\";\nconst OPENMELD_HEADER_VISITED_PROFILE_IDS_HASH = \"x-openmeld-visited-profile-ids-hash\";\nconst OPENMELD_HEADER_FORWARDED_BY = \"x-openmeld-forwarded-by\";\nconst OPENMELD_EXPECTED_FORWARDED_BY = \"openmeld-gateway\";\nconst MAX_HEADER_LENGTH = 128;\nconst MAX_ENCODED_HEADER_LENGTH = 1024;\nconst MAX_AVATAR_URL_HEADER_LENGTH = 2048;\nconst OPENMELD_HEADER_TEXT_ENCODING_PREFIX = \"utf-8''\";\nconst MAX_PROFILE_ID_LIST_HEADER_LENGTH = MAX_VISITED_PROFILE_IDS * MAX_PROFILE_ID_LENGTH + (MAX_VISITED_PROFILE_IDS - 1);\nconst MAX_ENCODED_PROFILE_ID_LIST_HEADER_LENGTH = MAX_VISITED_PROFILE_IDS * MAX_PROFILE_ID_LENGTH + (MAX_VISITED_PROFILE_IDS - 1) * 3 + 7;\nconst PRINTABLE_ASCII_PATTERN = /^[\\x20-\\x7e]*$/;\nconst OPENMELD_MANAGED_REQUEST_CONTEXT_HEADERS = [\n\tOPENMELD_HEADER_REQUEST_ID,\n\tOPENMELD_HEADER_CALLER_PRINCIPAL_ID,\n\tOPENMELD_HEADER_PROFILE_ID,\n\tOPENMELD_HEADER_PROFILE_KIND,\n\tOPENMELD_HEADER_PROFILE_HANDLE,\n\tOPENMELD_HEADER_PROFILE_NAME,\n\tOPENMELD_HEADER_OWNER_USER_ID,\n\tOPENMELD_HEADER_OWNER_NAME,\n\tOPENMELD_HEADER_AVATAR_URL,\n\tOPENMELD_HEADER_SPACE_PASSWORD,\n\tOPENMELD_HEADER_ACTIVE_ORGANIZATION_ID,\n\tOPENMELD_HEADER_REQUESTED_ORGANIZATION_ID,\n\tOPENMELD_HEADER_REQUESTED_ORGANIZATION_SLUG,\n\tOPENMELD_HEADER_AGENT_CONTROLLER_REF,\n\tOPENMELD_HEADER_AGENT_CONTROLLER_CONVERSATION_ID,\n\tOPENMELD_HEADER_DISPATCH_CHAIN_ID,\n\tOPENMELD_HEADER_AUTO_RELAY_DEPTH,\n\tOPENMELD_HEADER_VISITED_PROFILE_IDS,\n\tOPENMELD_HEADER_VISITED_PROFILE_IDS_HASH,\n\tOPENMELD_HEADER_FORWARDED_BY\n];\nfunction readOpenMeldRequestedOrganizationSelector(headers) {\n\tconst organizationId = safeHeader(headers.get(OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID));\n\tconst organizationSlug = safeHeader(headers.get(OPENMELD_HEADER_REQUESTED_ORGANIZATION_SLUG));\n\tif (!(organizationId || organizationSlug)) return null;\n\treturn openMeldRequestedOrganizationSelectorSchema.parse({\n\t\t...organizationId ? { organizationId } : {},\n\t\t...organizationSlug ? { organizationSlug } : {}\n\t});\n}\n/**\n* Fetch header values are ByteStrings: undici and workerd throw a TypeError\n* for any code point above 0xff, so user-authored text (profile names, owner\n* names, Space passwords) cannot ride x-openmeld-* headers raw. Values that are\n* not printable ASCII travel RFC 8187-style as `utf-8''<percent-encoded>`;\n* printable-ASCII values pass through unchanged, keeping the wire format of\n* machine identifiers identical to older writers.\n*/\nfunction encodeOpenMeldHeaderText(value) {\n\tif (PRINTABLE_ASCII_PATTERN.test(value) && !value.startsWith(OPENMELD_HEADER_TEXT_ENCODING_PREFIX)) return value;\n\treturn `${OPENMELD_HEADER_TEXT_ENCODING_PREFIX}${encodeURIComponent(value)}`;\n}\nfunction decodeOpenMeldHeaderText(value) {\n\tif (!value.startsWith(OPENMELD_HEADER_TEXT_ENCODING_PREFIX)) return value;\n\tconst encoded = value.slice(7);\n\ttry {\n\t\treturn decodeURIComponent(encoded);\n\t} catch {\n\t\treturn value;\n\t}\n}\nfunction readOpenMeldRequestContext(headers, fallbackRequestId) {\n\tconst requestId = safeHeader(headers.get(\"x-openmeld-request-id\")) ?? fallbackRequestId;\n\tconst openMeldProfileId = safeHeader(headers.get(OPENMELD_HEADER_PROFILE_ID));\n\tconst profileKind = parseProfileKind(safeHeader(headers.get(OPENMELD_HEADER_PROFILE_KIND)));\n\tif (!(openMeldProfileId && profileKind)) return null;\n\tconst parsed = openMeldRequestContextSchema.safeParse({\n\t\tactorContext: {\n\t\t\trequestId,\n\t\t\t...safeHeader(headers.get(\"x-openmeld-caller-principal-id\")) ? { callerPrincipalId: safeHeader(headers.get(OPENMELD_HEADER_CALLER_PRINCIPAL_ID)) } : {},\n\t\t\topenMeldProfileId,\n\t\t\tprofileKind,\n\t\t\t...safeHeader(headers.get(\"x-openmeld-profile-handle\")) ? { profileHandle: safeHeader(headers.get(OPENMELD_HEADER_PROFILE_HANDLE)) } : {},\n\t\t\t...safeHeader(headers.get(\"x-openmeld-profile-name\")) ? { profileName: safeHeader(headers.get(OPENMELD_HEADER_PROFILE_NAME)) } : {},\n\t\t\t...safeHeader(headers.get(\"x-openmeld-owner-user-id\")) ? { ownerUserId: safeHeader(headers.get(OPENMELD_HEADER_OWNER_USER_ID)) } : {},\n\t\t\t...safeHeader(headers.get(\"x-openmeld-owner-name\")) ? { ownerName: safeHeader(headers.get(OPENMELD_HEADER_OWNER_NAME)) } : {},\n\t\t\t...readAvatarUrlHeader(headers.get(\"x-openmeld-avatar-url\")) ? { avatarUrl: readAvatarUrlHeader(headers.get(OPENMELD_HEADER_AVATAR_URL)) } : {},\n\t\t\t...safeHeader(headers.get(\"x-openmeld-agent-controller-ref\")) ? { agentControllerRef: safeHeader(headers.get(OPENMELD_HEADER_AGENT_CONTROLLER_REF)) } : {},\n\t\t\t...safeHeader(headers.get(\"x-openmeld-dispatch-chain-id\")) ? { dispatchChainId: safeHeader(headers.get(OPENMELD_HEADER_DISPATCH_CHAIN_ID)) } : {},\n\t\t\t...typeof parseOptionalNonNegativeIntHeader(headers.get(\"x-openmeld-auto-relay-depth\")) === \"number\" ? { autoRelayDepth: parseOptionalNonNegativeIntHeader(headers.get(OPENMELD_HEADER_AUTO_RELAY_DEPTH)) } : {},\n\t\t\t...parseOptionalProfileIdListHeader(headers.get(\"x-openmeld-visited-profile-ids\")).length > 0 ? { visitedProfileIds: parseOptionalProfileIdListHeader(headers.get(OPENMELD_HEADER_VISITED_PROFILE_IDS)) } : {},\n\t\t\t...safeHeader(headers.get(\"x-openmeld-visited-profile-ids-hash\")) ? { visitedProfileIdsHash: safeHeader(headers.get(OPENMELD_HEADER_VISITED_PROFILE_IDS_HASH)) } : {}\n\t\t},\n\t\t...safeHeader(headers.get(\"x-openmeld-active-organization-id\")) ? { activeOrganizationId: safeHeader(headers.get(OPENMELD_HEADER_ACTIVE_ORGANIZATION_ID)) } : {},\n\t\t...safeHeader(headers.get(\"x-openmeld-agent-controller-conversation-id\")) ? { agentControllerConversationId: safeHeader(headers.get(OPENMELD_HEADER_AGENT_CONTROLLER_CONVERSATION_ID)) } : {}\n\t});\n\treturn parsed.success ? parsed.data : null;\n}\nfunction buildOpenMeldRequestContextHeaders(input) {\n\tconst { actorContext } = input.requestContext;\n\tconst headers = {\n\t\t[OPENMELD_HEADER_REQUEST_ID]: actorContext.requestId,\n\t\t[OPENMELD_HEADER_PROFILE_ID]: actorContext.openMeldProfileId,\n\t\t[OPENMELD_HEADER_PROFILE_KIND]: actorContext.profileKind\n\t};\n\tconst callerPrincipalId = normalize(actorContext.callerPrincipalId);\n\tif (callerPrincipalId) headers[OPENMELD_HEADER_CALLER_PRINCIPAL_ID] = callerPrincipalId;\n\tconst profileHandle = normalize(actorContext.profileHandle);\n\tif (profileHandle) headers[OPENMELD_HEADER_PROFILE_HANDLE] = profileHandle;\n\tconst profileName = normalize(actorContext.profileName);\n\tif (profileName) headers[OPENMELD_HEADER_PROFILE_NAME] = profileName;\n\tconst ownerUserId = normalize(actorContext.ownerUserId);\n\tif (ownerUserId) headers[OPENMELD_HEADER_OWNER_USER_ID] = ownerUserId;\n\tconst ownerName = normalize(actorContext.ownerName);\n\tif (ownerName) headers[OPENMELD_HEADER_OWNER_NAME] = ownerName;\n\tconst avatarUrl = normalize(actorContext.avatarUrl);\n\tif (avatarUrl) headers[OPENMELD_HEADER_AVATAR_URL] = avatarUrl;\n\tconst agentControllerRef = normalize(actorContext.agentControllerRef);\n\tif (agentControllerRef) headers[OPENMELD_HEADER_AGENT_CONTROLLER_REF] = agentControllerRef;\n\tconst agentControllerConversationId = normalize(input.requestContext.agentControllerConversationId);\n\tif (agentControllerConversationId) headers[OPENMELD_HEADER_AGENT_CONTROLLER_CONVERSATION_ID] = agentControllerConversationId;\n\tconst activeOrganizationId = normalize(input.requestContext.activeOrganizationId);\n\tif (activeOrganizationId) headers[OPENMELD_HEADER_ACTIVE_ORGANIZATION_ID] = activeOrganizationId;\n\tconst dispatchChainId = normalize(actorContext.dispatchChainId);\n\tif (dispatchChainId) headers[OPENMELD_HEADER_DISPATCH_CHAIN_ID] = dispatchChainId;\n\tif (Number.isInteger(actorContext.autoRelayDepth) && (actorContext.autoRelayDepth ?? -1) >= 0) headers[OPENMELD_HEADER_AUTO_RELAY_DEPTH] = String(actorContext.autoRelayDepth);\n\tconst visitedProfileIds = normalizeProfileIdList(actorContext.visitedProfileIds);\n\tif (visitedProfileIds.length > 0) headers[OPENMELD_HEADER_VISITED_PROFILE_IDS] = visitedProfileIds.join(\",\");\n\tconst visitedProfileIdsHash = normalize(actorContext.visitedProfileIdsHash);\n\tif (visitedProfileIdsHash) headers[OPENMELD_HEADER_VISITED_PROFILE_IDS_HASH] = visitedProfileIdsHash;\n\tif (input.spacePassword !== void 0) {\n\t\tconst spacePassword = normalizeSpacePasswordText(input.spacePassword);\n\t\tif (spacePassword.length > 0) headers[OPENMELD_HEADER_SPACE_PASSWORD] = spacePassword;\n\t}\n\treturn encodeHeaderValues(headers);\n}\nfunction encodeHeaderValues(headers) {\n\tconst encoded = {};\n\tfor (const [key, value] of Object.entries(headers)) encoded[key] = encodeOpenMeldHeaderText(value);\n\treturn encoded;\n}\nfunction applyOpenMeldRequestContextHeaders(target, input, forwardedBy = OPENMELD_EXPECTED_FORWARDED_BY) {\n\tfor (const key of OPENMELD_MANAGED_REQUEST_CONTEXT_HEADERS) target.delete(key);\n\tconst headers = buildOpenMeldRequestContextHeaders(input);\n\tfor (const [key, value] of Object.entries(headers)) target.set(key, value);\n\ttarget.set(OPENMELD_HEADER_FORWARDED_BY, forwardedBy);\n\treturn target;\n}\nfunction safeHeader(value, { maxEncodedLength = MAX_ENCODED_HEADER_LENGTH, maxLength = MAX_HEADER_LENGTH } = {}) {\n\tconst normalized = normalize(value);\n\tif (!normalized) return null;\n\tconst decoded = decodeOpenMeldHeaderText(normalized.slice(0, maxEncodedLength)).trim();\n\tif (!decoded) return null;\n\treturn decoded.slice(0, maxLength);\n}\nfunction readAvatarUrlHeader(value) {\n\treturn safeHeader(value, {\n\t\tmaxEncodedLength: MAX_AVATAR_URL_HEADER_LENGTH,\n\t\tmaxLength: MAX_AVATAR_URL_HEADER_LENGTH\n\t});\n}\nfunction normalize(value) {\n\treturn String(value ?? \"\").trim();\n}\nfunction parseOptionalNonNegativeIntHeader(value) {\n\tconst normalized = safeHeader(value);\n\tif (!normalized) return null;\n\tconst parsed = Number.parseInt(normalized, 10);\n\tif (!Number.isInteger(parsed) || parsed < 0) return null;\n\treturn parsed;\n}\nfunction parseOptionalProfileIdListHeader(value) {\n\tconst normalized = safeHeader(value, {\n\t\tmaxEncodedLength: MAX_ENCODED_PROFILE_ID_LIST_HEADER_LENGTH,\n\t\tmaxLength: MAX_PROFILE_ID_LIST_HEADER_LENGTH\n\t});\n\tif (!normalized) return [];\n\treturn normalizeProfileIdList(normalized.split(\",\"));\n}\nfunction normalizeProfileIdList(value) {\n\tif (!Array.isArray(value)) return [];\n\treturn value.map((item) => normalize(item)).filter((item) => item.length > 0);\n}\nfunction parseProfileKind(value) {\n\tif (value === \"human\" || value === \"agent\" || value === \"system\") return value;\n\treturn null;\n}\n//#endregion\n//#region src/errors.ts\nfunction jsonErrorResponse(input) {\n\tconst payload = gatewayErrorEnvelopeSchema.parse({\n\t\tok: false,\n\t\terror: {\n\t\t\tcode: input.code,\n\t\t\tmessage: input.message,\n\t\t\trequestId: input.requestId,\n\t\t\t...input.upstreamCode ? { upstreamCode: input.upstreamCode } : {}\n\t\t}\n\t});\n\tconst response = Response.json(payload, { status: input.status });\n\tresponse.headers.set(OPENMELD_HEADER_REQUEST_ID, input.requestId);\n\treturn response;\n}\nfunction wsErrorFrame(input) {\n\tconst payload = gatewayErrorEnvelopeSchema.parse({\n\t\tok: false,\n\t\terror: {\n\t\t\tcode: input.code,\n\t\t\tmessage: input.message,\n\t\t\trequestId: input.requestId\n\t\t}\n\t});\n\treturn JSON.stringify({\n\t\ttype: \"system.error\",\n\t\terror: payload.error\n\t});\n}\nfunction withRequestIdHeader(response, requestId) {\n\tconst headers = new Headers(response.headers);\n\theaders.set(OPENMELD_HEADER_REQUEST_ID, requestId);\n\treturn new Response(response.body, {\n\t\tstatus: response.status,\n\t\tstatusText: response.statusText,\n\t\theaders\n\t});\n}\nasync function readUpstreamErrorMessage(response) {\n\tconst text = (await response.text().catch(() => \"\")).trim();\n\tif (!text) return `upstream_http_${response.status}`;\n\tif (!(response.headers.get(\"content-type\") ?? \"\").includes(\"application/json\")) return text;\n\tlet parsed;\n\ttry {\n\t\tparsed = JSON.parse(text);\n\t} catch {\n\t\treturn text;\n\t}\n\tif (typeof parsed !== \"object\" || parsed === null) return text;\n\tconst body = parsed;\n\tconst nestedMessage = typeof body.error === \"object\" && body.error !== null ? String(body.error.message ?? \"\").trim() : \"\";\n\tif (nestedMessage) return nestedMessage;\n\tconst errorMessage = typeof body.error === \"string\" ? body.error.trim() : \"\";\n\tif (errorMessage) return errorMessage;\n\tconst message = typeof body.message === \"string\" ? body.message.trim() : \"\";\n\tif (message) return message;\n\treturn (typeof body.detail === \"string\" ? body.detail.trim() : \"\") || text;\n}\nconst toErrorMessage = toErrorMessage$1;\n//#endregion\n//#region src/query-parameters.ts\nconst ORGANIZATION_DIRECTORY_INCLUDE_HUMAN_PROFILE_LAST_USED_AT_QUERY_PARAMETER = \"includeHumanProfileLastUsedAt\";\n//#endregion\nexport { OPENMELD_EXPECTED_FORWARDED_BY, OPENMELD_HEADER_ACTIVE_ORGANIZATION_ID, OPENMELD_HEADER_AGENT_CONTROLLER_CONVERSATION_ID, OPENMELD_HEADER_AGENT_CONTROLLER_REF, OPENMELD_HEADER_AUTO_RELAY_DEPTH, OPENMELD_HEADER_AVATAR_URL, OPENMELD_HEADER_CALLER_PRINCIPAL_ID, OPENMELD_HEADER_DISPATCH_CHAIN_ID, OPENMELD_HEADER_FORWARDED_BY, OPENMELD_HEADER_OWNER_NAME, OPENMELD_HEADER_OWNER_USER_ID, OPENMELD_HEADER_PROFILE_HANDLE, OPENMELD_HEADER_PROFILE_ID, OPENMELD_HEADER_PROFILE_KIND, OPENMELD_HEADER_PROFILE_NAME, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID, OPENMELD_HEADER_REQUESTED_ORGANIZATION_SLUG, OPENMELD_HEADER_REQUEST_ID, OPENMELD_HEADER_SPACE_PASSWORD, OPENMELD_HEADER_VISITED_PROFILE_IDS, OPENMELD_HEADER_VISITED_PROFILE_IDS_HASH, ORGANIZATION_DIRECTORY_INCLUDE_HUMAN_PROFILE_LAST_USED_AT_QUERY_PARAMETER, applyOpenMeldRequestContextHeaders, buildOpenMeldRequestContextHeaders, contextAuditFields, decodeOpenMeldHeaderText, encodeOpenMeldHeaderText, jsonErrorResponse, readOpenMeldRequestContext, readOpenMeldRequestedOrganizationSelector, readUpstreamErrorMessage, toErrorMessage, withRequestIdHeader, wsErrorFrame };\n\n//# sourceMappingURL=index.js.map","import { helloSchema, incomingServerMessageSchema, profileSchema, serverErrorFrameSchema, signalEnvelopeSchema, signalTextSchema } from \"@openmeld/schemas/schemas\";\n//#region src/constants.ts\nconst MAX_PROFILE_ID_LENGTH = 64;\nconst MAX_PROFILE_NAME_LENGTH = 64;\nconst MAX_TEXT_LENGTH = 1e5;\nconst SPACE_STREAM_KEEPALIVE_PING = \"ping\";\nconst SPACE_STREAM_KEEPALIVE_PONG = \"pong\";\nconst DAEMON_STREAM_KEEPALIVE_PING = \"ping\";\nconst DAEMON_STREAM_KEEPALIVE_PONG = \"pong\";\n//#endregion\n//#region src/parse.ts\nfunction parseJsonObject(value) {\n\ttry {\n\t\tconst parsed = JSON.parse(value);\n\t\tif (!parsed || typeof parsed !== \"object\" || Array.isArray(parsed)) return {\n\t\t\tok: false,\n\t\t\terror: \"invalid_json\"\n\t\t};\n\t\treturn {\n\t\t\tok: true,\n\t\t\tvalue: parsed\n\t\t};\n\t} catch {\n\t\treturn {\n\t\t\tok: false,\n\t\t\terror: \"invalid_json\"\n\t\t};\n\t}\n}\nfunction parseProfile(value) {\n\tconst parsed = profileSchema.safeParse(value);\n\tif (parsed.success) return {\n\t\tok: true,\n\t\tvalue: parsed.data\n\t};\n\treturn {\n\t\tok: false,\n\t\terror: parsed.error.issues.some((issue) => issue.path[0] === \"profileId\") ? \"invalid_profile_id\" : \"invalid_profile\"\n\t};\n}\nfunction parseSpaceCreator(value) {\n\tif (!value || typeof value !== \"object\") return null;\n\treturn parseSpaceCreatorFromCreatorShape(value) ?? parseSpaceCreatorFromProfileShape(value);\n}\nfunction normalizeProfileId(value) {\n\tconst profile = parseProfile({ profileId: value });\n\tif (!profile.ok) return null;\n\treturn profile.value.profileId;\n}\nfunction parseHello(obj) {\n\tif (obj.type !== \"hello\") return {\n\t\tok: false,\n\t\terror: \"not_hello\"\n\t};\n\tconst profile = parseProfile(obj.profile);\n\tif (!profile.ok) return {\n\t\tok: false,\n\t\terror: profile.error\n\t};\n\tconst parsed = helloSchema.safeParse({\n\t\ttype: \"hello\",\n\t\tprofile: profile.value,\n\t\t...obj.capabilities === void 0 ? {} : { capabilities: obj.capabilities }\n\t});\n\tif (!parsed.success) return {\n\t\tok: false,\n\t\terror: \"invalid_profile\"\n\t};\n\treturn {\n\t\tok: true,\n\t\tvalue: parsed.data\n\t};\n}\nfunction parseSignalText(obj) {\n\tif (obj.type !== \"signal.text\") return {\n\t\tok: false,\n\t\terror: \"not_signal_text\"\n\t};\n\tconst data = obj.data;\n\tif (!data || typeof data !== \"object\") return {\n\t\tok: false,\n\t\terror: \"invalid_signal_data\"\n\t};\n\tif (Array.isArray(data)) return {\n\t\tok: false,\n\t\terror: \"invalid_signal_data\"\n\t};\n\tconst parsed = signalTextSchema.safeParse(obj);\n\tif (parsed.success) return {\n\t\tok: true,\n\t\tvalue: parsed.data\n\t};\n\tif (parsed.error.issues.some((issue) => issue.path[0] === \"data\" && issue.path[1] === \"text\" && issue.code === \"too_big\")) return {\n\t\tok: false,\n\t\terror: \"text_too_long\"\n\t};\n\treturn {\n\t\tok: false,\n\t\terror: \"empty_text\"\n\t};\n}\nfunction parseEnvelope(value) {\n\tconst parsed = signalEnvelopeSchema.safeParse(value);\n\treturn parsed.success ? parsed.data : null;\n}\nfunction parseIncoming(value) {\n\tconst parsed = incomingServerMessageSchema.safeParse(value);\n\treturn parsed.success ? parsed.data : null;\n}\nfunction parseServerErrorFrame(value) {\n\tconst parsed = serverErrorFrameSchema.safeParse(value);\n\treturn parsed.success ? parsed.data : null;\n}\nfunction parseSpaceCreatorFromCreatorShape(value) {\n\tconst creator = value;\n\tif (typeof creator.profileId !== \"string\") return null;\n\tconst profileId = creator.profileId.trim();\n\tif (!profileId || profileId.length > 64) return null;\n\tconst profileName = typeof creator.profileName === \"string\" && creator.profileName.trim().length > 0 ? creator.profileName.trim() : void 0;\n\tconst kind = creator.kind === \"human\" || creator.kind === \"agent\" || creator.kind === \"system\" ? creator.kind : void 0;\n\tconst profile = typeof creator.profile === \"string\" && creator.profile.trim().length > 0 ? creator.profile.trim() : void 0;\n\tconst ownerUserIdRaw = creator.ownerUserId ?? creator.owner;\n\tconst ownerUserId = typeof ownerUserIdRaw === \"string\" && ownerUserIdRaw.trim().length > 0 ? ownerUserIdRaw.trim().slice(0, 64) : void 0;\n\treturn {\n\t\tprofileId,\n\t\t...profileName ? { profileName } : {},\n\t\t...kind ? { kind } : {},\n\t\t...profile ? { profile } : {},\n\t\t...ownerUserId ? { ownerUserId } : {}\n\t};\n}\nfunction parseSpaceCreatorFromProfileShape(value) {\n\tconst parsedProfile = parseProfile(value);\n\tif (!parsedProfile.ok) return null;\n\tconst profileRaw = value.profile;\n\tconst profile = typeof profileRaw === \"string\" && profileRaw.trim().length > 0 ? profileRaw.trim() : void 0;\n\treturn {\n\t\tprofileId: parsedProfile.value.profileId,\n\t\t...parsedProfile.value.profileName ? { profileName: parsedProfile.value.profileName } : {},\n\t\t...parsedProfile.value.kind ? { kind: parsedProfile.value.kind } : {},\n\t\t...profile ? { profile } : {},\n\t\t...parsedProfile.value.owner ? { ownerUserId: parsedProfile.value.owner.trim().slice(0, 64) } : {}\n\t};\n}\n//#endregion\n//#region src/profile-display.ts\nfunction buildProfileDisplay(input) {\n\tconst profileId = normalizeOptionalText(input.openMeldProfileId ?? input.profileId);\n\tif (!profileId) throw new TypeError(\"profile display requires openMeldProfileId\");\n\tconst profileName = normalizeOptionalText(input.profileName);\n\tconst ownerUserId = normalizeOptionalText(input.ownerUserId);\n\tconst ownerName = normalizeOptionalText(input.ownerName);\n\tconst agentControllerRef = resolveAgentControllerRef(input);\n\tconst agentControllerConversationId = normalizeOptionalText(input.agentControllerConversationId);\n\treturn {\n\t\tkind: input.profileKind,\n\t\tprofileId,\n\t\t...profileName ? { profileName } : {},\n\t\t...input.profileKind === \"agent\" && ownerUserId ? { owner: ownerUserId } : {},\n\t\t...input.profileKind === \"agent\" && ownerName ? { ownerName } : {},\n\t\t...input.profileKind === \"agent\" && agentControllerRef ? { agentControllerRef } : {},\n\t\t...input.profileKind === \"agent\" && agentControllerConversationId ? { agentControllerConversationId } : {}\n\t};\n}\nfunction resolveAgentControllerRef(input) {\n\treturn normalizeOptionalText(input.agentControllerRef);\n}\nfunction normalizeOptionalText(value) {\n\tconst normalized = String(value ?? \"\").trim();\n\treturn normalized.length > 0 ? normalized : null;\n}\n//#endregion\n//#region src/profile-handle.ts\nconst MAX_MENTION_TOKEN_LENGTH = 128;\nconst MENTION_TOKEN_REGEX = /^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;\nconst HANDLE_SEED_SANITIZE_REGEX = /[^a-z0-9]+/g;\nconst HANDLE_SEED_MULTI_SEPARATOR_REGEX = /-+/g;\nconst HANDLE_SEED_EDGE_SEPARATOR_REGEX = /^-+|-+$/g;\nconst LEGACY_MENTION_ALIAS_SEED_MAX_LENGTH = 96;\nconst LEGACY_MENTION_ALIAS_PROFILE_ID_SUFFIX_LENGTH = 8;\nconst LEGACY_HANDLE_SEED_START_CHAR_REGEX = /^[a-z0-9]/;\nconst LEGACY_HANDLE_SEED_SANITIZE_REGEX = /[^A-Za-z0-9._-]+/g;\nconst LEGACY_HANDLE_SEED_MULTI_SEPARATOR_REGEX = /[._-]{2,}/g;\nconst LEGACY_HANDLE_SEED_EDGE_SEPARATOR_REGEX = /^[._-]+|[._-]+$/g;\nconst PROFILE_ID_SUFFIX_SANITIZE_REGEX = /[^a-z0-9]/g;\nfunction normalizeMentionToken(value) {\n\tif (typeof value !== \"string\") return null;\n\tconst normalized = value.trim();\n\tif (normalized.length === 0 || normalized.length > 128 || !MENTION_TOKEN_REGEX.test(normalized)) return null;\n\treturn normalized;\n}\nfunction buildProfileHandleBase(input) {\n\tconst bounded = input.profileName.trim().toLowerCase().replace(HANDLE_SEED_SANITIZE_REGEX, \"-\").replace(HANDLE_SEED_MULTI_SEPARATOR_REGEX, \"-\").replace(HANDLE_SEED_EDGE_SEPARATOR_REGEX, \"\").slice(0, 128);\n\tif (bounded.length > 0) return bounded;\n\treturn resolveProfileHandleFallbackBase(input.profileKind);\n}\nfunction buildProfileHandleCandidate(input) {\n\tconst sequence = Math.max(1, Math.trunc(input.sequence));\n\tconst normalizedBase = normalizeMentionToken(input.baseHandle) ?? normalizeMentionToken(resolveProfileHandleFallbackBase(input.profileKind)) ?? \"profile\";\n\tif (sequence === 1) return normalizedBase;\n\tconst suffix = `-${sequence}`;\n\tconst boundedBase = normalizedBase.slice(0, 128 - suffix.length).replace(HANDLE_SEED_EDGE_SEPARATOR_REGEX, \"\");\n\tconst fallbackBase = resolveProfileHandleFallbackBase(input.profileKind).slice(0, Math.max(1, 128 - suffix.length));\n\treturn `${boundedBase || fallbackBase}${suffix}`;\n}\nfunction buildProfileHandleCandidates(input) {\n\tconst baseHandle = buildProfileHandleBase(input);\n\tconst limit = Math.max(1, Math.trunc(input.limit ?? 8));\n\tconst candidates = [];\n\tfor (let sequence = 1; sequence <= limit; sequence += 1) candidates.push(buildProfileHandleCandidate({\n\t\tbaseHandle,\n\t\tprofileKind: input.profileKind,\n\t\tsequence\n\t}));\n\treturn candidates;\n}\nfunction resolveAvailableProfileHandle(input) {\n\tconst takenHandles = /* @__PURE__ */ new Set();\n\tfor (const handle of input.takenHandles ?? []) {\n\t\tconst normalized = normalizeMentionToken(handle);\n\t\tif (normalized) takenHandles.add(normalized.toLowerCase());\n\t}\n\tconst baseHandle = buildProfileHandleBase(input);\n\tfor (let sequence = 1; sequence < Number.MAX_SAFE_INTEGER; sequence += 1) {\n\t\tconst candidate = buildProfileHandleCandidate({\n\t\t\tbaseHandle,\n\t\t\tprofileKind: input.profileKind,\n\t\t\tsequence\n\t\t});\n\t\tif (!takenHandles.has(candidate.toLowerCase())) return candidate;\n\t}\n\tthrow new Error(\"failed to resolve available profile handle\");\n}\nfunction buildLegacyDefaultMentionAliasCandidates(input) {\n\tconst aliases = [];\n\tconst normalizedProfileName = normalizeMentionToken(input.profileName);\n\tif (normalizedProfileName) aliases.push(normalizedProfileName);\n\tconst profileSeed = buildLegacyDefaultMentionAliasSeed({\n\t\tprofileName: input.profileName,\n\t\tprofileKind: input.profileKind\n\t});\n\tconst profileIdSuffix = normalizeLegacyProfileIdSuffix(input.profileId);\n\tconst fallbackAlias = normalizeMentionToken(profileIdSuffix ? `${profileSeed}-${profileIdSuffix}` : profileSeed);\n\tif (fallbackAlias && !aliases.includes(fallbackAlias)) aliases.push(fallbackAlias);\n\treturn aliases;\n}\nfunction isLegacyDefaultMentionAlias(input) {\n\tconst mentionAlias = normalizeMentionToken(input.mentionAlias);\n\tif (!mentionAlias) return false;\n\tconst profileName = typeof input.profileName === \"string\" ? input.profileName : null;\n\tconst profileId = typeof input.profileId === \"string\" ? input.profileId : null;\n\tconst profileKind = input.profileKind ?? null;\n\tif (!(profileName && profileId && profileKind)) return false;\n\treturn buildLegacyDefaultMentionAliasCandidates({\n\t\tprofileName,\n\t\tprofileId,\n\t\tprofileKind\n\t}).some((candidate) => candidate.toLowerCase() === mentionAlias.toLowerCase());\n}\nfunction resolveCustomMentionAliasOverride(input) {\n\tconst mentionAlias = normalizeMentionToken(input.mentionAlias);\n\tif (!mentionAlias) return null;\n\treturn isLegacyDefaultMentionAlias({\n\t\tmentionAlias,\n\t\tprofileName: input.profileName,\n\t\tprofileId: input.profileId,\n\t\tprofileKind: input.profileKind\n\t}) ? null : mentionAlias;\n}\nfunction resolveProfileHandleFallbackBase(profileKind) {\n\tswitch (profileKind) {\n\t\tcase \"human\": return \"human\";\n\t\tcase \"system\": return \"system\";\n\t\tdefault: return \"agent\";\n\t}\n}\nfunction normalizeLegacyProfileIdSuffix(profileId) {\n\tconst normalized = profileId.trim().toLowerCase().replace(PROFILE_ID_SUFFIX_SANITIZE_REGEX, \"\");\n\tif (normalized.length === 0) return \"\";\n\tconst withoutAgentPrefix = normalized.startsWith(\"agt\") ? normalized.slice(3) : normalized;\n\treturn (withoutAgentPrefix.length > 0 ? withoutAgentPrefix : normalized).slice(0, LEGACY_MENTION_ALIAS_PROFILE_ID_SUFFIX_LENGTH);\n}\nfunction buildLegacyDefaultMentionAliasSeed(input) {\n\tconst normalized = input.profileName.trim().toLowerCase().replace(LEGACY_HANDLE_SEED_SANITIZE_REGEX, \"-\").replace(LEGACY_HANDLE_SEED_MULTI_SEPARATOR_REGEX, \"-\").replace(LEGACY_HANDLE_SEED_EDGE_SEPARATOR_REGEX, \"\").slice(0, LEGACY_MENTION_ALIAS_SEED_MAX_LENGTH);\n\tif (normalized.length === 0) return resolveProfileHandleFallbackBase(input.profileKind);\n\tif (LEGACY_HANDLE_SEED_START_CHAR_REGEX.test(normalized)) return normalized;\n\treturn `agent-${normalized}`.slice(0, LEGACY_MENTION_ALIAS_SEED_MAX_LENGTH);\n}\n//#endregion\nexport { DAEMON_STREAM_KEEPALIVE_PING, DAEMON_STREAM_KEEPALIVE_PONG, MAX_MENTION_TOKEN_LENGTH, MAX_PROFILE_ID_LENGTH, MAX_PROFILE_NAME_LENGTH, MAX_TEXT_LENGTH, MENTION_TOKEN_REGEX, SPACE_STREAM_KEEPALIVE_PING, SPACE_STREAM_KEEPALIVE_PONG, buildLegacyDefaultMentionAliasCandidates, buildProfileDisplay, buildProfileHandleBase, buildProfileHandleCandidate, buildProfileHandleCandidates, isLegacyDefaultMentionAlias, normalizeMentionToken, normalizeProfileId, parseEnvelope, parseHello, parseIncoming, parseJsonObject, parseProfile, parseServerErrorFrame, parseSignalText, parseSpaceCreator, resolveAvailableProfileHandle, resolveCustomMentionAliasOverride };\n\n//# sourceMappingURL=index.js.map","import { CENTER_AGENT_ROUTINE_MANAGEMENT_CONTRACT, CENTER_AGENT_ROUTINE_PRACTICAL_CONTRACT, CENTER_AGENT_TASK_RESPONSE_CONTRACT_VERSION, CENTER_AGENT_TASK_RESPONSE_CONTRACT_VERSION_HEADER, ORGANIZATION_LOGO_MAX_SIZE_BYTES, accountSpaceIndexResponseSchema, addCenterAgentToSpaceBodySchema, addOrganizationDirectoryProfilesToSpaceBodySchema, agentActivityEventSchema, agentActivitySnapshotQuerySchema, agentActivitySnapshotResponseSchema, agentActivityStatsQuerySchema, agentActivityStatsResponseSchema, agentExecutionReadinessRouteParamsSchema, agentProfileBindingRouteParamsSchema, approveOrganizationDocumentDraftResponseSchema, archiveProjectBodySchema, archiveProjectResponseSchema, authorizeAgentProfileBindingForOrganizationResponseSchema, bulkAuthorizeAgentProfileBindingsForOrganizationBodySchema, bulkAuthorizeAgentProfileBindingsForOrganizationResponseSchema, catchupResponseSchema, centerAgentInboxSummaryResponseSchema, centerAgentModelConfigurationResponseSchema, centerAgentOrganizationMemoryPolicyResponseSchema, centerAgentRoutineRouteParamsSchema, centerAgentSlackWorkspaceConnectBodySchema, centerAgentSlackWorkspaceConnectionResponseSchema, centerAgentSlackWorkspaceDisconnectResponseSchema, centerAgentTaskRouteParamsSchema, centerAgentUpdateProfileBodySchema, centerAgentUpdateProfileResponseSchema, centerAgentWipeMemberMemoryResponseSchema, computerFileAccessPolicyResponseSchema, computerFileAccessReadRequestSchema, computerFileAccessUpdateRequestSchema, continueCenterAgentTaskBodySchema, convertDirectMessageToSpaceBodySchema, convertDirectMessageToSpaceResponseSchema, createCenterAgentContextLoadReceiptBodySchema, createCenterAgentContextLoadReceiptResponseSchema, createCenterAgentContextManifestBodySchema, createCenterAgentContextManifestResponseSchema, createCenterAgentRoutineBodySchema, createCenterAgentRoutineResponseSchema, createOrganizationDocumentBodySchema, createOrganizationDocumentFolderBodySchema, createOrganizationDocumentFolderResponseSchema, createOrganizationDocumentResponseSchema, createOrganizationSkillBodySchema, createOrganizationSkillResponseSchema, createProjectBodySchema, createProjectResponseSchema, createSpaceBodySchema, createSpaceDiagnosticReportBodySchema, createSpaceDiagnosticReportResponseSchema, createSpaceResponseSchema, createSpaceThreadBodySchema, createSpaceThreadResponseSchema, currentDeviceTargetResponseSchema, currentLocalRuntimeReplyReadinessResponseSchema, deleteCenterAgentRoutineBodySchema, deleteCenterAgentRoutineResponseSchema, deleteOrganizationDocumentFolderResponseSchema, deleteOrganizationDocumentResponseSchema, deleteOrganizationSkillBodySchema, deleteOrganizationSkillResponseSchema, deleteSpaceResponseSchema, designateCenterAgentBodySchema, designateCenterAgentResponseSchema, disableAgentProfilePrimaryBindingResponseSchema, discardOrganizationDocumentDraftResponseSchema, dismissInboxItemResponseSchema, ensureAgentProfilePrimaryBindingBodySchema, ensureAgentProfilePrimaryBindingResponseSchema, executeExecutionRecoveryBodySchema, executeExecutionRecoveryResponseSchema, feedbackReportingPolicyResponseSchema, forgetComputerResponseSchema, forgetCurrentComputerResponseSchema, gatewayErrorCodeSchema, gatewayErrorEnvelopeSchema, getActiveSpaceWakeProgressResponseSchema, getAgentExecutionReadinessBatchBodySchema, getAgentExecutionReadinessBatchResponseSchema, getAgentExecutionReadinessResponseSchema, getAgentProfilePrimaryBindingResponseSchema, getCenterAgentDesignationResponseSchema, getCenterAgentDirectMessageSpaceProjectionResponseSchema, getCenterAgentMemberResearchStatusResponseSchema, getCenterAgentOperatingStateResponseSchema, getCenterAgentTaskResponseSchema, getInboxItemResponseSchema, getLocalRuntimeExpectedRoutesQuerySchema, getLocalRuntimeExpectedRoutesResponseSchema, getModelCatalogResponseSchema, getOrganizationBindingAuthorizationPreferenceResponseSchema, getOrganizationDocumentResponseSchema, getOrganizationSkillResponseSchema, getPrepareReadinessQuerySchema, getPrepareReadinessResponseSchema, getSpaceMessageDetailsResponseSchema, getSpaceStatusResponseSchema, getSpaceThreadResponseSchema, getSpaceUpdatesResponseSchema, getSpaceWakeProgressResponseSchema, getSpaceWakeTraceWaterfallResponseSchema, importOrganizationSkillFromGitHubBodySchema, importOrganizationSkillFromGitHubResponseSchema, inboxItemRouteParamsSchema, inboxNotificationPreferencesResponseSchema, inboxSummaryResponseSchema, inspectExecutionRecoveryResponseSchema, larkPlatformActiveRegistrationListResponseSchema, larkPlatformProviderSchema, larkPlatformRegistrationAttemptIdSchema, larkPlatformRegistrationBeginModeSchema, larkPlatformRegistrationResponseSchema, leaveSpaceResponseSchema, listCenterAgentAuditJournalQuerySchema, listCenterAgentAuditJournalResponseSchema, listCenterAgentRoutineRunsQuerySchema, listCenterAgentRoutineRunsResponseSchema, listCenterAgentRoutineTargetSpacesResponseSchema, listCenterAgentRoutinesManagementResponseSchema, listCenterAgentRoutinesResponseSchema, listCenterAgentTasksQuerySchema, listCenterAgentTasksResponseSchema, listCurrentUserAgentProfileOrganizationWakeAccessResponseSchema, listInboxItemsQuerySchema, listInboxItemsResponseSchema, listOrganizationBindingAuthorizationProfilesResponseSchema, listOrganizationBindingAuthorizationsResponseSchema, listOrganizationDocumentsResponseSchema, listOrganizationSkillsResponseSchema, listProfileSpaceHistoryResponseSchema, listProjectsResponseSchema, listSpaceThreadEventsResponseSchema, listSpaceThreadSignalsQuerySchema, listSpaceThreadSignalsResponseSchema, listSpaceThreadsResponseSchema, localFolderPickerRequestSchema, localFolderPickerResultSchema, localProjectControlConnectCandidateRequestSchema, localProjectControlConnectDeclaredPathRequestSchema, localProjectControlConnectOutcomeSchema, localProjectControlDiscoverProjectsRequestSchema, localProjectControlDiscoverProjectsResponseSchema, localProjectControlRemoveConnectionRequestSchema, localProjectControlRemoveConnectionResponseSchema, localProjectControlRemoveMissingConnectionsRequestSchema, localProjectControlRemoveMissingConnectionsResponseSchema, localProjectControlSetDefaultConnectionRequestSchema, localProjectControlSetDefaultConnectionResponseSchema, localRuntimeEnrollmentBodySchema, localRuntimeEnrollmentResponseSchema, localRuntimesQuerySchema, localRuntimesResponseSchema, markAllInboxItemsReadResponseSchema, markCenterAgentInboxReadThroughBodySchema, markCenterAgentInboxReadThroughResponseSchema, markInboxItemReadBodySchema, markInboxItemReadResponseSchema, markSpaceInboxReadThroughBodySchema, markSpaceInboxReadThroughResponseSchema, messageChannelConnectionListResponseSchema, messageChannelIdentityLinkConsumeBodySchema, messageChannelIdentityLinkConsumeResponseSchema, messageChannelIdentityLinkPreviewBodySchema, messageChannelIdentityLinkPreviewResponseSchema, mutateCenterAgentTaskResponseSchema, normalizeListSignalsReadQuerySemantics, normalizeSpacePasswordText, notifyAgentProfileRouteCatalogChangedBodySchema, notifyAgentProfileRouteCatalogChangedResponseSchema, notifyAgentProfilesRouteCatalogChangedBodySchema, openCenterAgentDirectMessageSpaceResponseSchema, openDirectMessageSpaceBodySchema, openDirectMessageSpaceResponseSchema, openMeldRequestContextSchema, organizationDirectoryResponseSchema, organizationDocumentFolderRouteParamsSchema, organizationDocumentRouteParamsSchema, organizationInformationProtectionPolicyResponseSchema, organizationLogoMimeTypeSchema, organizationLogoResponseSchema, organizationMemberOpenMeldServiceStatusesResponseSchema, organizationSkillRouteParamsSchema, organizationSpaceDirectoryResponseSchema, organizationSpaceDirectoryWithMemberCountsResponseSchema, organizationUsageOverviewResponseSchema, patchProfileSpaceHistoryStatusResponseSchema, patchSpaceMetaBodySchema, patchSpaceMetaResponseSchema, pauseCenterAgentRoutineBodySchema, pauseCenterAgentRoutineResponseSchema, postNormalMessageBodySchema, postNormalMessageResponseSchema, postSpaceMembersBodySchema, postSpaceMembersResponseSchema, postSpaceThreadSignalBodySchema, postSpaceThreadSignalResponseSchema, postSpaceWakeStopBodySchema, postSpaceWakeStopResponseSchema, previewOrganizationSkillFromGitHubBodySchema, previewOrganizationSkillFromGitHubResponseSchema, projectRouteParamsSchema, refreshCurrentLocalAgentCatalogResponseSchema, removeSpaceMembersBodySchema, removeSpaceMembersResponseSchema, respondToSpaceAgentInteractionBodySchema, respondToSpaceAgentInteractionResponseSchema, resumeCenterAgentRoutineBodySchema, resumeCenterAgentRoutineResponseSchema, retryCenterAgentTaskBodySchema, revokeAgentProfileBindingForOrganizationResponseSchema, saveOrganizationWakeAccessChoiceBodySchema, saveOrganizationWakeAccessChoiceResponseSchema, setCurrentAgentProfileWorkspaceBodySchema, setCurrentAgentProfileWorkspaceResponseSchema, setCurrentLocalAgentEnabledBodySchema, setCurrentLocalAgentEnabledResponseSchema, setLocalRuntimeDisplayNameBodySchema, setOrganizationBindingAuthorizationPreferenceBodySchema, setOrganizationBindingAuthorizationPreferenceResponseSchema, setOrganizationSkillEnabledBodySchema, setOrganizationSkillEnabledResponseSchema, setOrganizationSkillMaintainersBodySchema, setOrganizationSkillMaintainersResponseSchema, setSpaceAccessModeBodySchema, slackIdentityLinkConsumeBodySchema, slackIdentityLinkConsumeResponseSchema, slackIdentityLinkPreviewBodySchema, slackIdentityLinkPreviewResponseSchema, spaceAccessModeStateSchema, spaceAttachmentMimeTypeSchema, spaceAttachmentSizeBytesSchema, spaceAttachmentUploadQuerySchema, spaceBootstrapResponseSchema, spaceIdentityDirectorySchema, spaceInboxSummaryResponseSchema, spaceMemberDirectorySchema, spaceMembersSnapshotSchema, spaceViewerMembershipResponseSchema, startCenterAgentMemberResearchBodySchema, startCenterAgentMemberResearchResponseSchema, stopCenterAgentTaskBodySchema, submitAgentActivityEventsBodySchema, submitAgentActivityEventsResponseSchema, submitAgentControllerTaskLifecycleEventsBodySchema, submitAgentControllerTaskLifecycleEventsResponseSchema, submitFeedbackIssueRequestSchema, submitFeedbackIssueResponseSchema, submitRuntimeAgentControllerReportsBodySchema, submitRuntimeAgentControllerReportsResponseSchema, submitRuntimeProviderConversationProofsBodySchema, submitRuntimeProviderConversationProofsResponseSchema, submitRuntimeRegistrationBodySchema, submitRuntimeRegistrationResponseSchema, toLegacySpaceAddressingWireValue, updateAgentProfileDefaultProjectBodySchema, updateAgentProfileDefaultProjectResponseSchema, updateAgentProfilePrimaryBindingAgentControllerCollaborationModeBodySchema, updateAgentProfilePrimaryBindingAgentControllerPermissionModeBodySchema, updateAgentProfilePrimaryBindingModelSelectionBodySchema, updateAgentProfilePrimaryBindingOpenCodePermissionBodySchema, updateCenterAgentModelBodySchema, updateCenterAgentModelResponseSchema, updateCenterAgentOperatingStateBodySchema, updateCenterAgentOperatingStateResponseSchema, updateCenterAgentOrganizationMemoryPolicyBodySchema, updateCenterAgentRoutineBodySchema, updateCenterAgentRoutineResponseSchema, updateFeedbackReportingPolicyBodySchema, updateInboxNotificationPreferencesBodySchema, updateOrganizationDocumentBodySchema, updateOrganizationDocumentFolderBodySchema, updateOrganizationDocumentFolderResponseSchema, updateOrganizationDocumentResponseSchema, updateOrganizationInformationProtectionPolicyBodySchema, updateOrganizationSkillBodySchema, updateOrganizationSkillResponseSchema, updateProfileResponseSchema, updateProjectBodySchema, updateProjectResponseSchema, uploadSpaceAttachmentResponseSchema, upsertProfileSpaceHistoryResponseSchema, writeCurrentDeviceObservedMetadataBodySchema, writeCurrentDeviceObservedMetadataResponseSchema } from \"@openmeld/schemas\";\nimport { OPENMELD_HEADER_AGENT_CONTROLLER_CONVERSATION_ID, OPENMELD_HEADER_AGENT_CONTROLLER_REF, OPENMELD_HEADER_AUTO_RELAY_DEPTH, OPENMELD_HEADER_CALLER_PRINCIPAL_ID, OPENMELD_HEADER_DISPATCH_CHAIN_ID, OPENMELD_HEADER_FORWARDED_BY, OPENMELD_HEADER_OWNER_NAME, OPENMELD_HEADER_OWNER_USER_ID, OPENMELD_HEADER_PROFILE_HANDLE, OPENMELD_HEADER_PROFILE_ID, OPENMELD_HEADER_PROFILE_KIND, OPENMELD_HEADER_PROFILE_NAME, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID, OPENMELD_HEADER_REQUESTED_ORGANIZATION_SLUG, OPENMELD_HEADER_REQUEST_ID, OPENMELD_HEADER_SPACE_PASSWORD, OPENMELD_HEADER_VISITED_PROFILE_IDS, OPENMELD_HEADER_VISITED_PROFILE_IDS_HASH } from \"@openmeld/gateway-contract\";\nimport { parseEnvelope } from \"@openmeld/protocol\";\n//#region src/base-url.ts\nconst TRAILING_SLASHES_REGEX = /\\/+$/;\nconst ROOT_PATH_REGEX = /^\\/+$/;\nfunction normalizeApiBaseUrl(baseUrl) {\n\tconst url = new URL(baseUrl);\n\tif (!ROOT_PATH_REGEX.test(url.pathname)) throw new Error(\"baseUrl must be origin-only (no path prefix)\");\n\tif (url.search || url.hash) throw new Error(\"baseUrl must be origin-only (no query or hash)\");\n\turl.pathname = \"\";\n\turl.search = \"\";\n\turl.hash = \"\";\n\treturn url.toString().replace(TRAILING_SLASHES_REGEX, \"\");\n}\n//#endregion\n//#region src/profile-space-history/routes.ts\nconst PROFILE_SPACE_HISTORY_DEFAULT_LIMIT = 20;\nfunction resolveProfileSpaceHistoryGatewayHost(baseUrl) {\n\treturn new URL(normalizeApiBaseUrl(baseUrl)).host.toLowerCase();\n}\nfunction buildProfileSpaceHistoryListPath(input) {\n\tconst url = new URL(buildProfileSpaceHistoryBasePath(input.profileId), \"https://openmeld.local\");\n\turl.searchParams.set(\"gatewayHost\", input.gatewayHost);\n\tfor (const status of input.statuses ?? [\"active\"]) url.searchParams.append(\"status\", status);\n\tif (input.pinned !== void 0) url.searchParams.set(\"pinned\", String(input.pinned));\n\turl.searchParams.set(\"limit\", String(Math.max(1, input.limit ?? PROFILE_SPACE_HISTORY_DEFAULT_LIMIT)));\n\treturn `${url.pathname}${url.search}`;\n}\nfunction buildProfileSpaceHistoryUpsertPath(input) {\n\treturn `${buildProfileSpaceHistoryBasePath(input.profileId)}/${encodeURIComponent(input.spaceId)}`;\n}\nfunction buildProfileSpaceHistoryStatusPath(input) {\n\treturn `${buildProfileSpaceHistoryUpsertPath(input)}/status`;\n}\nfunction buildProfileSpaceHistoryBasePath(profileId) {\n\treturn `/v1/profiles/${encodeURIComponent(profileId)}/spaces`;\n}\n//#endregion\n//#region src/account-space-index/routes.ts\nconst ACCOUNT_SPACE_INDEX_DEFAULT_LIMIT = 500;\nfunction resolveAccountSpaceIndexGatewayHost(baseUrl) {\n\treturn resolveProfileSpaceHistoryGatewayHost(baseUrl);\n}\nfunction buildAccountSpaceActiveWakeSummaryPath(input) {\n\tconst url = new URL(\"/v1/account/spaces/active-wake-summary\", \"https://openmeld.local\");\n\turl.searchParams.set(\"gatewayHost\", input.gatewayHost);\n\turl.searchParams.set(\"selectedProfileId\", input.selectedProfileId);\n\treturn `${url.pathname}${url.search}`;\n}\nfunction buildAccountSpaceIndexPath(input) {\n\tconst url = new URL(\"/v1/account/spaces\", \"https://openmeld.local\");\n\turl.searchParams.set(\"gatewayHost\", input.gatewayHost);\n\turl.searchParams.set(\"scope\", input.scope);\n\turl.searchParams.set(\"selectedProfileId\", input.selectedProfileId);\n\turl.searchParams.set(\"limit\", String(Math.max(1, input.limit ?? ACCOUNT_SPACE_INDEX_DEFAULT_LIMIT)));\n\tif (input.includeRecentlyDeletedItems === true) url.searchParams.set(\"includeRecentlyDeletedItems\", \"true\");\n\tif (input.includePurposes === true) url.searchParams.set(\"includePurposes\", \"true\");\n\treturn `${url.pathname}${url.search}`;\n}\n//#endregion\n//#region src/account-space-index/api.ts\nconst createAccountSpaceIndexApi = (client) => {\n\treturn { listAccountSpaces: async (input) => await client.requestJson({\n\t\turl: buildAccountSpaceIndexPath(input),\n\t\toperation: \"account_space_index.list\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: accountSpaceIndexResponseSchema,\n\t\tinvalidMessage: \"invalid account space index response\"\n\t}) };\n};\n//#endregion\n//#region src/agent-activity/routes.ts\nconst AGENT_ACTIVITY_SNAPSHOT_PATH = \"/v1/organizations/current/agent-activity\";\nconst AGENT_ACTIVITY_STATS_PATH = \"/v1/organizations/current/agent-activity/stats\";\nfunction buildAgentActivitySnapshotPath(query = {}) {\n\tconst search = new URLSearchParams();\n\tfor (const [key, value] of Object.entries(query)) if (value !== void 0) search.set(key, String(value));\n\tconst suffix = search.toString();\n\treturn suffix ? `${AGENT_ACTIVITY_SNAPSHOT_PATH}?${suffix}` : AGENT_ACTIVITY_SNAPSHOT_PATH;\n}\nfunction buildAgentActivityStatsPath(query = {}) {\n\tconst search = new URLSearchParams();\n\tif (query.projectId !== void 0) search.set(\"projectId\", query.projectId);\n\tconst suffix = search.toString();\n\treturn suffix ? `${AGENT_ACTIVITY_STATS_PATH}?${suffix}` : AGENT_ACTIVITY_STATS_PATH;\n}\n//#endregion\n//#region src/agent-activity/api.ts\nconst createAgentActivityApi = (client) => ({\n\treadSnapshot: async (input = {}) => {\n\t\tconst query = requireValidInput$8(agentActivitySnapshotQuerySchema, {\n\t\t\t...input.includeProviderMetadata === true ? { includeProviderMetadata: true } : {},\n\t\t\t...input.memberUserId === void 0 ? {} : { memberUserId: input.memberUserId },\n\t\t\t...input.projectId === void 0 ? {} : { projectId: input.projectId },\n\t\t\t...input.provider === void 0 ? {} : { provider: input.provider },\n\t\t\t...input.status === void 0 ? {} : { status: input.status }\n\t\t}, \"Agent Activity snapshot request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$10(input),\n\t\t\tinvalidMessage: \"invalid Agent Activity snapshot response\",\n\t\t\tmethod: \"GET\",\n\t\t\toperation: \"agent_activity.snapshot.read\",\n\t\t\tschema: agentActivitySnapshotResponseSchema,\n\t\t\turl: buildAgentActivitySnapshotPath(query)\n\t\t});\n\t},\n\treadStats: async (input = {}) => {\n\t\tconst query = requireValidInput$8(agentActivityStatsQuerySchema, { ...input.projectId === void 0 ? {} : { projectId: input.projectId } }, \"Agent Activity stats request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$10(input),\n\t\t\tinvalidMessage: \"invalid Agent Activity stats response\",\n\t\t\tmethod: \"GET\",\n\t\t\toperation: \"agent_activity.stats.read\",\n\t\t\tschema: agentActivityStatsResponseSchema,\n\t\t\turl: buildAgentActivityStatsPath(query)\n\t\t});\n\t}\n});\nfunction requestOptions$10(input) {\n\treturn {\n\t\t...input.requestContext === void 0 ? {} : { requestContext: input.requestContext },\n\t\t...input.signal === void 0 ? {} : { signal: input.signal },\n\t\t...input.timeoutMs === void 0 ? {} : { timeoutMs: input.timeoutMs }\n\t};\n}\nfunction requireValidInput$8(schema, value, message) {\n\tconst parsed = schema.safeParse(value);\n\tif (!parsed.success) throw new Error(`${message} ${parsed.error.issues[0]?.message ?? \"Invalid input.\"}`);\n\treturn parsed.data;\n}\n//#endregion\n//#region src/agent-profile-binding/routes.ts\nfunction buildAgentProfilePrimaryBindingRoute(agentProfileId) {\n\treturn `/v1/agent-profiles/${encodeURIComponent(agentProfileId)}/primary-binding`;\n}\nfunction buildAgentProfilePrimaryBindingModelSelectionRoute(agentProfileId) {\n\treturn `${buildAgentProfilePrimaryBindingRoute(agentProfileId)}/model-selection`;\n}\nfunction buildAgentProfilePrimaryBindingAgentControllerPermissionModeRoute(agentProfileId) {\n\treturn `${buildAgentProfilePrimaryBindingRoute(agentProfileId)}/agent-controller-permission-mode`;\n}\nfunction buildAgentProfilePrimaryBindingAgentControllerCollaborationModeRoute(agentProfileId) {\n\treturn `${buildAgentProfilePrimaryBindingRoute(agentProfileId)}/agent-controller-collaboration-mode`;\n}\nfunction buildAgentProfilePrimaryBindingOpenCodePermissionRoute(agentProfileId) {\n\treturn `${buildAgentProfilePrimaryBindingRoute(agentProfileId)}/opencode-permission`;\n}\nfunction buildAgentProfilePrimaryBindingOrganizationAuthorizationRoute(agentProfileId) {\n\treturn `${buildAgentProfilePrimaryBindingRoute(agentProfileId)}/organization-authorization`;\n}\nfunction buildAgentProfileBindingOrganizationAuthorizationsRoute() {\n\treturn \"/v1/agent-profiles/primary-bindings/organization-authorizations\";\n}\nfunction buildCurrentUserAgentProfileOrganizationWakeAccessRoute() {\n\treturn \"/v1/agent-profiles/primary-bindings/organization-wake-access\";\n}\nfunction buildAgentProfileRouteCatalogSyncRoute(agentProfileId) {\n\treturn `/v1/agent-profiles/${encodeURIComponent(agentProfileId)}/route-catalog-sync`;\n}\nfunction buildAgentProfilesRouteCatalogSyncRoute() {\n\treturn \"/v1/agent-profiles/route-catalog-sync\";\n}\nfunction buildAgentExecutionReadinessRoute(agentProfileId) {\n\treturn `/v1/agent-profiles/${encodeURIComponent(agentProfileId)}/execution-readiness`;\n}\nfunction buildAgentExecutionReadinessBatchRoute() {\n\treturn \"/v1/agent-profiles/execution-readiness/batch\";\n}\n//#endregion\n//#region src/agent-profile-binding/api.ts\nconst getAgentExecutionReadinessInputSchema = agentExecutionReadinessRouteParamsSchema.extend({ requestContext: openMeldRequestContextSchema.optional() });\nconst getAgentExecutionReadinessBatchInputSchema = getAgentExecutionReadinessBatchBodySchema.extend({ requestContext: openMeldRequestContextSchema.optional() });\nconst ensureAgentProfilePrimaryBindingInputSchema = agentProfileBindingRouteParamsSchema.merge(ensureAgentProfilePrimaryBindingBodySchema).extend({ requestContext: openMeldRequestContextSchema.optional() });\nconst notifyAgentProfileRouteCatalogChangedInputSchema = agentProfileBindingRouteParamsSchema.merge(notifyAgentProfileRouteCatalogChangedBodySchema).extend({ requestContext: openMeldRequestContextSchema.optional() });\nconst notifyAgentProfilesRouteCatalogChangedInputSchema = notifyAgentProfilesRouteCatalogChangedBodySchema.extend({ requestContext: openMeldRequestContextSchema.optional() });\nconst updateAgentProfilePrimaryBindingModelSelectionInputSchema = agentProfileBindingRouteParamsSchema.merge(updateAgentProfilePrimaryBindingModelSelectionBodySchema).extend({ requestContext: openMeldRequestContextSchema.optional() });\nconst updateAgentProfilePrimaryBindingAgentControllerPermissionModeInputSchema = agentProfileBindingRouteParamsSchema.merge(updateAgentProfilePrimaryBindingAgentControllerPermissionModeBodySchema).extend({ requestContext: openMeldRequestContextSchema.optional() });\nconst updateAgentProfilePrimaryBindingAgentControllerCollaborationModeInputSchema = agentProfileBindingRouteParamsSchema.merge(updateAgentProfilePrimaryBindingAgentControllerCollaborationModeBodySchema).extend({ requestContext: openMeldRequestContextSchema.optional() });\nconst updateAgentProfilePrimaryBindingOpenCodePermissionInputSchema = agentProfileBindingRouteParamsSchema.merge(updateAgentProfilePrimaryBindingOpenCodePermissionBodySchema).extend({ requestContext: openMeldRequestContextSchema.optional() });\nfunction requireValidBindingCommandBody(input) {\n\tconst parsed = ensureAgentProfilePrimaryBindingInputSchema.safeParse(input);\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Agent Profile Binding payload.\");\n\tconst { agentProfileId: _agentProfileId, requestContext: _requestContext, ...body } = parsed.data;\n\treturn body;\n}\nfunction requireValidBindingRouteInput(input) {\n\tconst parsed = agentProfileBindingRouteParamsSchema.extend({ requestContext: openMeldRequestContextSchema.optional() }).safeParse(input);\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Agent Profile Binding route.\");\n\treturn parsed.data;\n}\nfunction requireValidRouteCatalogChangedBody(input) {\n\tconst parsed = notifyAgentProfileRouteCatalogChangedInputSchema.safeParse(input);\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Agent Profile route catalog notification payload.\");\n\tconst { agentProfileId: _agentProfileId, requestContext: _requestContext, ...body } = parsed.data;\n\treturn body;\n}\nfunction requireValidRouteCatalogChangedBatchBody(input) {\n\tconst parsed = notifyAgentProfilesRouteCatalogChangedInputSchema.safeParse(input);\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Agent Profile route catalog notification payload.\");\n\tconst { requestContext: _requestContext, ...body } = parsed.data;\n\treturn body;\n}\nfunction requireValidModelSelectionPatchBody(input) {\n\tconst parsed = updateAgentProfilePrimaryBindingModelSelectionInputSchema.safeParse(input);\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Agent Profile Binding model selection payload.\");\n\tconst { agentProfileId: _agentProfileId, requestContext: _requestContext, ...body } = parsed.data;\n\treturn body;\n}\nfunction requireValidAgentControllerPermissionModePatchBody(input) {\n\tconst parsed = updateAgentProfilePrimaryBindingAgentControllerPermissionModeInputSchema.safeParse(input);\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Agent Profile Binding Agent Controller Permission Mode payload.\");\n\tconst { agentProfileId: _agentProfileId, requestContext: _requestContext, ...body } = parsed.data;\n\treturn body;\n}\nfunction requireValidAgentControllerCollaborationModePatchBody(input) {\n\tconst parsed = updateAgentProfilePrimaryBindingAgentControllerCollaborationModeInputSchema.safeParse(input);\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Agent Profile Binding Agent Controller Collaboration Mode payload.\");\n\tconst { agentProfileId: _agentProfileId, requestContext: _requestContext, ...body } = parsed.data;\n\treturn body;\n}\nfunction requireValidOpenCodePermissionPatchBody(input) {\n\tconst parsed = updateAgentProfilePrimaryBindingOpenCodePermissionInputSchema.safeParse(input);\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Agent Profile Binding OpenCode permissions payload.\");\n\tconst { agentProfileId: _agentProfileId, requestContext: _requestContext, ...body } = parsed.data;\n\treturn body;\n}\nfunction requireValidExecutionReadinessInput(input) {\n\tconst parsed = getAgentExecutionReadinessInputSchema.safeParse(input);\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Agent Execution Readiness request.\");\n\treturn parsed.data;\n}\nfunction requireValidExecutionReadinessBatchInput(input) {\n\tconst parsed = getAgentExecutionReadinessBatchInputSchema.safeParse(input);\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Agent Execution Readiness batch request.\");\n\treturn parsed.data;\n}\nconst createAgentProfileBindingApi = (client) => {\n\treturn {\n\t\tgetExecutionReadiness: async (input) => {\n\t\t\tconst request = requireValidExecutionReadinessInput(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\tinvalidMessage: \"Invalid Agent Execution Readiness response.\",\n\t\t\t\tmethod: \"GET\",\n\t\t\t\toperation: \"agent_execution_readiness.read\",\n\t\t\t\trequestContext: request.requestContext,\n\t\t\t\tschema: getAgentExecutionReadinessResponseSchema,\n\t\t\t\turl: buildAgentExecutionReadinessRoute(request.agentProfileId)\n\t\t\t});\n\t\t},\n\t\tgetExecutionReadinessBatch: async (input) => {\n\t\t\tconst request = requireValidExecutionReadinessBatchInput(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\tbody: JSON.stringify({\n\t\t\t\t\tagentProfileIds: request.agentProfileIds,\n\t\t\t\t\t...request.targetRuntime === void 0 ? {} : { targetRuntime: request.targetRuntime }\n\t\t\t\t}),\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tinvalidMessage: \"Invalid Agent Execution Readiness batch response.\",\n\t\t\t\tmethod: \"POST\",\n\t\t\t\toperation: \"agent_execution_readiness.batch_read\",\n\t\t\t\trequestContext: request.requestContext,\n\t\t\t\tschema: getAgentExecutionReadinessBatchResponseSchema,\n\t\t\t\turl: buildAgentExecutionReadinessBatchRoute()\n\t\t\t});\n\t\t},\n\t\tgetPrimaryBinding: async (input) => await client.requestJson({\n\t\t\tinvalidMessage: \"Invalid Agent Profile Binding response.\",\n\t\t\tmethod: \"GET\",\n\t\t\toperation: \"agent_profile_binding.primary.read\",\n\t\t\trequestContext: input.requestContext,\n\t\t\tschema: getAgentProfilePrimaryBindingResponseSchema,\n\t\t\turl: buildAgentProfilePrimaryBindingRoute(input.agentProfileId)\n\t\t}),\n\t\tensurePrimaryBinding: async (input) => {\n\t\t\tconst body = requireValidBindingCommandBody(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tinvalidMessage: \"Invalid Agent Profile Binding command response.\",\n\t\t\t\tmethod: \"PUT\",\n\t\t\t\toperation: \"agent_profile_binding.primary.ensure\",\n\t\t\t\trequestContext: input.requestContext,\n\t\t\t\tschema: ensureAgentProfilePrimaryBindingResponseSchema,\n\t\t\t\turl: buildAgentProfilePrimaryBindingRoute(input.agentProfileId)\n\t\t\t});\n\t\t},\n\t\tauthorizePrimaryBindingForOrganization: async (input) => {\n\t\t\tconst request = requireValidBindingRouteInput(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\tinvalidMessage: \"Invalid Organization Binding authorization response.\",\n\t\t\t\tmethod: \"PUT\",\n\t\t\t\toperation: \"agent_profile_binding.organization_authorization.authorize\",\n\t\t\t\trequestContext: request.requestContext,\n\t\t\t\tschema: authorizeAgentProfileBindingForOrganizationResponseSchema,\n\t\t\t\turl: buildAgentProfilePrimaryBindingOrganizationAuthorizationRoute(request.agentProfileId)\n\t\t\t});\n\t\t},\n\t\tlistOrganizationAuthorizations: async (input = {}) => await client.requestJson({\n\t\t\tinvalidMessage: \"Invalid Organization Binding authorization list response.\",\n\t\t\tmethod: \"GET\",\n\t\t\toperation: \"agent_profile_binding.organization_authorization.list\",\n\t\t\trequestContext: input.requestContext,\n\t\t\tschema: listOrganizationBindingAuthorizationsResponseSchema,\n\t\t\turl: buildAgentProfileBindingOrganizationAuthorizationsRoute()\n\t\t}),\n\t\tlistCurrentUserOrganizationWakeAccess: async (input = {}) => await client.requestJson({\n\t\t\tinvalidMessage: \"Invalid organization Wake access list response.\",\n\t\t\tmethod: \"GET\",\n\t\t\toperation: \"agent_profile_binding.organization_wake_access.list\",\n\t\t\trequestContext: input.requestContext,\n\t\t\tschema: listCurrentUserAgentProfileOrganizationWakeAccessResponseSchema,\n\t\t\turl: buildCurrentUserAgentProfileOrganizationWakeAccessRoute()\n\t\t}),\n\t\trevokePrimaryBindingForOrganization: async (input) => {\n\t\t\tconst request = requireValidBindingRouteInput(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\tinvalidMessage: \"Invalid Organization Binding authorization revoke response.\",\n\t\t\t\tmethod: \"DELETE\",\n\t\t\t\toperation: \"agent_profile_binding.organization_authorization.revoke\",\n\t\t\t\trequestContext: request.requestContext,\n\t\t\t\tschema: revokeAgentProfileBindingForOrganizationResponseSchema,\n\t\t\t\turl: buildAgentProfilePrimaryBindingOrganizationAuthorizationRoute(request.agentProfileId)\n\t\t\t});\n\t\t},\n\t\tdisablePrimaryBinding: async (input) => {\n\t\t\tconst request = requireValidBindingRouteInput(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\tinvalidMessage: \"Invalid Agent Profile Binding disable response.\",\n\t\t\t\tmethod: \"DELETE\",\n\t\t\t\toperation: \"agent_profile_binding.primary.disable\",\n\t\t\t\trequestContext: request.requestContext,\n\t\t\t\tschema: disableAgentProfilePrimaryBindingResponseSchema,\n\t\t\t\turl: buildAgentProfilePrimaryBindingRoute(request.agentProfileId)\n\t\t\t});\n\t\t},\n\t\tnotifyRouteCatalogChanged: async (input) => {\n\t\t\tconst body = requireValidRouteCatalogChangedBody(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tinvalidMessage: \"Invalid Agent Profile route catalog notification response.\",\n\t\t\t\tmethod: \"POST\",\n\t\t\t\toperation: \"agent_profile_binding.route_catalog_sync\",\n\t\t\t\trequestContext: input.requestContext,\n\t\t\t\tschema: notifyAgentProfileRouteCatalogChangedResponseSchema,\n\t\t\t\turl: buildAgentProfileRouteCatalogSyncRoute(input.agentProfileId)\n\t\t\t});\n\t\t},\n\t\tnotifyRouteCatalogChangedBatch: async (input) => {\n\t\t\tconst body = requireValidRouteCatalogChangedBatchBody(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tinvalidMessage: \"Invalid Agent Profile route catalog notification response.\",\n\t\t\t\tmethod: \"POST\",\n\t\t\t\toperation: \"agent_profile_binding.route_catalog_sync.batch\",\n\t\t\t\trequestContext: input.requestContext,\n\t\t\t\tschema: notifyAgentProfileRouteCatalogChangedResponseSchema,\n\t\t\t\turl: buildAgentProfilesRouteCatalogSyncRoute()\n\t\t\t});\n\t\t},\n\t\tupdatePrimaryBindingModelSelection: async (input) => {\n\t\t\tconst body = requireValidModelSelectionPatchBody(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tinvalidMessage: \"Invalid Agent Profile Binding model selection response.\",\n\t\t\t\tmethod: \"PATCH\",\n\t\t\t\toperation: \"agent_profile_binding.primary.model_selection.update\",\n\t\t\t\trequestContext: input.requestContext,\n\t\t\t\tschema: ensureAgentProfilePrimaryBindingResponseSchema,\n\t\t\t\turl: buildAgentProfilePrimaryBindingModelSelectionRoute(input.agentProfileId)\n\t\t\t});\n\t\t},\n\t\tupdatePrimaryBindingAgentControllerPermissionMode: async (input) => {\n\t\t\tconst body = requireValidAgentControllerPermissionModePatchBody(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tinvalidMessage: \"Invalid Agent Profile Binding Agent Controller Permission Mode response.\",\n\t\t\t\tmethod: \"PATCH\",\n\t\t\t\toperation: \"agent_profile_binding.primary.agent_controller_permission_mode.update\",\n\t\t\t\trequestContext: input.requestContext,\n\t\t\t\tschema: ensureAgentProfilePrimaryBindingResponseSchema,\n\t\t\t\turl: buildAgentProfilePrimaryBindingAgentControllerPermissionModeRoute(input.agentProfileId)\n\t\t\t});\n\t\t},\n\t\tupdatePrimaryBindingAgentControllerCollaborationMode: async (input) => {\n\t\t\tconst body = requireValidAgentControllerCollaborationModePatchBody(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tinvalidMessage: \"Invalid Agent Profile Binding Agent Controller Collaboration Mode response.\",\n\t\t\t\tmethod: \"PATCH\",\n\t\t\t\toperation: \"agent_profile_binding.primary.agent_controller_collaboration_mode.update\",\n\t\t\t\trequestContext: input.requestContext,\n\t\t\t\tschema: ensureAgentProfilePrimaryBindingResponseSchema,\n\t\t\t\turl: buildAgentProfilePrimaryBindingAgentControllerCollaborationModeRoute(input.agentProfileId)\n\t\t\t});\n\t\t},\n\t\tupdatePrimaryBindingOpenCodePermission: async (input) => {\n\t\t\tconst body = requireValidOpenCodePermissionPatchBody(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tinvalidMessage: \"Invalid Agent Profile Binding OpenCode permissions response.\",\n\t\t\t\tmethod: \"PATCH\",\n\t\t\t\toperation: \"agent_profile_binding.primary.opencode_permission.update\",\n\t\t\t\trequestContext: input.requestContext,\n\t\t\t\tschema: ensureAgentProfilePrimaryBindingResponseSchema,\n\t\t\t\turl: buildAgentProfilePrimaryBindingOpenCodePermissionRoute(input.agentProfileId)\n\t\t\t});\n\t\t}\n\t};\n};\n//#endregion\n//#region src/center-agent/routes.ts\nfunction buildCenterAgentDesignationPath() {\n\treturn \"/v1/organizations/current/center-agent/designation\";\n}\nfunction buildCenterAgentModelPath() {\n\treturn \"/v1/organizations/current/center-agent/model\";\n}\nfunction buildCenterAgentOperatingStatePath() {\n\treturn \"/v1/organizations/current/center-agent/operating-state\";\n}\nfunction buildCenterAgentProfilePath() {\n\treturn \"/v1/organizations/current/center-agent/profile\";\n}\nfunction buildCenterAgentAuditJournalPath() {\n\treturn \"/v1/organizations/current/center-agent/audit-journal\";\n}\nfunction buildCenterAgentDirectMessageSpacePath() {\n\treturn \"/v1/organizations/current/center-agent/dm-space\";\n}\nfunction buildCenterAgentContextManifestPath() {\n\treturn \"/v1/organizations/current/center-agent/context-manifests\";\n}\nfunction buildCenterAgentContextLoadReceiptPath(manifestId) {\n\treturn `${buildCenterAgentContextManifestPath()}/${encodeURIComponent(manifestId)}/load-receipt`;\n}\nfunction buildCenterAgentSlackWorkspaceConnectionPath() {\n\treturn \"/v1/organizations/current/center-agent/slack-connection\";\n}\nfunction buildSlackIdentityLinkPreviewPath() {\n\treturn \"/v1/slack/identity-link/preview\";\n}\nfunction buildSlackIdentityLinkConsumePath() {\n\treturn \"/v1/slack/identity-link/consume\";\n}\n//#endregion\n//#region src/center-agent/api.ts\nconst createCenterAgentApi = (client) => ({\n\tgetDesignation: async (input = {}) => await client.requestJson({\n\t\turl: buildCenterAgentDesignationPath(),\n\t\toperation: \"center_agent.designation.read\",\n\t\tmethod: \"GET\",\n\t\trequestContext: validateRequestInput$1(input).requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: getCenterAgentDesignationResponseSchema,\n\t\tinvalidMessage: \"Invalid Center Agent designation response.\"\n\t}),\n\tdesignate: async (input) => {\n\t\tconst request = validateDesignationInput(input);\n\t\treturn await client.requestJson({\n\t\t\turl: buildCenterAgentDesignationPath(),\n\t\t\toperation: \"center_agent.designation.write\",\n\t\t\tmethod: \"PUT\",\n\t\t\trequestContext: request.requestContext,\n\t\t\tsignal: request.signal,\n\t\t\ttimeoutMs: request.timeoutMs,\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tbody: JSON.stringify({\n\t\t\t\t...request.agentProfileId === void 0 ? {} : { agentProfileId: request.agentProfileId },\n\t\t\t\t...request.runtime === void 0 ? {} : { runtime: request.runtime }\n\t\t\t}),\n\t\t\tschema: designateCenterAgentResponseSchema,\n\t\t\tinvalidMessage: \"Invalid Center Agent designation write response.\"\n\t\t});\n\t},\n\tgetModel: async (input = {}) => await client.requestJson({\n\t\turl: buildCenterAgentModelPath(),\n\t\toperation: \"center_agent.model.read\",\n\t\tmethod: \"GET\",\n\t\trequestContext: validateRequestInput$1(input).requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: centerAgentModelConfigurationResponseSchema,\n\t\tinvalidMessage: \"Invalid Center Agent model response.\"\n\t}),\n\tupdateModel: async (input) => {\n\t\tconst request = validateModelInput(input);\n\t\treturn await client.requestJson({\n\t\t\turl: buildCenterAgentModelPath(),\n\t\t\toperation: \"center_agent.model.update\",\n\t\t\tmethod: \"PUT\",\n\t\t\trequestContext: request.requestContext,\n\t\t\tsignal: request.signal,\n\t\t\ttimeoutMs: request.timeoutMs,\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tbody: JSON.stringify({\n\t\t\t\texpectedConfigurationRevision: request.expectedConfigurationRevision,\n\t\t\t\tpreference: request.preference\n\t\t\t}),\n\t\t\tschema: updateCenterAgentModelResponseSchema,\n\t\t\tinvalidMessage: \"Invalid Center Agent model update response.\"\n\t\t});\n\t},\n\tgetOperatingState: async (input = {}) => await client.requestJson({\n\t\turl: buildCenterAgentOperatingStatePath(),\n\t\toperation: \"center_agent.operating_state.read\",\n\t\tmethod: \"GET\",\n\t\trequestContext: validateRequestInput$1(input).requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: getCenterAgentOperatingStateResponseSchema,\n\t\tinvalidMessage: \"Invalid Center Agent operating state response.\"\n\t}),\n\tupdateOperatingState: async (input) => {\n\t\tconst request = validateOperatingStateInput(input);\n\t\treturn await client.requestJson({\n\t\t\turl: buildCenterAgentOperatingStatePath(),\n\t\t\toperation: \"center_agent.operating_state.update\",\n\t\t\tmethod: \"PUT\",\n\t\t\trequestContext: request.requestContext,\n\t\t\tsignal: request.signal,\n\t\t\ttimeoutMs: request.timeoutMs,\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tbody: JSON.stringify({ operatingState: request.operatingState }),\n\t\t\tschema: updateCenterAgentOperatingStateResponseSchema,\n\t\t\tinvalidMessage: \"Invalid Center Agent operating state update response.\"\n\t\t});\n\t},\n\tconnectSlackWorkspace: async (input) => {\n\t\tconst request = validateSlackWorkspaceConnectInput(input);\n\t\treturn await client.requestJson({\n\t\t\turl: buildCenterAgentSlackWorkspaceConnectionPath(),\n\t\t\toperation: \"center_agent.slack_workspace.connect\",\n\t\t\tmethod: \"POST\",\n\t\t\trequestContext: request.requestContext,\n\t\t\tsignal: request.signal,\n\t\t\ttimeoutMs: request.timeoutMs,\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tbody: JSON.stringify({ slackTeamId: request.slackTeamId }),\n\t\t\tschema: centerAgentSlackWorkspaceConnectionResponseSchema,\n\t\t\tinvalidMessage: \"Invalid Center Agent Slack connection response.\"\n\t\t});\n\t},\n\tdisconnectSlackWorkspace: async (input = {}) => await client.requestJson({\n\t\turl: buildCenterAgentSlackWorkspaceConnectionPath(),\n\t\toperation: \"center_agent.slack_workspace.disconnect\",\n\t\tmethod: \"DELETE\",\n\t\trequestContext: validateRequestInput$1(input).requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: centerAgentSlackWorkspaceDisconnectResponseSchema,\n\t\tinvalidMessage: \"Invalid Center Agent Slack disconnect response.\"\n\t}),\n\tpreviewSlackIdentityLink: async (input) => {\n\t\tconst request = validateSlackIdentityLinkPreviewInput(input);\n\t\treturn await client.requestJson({\n\t\t\turl: buildSlackIdentityLinkPreviewPath(),\n\t\t\toperation: \"center_agent.slack_identity_link.preview\",\n\t\t\tmethod: \"POST\",\n\t\t\trequestContext: request.requestContext,\n\t\t\tsignal: request.signal,\n\t\t\ttimeoutMs: request.timeoutMs,\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tbody: JSON.stringify({ token: request.token }),\n\t\t\tschema: slackIdentityLinkPreviewResponseSchema,\n\t\t\tinvalidMessage: \"Invalid Slack identity link preview response.\"\n\t\t});\n\t},\n\tconsumeSlackIdentityLink: async (input) => {\n\t\tconst request = validateSlackIdentityLinkConsumeInput(input);\n\t\treturn await client.requestJson({\n\t\t\turl: buildSlackIdentityLinkConsumePath(),\n\t\t\toperation: \"center_agent.slack_identity_link.consume\",\n\t\t\tmethod: \"POST\",\n\t\t\trequestContext: request.requestContext,\n\t\t\tsignal: request.signal,\n\t\t\ttimeoutMs: request.timeoutMs,\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tbody: JSON.stringify({ token: request.token }),\n\t\t\tschema: slackIdentityLinkConsumeResponseSchema,\n\t\t\tinvalidMessage: \"Invalid Slack identity link consume response.\"\n\t\t});\n\t},\n\tupdateProfile: async (input) => {\n\t\tconst request = validateUpdateProfileInput(input);\n\t\treturn await client.requestJson({\n\t\t\turl: buildCenterAgentProfilePath(),\n\t\t\toperation: \"center_agent.profile.update\",\n\t\t\tmethod: \"PATCH\",\n\t\t\trequestContext: request.requestContext,\n\t\t\tsignal: request.signal,\n\t\t\ttimeoutMs: request.timeoutMs,\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tbody: JSON.stringify({ profileName: request.profileName }),\n\t\t\tschema: centerAgentUpdateProfileResponseSchema,\n\t\t\tinvalidMessage: \"Invalid Center Agent profile update response.\"\n\t\t});\n\t},\n\tlistAuditJournal: async (input = {}) => {\n\t\tconst request = validateAuditJournalInput(input);\n\t\treturn await client.requestJson({\n\t\t\turl: buildAuditJournalUrl(request),\n\t\t\toperation: \"center_agent.audit_journal.list\",\n\t\t\tmethod: \"GET\",\n\t\t\trequestContext: request.requestContext,\n\t\t\tsignal: request.signal,\n\t\t\ttimeoutMs: request.timeoutMs,\n\t\t\tschema: listCenterAgentAuditJournalResponseSchema,\n\t\t\tinvalidMessage: \"Invalid Center Agent audit journal response.\"\n\t\t});\n\t},\n\tcreateContextManifest: async (input) => {\n\t\tconst request = validateContextManifestInput(input);\n\t\treturn await client.requestJson({\n\t\t\tbody: JSON.stringify({\n\t\t\t\t...request.cursor === void 0 ? {} : { cursor: request.cursor },\n\t\t\t\tlimit: request.limit,\n\t\t\t\tmaxContextTokens: request.maxContextTokens,\n\t\t\t\tsource: request.source,\n\t\t\t\tview: request.view\n\t\t\t}),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"Invalid Center Agent context manifest response.\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"center_agent.context_manifest.create\",\n\t\t\trequestContext: request.requestContext,\n\t\t\tschema: createCenterAgentContextManifestResponseSchema,\n\t\t\tsignal: request.signal,\n\t\t\ttimeoutMs: request.timeoutMs,\n\t\t\turl: buildCenterAgentContextManifestPath()\n\t\t});\n\t},\n\tcreateContextLoadReceipt: async (input) => {\n\t\tconst request = validateContextLoadReceiptInput(input);\n\t\treturn await client.requestJson({\n\t\t\tbody: JSON.stringify({\n\t\t\t\tselection: request.selection,\n\t\t\t\tsource: request.source\n\t\t\t}),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"Invalid Center Agent Context Load Receipt response.\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"center_agent.context_load_receipt.create\",\n\t\t\trequestContext: request.requestContext,\n\t\t\tschema: createCenterAgentContextLoadReceiptResponseSchema,\n\t\t\tsignal: request.signal,\n\t\t\ttimeoutMs: request.timeoutMs,\n\t\t\turl: buildCenterAgentContextLoadReceiptPath(request.manifestId)\n\t\t});\n\t},\n\topenDirectMessageSpace: async (input = {}) => await client.requestJson({\n\t\turl: buildCenterAgentDirectMessageSpacePath(),\n\t\toperation: \"center_agent.dm_space.open\",\n\t\tmethod: \"POST\",\n\t\trequestContext: validateRequestInput$1(input).requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: openCenterAgentDirectMessageSpaceResponseSchema,\n\t\tinvalidMessage: \"Invalid Center Agent DM Space response.\"\n\t}),\n\tgetDirectMessageSpaceProjection: async (input = {}) => await client.requestJson({\n\t\turl: buildCenterAgentDirectMessageSpacePath(),\n\t\toperation: \"center_agent.dm_space.projection.read\",\n\t\tmethod: \"GET\",\n\t\trequestContext: validateRequestInput$1(input).requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: getCenterAgentDirectMessageSpaceProjectionResponseSchema,\n\t\tinvalidMessage: \"Invalid Center Agent DM Space projection response.\"\n\t})\n});\nfunction validateRequestInput$1(input) {\n\tif (!openMeldRequestContextSchema.optional().safeParse(input.requestContext).success) throw new Error(\"Invalid Center Agent request context.\");\n\treturn input;\n}\nfunction validateContextManifestInput(input) {\n\tconst parsed = createCenterAgentContextManifestBodySchema.safeParse({\n\t\t...input.cursor === void 0 ? {} : { cursor: input.cursor },\n\t\t...input.limit === void 0 ? {} : { limit: input.limit },\n\t\t...input.maxContextTokens === void 0 ? {} : { maxContextTokens: input.maxContextTokens },\n\t\tsource: input.source,\n\t\t...input.view === void 0 ? {} : { view: input.view }\n\t});\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Center Agent context manifest request.\");\n\tvalidateRequestInput$1(input);\n\treturn {\n\t\t...input,\n\t\t...parsed.data\n\t};\n}\nfunction validateContextLoadReceiptInput(input) {\n\tconst parsed = createCenterAgentContextLoadReceiptBodySchema.safeParse({\n\t\tselection: input.selection,\n\t\tsource: input.source\n\t});\n\tconst manifestId = input.manifestId.trim();\n\tif (!(parsed.success && manifestId)) throw new Error(\"Invalid Center Agent Context Load Receipt request.\");\n\tvalidateRequestInput$1(input);\n\treturn {\n\t\t...input,\n\t\t...parsed.data,\n\t\tmanifestId\n\t};\n}\nfunction validateDesignationInput(input) {\n\tconst parsed = designateCenterAgentBodySchema.safeParse({\n\t\tagentProfileId: input.agentProfileId,\n\t\t...input.runtime === void 0 ? {} : { runtime: input.runtime }\n\t});\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Center Agent designation.\");\n\tvalidateRequestInput$1(input);\n\treturn input;\n}\nfunction validateOperatingStateInput(input) {\n\tconst parsed = updateCenterAgentOperatingStateBodySchema.safeParse({ operatingState: input.operatingState });\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Center Agent operating state.\");\n\tvalidateRequestInput$1(input);\n\treturn input;\n}\nfunction validateModelInput(input) {\n\tconst parsed = updateCenterAgentModelBodySchema.safeParse({\n\t\texpectedConfigurationRevision: input.expectedConfigurationRevision,\n\t\tpreference: input.preference\n\t});\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Center Agent model.\");\n\tvalidateRequestInput$1(input);\n\treturn input;\n}\nfunction validateAuditJournalInput(input) {\n\tconst parsed = listCenterAgentAuditJournalQuerySchema.safeParse({\n\t\tactionSet: input.actionSet ?? \"v16\",\n\t\t...input.limit === void 0 ? {} : { limit: input.limit }\n\t});\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Center Agent audit journal query.\");\n\tvalidateRequestInput$1(input);\n\treturn {\n\t\t...input,\n\t\tactionSet: parsed.data.actionSet\n\t};\n}\nfunction validateUpdateProfileInput(input) {\n\tconst parsed = centerAgentUpdateProfileBodySchema.safeParse({ profileName: input.profileName });\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Center Agent profile update.\");\n\tvalidateRequestInput$1(input);\n\treturn input;\n}\nfunction validateSlackWorkspaceConnectInput(input) {\n\tconst parsed = centerAgentSlackWorkspaceConnectBodySchema.safeParse({ slackTeamId: input.slackTeamId });\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Center Agent Slack workspace payload.\");\n\tvalidateRequestInput$1(input);\n\treturn input;\n}\nfunction validateSlackIdentityLinkPreviewInput(input) {\n\tconst parsed = slackIdentityLinkPreviewBodySchema.safeParse({ token: input.token });\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Slack identity link token.\");\n\tvalidateRequestInput$1(input);\n\treturn input;\n}\nfunction validateSlackIdentityLinkConsumeInput(input) {\n\tconst parsed = slackIdentityLinkConsumeBodySchema.safeParse({ token: input.token });\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Slack identity link token.\");\n\tvalidateRequestInput$1(input);\n\treturn input;\n}\nfunction buildAuditJournalUrl(input) {\n\tconst url = new URL(buildCenterAgentAuditJournalPath(), \"https://openmeld.local\");\n\tif (input.limit !== void 0) url.searchParams.set(\"limit\", String(input.limit));\n\tif (input.actionSet !== void 0) url.searchParams.set(\"actionSet\", input.actionSet);\n\treturn `${url.pathname}${url.search}`;\n}\n//#endregion\n//#region src/center-agent-tasks/routes.ts\nconst CENTER_AGENT_TASKS_PATH = \"/v1/organizations/current/center-agent/tasks\";\nfunction buildCenterAgentTasksPath(query = {}) {\n\tconst search = new URLSearchParams();\n\tif (query.cursor !== void 0) search.set(\"cursor\", query.cursor);\n\tif (query.limit !== void 0) search.set(\"limit\", String(query.limit));\n\tif (query.status !== void 0) search.set(\"status\", query.status);\n\tconst encodedQuery = search.toString();\n\treturn encodedQuery.length > 0 ? `${CENTER_AGENT_TASKS_PATH}?${encodedQuery}` : CENTER_AGENT_TASKS_PATH;\n}\nfunction buildCenterAgentTaskPath(taskId) {\n\treturn `${CENTER_AGENT_TASKS_PATH}/${encodeURIComponent(taskId)}`;\n}\nfunction buildCenterAgentTaskMessagesPath(taskId) {\n\treturn `${buildCenterAgentTaskPath(taskId)}/messages`;\n}\nfunction buildCenterAgentTaskStopPath(taskId) {\n\treturn `${buildCenterAgentTaskPath(taskId)}/stop`;\n}\nfunction buildCenterAgentTaskRetryPath(taskId) {\n\treturn `${buildCenterAgentTaskPath(taskId)}/retry`;\n}\n//#endregion\n//#region src/center-agent-tasks/api.ts\nconst createCenterAgentTasksApi = (client) => ({\n\tlist: async (input = {}) => {\n\t\tconst query = requireValidInput$7(listCenterAgentTasksQuerySchema, {\n\t\t\t...input.cursor === void 0 ? {} : { cursor: input.cursor },\n\t\t\t...input.limit === void 0 ? {} : { limit: input.limit },\n\t\t\t...input.status === void 0 ? {} : { status: input.status }\n\t\t}, \"Center Agent Task list request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$9(input),\n\t\t\theaders: responseContractHeaders(),\n\t\t\tinvalidMessage: \"invalid Center Agent Task list response\",\n\t\t\tmethod: \"GET\",\n\t\t\toperation: \"center_agent_task.list\",\n\t\t\tschema: listCenterAgentTasksResponseSchema,\n\t\t\turl: buildCenterAgentTasksPath(query)\n\t\t});\n\t},\n\tget: async (input) => {\n\t\tconst taskId = requireTaskId(input.taskId);\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$9(input),\n\t\t\theaders: responseContractHeaders(),\n\t\t\tinvalidMessage: \"invalid Center Agent Task response\",\n\t\t\tmethod: \"GET\",\n\t\t\toperation: \"center_agent_task.get\",\n\t\t\tschema: getCenterAgentTaskResponseSchema,\n\t\t\turl: buildCenterAgentTaskPath(taskId)\n\t\t});\n\t},\n\tcontinue: async (input) => {\n\t\tconst taskId = requireTaskId(input.taskId);\n\t\tconst body = requireValidInput$7(continueCenterAgentTaskBodySchema, {\n\t\t\texpectedVersion: input.expectedVersion,\n\t\t\tidempotencyKey: input.idempotencyKey,\n\t\t\ttext: input.text\n\t\t}, \"Center Agent Task message request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$9(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: responseContractHeaders(\"application/json\"),\n\t\t\tinvalidMessage: \"invalid Center Agent Task response\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"center_agent_task.continue\",\n\t\t\tschema: mutateCenterAgentTaskResponseSchema,\n\t\t\turl: buildCenterAgentTaskMessagesPath(taskId)\n\t\t});\n\t},\n\tstop: async (input) => {\n\t\tconst taskId = requireTaskId(input.taskId);\n\t\tconst body = requireValidInput$7(stopCenterAgentTaskBodySchema, { expectedVersion: input.expectedVersion }, \"Center Agent Task stop request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$9(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: responseContractHeaders(\"application/json\"),\n\t\t\tinvalidMessage: \"invalid Center Agent Task response\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"center_agent_task.stop\",\n\t\t\tschema: mutateCenterAgentTaskResponseSchema,\n\t\t\turl: buildCenterAgentTaskStopPath(taskId)\n\t\t});\n\t},\n\tretry: async (input) => {\n\t\tconst taskId = requireTaskId(input.taskId);\n\t\tconst body = requireValidInput$7(retryCenterAgentTaskBodySchema, {\n\t\t\texpectedVersion: input.expectedVersion,\n\t\t\tidempotencyKey: input.idempotencyKey\n\t\t}, \"Center Agent Task retry request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$9(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: responseContractHeaders(\"application/json\"),\n\t\t\tinvalidMessage: \"invalid Center Agent Task response\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"center_agent_task.retry\",\n\t\t\tschema: mutateCenterAgentTaskResponseSchema,\n\t\t\turl: buildCenterAgentTaskRetryPath(taskId)\n\t\t});\n\t}\n});\nfunction requireTaskId(value) {\n\treturn requireValidInput$7(centerAgentTaskRouteParamsSchema, { taskId: value }, \"Center Agent Task identifier is invalid.\").taskId;\n}\nfunction responseContractHeaders(contentType) {\n\treturn {\n\t\t...contentType ? { \"content-type\": contentType } : {},\n\t\t[CENTER_AGENT_TASK_RESPONSE_CONTRACT_VERSION_HEADER]: String(CENTER_AGENT_TASK_RESPONSE_CONTRACT_VERSION)\n\t};\n}\nfunction requestOptions$9(input) {\n\treturn {\n\t\t...input.requestContext === void 0 ? {} : { requestContext: input.requestContext },\n\t\t...input.signal === void 0 ? {} : { signal: input.signal },\n\t\t...input.timeoutMs === void 0 ? {} : { timeoutMs: input.timeoutMs }\n\t};\n}\nfunction requireValidInput$7(schema, value, message) {\n\tconst parsed = schema.safeParse(value);\n\tif (!parsed.success) throw new TypeError(`${message} ${parsed.error.issues[0]?.message ?? \"Invalid value.\"}`);\n\treturn parsed.data;\n}\n//#endregion\n//#region src/errors.ts\nconst FALLBACK_GATEWAY_HTTP_ERROR_CODE = \"gateway.http_error\";\nconst INVALID_RESPONSE_ERROR_CODE = \"gateway.invalid_response\";\nconst GENERIC_NETWORK_ERROR_CODES = [\"network.timeout\", \"network.request_failed\"];\nconst KNOWN_API_CLIENT_ERROR_CODES = /* @__PURE__ */ new Set([\n\t...gatewayErrorCodeSchema.options,\n\tFALLBACK_GATEWAY_HTTP_ERROR_CODE,\n\tINVALID_RESPONSE_ERROR_CODE,\n\t...GENERIC_NETWORK_ERROR_CODES\n]);\nvar OpenMeldApiClientHttpError = class extends Error {\n\tcode;\n\trequestId;\n\tstatus;\n\trawBody;\n\tupstreamCode;\n\tconstructor(input) {\n\t\tsuper(input.message);\n\t\tthis.name = \"OpenMeldApiClientHttpError\";\n\t\tthis.code = input.code;\n\t\tthis.requestId = normalizeOptionalText(input.requestId);\n\t\tthis.status = input.status;\n\t\tthis.rawBody = input.rawBody;\n\t\tthis.upstreamCode = normalizeOptionalText(input.upstreamCode);\n\t}\n};\nvar OpenMeldApiClientInvalidResponseError = class extends Error {\n\tcode = INVALID_RESPONSE_ERROR_CODE;\n\toperation;\n\trequestId;\n\tstatus;\n\trawBody;\n\tschemaIssueMessage;\n\tschemaIssuePath;\n\tupstreamCode = null;\n\tconstructor(input) {\n\t\tsuper(input.message);\n\t\tthis.name = \"OpenMeldApiClientInvalidResponseError\";\n\t\tthis.operation = input.operation;\n\t\tthis.requestId = normalizeOptionalText(input.requestId);\n\t\tthis.status = input.status;\n\t\tthis.rawBody = input.rawBody;\n\t\tthis.schemaIssueMessage = normalizeOptionalText(input.schemaIssue?.message);\n\t\tthis.schemaIssuePath = formatSchemaIssuePath(input.schemaIssue);\n\t}\n};\nfunction toStructuredApiClientFailure(error) {\n\tif (error instanceof OpenMeldApiClientHttpError) return {\n\t\tcode: error.code,\n\t\tmessage: normalizeFailureMessage(error.message),\n\t\trequestId: error.requestId,\n\t\tstatus: error.status,\n\t\tupstreamCode: error.upstreamCode\n\t};\n\tif (error instanceof OpenMeldApiClientInvalidResponseError) return withInvalidResponseDiagnostics({\n\t\tcode: error.code,\n\t\tmessage: normalizeFailureMessage(error.message),\n\t\trequestId: error.requestId,\n\t\tstatus: error.status,\n\t\tupstreamCode: null\n\t}, {\n\t\tschemaIssueMessage: error.schemaIssueMessage,\n\t\tschemaIssuePath: error.schemaIssuePath\n\t});\n\treturn withInvalidResponseDiagnostics({\n\t\tcode: readGenericErrorCode(error),\n\t\tmessage: normalizeFailureMessage(readFailureMessage(error)),\n\t\trequestId: readOptionalObjectTextField(error, \"requestId\"),\n\t\tstatus: readOptionalObjectStatus(error),\n\t\tupstreamCode: readOptionalObjectTextField(error, \"upstreamCode\")\n\t}, {\n\t\tschemaIssueMessage: readOptionalObjectTextField(error, \"schemaIssueMessage\"),\n\t\tschemaIssuePath: readOptionalObjectTextField(error, \"schemaIssuePath\")\n\t});\n}\nfunction readApiClientTextResponse(input) {\n\treturn input.response.text().then((raw) => {\n\t\tassertApiClientResponseOk({\n\t\t\tresponse: input.response,\n\t\t\traw\n\t\t});\n\t\treturn raw;\n\t});\n}\nasync function readApiClientJsonResponse(input) {\n\tlet raw;\n\ttry {\n\t\traw = await input.response.text();\n\t} catch (error) {\n\t\tconst bodyReadError = new Error(toErrorMessage$1(error), { cause: error });\n\t\tbodyReadError.code = \"network.request_failed\";\n\t\tbodyReadError.status = input.response.status;\n\t\tthrow bodyReadError;\n\t}\n\tassertApiClientResponseOk({\n\t\tresponse: input.response,\n\t\traw\n\t});\n\tconst parsed = input.schema.safeParse(parseJsonResponse(raw));\n\tif (!parsed.success) throw new OpenMeldApiClientInvalidResponseError({\n\t\tmessage: input.invalidMessage,\n\t\toperation: input.operation,\n\t\trequestId: input.response.headers.get(OPENMELD_HEADER_REQUEST_ID),\n\t\tstatus: input.response.status,\n\t\trawBody: raw,\n\t\tschemaIssue: parsed.error?.issues?.[0] ?? null\n\t});\n\treturn parsed.data;\n}\nfunction assertApiClientResponseOk(input) {\n\tif (input.response.ok) return;\n\tthrow parseApiClientErrorResponse(input);\n}\nfunction parseApiClientErrorResponse(input) {\n\tconst parsed = gatewayErrorEnvelopeSchema.safeParse(parseJsonResponse(input.raw));\n\tconst headerRequestId = normalizeOptionalText(input.response.headers.get(OPENMELD_HEADER_REQUEST_ID));\n\tif (parsed.success) return new OpenMeldApiClientHttpError({\n\t\tcode: parsed.data.error.code,\n\t\tmessage: parsed.data.error.message,\n\t\trequestId: parsed.data.error.requestId || headerRequestId,\n\t\tstatus: input.response.status,\n\t\trawBody: input.raw,\n\t\tupstreamCode: parsed.data.error.upstreamCode ?? null\n\t});\n\treturn new OpenMeldApiClientHttpError({\n\t\tcode: FALLBACK_GATEWAY_HTTP_ERROR_CODE,\n\t\tmessage: normalizeOptionalText(input.raw) ?? `Gateway request failed with HTTP ${input.response.status}.`,\n\t\trequestId: headerRequestId,\n\t\tstatus: input.response.status,\n\t\trawBody: input.raw,\n\t\tupstreamCode: null\n\t});\n}\nfunction parseJsonResponse(raw) {\n\tif (!raw.trim()) return null;\n\ttry {\n\t\treturn JSON.parse(raw);\n\t} catch {\n\t\treturn null;\n\t}\n}\nfunction normalizeOptionalText(value) {\n\tconst normalized = String(value ?? \"\").trim();\n\treturn normalized.length > 0 ? normalized : null;\n}\nfunction toErrorMessage$1(error) {\n\tif (error instanceof Error) return normalizeOptionalText(error.message) ?? error.name;\n\treturn normalizeOptionalText(error) ?? \"request failed\";\n}\nfunction formatSchemaIssuePath(issue) {\n\tconst path = issue?.path;\n\tif (!path || path.length === 0) return null;\n\treturn path.map((part) => String(part)).join(\".\");\n}\nfunction withInvalidResponseDiagnostics(failure, diagnostics) {\n\tif (!(diagnostics.schemaIssueMessage || diagnostics.schemaIssuePath)) return failure;\n\treturn {\n\t\t...failure,\n\t\tschemaIssueMessage: diagnostics.schemaIssueMessage,\n\t\tschemaIssuePath: diagnostics.schemaIssuePath\n\t};\n}\nfunction normalizeFailureMessage(value) {\n\treturn normalizeOptionalText(value) ?? \"Unknown error.\";\n}\nfunction readFailureMessage(value) {\n\tif (value instanceof Error) return normalizeOptionalText(value.message);\n\tif (typeof value === \"string\") return normalizeOptionalText(value);\n\tif (value && typeof value === \"object\" && \"message\" in value) {\n\t\tconst message = value.message;\n\t\treturn typeof message === \"string\" ? normalizeOptionalText(message) : null;\n\t}\n\tif (value === null || value === void 0 || typeof value === \"object\") return null;\n\treturn normalizeOptionalText(value);\n}\nfunction readOptionalObjectTextField(value, fieldName) {\n\tif (!value || typeof value !== \"object\" || !(fieldName in value)) return null;\n\tconst fieldValue = value[fieldName];\n\treturn typeof fieldValue === \"string\" ? normalizeOptionalText(fieldValue) : null;\n}\nfunction readOptionalObjectStatus(value) {\n\tif (!value || typeof value !== \"object\" || !(\"status\" in value)) return null;\n\tconst status = value.status;\n\treturn typeof status === \"number\" && Number.isInteger(status) ? status : null;\n}\nfunction readGenericErrorCode(value) {\n\tif (!value || typeof value !== \"object\" || !(\"code\" in value)) return null;\n\tconst normalized = normalizeOptionalText(value.code ?? null);\n\tif (!(normalized && KNOWN_API_CLIENT_ERROR_CODES.has(normalized))) return null;\n\treturn normalized;\n}\n//#endregion\n//#region src/client.ts\nconst RESERVED_HEADERS = new Set([\n\t\"authorization\",\n\tOPENMELD_HEADER_AGENT_CONTROLLER_CONVERSATION_ID,\n\tOPENMELD_HEADER_AUTO_RELAY_DEPTH,\n\tOPENMELD_HEADER_CALLER_PRINCIPAL_ID,\n\tOPENMELD_HEADER_AGENT_CONTROLLER_REF,\n\tOPENMELD_HEADER_DISPATCH_CHAIN_ID,\n\tOPENMELD_HEADER_FORWARDED_BY,\n\tOPENMELD_HEADER_OWNER_NAME,\n\tOPENMELD_HEADER_OWNER_USER_ID,\n\tOPENMELD_HEADER_PROFILE_HANDLE,\n\tOPENMELD_HEADER_PROFILE_ID,\n\tOPENMELD_HEADER_PROFILE_KIND,\n\tOPENMELD_HEADER_PROFILE_NAME,\n\tOPENMELD_HEADER_REQUEST_ID,\n\tOPENMELD_HEADER_REQUESTED_ORGANIZATION_ID,\n\tOPENMELD_HEADER_REQUESTED_ORGANIZATION_SLUG,\n\tOPENMELD_HEADER_SPACE_PASSWORD,\n\tOPENMELD_HEADER_VISITED_PROFILE_IDS,\n\tOPENMELD_HEADER_VISITED_PROFILE_IDS_HASH\n].map((value) => value.toLowerCase()));\nfunction createOpenMeldApiClient(config) {\n\tconst normalizedBaseUrl = normalizeApiBaseUrl(config.baseUrl);\n\treturn {\n\t\trequestResponse: async (input) => await performRequest({\n\t\t\tconfig,\n\t\t\tbaseUrl: normalizedBaseUrl,\n\t\t\tinput\n\t\t}),\n\t\trequestJson: async (input) => {\n\t\t\treturn await readApiClientJsonResponse({\n\t\t\t\tresponse: await performRequest({\n\t\t\t\t\tconfig,\n\t\t\t\t\tbaseUrl: normalizedBaseUrl,\n\t\t\t\t\tinput\n\t\t\t\t}),\n\t\t\t\tschema: input.schema,\n\t\t\t\tinvalidMessage: input.invalidMessage,\n\t\t\t\toperation: input.operation\n\t\t\t});\n\t\t},\n\t\trequestText: async (input) => {\n\t\t\treturn await readApiClientTextResponse({ response: await performRequest({\n\t\t\t\tconfig,\n\t\t\t\tbaseUrl: normalizedBaseUrl,\n\t\t\t\tinput\n\t\t\t}) });\n\t\t}\n\t};\n}\nasync function performRequest(input) {\n\tconst requestUrl = resolveRequestUrl(input.baseUrl, input.input.url);\n\tconst headers = await resolveRequestHeaders({\n\t\tconfig: input.config,\n\t\trequestUrl,\n\t\trequestContext: input.input.requestContext,\n\t\tspacePassword: input.input.spacePassword,\n\t\trequestHeaders: input.input.headers\n\t});\n\treturn await input.config.transport({\n\t\turl: requestUrl,\n\t\toperation: input.input.operation,\n\t\ttimeoutMs: input.input.timeoutMs,\n\t\tinit: {\n\t\t\tmethod: input.input.method,\n\t\t\theaders,\n\t\t\tbody: input.input.body ?? void 0,\n\t\t\tsignal: input.input.signal\n\t\t}\n\t});\n}\nasync function resolveRequestHeaders(input) {\n\tassertNoReservedHeaderOverrides(input.requestHeaders);\n\tconst authHeaders = normalizeHeaderRecord(input.config.getAuthHeaders ? await input.config.getAuthHeaders({ requestUrl: input.requestUrl }) : {});\n\tconst requestContextHeaders = normalizeHeaderRecord(input.requestContext && input.config.getRequestContextHeaders ? await input.config.getRequestContextHeaders({\n\t\trequestUrl: input.requestUrl,\n\t\trequestContext: input.requestContext,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword }\n\t}) : {});\n\tconst requestHeaders = normalizeHeaderRecord(input.requestHeaders ?? {});\n\tconst spacePassword = input.spacePassword === void 0 ? void 0 : normalizeSpacePasswordText(input.spacePassword);\n\treturn {\n\t\t...authHeaders,\n\t\t...requestContextHeaders,\n\t\t...spacePassword ? { [OPENMELD_HEADER_SPACE_PASSWORD]: spacePassword } : {},\n\t\t...requestHeaders\n\t};\n}\nfunction resolveRequestUrl(baseUrl, candidate) {\n\treturn new URL(candidate, `${baseUrl}/`).toString();\n}\nfunction assertNoReservedHeaderOverrides(headers) {\n\tif (!headers) return;\n\tfor (const headerName of Object.keys(headers)) {\n\t\tif (!RESERVED_HEADERS.has(headerName.toLowerCase())) continue;\n\t\tthrow new Error(`request headers must not override reserved header: ${headerName}`);\n\t}\n}\nfunction normalizeHeaderRecord(headers) {\n\tconst normalized = {};\n\tfor (const [key, value] of Object.entries(headers)) {\n\t\tconst normalizedKey = String(key).trim();\n\t\tif (normalizedKey.length === 0) continue;\n\t\tnormalized[normalizedKey] = String(value);\n\t}\n\treturn normalized;\n}\n//#endregion\n//#region src/computer-file-access/routes.ts\nconst CURRENT_COMPUTER_FILE_ACCESS_PATH = \"/v1/local-runtimes/current/file-access\";\nfunction buildComputerFileAccessReadPath(expectedDeviceId) {\n\tconst searchParams = new URLSearchParams({ expectedDeviceId });\n\treturn `${CURRENT_COMPUTER_FILE_ACCESS_PATH}?${searchParams.toString()}`;\n}\nfunction buildComputerFileAccessUpdatePath() {\n\treturn CURRENT_COMPUTER_FILE_ACCESS_PATH;\n}\n//#endregion\n//#region src/computer-file-access/api.ts\nconst createComputerFileAccessApi = (client) => ({\n\treadPolicy: async (input) => {\n\t\tconst parsed = requireValidInput$6(computerFileAccessReadRequestSchema, { expectedDeviceId: input.expectedDeviceId });\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$8(input),\n\t\t\tinvalidMessage: \"Invalid Computer file access response.\",\n\t\t\tmethod: \"GET\",\n\t\t\toperation: \"computer-file-access.read\",\n\t\t\tschema: computerFileAccessPolicyResponseSchema,\n\t\t\turl: buildComputerFileAccessReadPath(parsed.expectedDeviceId)\n\t\t});\n\t},\n\tupdatePolicy: async (input) => {\n\t\tconst parsed = requireValidInput$6(computerFileAccessUpdateRequestSchema, {\n\t\t\texpectedDeviceId: input.expectedDeviceId,\n\t\t\texpectedRevision: input.expectedRevision,\n\t\t\tidempotencyKey: input.idempotencyKey,\n\t\t\tpolicy: input.policy\n\t\t});\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$8(input),\n\t\t\tbody: JSON.stringify(parsed),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"Invalid Computer file access response.\",\n\t\t\tmethod: \"PUT\",\n\t\t\toperation: \"computer-file-access.update\",\n\t\t\tschema: computerFileAccessPolicyResponseSchema,\n\t\t\turl: buildComputerFileAccessUpdatePath()\n\t\t});\n\t}\n});\nfunction requestOptions$8(input) {\n\treturn {\n\t\t...input.requestContext === void 0 ? {} : { requestContext: input.requestContext },\n\t\t...input.signal === void 0 ? {} : { signal: input.signal },\n\t\t...input.timeoutMs === void 0 ? {} : { timeoutMs: input.timeoutMs }\n\t};\n}\nfunction requireValidInput$6(schema, value) {\n\tconst parsed = schema.safeParse(value);\n\tif (!parsed.success) throw new Error(`Computer file access request is invalid. ${parsed.error.issues[0]?.message ?? \"Invalid input.\"}`);\n\treturn parsed.data;\n}\n//#endregion\n//#region src/config/routes.ts\nfunction buildModelCatalogPath() {\n\treturn \"/v1/config/model-catalog\";\n}\n//#endregion\n//#region src/config/api.ts\nconst createConfigApi = (client) => {\n\treturn { getModelCatalog: () => getModelCatalog(client) };\n};\nasync function getModelCatalog(client) {\n\treturn await client.requestJson({\n\t\turl: buildModelCatalogPath(),\n\t\toperation: \"config.model_catalog.read\",\n\t\tmethod: \"GET\",\n\t\tschema: getModelCatalogResponseSchema,\n\t\tinvalidMessage: \"invalid model catalog response\"\n\t});\n}\n//#endregion\n//#region src/current-device/routes.ts\nconst CURRENT_DEVICE_ROUTE = \"/v1/devices/current\";\nfunction buildLocalRuntimeEnrollmentRoute(deviceId) {\n\treturn `/v1/local-runtimes/${encodeURIComponent(deviceId)}/enrollment`;\n}\nconst FORGET_CURRENT_COMPUTER_ROUTE = \"/v1/devices/current/forget\";\nconst CURRENT_LOCAL_RUNTIME_REPLY_READINESS_ROUTE = \"/v1/local-runtimes/current/reply-readiness\";\nconst CURRENT_LOCAL_AGENT_CATALOG_REFRESH_ROUTE = \"/v1/local-runtimes/current/local-agents/refresh-catalog\";\nfunction buildCurrentAgentProfileWorkspaceRoute(agentProfileId) {\n\treturn `/v1/local-runtimes/current/agent-profiles/${encodeURIComponent(agentProfileId)}/workspace`;\n}\nfunction buildCurrentLocalAgentEnabledRoute(agentId) {\n\treturn `/v1/local-runtimes/current/local-agents/${encodeURIComponent(agentId)}/enabled`;\n}\nconst LOCAL_RUNTIMES_ROUTE = \"/v1/local-runtimes\";\nfunction buildLocalRuntimesRoute(input) {\n\tif (!input?.connectionIdentityAdoption) return LOCAL_RUNTIMES_ROUTE;\n\tconst params = new URLSearchParams({ connectionIdentityAdoption: input.connectionIdentityAdoption });\n\treturn `${LOCAL_RUNTIMES_ROUTE}?${params.toString()}`;\n}\nfunction buildForgetComputerRoute(deviceId) {\n\treturn `/v1/devices/${encodeURIComponent(deviceId)}/forget`;\n}\nfunction buildCurrentDeviceObservedMetadataRoute(deviceId) {\n\treturn `/v1/devices/${encodeURIComponent(deviceId)}/observed-metadata`;\n}\nfunction buildLocalRuntimeDisplayNameRoute(deviceId) {\n\treturn `/v1/local-runtimes/${encodeURIComponent(deviceId)}/display-name`;\n}\n//#endregion\n//#region src/current-device/api.ts\nfunction requireValidLocalRuntimeEnrollmentBody(input) {\n\tconst parsed = localRuntimeEnrollmentBodySchema.safeParse({\n\t\t...input.connectedComputerId === void 0 ? {} : { connectedComputerId: input.connectedComputerId },\n\t\truntimeLane: input.runtimeLane\n\t});\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid local runtime enrollment body.\");\n\treturn parsed.data;\n}\nfunction requireValidCurrentDeviceObservedMetadataBody(input) {\n\tconst parsed = writeCurrentDeviceObservedMetadataBodySchema.safeParse({ metadata: input.metadata });\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid current device observed metadata body.\");\n\treturn parsed.data;\n}\nfunction requireValidLocalRuntimesQuery(input = {}) {\n\tconst parsed = localRuntimesQuerySchema.safeParse(input);\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid local runtimes query.\");\n\treturn parsed.data;\n}\nfunction requireValidLocalRuntimeDisplayNameBody(input) {\n\tconst parsed = setLocalRuntimeDisplayNameBodySchema.safeParse({ displayName: input.displayName });\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid local runtime display name body.\");\n\treturn parsed.data;\n}\nfunction requireValidCurrentLocalAgentEnabledBody(input) {\n\tconst parsed = setCurrentLocalAgentEnabledBodySchema.safeParse({ enabled: input.enabled });\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid local agent enabled payload.\");\n\treturn parsed.data;\n}\nfunction requireValidCurrentAgentProfileWorkspaceBody(input) {\n\tconst parsed = setCurrentAgentProfileWorkspaceBodySchema.safeParse({\n\t\tworkspaceMode: input.workspaceMode,\n\t\t...input.workspacePath === void 0 ? {} : { workspacePath: input.workspacePath }\n\t});\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid profile workspace payload.\");\n\treturn parsed.data;\n}\nconst createCurrentDeviceApi = (client) => {\n\treturn {\n\t\tgetCurrentLocalRuntimeReplyReadiness: async () => await client.requestJson({\n\t\t\turl: CURRENT_LOCAL_RUNTIME_REPLY_READINESS_ROUTE,\n\t\t\toperation: \"local_runtime.current.reply_readiness.read\",\n\t\t\tmethod: \"GET\",\n\t\t\tschema: currentLocalRuntimeReplyReadinessResponseSchema,\n\t\t\tinvalidMessage: \"Invalid current local runtime reply readiness response.\"\n\t\t}),\n\t\tgetCurrentTarget: async () => await client.requestJson({\n\t\t\turl: CURRENT_DEVICE_ROUTE,\n\t\t\toperation: \"current_device.read\",\n\t\t\tmethod: \"GET\",\n\t\t\tschema: currentDeviceTargetResponseSchema,\n\t\t\tinvalidMessage: \"Invalid current device target response.\"\n\t\t}),\n\t\tforgetComputer: async (input) => await client.requestJson({\n\t\t\turl: buildForgetComputerRoute(input.deviceId),\n\t\t\toperation: \"local_runtime.forget\",\n\t\t\tmethod: \"POST\",\n\t\t\tschema: forgetComputerResponseSchema,\n\t\t\tinvalidMessage: \"Invalid forgotten computer response.\"\n\t\t}),\n\t\tforgetCurrentComputer: async () => await client.requestJson({\n\t\t\turl: FORGET_CURRENT_COMPUTER_ROUTE,\n\t\t\toperation: \"current_device.forget\",\n\t\t\tmethod: \"POST\",\n\t\t\tschema: forgetCurrentComputerResponseSchema,\n\t\t\tinvalidMessage: \"Invalid forgotten computer response.\"\n\t\t}),\n\t\tlistLocalRuntimes: async (input) => {\n\t\t\tconst query = requireValidLocalRuntimesQuery(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\turl: buildLocalRuntimesRoute(query),\n\t\t\t\toperation: \"local_runtime.list\",\n\t\t\t\tmethod: \"GET\",\n\t\t\t\tschema: localRuntimesResponseSchema,\n\t\t\t\tinvalidMessage: \"Invalid local runtimes response.\"\n\t\t\t});\n\t\t},\n\t\tenrollLocalRuntime: async (input) => {\n\t\t\tconst body = requireValidLocalRuntimeEnrollmentBody(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\turl: buildLocalRuntimeEnrollmentRoute(input.deviceId),\n\t\t\t\toperation: \"local_runtime.enroll\",\n\t\t\t\tmethod: \"POST\",\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\tschema: localRuntimeEnrollmentResponseSchema,\n\t\t\t\tinvalidMessage: \"Invalid local runtime enrollment response.\"\n\t\t\t});\n\t\t},\n\t\tsetDisplayName: async (input) => {\n\t\t\tconst body = requireValidLocalRuntimeDisplayNameBody(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\turl: buildLocalRuntimeDisplayNameRoute(input.deviceId),\n\t\t\t\toperation: \"local_runtime.display_name.write\",\n\t\t\t\tmethod: \"PUT\",\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\tschema: localRuntimesResponseSchema,\n\t\t\t\tinvalidMessage: \"Invalid local runtimes response.\"\n\t\t\t});\n\t\t},\n\t\tsetCurrentLocalAgentEnabled: async (input) => {\n\t\t\tconst body = requireValidCurrentLocalAgentEnabledBody(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\turl: buildCurrentLocalAgentEnabledRoute(input.agentId),\n\t\t\t\toperation: \"local_runtime.current.local_agent_enabled.write\",\n\t\t\t\tmethod: \"PUT\",\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\tschema: setCurrentLocalAgentEnabledResponseSchema,\n\t\t\t\tinvalidMessage: \"Invalid local agent enabled response.\"\n\t\t\t});\n\t\t},\n\t\tsetCurrentAgentProfileWorkspace: async (input) => {\n\t\t\tconst body = requireValidCurrentAgentProfileWorkspaceBody(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\turl: buildCurrentAgentProfileWorkspaceRoute(input.agentProfileId),\n\t\t\t\toperation: \"local_runtime.current.agent_profile_workspace.write\",\n\t\t\t\tmethod: \"PUT\",\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\tschema: setCurrentAgentProfileWorkspaceResponseSchema,\n\t\t\t\tinvalidMessage: \"Invalid profile workspace response.\"\n\t\t\t});\n\t\t},\n\t\trefreshCurrentLocalAgentCatalog: async () => await client.requestJson({\n\t\t\turl: CURRENT_LOCAL_AGENT_CATALOG_REFRESH_ROUTE,\n\t\t\toperation: \"local_runtime.current.local_agent_catalog.refresh\",\n\t\t\tmethod: \"POST\",\n\t\t\tschema: refreshCurrentLocalAgentCatalogResponseSchema,\n\t\t\tinvalidMessage: \"Invalid local agent catalog refresh response.\"\n\t\t}),\n\t\twriteObservedMetadata: async (input) => {\n\t\t\tconst body = requireValidCurrentDeviceObservedMetadataBody(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\turl: buildCurrentDeviceObservedMetadataRoute(input.deviceId),\n\t\t\t\toperation: \"current_device.observed_metadata.write\",\n\t\t\t\tmethod: \"PUT\",\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\tschema: writeCurrentDeviceObservedMetadataResponseSchema,\n\t\t\t\tinvalidMessage: \"Invalid current device observed metadata response.\"\n\t\t\t});\n\t\t}\n\t};\n};\n//#endregion\n//#region src/direct-message/routes.ts\nfunction buildDirectMessageSpacePath() {\n\treturn \"/v1/organizations/current/dm-space\";\n}\nfunction buildDirectMessageConversionPath(spaceId) {\n\treturn `/v1/spaces/${encodeURIComponent(spaceId)}/direct-message-conversion`;\n}\n//#endregion\n//#region src/direct-message/api.ts\nconst createDirectMessageApi = (client) => ({\n\tconvertToSpace: async (input) => {\n\t\tconst request = validateConvertDirectMessageToSpaceInput(input);\n\t\treturn await client.requestJson({\n\t\t\tbody: JSON.stringify({\n\t\t\t\tname: request.name,\n\t\t\t\tprofileIds: request.profileIds\n\t\t\t}),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"Invalid Direct Message conversion response.\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"direct_message.space.convert\",\n\t\t\trequestContext: request.requestContext,\n\t\t\tschema: convertDirectMessageToSpaceResponseSchema,\n\t\t\tsignal: request.signal,\n\t\t\ttimeoutMs: request.timeoutMs,\n\t\t\turl: buildDirectMessageConversionPath(request.spaceId)\n\t\t});\n\t},\n\topenSpace: async (input) => {\n\t\tconst request = validateOpenDirectMessageSpaceInput(input);\n\t\treturn await client.requestJson({\n\t\t\turl: buildDirectMessageSpacePath(),\n\t\t\toperation: \"direct_message.space.open\",\n\t\t\tmethod: \"POST\",\n\t\t\trequestContext: request.requestContext,\n\t\t\tsignal: request.signal,\n\t\t\ttimeoutMs: request.timeoutMs,\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tbody: JSON.stringify({ targetProfileId: request.targetProfileId }),\n\t\t\tschema: openDirectMessageSpaceResponseSchema,\n\t\t\tinvalidMessage: \"Invalid Direct Message Space response.\"\n\t\t});\n\t}\n});\nfunction validateConvertDirectMessageToSpaceInput(input) {\n\tconst parsed = convertDirectMessageToSpaceBodySchema.safeParse({\n\t\tname: input.name,\n\t\tprofileIds: input.profileIds\n\t});\n\tif (!parsed.success || input.spaceId.trim().length === 0) throw new Error(parsed.error?.issues[0]?.message ?? \"Invalid Direct Message conversion request.\");\n\tvalidateRequestInput(input);\n\treturn input;\n}\nfunction validateRequestInput(input) {\n\tif (!openMeldRequestContextSchema.optional().safeParse(input.requestContext).success) throw new Error(\"Invalid Direct Message request context.\");\n\treturn input;\n}\nfunction validateOpenDirectMessageSpaceInput(input) {\n\tconst parsed = openDirectMessageSpaceBodySchema.safeParse({ targetProfileId: input.targetProfileId });\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Direct Message target.\");\n\tvalidateRequestInput(input);\n\treturn input;\n}\n//#endregion\n//#region src/feedback/routes.ts\nfunction buildFeedbackIssueSubmissionPath(inboxKey) {\n\treturn `/v1/feedback/inboxes/${encodeURIComponent(inboxKey)}/issues`;\n}\nfunction buildCurrentOrganizationFeedbackReportingPolicyPath() {\n\treturn \"/v1/organizations/current/feedback-reporting-policy\";\n}\n//#endregion\n//#region src/feedback/api.ts\nconst createFeedbackApi = (client) => ({\n\tsubmitFeedbackIssue: async (input) => {\n\t\tconst request = submitFeedbackIssueRequestSchema.parse(input.request);\n\t\treturn await client.requestJson({\n\t\t\turl: buildFeedbackIssueSubmissionPath(input.inboxKey),\n\t\t\toperation: \"feedback.issue.submit\",\n\t\t\tmethod: \"POST\",\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tbody: JSON.stringify(request),\n\t\t\tschema: submitFeedbackIssueResponseSchema,\n\t\t\tinvalidMessage: \"invalid Feedback Issue submission response\"\n\t\t});\n\t},\n\treadCurrentOrganizationFeedbackReportingPolicy: async (input = {}) => await client.requestJson({\n\t\turl: buildCurrentOrganizationFeedbackReportingPolicyPath(),\n\t\toperation: \"feedback.reporting_policy.read\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: feedbackReportingPolicyResponseSchema,\n\t\tinvalidMessage: \"invalid feedback reporting policy response\"\n\t}),\n\tsetCurrentOrganizationFeedbackReportingPolicy: async (input) => {\n\t\tconst body = updateFeedbackReportingPolicyBodySchema.parse({ reportingEnabled: input.reportingEnabled });\n\t\treturn await client.requestJson({\n\t\t\turl: buildCurrentOrganizationFeedbackReportingPolicyPath(),\n\t\t\toperation: \"feedback.reporting_policy.write\",\n\t\t\tmethod: \"PUT\",\n\t\t\trequestContext: input.requestContext,\n\t\t\tsignal: input.signal,\n\t\t\ttimeoutMs: input.timeoutMs,\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tbody: JSON.stringify(body),\n\t\t\tschema: feedbackReportingPolicyResponseSchema,\n\t\t\tinvalidMessage: \"invalid feedback reporting policy response\"\n\t\t});\n\t}\n});\n//#endregion\n//#region src/inbox/routes.ts\nconst INBOX_PATH = \"/v1/inbox\";\nfunction buildInboxPath(query = {}) {\n\tconst search = new URLSearchParams();\n\tif (query.cursor !== void 0) search.set(\"cursor\", query.cursor);\n\tif (query.limit !== void 0) search.set(\"limit\", String(query.limit));\n\tif (query.view !== void 0) search.set(\"view\", query.view);\n\tconst suffix = search.toString();\n\treturn suffix ? `${INBOX_PATH}?${suffix}` : INBOX_PATH;\n}\nfunction buildInboxSummaryPath() {\n\treturn `${INBOX_PATH}/summary`;\n}\nfunction buildCenterAgentInboxSummaryPath() {\n\treturn `${INBOX_PATH}/center-agent/summary`;\n}\nfunction buildCenterAgentInboxReadThroughPath() {\n\treturn `${INBOX_PATH}/center-agent/read-through`;\n}\nfunction buildSpaceInboxSummaryPath() {\n\treturn `${INBOX_PATH}/spaces/summary`;\n}\nfunction buildSpaceInboxReadThroughPath() {\n\treturn `${INBOX_PATH}/spaces/read-through`;\n}\nfunction buildInboxItemReadPath(itemId) {\n\treturn `${INBOX_PATH}/items/${encodeURIComponent(itemId)}/read`;\n}\nfunction buildInboxItemDismissPath(itemId) {\n\treturn `${INBOX_PATH}/items/${encodeURIComponent(itemId)}/dismiss`;\n}\nfunction buildInboxItemPath(itemId) {\n\treturn `${INBOX_PATH}/items/${encodeURIComponent(itemId)}`;\n}\nfunction buildInboxMarkAllReadPath() {\n\treturn `${INBOX_PATH}/mark-all-read`;\n}\nfunction buildInboxPreferencesPath() {\n\treturn `${INBOX_PATH}/preferences`;\n}\n//#endregion\n//#region src/inbox/api.ts\nconst createInboxApi = (client) => ({\n\tcenterAgentSummary: async (input = {}) => await client.requestJson({\n\t\t...requestOptions$7(input),\n\t\tinvalidMessage: \"invalid Center Agent Inbox summary response\",\n\t\tmethod: \"GET\",\n\t\toperation: \"inbox.center_agent.summary\",\n\t\tschema: centerAgentInboxSummaryResponseSchema,\n\t\turl: buildCenterAgentInboxSummaryPath()\n\t}),\n\tdismiss: async (input) => {\n\t\tconst params = requireValidInput$5(inboxItemRouteParamsSchema, { itemId: input.itemId }, \"Inbox item request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$7(input),\n\t\t\tinvalidMessage: \"invalid Inbox dismiss response\",\n\t\t\tmethod: \"PUT\",\n\t\t\toperation: \"inbox.item.dismiss\",\n\t\t\tschema: dismissInboxItemResponseSchema,\n\t\t\turl: buildInboxItemDismissPath(params.itemId)\n\t\t});\n\t},\n\tget: async (input) => {\n\t\tconst params = requireValidInput$5(inboxItemRouteParamsSchema, { itemId: input.itemId }, \"Inbox item request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$7(input),\n\t\t\tinvalidMessage: \"invalid Inbox item response\",\n\t\t\tmethod: \"GET\",\n\t\t\toperation: \"inbox.item.get\",\n\t\t\tschema: getInboxItemResponseSchema,\n\t\t\turl: buildInboxItemPath(params.itemId)\n\t\t});\n\t},\n\tlist: async (input = {}) => {\n\t\tconst query = requireValidInput$5(listInboxItemsQuerySchema, {\n\t\t\t...input.cursor === void 0 ? {} : { cursor: input.cursor },\n\t\t\t...input.limit === void 0 ? {} : { limit: input.limit },\n\t\t\t...input.view === void 0 ? {} : { view: input.view }\n\t\t}, \"Inbox list request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$7(input),\n\t\t\tinvalidMessage: \"invalid Inbox list response\",\n\t\t\tmethod: \"GET\",\n\t\t\toperation: \"inbox.list\",\n\t\t\tschema: listInboxItemsResponseSchema,\n\t\t\turl: buildInboxPath(query)\n\t\t});\n\t},\n\tsummary: async (input = {}) => await client.requestJson({\n\t\t...requestOptions$7(input),\n\t\tinvalidMessage: \"invalid Inbox summary response\",\n\t\tmethod: \"GET\",\n\t\toperation: \"inbox.summary\",\n\t\tschema: inboxSummaryResponseSchema,\n\t\turl: buildInboxSummaryPath()\n\t}),\n\tmarkRead: async (input) => {\n\t\tconst params = requireValidInput$5(inboxItemRouteParamsSchema, { itemId: input.itemId }, \"Inbox item request is invalid.\");\n\t\tconst body = requireValidInput$5(markInboxItemReadBodySchema, { read: input.read }, \"Inbox read request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$7(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Inbox read response\",\n\t\t\tmethod: \"PATCH\",\n\t\t\toperation: \"inbox.item.read\",\n\t\t\tschema: markInboxItemReadResponseSchema,\n\t\t\turl: buildInboxItemReadPath(params.itemId)\n\t\t});\n\t},\n\tmarkAllRead: async (input = {}) => await client.requestJson({\n\t\t...requestOptions$7(input),\n\t\tinvalidMessage: \"invalid Inbox mark-all-read response\",\n\t\tmethod: \"POST\",\n\t\toperation: \"inbox.mark_all_read\",\n\t\tschema: markAllInboxItemsReadResponseSchema,\n\t\turl: buildInboxMarkAllReadPath()\n\t}),\n\tmarkCenterAgentReadThrough: async (input) => {\n\t\tconst body = requireValidInput$5(markCenterAgentInboxReadThroughBodySchema, {\n\t\t\tspaceId: input.spaceId,\n\t\t\tthroughOccurredAtMs: input.throughOccurredAtMs\n\t\t}, \"Center Agent Inbox read request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$7(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Center Agent Inbox read response\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"inbox.center_agent.read_through\",\n\t\t\tschema: markCenterAgentInboxReadThroughResponseSchema,\n\t\t\turl: buildCenterAgentInboxReadThroughPath()\n\t\t});\n\t},\n\tspaceSummary: async (input = {}) => await client.requestJson({\n\t\t...requestOptions$7(input),\n\t\tinvalidMessage: \"invalid Space Inbox summary response\",\n\t\tmethod: \"GET\",\n\t\toperation: \"inbox.space.summary\",\n\t\tschema: spaceInboxSummaryResponseSchema,\n\t\turl: buildSpaceInboxSummaryPath()\n\t}),\n\tmarkSpaceReadThrough: async (input) => {\n\t\tconst body = requireValidInput$5(markSpaceInboxReadThroughBodySchema, {\n\t\t\tspaceId: input.spaceId,\n\t\t\tthroughOccurredAtMs: input.throughOccurredAtMs\n\t\t}, \"Space Inbox read request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$7(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Space Inbox read response\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"inbox.space.read_through\",\n\t\t\tschema: markSpaceInboxReadThroughResponseSchema,\n\t\t\turl: buildSpaceInboxReadThroughPath()\n\t\t});\n\t},\n\tgetPreferences: async (input = {}) => await client.requestJson({\n\t\t...requestOptions$7(input),\n\t\tinvalidMessage: \"invalid Inbox notification preferences response\",\n\t\tmethod: \"GET\",\n\t\toperation: \"inbox.preferences.read\",\n\t\tschema: inboxNotificationPreferencesResponseSchema,\n\t\turl: buildInboxPreferencesPath()\n\t}),\n\tupdatePreferences: async (input) => {\n\t\tconst body = requireValidInput$5(updateInboxNotificationPreferencesBodySchema, { urgentEmailEnabled: input.urgentEmailEnabled }, \"Inbox notification preferences request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$7(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Inbox notification preferences response\",\n\t\t\tmethod: \"PATCH\",\n\t\t\toperation: \"inbox.preferences.update\",\n\t\t\tschema: inboxNotificationPreferencesResponseSchema,\n\t\t\turl: buildInboxPreferencesPath()\n\t\t});\n\t}\n});\nfunction requestOptions$7(input) {\n\treturn {\n\t\t...input.requestContext === void 0 ? {} : { requestContext: input.requestContext },\n\t\t...input.signal === void 0 ? {} : { signal: input.signal },\n\t\t...input.timeoutMs === void 0 ? {} : { timeoutMs: input.timeoutMs }\n\t};\n}\nfunction requireValidInput$5(schema, value, message) {\n\tconst parsed = schema.safeParse(value);\n\tif (!parsed.success) throw new Error(`${message} ${parsed.error.issues[0]?.message ?? \"Invalid input.\"}`);\n\treturn parsed.data;\n}\n//#endregion\n//#region src/local-folder-picker/routes.ts\nconst CURRENT_LOCAL_FOLDER_PICKER_PATH = \"/v1/local-runtimes/current/folder-picker\";\nfunction buildLocalFolderPickerPath() {\n\treturn CURRENT_LOCAL_FOLDER_PICKER_PATH;\n}\n//#endregion\n//#region src/local-folder-picker/api.ts\nconst createLocalFolderPickerApi = (client) => ({ selectFolders: async (input) => {\n\tconst parsed = localFolderPickerRequestSchema.safeParse({\n\t\tallowMultiple: input.allowMultiple,\n\t\texpectedDeviceId: input.expectedDeviceId,\n\t\tpurpose: input.purpose\n\t});\n\tif (!parsed.success) throw new Error(`Local Folder Picker request is invalid. ${parsed.error.issues[0]?.message ?? \"Invalid input.\"}`);\n\treturn await client.requestJson({\n\t\t...requestOptions$6(input),\n\t\tbody: JSON.stringify(parsed.data),\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tinvalidMessage: \"Invalid Local Folder Picker response.\",\n\t\tmethod: \"POST\",\n\t\toperation: \"local-folder-picker.select-folders\",\n\t\tschema: localFolderPickerResultSchema,\n\t\turl: buildLocalFolderPickerPath()\n\t});\n} });\nfunction requestOptions$6(input) {\n\treturn {\n\t\t...input.requestContext === void 0 ? {} : { requestContext: input.requestContext },\n\t\t...input.signal === void 0 ? {} : { signal: input.signal },\n\t\t...input.timeoutMs === void 0 ? {} : { timeoutMs: input.timeoutMs }\n\t};\n}\n//#endregion\n//#region src/local-project-control/routes.ts\nconst CURRENT_PROJECTS_PATH = \"/v1/local-runtimes/current/projects\";\nfunction buildLocalProjectControlPath(route) {\n\treturn `${CURRENT_PROJECTS_PATH}/${route}`;\n}\n//#endregion\n//#region src/local-project-control/api.ts\nconst createLocalProjectControlApi = (client) => ({\n\tdiscoverProjects: async (input) => await client.requestJson({\n\t\t...requestOptions$5(input),\n\t\tbody: JSON.stringify(requireValidInput$4(localProjectControlDiscoverProjectsRequestSchema, requestBody(input))),\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tinvalidMessage: \"invalid local Project discovery response\",\n\t\tmethod: \"POST\",\n\t\toperation: \"local-project-control.discover\",\n\t\tschema: localProjectControlDiscoverProjectsResponseSchema,\n\t\turl: buildLocalProjectControlPath(\"discover\")\n\t}),\n\tconnectCandidate: async (input) => await client.requestJson({\n\t\t...requestOptions$5(input),\n\t\tbody: JSON.stringify(requireValidInput$4(localProjectControlConnectCandidateRequestSchema, requestBody(input))),\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tinvalidMessage: \"invalid local Project candidate connection response\",\n\t\tmethod: \"POST\",\n\t\toperation: \"local-project-control.connect-candidate\",\n\t\tschema: localProjectControlConnectOutcomeSchema,\n\t\turl: buildLocalProjectControlPath(\"connect-candidate\")\n\t}),\n\tconnectDeclaredPath: async (input) => await client.requestJson({\n\t\t...requestOptions$5(input),\n\t\tbody: JSON.stringify(requireValidInput$4(localProjectControlConnectDeclaredPathRequestSchema, requestBody(input))),\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tinvalidMessage: \"invalid local Project folder connection response\",\n\t\tmethod: \"POST\",\n\t\toperation: \"local-project-control.connect-declared-path\",\n\t\tschema: localProjectControlConnectOutcomeSchema,\n\t\turl: buildLocalProjectControlPath(\"connect-declared-path\")\n\t}),\n\tsetDefaultConnection: async (input) => await client.requestJson({\n\t\t...requestOptions$5(input),\n\t\tbody: JSON.stringify(requireValidInput$4(localProjectControlSetDefaultConnectionRequestSchema, requestBody(input))),\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tinvalidMessage: \"invalid default local Project connection response\",\n\t\tmethod: \"POST\",\n\t\toperation: \"local-project-control.set-default\",\n\t\tschema: localProjectControlSetDefaultConnectionResponseSchema,\n\t\turl: buildLocalProjectControlPath(\"connections/set-default\")\n\t}),\n\tremoveConnection: async (input) => await client.requestJson({\n\t\t...requestOptions$5(input),\n\t\tbody: JSON.stringify(requireValidInput$4(localProjectControlRemoveConnectionRequestSchema, requestBody(input))),\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tinvalidMessage: \"invalid local Project connection removal response\",\n\t\tmethod: \"POST\",\n\t\toperation: \"local-project-control.remove\",\n\t\tschema: localProjectControlRemoveConnectionResponseSchema,\n\t\turl: buildLocalProjectControlPath(\"connections/remove\")\n\t}),\n\tremoveMissingConnections: async (input) => await client.requestJson({\n\t\t...requestOptions$5(input),\n\t\tbody: JSON.stringify(requireValidInput$4(localProjectControlRemoveMissingConnectionsRequestSchema, requestBody(input))),\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tinvalidMessage: \"invalid missing local Project connections response\",\n\t\tmethod: \"POST\",\n\t\toperation: \"local-project-control.remove-missing\",\n\t\tschema: localProjectControlRemoveMissingConnectionsResponseSchema,\n\t\turl: buildLocalProjectControlPath(\"connections/remove-missing\")\n\t})\n});\nfunction requestOptions$5(input) {\n\treturn {\n\t\t...input.requestContext === void 0 ? {} : { requestContext: input.requestContext },\n\t\t...input.signal === void 0 ? {} : { signal: input.signal },\n\t\t...input.timeoutMs === void 0 ? {} : { timeoutMs: input.timeoutMs }\n\t};\n}\nfunction requestBody(input) {\n\tconst { requestContext: _requestContext, signal: _signal, timeoutMs: _timeoutMs, ...body } = input;\n\treturn body;\n}\nfunction requireValidInput$4(schema, value) {\n\tconst parsed = schema.safeParse(value);\n\tif (!parsed.success) throw new Error(`Local Project control request is invalid. ${parsed.error.issues[0]?.message ?? \"Invalid input.\"}`);\n\treturn parsed.data;\n}\n//#endregion\n//#region src/local-runtime/api.ts\nconst LOCAL_RUNTIME_EXPECTED_ROUTES_PATH = \"/v1/local-runtime/expected-routes\";\nfunction buildExpectedRoutesUrl(input) {\n\tconst parsed = getLocalRuntimeExpectedRoutesQuerySchema.safeParse({\n\t\tcontractVersion: input.contractVersion,\n\t\tdeviceId: input.deviceId,\n\t\tlane: input.lane\n\t});\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid local runtime expected-routes query.\");\n\tconst searchParams = new URLSearchParams();\n\tif (parsed.data.contractVersion) searchParams.set(\"contractVersion\", parsed.data.contractVersion);\n\tsearchParams.set(\"deviceId\", parsed.data.deviceId);\n\tsearchParams.set(\"lane\", parsed.data.lane);\n\treturn `${LOCAL_RUNTIME_EXPECTED_ROUTES_PATH}?${searchParams.toString()}`;\n}\nfunction createLocalRuntimeExpectedRoutesApi(client) {\n\treturn { getExpectedRoutes: async (input) => await client.requestJson({\n\t\tinvalidMessage: \"Invalid local runtime expected-routes response.\",\n\t\tmethod: \"GET\",\n\t\toperation: \"local_runtime.expected_routes.read\",\n\t\trequestContext: input.requestContext,\n\t\tschema: getLocalRuntimeExpectedRoutesResponseSchema,\n\t\turl: buildExpectedRoutesUrl(input)\n\t}) };\n}\n//#endregion\n//#region src/organization/routes.ts\nfunction buildCurrentOrganizationDirectoryPath() {\n\treturn \"/v1/organizations/current/directory\";\n}\nfunction buildCurrentOrganizationMemberOpenMeldServiceStatusesPath() {\n\treturn \"/v1/organizations/current/member-openmeld-service-statuses\";\n}\nfunction buildCurrentOrganizationSpacesPath() {\n\treturn \"/v1/organizations/current/spaces\";\n}\nfunction buildCurrentOrganizationSpacesWithMemberCountsPath() {\n\treturn \"/v1/organizations/current/spaces-with-member-counts\";\n}\nfunction buildCurrentOrganizationMessageChannelsPath() {\n\treturn \"/v1/organizations/current/message-channels\";\n}\nfunction buildCurrentOrganizationMessageChannelRegistrationsPath() {\n\treturn `${buildCurrentOrganizationMessageChannelsPath()}/registrations`;\n}\nfunction buildMessageChannelIdentityLinkPreviewPath() {\n\treturn \"/v1/message-channels/identity-link/preview\";\n}\nfunction buildMessageChannelIdentityLinkConsumePath() {\n\treturn \"/v1/message-channels/identity-link/consume\";\n}\nfunction buildCurrentOrganizationMessageChannelPath(provider) {\n\treturn `${buildCurrentOrganizationMessageChannelsPath()}/${encodeURIComponent(provider)}`;\n}\nfunction buildCurrentOrganizationMessageChannelRegistrationPath(provider) {\n\treturn `${buildCurrentOrganizationMessageChannelPath(provider)}/registration-attempts`;\n}\nfunction buildCurrentOrganizationMessageChannelRegistrationPollPath(provider, attemptId) {\n\treturn `${buildCurrentOrganizationMessageChannelRegistrationPath(provider)}/${encodeURIComponent(attemptId)}/poll`;\n}\nfunction buildCurrentOrganizationLogoPath() {\n\treturn \"/v1/organizations/current/logo\";\n}\nfunction buildCurrentOrganizationCenterAgentMemoryWipeSelfPath() {\n\treturn \"/v1/organizations/current/center-agent-memory/wipe-self\";\n}\nfunction buildCurrentOrganizationCenterAgentMemoryPolicyPath() {\n\treturn \"/v1/organizations/current/center-agent-memory/organization-policy\";\n}\nfunction buildCurrentOrganizationInformationProtectionPath() {\n\treturn \"/v1/organizations/current/information-protection\";\n}\nfunction buildOrganizationBindingAuthorizationsBulkPath(organizationId) {\n\treturn `/v1/organizations/${encodeURIComponent(organizationId)}/binding-authorizations/bulk`;\n}\nfunction buildOrganizationBindingAuthorizationProfilesPath(organizationId) {\n\treturn `/v1/organizations/${encodeURIComponent(organizationId)}/binding-authorizations/profiles`;\n}\nfunction buildOrganizationBindingAuthorizationPreferencePath(organizationId) {\n\treturn `/v1/organizations/${encodeURIComponent(organizationId)}/binding-authorization-preference`;\n}\nfunction buildOrganizationWakeAccessChoicePath(organizationId) {\n\treturn `/v1/organizations/${encodeURIComponent(organizationId)}/wake-access-choice`;\n}\n//#endregion\n//#region src/organization/api.ts\nconst createOrganizationApi = (client) => ({\n\tupdateCurrentLogo: async (input) => {\n\t\tconst mimeType = organizationLogoMimeTypeSchema.parse(input.mimeType);\n\t\tconst body = toOrganizationLogoBody(input.bytes);\n\t\tconst sizeBytes = body instanceof Blob ? body.size : body.byteLength;\n\t\tif (sizeBytes < 1 || sizeBytes > ORGANIZATION_LOGO_MAX_SIZE_BYTES) throw new Error(\"invalid Organization logo size\");\n\t\treturn await client.requestJson({\n\t\t\turl: buildCurrentOrganizationLogoPath(),\n\t\t\toperation: \"organization.logo.update\",\n\t\t\tmethod: \"PUT\",\n\t\t\trequestContext: input.requestContext,\n\t\t\tsignal: input.signal,\n\t\t\ttimeoutMs: input.timeoutMs,\n\t\t\theaders: { \"content-type\": mimeType },\n\t\t\tbody,\n\t\t\tschema: organizationLogoResponseSchema,\n\t\t\tinvalidMessage: \"invalid Organization logo update response\"\n\t\t});\n\t},\n\tremoveCurrentLogo: async (input = {}) => await client.requestJson({\n\t\turl: buildCurrentOrganizationLogoPath(),\n\t\toperation: \"organization.logo.remove\",\n\t\tmethod: \"DELETE\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: organizationLogoResponseSchema,\n\t\tinvalidMessage: \"invalid Organization logo removal response\"\n\t}),\n\tbulkAuthorizeAgentProfileBindings: async (input) => {\n\t\tconst body = bulkAuthorizeAgentProfileBindingsForOrganizationBodySchema.parse({ agentProfileIds: input.agentProfileIds });\n\t\treturn await client.requestJson({\n\t\t\turl: buildOrganizationBindingAuthorizationsBulkPath(input.organizationId),\n\t\t\toperation: \"organization.binding_authorization.bulk_authorize\",\n\t\t\tmethod: \"POST\",\n\t\t\trequestContext: input.requestContext,\n\t\t\tsignal: input.signal,\n\t\t\ttimeoutMs: input.timeoutMs,\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tbody: JSON.stringify(body),\n\t\t\tschema: bulkAuthorizeAgentProfileBindingsForOrganizationResponseSchema,\n\t\t\tinvalidMessage: \"invalid Organization Binding authorization bulk response\"\n\t\t});\n\t},\n\tgetBindingAuthorizationPreference: async (input) => await client.requestJson({\n\t\turl: buildOrganizationBindingAuthorizationPreferencePath(input.organizationId),\n\t\toperation: \"organization.binding_authorization.preference.read\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: getOrganizationBindingAuthorizationPreferenceResponseSchema,\n\t\tinvalidMessage: \"invalid Organization Binding authorization preference response\"\n\t}),\n\tlistBindingAuthorizationProfiles: async (input) => await client.requestJson({\n\t\turl: buildOrganizationBindingAuthorizationProfilesPath(input.organizationId),\n\t\toperation: \"organization.binding_authorization.profiles.list\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: listOrganizationBindingAuthorizationProfilesResponseSchema,\n\t\tinvalidMessage: \"invalid Organization Binding authorization profile list response\"\n\t}),\n\tgetCurrentDirectory: async (input = {}) => await client.requestJson({\n\t\turl: buildCurrentOrganizationDirectoryPath(),\n\t\toperation: \"organization.directory.read\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: organizationDirectoryResponseSchema,\n\t\tinvalidMessage: \"invalid Organization directory response\"\n\t}),\n\tgetCurrentMemberOpenMeldServiceStatuses: async (input = {}) => await client.requestJson({\n\t\turl: buildCurrentOrganizationMemberOpenMeldServiceStatusesPath(),\n\t\toperation: \"organization.member_service_statuses.read\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: organizationMemberOpenMeldServiceStatusesResponseSchema,\n\t\tinvalidMessage: \"invalid Organization member OpenMeld Service statuses response\"\n\t}),\n\tlistCurrentSpaces: async (input = {}) => await client.requestJson({\n\t\turl: buildCurrentOrganizationSpacesPath(),\n\t\toperation: \"organization.spaces.list\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: organizationSpaceDirectoryResponseSchema,\n\t\tinvalidMessage: \"invalid Organization Space directory response\"\n\t}),\n\tlistCurrentSpacesWithMemberCounts: async (input = {}) => await client.requestJson({\n\t\turl: buildCurrentOrganizationSpacesWithMemberCountsPath(),\n\t\toperation: \"organization.spaces_with_member_counts.list\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: organizationSpaceDirectoryWithMemberCountsResponseSchema,\n\t\tinvalidMessage: \"invalid Organization Space directory with member counts response\"\n\t}),\n\tlistCurrentMessageChannels: async (input = {}) => await client.requestJson({\n\t\turl: buildCurrentOrganizationMessageChannelsPath(),\n\t\toperation: \"organization.message_channels.list\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: messageChannelConnectionListResponseSchema,\n\t\tinvalidMessage: \"invalid Organization Message Channels response\"\n\t}),\n\tlistCurrentLarkPlatformRegistrations: async (input = {}) => await client.requestJson({\n\t\turl: buildCurrentOrganizationMessageChannelRegistrationsPath(),\n\t\toperation: \"organization.message_channel_registrations.list\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: larkPlatformActiveRegistrationListResponseSchema,\n\t\tinvalidMessage: \"invalid Organization Message Channel registrations response\"\n\t}),\n\tpreviewMessageChannelIdentityLink: async (input) => {\n\t\tconst body = messageChannelIdentityLinkPreviewBodySchema.parse({ token: input.token });\n\t\treturn await client.requestJson({\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Message Channel identity link preview response\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"organization.message_channel.identity_link.preview\",\n\t\t\trequestContext: input.requestContext,\n\t\t\tschema: messageChannelIdentityLinkPreviewResponseSchema,\n\t\t\tsignal: input.signal,\n\t\t\ttimeoutMs: input.timeoutMs,\n\t\t\turl: buildMessageChannelIdentityLinkPreviewPath()\n\t\t});\n\t},\n\tconsumeMessageChannelIdentityLink: async (input) => {\n\t\tconst body = messageChannelIdentityLinkConsumeBodySchema.parse({ token: input.token });\n\t\treturn await client.requestJson({\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Message Channel identity link consume response\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"organization.message_channel.identity_link.consume\",\n\t\t\trequestContext: input.requestContext,\n\t\t\tschema: messageChannelIdentityLinkConsumeResponseSchema,\n\t\t\tsignal: input.signal,\n\t\t\ttimeoutMs: input.timeoutMs,\n\t\t\turl: buildMessageChannelIdentityLinkConsumePath()\n\t\t});\n\t},\n\tbeginLarkPlatformRegistration: async (input) => {\n\t\tconst provider = larkPlatformProviderSchema.parse(input.provider);\n\t\tconst mode = larkPlatformRegistrationBeginModeSchema.parse(input.mode ?? \"resume\");\n\t\tconst path = buildCurrentOrganizationMessageChannelRegistrationPath(provider);\n\t\treturn await client.requestJson({\n\t\t\turl: mode === \"resume\" ? path : `${path}?mode=${mode}`,\n\t\t\toperation: \"organization.message_channel.registration.begin\",\n\t\t\tmethod: \"POST\",\n\t\t\trequestContext: input.requestContext,\n\t\t\tsignal: input.signal,\n\t\t\ttimeoutMs: input.timeoutMs,\n\t\t\tschema: larkPlatformRegistrationResponseSchema,\n\t\t\tinvalidMessage: \"invalid Message Channel registration response\"\n\t\t});\n\t},\n\tpollLarkPlatformRegistration: async (input) => {\n\t\tconst provider = larkPlatformProviderSchema.parse(input.provider);\n\t\tconst attemptId = larkPlatformRegistrationAttemptIdSchema.parse(input.attemptId);\n\t\treturn await client.requestJson({\n\t\t\turl: buildCurrentOrganizationMessageChannelRegistrationPollPath(provider, attemptId),\n\t\t\toperation: \"organization.message_channel.registration.poll\",\n\t\t\tmethod: \"POST\",\n\t\t\trequestContext: input.requestContext,\n\t\t\tsignal: input.signal,\n\t\t\ttimeoutMs: input.timeoutMs,\n\t\t\tschema: larkPlatformRegistrationResponseSchema,\n\t\t\tinvalidMessage: \"invalid Message Channel registration poll response\"\n\t\t});\n\t},\n\tdisconnectLarkPlatform: async (input) => {\n\t\tconst provider = larkPlatformProviderSchema.parse(input.provider);\n\t\treturn await client.requestJson({\n\t\t\turl: buildCurrentOrganizationMessageChannelPath(provider),\n\t\t\toperation: \"organization.message_channel.disconnect\",\n\t\t\tmethod: \"DELETE\",\n\t\t\trequestContext: input.requestContext,\n\t\t\tsignal: input.signal,\n\t\t\ttimeoutMs: input.timeoutMs,\n\t\t\tschema: messageChannelConnectionListResponseSchema,\n\t\t\tinvalidMessage: \"invalid Message Channel disconnect response\"\n\t\t});\n\t},\n\twipeCurrentMemberCenterAgentMemory: async (input = {}) => await client.requestJson({\n\t\turl: buildCurrentOrganizationCenterAgentMemoryWipeSelfPath(),\n\t\toperation: \"organization.center_agent_memory.wipe_self\",\n\t\tmethod: \"POST\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: centerAgentWipeMemberMemoryResponseSchema,\n\t\tinvalidMessage: \"invalid Center Agent memory wipe response\"\n\t}),\n\treadCurrentOrganizationCenterAgentMemoryPolicy: async (input = {}) => await client.requestJson({\n\t\turl: buildCurrentOrganizationCenterAgentMemoryPolicyPath(),\n\t\toperation: \"organization.center_agent_memory.organization_policy.read\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: centerAgentOrganizationMemoryPolicyResponseSchema,\n\t\tinvalidMessage: \"invalid Center Agent organization memory policy response\"\n\t}),\n\tsetCurrentOrganizationCenterAgentMemoryPolicy: async (input) => {\n\t\tconst body = updateCenterAgentOrganizationMemoryPolicyBodySchema.parse({ organizationMemoryOptIn: input.organizationMemoryOptIn });\n\t\treturn await client.requestJson({\n\t\t\turl: buildCurrentOrganizationCenterAgentMemoryPolicyPath(),\n\t\t\toperation: \"organization.center_agent_memory.organization_policy.write\",\n\t\t\tmethod: \"PUT\",\n\t\t\trequestContext: input.requestContext,\n\t\t\tsignal: input.signal,\n\t\t\ttimeoutMs: input.timeoutMs,\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tbody: JSON.stringify(body),\n\t\t\tschema: centerAgentOrganizationMemoryPolicyResponseSchema,\n\t\t\tinvalidMessage: \"invalid Center Agent organization memory policy response\"\n\t\t});\n\t},\n\treadCurrentInformationProtection: async (input = {}) => await client.requestJson({\n\t\turl: buildCurrentOrganizationInformationProtectionPath(),\n\t\toperation: \"organization.information_protection.read\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: organizationInformationProtectionPolicyResponseSchema,\n\t\tinvalidMessage: \"invalid Organization information protection policy response\"\n\t}),\n\tsetCurrentInformationProtection: async (input) => {\n\t\tconst body = updateOrganizationInformationProtectionPolicyBodySchema.parse({ protectedInformation: input.protectedInformation });\n\t\treturn await client.requestJson({\n\t\t\turl: buildCurrentOrganizationInformationProtectionPath(),\n\t\t\toperation: \"organization.information_protection.write\",\n\t\t\tmethod: \"PUT\",\n\t\t\trequestContext: input.requestContext,\n\t\t\tsignal: input.signal,\n\t\t\ttimeoutMs: input.timeoutMs,\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tbody: JSON.stringify(body),\n\t\t\tschema: organizationInformationProtectionPolicyResponseSchema,\n\t\t\tinvalidMessage: \"invalid Organization information protection policy response\"\n\t\t});\n\t},\n\tsetBindingAuthorizationPreference: async (input) => {\n\t\tconst body = setOrganizationBindingAuthorizationPreferenceBodySchema.parse({ autoAuthorizeAgentProfileBindings: input.autoAuthorizeAgentProfileBindings });\n\t\treturn await client.requestJson({\n\t\t\turl: buildOrganizationBindingAuthorizationPreferencePath(input.organizationId),\n\t\t\toperation: \"organization.binding_authorization.preference.write\",\n\t\t\tmethod: \"PUT\",\n\t\t\trequestContext: input.requestContext,\n\t\t\tsignal: input.signal,\n\t\t\ttimeoutMs: input.timeoutMs,\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tbody: JSON.stringify(body),\n\t\t\tschema: setOrganizationBindingAuthorizationPreferenceResponseSchema,\n\t\t\tinvalidMessage: \"invalid Organization Binding authorization preference response\"\n\t\t});\n\t},\n\tsaveWakeAccessChoice: async (input) => {\n\t\tconst body = saveOrganizationWakeAccessChoiceBodySchema.parse({ enableWakeAccess: input.enableWakeAccess });\n\t\treturn await client.requestJson({\n\t\t\turl: buildOrganizationWakeAccessChoicePath(input.organizationId),\n\t\t\toperation: \"organization.wake_access_choice.write\",\n\t\t\tmethod: \"PUT\",\n\t\t\trequestContext: input.requestContext,\n\t\t\tsignal: input.signal,\n\t\t\ttimeoutMs: input.timeoutMs,\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tbody: JSON.stringify(body),\n\t\t\tschema: saveOrganizationWakeAccessChoiceResponseSchema,\n\t\t\tinvalidMessage: \"invalid Organization Wake access choice response\"\n\t\t});\n\t}\n});\nfunction toOrganizationLogoBody(bytes) {\n\tif (bytes instanceof Blob || bytes instanceof ArrayBuffer) return bytes;\n\tconst copy = new Uint8Array(bytes.byteLength);\n\tcopy.set(bytes);\n\treturn copy.buffer;\n}\n//#endregion\n//#region src/organization-documents/routes.ts\nconst DOCUMENTS_PATH = \"/v1/organizations/current/documents\";\nconst MEMBER_RESEARCH_PATH = \"/v1/organizations/current/member-research\";\nfunction buildOrganizationDocumentsPath() {\n\treturn DOCUMENTS_PATH;\n}\nfunction buildCenterAgentMemberResearchPath() {\n\treturn MEMBER_RESEARCH_PATH;\n}\nfunction buildOrganizationDocumentPath(documentId) {\n\treturn `${DOCUMENTS_PATH}/${encodeURIComponent(documentId)}`;\n}\nfunction buildOrganizationDocumentFoldersPath() {\n\treturn `${DOCUMENTS_PATH}/folders`;\n}\nfunction buildOrganizationDocumentFolderPath(folderId) {\n\treturn `${DOCUMENTS_PATH}/folders/${encodeURIComponent(folderId)}`;\n}\nfunction buildOrganizationDocumentApproveDraftPath(documentId) {\n\treturn `${buildOrganizationDocumentPath(documentId)}/approve-draft`;\n}\nfunction buildOrganizationDocumentDiscardDraftPath(documentId) {\n\treturn `${buildOrganizationDocumentPath(documentId)}/discard-draft`;\n}\n//#endregion\n//#region src/organization-documents/api.ts\nconst createOrganizationDocumentsApi = (client) => ({\n\tgetMemberResearchStatus: async (input = {}) => await client.requestJson({\n\t\t...requestOptions$4(input),\n\t\tinvalidMessage: \"invalid Center Agent member research status response\",\n\t\tmethod: \"GET\",\n\t\toperation: \"center_agent_member_research.status\",\n\t\tschema: getCenterAgentMemberResearchStatusResponseSchema,\n\t\turl: buildCenterAgentMemberResearchPath()\n\t}),\n\tstartMemberResearch: async (input) => {\n\t\tconst body = requireValidInput$3(startCenterAgentMemberResearchBodySchema, input.scope === \"member\" ? {\n\t\t\texpectedOrganizationId: input.expectedOrganizationId,\n\t\t\tscope: input.scope,\n\t\t\tsubjectUserId: input.subjectUserId\n\t\t} : {\n\t\t\texpectedOrganizationId: input.expectedOrganizationId,\n\t\t\tscope: input.scope\n\t\t}, \"Center Agent member research request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$4(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Center Agent member research response\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"center_agent_member_research.start\",\n\t\t\tschema: startCenterAgentMemberResearchResponseSchema,\n\t\t\turl: buildCenterAgentMemberResearchPath()\n\t\t});\n\t},\n\tlist: async (input = {}) => await client.requestJson({\n\t\t...requestOptions$4(input),\n\t\tinvalidMessage: \"invalid Organization documents response\",\n\t\tmethod: \"GET\",\n\t\toperation: \"organization_document.list\",\n\t\tschema: listOrganizationDocumentsResponseSchema,\n\t\turl: buildOrganizationDocumentsPath()\n\t}),\n\tget: async (input) => await client.requestJson({\n\t\t...requestOptions$4(input),\n\t\tinvalidMessage: \"invalid Organization document response\",\n\t\tmethod: \"GET\",\n\t\toperation: \"organization_document.get\",\n\t\tschema: getOrganizationDocumentResponseSchema,\n\t\turl: buildOrganizationDocumentPath(requireDocumentId(input.documentId))\n\t}),\n\tcreate: async (input) => {\n\t\tconst body = requireValidInput$3(createOrganizationDocumentBodySchema, {\n\t\t\tcontent: input.content,\n\t\t\texpectedOrganizationId: input.expectedOrganizationId,\n\t\t\tkind: input.kind,\n\t\t\t...input.folderId === void 0 ? {} : { folderId: input.folderId },\n\t\t\t...input.subjectUserId === void 0 ? {} : { subjectUserId: input.subjectUserId },\n\t\t\t...input.title === void 0 ? {} : { title: input.title }\n\t\t}, \"Organization document create request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$4(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Organization document create response\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"organization_document.create\",\n\t\t\tschema: createOrganizationDocumentResponseSchema,\n\t\t\turl: buildOrganizationDocumentsPath()\n\t\t});\n\t},\n\tupdate: async (input) => {\n\t\tconst body = requireValidInput$3(updateOrganizationDocumentBodySchema, {\n\t\t\t...input.content === void 0 ? {} : { content: input.content },\n\t\t\texpectedOrganizationId: input.expectedOrganizationId,\n\t\t\t...input.folderId === void 0 ? {} : { folderId: input.folderId },\n\t\t\t...input.title === void 0 ? {} : { title: input.title }\n\t\t}, \"Organization document update request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$4(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Organization document update response\",\n\t\t\tmethod: \"PATCH\",\n\t\t\toperation: \"organization_document.update\",\n\t\t\tschema: updateOrganizationDocumentResponseSchema,\n\t\t\turl: buildOrganizationDocumentPath(requireDocumentId(input.documentId))\n\t\t});\n\t},\n\tdelete: async (input) => await client.requestJson({\n\t\t...requestOptions$4(input),\n\t\tbody: JSON.stringify({ expectedOrganizationId: input.expectedOrganizationId }),\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tinvalidMessage: \"invalid Organization document delete response\",\n\t\tmethod: \"DELETE\",\n\t\toperation: \"organization_document.delete\",\n\t\tschema: deleteOrganizationDocumentResponseSchema,\n\t\turl: buildOrganizationDocumentPath(requireDocumentId(input.documentId))\n\t}),\n\tcreateFolder: async (input) => {\n\t\tconst body = requireValidInput$3(createOrganizationDocumentFolderBodySchema, {\n\t\t\texpectedOrganizationId: input.expectedOrganizationId,\n\t\t\tname: input.name,\n\t\t\t...input.parentFolderId === void 0 ? {} : { parentFolderId: input.parentFolderId }\n\t\t}, \"Organization document folder create request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$4(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Organization document folder create response\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"organization_document.create_folder\",\n\t\t\tschema: createOrganizationDocumentFolderResponseSchema,\n\t\t\turl: buildOrganizationDocumentFoldersPath()\n\t\t});\n\t},\n\tupdateFolder: async (input) => {\n\t\tconst body = requireValidInput$3(updateOrganizationDocumentFolderBodySchema, {\n\t\t\texpectedOrganizationId: input.expectedOrganizationId,\n\t\t\t...input.name === void 0 ? {} : { name: input.name },\n\t\t\t...input.parentFolderId === void 0 ? {} : { parentFolderId: input.parentFolderId }\n\t\t}, \"Organization document folder update request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$4(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Organization document folder update response\",\n\t\t\tmethod: \"PATCH\",\n\t\t\toperation: \"organization_document.update_folder\",\n\t\t\tschema: updateOrganizationDocumentFolderResponseSchema,\n\t\t\turl: buildOrganizationDocumentFolderPath(requireFolderId(input.folderId))\n\t\t});\n\t},\n\tdeleteFolder: async (input) => await client.requestJson({\n\t\t...requestOptions$4(input),\n\t\tbody: JSON.stringify({ expectedOrganizationId: input.expectedOrganizationId }),\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tinvalidMessage: \"invalid Organization document folder delete response\",\n\t\tmethod: \"DELETE\",\n\t\toperation: \"organization_document.delete_folder\",\n\t\tschema: deleteOrganizationDocumentFolderResponseSchema,\n\t\turl: buildOrganizationDocumentFolderPath(requireFolderId(input.folderId))\n\t}),\n\tapproveDraft: async (input) => await client.requestJson({\n\t\t...requestOptions$4(input),\n\t\tbody: JSON.stringify({\n\t\t\texpectedDraftCreatedAt: input.expectedDraftCreatedAt,\n\t\t\texpectedOrganizationId: input.expectedOrganizationId\n\t\t}),\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tinvalidMessage: \"invalid Organization document approval response\",\n\t\tmethod: \"POST\",\n\t\toperation: \"organization_document.approve_draft\",\n\t\tschema: approveOrganizationDocumentDraftResponseSchema,\n\t\turl: buildOrganizationDocumentApproveDraftPath(requireDocumentId(input.documentId))\n\t}),\n\tdiscardDraft: async (input) => await client.requestJson({\n\t\t...requestOptions$4(input),\n\t\tbody: JSON.stringify({\n\t\t\texpectedDraftCreatedAt: input.expectedDraftCreatedAt,\n\t\t\texpectedOrganizationId: input.expectedOrganizationId\n\t\t}),\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tinvalidMessage: \"invalid Organization document discard response\",\n\t\tmethod: \"POST\",\n\t\toperation: \"organization_document.discard_draft\",\n\t\tschema: discardOrganizationDocumentDraftResponseSchema,\n\t\turl: buildOrganizationDocumentDiscardDraftPath(requireDocumentId(input.documentId))\n\t})\n});\nfunction requireDocumentId(value) {\n\treturn requireValidInput$3(organizationDocumentRouteParamsSchema, { documentId: value }, \"Organization document identifier is invalid.\").documentId;\n}\nfunction requireFolderId(value) {\n\treturn requireValidInput$3(organizationDocumentFolderRouteParamsSchema, { folderId: value }, \"Organization document folder identifier is invalid.\").folderId;\n}\nfunction requestOptions$4(input) {\n\treturn {\n\t\t...input.requestContext === void 0 ? {} : { requestContext: input.requestContext },\n\t\t...input.signal === void 0 ? {} : { signal: input.signal },\n\t\t...input.timeoutMs === void 0 ? {} : { timeoutMs: input.timeoutMs }\n\t};\n}\nfunction requireValidInput$3(schema, value, message) {\n\tconst parsed = schema.safeParse(value);\n\tif (!parsed.success) throw new Error(`${message} ${parsed.error.issues[0]?.message ?? \"Invalid input.\"}`);\n\treturn parsed.data;\n}\n//#endregion\n//#region src/organization-skills/routes.ts\nconst SKILLS_PATH = \"/v1/organizations/current/skills\";\nfunction buildOrganizationSkillsPath() {\n\treturn SKILLS_PATH;\n}\nfunction buildOrganizationSkillPath(skillId) {\n\treturn `${SKILLS_PATH}/${encodeURIComponent(skillId)}`;\n}\nfunction buildOrganizationSkillGitHubImportPath() {\n\treturn `${SKILLS_PATH}/import-github`;\n}\nfunction buildOrganizationSkillGitHubPreviewPath() {\n\treturn `${SKILLS_PATH}/preview-github`;\n}\nfunction buildOrganizationSkillEnabledPath(skillId) {\n\treturn `${buildOrganizationSkillPath(skillId)}/enabled`;\n}\nfunction buildOrganizationSkillMaintainersPath(skillId) {\n\treturn `${buildOrganizationSkillPath(skillId)}/maintainers`;\n}\n//#endregion\n//#region src/organization-skills/api.ts\nconst createOrganizationSkillsApi = (client) => ({\n\tlist: async (input = {}) => await client.requestJson({\n\t\t...requestOptions$3(input),\n\t\tinvalidMessage: \"invalid Organization Skills response\",\n\t\tmethod: \"GET\",\n\t\toperation: \"organization_skill.list\",\n\t\tschema: listOrganizationSkillsResponseSchema,\n\t\turl: buildOrganizationSkillsPath()\n\t}),\n\tget: async (input) => await client.requestJson({\n\t\t...requestOptions$3(input),\n\t\tinvalidMessage: \"invalid Organization Skill response\",\n\t\tmethod: \"GET\",\n\t\toperation: \"organization_skill.get\",\n\t\tschema: getOrganizationSkillResponseSchema,\n\t\turl: buildOrganizationSkillPath(requireSkillId(input.skillId))\n\t}),\n\tcreate: async (input) => {\n\t\tconst body = requireValidInput$2(createOrganizationSkillBodySchema, {\n\t\t\tdescription: input.description,\n\t\t\texpectedOrganizationId: input.expectedOrganizationId,\n\t\t\tinstructions: input.instructions,\n\t\t\tname: input.name\n\t\t}, \"Organization Skill create request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$3(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Organization Skill create response\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"organization_skill.create\",\n\t\t\tschema: createOrganizationSkillResponseSchema,\n\t\t\turl: buildOrganizationSkillsPath()\n\t\t});\n\t},\n\timportFromGitHub: async (input) => {\n\t\tconst body = requireValidInput$2(importOrganizationSkillFromGitHubBodySchema, {\n\t\t\t...input.expectedCommitSha === void 0 ? {} : { expectedCommitSha: input.expectedCommitSha },\n\t\t\texpectedOrganizationId: input.expectedOrganizationId,\n\t\t\turl: input.url\n\t\t}, \"Organization Skill GitHub import request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$3(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Organization Skill GitHub import response\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"organization_skill.import_github\",\n\t\t\tschema: importOrganizationSkillFromGitHubResponseSchema,\n\t\t\turl: buildOrganizationSkillGitHubImportPath()\n\t\t});\n\t},\n\tpreviewFromGitHub: async (input) => {\n\t\tconst body = requireValidInput$2(previewOrganizationSkillFromGitHubBodySchema, {\n\t\t\texpectedOrganizationId: input.expectedOrganizationId,\n\t\t\turl: input.url\n\t\t}, \"Organization Skill GitHub preview request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$3(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Organization Skill GitHub preview response\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"organization_skill.preview_github\",\n\t\t\tschema: previewOrganizationSkillFromGitHubResponseSchema,\n\t\t\turl: buildOrganizationSkillGitHubPreviewPath()\n\t\t});\n\t},\n\tupdate: async (input) => {\n\t\tconst body = requireValidInput$2(updateOrganizationSkillBodySchema, {\n\t\t\tbundle: input.bundle,\n\t\t\texpectedActiveReleaseId: input.expectedActiveReleaseId,\n\t\t\texpectedOrganizationId: input.expectedOrganizationId,\n\t\t\texpectedVersion: input.expectedVersion\n\t\t}, \"Organization Skill update request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$3(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Organization Skill update response\",\n\t\t\tmethod: \"PATCH\",\n\t\t\toperation: \"organization_skill.update\",\n\t\t\tschema: updateOrganizationSkillResponseSchema,\n\t\t\turl: buildOrganizationSkillPath(requireSkillId(input.skillId))\n\t\t});\n\t},\n\tsetEnabled: async (input) => {\n\t\tconst skillId = requireSkillId(input.skillId);\n\t\tconst body = requireValidInput$2(setOrganizationSkillEnabledBodySchema, {\n\t\t\tenabled: input.enabled,\n\t\t\texpectedOrganizationId: input.expectedOrganizationId,\n\t\t\texpectedVersion: input.expectedVersion\n\t\t}, \"Organization Skill enabled request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$3(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Organization Skill enabled response\",\n\t\t\tmethod: \"PATCH\",\n\t\t\toperation: \"organization_skill.set_enabled\",\n\t\t\tschema: setOrganizationSkillEnabledResponseSchema,\n\t\t\turl: buildOrganizationSkillEnabledPath(skillId)\n\t\t});\n\t},\n\tsetMaintainers: async (input) => {\n\t\tconst skillId = requireSkillId(input.skillId);\n\t\tconst body = requireValidInput$2(setOrganizationSkillMaintainersBodySchema, {\n\t\t\texpectedOrganizationId: input.expectedOrganizationId,\n\t\t\texpectedVersion: input.expectedVersion,\n\t\t\tmaintainerUserIds: input.maintainerUserIds\n\t\t}, \"Organization Skill maintainers request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$3(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Organization Skill maintainers response\",\n\t\t\tmethod: \"PUT\",\n\t\t\toperation: \"organization_skill.set_maintainers\",\n\t\t\tschema: setOrganizationSkillMaintainersResponseSchema,\n\t\t\turl: buildOrganizationSkillMaintainersPath(skillId)\n\t\t});\n\t},\n\tdelete: async (input) => {\n\t\tconst body = requireValidInput$2(deleteOrganizationSkillBodySchema, {\n\t\t\texpectedOrganizationId: input.expectedOrganizationId,\n\t\t\texpectedVersion: input.expectedVersion\n\t\t}, \"Organization Skill delete request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$3(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Organization Skill delete response\",\n\t\t\tmethod: \"DELETE\",\n\t\t\toperation: \"organization_skill.delete\",\n\t\t\tschema: deleteOrganizationSkillResponseSchema,\n\t\t\turl: buildOrganizationSkillPath(requireSkillId(input.skillId))\n\t\t});\n\t}\n});\nfunction requireSkillId(value) {\n\treturn requireValidInput$2(organizationSkillRouteParamsSchema, { skillId: value }, \"Organization Skill identifier is invalid.\").skillId;\n}\nfunction requestOptions$3(input) {\n\treturn {\n\t\t...input.requestContext === void 0 ? {} : { requestContext: input.requestContext },\n\t\t...input.signal === void 0 ? {} : { signal: input.signal },\n\t\t...input.timeoutMs === void 0 ? {} : { timeoutMs: input.timeoutMs }\n\t};\n}\nfunction requireValidInput$2(schema, value, message) {\n\tconst parsed = schema.safeParse(value);\n\tif (!parsed.success) throw new Error(`${message} ${parsed.error.issues[0]?.message ?? \"Invalid input.\"}`);\n\treturn parsed.data;\n}\n//#endregion\n//#region src/organization-usage/routes.ts\nconst ORGANIZATION_USAGE_OVERVIEW_PATH = \"/v1/organizations/current/usage/overview\";\nfunction buildOrganizationUsageOverviewPath() {\n\treturn ORGANIZATION_USAGE_OVERVIEW_PATH;\n}\n//#endregion\n//#region src/organization-usage/api.ts\nconst createOrganizationUsageApi = (client) => ({ readOverview: async (input = {}) => await client.requestJson({\n\t...requestOptions$2(input),\n\tinvalidMessage: \"invalid Organization Usage overview response\",\n\tmethod: \"GET\",\n\toperation: \"organization_usage.overview.read\",\n\tschema: organizationUsageOverviewResponseSchema,\n\turl: buildOrganizationUsageOverviewPath()\n}) });\nfunction requestOptions$2(input) {\n\treturn {\n\t\t...input.requestContext === void 0 ? {} : { requestContext: input.requestContext },\n\t\t...input.signal === void 0 ? {} : { signal: input.signal },\n\t\t...input.timeoutMs === void 0 ? {} : { timeoutMs: input.timeoutMs }\n\t};\n}\n//#endregion\n//#region src/prepare-readiness/routes.ts\nfunction buildPrepareReadinessRoute(deviceId) {\n\treturn `/v1/devices/${encodeURIComponent(deviceId)}/prepare-readiness`;\n}\n//#endregion\n//#region src/prepare-readiness/api.ts\nfunction requireValidPrepareReadinessQuery(input) {\n\tconst parsed = getPrepareReadinessQuerySchema.safeParse({\n\t\tagentControllerRefs: input.agentControllerRefs,\n\t\tlane: input.lane,\n\t\topenMeldServiceRuntimeId: input.openMeldServiceRuntimeId\n\t});\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Prepare readiness read query.\");\n\treturn parsed.data;\n}\nfunction buildPrepareReadinessUrl(input) {\n\tconst query = requireValidPrepareReadinessQuery(input);\n\tconst searchParams = new URLSearchParams();\n\tsearchParams.set(\"lane\", query.lane);\n\tif (query.openMeldServiceRuntimeId) searchParams.set(\"openMeldServiceRuntimeId\", query.openMeldServiceRuntimeId);\n\tfor (const agentControllerRef of query.agentControllerRefs ?? []) searchParams.append(\"agentControllerRef\", agentControllerRef);\n\treturn `${buildPrepareReadinessRoute(input.deviceId)}?${searchParams.toString()}`;\n}\nconst createPrepareReadinessApi = (client) => {\n\treturn { getReadiness: async (input) => await client.requestJson({\n\t\turl: buildPrepareReadinessUrl(input),\n\t\toperation: \"prepare_readiness.read\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tschema: getPrepareReadinessResponseSchema,\n\t\tinvalidMessage: \"Invalid Prepare readiness response.\"\n\t}) };\n};\n//#endregion\n//#region src/profile-space-history/api.ts\nconst createProfileSpaceHistoryApi = (client) => {\n\treturn {\n\t\tlistProfileSpaceHistory: async (input) => {\n\t\t\treturn (await client.requestJson({\n\t\t\t\turl: buildProfileSpaceHistoryListPath(input),\n\t\t\t\toperation: \"profile_space_history.list\",\n\t\t\t\tmethod: \"GET\",\n\t\t\t\trequestContext: input.requestContext,\n\t\t\t\ttimeoutMs: input.timeoutMs,\n\t\t\t\tschema: listProfileSpaceHistoryResponseSchema,\n\t\t\t\tinvalidMessage: \"invalid profile-space-history list response\"\n\t\t\t})).items;\n\t\t},\n\t\tupsertProfileSpaceHistory: async (input) => await client.requestJson({\n\t\t\turl: buildProfileSpaceHistoryUpsertPath(input),\n\t\t\toperation: \"profile_space_history.upsert\",\n\t\t\tmethod: \"PATCH\",\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tbody: JSON.stringify(input.body),\n\t\t\trequestContext: input.requestContext,\n\t\t\ttimeoutMs: input.timeoutMs,\n\t\t\tschema: upsertProfileSpaceHistoryResponseSchema,\n\t\t\tinvalidMessage: \"invalid profile-space-history upsert response\"\n\t\t}),\n\t\tupdateProfileSpaceHistoryStatus: async (input) => await client.requestJson({\n\t\t\turl: buildProfileSpaceHistoryStatusPath(input),\n\t\t\toperation: \"profile_space_history.status.update\",\n\t\t\tmethod: \"PATCH\",\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tbody: JSON.stringify(input.body),\n\t\t\trequestContext: input.requestContext,\n\t\t\ttimeoutMs: input.timeoutMs,\n\t\t\tschema: patchProfileSpaceHistoryStatusResponseSchema,\n\t\t\tinvalidMessage: \"invalid profile-space-history status response\"\n\t\t})\n\t};\n};\n//#endregion\n//#region src/profiles/routes.ts\nfunction buildProfileRoute(profileId) {\n\treturn `/v1/profiles/${encodeURIComponent(profileId)}`;\n}\nfunction buildAgentProfileDefaultProjectRoute(profileId) {\n\treturn `/v1/agent-profiles/${encodeURIComponent(profileId)}/default-project`;\n}\n//#endregion\n//#region src/profiles/api.ts\nconst createProfilesApi = (client) => ({\n\trename: async (input) => {\n\t\tconst request = requireValidRenameProfileInput(input);\n\t\treturn await client.requestJson({\n\t\t\tbody: JSON.stringify({ profileName: request.profileName }),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"Invalid Profile rename response.\",\n\t\t\tmethod: \"PATCH\",\n\t\t\toperation: \"profile.rename\",\n\t\t\trequestContext: request.requestContext,\n\t\t\tschema: updateProfileResponseSchema,\n\t\t\turl: buildProfileRoute(request.profileId)\n\t\t});\n\t},\n\tupdateDefaultProject: async (input) => {\n\t\tconst request = requireValidUpdateDefaultProjectInput(input);\n\t\tconst parsedBody = updateAgentProfileDefaultProjectBodySchema.safeParse({\n\t\t\tdefaultProjectId: request.defaultProjectId,\n\t\t\texpectedOrganizationId: request.expectedOrganizationId\n\t\t});\n\t\tif (!parsedBody.success) throw new Error(`Invalid Agent Profile Default Project request: ${parsedBody.error.message}`);\n\t\treturn await client.requestJson({\n\t\t\tbody: JSON.stringify(parsedBody.data),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"Invalid Agent Profile default Project response.\",\n\t\t\tmethod: \"PATCH\",\n\t\t\toperation: \"profile.updateDefaultProject\",\n\t\t\trequestContext: request.requestContext,\n\t\t\tschema: updateAgentProfileDefaultProjectResponseSchema,\n\t\t\turl: buildAgentProfileDefaultProjectRoute(request.profileId)\n\t\t});\n\t}\n});\nfunction requireValidRenameProfileInput(input) {\n\treturn {\n\t\tprofileId: normalizeRequiredText(input.profileId, \"profileId\"),\n\t\tprofileName: normalizeRequiredText(input.profileName, \"profileName\"),\n\t\t...input.requestContext ? { requestContext: input.requestContext } : {}\n\t};\n}\nfunction requireValidUpdateDefaultProjectInput(input) {\n\tconst profileId = normalizeRequiredText(input.profileId, \"profileId\");\n\tconst expectedOrganizationId = normalizeRequiredText(input.expectedOrganizationId, \"expectedOrganizationId\");\n\treturn {\n\t\tdefaultProjectId: input.defaultProjectId === null ? null : normalizeRequiredText(input.defaultProjectId, \"defaultProjectId\"),\n\t\texpectedOrganizationId,\n\t\tprofileId,\n\t\t...input.requestContext ? { requestContext: input.requestContext } : {}\n\t};\n}\nfunction normalizeRequiredText(value, fieldName) {\n\tconst normalized = String(value ?? \"\").trim();\n\tif (normalized.length === 0) throw new Error(`${fieldName} is required`);\n\treturn normalized;\n}\n//#endregion\n//#region src/projects/routes.ts\nconst PROJECTS_PATH = \"/v1/organizations/current/projects\";\nfunction buildProjectsPath() {\n\treturn PROJECTS_PATH;\n}\nfunction buildProjectPath(projectId) {\n\treturn `${PROJECTS_PATH}/${encodeURIComponent(projectId)}`;\n}\n//#endregion\n//#region src/projects/api.ts\nconst createProjectsApi = (client) => ({\n\tlist: async (input = {}) => await client.requestJson({\n\t\t...requestOptions$1(input),\n\t\tinvalidMessage: \"invalid Project list response\",\n\t\tmethod: \"GET\",\n\t\toperation: \"project.list\",\n\t\tschema: listProjectsResponseSchema,\n\t\turl: buildProjectsPath()\n\t}),\n\tcreate: async (input) => {\n\t\tconst body = requireValidInput$1(createProjectBodySchema, {\n\t\t\texpectedOrganizationId: input.expectedOrganizationId,\n\t\t\tname: input.name,\n\t\t\t...input.repositoryFingerprint === void 0 ? {} : { repositoryFingerprint: input.repositoryFingerprint },\n\t\t\t...input.repositoryUrl === void 0 ? {} : { repositoryUrl: input.repositoryUrl },\n\t\t\t...input.slug === void 0 ? {} : { slug: input.slug }\n\t\t}, \"Project create request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$1(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Project create response\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"project.create\",\n\t\t\tschema: createProjectResponseSchema,\n\t\t\turl: buildProjectsPath()\n\t\t});\n\t},\n\tupdate: async (input) => {\n\t\tconst projectId = requireProjectId(input.projectId);\n\t\tconst body = requireValidInput$1(updateProjectBodySchema, {\n\t\t\texpectedOrganizationId: input.expectedOrganizationId,\n\t\t\t...input.name === void 0 ? {} : { name: input.name },\n\t\t\t...input.repositoryFingerprint === void 0 ? {} : { repositoryFingerprint: input.repositoryFingerprint },\n\t\t\t...input.repositoryUrl === void 0 ? {} : { repositoryUrl: input.repositoryUrl },\n\t\t\t...input.slug === void 0 ? {} : { slug: input.slug }\n\t\t}, \"Project update request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$1(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Project update response\",\n\t\t\tmethod: \"PATCH\",\n\t\t\toperation: \"project.update\",\n\t\t\tschema: updateProjectResponseSchema,\n\t\t\turl: buildProjectPath(projectId)\n\t\t});\n\t},\n\tarchive: async (input) => {\n\t\tconst projectId = requireProjectId(input.projectId);\n\t\tconst body = requireValidInput$1(archiveProjectBodySchema, { expectedOrganizationId: input.expectedOrganizationId }, \"Project archive request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions$1(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Project archive response\",\n\t\t\tmethod: \"DELETE\",\n\t\t\toperation: \"project.archive\",\n\t\t\tschema: archiveProjectResponseSchema,\n\t\t\turl: buildProjectPath(projectId)\n\t\t});\n\t}\n});\nfunction requireProjectId(value) {\n\treturn requireValidInput$1(projectRouteParamsSchema, { projectId: value }, \"Project identifier is invalid.\").projectId;\n}\nfunction requestOptions$1(input) {\n\treturn {\n\t\t...input.requestContext === void 0 ? {} : { requestContext: input.requestContext },\n\t\t...input.signal === void 0 ? {} : { signal: input.signal },\n\t\t...input.timeoutMs === void 0 ? {} : { timeoutMs: input.timeoutMs }\n\t};\n}\nfunction requireValidInput$1(schema, value, message) {\n\tconst parsed = schema.safeParse(value);\n\tif (!parsed.success) throw new Error(`${message} ${parsed.error.issues[0]?.message ?? \"Invalid input.\"}`);\n\treturn parsed.data;\n}\n//#endregion\n//#region src/public-space-urls.ts\nfunction publicSpaceUrls(baseUrl) {\n\tconst normalizedBaseUrl = normalizeApiBaseUrl(baseUrl);\n\treturn {\n\t\tstatus: (spaceId) => buildPublicSpaceUrl(normalizedBaseUrl, spaceId, \"status\"),\n\t\tmembers: (spaceId) => buildPublicSpaceUrl(normalizedBaseUrl, spaceId, \"members\"),\n\t\tsignals: (spaceId) => buildPublicSpaceUrl(normalizedBaseUrl, spaceId, \"signals\")\n\t};\n}\nfunction buildPublicSpaceUrl(baseUrl, spaceId, segment) {\n\tconst url = new URL(baseUrl);\n\turl.pathname = `/v1/spaces/${encodeURIComponent(spaceId)}/${segment}`;\n\treturn url.toString();\n}\n//#endregion\n//#region src/routines/routes.ts\nconst ROUTINES_PATH = \"/v1/organizations/current/routines\";\nconst ROUTINE_TARGET_SPACES_PATH = \"/v1/organizations/current/routine-target-spaces\";\nfunction buildRoutinesPath(query = {}) {\n\treturn appendRoutineContract(ROUTINES_PATH, query);\n}\nfunction buildRoutineTargetSpacesPath() {\n\treturn ROUTINE_TARGET_SPACES_PATH;\n}\nfunction buildRoutinePath(routineId, query = {}) {\n\treturn appendRoutineContract(`${ROUTINES_PATH}/${encodeURIComponent(routineId)}`, query);\n}\nfunction buildRoutinePausePath(routineId, query = {}) {\n\treturn appendRoutineContract(`${ROUTINES_PATH}/${encodeURIComponent(routineId)}/pause`, query);\n}\nfunction buildRoutineResumePath(routineId, query = {}) {\n\treturn appendRoutineContract(`${ROUTINES_PATH}/${encodeURIComponent(routineId)}/resume`, query);\n}\nfunction buildRoutineRunsPath(routineId, query = {}) {\n\tconst search = new URLSearchParams();\n\tif (query.beforeScheduledFor !== void 0) search.set(\"beforeScheduledFor\", String(query.beforeScheduledFor));\n\tif (query.limit !== void 0) search.set(\"limit\", String(query.limit));\n\tif (query.contract !== void 0) search.set(\"contract\", query.contract);\n\tconst encodedQuery = search.toString();\n\tconst path = `${buildRoutinePath(routineId)}/runs`;\n\treturn encodedQuery.length > 0 ? `${path}?${encodedQuery}` : path;\n}\nfunction appendRoutineContract(path, query) {\n\treturn query.contract ? `${path}?contract=${query.contract}` : path;\n}\n//#endregion\n//#region src/routines/api.ts\nconst PRACTICAL_ROUTINE_CONTRACT_QUERY = { contract: CENTER_AGENT_ROUTINE_PRACTICAL_CONTRACT };\nconst MANAGEMENT_ROUTINE_CONTRACT_QUERY = { contract: CENTER_AGENT_ROUTINE_MANAGEMENT_CONTRACT };\nconst createRoutinesApi = (client) => ({\n\tlistRoutines: async (input = {}) => await client.requestJson({\n\t\t...requestOptions(input),\n\t\tinvalidMessage: \"invalid Routine list response\",\n\t\tmethod: \"GET\",\n\t\toperation: \"routine.list\",\n\t\tschema: listCenterAgentRoutinesResponseSchema,\n\t\turl: buildRoutinesPath(PRACTICAL_ROUTINE_CONTRACT_QUERY)\n\t}),\n\tlistRoutineManagement: async (input = {}) => await client.requestJson({\n\t\t...requestOptions(input),\n\t\tinvalidMessage: \"invalid Routine management response\",\n\t\tmethod: \"GET\",\n\t\toperation: \"routine.management.list\",\n\t\tschema: listCenterAgentRoutinesManagementResponseSchema,\n\t\turl: buildRoutinesPath(MANAGEMENT_ROUTINE_CONTRACT_QUERY)\n\t}),\n\tlistRoutineTargetSpaces: async (input = {}) => await client.requestJson({\n\t\t...requestOptions(input),\n\t\tinvalidMessage: \"invalid Routine target Space list response\",\n\t\tmethod: \"GET\",\n\t\toperation: \"routine.target_spaces.list\",\n\t\tschema: listCenterAgentRoutineTargetSpacesResponseSchema,\n\t\turl: buildRoutineTargetSpacesPath()\n\t}),\n\tcreateRoutine: async (input) => {\n\t\tconst body = requireValidInput(createCenterAgentRoutineBodySchema, {\n\t\t\tauthorizedActions: input.authorizedActions,\n\t\t\tcronExpression: input.cronExpression,\n\t\t\tdestinationKind: input.destinationKind,\n\t\t\texternalActionPolicy: input.externalActionPolicy,\n\t\t\tinstructions: input.instructions,\n\t\t\tname: input.name,\n\t\t\trunAtMs: input.runAtMs,\n\t\t\tscheduleKind: input.scheduleKind,\n\t\t\tslackChannelId: input.slackChannelId,\n\t\t\tslackConversationId: input.slackConversationId,\n\t\t\tslackTeamId: input.slackTeamId,\n\t\t\tslackThreadLabel: input.slackThreadLabel,\n\t\t\tslackThreadTs: input.slackThreadTs,\n\t\t\ttargetSpaceId: input.targetSpaceId,\n\t\t\ttimezone: input.timezone\n\t\t}, \"Routine create request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Routine create response\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"routine.create\",\n\t\t\tschema: createCenterAgentRoutineResponseSchema,\n\t\t\turl: buildRoutinesPath(PRACTICAL_ROUTINE_CONTRACT_QUERY)\n\t\t});\n\t},\n\tupdateRoutine: async (input) => {\n\t\tconst routineId = requireRoutineId(input.routineId);\n\t\tconst body = requireValidInput(updateCenterAgentRoutineBodySchema, omitUndefinedValues({\n\t\t\tauthorizedActions: input.authorizedActions,\n\t\t\tcronExpression: input.cronExpression,\n\t\t\tdestinationKind: input.destinationKind,\n\t\t\texternalActionPolicy: input.externalActionPolicy,\n\t\t\tinstructions: input.instructions,\n\t\t\tname: input.name,\n\t\t\trunAtMs: input.runAtMs,\n\t\t\tscheduleKind: input.scheduleKind,\n\t\t\tslackChannelId: input.slackChannelId,\n\t\t\tslackConversationId: input.slackConversationId,\n\t\t\tslackTeamId: input.slackTeamId,\n\t\t\tslackThreadLabel: input.slackThreadLabel,\n\t\t\tslackThreadTs: input.slackThreadTs,\n\t\t\ttargetSpaceId: input.targetSpaceId,\n\t\t\ttimezone: input.timezone\n\t\t}), \"Routine update request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Routine update response\",\n\t\t\tmethod: \"PATCH\",\n\t\t\toperation: \"routine.update\",\n\t\t\tschema: updateCenterAgentRoutineResponseSchema,\n\t\t\turl: buildRoutinePath(routineId, PRACTICAL_ROUTINE_CONTRACT_QUERY)\n\t\t});\n\t},\n\tpauseRoutine: async (input) => {\n\t\tconst routineId = requireRoutineId(input.routineId);\n\t\tconst body = requireValidInput(pauseCenterAgentRoutineBodySchema, {}, \"Routine pause request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Routine pause response\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"routine.pause\",\n\t\t\tschema: pauseCenterAgentRoutineResponseSchema,\n\t\t\turl: buildRoutinePausePath(routineId, PRACTICAL_ROUTINE_CONTRACT_QUERY)\n\t\t});\n\t},\n\tresumeRoutine: async (input) => {\n\t\tconst routineId = requireRoutineId(input.routineId);\n\t\tconst body = requireValidInput(resumeCenterAgentRoutineBodySchema, {}, \"Routine resume request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Routine resume response\",\n\t\t\tmethod: \"POST\",\n\t\t\toperation: \"routine.resume\",\n\t\t\tschema: resumeCenterAgentRoutineResponseSchema,\n\t\t\turl: buildRoutineResumePath(routineId, PRACTICAL_ROUTINE_CONTRACT_QUERY)\n\t\t});\n\t},\n\tdeleteRoutine: async (input) => {\n\t\tconst routineId = requireRoutineId(input.routineId);\n\t\tconst body = requireValidInput(deleteCenterAgentRoutineBodySchema, {}, \"Routine delete request is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions(input),\n\t\t\tbody: JSON.stringify(body),\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tinvalidMessage: \"invalid Routine delete response\",\n\t\t\tmethod: \"DELETE\",\n\t\t\toperation: \"routine.delete\",\n\t\t\tschema: deleteCenterAgentRoutineResponseSchema,\n\t\t\turl: buildRoutinePath(routineId, PRACTICAL_ROUTINE_CONTRACT_QUERY)\n\t\t});\n\t},\n\tlistRoutineRuns: async (input) => {\n\t\tconst routineId = requireRoutineId(input.routineId);\n\t\tconst query = requireValidInput(listCenterAgentRoutineRunsQuerySchema, {\n\t\t\t...input.beforeScheduledFor === void 0 ? {} : { beforeScheduledFor: String(input.beforeScheduledFor) },\n\t\t\t...input.limit === void 0 ? {} : { limit: String(input.limit) },\n\t\t\tcontract: CENTER_AGENT_ROUTINE_PRACTICAL_CONTRACT\n\t\t}, \"Routine run query is invalid.\");\n\t\treturn await client.requestJson({\n\t\t\t...requestOptions(input),\n\t\t\tinvalidMessage: \"invalid Routine run list response\",\n\t\t\tmethod: \"GET\",\n\t\t\toperation: \"routine.runs.list\",\n\t\t\tschema: listCenterAgentRoutineRunsResponseSchema,\n\t\t\turl: buildRoutineRunsPath(routineId, query)\n\t\t});\n\t}\n});\nfunction omitUndefinedValues(input) {\n\treturn Object.fromEntries(Object.entries(input).filter((entry) => entry[1] !== void 0));\n}\nfunction requireRoutineId(value) {\n\treturn requireValidInput(centerAgentRoutineRouteParamsSchema, { routineId: value }, \"Routine identifier is invalid.\").routineId;\n}\nfunction requestOptions(input) {\n\treturn {\n\t\t...input.requestContext === void 0 ? {} : { requestContext: input.requestContext },\n\t\t...input.signal === void 0 ? {} : { signal: input.signal },\n\t\t...input.timeoutMs === void 0 ? {} : { timeoutMs: input.timeoutMs }\n\t};\n}\nfunction requireValidInput(schema, value, message) {\n\tconst parsed = schema.safeParse(value);\n\tif (!parsed.success) throw new TypeError(`${message} ${parsed.error.issues[0]?.message ?? \"Invalid value.\"}`);\n\treturn parsed.data;\n}\n//#endregion\n//#region src/runtime-reporting/routes.ts\nconst buildRuntimeRegistrationRoute = (deviceId) => `/v1/devices/${encodeURIComponent(deviceId)}/runtime-registration`;\nconst buildAgentActivityEventsRoute = (deviceId) => `/v1/devices/${encodeURIComponent(deviceId)}/agent-activity-events`;\nconst buildAgentControllerTaskLifecycleEventsRoute = (deviceId) => `/v1/devices/${encodeURIComponent(deviceId)}/agent-controller-task-lifecycle-events`;\nconst buildRuntimeAgentControllerReportsRoute = (deviceId) => `/v1/devices/${encodeURIComponent(deviceId)}/runtime-agent-controller-reports/current`;\nconst buildRuntimeProviderConversationProofsRoute = (deviceId) => `/v1/devices/${encodeURIComponent(deviceId)}/runtime-provider-conversation-proofs/current`;\n//#endregion\n//#region src/runtime-reporting/api.ts\nfunction requireValidAgentActivityEventsBody(input) {\n\tconst events = input.events.map((event) => {\n\t\tconst parsed = agentActivityEventSchema.safeParse(event);\n\t\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Agent Activity event.\");\n\t\treturn parsed.data;\n\t});\n\tconst parsed = submitAgentActivityEventsBodySchema.safeParse({\n\t\tevents,\n\t\tlane: input.lane,\n\t\topenMeldServiceRuntimeId: input.openMeldServiceRuntimeId\n\t});\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Agent Activity event submission.\");\n\treturn parsed.data;\n}\nfunction requireValidRuntimeRegistrationBody(input) {\n\tconst parsed = submitRuntimeRegistrationBodySchema.safeParse({ lane: input.lane });\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Runtime registration payload.\");\n\treturn parsed.data;\n}\nfunction requireValidAgentControllerTaskLifecycleEventsBody(input) {\n\tconst parsed = submitAgentControllerTaskLifecycleEventsBodySchema.safeParse({\n\t\tevents: input.events,\n\t\tlane: input.lane,\n\t\topenMeldServiceRuntimeId: input.openMeldServiceRuntimeId\n\t});\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Agent Controller task lifecycle event payload.\");\n\treturn parsed.data;\n}\nfunction requireValidRuntimeAgentControllerReportsBody(input) {\n\tconst parsed = submitRuntimeAgentControllerReportsBodySchema.safeParse({\n\t\tlane: input.lane,\n\t\treports: input.reports,\n\t\topenMeldServiceRuntimeId: input.openMeldServiceRuntimeId\n\t});\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Runtime Agent Controller Report payload.\");\n\treturn parsed.data;\n}\nfunction requireValidRuntimeProviderConversationProofsBody(input) {\n\tconst parsed = submitRuntimeProviderConversationProofsBodySchema.safeParse({\n\t\tlane: input.lane,\n\t\tproofs: input.proofs,\n\t\topenMeldServiceRuntimeId: input.openMeldServiceRuntimeId\n\t});\n\tif (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? \"Invalid Provider Conversation Proof payload.\");\n\treturn parsed.data;\n}\nconst createRuntimeReportingApi = (client) => {\n\treturn {\n\t\tsubmitAgentActivityEvents: async (input) => {\n\t\t\tconst body = requireValidAgentActivityEventsBody(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tinvalidMessage: \"Invalid Agent Activity event response.\",\n\t\t\t\tmethod: \"PUT\",\n\t\t\t\toperation: \"agent_activity.events.submit\",\n\t\t\t\tschema: submitAgentActivityEventsResponseSchema,\n\t\t\t\turl: buildAgentActivityEventsRoute(input.deviceId)\n\t\t\t});\n\t\t},\n\t\tsubmitAgentControllerTaskLifecycleEvents: async (input) => {\n\t\t\tconst body = requireValidAgentControllerTaskLifecycleEventsBody(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tinvalidMessage: \"Invalid Agent Controller task lifecycle event response.\",\n\t\t\t\tmethod: \"PUT\",\n\t\t\t\toperation: \"agent_controller_task.lifecycle_events.submit\",\n\t\t\t\tschema: submitAgentControllerTaskLifecycleEventsResponseSchema,\n\t\t\t\turl: buildAgentControllerTaskLifecycleEventsRoute(input.deviceId)\n\t\t\t});\n\t\t},\n\t\tsubmitRegistration: async (input) => {\n\t\t\tconst body = requireValidRuntimeRegistrationBody(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tinvalidMessage: \"Invalid Runtime registration response.\",\n\t\t\t\tmethod: \"PUT\",\n\t\t\t\toperation: \"runtime.registration.submit\",\n\t\t\t\tschema: submitRuntimeRegistrationResponseSchema,\n\t\t\t\turl: buildRuntimeRegistrationRoute(input.deviceId)\n\t\t\t});\n\t\t},\n\t\tsubmitAgentControllerReports: async (input) => {\n\t\t\tconst body = requireValidRuntimeAgentControllerReportsBody(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tinvalidMessage: \"Invalid Runtime Agent Controller Report response.\",\n\t\t\t\tmethod: \"PUT\",\n\t\t\t\toperation: \"runtime.agent_controller_reports.submit\",\n\t\t\t\tschema: submitRuntimeAgentControllerReportsResponseSchema,\n\t\t\t\turl: buildRuntimeAgentControllerReportsRoute(input.deviceId)\n\t\t\t});\n\t\t},\n\t\tsubmitProviderConversationProofs: async (input) => {\n\t\t\tconst body = requireValidRuntimeProviderConversationProofsBody(input);\n\t\t\treturn await client.requestJson({\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\t\tinvalidMessage: \"Invalid Provider Conversation Proof response.\",\n\t\t\t\tmethod: \"PUT\",\n\t\t\t\toperation: \"runtime.provider_conversation_proofs.submit\",\n\t\t\t\tschema: submitRuntimeProviderConversationProofsResponseSchema,\n\t\t\t\turl: buildRuntimeProviderConversationProofsRoute(input.deviceId)\n\t\t\t});\n\t\t}\n\t};\n};\n//#endregion\n//#region src/space/routes.ts\nfunction buildCreateSpacePath() {\n\treturn \"/v1/spaces\";\n}\nfunction buildSpaceDeletePath(spaceId) {\n\treturn `/v1/spaces/${encodeURIComponent(spaceId)}`;\n}\nfunction buildSpaceStatusPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"status\");\n}\nfunction buildSpaceMetaPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"meta\");\n}\nfunction buildSpaceAccessModePath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"access-mode\");\n}\nfunction buildSpaceBootstrapPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"bootstrap\");\n}\nfunction buildSpaceMembersPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"members\");\n}\nfunction buildSpaceRemoveMembersPath(spaceId) {\n\treturn `${buildSpaceMembersPath(spaceId)}/remove`;\n}\nfunction buildSpaceMemberDirectoryPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"member-directory\");\n}\nfunction buildSpaceIdentityDirectoryPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"identity-directory\");\n}\nfunction buildSpaceViewerMembershipPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"viewer-membership\");\n}\nfunction buildSpaceJoinPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"join\");\n}\nfunction buildSpaceCenterAgentMemberPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"center-agent\");\n}\nfunction buildSpaceOrganizationDirectoryProfilesPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"organization-directory-profiles\");\n}\nfunction buildSpaceLeavePath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"leave\");\n}\nfunction buildSpaceSignalsPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"signals\");\n}\nfunction buildSpaceAttachmentsPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"attachments\");\n}\nfunction buildSpaceAttachmentUploadPath(spaceId, query) {\n\tconst path = buildSpaceAttachmentsPath(spaceId);\n\tconst searchParams = new URLSearchParams();\n\tif (query?.fileName !== void 0) searchParams.set(\"fileName\", query.fileName);\n\tif (query?.width !== void 0) searchParams.set(\"width\", String(query.width));\n\tif (query?.height !== void 0) searchParams.set(\"height\", String(query.height));\n\tconst queryString = searchParams.toString();\n\treturn queryString.length > 0 ? `${path}?${queryString}` : path;\n}\nfunction buildSpaceUpdatesPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"updates\");\n}\nfunction buildSpaceWakeProgressPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"wake-progress\");\n}\nfunction buildActiveSpaceWakeProgressPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"active-wake-progress\");\n}\nfunction buildSpaceWakeStopPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"wake-stop\");\n}\nfunction buildSpaceExecutionRecoveryPath(spaceId, dispatchId) {\n\treturn `${buildSpaceRoutePath(spaceId, \"dispatches\")}/${encodeURIComponent(dispatchId)}/recovery`;\n}\nfunction buildSpaceAgentInteractionResponsePath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"agent-interactions/respond\");\n}\nfunction buildSpaceWakeTraceWaterfallPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"wake-trace-waterfall\");\n}\nfunction buildSpaceMessageDetailsPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"message-details\");\n}\nfunction buildSpaceDiagnosticReportsPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"diagnostic-reports\");\n}\nfunction buildSpaceThreadsPath(spaceId) {\n\treturn buildSpaceRoutePath(spaceId, \"threads\");\n}\nfunction buildSpaceThreadPath(spaceId, threadId) {\n\treturn `${buildSpaceThreadsPath(spaceId)}/${encodeURIComponent(threadId)}`;\n}\nfunction buildSpaceThreadEventsPath(spaceId, threadId) {\n\treturn `${buildSpaceThreadPath(spaceId, threadId)}/events`;\n}\nfunction buildSpaceThreadSignalsPath(spaceId, threadId, query) {\n\tconst path = `${buildSpaceThreadPath(spaceId, threadId)}/signals`;\n\tif (!query) return path;\n\treturn `${path}?${new URLSearchParams({\n\t\tafterSignalId: query.afterSignalId,\n\t\tlimit: String(query.limit)\n\t}).toString()}`;\n}\nfunction buildSpaceRoutePath(spaceId, segment) {\n\treturn `/v1/spaces/${encodeURIComponent(spaceId)}/${segment}`;\n}\n//#endregion\n//#region src/space/access-mode.ts\nasync function setSpaceAccessMode(client, input) {\n\tconst parsedBody = setSpaceAccessModeBodySchema.safeParse({\n\t\taccessMode: input.accessMode,\n\t\t...input.password === void 0 ? {} : { password: input.password }\n\t});\n\tif (!parsedBody.success) throw new Error(parsedBody.error.issues[0]?.message ?? \"invalid space access mode request body\");\n\treturn await client.requestJson({\n\t\turl: buildSpaceAccessModePath(input.spaceId),\n\t\toperation: \"space.access_mode.set\",\n\t\tmethod: \"PUT\",\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tbody: JSON.stringify(parsedBody.data),\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\tschema: spaceAccessModeStateSchema,\n\t\tinvalidMessage: \"invalid space access mode response\"\n\t});\n}\n//#endregion\n//#region src/space/agent-interaction.ts\nasync function respondToSpaceAgentInteraction(client, input) {\n\tconst parsedBody = respondToSpaceAgentInteractionBodySchema.safeParse(input.body);\n\tif (!parsedBody.success) throw new Error(parsedBody.error.issues[0]?.message ?? \"invalid agent interaction response\");\n\treturn await client.requestJson({\n\t\tbody: JSON.stringify(parsedBody.data),\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tinvalidMessage: \"invalid agent interaction result\",\n\t\tmethod: \"POST\",\n\t\toperation: \"space.agent_interaction.respond\",\n\t\trequestContext: input.requestContext,\n\t\tschema: respondToSpaceAgentInteractionResponseSchema,\n\t\tsignal: input.signal,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\ttimeoutMs: input.timeoutMs,\n\t\turl: buildSpaceAgentInteractionResponsePath(input.spaceId)\n\t});\n}\n//#endregion\n//#region src/space/add-members.ts\nasync function addSpaceMembers(client, input) {\n\tconst parsedBody = postSpaceMembersBodySchema.safeParse({ memberProfileIds: input.memberProfileIds });\n\tif (!parsedBody.success) throw new Error(parsedBody.error.issues[0]?.message ?? \"invalid add space members request body\");\n\treturn await client.requestJson({\n\t\turl: buildSpaceMembersPath(input.spaceId),\n\t\toperation: \"space.members.add\",\n\t\tmethod: \"POST\",\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tbody: JSON.stringify(parsedBody.data),\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: postSpaceMembersResponseSchema,\n\t\tinvalidMessage: \"invalid add space members response\"\n\t});\n}\n//#endregion\n//#region src/space/attachments.ts\nasync function uploadSpaceAttachment(client, input) {\n\tconst mimeType = parseMimeType(input.mimeType);\n\tconst body = toRequestBody(input.bytes);\n\tvalidateAttachmentSize(readRequestBodySize(body));\n\tconst query = parseUploadQuery(input);\n\treturn (await client.requestJson({\n\t\turl: buildSpaceAttachmentUploadPath(input.spaceId, query),\n\t\toperation: \"space.attachment.upload\",\n\t\tmethod: \"POST\",\n\t\theaders: { \"content-type\": mimeType },\n\t\tbody,\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: uploadSpaceAttachmentResponseSchema,\n\t\tinvalidMessage: \"invalid Space attachment upload response\"\n\t})).attachment;\n}\nfunction buildSpaceAttachmentDownloadPath(spaceId, attachmentId) {\n\treturn `${buildSpaceAttachmentsPath(spaceId)}/${encodeURIComponent(attachmentId)}`;\n}\nfunction parseMimeType(value) {\n\tconst parsed = spaceAttachmentMimeTypeSchema.safeParse(value);\n\tif (!parsed.success) throw new Error(\"invalid Space attachment MIME type\");\n\treturn parsed.data;\n}\nfunction validateAttachmentSize(sizeBytes) {\n\tif (!spaceAttachmentSizeBytesSchema.safeParse(sizeBytes).success) throw new Error(\"invalid Space attachment size\");\n}\nfunction parseUploadQuery(input) {\n\tconst parsed = spaceAttachmentUploadQuerySchema.safeParse({\n\t\t...input.fileName === void 0 ? {} : { fileName: input.fileName },\n\t\t...input.width === void 0 ? {} : { width: String(input.width) },\n\t\t...input.height === void 0 ? {} : { height: String(input.height) }\n\t});\n\tif (!parsed.success) throw new Error(\"invalid Space attachment upload metadata\");\n\treturn parsed.data;\n}\nfunction toRequestBody(bytes) {\n\tif (bytes instanceof Blob || bytes instanceof ArrayBuffer) return bytes;\n\tconst copy = new Uint8Array(bytes.byteLength);\n\tcopy.set(bytes);\n\treturn copy.buffer;\n}\nfunction readRequestBodySize(body) {\n\treturn body instanceof Blob ? body.size : body.byteLength;\n}\n//#endregion\n//#region src/space/signals.ts\nconst SPACE_HISTORY_SIGNAL_KIND_TO_TYPE = {\n\ttext: \"signal.text\",\n\tstatus: \"signal.status\",\n\tsystem_notice: \"signal.system_notice\"\n};\nasync function listSpaceSignals(client, input) {\n\treturn await client.requestJson({\n\t\turl: buildSpaceSignalsReadPath(input.spaceId, input.query),\n\t\toperation: \"space.signals.read\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: catchupResponseSchema,\n\t\tinvalidMessage: \"Unexpected response: expected { signals, nextCursor }\"\n\t});\n}\nasync function listSpaceSignalEnvelopes(client, input) {\n\tconst result = await listSpaceSignals(client, input);\n\treturn {\n\t\tenvelopes: result.signals.flatMap((item) => {\n\t\t\tconst envelope = parseEnvelope(item);\n\t\t\treturn envelope ? [envelope] : [];\n\t\t}),\n\t\tnextCursor: result.nextCursor\n\t};\n}\nfunction buildSpaceSignalsReadPath(spaceId, query) {\n\tconst url = new URL(buildSpaceSignalsPath(spaceId), \"https://openmeld.local\");\n\tfor (const [key, value] of buildSpaceSignalsReadSearchParams(query)) url.searchParams.append(key, value);\n\treturn `${url.pathname}${url.search}`;\n}\nfunction buildSpaceSignalsReadSearchParams(query) {\n\tconst searchParams = new URLSearchParams();\n\tconst normalizedQuery = normalizeSpaceSignalsReadQuery(query);\n\tif (normalizedQuery.afterTs !== null) searchParams.set(\"afterTs\", String(normalizedQuery.afterTs));\n\tif (normalizedQuery.cursor) searchParams.set(\"cursor\", normalizedQuery.cursor);\n\tif (normalizedQuery.recent) searchParams.set(\"recent\", \"1\");\n\tif (normalizedQuery.includeLimit) searchParams.set(\"limit\", String(normalizedQuery.limit));\n\tif (normalizedQuery.afterSignalId) searchParams.set(\"afterSignalId\", normalizedQuery.afterSignalId);\n\tif (normalizedQuery.aroundSignalId) searchParams.set(\"aroundSignalId\", normalizedQuery.aroundSignalId);\n\tif (normalizedQuery.beforeCount !== null) searchParams.set(\"beforeCount\", String(normalizedQuery.beforeCount));\n\tif (normalizedQuery.afterCount !== null) searchParams.set(\"afterCount\", String(normalizedQuery.afterCount));\n\tfor (const profileId of normalizedQuery.fromProfileIds) searchParams.append(\"fromProfileId\", profileId);\n\tfor (const kind of normalizedQuery.kinds) searchParams.append(\"signalType\", SPACE_HISTORY_SIGNAL_KIND_TO_TYPE[kind]);\n\treturn searchParams;\n}\nfunction normalizeSpaceSignalsReadQuery(query) {\n\tconst afterTs = normalizeOptionalNonNegativeInteger(query?.afterTs);\n\tconst cursor = normalizeOptionalString(query?.cursor);\n\tconst afterSignalId = normalizeOptionalString(query?.afterSignalId);\n\tconst aroundSignalId = normalizeOptionalString(query?.aroundSignalId);\n\tconst beforeCount = normalizeOptionalNonNegativeInteger(query?.beforeCount);\n\tconst afterCount = normalizeOptionalNonNegativeInteger(query?.afterCount);\n\tconst limit = normalizeOptionalNonNegativeInteger(query?.limit);\n\tconst recent = query?.recent === true;\n\tconst fromProfileIds = normalizeUniqueStrings(query?.fromProfileIds ?? []);\n\tconst kinds = normalizeKinds(query?.kinds ?? []);\n\tconst semantics = normalizeListSignalsReadQuerySemantics({\n\t\trecentOnly: recent,\n\t\thasExplicitLimit: query?.limit !== void 0,\n\t\tlimit,\n\t\tafterSignalId,\n\t\taroundSignalId,\n\t\tbeforeCount,\n\t\tafterCount\n\t});\n\tif ((semantics.afterSignalId || semantics.aroundSignalId) && (afterTs !== null || cursor !== null)) throw new Error(\"Signal anchors cannot be combined with afterTs or cursor.\");\n\treturn {\n\t\tafterTs,\n\t\tcursor,\n\t\trecent: semantics.recentOnly,\n\t\tincludeLimit: semantics.includeLimit,\n\t\tlimit: semantics.limit,\n\t\tafterSignalId: semantics.afterSignalId,\n\t\taroundSignalId: semantics.aroundSignalId,\n\t\tbeforeCount: semantics.beforeCount,\n\t\tafterCount: semantics.afterCount,\n\t\tfromProfileIds,\n\t\tkinds\n\t};\n}\nfunction normalizeOptionalString(value) {\n\tif (typeof value !== \"string\") return null;\n\tconst normalized = value.trim();\n\treturn normalized.length > 0 ? normalized : null;\n}\nfunction normalizeOptionalNonNegativeInteger(value) {\n\tif (value === void 0) return null;\n\tif (!Number.isSafeInteger(value) || value < 0) throw new Error(\"history query counts must be non-negative integers\");\n\treturn value;\n}\nfunction normalizeUniqueStrings(values) {\n\tconst deduped = /* @__PURE__ */ new Set();\n\tfor (const value of values) {\n\t\tconst normalized = normalizeOptionalString(value);\n\t\tif (normalized) deduped.add(normalized);\n\t}\n\treturn [...deduped];\n}\nfunction normalizeKinds(values) {\n\tconst deduped = /* @__PURE__ */ new Set();\n\tfor (const value of values) deduped.add(value);\n\treturn [...deduped];\n}\n//#endregion\n//#region src/space/bootstrap.ts\nasync function getSpaceBootstrap(client, input) {\n\treturn await client.requestJson({\n\t\turl: buildSpaceBootstrapReadPath(input.spaceId, input.historyQuery, input.includeAgentStreamPresence),\n\t\toperation: \"space.bootstrap.read\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: spaceBootstrapResponseSchema,\n\t\tinvalidMessage: \"invalid space bootstrap response\"\n\t});\n}\nfunction buildSpaceBootstrapReadPath(spaceId, historyQuery, includeAgentStreamPresence) {\n\tconst url = new URL(buildSpaceBootstrapPath(spaceId), \"https://openmeld.local\");\n\tfor (const [key, value] of buildSpaceSignalsReadSearchParams(historyQuery)) url.searchParams.append(key, value);\n\tif (includeAgentStreamPresence === true) url.searchParams.set(\"includeAgentStreamPresence\", \"true\");\n\treturn `${url.pathname}${url.search}`;\n}\n//#endregion\n//#region src/space/create.ts\nasync function createSpace(client, input) {\n\tconst body = buildCreateSpaceBody(input);\n\tconst parsedBody = createSpaceBodySchema.safeParse(body);\n\tif (!parsedBody.success) throw new Error(parsedBody.error.issues[0]?.message ?? \"invalid create space request body\");\n\treturn await client.requestJson({\n\t\turl: buildCreateSpacePath(),\n\t\toperation: \"space.create\",\n\t\tmethod: \"POST\",\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tbody: JSON.stringify(parsedBody.data),\n\t\trequestContext: input.requestContext,\n\t\tschema: createSpaceResponseSchema,\n\t\tinvalidMessage: \"invalid create space response\"\n\t});\n}\nfunction buildCreateSpaceBody(input) {\n\treturn {\n\t\t...input.name === void 0 ? {} : { name: input.name },\n\t\t...input.purpose === void 0 ? {} : { purpose: input.purpose },\n\t\t...input.guide === void 0 ? {} : { guide: input.guide },\n\t\t...input.visibility === void 0 ? {} : { visibility: input.visibility },\n\t\t...input.accessMode === void 0 ? {} : { accessMode: input.accessMode },\n\t\t...input.password === void 0 ? {} : { password: input.password }\n\t};\n}\n//#endregion\n//#region src/space/delete.ts\nasync function deleteSpace(client, input) {\n\treturn await client.requestJson({\n\t\turl: buildSpaceDeletePath(input.spaceId),\n\t\toperation: \"space.delete\",\n\t\tmethod: \"DELETE\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: deleteSpaceResponseSchema,\n\t\tinvalidMessage: \"invalid delete space response\"\n\t});\n}\n//#endregion\n//#region src/space/diagnostic-report.ts\nasync function createSpaceDiagnosticReport(client, input) {\n\tconst parsedBody = createSpaceDiagnosticReportBodySchema.safeParse(input.body);\n\tif (!parsedBody.success) {\n\t\tconst firstIssue = parsedBody.error.issues[0];\n\t\tthrow new Error(firstIssue?.message ?? \"invalid diagnostic report request body\");\n\t}\n\treturn await client.requestJson({\n\t\turl: buildSpaceDiagnosticReportsPath(input.spaceId),\n\t\toperation: \"space.diagnostic_report.create\",\n\t\tmethod: \"POST\",\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tbody: JSON.stringify(parsedBody.data),\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: createSpaceDiagnosticReportResponseSchema,\n\t\tinvalidMessage: \"invalid diagnostic report response\"\n\t});\n}\n//#endregion\n//#region src/space/execution-recovery.ts\nasync function inspectSpaceExecutionRecovery(client, input) {\n\treturn await client.requestJson({\n\t\tinvalidMessage: \"invalid execution recovery response\",\n\t\tmethod: \"GET\",\n\t\toperation: \"space.execution_recovery.inspect\",\n\t\trequestContext: input.requestContext,\n\t\tschema: inspectExecutionRecoveryResponseSchema,\n\t\tsignal: input.signal,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\ttimeoutMs: input.timeoutMs,\n\t\turl: buildSpaceExecutionRecoveryPath(input.spaceId, input.dispatchId)\n\t});\n}\nasync function executeSpaceExecutionRecovery(client, input) {\n\tconst parsed = executeExecutionRecoveryBodySchema.safeParse(input.body);\n\tif (!parsed.success || parsed.data.expectedIdentity.dispatchId !== input.dispatchId) throw new Error(parsed.success ? \"dispatchId does not match expected execution identity\" : parsed.error.issues[0]?.message ?? \"invalid execution recovery request\");\n\treturn await client.requestJson({\n\t\tbody: JSON.stringify(parsed.data),\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tinvalidMessage: \"invalid execution recovery command response\",\n\t\tmethod: \"POST\",\n\t\toperation: \"space.execution_recovery.execute\",\n\t\trequestContext: input.requestContext,\n\t\tschema: executeExecutionRecoveryResponseSchema,\n\t\tsignal: input.signal,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\ttimeoutMs: input.timeoutMs,\n\t\turl: buildSpaceExecutionRecoveryPath(input.spaceId, input.dispatchId)\n\t});\n}\n//#endregion\n//#region src/space/leave.ts\nasync function leaveSpace(client, input) {\n\treturn await client.requestJson({\n\t\turl: buildSpaceLeavePath(input.spaceId),\n\t\toperation: \"space.leave\",\n\t\tmethod: \"POST\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: leaveSpaceResponseSchema,\n\t\tinvalidMessage: \"invalid leave space response\"\n\t});\n}\n//#endregion\n//#region src/space/members.ts\nasync function getSpaceMembersSnapshot(client, input) {\n\treturn await client.requestJson({\n\t\turl: buildSpaceMembersPath(input.spaceId),\n\t\toperation: \"space.members.list\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: spaceMembersSnapshotSchema,\n\t\tinvalidMessage: \"invalid space members response\"\n\t});\n}\nasync function getSpaceMemberDirectory(client, input) {\n\treturn await client.requestJson({\n\t\turl: buildSpaceMemberDirectoryPath(input.spaceId),\n\t\toperation: \"space.member_directory.read\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: spaceMemberDirectorySchema,\n\t\tinvalidMessage: \"invalid space member directory response\"\n\t});\n}\nasync function getSpaceIdentityDirectory(client, input) {\n\treturn await client.requestJson({\n\t\turl: buildSpaceIdentityDirectoryPath(input.spaceId),\n\t\toperation: \"space.identity_directory.read\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: spaceIdentityDirectorySchema,\n\t\tinvalidMessage: \"invalid space identity directory response\"\n\t});\n}\nasync function getSpaceViewerMembership(client, input) {\n\treturn await client.requestJson({\n\t\turl: buildSpaceViewerMembershipPath(input.spaceId),\n\t\toperation: \"space.viewer_membership.read\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: spaceViewerMembershipResponseSchema,\n\t\tinvalidMessage: \"invalid space viewer membership response\"\n\t});\n}\nasync function joinSpace(client, input) {\n\treturn await client.requestJson({\n\t\turl: buildSpaceJoinPath(input.spaceId),\n\t\toperation: \"space.join\",\n\t\tmethod: \"POST\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: postSpaceMembersResponseSchema,\n\t\tinvalidMessage: \"invalid space join response\"\n\t});\n}\n/** @deprecated Use addOrganizationDirectoryProfilesToSpace instead. */\nasync function addCenterAgentToSpace(client, input) {\n\tconst parsedBody = addCenterAgentToSpaceBodySchema.safeParse({ expectedCenterAgentProfileId: input.expectedCenterAgentProfileId });\n\tif (!parsedBody.success) throw new Error(parsedBody.error.issues[0]?.message ?? \"invalid add Center Agent Space member request body\");\n\treturn await client.requestJson({\n\t\turl: buildSpaceCenterAgentMemberPath(input.spaceId),\n\t\toperation: \"space.center_agent_member.add\",\n\t\tmethod: \"POST\",\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tbody: JSON.stringify(parsedBody.data),\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: postSpaceMembersResponseSchema,\n\t\tinvalidMessage: \"invalid add Center Agent Space member response\"\n\t});\n}\nasync function addOrganizationDirectoryProfilesToSpace(client, input) {\n\tconst parsedBody = addOrganizationDirectoryProfilesToSpaceBodySchema.safeParse({\n\t\tdirectoryProfileIds: input.directoryProfileIds,\n\t\t...input.expectedCenterAgentProfileId === void 0 ? {} : { expectedCenterAgentProfileId: input.expectedCenterAgentProfileId }\n\t});\n\tif (!parsedBody.success) throw new Error(parsedBody.error.issues[0]?.message ?? \"invalid Organization Directory Space member request body\");\n\treturn await client.requestJson({\n\t\turl: buildSpaceOrganizationDirectoryProfilesPath(input.spaceId),\n\t\toperation: \"space.organization_directory_profiles.add\",\n\t\tmethod: \"POST\",\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tbody: JSON.stringify(parsedBody.data),\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: postSpaceMembersResponseSchema,\n\t\tinvalidMessage: \"invalid Organization Directory Space member response\"\n\t});\n}\n//#endregion\n//#region src/space/message-details.ts\nasync function getSpaceMessageDetails(client, input) {\n\tconst searchParams = new URLSearchParams();\n\tsearchParams.set(\"signalId\", input.signalId);\n\treturn await client.requestJson({\n\t\turl: `${buildSpaceMessageDetailsPath(input.spaceId)}?${searchParams.toString()}`,\n\t\toperation: \"space.message_details\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: getSpaceMessageDetailsResponseSchema,\n\t\tinvalidMessage: \"invalid message details response\"\n\t});\n}\n//#endregion\n//#region src/space/meta.ts\nasync function updateSpaceMeta(client, input) {\n\tconst parsedBody = patchSpaceMetaBodySchema.safeParse({\n\t\t...input.name === void 0 ? {} : { name: input.name },\n\t\t...input.purpose === void 0 ? {} : { purpose: input.purpose },\n\t\t...input.guide === void 0 ? {} : { guide: input.guide }\n\t});\n\tif (!parsedBody.success) throw new Error(parsedBody.error.issues[0]?.message ?? \"invalid Space metadata request body\");\n\treturn await client.requestJson({\n\t\turl: buildSpaceMetaPath(input.spaceId),\n\t\toperation: \"space.meta.update\",\n\t\tmethod: \"PATCH\",\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tbody: JSON.stringify(parsedBody.data),\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: patchSpaceMetaResponseSchema,\n\t\tinvalidMessage: \"invalid Space metadata response\"\n\t});\n}\n//#endregion\n//#region src/space/post-normal-message.ts\nasync function postSpaceNormalMessage(client, input) {\n\tconst body = buildPostNormalMessageBody(input);\n\tconst parsedBody = postNormalMessageBodySchema.safeParse(body);\n\tif (!parsedBody.success) {\n\t\tconst firstIssue = parsedBody.error.issues[0];\n\t\tthrow new Error(firstIssue?.message ?? \"invalid normal message request body\");\n\t}\n\treturn await client.requestJson({\n\t\turl: buildSpaceSignalsPath(input.spaceId),\n\t\toperation: \"space.send\",\n\t\tmethod: \"POST\",\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tbody: JSON.stringify(toLegacySpaceAddressingWireValue(parsedBody.data)),\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: postNormalMessageResponseSchema,\n\t\tinvalidMessage: \"invalid send response\"\n\t});\n}\nfunction buildPostNormalMessageBody(input) {\n\treturn {\n\t\ttext: input.text,\n\t\t...input.attachments ? { attachments: input.attachments } : {},\n\t\t...input.messageEnvelope ? { messageEnvelope: input.messageEnvelope } : {},\n\t\t...input.replyTo ? { replyTo: input.replyTo } : {},\n\t\t...input.meta ? { meta: input.meta } : {}\n\t};\n}\n//#endregion\n//#region src/space/remove-members.ts\nasync function removeSpaceMembers(client, input) {\n\tconst parsedBody = removeSpaceMembersBodySchema.safeParse({ memberProfileIds: input.memberProfileIds });\n\tif (!parsedBody.success) throw new Error(parsedBody.error.issues[0]?.message ?? \"invalid remove space members request body\");\n\treturn await client.requestJson({\n\t\turl: buildSpaceRemoveMembersPath(input.spaceId),\n\t\toperation: \"space.members.remove\",\n\t\tmethod: \"POST\",\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tbody: JSON.stringify(parsedBody.data),\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: removeSpaceMembersResponseSchema,\n\t\tinvalidMessage: \"invalid remove space members response\"\n\t});\n}\n//#endregion\n//#region src/space/status.ts\nasync function getSpaceStatus(client, input) {\n\treturn await client.requestJson({\n\t\turl: buildSpaceStatusPath(input.spaceId),\n\t\toperation: \"space.status.read\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: getSpaceStatusResponseSchema,\n\t\tinvalidMessage: \"invalid space status response\"\n\t});\n}\n//#endregion\n//#region src/space/threads.ts\nasync function createSpaceThread(client, input) {\n\tconst body = {\n\t\trootSignalId: input.rootSignalId,\n\t\tclientMutationId: input.clientMutationId\n\t};\n\tconst parsedBody = createSpaceThreadBodySchema.safeParse(body);\n\tif (!parsedBody.success) throw new Error(parsedBody.error.issues[0]?.message ?? \"Invalid thread request\");\n\treturn await client.requestJson({\n\t\turl: buildSpaceThreadsPath(input.spaceId),\n\t\toperation: \"space.thread.create\",\n\t\tmethod: \"POST\",\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tbody: JSON.stringify(parsedBody.data),\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: createSpaceThreadResponseSchema,\n\t\tinvalidMessage: \"invalid thread create response\"\n\t});\n}\nasync function listSpaceThreads(client, input) {\n\treturn await client.requestJson({\n\t\turl: buildSpaceThreadsPath(input.spaceId),\n\t\toperation: \"space.thread.list\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: listSpaceThreadsResponseSchema,\n\t\tinvalidMessage: \"invalid thread list response\"\n\t});\n}\nasync function getSpaceThread(client, input) {\n\treturn await client.requestJson({\n\t\turl: buildSpaceThreadPath(input.spaceId, input.threadId),\n\t\toperation: \"space.thread.get\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: getSpaceThreadResponseSchema,\n\t\tinvalidMessage: \"invalid thread detail response\"\n\t});\n}\nasync function listSpaceThreadEvents(client, input) {\n\treturn await client.requestJson({\n\t\turl: buildSpaceThreadEventsPath(input.spaceId, input.threadId),\n\t\toperation: \"space.thread.events\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: listSpaceThreadEventsResponseSchema,\n\t\tinvalidMessage: \"invalid thread events response\"\n\t});\n}\nasync function listSpaceThreadSignals(client, input) {\n\tconst parsedQuery = listSpaceThreadSignalsQuerySchema.safeParse({\n\t\tafterSignalId: input.afterSignalId,\n\t\tlimit: input.limit\n\t});\n\tif (!parsedQuery.success) throw new Error(parsedQuery.error.issues[0]?.message ?? \"Invalid bounded thread signals query\");\n\tconst hasBoundedQuery = parsedQuery.data.afterSignalId !== void 0;\n\treturn await client.requestJson({\n\t\turl: buildSpaceThreadSignalsPath(input.spaceId, input.threadId, hasBoundedQuery ? {\n\t\t\tafterSignalId: parsedQuery.data.afterSignalId,\n\t\t\tlimit: parsedQuery.data.limit\n\t\t} : void 0),\n\t\toperation: \"space.thread.signals\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: listSpaceThreadSignalsResponseSchema,\n\t\tinvalidMessage: \"invalid thread signals response\"\n\t});\n}\nasync function postSpaceThreadSignal(client, input) {\n\tconst parsedBody = postSpaceThreadSignalBodySchema.safeParse(input.body);\n\tif (!parsedBody.success) throw new Error(parsedBody.error.issues[0]?.message ?? \"Invalid thread message\");\n\treturn await client.requestJson({\n\t\turl: buildSpaceThreadSignalsPath(input.spaceId, input.threadId),\n\t\toperation: \"space.thread.send\",\n\t\tmethod: \"POST\",\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tbody: JSON.stringify(toLegacySpaceAddressingWireValue(parsedBody.data)),\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: postSpaceThreadSignalResponseSchema,\n\t\tinvalidMessage: \"invalid thread message response\"\n\t});\n}\n//#endregion\n//#region src/space/updates.ts\nasync function getSpaceUpdates(client, input) {\n\treturn await client.requestJson({\n\t\turl: buildSpaceUpdatesReadPath({\n\t\t\tafterSignalId: input.afterSignalId,\n\t\t\tlimit: input.limit,\n\t\t\tspaceId: input.spaceId\n\t\t}),\n\t\toperation: \"space.updates.read\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: getSpaceUpdatesResponseSchema,\n\t\tinvalidMessage: \"Unexpected response: expected { signals }\"\n\t});\n}\nfunction buildSpaceUpdatesReadPath(input) {\n\tconst afterSignalId = input.afterSignalId.trim();\n\tif (afterSignalId.length === 0) throw new Error(\"afterSignalId is required\");\n\tif (!Number.isSafeInteger(input.limit) || input.limit <= 0) throw new Error(\"limit must be a positive integer\");\n\tconst url = new URL(buildSpaceUpdatesPath(input.spaceId), \"https://openmeld.local\");\n\turl.searchParams.set(\"afterSignalId\", afterSignalId);\n\turl.searchParams.set(\"limit\", String(input.limit));\n\treturn `${url.pathname}${url.search}`;\n}\n//#endregion\n//#region src/space/wake-progress.ts\nasync function getSpaceWakeProgress(client, input) {\n\tconst searchParams = new URLSearchParams();\n\tsearchParams.set(\"clientMessageId\", input.clientMessageId);\n\tif (input.includeTiming === true) searchParams.set(\"includeTiming\", \"true\");\n\tif (input.includeWakeStopEligibility === true) searchParams.set(\"includeWakeStopEligibility\", \"true\");\n\tif (input.targetProfileId) searchParams.set(\"targetProfileId\", input.targetProfileId);\n\tconst query = searchParams.toString();\n\treturn await client.requestJson({\n\t\turl: `${buildSpaceWakeProgressPath(input.spaceId)}?${query}`,\n\t\toperation: \"space.wake_progress\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: getSpaceWakeProgressResponseSchema,\n\t\tinvalidMessage: \"invalid wake progress response\"\n\t});\n}\nasync function getActiveSpaceWakeProgress(client, input) {\n\tconst searchParams = new URLSearchParams();\n\tif (input.includeTiming === true) searchParams.set(\"includeTiming\", \"true\");\n\tif (input.includeWakeStopEligibility === true) searchParams.set(\"includeWakeStopEligibility\", \"true\");\n\tif (input.targetProfileId) searchParams.set(\"targetProfileId\", input.targetProfileId);\n\tconst query = searchParams.toString();\n\treturn await client.requestJson({\n\t\turl: query ? `${buildActiveSpaceWakeProgressPath(input.spaceId)}?${query}` : buildActiveSpaceWakeProgressPath(input.spaceId),\n\t\toperation: \"space.active_wake_progress\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: getActiveSpaceWakeProgressResponseSchema,\n\t\tinvalidMessage: \"invalid active wake progress response\"\n\t});\n}\n//#endregion\n//#region src/space/wake-stop.ts\nasync function postSpaceWakeStop(client, input) {\n\tconst parsedBody = postSpaceWakeStopBodySchema.safeParse(input.body);\n\tif (!parsedBody.success) {\n\t\tconst firstIssue = parsedBody.error.issues[0];\n\t\tthrow new Error(firstIssue?.message ?? \"invalid Wake Stop request body\");\n\t}\n\treturn await client.requestJson({\n\t\turl: buildSpaceWakeStopPath(input.spaceId),\n\t\toperation: \"space.wake_stop\",\n\t\tmethod: \"POST\",\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tbody: JSON.stringify(parsedBody.data),\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: postSpaceWakeStopResponseSchema,\n\t\tinvalidMessage: \"invalid Wake Stop response\"\n\t});\n}\n//#endregion\n//#region src/space/wake-trace-waterfall.ts\nasync function getSpaceWakeTraceWaterfall(client, input) {\n\tconst searchParams = new URLSearchParams();\n\tif (input.clientMessageId) searchParams.set(\"clientMessageId\", input.clientMessageId);\n\tif (input.sourceSignalId) searchParams.set(\"sourceSignalId\", input.sourceSignalId);\n\tif (input.targetProfileId) searchParams.set(\"targetProfileId\", input.targetProfileId);\n\tconst query = searchParams.toString();\n\treturn await client.requestJson({\n\t\turl: `${buildSpaceWakeTraceWaterfallPath(input.spaceId)}?${query}`,\n\t\toperation: \"space.wake_trace_waterfall\",\n\t\tmethod: \"GET\",\n\t\trequestContext: input.requestContext,\n\t\tsignal: input.signal,\n\t\ttimeoutMs: input.timeoutMs,\n\t\t...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },\n\t\tschema: getSpaceWakeTraceWaterfallResponseSchema,\n\t\tinvalidMessage: \"invalid wake trace waterfall response\"\n\t});\n}\n//#endregion\n//#region src/space/api.ts\nconst createSpaceApi = (client) => {\n\treturn {\n\t\tcreateSpace: async (input) => await createSpace(client, input),\n\t\tdeleteSpace: async (input) => await deleteSpace(client, input),\n\t\tjoinSpace: async (input) => await joinSpace(client, input),\n\t\taddMembers: async (input) => await addSpaceMembers(client, input),\n\t\taddCenterAgentToSpace: async (input) => await addCenterAgentToSpace(client, input),\n\t\taddOrganizationDirectoryProfilesToSpace: async (input) => await addOrganizationDirectoryProfilesToSpace(client, input),\n\t\tuploadAttachment: async (input) => await uploadSpaceAttachment(client, input),\n\t\tremoveMembers: async (input) => await removeSpaceMembers(client, input),\n\t\tsetAccessMode: async (input) => await setSpaceAccessMode(client, input),\n\t\tupdateMeta: async (input) => await updateSpaceMeta(client, input),\n\t\tleaveSpace: async (input) => await leaveSpace(client, input),\n\t\tgetBootstrap: async (input) => await getSpaceBootstrap(client, input),\n\t\tgetStatus: async (input) => await getSpaceStatus(client, input),\n\t\tgetMembersSnapshot: async (input) => await getSpaceMembersSnapshot(client, input),\n\t\tgetMemberDirectory: async (input) => await getSpaceMemberDirectory(client, input),\n\t\tgetIdentityDirectory: async (input) => await getSpaceIdentityDirectory(client, input),\n\t\tgetViewerMembership: async (input) => await getSpaceViewerMembership(client, input),\n\t\tlistSignals: async (input) => await listSpaceSignals(client, input),\n\t\tlistSignalEnvelopes: async (input) => await listSpaceSignalEnvelopes(client, input),\n\t\tgetUpdates: async (input) => await getSpaceUpdates(client, input),\n\t\tgetActiveWakeProgress: async (input) => await getActiveSpaceWakeProgress(client, input),\n\t\tpostWakeStop: async (input) => await postSpaceWakeStop(client, input),\n\t\tinspectExecutionRecovery: async (input) => await inspectSpaceExecutionRecovery(client, input),\n\t\texecuteExecutionRecovery: async (input) => await executeSpaceExecutionRecovery(client, input),\n\t\trespondToAgentInteraction: async (input) => await respondToSpaceAgentInteraction(client, input),\n\t\tgetWakeProgress: async (input) => await getSpaceWakeProgress(client, input),\n\t\tgetWakeTraceWaterfall: async (input) => await getSpaceWakeTraceWaterfall(client, input),\n\t\tgetMessageDetails: async (input) => await getSpaceMessageDetails(client, input),\n\t\tcreateDiagnosticReport: async (input) => await createSpaceDiagnosticReport(client, input),\n\t\tpostNormalMessage: async (input) => await postSpaceNormalMessage(client, input),\n\t\tcreateThread: async (input) => await createSpaceThread(client, input),\n\t\tlistThreads: async (input) => await listSpaceThreads(client, input),\n\t\tgetThread: async (input) => await getSpaceThread(client, input),\n\t\tlistThreadEvents: async (input) => await listSpaceThreadEvents(client, input),\n\t\tlistThreadSignals: async (input) => await listSpaceThreadSignals(client, input),\n\t\tpostThreadSignal: async (input) => await postSpaceThreadSignal(client, input)\n\t};\n};\n//#endregion\n//#region src/transport.ts\nfunction createFetchTransport(input) {\n\tconst defaultTimeoutMs = normalizeOptionalTimeoutMs(input.defaultTimeoutMs);\n\treturn async function fetchTransport(request) {\n\t\tconst timeoutMs = normalizeOptionalTimeoutMs(request.timeoutMs) ?? defaultTimeoutMs;\n\t\tconst timeoutSignal = timeoutMs === void 0 ? null : AbortSignal.timeout(timeoutMs);\n\t\tconst composed = composeAbortSignals(request.init?.signal, timeoutSignal);\n\t\ttry {\n\t\t\treturn await input.fetch(request.url, {\n\t\t\t\t...request.init,\n\t\t\t\tsignal: composed.signal\n\t\t\t});\n\t\t} catch (error) {\n\t\t\tif (timeoutSignal?.aborted && timeoutMs !== void 0) throw createTimeoutError({\n\t\t\t\toperation: request.operation,\n\t\t\t\ttimeoutMs,\n\t\t\t\tcause: error\n\t\t\t});\n\t\t\tif (shouldWrapNetworkRequestError(error)) throw createNetworkRequestError({\n\t\t\t\toperation: request.operation,\n\t\t\t\turl: request.url,\n\t\t\t\tcause: error\n\t\t\t});\n\t\t\tthrow error;\n\t\t} finally {\n\t\t\tcomposed.cleanup();\n\t\t}\n\t};\n}\nfunction createTimeoutError(input) {\n\tconst error = new Error(`${input.operation} request timed out after ${input.timeoutMs}ms`, { cause: input.cause });\n\terror.code = \"network.timeout\";\n\treturn error;\n}\nfunction createNetworkRequestError(input) {\n\tconst error = new Error(`${input.operation} request could not reach ${describeRequestTarget(input.url)} (${toErrorMessage(input.cause)})`, { cause: input.cause });\n\terror.code = \"network.request_failed\";\n\treturn error;\n}\nfunction normalizeOptionalTimeoutMs(value) {\n\tif (value === void 0) return;\n\tif (typeof value !== \"number\" || !Number.isFinite(value) || value <= 0) throw new Error(\"timeoutMs must be a finite positive number\");\n\treturn Math.trunc(value);\n}\nfunction describeRequestTarget(url) {\n\ttry {\n\t\treturn new URL(url).origin;\n\t} catch {\n\t\treturn url;\n\t}\n}\nfunction toErrorMessage(error) {\n\tif (error instanceof Error) {\n\t\tconst message = error.message.trim();\n\t\treturn message.length > 0 ? message : \"request failed\";\n\t}\n\tconst message = String(error ?? \"\").trim();\n\treturn message.length > 0 ? message : \"request failed\";\n}\nfunction shouldWrapNetworkRequestError(error) {\n\tif (error instanceof TypeError) return true;\n\tconst message = toErrorMessage(error).toLowerCase();\n\treturn message.includes(\"fetch failed\") || message.includes(\"failed to fetch\") || message.includes(\"network request failed\");\n}\nfunction composeAbortSignals(parent, timeout) {\n\tif (!(parent || timeout)) return {\n\t\tsignal: void 0,\n\t\tcleanup: () => void 0\n\t};\n\tif (!parent) return {\n\t\tsignal: timeout ?? void 0,\n\t\tcleanup: () => void 0\n\t};\n\tif (!timeout) return {\n\t\tsignal: parent,\n\t\tcleanup: () => void 0\n\t};\n\tif (parent.aborted || timeout.aborted) {\n\t\tconst controller = new AbortController();\n\t\tcontroller.abort();\n\t\treturn {\n\t\t\tsignal: controller.signal,\n\t\t\tcleanup: () => void 0\n\t\t};\n\t}\n\tconst controller = new AbortController();\n\tconst abort = () => {\n\t\tcontroller.abort();\n\t};\n\tparent.addEventListener(\"abort\", abort, { once: true });\n\ttimeout.addEventListener(\"abort\", abort, { once: true });\n\treturn {\n\t\tsignal: controller.signal,\n\t\tcleanup: () => {\n\t\t\tparent.removeEventListener(\"abort\", abort);\n\t\t\ttimeout.removeEventListener(\"abort\", abort);\n\t\t}\n\t};\n}\n//#endregion\nexport { OpenMeldApiClientHttpError, OpenMeldApiClientInvalidResponseError, buildAccountSpaceActiveWakeSummaryPath, buildAccountSpaceIndexPath, buildAgentActivitySnapshotPath, buildAgentActivityStatsPath, buildAgentProfileBindingOrganizationAuthorizationsRoute, buildAgentProfilePrimaryBindingOrganizationAuthorizationRoute, buildCenterAgentAuditJournalPath, buildCenterAgentDesignationPath, buildCenterAgentDirectMessageSpacePath, buildCenterAgentInboxReadThroughPath, buildCenterAgentInboxSummaryPath, buildCenterAgentMemberResearchPath, buildCenterAgentOperatingStatePath, buildCenterAgentProfilePath, buildCenterAgentTaskMessagesPath, buildCenterAgentTaskPath, buildCenterAgentTaskRetryPath, buildCenterAgentTaskStopPath, buildCenterAgentTasksPath, buildComputerFileAccessReadPath, buildComputerFileAccessUpdatePath, buildCurrentOrganizationCenterAgentMemoryWipeSelfPath, buildCurrentOrganizationDirectoryPath, buildCurrentOrganizationFeedbackReportingPolicyPath, buildCurrentOrganizationInformationProtectionPath, buildCurrentOrganizationLogoPath, buildCurrentOrganizationMemberOpenMeldServiceStatusesPath, buildCurrentOrganizationMessageChannelPath, buildCurrentOrganizationMessageChannelRegistrationPath, buildCurrentOrganizationMessageChannelRegistrationPollPath, buildCurrentOrganizationMessageChannelRegistrationsPath, buildCurrentOrganizationMessageChannelsPath, buildCurrentOrganizationSpacesPath, buildCurrentOrganizationSpacesWithMemberCountsPath, buildDirectMessageConversionPath, buildDirectMessageSpacePath, buildFeedbackIssueSubmissionPath, buildInboxItemDismissPath, buildInboxItemPath, buildInboxItemReadPath, buildInboxMarkAllReadPath, buildInboxPath, buildInboxPreferencesPath, buildInboxSummaryPath, buildLocalFolderPickerPath, buildLocalProjectControlPath, buildModelCatalogPath, buildOrganizationBindingAuthorizationPreferencePath, buildOrganizationBindingAuthorizationProfilesPath, buildOrganizationBindingAuthorizationsBulkPath, buildOrganizationDocumentApproveDraftPath, buildOrganizationDocumentDiscardDraftPath, buildOrganizationDocumentPath, buildOrganizationDocumentsPath, buildOrganizationSkillEnabledPath, buildOrganizationSkillGitHubImportPath, buildOrganizationSkillGitHubPreviewPath, buildOrganizationSkillMaintainersPath, buildOrganizationSkillPath, buildOrganizationSkillsPath, buildOrganizationUsageOverviewPath, buildOrganizationWakeAccessChoicePath, buildProfileRoute, buildProfileSpaceHistoryListPath, buildProfileSpaceHistoryStatusPath, buildProfileSpaceHistoryUpsertPath, buildProjectPath, buildProjectsPath, buildRoutinePath, buildRoutinePausePath, buildRoutineResumePath, buildRoutineRunsPath, buildRoutineTargetSpacesPath, buildRoutinesPath, buildSpaceAttachmentDownloadPath, buildSpaceBootstrapReadPath, buildSpaceInboxReadThroughPath, buildSpaceInboxSummaryPath, createAccountSpaceIndexApi, createAgentActivityApi, createAgentProfileBindingApi, createCenterAgentApi, createCenterAgentTasksApi, createComputerFileAccessApi, createConfigApi, createCurrentDeviceApi, createDirectMessageApi, createFeedbackApi, createFetchTransport, createInboxApi, createLocalFolderPickerApi, createLocalProjectControlApi, createLocalRuntimeExpectedRoutesApi, createOpenMeldApiClient, createOrganizationApi, createOrganizationDocumentsApi, createOrganizationSkillsApi, createOrganizationUsageApi, createPrepareReadinessApi, createProfileSpaceHistoryApi, createProfilesApi, createProjectsApi, createRoutinesApi, createRuntimeReportingApi, createSpaceApi, getModelCatalog, normalizeApiBaseUrl, publicSpaceUrls, resolveAccountSpaceIndexGatewayHost, resolveProfileSpaceHistoryGatewayHost, setSpaceAccessMode, toStructuredApiClientFailure, updateSpaceMeta, uploadSpaceAttachment };\n\n//# sourceMappingURL=index.js.map"],"mappings":";;;;;;;AAGA,MAAM,gDAAgD;CACrD;CACA;CACA;CACA;CACA;CACA;CACA;AACD;AACA,MAAM,yCAAyC,CAAC,iBAAiB;AACjE,MAAM,2CAA2C,CAAC,cAAc;AAChE,MAAM,2CAA2C,CAAC,2BAA2B;AAC7E,MAAM,0CAA0C,CAAC,+CAA+C;AAChG,MAAM,qDAAqD;CAC1D;CACA;CACA;AACD;AAkGsD,EAAE,KAAK,6CAA6C;AAC1G,MAAM,0CAA0C,EAAE,KAAK,sCAAsC;AAC7F,MAAM,4CAA4C,EAAE,KAAK,wCAAwC;AAC/C,EAAE,KAAK,wCAAwC;AAChD,EAAE,KAAK,uCAAuC;AACpC,EAAE,KAAK,kDAAkD;;;AC1HpH,MAAM,oDAAoD,IAAI,IAAI,CAAC,mBAAmB,uBAAuB,CAAC;;;;;;;;;;;;AAY9G,SAAS,iCAAiC,OAAO;CAChD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S;GAChB,MAAM;GACN,SAAS;GACT,MAAM,CAAC,MAAM;EACd,CAAC;EACD;CACD;CACA,IAAI,MAAM,2BAA2B,QAAQ,SAAS;EACrD,MAAM;EACN,SAAS;EACT,MAAM,CAAC,2BAA2B;CACnC,CAAC;CACD,4BAA4B;EAC3B,MAAM,MAAM;EACZ,GAAG,MAAM,gBAAgB,EAAE,eAAe,MAAM,cAAc,IAAI,CAAC;EACnE,GAAG,MAAM,QAAQ,EAAE,OAAO,MAAM,MAAM,IAAI,CAAC;CAC5C,GAAG,OAAO;AACX;;;ACzWA,MAAMG,gCAA8B,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC;AAC3D,MAAM,6CAA6C;AACnD,MAAM,yBAAyB,EAAE,KAAK;CACrC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,GAAG;CACH;CACA;CACA;CACA;CACA;CACA,GAAG;CACH,GAAG;CACH,GAAG;CACH;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,GAAG;CACH,GAAG;CACH;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,qBAAqB,kBAAkB,OAAO;CACnD,MAAM;CACN,WAAWA;CACX,cAAcA,8BAA4B,SAAS;AACpD,CAAC;AACD,MAAM,6BAA6B,EAAE,aAAa;CACjD,IAAI,EAAE,QAAQ,KAAK;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CACtC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,+CAA+C,EAAE,KAAK;CAC3D;CACA;CACA;CACA;AACD,CAAC;AACuD,EAAE,aAAa;CACtE,UAAUA,8BAA4B,IAAI,GAAG;CAC7C,aAAaA,8BAA4B,IAAI,GAAG;CAChD,SAAS;CACT,SAAS;CACT,eAAe;AAChB,CAAC;AACD,MAAM,4BAA4B,EAAE,aAAa;CAChD,MAAMA;CACN,IAAIA;AACL,CAAC;AACD,MAAM,mCAAmC,EAAE,aAAa,EAAE,WAAW,+BAA+B,CAAC;AACrG,MAAM,+BAA+B,EAAE,aAAa;CACnD,gBAAgB;CAChB,YAAY,EAAE,aAAa;EAC1B,WAAW;EACX,QAAQC;EACR,aAAaD;CACd,CAAC,CAAC,CAAC,SAAS;AACb,CAAC;AAC2D,EAAE,aAAa;CAC1E,aAAa;CACb,UAAU,EAAE,QAAQ,IAAI;AACzB,CAAC;AACD,MAAM,kDAAkD,EAAE,KAAK;CAC9D;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,sDAAsD,EAAE,aAAa;CAC1E,gBAAgB;CAChB,kBAAkBA;CAClB,aAAaA;CACb,OAAO;CACP,SAAS;AACV,CAAC;AACyD,EAAE,aAAa;CACxE,UAAUA,8BAA4B,IAAI,GAAG;CAC7C,aAAaA,8BAA4B,IAAI,GAAG;CAChD,SAAS;CACT,eAAe;AAChB,CAAC;AACD,MAAM,4CAA4C,EAAE,aAAa;CAChE,UAAUA,8BAA4B,IAAI,GAAG;CAC7C,gBAAgB;CACh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