openmeld 0.3.265 → 0.3.267
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/dist/{add-me-membership-C-hYgI77.js → add-me-membership-CVitWAvM.js} +2 -2
- package/dist/{add-me-membership-C-hYgI77.js.map → add-me-membership-CVitWAvM.js.map} +1 -1
- package/dist/{agents-Md_F3Gra.js → agents-F_iMKQMx.js} +8 -8
- package/dist/{agents-Md_F3Gra.js.map → agents-F_iMKQMx.js.map} +1 -1
- package/dist/{api-client-foundation-C5ZaSjU1.js → api-client-foundation-BvouKgzy.js} +5 -5
- package/dist/{api-client-foundation-C5ZaSjU1.js.map → api-client-foundation-BvouKgzy.js.map} +1 -1
- package/dist/{api-client-foundation-BF1pLt74.js → api-client-foundation-IW-NHLFs.js} +1 -1
- package/dist/auth-session-CbgSdpUw.js +3 -0
- package/dist/{auth-session-CBj_4DTC.js → auth-session-DdKYfcTd.js} +2 -2
- package/dist/{auth-session-CBj_4DTC.js.map → auth-session-DdKYfcTd.js.map} +1 -1
- package/dist/{channel-CXHi8I41.js → channel-CyxGZZoL.js} +3 -3
- package/dist/{channel-CXHi8I41.js.map → channel-CyxGZZoL.js.map} +1 -1
- package/dist/{cloud-computer-PyyF6Hyd.js → cloud-computer-bdiIAGMh.js} +4 -4
- package/dist/{cloud-computer-PyyF6Hyd.js.map → cloud-computer-bdiIAGMh.js.map} +1 -1
- package/dist/{command-BHM28-OM.js → command-DojmfRBr.js} +16 -16
- package/dist/{command-BHM28-OM.js.map → command-DojmfRBr.js.map} +1 -1
- package/dist/{computer-connection-review-uyI9Yf7d.js → computer-connection-review-CzFi6jR7.js} +4 -4
- package/dist/{computer-connection-review-uyI9Yf7d.js.map → computer-connection-review-CzFi6jR7.js.map} +1 -1
- package/dist/{computer-disconnect-SxPwgwKA.js → computer-disconnect-Dcyzw5dK.js} +6 -6
- package/dist/{computer-disconnect-SxPwgwKA.js.map → computer-disconnect-Dcyzw5dK.js.map} +1 -1
- package/dist/{computer-setup-continuation-DWQq1-wU.js → computer-setup-continuation-BZMqpaOJ.js} +3 -3
- package/dist/{computer-setup-continuation-DWQq1-wU.js.map → computer-setup-continuation-BZMqpaOJ.js.map} +1 -1
- package/dist/{computer-update-wait-aNTYop7y.js → computer-update-wait-CYLkQ0bZ.js} +2 -2
- package/dist/{computer-update-wait-aNTYop7y.js.map → computer-update-wait-CYLkQ0bZ.js.map} +1 -1
- package/dist/{context-CPcfgM2v.js → context-DZDM_qxZ.js} +5 -5
- package/dist/{context-CPcfgM2v.js.map → context-DZDM_qxZ.js.map} +1 -1
- package/dist/{daemon-device-id-CWNSDLn0.js → daemon-device-id-inMyF5ja.js} +3 -3
- package/dist/{daemon-device-id-CWNSDLn0.js.map → daemon-device-id-inMyF5ja.js.map} +1 -1
- package/dist/{daemon-lifecycle-journal-BeR-Ee6p.js → daemon-lifecycle-journal-BH8zeHI4.js} +3 -3
- package/dist/{daemon-lifecycle-journal-BeR-Ee6p.js.map → daemon-lifecycle-journal-BH8zeHI4.js.map} +1 -1
- package/dist/{daemon-service-runtime-CoGRqEcr.js → daemon-service-runtime-JyvS9oaS.js} +2 -2
- package/dist/{daemon-service-runtime-CoGRqEcr.js.map → daemon-service-runtime-JyvS9oaS.js.map} +1 -1
- package/dist/{daemon-service-update-coordinator-CeYEqTZJ.js → daemon-service-update-coordinator-OS-U-RHH.js} +12 -12
- package/dist/{daemon-service-update-coordinator-CeYEqTZJ.js.map → daemon-service-update-coordinator-OS-U-RHH.js.map} +1 -1
- package/dist/{dispatch-owned-runtime-CMfcYCiq.js → dispatch-owned-runtime-CGnMTFSh.js} +11 -11
- package/dist/dispatch-owned-runtime-CGnMTFSh.js.map +1 -0
- package/dist/dist-BIRxdACi.js +34 -0
- package/dist/{dist-C419okuW.js → dist-CLaPWoWc.js} +3 -3
- package/dist/dist-CLaPWoWc.js.map +1 -0
- package/dist/{dist-BcOBjT4x.js → dist-Cdj9kcbj.js} +2 -2
- package/dist/{dist-BcOBjT4x.js.map → dist-Cdj9kcbj.js.map} +1 -1
- package/dist/{dist-D0TMjWq1.js → dist-CwcyTyxS.js} +4 -4
- package/dist/{dist-D0TMjWq1.js.map → dist-CwcyTyxS.js.map} +1 -1
- package/dist/{dist-C0dh3mDJ.js → dist-anHhJ1vT.js} +3 -3
- package/dist/{dist-CHI5ut7F.js → dist-gCy54pfG.js} +1 -1
- package/dist/{dual-view-guide-catalog-DQQ0POxk.js → dual-view-guide-catalog-DOa4AfY5.js} +3 -3
- package/dist/{dual-view-guide-catalog-DQQ0POxk.js.map → dual-view-guide-catalog-DOa4AfY5.js.map} +1 -1
- package/dist/{entry-BHFQs9Av.js → entry-LJyrWCwR.js} +7 -7
- package/dist/{entry-BHFQs9Av.js.map → entry-LJyrWCwR.js.map} +1 -1
- package/dist/{installation-inventory-BnTaYkma.js → installation-inventory-uQok-1rK.js} +3 -3
- package/dist/{installation-inventory-BnTaYkma.js.map → installation-inventory-uQok-1rK.js.map} +1 -1
- package/dist/{installer-Dg4Te7cR.js → installer-Dq3bNnrN.js} +2 -2
- package/dist/{installer-Dg4Te7cR.js.map → installer-Dq3bNnrN.js.map} +1 -1
- package/dist/{meta-api-khtBq4Wb.js → meta-api-DKaW4zYC.js} +8 -8
- package/dist/{meta-api-khtBq4Wb.js.map → meta-api-DKaW4zYC.js.map} +1 -1
- package/dist/{openmeld-Dd7Xf2d9.js → openmeld-Cwv-yfCx.js} +40 -40
- package/dist/{openmeld-Dd7Xf2d9.js.map → openmeld-Cwv-yfCx.js.map} +1 -1
- package/dist/{openmeld-maintenance-worker-R2jXfotf.js → openmeld-maintenance-worker-BMTMD8SZ.js} +9 -9
- package/dist/{openmeld-maintenance-worker-R2jXfotf.js.map → openmeld-maintenance-worker-BMTMD8SZ.js.map} +1 -1
- package/dist/openmeld.js +5 -5
- package/dist/{prepare-provider-runtime-rTByjw6W.js → prepare-provider-runtime-Yoil0psr.js} +11 -11
- package/dist/prepare-provider-runtime-Yoil0psr.js.map +1 -0
- package/dist/{prepare-session-executor-1R0oGDG9.js → prepare-session-executor-CPjBJSXD.js} +16 -16
- package/dist/{prepare-session-executor-1R0oGDG9.js.map → prepare-session-executor-CPjBJSXD.js.map} +1 -1
- package/dist/{process-channel-cCYyQbxG.js → process-channel-BZ3IprPb.js} +2 -2
- package/dist/{process-channel-cCYyQbxG.js.map → process-channel-BZ3IprPb.js.map} +1 -1
- package/dist/{runtime-Ca-ntwQs.js → runtime-CqGzVm1N.js} +19 -19
- package/dist/{runtime-Ca-ntwQs.js.map → runtime-CqGzVm1N.js.map} +1 -1
- package/dist/{runtime-agent-controller-reporting-submission-Dtp3kora.js → runtime-agent-controller-reporting-submission-D9pMCHuO.js} +10 -10
- package/dist/runtime-agent-controller-reporting-submission-D9pMCHuO.js.map +1 -0
- package/dist/{runtime-transport-DZ6xufQ_.js → runtime-transport-CzsmHWDa.js} +2 -2
- package/dist/{runtime-transport-DZ6xufQ_.js.map → runtime-transport-CzsmHWDa.js.map} +1 -1
- package/dist/{sensitive-operation-credentials-CUDbLNiK.js → sensitive-operation-credentials-CmDLTj46.js} +4 -4
- package/dist/{sensitive-operation-credentials-CUDbLNiK.js.map → sensitive-operation-credentials-CmDLTj46.js.map} +1 -1
- package/dist/{service-vTpkcASU.js → service-BCeEKP6s.js} +19 -19
- package/dist/{service-vTpkcASU.js.map → service-BCeEKP6s.js.map} +1 -1
- package/dist/{service-account-authorization-D1BoJBbZ.js → service-account-authorization-4yg8JCS-.js} +2 -2
- package/dist/{service-account-authorization-D1BoJBbZ.js.map → service-account-authorization-4yg8JCS-.js.map} +1 -1
- package/dist/{service-account-control-Dn0qsjos.js → service-account-control-B7glNprY.js} +8 -8
- package/dist/{service-account-control-Dn0qsjos.js.map → service-account-control-B7glNprY.js.map} +1 -1
- package/dist/{service-control-capabilities-BS6Nv5h0.js → service-control-capabilities-CgHPIANR.js} +2 -2
- package/dist/{service-control-capabilities-BS6Nv5h0.js.map → service-control-capabilities-CgHPIANR.js.map} +1 -1
- package/dist/{service-control-capabilities-DvKisnUW.js → service-control-capabilities-D3eSmbYs.js} +1 -1
- package/dist/{state-Cp9cnsPW.js → state-BclB40b1.js} +2 -2
- package/dist/{state-Cp9cnsPW.js.map → state-BclB40b1.js.map} +1 -1
- package/dist/{task-result-6WL2KgsT.js → task-result-Cft38W1I.js} +25 -5
- package/dist/task-result-Cft38W1I.js.map +1 -0
- package/dist/{updates-api-B9DPJB3W.js → updates-api-muCTUcL0.js} +14 -14
- package/dist/{updates-api-B9DPJB3W.js.map → updates-api-muCTUcL0.js.map} +1 -1
- package/dist/upgrade-D1mfVr67.js +3 -0
- package/dist/{upgrade-DpqDEfNJ.js → upgrade-mGx6_7pJ.js} +6 -6
- package/dist/{upgrade-DpqDEfNJ.js.map → upgrade-mGx6_7pJ.js.map} +1 -1
- package/dist/windows/openmeld-windows-process.exe +0 -0
- package/package.json +15 -15
- package/dist/auth-session-ByALWu67.js +0 -3
- package/dist/dispatch-owned-runtime-CMfcYCiq.js.map +0 -1
- package/dist/dist-C419okuW.js.map +0 -1
- package/dist/dist-DoxDNCZs.js +0 -34
- package/dist/prepare-provider-runtime-rTByjw6W.js.map +0 -1
- package/dist/runtime-agent-controller-reporting-submission-Dtp3kora.js.map +0 -1
- package/dist/task-result-6WL2KgsT.js.map +0 -1
- package/dist/upgrade-9hoVjYTU.js +0 -3
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-result-6WL2KgsT.js","names":["z$1","reference","z$1","z$1","nonEmptyStringSchema","z$1","z$1","z$1","z$1","z$1","z$1","z$1","z$1","z$1","z$1","z$1","z$1"],"sources":["../../../packages/schemas/dist/schemas/protocol/constants.js","../../../packages/schemas/dist/schemas/http/space-files.js","../../../packages/schemas/dist/agent-recovery-action.js","../../../packages/schemas/dist/schemas/protocol/profile-folders.js","../../../packages/schemas/dist/schemas/protocol/request-chain.js","../../../packages/schemas/dist/schemas/protocol/execution-context.js","../../../packages/schemas/dist/schemas/runtime/openconnector-runtime.js","../../../packages/schemas/dist/schemas/http/connector-connections.js","../../../packages/schemas/dist/navigation-action.js","../../../packages/schemas/dist/schemas/protocol/message-envelope.js","../../../packages/schemas/dist/schemas/space-mesh/space-thread.js","../../../packages/schemas/dist/schemas/protocol/core-readiness-facts-changed.js","../../../packages/schemas/dist/schemas/protocol/signal-reply-to.js","../../../packages/schemas/dist/schemas/space-mesh/signal-status.js","../../../packages/schemas/dist/runtime-coordinator-reason-code.js","../../../packages/schemas/dist/public-agent-failure-reason.js","../../../packages/schemas/dist/schemas/ai-billing.js","../../../packages/schemas/dist/schemas/ai-usage.js","../../../packages/schemas/dist/schemas/space-mesh/agent-reply-placement.js","../../../packages/schemas/dist/schemas/space-mesh/openmeld-space-action.js","../../../packages/schemas/dist/schemas/daemon/task-result.js"],"sourcesContent":["//#region src/schemas/protocol/constants.ts\nconst MAX_PROFILE_ID_LENGTH = 64;\nconst MAX_VISITED_PROFILE_IDS = 256;\nconst MAX_PROFILE_NAME_LENGTH = 64;\nconst MAX_TEXT_LENGTH = 1e5;\n//#endregion\nexport { MAX_PROFILE_ID_LENGTH, MAX_PROFILE_NAME_LENGTH, MAX_TEXT_LENGTH, MAX_VISITED_PROFILE_IDS };\n\n//# sourceMappingURL=constants.js.map","import { array, boolean, discriminatedUnion, enum as enumFactory, iso, literal, number, strictObject, string } from \"../../lazy-zod.js\";\nimport * as eagerZod from \"zod/v4\";\n//#region src/schemas/http/space-files.ts\nconst SPACE_FILE_MAX_SIZE_BYTES = 1073741824;\nconst CONTENT_DIGEST_PATTERN = /^[a-f0-9]{64}$/u;\nconst SPACE_FILE_RAW_UPLOAD_MAX_BYTES = 10485760;\nconst SPACE_FILE_MAX_TEXT_EDIT_SIZE_BYTES = 1048576;\nconst SPACE_FILE_MAX_NAME_LENGTH = 255;\nconst SPACE_FILE_MAX_FOLDER_DEPTH = 20;\nconst SPACE_MESSAGE_FILE_MAX_COUNT = 10;\nconst SPACE_COMPOSER_UPLOAD_TTL_MS = 864e5;\nconst SPACE_COMPOSER_UPLOAD_OBJECT_PREFIX = \"composer-uploads/v1/\";\nconst PATH_SEPARATOR_PATTERN = /[\\\\/]/u;\nconst MEDIA_TYPE_PATTERN = /^[a-z0-9][a-z0-9!#$&^_.+-]{0,126}\\/[a-z0-9][a-z0-9!#$&^_.+-]{0,126}$/u;\nconst MIME_TYPES_BY_EXTENSION = {\n\t\".csv\": \"text/csv\",\n\t\".diff\": \"text/plain\",\n\t\".gif\": \"image/gif\",\n\t\".html\": \"text/html\",\n\t\".jpeg\": \"image/jpeg\",\n\t\".jpg\": \"image/jpeg\",\n\t\".json\": \"application/json\",\n\t\".md\": \"text/markdown\",\n\t\".markdown\": \"text/markdown\",\n\t\".mp4\": \"video/mp4\",\n\t\".m4v\": \"video/mp4\",\n\t\".mov\": \"video/quicktime\",\n\t\".webm\": \"video/webm\",\n\t\".pdf\": \"application/pdf\",\n\t\".patch\": \"text/plain\",\n\t\".png\": \"image/png\",\n\t\".svg\": \"image/svg+xml\",\n\t\".txt\": \"text/plain\",\n\t\".xml\": \"application/xml\",\n\t\".yaml\": \"application/yaml\",\n\t\".yml\": \"application/yaml\"\n};\nconst scopeIdSchema = string().trim().min(1).max(512);\nconst spaceFileEntryIdSchema = eagerZod.string().trim().min(1).max(128);\nconst spaceFileRevisionIdSchema = string().trim().min(1).max(128);\nconst spaceFileClientMutationIdSchema = string().trim().min(1).max(128);\nconst spaceFileRevisionNumberSchema = eagerZod.number().int().min(1);\nconst spaceFileBaseRevisionSchema = number().int().min(1).nullable();\nconst spaceFileSizeBytesSchema = eagerZod.number().int().min(0).max(SPACE_FILE_MAX_SIZE_BYTES);\nconst spaceComposerUploadIdSchema = string().uuid();\n/**\n* The one canonical fact distinguishing a chat upload (sent as a message\n* attachment, from Web Composer or CLI `space send --file`) from an\n* artifact (deliberately created or uploaded straight into Files, or\n* written by an Agent). Set once at file creation and never changed by a\n* later revision, update, trash, or restore.\n*\n* A file created before this classification existed does not stay\n* unclassified: the schema migration that added this column deterministically\n* backfilled every pre-existing file row to `\"artifact\"`, because there is no\n* reliable signal in that historical data to recover a chat upload from\n* deliberately created work (both wrote through the identical path before\n* this column existed). A missing/`NULL` value on a file after that\n* migration is exceptional/corrupt data, not normal history; every read\n* path still fails closed on it — treats it as \"not a known artifact\" —\n* rather than guessing a classification for it.\n*/\nconst spaceFileOriginSchema = enumFactory([\"artifact\", \"chat_upload\"]);\n/**\n* Which files a Space Files list request includes. `\"artifact\"` (the\n* default) hides chat uploads to keep the list focused on deliberately\n* created or uploaded work; folders are always included. `\"all\"` also\n* includes chat uploads and any file whose origin is missing/`NULL`\n* (exceptional/corrupt data — see `spaceFileOriginSchema`, not normal\n* historical data, which is backfilled to `\"artifact\"`).\n*/\nconst spaceFileListOriginFilterSchema = enumFactory([\"artifact\", \"all\"]).default(\"artifact\");\n/**\n* The explicit capability token a Center Agent / Remote Agent RPC caller\n* sets to declare it understands `origin` on Space Files responses. Core's\n* RPC entrypoint methods strip `origin` from the response\n* (`toLegacySpaceFilesOriginWireValue`) unless the caller's request carries\n* this exact token, so an already-published Remote Agent build — which has\n* no field for this at all and therefore never sends it — keeps receiving\n* the pre-origin response shape it already knows how to parse. This is the\n* RPC-boundary analog of the `x-openmeld-space-files-origin-version` HTTP\n* header Gateway checks for Web/CLI callers; see the Space Files Origin\n* Classification Contract Impact Audit in\n* `developing/engineering/development-workflow.md`.\n*/\nconst SPACE_FILES_ORIGIN_CAPABILITY_TOKEN = \"origin_aware\";\nconst spaceFilesOriginCapabilitySchema = literal(SPACE_FILES_ORIGIN_CAPABILITY_TOKEN).optional();\n/**\n* Derives the opaque file identity for a retriable create mutation.\n* Reusing the mutation identity produces the same file identity.\n*/\nasync function buildSpaceFileEntryIdForMutation(clientMutationId) {\n\treturn await buildSpaceFileMutationStorageId({\n\t\tclientMutationId,\n\t\tkind: \"file\"\n\t});\n}\n/**\n* Derives one canonical file identity from the exact Composer publication.\n* Both bounded request identities are validated independently before hashing.\n*/\nasync function buildSpaceComposerPublishedFileId(input) {\n\treturn await buildSpaceFileStorageId({\n\t\tidentityParts: [\n\t\t\t\"composer-upload\",\n\t\t\tspaceFileClientMutationIdSchema.parse(input.clientMutationId),\n\t\t\tspaceComposerUploadIdSchema.parse(input.uploadId)\n\t\t],\n\t\tkind: \"file\"\n\t});\n}\n/**\n* Derives an immutable revision identity from both the mutation and its bytes.\n* Exact retries reuse the same object key, while changed bytes conflict instead\n* of overwriting an already committed revision.\n*/\nasync function buildSpaceFileRevisionIdForMutation(input) {\n\tconst contentDigest = await sha256Hex(input.bytes);\n\treturn await buildSpaceFileRevisionIdFromDigest({\n\t\t...input,\n\t\tcontentDigest\n\t});\n}\nasync function buildSpaceFileRevisionIdFromDigest(input) {\n\tconst contentDigest = string().regex(CONTENT_DIGEST_PATTERN).parse(input.contentDigest);\n\tconst revisionIdentity = JSON.stringify({\n\t\tbaseRevision: spaceFileBaseRevisionSchema.parse(input.baseRevision),\n\t\tcontentDigest,\n\t\tmimeType: spaceFileMimeTypeSchema.parse(input.mimeType),\n\t\tname: input.name === void 0 ? null : spaceFileNameSchema.parse(input.name),\n\t\tparentId: input.parentId === void 0 || input.parentId === null ? null : spaceFileEntryIdSchema.parse(input.parentId)\n\t});\n\treturn await buildSpaceFileMutationStorageId({\n\t\tclientMutationId: input.clientMutationId,\n\t\trevisionIdentity,\n\t\tkind: \"revision\"\n\t});\n}\nasync function buildSpaceFileMutationStorageId(input) {\n\treturn await buildSpaceFileStorageId({\n\t\tidentityParts: [spaceFileClientMutationIdSchema.parse(input.clientMutationId), input.revisionIdentity ?? \"\"],\n\t\tkind: input.kind\n\t});\n}\nasync function buildSpaceFileStorageId(input) {\n\tconst encoded = new TextEncoder().encode([\n\t\t\"space-file\",\n\t\tinput.kind,\n\t\t...input.identityParts\n\t].join(\":\"));\n\tconst bytes = new ArrayBuffer(encoded.byteLength);\n\tnew Uint8Array(bytes).set(encoded);\n\treturn `${input.kind}-${await sha256Hex(bytes)}`;\n}\nasync function sha256Hex(bytes) {\n\tconst digest = await crypto.subtle.digest(\"SHA-256\", bytes);\n\treturn Array.from(new Uint8Array(digest), (byte) => byte.toString(16).padStart(2, \"0\")).join(\"\");\n}\nconst spaceFileMimeTypeSchema = eagerZod.string().trim().toLowerCase().max(255).regex(MEDIA_TYPE_PATTERN, \"File type must be a valid media type.\");\nconst spaceFileNameSchema = eagerZod.string().trim().min(1).max(255).refine((value) => !PATH_SEPARATOR_PATTERN.test(value), { message: \"File names cannot contain path separators.\" }).refine((value) => !hasControlCharacter(value), { message: \"File names cannot contain control characters.\" }).refine((value) => value !== \".\" && value !== \"..\", { message: \"File names cannot be dot path segments.\" });\nconst spaceFileActorSchema = strictObject({\n\tprofileId: scopeIdSchema,\n\tprofileKind: enumFactory([\"human\", \"agent\"]),\n\tdisplayName: string().trim().min(1).max(200),\n\townerUserId: scopeIdSchema.optional()\n});\nconst spaceFileAuditOperationSchema = enumFactory([\n\t\"content_read\",\n\t\"content_write\",\n\t\"folder_create\",\n\t\"entry_update\",\n\t\"entry_trash\",\n\t\"entry_restore\"\n]);\nconst spaceFileAuditResultSchema = enumFactory([\"succeeded\", \"failed\"]);\nconst spaceFileAuditEventSchema = strictObject({\n\teventId: string().trim().min(1).max(2048),\n\toperationId: scopeIdSchema,\n\trequestId: scopeIdSchema,\n\torganizationId: scopeIdSchema,\n\tspaceId: scopeIdSchema,\n\tentryId: spaceFileEntryIdSchema,\n\trevisionId: spaceFileRevisionIdSchema.nullable(),\n\toperation: spaceFileAuditOperationSchema,\n\tactorKind: enumFactory([\n\t\t\"authenticated\",\n\t\t\"anonymous_viewer\",\n\t\t\"dispatch_continuation\"\n\t]),\n\tactorProfileId: scopeIdSchema.nullable(),\n\trepresentedHumanProfileId: scopeIdSchema.nullable(),\n\tresult: spaceFileAuditResultSchema,\n\terrorCode: string().trim().min(1).max(128).nullable(),\n\toccurredAtMs: number().int().nonnegative()\n}).superRefine((value, context) => {\n\tif (value.actorKind !== \"anonymous_viewer\" !== (value.actorProfileId !== null)) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Authenticated and dispatch actors require an actor Profile; anonymous viewers must not claim one.\",\n\t\tpath: [\"actorProfileId\"]\n\t});\n\tif (value.result === \"succeeded\" && value.errorCode !== null) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Successful Space File audit events cannot carry an error code.\",\n\t\tpath: [\"errorCode\"]\n\t});\n\tif (value.result === \"failed\" && value.errorCode === null) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Failed Space File audit events require an error code.\",\n\t\tpath: [\"errorCode\"]\n\t});\n});\n/** Optional for legacy/unsupported images; one complete display-oriented pair. */\nconst spaceFileImageDimensionsSchema = eagerZod.strictObject({\n\twidth: eagerZod.number().int().min(1).max(32768),\n\theight: eagerZod.number().int().min(1).max(32768)\n}).refine((value) => value.width * value.height <= 134217728, { message: \"Image geometry exceeds the supported display area.\" });\nconst spaceFileRevisionSchema = strictObject({\n\tid: spaceFileRevisionIdSchema,\n\tfileId: spaceFileEntryIdSchema,\n\trevision: spaceFileRevisionNumberSchema,\n\tmimeType: spaceFileMimeTypeSchema,\n\tsizeBytes: spaceFileSizeBytesSchema,\n\tcreatedAt: iso.datetime({ offset: true }),\n\tcreatedBy: spaceFileActorSchema,\n\timageDimensions: spaceFileImageDimensionsSchema.optional()\n});\n/**\n* Canonical Space File revision embedded in a message. `fileId` and\n* `revision` identify the immutable bytes; the remaining fields are the\n* server-resolved send-time presentation snapshot.\n*/\nconst spaceMessageFileReferenceSchema = eagerZod.strictObject({\n\tfileId: spaceFileEntryIdSchema,\n\trevision: spaceFileRevisionNumberSchema,\n\tname: spaceFileNameSchema,\n\tmimeType: spaceFileMimeTypeSchema,\n\tsizeBytes: spaceFileSizeBytesSchema,\n\timageDimensions: spaceFileImageDimensionsSchema.optional()\n});\nconst spaceMessageFileReferencesSchema = array(spaceMessageFileReferenceSchema).max(10);\nconst baseEntryShape = {\n\tid: spaceFileEntryIdSchema,\n\tspaceId: scopeIdSchema,\n\tparentId: spaceFileEntryIdSchema.nullable(),\n\tname: spaceFileNameSchema,\n\tpath: string().startsWith(\"/\").max(4096),\n\tcreatedAt: iso.datetime({ offset: true }),\n\tupdatedAt: iso.datetime({ offset: true }),\n\tcreatedBy: spaceFileActorSchema,\n\tupdatedBy: spaceFileActorSchema,\n\ttrashedAt: iso.datetime({ offset: true }).nullable().default(null),\n\ttrashedBy: spaceFileActorSchema.nullable().default(null)\n};\nconst spaceFolderDescriptorSchema = strictObject({\n\t...baseEntryShape,\n\tkind: literal(\"folder\")\n});\nconst spaceFileDescriptorSchema = strictObject({\n\t...baseEntryShape,\n\tkind: literal(\"file\"),\n\tlatestRevision: spaceFileRevisionSchema,\n\torigin: spaceFileOriginSchema.nullable().default(null)\n});\nconst spaceFileEntrySchema = discriminatedUnion(\"kind\", [spaceFolderDescriptorSchema, spaceFileDescriptorSchema]);\nconst spaceFileBreadcrumbSchema = strictObject({\n\tid: spaceFileEntryIdSchema.nullable(),\n\tname: string().trim().min(1).max(255)\n});\nconst spaceFileCapabilitiesSchema = strictObject({\n\tcanRead: literal(true),\n\tcanWrite: boolean()\n});\nconst listSpaceFilesQuerySchema = strictObject({\n\tparentId: spaceFileEntryIdSchema.nullable().optional(),\n\tview: enumFactory([\"active\", \"trash\"]).default(\"active\"),\n\torigin: spaceFileListOriginFilterSchema\n});\nconst listSpaceFilesResponseSchema = strictObject({\n\tspaceId: scopeIdSchema,\n\tparentId: spaceFileEntryIdSchema.nullable(),\n\tview: enumFactory([\"active\", \"trash\"]).default(\"active\"),\n\torigin: spaceFileListOriginFilterSchema,\n\tbreadcrumbs: array(spaceFileBreadcrumbSchema),\n\tentries: array(spaceFileEntrySchema),\n\tcapabilities: spaceFileCapabilitiesSchema\n});\nconst getSpaceFileResponseSchema = strictObject({ file: spaceFileDescriptorSchema });\nconst readSpaceFileTextResponseSchema = strictObject({\n\tfile: spaceFileDescriptorSchema,\n\trevision: spaceFileRevisionNumberSchema,\n\tcontent: string()\n});\nconst listSpaceFileRevisionsResponseSchema = strictObject({\n\tfile: spaceFileDescriptorSchema,\n\trevisions: array(spaceFileRevisionSchema)\n});\nconst createSpaceFolderBodySchema = strictObject({\n\tname: spaceFileNameSchema,\n\tparentId: spaceFileEntryIdSchema.nullable().optional(),\n\tclientMutationId: spaceFileClientMutationIdSchema\n});\nconst createSpaceFolderResponseSchema = strictObject({ folder: spaceFolderDescriptorSchema });\nconst updateSpaceFileEntryBodySchema = strictObject({\n\tname: spaceFileNameSchema.optional(),\n\tparentId: spaceFileEntryIdSchema.nullable().optional(),\n\tclientMutationId: spaceFileClientMutationIdSchema\n}).refine((value) => value.name !== void 0 || value.parentId !== void 0, { message: \"A new name or folder is required.\" });\nconst updateSpaceFileEntryResponseSchema = strictObject({ entry: spaceFileEntrySchema });\nconst trashSpaceFileEntryBodySchema = strictObject({ clientMutationId: spaceFileClientMutationIdSchema });\nconst trashSpaceFileEntryResponseSchema = strictObject({\n\tentryId: spaceFileEntryIdSchema,\n\ttrashedAt: iso.datetime({ offset: true })\n});\nconst restoreSpaceFileEntryBodySchema = strictObject({ clientMutationId: spaceFileClientMutationIdSchema });\nconst restoreSpaceFileEntryResponseSchema = strictObject({ entry: spaceFileEntrySchema });\nconst restoreSpaceFileRevisionBodySchema = strictObject({\n\tbaseRevision: spaceFileRevisionNumberSchema,\n\tclientMutationId: spaceFileClientMutationIdSchema\n});\nconst restoreSpaceFileRevisionResponseSchema = strictObject({ file: spaceFileDescriptorSchema });\nconst queryIntegerSchema = string().trim().regex(/^\\d+$/u).transform(Number);\nconst createSpaceFileUploadQuerySchema = strictObject({\n\tname: spaceFileNameSchema,\n\tparentId: spaceFileEntryIdSchema.optional(),\n\tclientMutationId: spaceFileClientMutationIdSchema,\n\torigin: spaceFileOriginSchema.optional()\n});\nconst updateSpaceFileContentQuerySchema = strictObject({\n\tbaseRevision: queryIntegerSchema.pipe(spaceFileRevisionNumberSchema),\n\tclientMutationId: spaceFileClientMutationIdSchema\n});\nconst uploadSpaceFileResponseSchema = strictObject({ file: spaceFileDescriptorSchema });\n/**\n* Temporary bytes selected in a Composer. This is deliberately not a Space\n* File descriptor: the upload becomes a canonical root Space File only when\n* the user sends the message.\n*/\nconst spaceComposerUploadDescriptorSchema = strictObject({\n\tid: spaceComposerUploadIdSchema,\n\tname: spaceFileNameSchema,\n\tmimeType: spaceFileMimeTypeSchema,\n\tsizeBytes: spaceFileSizeBytesSchema,\n\texpiresAt: iso.datetime({ offset: true })\n});\nconst stageSpaceComposerUploadQuerySchema = strictObject({ name: spaceFileNameSchema });\nconst stageSpaceComposerUploadResponseSchema = strictObject({ upload: spaceComposerUploadDescriptorSchema });\nconst publishSpaceComposerUploadBodySchema = strictObject({ clientMutationId: spaceFileClientMutationIdSchema });\nconst publishSpaceComposerUploadResponseSchema = strictObject({ file: spaceFileDescriptorSchema });\nconst discardSpaceComposerUploadResponseSchema = strictObject({\n\tuploadId: spaceComposerUploadIdSchema,\n\tdiscarded: literal(true)\n});\nconst resolveSpaceComposerUploadScopeResponseSchema = strictObject({\n\torganizationId: scopeIdSchema,\n\tactorProfileId: scopeIdSchema\n});\nconst spaceFileContentQuerySchema = strictObject({ revision: queryIntegerSchema.pipe(spaceFileRevisionNumberSchema).optional() });\nconst SPACE_FILE_ERROR_CODES = [\n\t\"space_file.conflict\",\n\t\"space_file.folder_not_empty\",\n\t\"space_file.invalid_parent\",\n\t\"space_file.name_conflict\",\n\t\"space_file.not_found\",\n\t\"space_file.storage_failed\",\n\t\"space_file.too_large\",\n\t\"space_file.type_unsupported\"\n];\nconst spaceFileMutationErrorCodeSchema = enumFactory(SPACE_FILE_ERROR_CODES);\nconst spaceFileMutationErrorResponseSchema = strictObject({ error: strictObject({\n\tcode: spaceFileMutationErrorCodeSchema,\n\tmessage: string().trim().min(1).max(500),\n\tcurrentFile: spaceFileDescriptorSchema.optional()\n}) });\nconst prepareSpaceFileWriteInputSchema = strictObject({\n\tspaceId: scopeIdSchema,\n\tfileId: spaceFileEntryIdSchema,\n\trevisionId: spaceFileRevisionIdSchema,\n\tname: spaceFileNameSchema.optional(),\n\tparentId: spaceFileEntryIdSchema.nullable().optional(),\n\tbaseRevision: spaceFileBaseRevisionSchema,\n\tclientMutationId: spaceFileClientMutationIdSchema,\n\tmimeType: spaceFileMimeTypeSchema,\n\tsizeBytes: spaceFileSizeBytesSchema,\n\torigin: spaceFileOriginSchema.optional(),\n\texpectedAudienceProfileIds: array(string().min(1).max(256)).min(1).max(100).optional()\n});\nconst prepareSpaceFileWriteResponseSchema = strictObject({\n\torganizationId: scopeIdSchema,\n\tspaceId: scopeIdSchema,\n\tfileId: spaceFileEntryIdSchema,\n\trevisionId: spaceFileRevisionIdSchema,\n\tobjectKey: string().trim().min(1).max(4096),\n\tcommittedFile: spaceFileDescriptorSchema.optional()\n});\nconst commitSpaceFileWriteInputSchema = prepareSpaceFileWriteInputSchema;\nconst resolveSpaceFileContentInputSchema = strictObject({\n\tspaceId: scopeIdSchema,\n\tfileId: spaceFileEntryIdSchema,\n\trevision: spaceFileRevisionNumberSchema.optional()\n});\nconst resolveSpaceFileContentResponseSchema = strictObject({\n\tfile: spaceFileDescriptorSchema,\n\trevision: spaceFileRevisionSchema,\n\torganizationId: scopeIdSchema,\n\tobjectKey: string().trim().min(1).max(4096)\n});\nfunction buildSpaceFileObjectKey(input) {\n\treturn `org/${input.organizationId}/space/${input.spaceId}/files/${input.fileId}/revisions/${input.revisionId}`;\n}\nfunction buildSpaceComposerUploadObjectKey(input) {\n\tconst uploadId = spaceComposerUploadIdSchema.parse(input.uploadId);\n\treturn `${SPACE_COMPOSER_UPLOAD_OBJECT_PREFIX}org/${encodeURIComponent(input.organizationId)}/space/${encodeURIComponent(input.spaceId)}/profile/${encodeURIComponent(input.actorProfileId)}/${uploadId}`;\n}\nfunction isSpaceFileTextEditable(input) {\n\treturn input.sizeBytes <= 1048576 && (input.mimeType.startsWith(\"text/\") || input.mimeType === \"application/json\" || input.mimeType === \"application/yaml\" || input.mimeType === \"application/x-yaml\" || input.mimeType === \"application/xml\");\n}\nfunction resolveSpaceFileMimeType(input) {\n\tconst declaredMimeType = input.declaredMimeType?.trim().toLowerCase();\n\tif (declaredMimeType) return declaredMimeType;\n\tconst fileName = input.fileName.toLowerCase();\n\tconst extensionStart = fileName.lastIndexOf(\".\");\n\tconst extension = extensionStart >= 0 ? fileName.slice(extensionStart) : \"\";\n\treturn MIME_TYPES_BY_EXTENSION[extension] ?? \"application/octet-stream\";\n}\n/** Read eligibility does not grant browser editing or change stored metadata. */\nfunction isSpaceFileTextReadable(input) {\n\treturn isSpaceFileTextEditable({\n\t\tmimeType: resolveSpaceFileMimeType({\n\t\t\tdeclaredMimeType: input.mimeType === \"application/octet-stream\" ? void 0 : input.mimeType,\n\t\t\tfileName: input.fileName\n\t\t}),\n\t\tsizeBytes: input.sizeBytes ?? 0\n\t});\n}\n/** A text-compatible name/MIME is a hint, never proof that bytes are text. */\nfunction decodeSpaceFileText(bytes) {\n\tif (bytes.byteLength > 1048576) throw new Error(\"This file exceeds the 1 MiB text read limit.\");\n\tconst content = new TextDecoder(\"utf-8\", { fatal: true }).decode(bytes);\n\tif (content.includes(\"\\0\")) throw new Error(\"This file contains binary NUL bytes. Download it instead.\");\n\treturn content;\n}\nasync function readSpaceFileTextStream(stream) {\n\tconst reader = stream.getReader();\n\tconst chunks = [];\n\tlet size = 0;\n\ttry {\n\t\tfor (;;) {\n\t\t\tconst { value, done } = await reader.read();\n\t\t\tif (done) break;\n\t\t\tsize += value.byteLength;\n\t\t\tif (size > 1048576) {\n\t\t\t\tawait reader.cancel();\n\t\t\t\tthrow new Error(\"This file exceeds the 1 MiB text read limit. Download it instead.\");\n\t\t\t}\n\t\t\tchunks.push(value);\n\t\t}\n\t} finally {\n\t\treader.releaseLock();\n\t}\n\tconst bytes = new Uint8Array(size);\n\tlet offset = 0;\n\tfor (const chunk of chunks) {\n\t\tbytes.set(chunk, offset);\n\t\toffset += chunk.byteLength;\n\t}\n\treturn decodeSpaceFileText(bytes.buffer);\n}\nfunction hasControlCharacter(value) {\n\treturn Array.from(value).some((character) => {\n\t\tconst codePoint = character.codePointAt(0) ?? 0;\n\t\treturn codePoint <= 31 || codePoint === 127;\n\t});\n}\n//#endregion\nexport { SPACE_COMPOSER_UPLOAD_OBJECT_PREFIX, SPACE_COMPOSER_UPLOAD_TTL_MS, SPACE_FILES_ORIGIN_CAPABILITY_TOKEN, SPACE_FILE_ERROR_CODES, SPACE_FILE_MAX_FOLDER_DEPTH, SPACE_FILE_MAX_NAME_LENGTH, SPACE_FILE_MAX_SIZE_BYTES, SPACE_FILE_MAX_TEXT_EDIT_SIZE_BYTES, SPACE_FILE_RAW_UPLOAD_MAX_BYTES, SPACE_MESSAGE_FILE_MAX_COUNT, buildSpaceComposerPublishedFileId, buildSpaceComposerUploadObjectKey, buildSpaceFileEntryIdForMutation, buildSpaceFileObjectKey, buildSpaceFileRevisionIdForMutation, buildSpaceFileRevisionIdFromDigest, commitSpaceFileWriteInputSchema, createSpaceFileUploadQuerySchema, createSpaceFolderBodySchema, createSpaceFolderResponseSchema, decodeSpaceFileText, discardSpaceComposerUploadResponseSchema, getSpaceFileResponseSchema, isSpaceFileTextEditable, isSpaceFileTextReadable, listSpaceFileRevisionsResponseSchema, listSpaceFilesQuerySchema, listSpaceFilesResponseSchema, prepareSpaceFileWriteInputSchema, prepareSpaceFileWriteResponseSchema, publishSpaceComposerUploadBodySchema, publishSpaceComposerUploadResponseSchema, readSpaceFileTextResponseSchema, readSpaceFileTextStream, resolveSpaceComposerUploadScopeResponseSchema, resolveSpaceFileContentInputSchema, resolveSpaceFileContentResponseSchema, resolveSpaceFileMimeType, restoreSpaceFileEntryBodySchema, restoreSpaceFileEntryResponseSchema, restoreSpaceFileRevisionBodySchema, restoreSpaceFileRevisionResponseSchema, spaceComposerUploadDescriptorSchema, spaceComposerUploadIdSchema, spaceFileActorSchema, spaceFileAuditEventSchema, spaceFileAuditOperationSchema, spaceFileAuditResultSchema, spaceFileBaseRevisionSchema, spaceFileBreadcrumbSchema, spaceFileCapabilitiesSchema, spaceFileClientMutationIdSchema, spaceFileContentQuerySchema, spaceFileDescriptorSchema, spaceFileEntryIdSchema, spaceFileEntrySchema, spaceFileImageDimensionsSchema, spaceFileListOriginFilterSchema, spaceFileMimeTypeSchema, spaceFileMutationErrorCodeSchema, spaceFileMutationErrorResponseSchema, spaceFileNameSchema, spaceFileOriginSchema, spaceFileRevisionIdSchema, spaceFileRevisionNumberSchema, spaceFileRevisionSchema, spaceFileSizeBytesSchema, spaceFilesOriginCapabilitySchema, spaceFolderDescriptorSchema, spaceMessageFileReferenceSchema, spaceMessageFileReferencesSchema, stageSpaceComposerUploadQuerySchema, stageSpaceComposerUploadResponseSchema, trashSpaceFileEntryBodySchema, trashSpaceFileEntryResponseSchema, updateSpaceFileContentQuerySchema, updateSpaceFileEntryBodySchema, updateSpaceFileEntryResponseSchema, uploadSpaceFileResponseSchema };\n\n//# sourceMappingURL=space-files.js.map","//#region src/agent-recovery-action.ts\nconst agentRecoveryActionLabels = {\n\tchange_model: \"Change model\",\n\tcheck_status: \"Check status\",\n\tchoose_local_agent: \"Choose local agent\",\n\tconnect_openmeld_service: \"Connect Computer\",\n\tconnect_local_agent: \"Connect local agent\",\n\tcontinue_in_default_folder: \"Continue in the default folder\",\n\tmanage_local_agent: \"Update or change local agent\",\n\tmanage_cursor_plan: \"Manage Cursor plan\",\n\treconnect_openmeld_service: \"Reconnect Computer\",\n\treconnect_local_agent: \"Reconnect local agent\",\n\treview_agent_permissions: \"Review Agent Profile permissions\",\n\treview_agent_settings: \"Review agent settings\",\n\tturn_on_local_agent: \"Turn on local agent\",\n\tupdate_openmeld_service: \"Update OpenMeld on Computer\",\n\tupdate_openmeld_skills: \"Update OpenMeld skills\"\n};\nfunction formatAgentRecoveryActionLabel(actionId) {\n\treturn agentRecoveryActionLabels[actionId];\n}\nfunction isAgentRecoveryConnectionAction(actionId) {\n\treturn actionId === \"connect_openmeld_service\" || actionId === \"reconnect_openmeld_service\" || actionId === \"connect_local_agent\" || actionId === \"reconnect_local_agent\";\n}\n//#endregion\nexport { agentRecoveryActionLabels, formatAgentRecoveryActionLabel, isAgentRecoveryConnectionAction };\n\n//# sourceMappingURL=agent-recovery-action.js.map","import { profileWorkingDirectorySchema } from \"./profile.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/protocol/profile-folders.ts\nconst MAX_PROFILE_FOLDERS = 32;\nconst MAX_PROFILE_FOLDER_DISPLAY_NAME_LENGTH = 120;\nconst profileFolderIdSchema = z$1.uuid();\nconst profileFolderKindSchema = z$1.enum([\n\t\"custom\",\n\t\"project\",\n\t\"openmeld_managed\"\n]);\nconst profileFolderDisplayNameSchema = z$1.string().trim().min(1).max(120);\nconst profileFolderProjectIdSchema = z$1.string().trim().min(1).max(256);\n/**\n* Cloud-safe folder fact. It has no path field by design: Core, Web and the\n* Center Agent choose folders by id and display name only.\n*/\nconst profileFolderProjectionEntrySchema = z$1.strictObject({\n\tfolderId: profileFolderIdSchema,\n\tkind: profileFolderKindSchema,\n\tdisplayName: profileFolderDisplayNameSchema,\n\tisDefault: z$1.boolean(),\n\tprojectId: z$1.string().trim().min(1).max(256).optional()\n}).refine((entry) => entry.kind === \"project\" === Boolean(entry.projectId), {\n\tmessage: \"Only a Project folder carries its Project id.\",\n\tpath: [\"projectId\"]\n});\nconst profileFolderProjectionSchema = z$1.strictObject({\n\tfolders: z$1.array(profileFolderProjectionEntrySchema).max(32),\n\tdefaultFolderId: profileFolderIdSchema.nullable(),\n\trevision: z$1.number().int().nonnegative()\n}).superRefine((value, context) => {\n\tif (new Set(value.folders.map((folder) => folder.folderId)).size !== value.folders.length) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Folder ids must be unique.\",\n\t\tpath: [\"folders\"]\n\t});\n\tconst defaults = value.folders.filter((folder) => folder.isDefault);\n\tif (value.defaultFolderId === null ? defaults.length !== 0 : defaults.length !== 1 || defaults[0]?.folderId !== value.defaultFolderId) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Exactly the default folder must be marked as default.\",\n\t\tpath: [\"defaultFolderId\"]\n\t});\n});\nconst optionalDisplayName = { displayName: profileFolderDisplayNameSchema.optional() };\n/** Owner-requested folder change, carried from Core to the exact Service. */\nconst profileFolderOperationSchema = z$1.discriminatedUnion(\"operation\", [\n\tz$1.strictObject({ operation: z$1.literal(\"list\") }),\n\tz$1.strictObject({\n\t\toperation: z$1.literal(\"add_custom\"),\n\t\tpath: profileWorkingDirectorySchema,\n\t\t...optionalDisplayName\n\t}),\n\tz$1.strictObject({\n\t\toperation: z$1.literal(\"add_project\"),\n\t\torganizationId: z$1.string().trim().min(1).max(256),\n\t\tprojectId: profileFolderProjectIdSchema,\n\t\t...optionalDisplayName\n\t}),\n\tz$1.strictObject({\n\t\toperation: z$1.literal(\"add_openmeld_managed\"),\n\t\t...optionalDisplayName\n\t}),\n\tz$1.strictObject({\n\t\toperation: z$1.literal(\"set_default\"),\n\t\tfolderId: profileFolderIdSchema\n\t}),\n\tz$1.strictObject({\n\t\toperation: z$1.literal(\"remove\"),\n\t\tfolderId: profileFolderIdSchema,\n\t\tnextDefaultFolderId: profileFolderIdSchema.optional()\n\t}),\n\tz$1.strictObject({\n\t\toperation: z$1.literal(\"rename\"),\n\t\tfolderId: profileFolderIdSchema,\n\t\tdisplayName: profileFolderDisplayNameSchema\n\t}),\n\tz$1.strictObject({\n\t\toperation: z$1.literal(\"repair\"),\n\t\tfolder: z$1.discriminatedUnion(\"kind\", [z$1.strictObject({ kind: z$1.literal(\"openmeld_managed\") }), z$1.strictObject({\n\t\t\tkind: z$1.literal(\"custom\"),\n\t\t\tpath: profileWorkingDirectorySchema\n\t\t})])\n\t})\n]);\nconst profileFolderOperationReasonCodeSchema = z$1.enum([\n\t\"profile_folder.not_found\",\n\t\"profile_folder.default_removal_requires_replacement\",\n\t\"profile_folder.project_default_unsupported\",\n\t\"profile_folder.project_not_connected\",\n\t\"profile_folder.limit_reached\",\n\t\"profile_folder.path_invalid\",\n\t\"profile_folder.configuration_invalid\",\n\t\"profile_folder.operation_failed\"\n]);\n//#endregion\nexport { MAX_PROFILE_FOLDERS, MAX_PROFILE_FOLDER_DISPLAY_NAME_LENGTH, profileFolderDisplayNameSchema, profileFolderIdSchema, profileFolderKindSchema, profileFolderOperationReasonCodeSchema, profileFolderOperationSchema, profileFolderProjectionEntrySchema, profileFolderProjectionSchema };\n\n//# sourceMappingURL=profile-folders.js.map"," \nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/protocol/request-chain.ts\nconst reference = z$1.string().trim().min(1).max(2048);\n/**\n* The most distinct Agents one chain can hold. It equals the visited-list\n* ceiling, so the chain is never stricter than the Auto-Relay Loop Policy.\n* A conversational revisit does not add an entry, so rounds are unbounded.\n*/\nconst REQUEST_CHAIN_MAX_AGENTS = 256;\nconst requestChainHumanEntrySchema = z$1.strictObject({\n\tkind: z$1.literal(\"human\"),\n\tprofileId: reference\n});\nconst requestChainSourceEntrySchema = z$1.strictObject({\n\tkind: z$1.literal(\"source\"),\n\tsource: z$1.enum([\"routine\"]),\n\tsourceId: reference\n});\nconst requestChainAgentEntrySchema = z$1.strictObject({\n\tkind: z$1.literal(\"agent\"),\n\tprofileId: reference\n});\nconst requestChainEntrySchema = z$1.discriminatedUnion(\"kind\", [\n\trequestChainHumanEntrySchema,\n\trequestChainSourceEntrySchema,\n\trequestChainAgentEntrySchema\n]);\n/**\n* `[root human, optional source marker, Agent, Agent, ...]`. The first entry\n* is the human root requester; each Agent appears at most once.\n*/\nconst requestChainSchema = z$1.array(requestChainEntrySchema).min(1).max(258).superRefine((chain, context) => {\n\tif (chain[0]?.kind !== \"human\") {\n\t\tcontext.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"A request chain starts with its human root requester.\"\n\t\t});\n\t\treturn;\n\t}\n\tconst agents = /* @__PURE__ */ new Set();\n\tfor (const [index, entry] of chain.entries()) {\n\t\tif (index === 0) continue;\n\t\tif (entry.kind === \"human\") {\n\t\t\tcontext.addIssue({\n\t\t\t\tcode: \"custom\",\n\t\t\t\tmessage: \"A request chain has exactly one human root requester.\"\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tif (entry.kind === \"source\" && index !== 1) {\n\t\t\tcontext.addIssue({\n\t\t\t\tcode: \"custom\",\n\t\t\t\tmessage: \"A source marker directly follows the root requester.\"\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tif (entry.kind === \"agent\") {\n\t\t\tif (agents.has(entry.profileId)) {\n\t\t\t\tcontext.addIssue({\n\t\t\t\t\tcode: \"custom\",\n\t\t\t\t\tmessage: \"An Agent appears at most once in a request chain.\"\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tagents.add(entry.profileId);\n\t\t}\n\t}\n\tif (agents.size > REQUEST_CHAIN_MAX_AGENTS) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"The request chain has too many Agents.\"\n\t});\n});\n//#endregion\nexport { REQUEST_CHAIN_MAX_AGENTS, requestChainAgentEntrySchema, requestChainEntrySchema, requestChainHumanEntrySchema, requestChainSchema, requestChainSourceEntrySchema };\n\n//# sourceMappingURL=request-chain.js.map","import { repositoryFingerprintSchema } from \"../http/projects.js\";\nimport { profileFolderIdSchema } from \"./profile-folders.js\";\nimport { requestChainSchema } from \"./request-chain.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/protocol/execution-context.ts\nconst reference = z$1.string().trim().min(1).max(2048);\nconst executionContextGitMetadataSchema = z$1.strictObject({\n\tcommonDirectoryPointerPath: reference,\n\tconfigPath: reference,\n\tgitDirectoryPointerPath: reference,\n\thooksPath: reference,\n\tworktreeConfigPath: reference,\n\tworktreeGitPointerPath: reference\n});\nconst executionContextAccessSchema = z$1.enum([\n\t\"space_context\",\n\t\"read_only\",\n\t\"workspace\"\n]);\nconst workspace = z$1.enum([\"current\", \"isolated\"]);\nconst executionContextWorkspaceDefaultSchema = z$1.literal(\"isolated_if_git\");\nconst executionContextDiagnosticsSchema = z$1.discriminatedUnion(\"readStatus\", [z$1.strictObject({\n\treadStatus: z$1.literal(\"found\"),\n\tcontextId: z$1.string().uuid().nullable(),\n\taccess: executionContextAccessSchema,\n\tpermissionSource: z$1.enum([\"agent_settings\", \"context_restriction\"]),\n\tworkspace\n}), z$1.strictObject({\n\treadStatus: z$1.enum([\"not_recorded\", \"authority_unavailable\"]),\n\treasonCode: z$1.string().trim().min(1).max(160)\n})]);\nconst executionContextProjectWorkSchema = z$1.strictObject({\n\tprojectId: reference,\n\trepositoryFingerprint: repositoryFingerprintSchema,\n\tcommit: z$1.string().regex(/^(?:[a-f0-9]{40}|[a-f0-9]{64})$/u).optional()\n});\nconst folderId = profileFolderIdSchema.optional();\nconst preferences = {\n\taccess: executionContextAccessSchema.optional(),\n\tfolderId,\n\tprojectWork: executionContextProjectWorkSchema.optional(),\n\tworkspace: workspace.optional()\n};\nconst executionContextSelectionSchema = z$1.discriminatedUnion(\"mode\", [\n\tz$1.strictObject({\n\t\tmode: z$1.literal(\"auto\"),\n\t\t...preferences\n\t}),\n\tz$1.strictObject({\n\t\tmode: z$1.literal(\"new\"),\n\t\t...preferences\n\t}),\n\tz$1.strictObject({\n\t\tmode: z$1.literal(\"resume\"),\n\t\tsourceWakeId: reference\n\t}),\n\tz$1.strictObject({\n\t\tmode: z$1.literal(\"fork\"),\n\t\tsourceWakeId: reference,\n\t\t...preferences\n\t})\n]);\nconst executionContextScopeSchema = z$1.strictObject({\n\torganizationId: reference,\n\trequesterProfileId: reference,\n\tspaceId: reference,\n\ttargetProfileId: reference,\n\tthreadId: reference.nullable()\n});\nconst executionContextRequestSchema = z$1.strictObject({\n\trequired: z$1.boolean().optional(),\n\townerRequested: z$1.literal(true).optional(),\n\trequestChain: requestChainSchema.optional(),\n\tscope: executionContextScopeSchema,\n\tselection: executionContextSelectionSchema,\n\tworkspaceDefault: executionContextWorkspaceDefaultSchema.optional()\n});\nconst executionContextAssignmentSchema = z$1.strictObject({\n\tversion: z$1.literal(1),\n\tid: z$1.string().uuid(),\n\tscope: executionContextScopeSchema,\n\taccess: executionContextAccessSchema,\n\tfolderId,\n\tprojectWork: executionContextProjectWorkSchema.optional(),\n\tpermissionSource: z$1.literal(\"agent_settings\").optional(),\n\trequestChain: requestChainSchema.optional(),\n\tworkspace,\n\tworkspaceDefault: executionContextWorkspaceDefaultSchema.optional(),\n\tforkSource: z$1.strictObject({\n\t\tcontextId: z$1.string().uuid(),\n\t\tsourceWakeId: reference,\n\t\tnativeConversationId: reference,\n\t\tcompletedHistoryId: reference.optional(),\n\t\truntimeWorkspaceFingerprint: reference,\n\t\tworkspace,\n\t\tfolderId\n\t}).optional()\n}).refine((context) => !context.permissionSource || context.access === \"workspace\", { message: \"Task restrictions cannot inherit broader Agent permissions.\" });\nconst executionContextCompletionSchema = z$1.strictObject({\n\tcontextId: z$1.string().uuid(),\n\tnativeConversationId: reference,\n\truntimeWorkspaceFingerprint: reference,\n\tcompletedHistoryId: reference.optional(),\n\tworkspace: workspace.optional()\n});\nconst executionContextLegacyAssociationSchema = z$1.strictObject({\n\tid: reference,\n\tbindingId: reference,\n\tconfigurationRevision: z$1.number().int().positive(),\n\tagentControllerRef: reference,\n\topenMeldServiceRuntimeId: reference,\n\tnativeConversationId: reference.nullable(),\n\tscope: z$1.literal(\"legacy_unclassified\")\n});\nconst executionContextTaskSchema = executionContextAssignmentSchema.safeExtend({\n\tlegacyAssociation: executionContextLegacyAssociationSchema.optional(),\n\tnativeConversationId: reference.nullable(),\n\truntimeWorkspaceFingerprint: reference.nullable()\n});\n//#endregion\nexport { executionContextAccessSchema, executionContextAssignmentSchema, executionContextCompletionSchema, executionContextDiagnosticsSchema, executionContextGitMetadataSchema, executionContextLegacyAssociationSchema, executionContextProjectWorkSchema, executionContextRequestSchema, executionContextScopeSchema, executionContextSelectionSchema, executionContextTaskSchema, executionContextWorkspaceDefaultSchema };\n\n//# sourceMappingURL=execution-context.js.map","import * as z$1 from \"zod/v4\";\n//#region src/schemas/runtime/openconnector-runtime.ts\nconst nonEmptyStringSchema = z$1.string().trim().min(1);\nconst jsonSchemaObjectSchema = z$1.record(z$1.string(), z$1.unknown());\nconst pluginConnectionHealthSchema = z$1.strictObject({\n\tstate: z$1.enum([\n\t\t\"unknown\",\n\t\t\"ready\",\n\t\t\"refresh_required\",\n\t\t\"reconnect_required\"\n\t]),\n\tobservedAt: z$1.string().datetime(),\n\texpiresAt: z$1.string().nullable(),\n\treason: z$1.string().nullable()\n});\nconst pluginNativeHttpSchema = z$1.strictObject({\n\tbaseUrl: z$1.string().url(),\n\tdocumentationUrl: z$1.string().url(),\n\tauth: z$1.record(z$1.string(), z$1.unknown()),\n\theaders: z$1.record(z$1.string(), z$1.string()).optional(),\n\tcli: z$1.strictObject({\n\t\tcommand: nonEmptyStringSchema,\n\t\tbaseUrlEnvironment: nonEmptyStringSchema,\n\t\ttokenEnvironment: nonEmptyStringSchema,\n\t\taccountEnvironment: nonEmptyStringSchema.optional()\n\t}).optional(),\n\tread: z$1.array(z$1.strictObject({\n\t\tmethod: z$1.enum([\"GET\", \"POST\"]),\n\t\tpath: nonEmptyStringSchema,\n\t\trequiredPermissions: z$1.array(nonEmptyStringSchema).optional(),\n\t\tbodySchema: jsonSchemaObjectSchema.optional(),\n\t\ttimeWindow: z$1.strictObject({\n\t\t\tfrom: nonEmptyStringSchema,\n\t\t\tto: nonEmptyStringSchema,\n\t\t\tmaxMilliseconds: z$1.number().positive()\n\t\t}).optional()\n\t}))\n});\nconst pluginConnectionDescriptionSchema = z$1.strictObject({\n\tservice: nonEmptyStringSchema,\n\tconnection: z$1.object({\n\t\tconnectionName: nonEmptyStringSchema,\n\t\thealth: pluginConnectionHealthSchema,\n\t\tprofile: z$1.object({\n\t\t\taccountId: z$1.string(),\n\t\t\tdisplayName: z$1.string()\n\t\t})\n\t}).optional(),\n\tnativeHttp: pluginNativeHttpSchema.nullable()\n});\nconst OPENCONNECTOR_RUNTIME_ACTION_CONTRACT_VERSION = 1;\nconst openConnectorRuntimeActionEffectSchema = z$1.enum([\n\t\"destructive\",\n\t\"read\",\n\t\"write\"\n]);\nconst openConnectorRuntimeActionExecutionSchema = z$1.strictObject({\n\tcatalogOnly: z$1.boolean(),\n\tlocallyExecutable: z$1.boolean(),\n\tneedsCredential: z$1.boolean(),\n\tnoAuthRunnable: z$1.boolean(),\n\trequiredAuthTypes: z$1.array(z$1.enum([\n\t\t\"no_auth\",\n\t\t\"api_key\",\n\t\t\"custom_credential\",\n\t\t\"oauth2\"\n\t]))\n}).superRefine((execution, context) => {\n\tif (execution.catalogOnly === execution.locallyExecutable) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"OpenConnector action execution must be either locally executable or catalog-only.\",\n\t\tpath: [\"locallyExecutable\"]\n\t});\n\tif (execution.needsCredential === execution.noAuthRunnable) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"OpenConnector action credential requirements are inconsistent.\",\n\t\tpath: [\"needsCredential\"]\n\t});\n});\nconst openConnectorRuntimeActionSchema = z$1.strictObject({\n\tasyncLifecycle: z$1.strictObject({\n\t\tcancelActionId: nonEmptyStringSchema.optional(),\n\t\tstartActionId: nonEmptyStringSchema,\n\t\tstatusActionId: nonEmptyStringSchema\n\t}).nullable(),\n\tdescription: nonEmptyStringSchema,\n\teffect: openConnectorRuntimeActionEffectSchema.optional(),\n\texecution: openConnectorRuntimeActionExecutionSchema,\n\tfollowUpActions: z$1.array(z$1.strictObject({ actionId: nonEmptyStringSchema })),\n\tid: nonEmptyStringSchema,\n\tinputSchema: jsonSchemaObjectSchema,\n\tname: nonEmptyStringSchema,\n\toperationType: openConnectorRuntimeActionEffectSchema.optional(),\n\toutputSchema: jsonSchemaObjectSchema,\n\tproviderPermissions: z$1.array(nonEmptyStringSchema),\n\trequiredScopes: z$1.array(nonEmptyStringSchema),\n\tservice: nonEmptyStringSchema\n});\nconst openConnectorRuntimeActionListSchema = z$1.array(openConnectorRuntimeActionSchema);\nconst openConnectorRuntimeActionSearchResultSchema = z$1.strictObject({\n\tauthenticated: z$1.boolean(),\n\tdescription: nonEmptyStringSchema,\n\teffect: openConnectorRuntimeActionEffectSchema.optional(),\n\tid: nonEmptyStringSchema,\n\tinputSchema: jsonSchemaObjectSchema,\n\tname: nonEmptyStringSchema,\n\toperationType: openConnectorRuntimeActionEffectSchema.optional(),\n\toutputSchema: jsonSchemaObjectSchema,\n\tservice: nonEmptyStringSchema\n});\nconst openConnectorRuntimeActionSearchResultListSchema = z$1.array(openConnectorRuntimeActionSearchResultSchema);\nconst openConnectorRuntimeActionOperationMetaSchema = z$1.strictObject({\n\tactionId: nonEmptyStringSchema,\n\tauditPersisted: z$1.boolean(),\n\texecutionId: nonEmptyStringSchema\n});\nconst openConnectorRuntimeActionSuccessEnvelopeSchema = z$1.strictObject({\n\tdata: z$1.json(),\n\tmessage: z$1.literal(\"OK\"),\n\tmeta: openConnectorRuntimeActionOperationMetaSchema,\n\toutputSchema: jsonSchemaObjectSchema.optional(),\n\tsuccess: z$1.literal(true)\n});\n//#endregion\nexport { OPENCONNECTOR_RUNTIME_ACTION_CONTRACT_VERSION, openConnectorRuntimeActionEffectSchema, openConnectorRuntimeActionExecutionSchema, openConnectorRuntimeActionListSchema, openConnectorRuntimeActionOperationMetaSchema, openConnectorRuntimeActionSchema, openConnectorRuntimeActionSearchResultListSchema, openConnectorRuntimeActionSearchResultSchema, openConnectorRuntimeActionSuccessEnvelopeSchema, pluginConnectionDescriptionSchema, pluginConnectionHealthSchema, pluginNativeHttpSchema };\n\n//# sourceMappingURL=openconnector-runtime.js.map","import { array, boolean, discriminatedUnion, enum as enumFactory, literal, number, object, record, strictObject, string, url } from \"../../lazy-zod.js\";\nimport { pluginConnectionHealthSchema } from \"../runtime/openconnector-runtime.js\";\n//#region src/schemas/http/connector-connections.ts\nconst CENTER_AGENT_APP_CONNECTOR_SERVICES = [\n\t\"feishu\",\n\t\"lark\",\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\"];\n/** Account-wide mail, calendar and meeting access remains member-private.\n* Other catalog providers support both ownership scopes; Agent permissions\n* still apply to every connection. No provider currently requires shared-only.\n*/\nconst CONNECTOR_PERSONAL_ONLY_SERVICES = [\n\t\"gmail\",\n\t\"outlook\",\n\t\"outlook_calendar\",\n\t\"googlecalendar\",\n\t\"googlemeet\",\n\t\"zoom\"\n];\nfunction connectorConnectionScopeAllowed(service, scope) {\n\treturn scope === \"member\" || !CONNECTOR_PERSONAL_ONLY_SERVICES.includes(service);\n}\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 = string().trim().min(1);\nconst timestampMsSchema = number().int().nonnegative();\nconst connectorCredentialValueSchema = string().min(1).max(8192);\nconst connectorAppRequestOptionalTextSchema = string().trim().min(1).max(2e3).nullable();\nconst connectorAppRequestedCapabilitiesSchema = array(string().trim().min(1).max(80)).max(12);\n/** Provider identity comes from OpenConnector, not a product-maintained list. */\nconst connectorServiceSchema = string().regex(/^[a-z][a-z0-9_-]{0,99}$/u);\nconst connectorServicesResponseSchema = object({ services: array(connectorServiceSchema) });\nconst connectorConnectionStatusSchema = enumFactory(CONNECTOR_CONNECTION_STATUSES);\nconst connectorConnectionScopeSchema = enumFactory(CONNECTOR_CONNECTION_SCOPES);\nconst connectorConnectionPreferenceSchema = enumFactory(CONNECTOR_CONNECTION_PREFERENCES);\nconst connectorAppRequestSourceSchema = enumFactory(CONNECTOR_APP_REQUEST_SOURCES);\nconst connectorAppRequestStatusSchema = enumFactory(CONNECTOR_APP_REQUEST_STATUSES);\nconst connectorConnectionNameSchema = string().regex(/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,63}$/u);\nconst githubAppInstallationStateSchema = string().regex(/^githubapp_[0-9a-f]{64}$/u);\nconst githubAppInstallationIdSchema = string().regex(/^[1-9][0-9]*$/u);\nconst connectorConnectionSchema = strictObject({\n\thealth: pluginConnectionHealthSchema.optional(),\n\tcanDisconnect: 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 = strictObject({\n\tconnections: array(connectorConnectionSchema),\n\tcurrentUserId: trimmedNonEmptyStringSchema,\n\torganizationId: trimmedNonEmptyStringSchema\n});\nconst connectorAppRequestSchema = strictObject({\n\tavailableAtMs: timestampMsSchema.nullable(),\n\tcreatedAtMs: timestampMsSchema,\n\tid: string().trim().min(1).max(128),\n\tnotifiedAtMs: timestampMsSchema.nullable(),\n\torganizationId: trimmedNonEmptyStringSchema,\n\tproviderId: string().trim().min(1).max(160).nullable(),\n\tproviderName: 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 = strictObject({\n\tproviderId: string().trim().min(1).max(160).nullable().optional(),\n\tproviderName: 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 Plugin 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 Plugin request cannot include a provider ID.\",\n\t\tpath: [\"providerId\"]\n\t});\n});\nconst connectorAppRequestResponseSchema = strictObject({ request: connectorAppRequestSchema });\nconst connectorAppRequestListResponseSchema = strictObject({\n\tcurrentUserId: trimmedNonEmptyStringSchema,\n\torganizationId: trimmedNonEmptyStringSchema,\n\trequests: array(connectorAppRequestSchema).max(500)\n});\nconst connectorAppCatalogProviderSchema = strictObject({\n\tconnectionAuth: object({\n\t\toauth: boolean(),\n\t\tcredentials: array(object({\n\t\t\tauthType: enumFactory([\"api_key\", \"custom_credential\"]),\n\t\t\tfields: array(object({\n\t\t\t\tkey: string(),\n\t\t\t\tlabel: string(),\n\t\t\t\tdescription: string(),\n\t\t\t\tplaceholder: string().optional(),\n\t\t\t\tsecret: boolean(),\n\t\t\t\tinputType: enumFactory([\n\t\t\t\t\t\"text\",\n\t\t\t\t\t\"password\",\n\t\t\t\t\t\"textarea\",\n\t\t\t\t\t\"json\"\n\t\t\t\t]).optional(),\n\t\t\t\trequired: boolean()\n\t\t\t}))\n\t\t}))\n\t}).optional(),\n\tauthTypes: array(string().trim().min(1).max(80)).max(12),\n\tcategories: array(strictObject({\n\t\tdisplayName: string().trim().min(1).max(120),\n\t\tid: string().trim().min(1).max(120)\n\t})).max(12),\n\tdisplayName: string().trim().min(1).max(120),\n\thomepageUrl: url().nullable(),\n\ticonUrl: url().nullable(),\n\tservice: string().trim().min(1).max(160)\n});\nconst connectorAppCatalogResponseSchema = strictObject({\n\torganizationId: trimmedNonEmptyStringSchema,\n\tproviders: array(connectorAppCatalogProviderSchema).max(5e3)\n});\nconst connectorAuthorizationStartResponseSchema = strictObject({\n\tauthorizationUrl: url(),\n\tconnection: connectorConnectionSchema,\n\texpiresAtMs: timestampMsSchema.optional()\n});\nconst githubAppInstallationStartResponseSchema = strictObject({\n\tconnection: connectorConnectionSchema,\n\texpiresAtMs: timestampMsSchema,\n\tstate: githubAppInstallationStateSchema,\n\tverificationConnectionName: connectorConnectionNameSchema\n});\nconst githubAppInstallationSetupQuerySchema = strictObject({\n\tinstallation_id: githubAppInstallationIdSchema,\n\tsetup_action: string().trim().min(1).max(64).optional(),\n\tstate: githubAppInstallationStateSchema\n});\nconst githubAppInstallationVerificationResponseSchema = discriminatedUnion(\"status\", [\n\tstrictObject({\n\t\tactorProfileId: trimmedNonEmptyStringSchema,\n\t\tinstallationId: githubAppInstallationIdSchema,\n\t\torganizationId: trimmedNonEmptyStringSchema,\n\t\tstatus: literal(\"valid\"),\n\t\ttargetConnectionName: connectorConnectionNameSchema,\n\t\tuserId: trimmedNonEmptyStringSchema,\n\t\tverificationConnectionName: connectorConnectionNameSchema\n\t}),\n\tstrictObject({ status: literal(\"expired\") }),\n\tstrictObject({ status: literal(\"invalid\") })\n]);\nconst pendingGitHubAppInstallationSchema = strictObject({\n\tinstallationId: githubAppInstallationIdSchema.nullable(),\n\torganizationId: trimmedNonEmptyStringSchema,\n\tstatus: enumFactory([\"installing\", \"verifying\"]),\n\ttargetConnectionName: connectorConnectionNameSchema,\n\tuserId: trimmedNonEmptyStringSchema,\n\tverificationConnectionName: connectorConnectionNameSchema\n}).nullable();\nconst connectorCredentialAuthTypeSchema = enumFactory([\"api_key\", \"custom_credential\"]);\nconst connectorCredentialConnectBodySchema = strictObject({\n\tauthType: connectorCredentialAuthTypeSchema,\n\tvalues: record(string().regex(/^[a-zA-Z][a-zA-Z0-9_]{0,63}$/u), connectorCredentialValueSchema).refine((values) => Object.keys(values).length <= 16, { message: \"Too many credential values.\" })\n}).refine(({ authType, values }) => authType === \"custom_credential\" || Object.keys(values).length > 0, {\n\tmessage: \"At least one API key value is required.\",\n\tpath: [\"values\"]\n});\nconst connectorCredentialConnectResponseSchema = strictObject({ connection: connectorConnectionSchema });\nconst connectorOrganizationContextQuerySchema = strictObject({\n\tincludeMessageContext: enumFactory([\"true\", \"false\"]).optional(),\n\tincludeConnectionHealth: literal(\"true\").optional(),\n\texpectedOrganizationId: trimmedNonEmptyStringSchema,\n\tincludeAuthorizationExpiry: literal(\"true\").optional()\n});\nconst connectorDisconnectBodySchema = strictObject({ userId: trimmedNonEmptyStringSchema });\nconst connectorDisconnectResponseSchema = strictObject({ connection: connectorConnectionSchema });\nconst connectorConnectionReconcileInputSchema = strictObject({\n\tavailableConnectionNames: array(connectorConnectionNameSchema).max(500),\n\tservice: connectorServiceSchema\n});\nconst centerAgentConnectorConnectionSelectionSchema = strictObject({\n\tpermission: enumFactory([\"read\", \"write\"]).optional(),\n\tconnection: connectorConnectionSchema.nullable(),\n\tselection: enumFactory([\"requester\", \"shared\"]).nullable()\n});\nconst centerAgentResolveConnectorConnectionBodySchema = strictObject({\n\tconnectionPreference: connectorConnectionPreferenceSchema.optional(),\n\tincludeAccessPolicy: literal(true).optional(),\n\tincludeDelegatedRequester: literal(true).optional(),\n\trequesterUserId: string().nullable(),\n\tservice: connectorServiceSchema\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_PERSONAL_ONLY_SERVICES, CONNECTOR_SERVICES, buildConnectorAppRequestProviderKey, centerAgentConnectorConnectionSelectionSchema, centerAgentResolveConnectorConnectionBodySchema, connectorAppCatalogProviderSchema, connectorAppCatalogResponseSchema, connectorAppRequestListResponseSchema, connectorAppRequestResponseSchema, connectorAppRequestSchema, connectorAppRequestSourceSchema, connectorAppRequestStatusSchema, connectorAuthorizationStartResponseSchema, connectorConnectionListResponseSchema, connectorConnectionNameSchema, connectorConnectionPreferenceSchema, connectorConnectionReconcileInputSchema, connectorConnectionSchema, connectorConnectionScopeAllowed, connectorConnectionScopeSchema, connectorConnectionStatusSchema, connectorCredentialAuthTypeSchema, connectorCredentialConnectBodySchema, connectorCredentialConnectResponseSchema, connectorDisconnectBodySchema, connectorDisconnectResponseSchema, connectorOrganizationContextQuerySchema, connectorServiceSchema, connectorServicesResponseSchema, createConnectorAppRequestBodySchema, githubAppInstallationIdSchema, githubAppInstallationSetupQuerySchema, githubAppInstallationStartResponseSchema, githubAppInstallationStateSchema, githubAppInstallationVerificationResponseSchema, pendingGitHubAppInstallationSchema };\n\n//# sourceMappingURL=connector-connections.js.map","import { connectorServiceSchema } from \"./schemas/http/connector-connections.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/navigation-action.ts\nconst nonEmptyStringSchema = z$1.string().trim().min(1);\nconst LOCAL_WEB_URL = \"http://localhost\";\nconst TRAILING_SLASH_PATTERN = /\\/+$/u;\nconst computerSetupModeSchema = z$1.enum([\n\t\"setup\",\n\t\"reconnect\",\n\t\"update_service\"\n]);\nconst openMeldWebUrlSchema = z$1.url().refine((value) => {\n\tconst protocol = new URL(value).protocol;\n\treturn protocol === \"http:\" || protocol === \"https:\";\n}, \"OpenMeld Web URL must use HTTP or HTTPS.\");\nconst computerSetupNavigationTargetSchema = z$1.discriminatedUnion(\"mode\", [\n\tz$1.strictObject({\n\t\tkind: z$1.literal(\"computer_setup\"),\n\t\tmode: z$1.literal(\"setup\")\n\t}),\n\tz$1.strictObject({\n\t\tconnectedComputerId: nonEmptyStringSchema,\n\t\tkind: z$1.literal(\"computer_setup\"),\n\t\tmode: z$1.literal(\"reconnect\")\n\t}),\n\tz$1.strictObject({\n\t\tconnectedComputerId: nonEmptyStringSchema,\n\t\tkind: z$1.literal(\"computer_setup\"),\n\t\tmode: z$1.literal(\"update_service\")\n\t})\n]);\nconst openMeldNavigationTargetSchema = z$1.union([\n\tz$1.strictObject({\n\t\tkind: z$1.literal(\"plugin_connection\"),\n\t\tservice: connectorServiceSchema,\n\t\tscope: z$1.enum([\n\t\t\t\"member\",\n\t\t\t\"shared\",\n\t\t\t\"choose\"\n\t\t])\n\t}),\n\tz$1.strictObject({\n\t\tkind: z$1.literal(\"organization_app\"),\n\t\tservice: z$1.literal(\"github\")\n\t}),\n\tz$1.strictObject({\n\t\tkind: z$1.literal(\"space\"),\n\t\tspaceId: nonEmptyStringSchema\n\t}),\n\tz$1.strictObject({ kind: z$1.literal(\"projects\") }),\n\tz$1.strictObject({\n\t\tkind: z$1.literal(\"project\"),\n\t\tprojectId: nonEmptyStringSchema\n\t}),\n\tz$1.strictObject({ kind: z$1.literal(\"slack_identity_link\") }),\n\tz$1.strictObject({\n\t\tconnectToUserId: nonEmptyStringSchema.optional(),\n\t\tkind: z$1.literal(\"message_channel_identity_link\"),\n\t\tpurpose: z$1.enum([\"continue_request\", \"optional_setup\"]),\n\t\trequestedAction: nonEmptyStringSchema.max(160).optional()\n\t}),\n\tcomputerSetupNavigationTargetSchema\n]);\nconst navigationActionSchema = z$1.strictObject({\n\tlabel: nonEmptyStringSchema,\n\ttarget: openMeldNavigationTargetSchema,\n\turl: openMeldWebUrlSchema\n});\nfunction buildOrganizationRootPath(orgSlug) {\n\treturn `/o/${encodePathSegment(nonEmptyStringSchema.parse(orgSlug))}`;\n}\nfunction buildOrganizationPluginsPath(orgSlug) {\n\treturn `${buildOrganizationRootPath(orgSlug)}/plugins`;\n}\nfunction buildOrganizationPluginPath(input) {\n\treturn `${buildOrganizationPluginsPath(input.orgSlug)}/${encodePathSegment(nonEmptyStringSchema.parse(input.service))}`;\n}\nfunction buildOrganizationSpacePath(input) {\n\tconst url = new URL(`${buildOrganizationRootPath(input.orgSlug)}/spaces/${encodePathSegment(nonEmptyStringSchema.parse(input.spaceId))}`, LOCAL_WEB_URL);\n\tfor (const [key, value] of Object.entries(input.search ?? {})) if (typeof value === \"string\" && value.trim().length > 0) url.searchParams.set(key, value);\n\treturn `${url.pathname}${url.search}`;\n}\nfunction buildOpenMeldOrganizationWebUrl(input) {\n\tconst organizationSlug = nonEmptyStringSchema.parse(input.organizationSlug);\n\tconst url = parseHttpUrl(input.webAppUrl, \"Web app URL\");\n\turl.hash = \"\";\n\turl.pathname = buildOrganizationRootPath(organizationSlug);\n\turl.search = \"\";\n\treturn url.toString();\n}\nfunction buildOpenMeldNavigationAction(input) {\n\tconst target = openMeldNavigationTargetSchema.parse(input.target);\n\tconst url = parseHttpUrl(input.organizationWebUrl, \"Organization Web URL\");\n\turl.hash = \"\";\n\turl.search = \"\";\n\tconst organizationPath = url.pathname.replace(TRAILING_SLASH_PATTERN, \"\");\n\tlet label;\n\tswitch (target.kind) {\n\t\tcase \"plugin_connection\":\n\t\t\tlabel = \"Open Plugin connection\";\n\t\t\turl.pathname = `${organizationPath}/plugins/${encodePathSegment(target.service)}`;\n\t\t\tif (target.scope !== \"choose\") url.searchParams.set(\"scope\", target.scope === \"member\" ? \"personal\" : \"organization\");\n\t\t\tbreak;\n\t\tcase \"organization_app\":\n\t\t\tlabel = \"Open GitHub access\";\n\t\t\turl.pathname = `${organizationPath}/center-agent/plugins/${encodePathSegment(target.service)}`;\n\t\t\tbreak;\n\t\tcase \"space\":\n\t\t\tlabel = \"Open this Space\";\n\t\t\turl.pathname = `${organizationPath}/spaces/${encodePathSegment(target.spaceId)}`;\n\t\t\tbreak;\n\t\tcase \"projects\":\n\t\t\tlabel = \"Open Projects\";\n\t\t\turl.pathname = `${organizationPath}/projects`;\n\t\t\tbreak;\n\t\tcase \"project\":\n\t\t\tlabel = \"Open this Project\";\n\t\t\turl.pathname = `${organizationPath}/projects/${encodePathSegment(target.projectId)}`;\n\t\t\tbreak;\n\t\tcase \"slack_identity_link\": throw new TypeError(\"Slack identity-link actions must be issued by OpenMeld Core.\");\n\t\tcase \"message_channel_identity_link\": throw new TypeError(\"Message Channel identity-link actions must be issued by OpenMeld Core.\");\n\t\tcase \"computer_setup\":\n\t\t\turl.pathname = `${organizationPath}/connect`;\n\t\t\tif (target.mode === \"setup\") {\n\t\t\t\tlabel = \"Connect this computer\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\turl.searchParams.set(\"connectedComputerId\", target.connectedComputerId);\n\t\t\turl.searchParams.set(\"session\", \"fresh\");\n\t\t\tif (target.mode === \"reconnect\") {\n\t\t\t\tlabel = \"Reconnect this computer\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlabel = \"Update OpenMeld on Computer\";\n\t\t\turl.searchParams.set(\"serviceAction\", \"update_service\");\n\t\t\turl.searchParams.sort();\n\t\t\tbreak;\n\t\tdefault: return unreachableNavigationTarget(target);\n\t}\n\treturn navigationActionSchema.parse({\n\t\tlabel,\n\t\ttarget,\n\t\turl: url.toString()\n\t});\n}\nfunction buildSlackIdentityLinkNavigationAction(input) {\n\tnonEmptyStringSchema.parse(input.organizationName);\n\tconst token = nonEmptyStringSchema.parse(input.token);\n\tconst url = parseHttpUrl(input.webAppUrl, \"Web app URL\");\n\turl.hash = \"\";\n\turl.pathname = \"/link-slack\";\n\turl.search = \"\";\n\turl.searchParams.set(\"token\", token);\n\treturn navigationActionSchema.parse({\n\t\tlabel: input.purpose === \"optional_setup\" ? \"Connect my account\" : \"Connect my account and continue\",\n\t\ttarget: {\n\t\t\tkind: \"message_channel_identity_link\",\n\t\t\tpurpose: input.purpose ?? \"continue_request\"\n\t\t},\n\t\turl: url.toString()\n\t});\n}\nfunction unreachableNavigationTarget(target) {\n\tthrow new TypeError(`Unsupported OpenMeld navigation target: ${target}`);\n}\nfunction encodePathSegment(value) {\n\treturn encodeURIComponent(value);\n}\nfunction parseHttpUrl(value, label) {\n\tconst result = openMeldWebUrlSchema.safeParse(value);\n\tif (!result.success) throw new TypeError(`${label} must use HTTP or HTTPS.`);\n\treturn new URL(result.data);\n}\n//#endregion\nexport { buildOpenMeldNavigationAction, buildOpenMeldOrganizationWebUrl, buildOrganizationPluginPath, buildOrganizationPluginsPath, buildOrganizationRootPath, buildOrganizationSpacePath, buildSlackIdentityLinkNavigationAction, computerSetupModeSchema, computerSetupNavigationTargetSchema, navigationActionSchema, openMeldNavigationTargetSchema, openMeldWebUrlSchema };\n\n//# sourceMappingURL=navigation-action.js.map","import { MAX_TEXT_LENGTH } from \"./constants.js\";\nimport { trimmedStringFromUnknown } from \"./shared.js\";\nimport { openMeldRuntimeProfileIdSchema } from \"./profile.js\";\nimport { navigationActionSchema } from \"../../navigation-action.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/protocol/message-envelope.ts\nconst MULTI_SPACE_PATTERN = /\\s+/g;\nconst CANONICAL_MENTION_LITERAL_PATTERN = /^@(?<name>.+)\\((?<type>wake|reference|mention)\\)$/u;\nconst RELATION_TEXT_PATTERN = /\\((wake|reference|mention|cc)\\)/gu;\nconst WORD_CHARACTER_PATTERN = /\\w/u;\nconst SPACE_MESSAGE_ADDRESSING_RELATION_VALUES = [\n\t\"wake\",\n\t\"reference\",\n\t\"mention\"\n];\nconst MESSAGE_MENTION_TYPE_VALUES = SPACE_MESSAGE_ADDRESSING_RELATION_VALUES;\nconst MESSAGE_ENVELOPE_TARGET_FIELD_VALUES = [\n\t\"activationTargets\",\n\t\"referenceTargets\",\n\t\"mentionTargets\"\n];\nconst SPACE_MESSAGE_ADDRESSING_TARGET_FIELD_VALUES = MESSAGE_ENVELOPE_TARGET_FIELD_VALUES;\nconst SPACE_MESSAGE_ADDRESSING_TARGET_KIND_VALUES = [\"human_profile\", \"agent_profile\"];\nconst spaceMessageAddressingRelationSchema = z$1.enum(SPACE_MESSAGE_ADDRESSING_RELATION_VALUES);\nconst messageMentionTypeSchema = spaceMessageAddressingRelationSchema;\nconst messageEnvelopeTargetFieldSchema = z$1.enum(MESSAGE_ENVELOPE_TARGET_FIELD_VALUES);\nconst spaceMessageAddressingTargetKindSchema = z$1.enum(SPACE_MESSAGE_ADDRESSING_TARGET_KIND_VALUES);\nconst MESSAGE_ENVELOPE_TARGET_FIELD_BY_MENTION_TYPE = {\n\twake: \"activationTargets\",\n\treference: \"referenceTargets\",\n\tmention: \"mentionTargets\"\n};\nconst SPACE_MESSAGE_ADDRESSING_TARGET_KIND_SUPPORT_BY_RELATION = {\n\twake: [\"agent_profile\"],\n\treference: [\"agent_profile\"],\n\tmention: [\"human_profile\"]\n};\nconst normalizeCanonicalMentionName = (value) => {\n\tconst normalized = trimmedStringFromUnknown(value).replace(MULTI_SPACE_PATTERN, \" \").trim();\n\tif (normalized.length === 0) return;\n\treturn normalized;\n};\nconst canonicalMentionNameSchema = z$1.preprocess(normalizeCanonicalMentionName, z$1.string().min(1).refine((value) => !(value.includes(\"(\") || value.includes(\")\")), \"Canonical mention name must not contain parentheses\"));\nconst canonicalMentionLiteralSchema = z$1.strictObject({\n\tname: canonicalMentionNameSchema,\n\ttype: messageMentionTypeSchema\n});\nconst canonicalMentionTextFragmentSchema = z$1.strictObject({\n\tstart: z$1.number().int().min(0),\n\tend: z$1.number().int().min(1),\n\ttext: z$1.string().min(1),\n\tparsedLiteral: canonicalMentionLiteralSchema.nullable()\n});\nconst buildTargetListSchema = (fieldName) => z$1.array(openMeldRuntimeProfileIdSchema).superRefine((targets, context) => {\n\tconst seenTargets = /* @__PURE__ */ new Set();\n\tfor (const [index, targetProfileId] of targets.entries()) {\n\t\tif (seenTargets.has(targetProfileId)) {\n\t\t\tcontext.addIssue({\n\t\t\t\tcode: z$1.ZodIssueCode.custom,\n\t\t\t\tmessage: `${fieldName} must not contain duplicate profileId`,\n\t\t\t\tpath: [index]\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tseenTargets.add(targetProfileId);\n\t}\n});\nconst activationTargetsSchema = buildTargetListSchema(\"activationTargets\");\nconst referenceTargetsSchema = buildTargetListSchema(\"referenceTargets\");\nconst mentionTargetsSchema = buildTargetListSchema(\"mentionTargets\");\nconst replyToSignalIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1));\nconst validateDistinctTargetLists = (input, context) => {\n\tconst seenByTarget = /* @__PURE__ */ new Map();\n\tfor (const fieldName of MESSAGE_ENVELOPE_TARGET_FIELD_VALUES) for (const targetProfileId of input[fieldName] ?? []) {\n\t\tconst existingField = seenByTarget.get(targetProfileId);\n\t\tif (!existingField) {\n\t\t\tseenByTarget.set(targetProfileId, fieldName);\n\t\t\tcontinue;\n\t\t}\n\t\tcontext.addIssue({\n\t\t\tcode: z$1.ZodIssueCode.custom,\n\t\t\tmessage: `${fieldName} must not reuse profileId from ${existingField}`,\n\t\t\tpath: [fieldName]\n\t\t});\n\t}\n};\nconst publishedNavigationActionSchema = navigationActionSchema.refine((action) => action.target.kind !== \"plugin_connection\", \"Publish Plugin setup as a canonical reply link, not a new navigation type.\");\nconst currentMessageEnvelopeSchema = z$1.strictObject({\n\tactivationTargets: activationTargetsSchema,\n\treferenceTargets: referenceTargetsSchema,\n\tmentionTargets: mentionTargetsSchema.optional(),\n\tnavigationAction: publishedNavigationActionSchema.optional(),\n\treplyToSignalId: replyToSignalIdSchema.optional(),\n\ttext: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(MAX_TEXT_LENGTH))\n}).superRefine(validateDistinctTargetLists);\nconst currentMessageEnvelopeInputSchema = z$1.strictObject({\n\tactivationTargets: activationTargetsSchema.optional(),\n\treferenceTargets: referenceTargetsSchema.optional(),\n\tmentionTargets: mentionTargetsSchema.optional(),\n\tnavigationAction: publishedNavigationActionSchema.optional(),\n\treplyToSignalId: replyToSignalIdSchema.optional(),\n\ttext: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(MAX_TEXT_LENGTH))\n}).superRefine((value, context) => validateDistinctTargetLists({\n\tactivationTargets: value.activationTargets ?? [],\n\treferenceTargets: value.referenceTargets ?? [],\n\tmentionTargets: value.mentionTargets ?? []\n}, context));\n/**\n* Time-bounded compatibility boundary for deployed clients and persisted\n* signals authored before CC was removed. A valid legacy `ccTargets` list is\n* folded into Reference before the value enters the current domain model.\n*\n* Removal condition: the minimum supported Web, CLI, Local Service, Gateway,\n* Core, and Remote Agent versions all author and consume the current\n* envelope, and production history has been durably migrated or retained\n* behind a dedicated historical decoder.\n*/\nconst normalizeLegacyCcTargetsAsReference = (value) => {\n\tif (!(value && typeof value === \"object\") || Array.isArray(value)) return value;\n\tconst record = value;\n\tif (!Object.hasOwn(record, \"ccTargets\")) return value;\n\tconst legacyCcTargets = record.ccTargets;\n\tconst referenceTargets = record.referenceTargets;\n\tif (!Array.isArray(legacyCcTargets) || referenceTargets !== void 0 && !Array.isArray(referenceTargets)) return value;\n\tconst { ccTargets: _legacyCcTargets, ...currentFields } = record;\n\treturn {\n\t\t...currentFields,\n\t\treferenceTargets: [...Array.isArray(referenceTargets) ? referenceTargets : [], ...legacyCcTargets]\n\t};\n};\nconst messageEnvelopeSchema = z$1.preprocess(normalizeLegacyCcTargetsAsReference, currentMessageEnvelopeSchema);\nconst messageEnvelopeInputSchema = z$1.preprocess(normalizeLegacyCcTargetsAsReference, currentMessageEnvelopeInputSchema);\nconst normalizeMessageEnvelope = (value) => {\n\tconst parsed = messageEnvelopeInputSchema.safeParse(value);\n\tif (!parsed.success) throw parsed.error;\n\tconst normalized = {\n\t\tactivationTargets: parsed.data.activationTargets ?? [],\n\t\treferenceTargets: parsed.data.referenceTargets ?? [],\n\t\tmentionTargets: parsed.data.mentionTargets ?? [],\n\t\t...parsed.data.navigationAction ? { navigationAction: parsed.data.navigationAction } : {},\n\t\ttext: parsed.data.text,\n\t\t...parsed.data.replyToSignalId ? { replyToSignalId: parsed.data.replyToSignalId } : {}\n\t};\n\tconst canonical = messageEnvelopeSchema.safeParse(normalized);\n\tif (!canonical.success) throw canonical.error;\n\treturn canonical.data;\n};\nconst parseCanonicalMentionLiteral = (value) => {\n\tif (typeof value !== \"string\") return null;\n\tconst trimmed = value.trim();\n\tif (trimmed.length === 0) return null;\n\tconst match = trimmed.match(CANONICAL_MENTION_LITERAL_PATTERN);\n\tif (!match?.groups) return null;\n\tconst name = match.groups.name;\n\tconst type = match.groups.type;\n\tif (typeof name !== \"string\" || typeof type !== \"string\") return null;\n\tif (name.trim() !== name) return null;\n\tconst parsed = canonicalMentionLiteralSchema.safeParse({\n\t\tname,\n\t\ttype\n\t});\n\tif (!parsed.success) return null;\n\treturn parsed.data;\n};\nconst formatCanonicalMentionLiteral = (value) => {\n\tconst parsed = canonicalMentionLiteralSchema.safeParse(value);\n\tif (!parsed.success) throw parsed.error;\n\treturn `@${parsed.data.name}(${parsed.data.type})`;\n};\nconst collectCanonicalMentionTextFragments = (value) => {\n\tif (typeof value !== \"string\" || value.length === 0) return [];\n\tconst fragments = [];\n\tlet cursor = 0;\n\twhile (cursor < value.length) {\n\t\tconst atIndex = value.indexOf(\"@\", cursor);\n\t\tif (atIndex < 0) break;\n\t\tif (shouldSkipCanonicalMentionAt(value, atIndex)) {\n\t\t\tcursor = atIndex + 1;\n\t\t\tcontinue;\n\t\t}\n\t\tconst lineEndIndex = value.indexOf(\"\\n\", atIndex);\n\t\tconst nextAtIndex = value.indexOf(\"@\", atIndex + 1);\n\t\tconst searchEnd = Math.min(lineEndIndex < 0 ? value.length : lineEndIndex, nextAtIndex < 0 ? value.length : nextAtIndex);\n\t\tconst lineFragment = value.slice(atIndex, searchEnd);\n\t\tconst relationEndOffset = findCanonicalMentionRelationEnd(lineFragment);\n\t\tif (relationEndOffset === null) {\n\t\t\tcursor = atIndex + 1;\n\t\t\tcontinue;\n\t\t}\n\t\tconst rawMentionText = lineFragment.slice(0, relationEndOffset);\n\t\tconst leadingTrimmedLength = rawMentionText.length - rawMentionText.trimStart().length;\n\t\tconst mentionText = rawMentionText.trim();\n\t\tif (!mentionText) {\n\t\t\tcursor = atIndex + Math.max(1, relationEndOffset);\n\t\t\tcontinue;\n\t\t}\n\t\tconst start = atIndex + leadingTrimmedLength;\n\t\tconst end = start + mentionText.length;\n\t\tconst fragment = canonicalMentionTextFragmentSchema.safeParse({\n\t\t\tstart,\n\t\t\tend,\n\t\t\ttext: mentionText,\n\t\t\tparsedLiteral: parseCanonicalMentionLiteral(mentionText)\n\t\t});\n\t\tif (!fragment.success) throw fragment.error;\n\t\tfragments.push(fragment.data);\n\t\tcursor = atIndex + relationEndOffset;\n\t}\n\treturn fragments;\n};\nfunction shouldSkipCanonicalMentionAt(value, atIndex) {\n\tconst previous = atIndex > 0 ? value[atIndex - 1] ?? \"\" : \"\";\n\treturn previous === \"\\\\\" || WORD_CHARACTER_PATTERN.test(previous);\n}\nfunction findCanonicalMentionRelationEnd(value) {\n\tRELATION_TEXT_PATTERN.lastIndex = 0;\n\tconst relationMatch = RELATION_TEXT_PATTERN.exec(value);\n\tif (relationMatch?.index !== void 0) return relationMatch.index + relationMatch[0].length;\n\treturn null;\n}\nconst resolveMessageEnvelopeTargetField = (value) => {\n\tconst parsed = messageMentionTypeSchema.safeParse(value);\n\tif (!parsed.success) throw parsed.error;\n\treturn MESSAGE_ENVELOPE_TARGET_FIELD_BY_MENTION_TYPE[parsed.data];\n};\nconst resolveSpaceMessageAddressingTargetField = (value) => {\n\tconst parsed = spaceMessageAddressingRelationSchema.safeParse(value);\n\tif (!parsed.success) throw parsed.error;\n\treturn MESSAGE_ENVELOPE_TARGET_FIELD_BY_MENTION_TYPE[parsed.data];\n};\nconst isSpaceMessageAddressingRelationSupportedForTargetKind = (input) => {\n\tconst relation = spaceMessageAddressingRelationSchema.safeParse(input.relation);\n\tif (!relation.success) throw relation.error;\n\tconst targetKind = spaceMessageAddressingTargetKindSchema.safeParse(input.targetKind);\n\tif (!targetKind.success) throw targetKind.error;\n\treturn SPACE_MESSAGE_ADDRESSING_TARGET_KIND_SUPPORT_BY_RELATION[relation.data].includes(targetKind.data);\n};\nconst getSpaceMessageAddressingRelationSupportForTargetKind = (value) => {\n\tconst targetKind = spaceMessageAddressingTargetKindSchema.safeParse(value);\n\tif (!targetKind.success) throw targetKind.error;\n\treturn {\n\t\twake: isSpaceMessageAddressingRelationSupportedForTargetKind({\n\t\t\trelation: \"wake\",\n\t\t\ttargetKind: targetKind.data\n\t\t}),\n\t\treference: isSpaceMessageAddressingRelationSupportedForTargetKind({\n\t\t\trelation: \"reference\",\n\t\t\ttargetKind: targetKind.data\n\t\t}),\n\t\tmention: isSpaceMessageAddressingRelationSupportedForTargetKind({\n\t\t\trelation: \"mention\",\n\t\t\ttargetKind: targetKind.data\n\t\t})\n\t};\n};\n//#endregion\nexport { MESSAGE_ENVELOPE_TARGET_FIELD_VALUES, MESSAGE_MENTION_TYPE_VALUES, SPACE_MESSAGE_ADDRESSING_RELATION_VALUES, SPACE_MESSAGE_ADDRESSING_TARGET_FIELD_VALUES, SPACE_MESSAGE_ADDRESSING_TARGET_KIND_VALUES, canonicalMentionLiteralSchema, canonicalMentionTextFragmentSchema, collectCanonicalMentionTextFragments, formatCanonicalMentionLiteral, getSpaceMessageAddressingRelationSupportForTargetKind, isSpaceMessageAddressingRelationSupportedForTargetKind, messageEnvelopeInputSchema, messageEnvelopeSchema, messageEnvelopeTargetFieldSchema, messageMentionTypeSchema, normalizeMessageEnvelope, parseCanonicalMentionLiteral, resolveMessageEnvelopeTargetField, resolveSpaceMessageAddressingTargetField, spaceMessageAddressingRelationSchema, spaceMessageAddressingTargetKindSchema };\n\n//# sourceMappingURL=message-envelope.js.map","import { trimmedStringFromUnknown } from \"../protocol/shared.js\";\nimport { openMeldRuntimeProfileIdSchema } from \"../protocol/profile.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/space-mesh/space-thread.ts\nconst ISO_DATE_TIME_SCHEMA = z$1.iso.datetime({ offset: true });\nconst spaceThreadIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).regex(/^thr_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/u));\nconst spaceThreadSchema = z$1.strictObject({\n\tthreadId: spaceThreadIdSchema,\n\tspaceId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),\n\trootSignalId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),\n\tcreatedByProfileId: openMeldRuntimeProfileIdSchema,\n\tcreatedAt: ISO_DATE_TIME_SCHEMA,\n\tupdatedAt: ISO_DATE_TIME_SCHEMA\n});\nconst spaceThreadContextSchema = z$1.strictObject({\n\tthreadId: spaceThreadIdSchema,\n\trootSignalId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1))\n});\nconst spaceThreadSignalPlacementKindSchema = z$1.enum([\"root\", \"thread\"]);\nconst spaceThreadSignalPlacementSchema = z$1.strictObject({\n\tthreadId: spaceThreadIdSchema,\n\tsignalId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),\n\tplacement: spaceThreadSignalPlacementKindSchema,\n\tcreatedAt: ISO_DATE_TIME_SCHEMA\n});\nconst spaceThreadEventTypeSchema = z$1.enum([\"created\"]);\nconst spaceThreadEventSchema = z$1.strictObject({\n\teventId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),\n\tthreadId: spaceThreadIdSchema,\n\teventType: spaceThreadEventTypeSchema,\n\tactorProfileId: openMeldRuntimeProfileIdSchema,\n\tclientMutationId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(200)),\n\tcreatedAt: ISO_DATE_TIME_SCHEMA\n});\nconst spaceThreadActionRefSchema = z$1.strictObject({ threadId: spaceThreadIdSchema });\n//#endregion\nexport { spaceThreadActionRefSchema, spaceThreadContextSchema, spaceThreadEventSchema, spaceThreadEventTypeSchema, spaceThreadIdSchema, spaceThreadSchema, spaceThreadSignalPlacementKindSchema, spaceThreadSignalPlacementSchema };\n\n//# sourceMappingURL=space-thread.js.map","import { agentProfileIdSchema } from \"./profile.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/protocol/core-readiness-facts-changed.ts\nconst CORE_READINESS_FACTS_CHANGED_MARKER_KIND = \"core_readiness_facts_changed\";\nconst coreReadinessFactsChangedSchema = z$1.strictObject({\n\tagentProfileId: agentProfileIdSchema,\n\tkind: z$1.literal(CORE_READINESS_FACTS_CHANGED_MARKER_KIND)\n});\n//#endregion\nexport { CORE_READINESS_FACTS_CHANGED_MARKER_KIND, coreReadinessFactsChangedSchema };\n\n//# sourceMappingURL=core-readiness-facts-changed.js.map"," \nimport { trimmedStringFromUnknown } from \"./shared.js\";\nimport { openMeldRuntimeProfileIdSchema } from \"./profile.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/protocol/signal-reply-to.ts\nconst MAX_SIGNAL_REPLY_TO_PREVIEW_LENGTH = 120;\nconst signalReplyToSchema = z$1.strictObject({\n\tsignalId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),\n\tprofileId: openMeldRuntimeProfileIdSchema,\n\tprofileKind: z$1.enum([\n\t\t\"human\",\n\t\t\"agent\",\n\t\t\"system\"\n\t]).nullable(),\n\tprofileName: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64)),\n\tpreviewText: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(120))\n});\n//#endregion\nexport { MAX_SIGNAL_REPLY_TO_PREVIEW_LENGTH, signalReplyToSchema };\n\n//# sourceMappingURL=signal-reply-to.js.map","import { trimmedStringFromUnknown } from \"../protocol/shared.js\";\nimport { openMeldRuntimeProfileIdSchema } from \"../protocol/profile.js\";\nimport { coreReadinessFactsChangedSchema } from \"../protocol/core-readiness-facts-changed.js\";\nimport { signalReplyToSchema } from \"../protocol/signal-reply-to.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/space-mesh/signal-status.ts\nconst spaceStatusSchema = z$1.enum([\n\t\"working\",\n\t\"needs_input\",\n\t\"done\",\n\t\"blocked\",\n\t\"handoff\"\n]);\nconst signalStatusGeneratedBySchema = z$1.literal(\"openmeld\");\nconst signalStatusDataSchema = z$1.strictObject({\n\tactorProfileId: openMeldRuntimeProfileIdSchema,\n\tstatus: spaceStatusSchema,\n\tdispatchId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),\n\tresultRef: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)).optional(),\n\tcoreReadinessFactsChanged: coreReadinessFactsChangedSchema.optional(),\n\treplyTo: signalReplyToSchema.optional(),\n\ttargetProfileId: openMeldRuntimeProfileIdSchema.optional(),\n\ttext: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(120)),\n\tgeneratedBy: signalStatusGeneratedBySchema\n});\nz$1.strictObject({\n\ttype: z$1.literal(\"signal.status\"),\n\tdata: signalStatusDataSchema\n});\n//#endregion\nexport { signalStatusDataSchema, signalStatusGeneratedBySchema, spaceStatusSchema };\n\n//# sourceMappingURL=signal-status.js.map","//#region src/runtime-coordinator-reason-code.ts\nconst RUNTIME_COORDINATOR_ACCEPTED_DISPATCH_PAYLOAD_CONFLICT_REASON_CODE = \"runtime_coordinator.head_authority_conflict.accepted_dispatch_payload\";\nconst RUNTIME_COORDINATOR_RETIRED_TERMINAL_HEAD_REDRIVE_REASON_CODE = \"runtime_coordinator.retired_terminal_head_redrive_already_recorded\";\n//#endregion\nexport { RUNTIME_COORDINATOR_ACCEPTED_DISPATCH_PAYLOAD_CONFLICT_REASON_CODE, RUNTIME_COORDINATOR_RETIRED_TERMINAL_HEAD_REDRIVE_REASON_CODE };\n\n//# sourceMappingURL=runtime-coordinator-reason-code.js.map","import { formatAgentRecoveryActionLabel } from \"./agent-recovery-action.js\";\nimport { RUNTIME_COORDINATOR_ACCEPTED_DISPATCH_PAYLOAD_CONFLICT_REASON_CODE } from \"./runtime-coordinator-reason-code.js\";\n \nimport * as z$1 from \"zod/v4\";\n//#region src/public-agent-failure-reason.ts\nconst PROJECT_LOCAL_CONNECTION_FAILURE_REASON_CODES = [\n\t\"project.local_connection.missing\",\n\t\"project.local_connection.folder_missing\",\n\t\"project.local_connection.invalid\"\n];\nconst projectLocalConnectionFailureReasonCodeSchema = z$1.enum(PROJECT_LOCAL_CONNECTION_FAILURE_REASON_CODES);\nconst CODEX_UPGRADE_REQUIRED_REASON = \"Codex on this computer can't use the selected model. Update Codex or choose another Codex installation, then try again.\";\nconst CODE_HANDOFF_RECEIVER_UNSUPPORTED_PUBLIC_COPY = \"This handoff needs a local Codex or Claude Agent with a matching Project connection. Choose a supported Agent and send a new handoff.\";\nconst CENTER_AGENT_REQUEST_FAILED_PUBLIC_COPY = \"Center Agent couldn't finish your request. Open Diagnostics in OpenMeld for details. If you can't open OpenMeld, ask the person who set it up for your team.\";\nconst CENTER_AGENT_EMPTY_REPLY_PUBLIC_COPY = \"Center Agent couldn't generate a reply. Your message is saved.\";\nconst CENTER_AGENT_OUTPUT_LIMIT_EXCEEDED_PUBLIC_COPY = \"Center Agent reached the model's response limit before it could reply. Completed actions were not undone. Check the results, then send a shorter follow-up asking it to continue.\";\nconst CENTER_AGENT_REQUEST_START_FAILED_PUBLIC_COPY = \"Center Agent couldn't start this request. Try again. If it keeps happening, open diagnostics in OpenMeld.\";\nconst CENTER_AGENT_SOURCE_MESSAGE_MISSING_PUBLIC_COPY = \"OpenMeld couldn't find the message that started this request, so Center Agent did not run. Send the request again.\";\nconst CENTER_AGENT_TEMPORARILY_UNAVAILABLE_PUBLIC_COPY = \"Center Agent isn't available right now. Try again in a moment.\";\nconst CENTER_AGENT_ORGANIZATION_UNAVAILABLE_PUBLIC_COPY = \"Center Agent is currently turned off for this Organization. Contact OpenMeld support. You can open diagnostics in OpenMeld to share more details.\";\nfunction formatContextCapacityFailure(agentLabel) {\n\treturn `${agentLabel} couldn't fit the task context into the selected model. Completed actions were not undone. Choose a model with more context capacity or send a shorter follow-up asking it to inspect existing results before continuing.`;\n}\nconst CENTER_AGENT_CONTEXT_WINDOW_EXCEEDED_PUBLIC_COPY = formatContextCapacityFailure(\"Center Agent\");\nconst CENTER_AGENT_REQUEST_STOPPED_PUBLIC_COPY = \"This request was stopped.\";\nconst CENTER_AGENT_EXECUTION_IDENTITY_MISMATCH_PUBLIC_COPY = \"OpenMeld stopped this request because it could not confirm that the reply came from your Center Agent. Send the request again. If it keeps happening, open diagnostics in OpenMeld.\";\nconst CENTER_AGENT_REPLY_PUBLICATION_FAILED_PUBLIC_COPY = \"Center Agent finished your request, but OpenMeld could not show the reply here. Try again. If it keeps happening, open diagnostics in OpenMeld.\";\nconst CENTER_AGENT_TURN_TIMEOUT_PUBLIC_COPY = \"Center Agent took too long to finish this request. Try again. If it keeps happening, open diagnostics in OpenMeld.\";\n/** An absent admission ACK is not proof that native execution never started. */\nfunction buildTaskContinuationAdmissionExhaustedPublicCopy(input) {\n\tconst agentLabel = input.agentLabel?.trim() || \"Center Agent\";\n\tconst notExecuted = input.executionConfirmation === \"not_executed\";\n\tconst confirmation = {\n\t\tnot_executed: [`${agentLabel} did not execute this continuation.`, `${agentLabel} 没有执行这次续跑。`],\n\t\texecuted: [`${agentLabel} executed this continuation, but its final outcome is not confirmed.`, `${agentLabel} 已执行这次续跑,但最终结果尚未确认。`],\n\t\tunknown: [`OpenMeld could not confirm whether ${agentLabel} started this continuation. Earlier requests may have executed.`, `OpenMeld 仍无法确认 ${agentLabel} 是否已开始这次续跑。之前的请求可能已经执行。`]\n\t}[input.executionConfirmation ?? \"unknown\"];\n\tif (isChineseFailureLanguage(input.languageTag)) return `自动启动重试已停止(共 ${input.attempts} 次);不会再自动恢复。${confirmation[1]}汇总可能尚未完成;这条通知无法确认哪些子结果仍然可用。请让 Center Agent 基于已有结果重新汇总,不要重发原请求。${notExecuted ? \"\" : \"重发原请求可能重复执行之前的操作。\"}`;\n\treturn `Automatic startup retries have stopped after ${input.attempts} attempts. There will be no automatic recovery. ${confirmation[0]} The summary may be incomplete; this notice does not confirm which child results are still available. Ask Center Agent to summarize the existing results instead of resending the original request.${notExecuted ? \"\" : \" Resending the original request may repeat earlier actions.\"}`;\n}\n/** Render owner facts; never infer retry, recovery or execution from text. */\nfunction formatPublicAgentFailureFacts(facts, context = {}) {\n\tif (facts.reasonCode === \"remote_agent.execution_cancelled\" || facts.reasonCode === \"runtime_coordinator.pre_agent_stop_requested\") return renderFailureFactsCopy(facts.languageTag, \"neutral\", [\"Task stopped\", \"This task was stopped. Completed actions were not undone.\"], [\"任务已停止\", \"这次任务已停止。已执行的操作没有撤销。\"]);\n\tif (facts.reasonCode === \"remote_agent.requester_membership_revoked\") {\n\t\tconst agentLabel = context.agentLabel?.trim() || \"Center Agent\";\n\t\treturn renderFailureFactsCopy(facts.languageTag, \"warning\", [\"Task access could not be confirmed\", `${resolveMappedPublicAgentFailureReason(facts.reasonCode, agentLabel)} Earlier actions may have taken effect. Check the results before repeating the work.`], [\"任务访问权限未得到确认\", `OpenMeld 无法确认发起人目前是否有权访问这个 Space,因此 ${agentLabel} 已停止。请检查发起人的 Space 成员资格,并确认之前的操作是否已经生效,再重新发起。`]);\n\t}\n\tif (facts.recovery.status === \"recovered\") return renderFailureFactsCopy(facts.languageTag, \"neutral\", [\"Result recovered\", \"The confirmed result of this task has been recovered.\"], [\"结果已恢复\", \"这次任务的已确认结果已恢复。\"]);\n\tif (facts.retry.status === \"scheduled\" || facts.retry.status === \"in_progress\" || facts.recovery.status === \"in_progress\") return renderFailureFactsCopy(facts.languageTag, \"neutral\", [\"Recovery in progress\", \"OpenMeld is handling recovery for this task. You do not need to send another request now.\"], [\"正在恢复\", \"OpenMeld 正在处理这次任务的恢复。现在无需重新发起。\"]);\n\tif (facts.reasonCode === \"remote_agent.admission_timeout\" && facts.retry.status === \"exhausted\" && facts.retry.attempt !== void 0) {\n\t\tconst body = buildTaskContinuationAdmissionExhaustedPublicCopy({\n\t\t\tagentLabel: context.agentLabel,\n\t\t\tattempts: facts.retry.attempt,\n\t\t\texecutionConfirmation: facts.executionConfirmation,\n\t\t\tlanguageTag: facts.languageTag\n\t\t});\n\t\treturn renderFailureFactsCopy(facts.languageTag, \"warning\", [\"Task continuation not confirmed\", body], [\"续跑未得到确认\", body]);\n\t}\n\tif (facts.recoveryActions.includes(\"review_agent_permissions\")) return formatPermissionFailureFacts(facts);\n\tif (facts.executionConfirmation === \"not_executed\" || facts.result.status === \"not_started\") return renderFailureFactsCopy(facts.languageTag, \"warning\", [\"Task did not start\", \"This task did not start and will not automatically recover. Send a new request if you still need this work.\"], [\"任务尚未开始\", \"这次任务没有开始,也不会自动恢复。如果仍需要这项工作,请重新发起。\"]);\n\tif (facts.result.status === \"unknown\") return formatUnconfirmedFailureFacts(facts, context.agentLabel);\n\treturn formatFinalFailureFacts(facts);\n}\nfunction formatUnconfirmedFailureFacts(facts, agentLabel = \"Center Agent\") {\n\tconst cause = resolveFailureCauseOnly(facts.reasonCode, agentLabel.trim() || \"Center Agent\");\n\tconst recoveryStopped = facts.retry.status === \"exhausted\";\n\tconst uncertainty = `${recoveryStopped ? \"Automatic startup recovery has stopped. \" : \"\"}${facts.executionConfirmation === \"executed\" ? \"This task ran, but OpenMeld could not confirm its final outcome.\" : \"OpenMeld could not confirm this task's outcome.\"} Earlier actions may have taken effect. Check the results before sending a new request.`;\n\treturn renderFailureFactsCopy(facts.languageTag, \"warning\", [\"Outcome not confirmed\", cause ? `${cause[0]} ${uncertainty}` : uncertainty], [\"结果尚未确认\", `${cause ? `${cause[1]} ` : \"\"}${recoveryStopped ? \"自动启动恢复已停止。\" : \"\"}${facts.executionConfirmation === \"executed\" ? \"这次任务已经执行,但最终结果尚未确认。\" : \"OpenMeld 无法确认这次任务的结果。\"}之前的操作可能已经生效;请先检查结果,再重新发起。`]);\n}\n/** A terminal processing failure never authorizes replay of earlier work. */\nfunction formatPublicInterruptedTaskFailureFacts(facts, context = {}) {\n\tif (facts.reasonCode === \"remote_agent.execution_cancelled\" || facts.reasonCode === \"remote_agent.requester_membership_revoked\") return formatPublicAgentFailureFacts(facts, context);\n\tconst chinese = isChineseFailureLanguage(facts.languageTag);\n\tconst agentLabel = context.agentLabel?.trim() || \"Center Agent\";\n\tconst cause = resolveFailureCauseOnly(facts.reasonCode, agentLabel);\n\tconst results = facts.completedResults ?? [];\n\tconst canSummarize = facts.recoveryActions.includes(\"continue_task_continuation\");\n\tconst body = chinese ? [\n\t\t`${agentLabel} 的本次处理中断。${cause ? ` ${cause[1]}` : \"\"}`,\n\t\t\"部分操作可能已经生效。请先检查已有结果,避免重复执行。\",\n\t\tresults.length ? \"你仍可查看以下已发布的结果:\" : \"\",\n\t\t...results.map((result, index) => `[查看结果 ${index + 1}](${result.url})`),\n\t\t...canSummarize ? [\"你可以请 Center Agent 继续汇总已有成果。这只生成汇总,不会继续剩余工作。\"] : []\n\t].filter(Boolean).join(\"\\n\") : [\n\t\t`${agentLabel} couldn't finish processing this request.${cause ? ` ${cause[0]}` : \"\"}`,\n\t\t\"Some actions may have taken effect. Check existing results before repeating any action.\",\n\t\tresults.length ? \"These published results are still available:\" : \"\",\n\t\t...results.map((result, index) => `[View result ${index + 1}](${result.url})`),\n\t\t...canSummarize ? [\"You can ask Center Agent to summarize the existing results. This only produces a summary; it does not continue the remaining work.\"] : []\n\t].filter(Boolean).join(\"\\n\");\n\treturn {\n\t\tseverity: \"warning\",\n\t\ttitle: chinese ? \"处理中断\" : \"Processing interrupted\",\n\t\tbody\n\t};\n}\nfunction formatPermissionFailureFacts(facts) {\n\tif (facts.result.status === \"not_started\") return renderFailureFactsCopy(facts.languageTag, \"warning\", [\"Review task permissions\", \"OpenMeld could not start this task with the current permission settings. The task has not started. Review the Agent Profile's permission settings.\"], [\"需要检查任务权限\", \"OpenMeld 无法在当前权限设置下启动这次任务。任务尚未开始;请检查 Agent Profile 的权限设置。\"]);\n\treturn renderFailureFactsCopy(facts.languageTag, \"warning\", [\"Review task permissions\", \"A permission limit blocked this task. Review the Agent Profile's permission settings and check whether earlier actions ran.\"], [\"需要检查任务权限\", \"这次任务受到权限限制。请检查 Agent Profile 的权限设置,并先确认之前的操作是否已执行。\"]);\n}\nfunction formatFinalFailureFacts(facts) {\n\tif (facts.result.status === \"published\") return renderFailureFactsCopy(facts.languageTag, \"warning\", [\"Result already published\", \"This task's confirmed result was already published. Review it before repeating the work.\"], [\"结果已发布\", \"这次任务的已确认结果已经发布。请先查看结果,不要重复执行。\"]);\n\tif (facts.result.status === \"unavailable\" && facts.reasonCode === \"remote_agent.empty_assistant_response\") return renderFailureFactsCopy(facts.languageTag, \"error\", [\"Task result unavailable\", \"The Agent produced no reply. Earlier actions may have taken effect. Check the results before asking the Agent to do this work again.\"], [\"任务结果不可用\", \"Agent 没有生成回复。之前的操作可能已经生效;请先检查结果,再要求 Agent 重新执行。\"]);\n\tif (facts.result.status === \"unavailable\" && facts.reasonCode === \"remote_agent.turn.output_limit_exceeded\") return renderFailureFactsCopy(facts.languageTag, \"error\", [\"Task result unavailable\", \"The Agent reached the model's response limit before it could reply. Completed actions were not undone. Check the results before asking the Agent to continue.\"], [\"任务结果不可用\", \"Agent 在回复前达到模型的输出上限。已执行的操作没有撤销;请先检查结果,再要求 Agent 继续。\"]);\n\tif (facts.stage === \"publication\" && facts.result.status === \"retained\") return renderFailureFactsCopy(facts.languageTag, \"error\", [\"Task result not published\", facts.recoveryActions.includes(\"recover_result\") ? \"The task result was retained, but OpenMeld could not publish it. Recover the result instead of repeating completed work.\" : \"The task result was retained, but OpenMeld could not publish it. Do not repeat completed work.\"], [\"任务结果未能发布\", facts.recoveryActions.includes(\"recover_result\") ? \"任务结果已保存,但 OpenMeld 未能发布结果。请恢复结果,不要重复执行已完成的工作。\" : \"任务结果已保存,但 OpenMeld 未能发布结果。不要重复执行已完成的工作。\"]);\n\tif (facts.diagnosticReference) return renderFailureFactsCopy(facts.languageTag, \"error\", [\"Task did not finish\", \"This task did not deliver a completed result. Open Diagnostics for details.\"], [\"任务未完成\", \"这次任务没有交付完成结果。请打开 Diagnostics 查看具体情况。\"]);\n\treturn renderFailureFactsCopy(facts.languageTag, \"error\", [\"Task did not finish\", \"This task did not deliver a completed result. Check the task's results before sending a new request.\"], [\"任务未完成\", \"这次任务没有交付完成结果。请先检查任务结果,再重新发起。\"]);\n}\n/** A Routine failure uses the same owner facts, with its existing Run locator. */\nfunction formatPublicRoutineFailureFacts(facts, context) {\n\tconst presentation = formatPublicAgentFailureFacts(facts, context);\n\tconst chinese = isChineseFailureLanguage(facts.languageTag);\n\tconst reference = context.runUrl ? `\\n[${chinese ? \"查看 Run 详情\" : \"View Run details\"}](${context.runUrl})` : \"\";\n\treturn `Routine “${context.routineName}”: ${presentation.body}\\nRun ID: ${context.runId}${reference}`;\n}\nfunction renderFailureFactsCopy(languageTag, severity, english, chinese) {\n\tconst [title, body] = isChineseFailureLanguage(languageTag) ? chinese : english;\n\treturn {\n\t\tseverity,\n\t\ttitle,\n\t\tbody\n\t};\n}\nfunction isChineseFailureLanguage(languageTag) {\n\treturn languageTag?.split(\"-\")[0]?.toLowerCase() === \"zh\";\n}\nconst REMOTE_AGENT_TOOL_RESULT_TOO_LARGE_REASON_CODE = \"remote_agent.tool_result_too_large\";\nconst REMOTE_AGENT_TOOL_SAFETY_LIMIT_REASON_CODE = \"remote_agent.tool_call_budget_exceeded\";\nconst REMOTE_AGENT_TOOL_SAFETY_LIMIT_PUBLIC_COPY = \"This request reached the execution safety limit before it was finished. Completed actions have not been undone. Review the results and diagnostics before starting more work.\";\nconst REMOTE_AGENT_TOOL_RESULT_TOO_LARGE_PUBLIC_COPY = \"Center Agent tried to process too much data at once. Try again; it will read large files in smaller sections. If this keeps happening, open diagnostics.\";\nconst REMOTE_AGENT_CONVERSATION_HISTORY_LIMIT_EXCEEDED_REASON_CODE = \"remote_agent.conversation_history_limit_exceeded\";\nconst REMOTE_AGENT_CONVERSATION_HISTORY_LIMIT_EXCEEDED_PUBLIC_COPY = \"Center Agent could not continue this conversation automatically. Try again or open diagnostics.\";\nconst REMOTE_AGENT_WORK_LOOP_CONTINUATION_LIMIT_REASON_CODE = \"remote_agent.work_loop_continuation_limit_exceeded\";\nconst REMOTE_AGENT_WORK_LOOP_CONTINUATION_LIMIT_PUBLIC_COPY = \"Center Agent kept working but could not finish this request within the safe execution limit. Try again or open diagnostics.\";\nconst ORGANIZATION_SKILL_RELEASE_UNAVAILABLE_REASON_CODE = \"organization_skill.release_unavailable\";\nconst ORGANIZATION_SKILL_RELEASE_UNAVAILABLE_PUBLIC_COPY = \"A Skill selected for this request is no longer available. Ask an Organization admin to restore it, or send a new request without that Skill.\";\nconst EXACT_PATTERN_PREFIX = \"=\";\nconst RUNTIME_PERMISSION_DENIAL_PUBLIC_COPY = \"The requested action was blocked by the Agent Profile’s permission settings. Review its permissions and choose a less restrictive mode only if you trust the access it grants, then wake the agent again.\";\nconst PROVIDER_UNAVAILABLE_PUBLIC_COPY = \"The selected model is not responding right now. Switch this agent to another model or try again later.\";\nconst CURSOR_MODEL_INVENTORY_UNAVAILABLE_PUBLIC_COPY = \"Cursor couldn't confirm which models are available right now. Try waking the agent again.\";\nconst UNSUPPORTED_MODEL_PUBLIC_COPY = \"The selected model is no longer available for this account. Choose another model in the Agent Profile, then try again.\";\nconst UNSUPPORTED_REASONING_PUBLIC_COPY = \"The selected model does not support that reasoning setting. Choose an offered model and reasoning setting, then wake the agent again.\";\nconst INTERACTION_PERMISSION_REQUIRED_PUBLIC_COPY = \"The local agent asked for permission before it could continue. OpenMeld cannot collect that permission response yet. Review the Agent Profile’s permission mode, then wake the agent again.\";\nconst INTERACTION_QUESTION_REQUIRED_PUBLIC_COPY = \"The local agent asked a question before it could continue. OpenMeld cannot collect that answer yet. Run the task directly in the local agent, or adjust the prompt so it can finish without asking, then wake it again.\";\nconst INTERACTION_PLAN_REQUIRED_PUBLIC_COPY = \"The local agent asked for plan approval before it could continue. OpenMeld cannot collect that approval yet. Run the task directly in the local agent, or use a mode that does not require plan approval, then wake it again.\";\nconst INTERACTION_UNSUPPORTED_PUBLIC_COPY = \"The local agent requested an interactive response that OpenMeld does not support yet. Run the task directly in the local agent, resolve the request there, then wake it again.\";\nconst HTML_ERROR_BODY_RE = /^\\s*</;\nconst DISPATCH_ERROR_SUMMARY_MAX_LENGTH = 512;\nconst PUBLIC_FAILURE_DETAIL_CODE_RE = /^[a-z0-9._-]+$/u;\nconst HOSTED_CALLBACK_MAPPED_CODE_RE = /^(?:remote_agent\\.requester_membership_revoked$|remote_agent\\.provider\\.(?:authentication_failed|connection_missing|rate_limited|unavailable)|auth\\.|credential\\.|login\\.|permission\\.|provider\\.(?:rate_limited|rate_limit|unavailable|authentication_failed)|connection\\.)/u;\nconst CENTER_AGENT_CALLBACK_COPY_BY_CODE = {\n\t\"remote_agent.empty_assistant_response\": { message: CENTER_AGENT_EMPTY_REPLY_PUBLIC_COPY },\n\t\"remote_agent.turn.output_limit_exceeded\": { message: CENTER_AGENT_OUTPUT_LIMIT_EXCEEDED_PUBLIC_COPY },\n\t\"remote_agent.turn.context_window_exceeded\": {\n\t\tmessage: CENTER_AGENT_CONTEXT_WINDOW_EXCEEDED_PUBLIC_COPY,\n\t\tcause: [\"The conversation has grown too long for this model.\", \"对话内容超过了模型一次能处理的范围。\"]\n\t},\n\t\"remote_agent.execution_identity_mismatch\": {\n\t\tmessage: CENTER_AGENT_EXECUTION_IDENTITY_MISMATCH_PUBLIC_COPY,\n\t\tcause: [\"OpenMeld could not confirm the reply's Agent identity.\", \"OpenMeld 无法确认回复的 Agent 身份。\"]\n\t},\n\t\"remote_agent.callback_publish_failed\": { message: CENTER_AGENT_REPLY_PUBLICATION_FAILED_PUBLIC_COPY },\n\t\"remote_agent.turn.timeout\": { message: CENTER_AGENT_TURN_TIMEOUT_PUBLIC_COPY },\n\t[REMOTE_AGENT_CONVERSATION_HISTORY_LIMIT_EXCEEDED_REASON_CODE]: { message: REMOTE_AGENT_CONVERSATION_HISTORY_LIMIT_EXCEEDED_PUBLIC_COPY },\n\t[REMOTE_AGENT_TOOL_RESULT_TOO_LARGE_REASON_CODE]: { message: REMOTE_AGENT_TOOL_RESULT_TOO_LARGE_PUBLIC_COPY },\n\t[REMOTE_AGENT_WORK_LOOP_CONTINUATION_LIMIT_REASON_CODE]: {\n\t\tmessage: REMOTE_AGENT_WORK_LOOP_CONTINUATION_LIMIT_PUBLIC_COPY,\n\t\tcause: [\"The Agent reached the safe execution limit before finishing.\", \"Agent 在完成任务前达到了安全执行上限。\"]\n\t}\n};\n/** Generic hosted-Agent failure copy that names the Agent that actually failed. */\nfunction buildHostedAgentRequestFailedPublicCopy(agentLabel) {\n\treturn `${agentLabel.trim() || \"Center Agent\"} couldn't finish your request. Open Diagnostics in OpenMeld for details. If you can't open OpenMeld, ask the person who set it up for your team.`;\n}\nfunction resolveCenterAgentCallbackFailureMessage(input) {\n\tif (input.failureCode === \"remote_agent.computer.command_cleanup_failed\" && input.explanationText) return input.explanationText;\n\tif (input.computerCleanup) {\n\t\tconst cleanup = input.computerCleanup;\n\t\tconst progress = input.failureCode === \"remote_agent.execution_cancelled\" ? \"New work for this request was stopped.\" : `${input.agentLabel ?? \"Center Agent\"} could not finish this request.`;\n\t\tlet state = \"Computer cleanup has ended, but the requested work was not confirmed complete.\";\n\t\tif (!cleanup.state || cleanup.state.unfinished > 0) state = \"Some Computer processes have not confirmed termination.\";\n\t\telse if (cleanup.state.pendingResults > 0) state = \"Computer processes have ended, but some results or file synchronization are still unconfirmed.\";\n\t\treturn `${progress} ${state} Completed actions were not undone. Original command receipts and saved results remain available. Check those results before repeating any operation.`;\n\t}\n\tconst agentLabel = input.agentLabel ?? \"Center Agent\";\n\tconst requestFailed = buildHostedAgentRequestFailedPublicCopy(agentLabel);\n\tconst mapped = resolveHostedCallbackMappedFailure(input, agentLabel);\n\tif (mapped) return mapped;\n\tconst centerCopy = agentLabel === \"Center Agent\" ? CENTER_AGENT_CALLBACK_COPY_BY_CODE[input.failureCode] : null;\n\tif (centerCopy) return centerCopy.message;\n\tswitch (input.failureCode) {\n\t\tcase \"remote_agent.empty_assistant_response\": return `${agentLabel} couldn't generate a reply. Your message is saved.`;\n\t\tcase \"remote_agent.turn.output_limit_exceeded\": return `${agentLabel} reached the model's response limit before it could reply. Completed actions were not undone. Check the results, then send a shorter follow-up asking it to continue.`;\n\t\tcase \"remote_agent.execution_cancelled\": return CENTER_AGENT_REQUEST_STOPPED_PUBLIC_COPY;\n\t\tcase ORGANIZATION_SKILL_RELEASE_UNAVAILABLE_REASON_CODE: return ORGANIZATION_SKILL_RELEASE_UNAVAILABLE_PUBLIC_COPY;\n\t\tcase \"remote_agent.admission_timeout\": return `OpenMeld could not confirm whether ${agentLabel} started this request. Open Diagnostics to check its status before starting more work.`;\n\t\tcase \"remote_agent.turn.context_window_exceeded\": return formatContextCapacityFailure(agentLabel);\n\t\tcase \"remote_agent.execution_identity_mismatch\": return `OpenMeld stopped this request because it could not confirm that the reply came from ${agentLabel}. Open Diagnostics in OpenMeld for details.`;\n\t\tcase \"remote_agent.callback_publish_failed\": return `${agentLabel} finished your request, but OpenMeld could not show the reply here. Try again. If it keeps happening, open Diagnostics in OpenMeld.`;\n\t\tcase \"remote_agent.turn.timeout\": return `${agentLabel} took too long to finish this request. Try again. If it keeps happening, open Diagnostics in OpenMeld.`;\n\t\tcase REMOTE_AGENT_CONVERSATION_HISTORY_LIMIT_EXCEEDED_REASON_CODE: return `${agentLabel} could not continue this conversation automatically. Open Diagnostics in OpenMeld for details.`;\n\t\tcase REMOTE_AGENT_TOOL_RESULT_TOO_LARGE_REASON_CODE: return `${agentLabel} tried to process too much data at once. Try again; it will read large files in smaller sections. If this keeps happening, open Diagnostics in OpenMeld.`;\n\t\tcase REMOTE_AGENT_TOOL_SAFETY_LIMIT_REASON_CODE: return REMOTE_AGENT_TOOL_SAFETY_LIMIT_PUBLIC_COPY;\n\t\tcase REMOTE_AGENT_WORK_LOOP_CONTINUATION_LIMIT_REASON_CODE: return `${agentLabel} kept working but could not finish this request within the safe execution limit. Review the results and open Diagnostics in OpenMeld before starting more work.`;\n\t\tdefault: return requestFailed;\n\t}\n}\nfunction resolveHostedCallbackMappedFailure(input, agentLabel) {\n\tconst reasonCode = resolveHostedAgentCallbackFailureReasonCode(input);\n\tif (reasonCode !== input.failureCode) return resolveMappedPublicAgentFailureReason(reasonCode, agentLabel);\n\treturn HOSTED_CALLBACK_MAPPED_CODE_RE.test(input.failureCode) ? resolveMappedPublicAgentFailureReason(input.failureCode, agentLabel) : null;\n}\n/** Preserve the existing allowlisted legacy reason without exposing raw detail. */\nfunction resolveHostedAgentCallbackFailureReasonCode(input) {\n\tconst detailCode = input.failureDetail?.trim();\n\tif (input.failureCode === \"remote_agent.turn_not_completed\" && detailCode && PUBLIC_FAILURE_DETAIL_CODE_RE.test(detailCode) && resolveMappedPublicAgentFailureReason(detailCode)) return detailCode;\n\treturn input.failureCode;\n}\nconst DISPATCH_ERROR_REDACTION_REPLACEMENTS = [\n\t[/\\b(authorization\\s*:\\s*(?:bearer|basic)\\s+)[^\\s,;]+/gi, \"$1[redacted]\"],\n\t[/\\b((?:set-cookie|cookie)\\s*:\\s*)[^\\r\\n]+/gi, \"$1[redacted]\"],\n\t[/\\b((?:api[_-]?key|access[_-]?token|refresh[_-]?token|secret|password)\\s*[:=]\\s*[\"']?)[^\"',;\\s}]+/gi, \"$1[redacted]\"],\n\t[/\\bopenMeldDaemon_[A-Za-z0-9._~:/+=-]+/g, \"[redacted]\"],\n\t[/\\b[A-Fa-f0-9]{40,}\\b/g, \"[redacted]\"],\n\t[/\\b[A-Za-z0-9+/]{40,}={0,2}/g, \"[redacted]\"]\n];\nconst PUBLIC_FAILURE_CODE_CATEGORY_BY_PREFIX = [\n\t{\n\t\tcategory: \"the local agent needs an interaction\",\n\t\tprefixes: [\"interaction.\"]\n\t},\n\t{\n\t\tcategory: \"the runtime rejected the request\",\n\t\tprefixes: [\"runtime.\"]\n\t},\n\t{\n\t\tcategory: \"the account needs re-authentication\",\n\t\tprefixes: [\n\t\t\t\"auth.\",\n\t\t\t\"credential.\",\n\t\t\t\"login.\"\n\t\t]\n\t},\n\t{\n\t\tcategory: \"the model provider had an issue\",\n\t\tprefixes: [\n\t\t\t\"cursor.plan_\",\n\t\t\t\"provider.\",\n\t\t\t\"provider_account.\",\n\t\t\t\"model.\",\n\t\t\t\"upstream_unreachable\",\n\t\t\t\"provider_unreachable\",\n\t\t\t\"provider_exit_error\"\n\t\t]\n\t},\n\t{\n\t\tcategory: \"the computer connection had an issue\",\n\t\tprefixes: [\n\t\t\t\"daemon.\",\n\t\t\t\"service.\",\n\t\t\t\"local_service.\",\n\t\t\t\"route.\",\n\t\t\t\"background_helper.\",\n\t\t\t\"controller.\"\n\t\t]\n\t},\n\t{\n\t\tcategory: \"OpenMeld could not route this Wake\",\n\t\tprefixes: [\n\t\t\t\"claim_eligibility.\",\n\t\t\t\"dispatch.\",\n\t\t\t\"runtime_coordinator.\",\n\t\t\t\"agent_profile_binding.\"\n\t\t]\n\t},\n\t{\n\t\tcategory: \"the reply could not be formatted\",\n\t\tprefixes: [\"openmeld.space_action.\", \"workspace.\"]\n\t}\n];\nfunction resolvePublicFailureCodeCategory(errorCode) {\n\tconst normalized = errorCode.toLowerCase();\n\treturn PUBLIC_FAILURE_CODE_CATEGORY_BY_PREFIX.find((entry) => entry.prefixes.some((prefix) => normalized.startsWith(prefix)))?.category ?? \"the agent hit an unclassified error\";\n}\nfunction normalizeDispatchErrorSummaryPart(value) {\n\tif (typeof value !== \"string\") return null;\n\tlet normalized = value.trim().replace(/\\s+/g, \" \");\n\tif (!normalized) return null;\n\tfor (const [pattern, replacement] of DISPATCH_ERROR_REDACTION_REPLACEMENTS) normalized = normalized.replace(pattern, replacement);\n\treturn normalized;\n}\nfunction truncateDispatchErrorSummary(value) {\n\tif (value.length <= 512) return value;\n\treturn `${value.slice(0, 511).trimEnd()}…`;\n}\nfunction sanitizeDispatchErrorSummary(errorMessage) {\n\tconst normalizedInput = normalizeDispatchErrorSummaryPart(errorMessage);\n\tif (!normalizedInput) return null;\n\ttry {\n\t\tconst parsed = JSON.parse(errorMessage ?? \"\");\n\t\tif (parsed && typeof parsed === \"object\" && !Array.isArray(parsed)) {\n\t\t\tconst root = parsed;\n\t\t\tconst nested = root.error && typeof root.error === \"object\" && !Array.isArray(root.error) ? root.error : root;\n\t\t\tconst code = normalizeDispatchErrorSummaryPart(nested.code);\n\t\t\tconst type = normalizeDispatchErrorSummaryPart(nested.type);\n\t\t\tconst message = normalizeDispatchErrorSummaryPart(nested.message) ?? normalizeDispatchErrorSummaryPart(nested.detail) ?? normalizeDispatchErrorSummaryPart(root.detail);\n\t\t\tlet classification = type;\n\t\t\tif (code) classification = type && type !== code ? `${code} (${type})` : code;\n\t\t\tconst summary = [classification, message].filter(Boolean).join(\": \");\n\t\t\tif (summary) return truncateDispatchErrorSummary(summary);\n\t\t\treturn \"The provider request failed; see operator logs for details.\";\n\t\t}\n\t} catch {}\n\tif (HTML_ERROR_BODY_RE.test(errorMessage ?? \"\")) return \"The provider request failed; see operator logs for details.\";\n\treturn truncateDispatchErrorSummary(normalizedInput);\n}\nconst CONTROLLER_SIGN_IN_AVAILABILITY_COPY_BY_ID = {\n\tantigravity: {\n\t\tcontrollerInterfaceDescription: \"Antigravity CLI is installed, but this computer is not signed in.\",\n\t\tsummary: \"Run agy in a terminal on this computer, then sign in to Antigravity.\",\n\t\ttooltip: \"Antigravity CLI is not signed in. Run agy in a terminal on this computer.\"\n\t},\n\t\"claude-code\": {\n\t\tsummary: \"Run claude in a terminal on this computer, then sign in to Claude Code.\",\n\t\ttooltip: \"Claude Code is not signed in. Run claude in a terminal on this computer.\"\n\t},\n\tcodex: {\n\t\tcontrollerInterfaceDescription: \"Codex CLI is installed, but this computer is not signed in to Codex.\",\n\t\tsummary: \"Run codex login in a terminal on this computer to sign in to Codex.\",\n\t\ttooltip: \"Codex is not signed in. Run codex login in a terminal on this computer.\"\n\t},\n\tcursor: {\n\t\tcontrollerInterfaceDescription: \"Cursor CLI is installed, but this computer is not signed in to Cursor CLI.\",\n\t\tsummary: \"Run cursor-agent login in a terminal on this computer to sign in to Cursor CLI.\",\n\t\ttooltip: \"Cursor CLI is not signed in. Run cursor-agent login in a terminal on this computer.\"\n\t},\n\t\"grok-build\": {\n\t\tcontrollerInterfaceDescription: \"Grok Build is installed, but this computer is not signed in to Grok.\",\n\t\tsummary: \"Run grok login in a terminal on this computer to sign in to Grok.\",\n\t\ttooltip: \"Grok Build is not signed in. Run grok login in a terminal on this computer.\"\n\t},\n\topenclaw: {\n\t\tsummary: \"Check the model provider sign-in in OpenClaw on this computer.\",\n\t\ttooltip: \"OpenClaw's model provider sign-in needs attention on this computer.\"\n\t},\n\topencode: {\n\t\tsummary: \"Run opencode auth login in a terminal on this computer to sign in to OpenCode.\",\n\t\ttooltip: \"OpenCode is not signed in. Run opencode auth login in a terminal on this computer.\"\n\t}\n};\nconst DEFAULT_CONTROLLER_SIGN_IN_AVAILABILITY_COPY = {\n\tsummary: \"Sign in to this local agent from a terminal on this computer.\",\n\ttooltip: \"This local agent is not signed in on this computer.\"\n};\nconst PUBLIC_AGENT_AVAILABILITY_ONLY_COPY_BY_CODE = [\n\t{\n\t\tavailabilityBadgeLabel: \"Removed\",\n\t\tavailabilitySummary: \"This agent profile no longer exists.\",\n\t\tavailabilityTooltip: \"Agent profile deleted\",\n\t\tpatterns: [\"=agent_profile.not_found\"]\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Disconnected\",\n\t\tavailabilitySummary: \"Connect the Center Agent before waking it from this Space.\",\n\t\tavailabilityTooltip: \"Disconnected\",\n\t\tpatterns: [\n\t\t\t\"=center_agent.designation_required\",\n\t\t\t\"=center_agent.designation_lookup_failed\",\n\t\t\t\"=center_agent.designation_store_unavailable\"\n\t\t]\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Available\",\n\t\tavailabilitySummary: \"This Agent can answer now.\",\n\t\tavailabilityTooltip: \"Agent available\",\n\t\tpatterns: [\"=remote_agent.available\"]\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Resting\",\n\t\tavailabilitySummary: \"Center Agent is resting until the next budget window.\",\n\t\tavailabilityTooltip: \"Center Agent resting\",\n\t\tpatterns: [\"=remote_agent.budget_resting\"]\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Unavailable\",\n\t\tavailabilitySummary: \"Center Agent cannot answer right now.\",\n\t\tavailabilityTooltip: \"Center Agent unavailable\",\n\t\tpatterns: [\"remote_agent.\"]\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Available\",\n\t\tavailabilitySummary: \"Available for Wake\",\n\t\tavailabilityTooltip: \"Available for Wake\",\n\t\tpatterns: [\"=agent_execution.ready\"]\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Checking\",\n\t\tavailabilitySummary: \"Checking this agent's Wake availability.\",\n\t\tavailabilityTooltip: \"Checking Wake availability\",\n\t\tpatterns: [\"=agent_execution.check_status\"]\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Checking\",\n\t\tavailabilitySummary: \"OpenMeld couldn't check this local agent. It will try again.\",\n\t\tavailabilityTooltip: \"Local agent check unavailable\",\n\t\tpatterns: [\"=controller.interface.check_failed\"]\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Checking\",\n\t\tavailabilitySummary: \"Checking computer connection.\",\n\t\tavailabilityTooltip: \"Checking computer connection\",\n\t\tpatterns: [\"=local_service.not_checked\", \"=service.not_checked\"]\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Checking\",\n\t\tavailabilitySummary: \"Checking this agent's Wake route.\",\n\t\tavailabilityTooltip: \"Checking Wake route\",\n\t\tpatterns: [\"=wake_route.registration_pending\"]\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Connect\",\n\t\tavailabilitySummary: \"Connect a local agent before this profile can reply.\",\n\t\tavailabilityTooltip: \"Connect local agent\",\n\t\tpatterns: [\"=wake_route.registration_skipped\"]\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Unavailable\",\n\t\tavailabilitySummary: \"Resolve this agent's Wake route before it can reply.\",\n\t\tavailabilityTooltip: \"Wake route unavailable\",\n\t\tpatterns: [\"=wake_route.registration_rejected\"]\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Unavailable\",\n\t\tavailabilitySummary: \"OpenMeld couldn't check this agent's connection.\",\n\t\tavailabilityTooltip: \"Connection check unavailable\",\n\t\tpatterns: [\"=wake_route.registration_unavailable\"]\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Offline\",\n\t\tavailabilitySummary: \"This Agent's computer is offline.\",\n\t\tavailabilityTooltip: \"Agent computer is offline\",\n\t\tpatterns: [\"=wake_route.registration_expired\"]\n\t}\n];\nconst buildMalformedSpaceReplyCopy = (targetName) => `OpenMeld could not confirm a Space response from ${targetName}, even after automatic recovery.`;\nconst buildEmptyAgentReplyCopy = (targetName) => `${targetName} finished without returning any text, so OpenMeld had nothing to post. Wake ${formatObjectTargetName(targetName)} again. If this keeps happening, open diagnostics.`;\nconst buildMissingAgentReplyIdentityCopy = (targetName) => `OpenMeld received a result from ${formatObjectTargetName(targetName)}, but the result did not identify which local agent produced it. To avoid posting under the wrong agent, OpenMeld did not publish it. Open diagnostics to inspect the local agent connection.`;\nconst PUBLIC_FAILURE_RECOVERY_BY_CODE = [\n\t{\n\t\tbody: \"OpenRouter could not use this workspace's API key. Check its balance and status, or replace or remove it in AI usage settings. Included credits were not used.\",\n\t\tkind: \"request_ended\",\n\t\tpatterns: [\"=ai_billing.key_unavailable\"],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: \"This workspace has used its included AI credits. Add an OpenRouter API key in AI usage settings, or wait for the monthly reset.\",\n\t\tkind: \"request_ended\",\n\t\tpatterns: [\"=ai_usage.monthly_limit_reached\"],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: \"AI billing is temporarily unavailable. Try again later or add your own OpenRouter key in AI usage settings.\",\n\t\tkind: \"request_ended\",\n\t\tpatterns: [\"=ai_billing.unavailable\"],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: (targetName) => `${targetName} couldn't connect to its model provider. Ask your OpenMeld admin to check the provider connection, then wake the agent again.`,\n\t\tcause: [(targetName) => `${targetName} couldn't connect to its model provider.`, (targetName) => `${targetName} 无法连接到模型提供方。`],\n\t\tkind: \"account_access\",\n\t\tpatterns: [\"=remote_agent.provider.connection_missing\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: (targetName) => `OpenMeld could not confirm the requester's current access to this Space, so ${targetName} stopped. Check the requester's Space membership, then wake ${targetName} again.`,\n\t\tkind: \"account_access\",\n\t\tpatterns: [\"=remote_agent.requester_membership_revoked\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: (targetName) => {\n\t\t\treturn `${targetName === \"This agent\" ? \"The agent\" : targetName} finished, but OpenMeld couldn't post its reply. Wake ${targetName === \"This agent\" ? \"the agent\" : targetName} again. If this keeps happening, open diagnostics.`;\n\t\t},\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\"=runtime_coordinator.publication_retry_exhausted\"],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: \"OpenMeld couldn't confirm whether this Agent is working, so its working folder was not changed. Retry setup in a moment.\",\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\"=agent_profile.workspace_change_eligibility_unavailable\"],\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: \"This Agent's working folder cannot change while it is working. Wait for the current Wake to finish, then retry setup.\",\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\"=agent_profile.workspace_change_blocked_active_execution\"],\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: \"This chat’s session works in a folder that is no longer the Agent’s working folder. Continue in a new session in the current folder; this chat’s earlier messages stay as context.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=execution_context.workspace_changed\"],\n\t\tprimaryActionId: \"continue_in_default_folder\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"session_folder\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Working folder missing\",\n\t\tavailabilitySummary: \"Connect this Agent’s Project on its Computer.\",\n\t\tavailabilityTooltip: \"Project folder is not connected\",\n\t\tbody: (targetName) => `${targetName} couldn’t start because its Project isn’t connected on the computer that runs it. Connect that Project on the Agent’s computer, then try again.`,\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=project.local_connection.missing\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"working_folder\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Working folder missing\",\n\t\tavailabilitySummary: \"Reconnect this Agent’s Project folder on its Computer.\",\n\t\tavailabilityTooltip: \"Project folder is no longer available\",\n\t\tbody: (targetName) => `${targetName} couldn’t start because its Project folder is no longer available on the computer that runs it. Reconnect the folder in Projects, then try again.`,\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=project.local_connection.folder_missing\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"working_folder\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Working folder needs attention\",\n\t\tavailabilitySummary: \"Review this Agent’s Project connection on its Computer.\",\n\t\tavailabilityTooltip: \"Project connection could not be used\",\n\t\tbody: (targetName) => `${targetName} couldn’t start because its Project connection could not be used on the computer that runs it. Review that connection and its folder, then try again.`,\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=project.local_connection.invalid\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"working_folder\"\n\t},\n\t{\n\t\tbody: \"OpenMeld ran into a system problem before this Wake could run. Try again. If it keeps happening, open diagnostics.\",\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\n\t\t\t\"=dispatch.storage.schema_missing\",\n\t\t\t\"dispatch.storage_not_ready\",\n\t\t\t\"dispatch.storage_unavailable\"\n\t\t],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: REMOTE_AGENT_TOOL_RESULT_TOO_LARGE_PUBLIC_COPY,\n\t\tkind: \"system_retry\",\n\t\tpatterns: [`=${REMOTE_AGENT_TOOL_RESULT_TOO_LARGE_REASON_CODE}`],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: REMOTE_AGENT_TOOL_SAFETY_LIMIT_PUBLIC_COPY,\n\t\tkind: \"system_retry\",\n\t\tpatterns: [`=${REMOTE_AGENT_TOOL_SAFETY_LIMIT_REASON_CODE}`],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: REMOTE_AGENT_CONVERSATION_HISTORY_LIMIT_EXCEEDED_PUBLIC_COPY,\n\t\tkind: \"system_retry\",\n\t\tpatterns: [`=${REMOTE_AGENT_CONVERSATION_HISTORY_LIMIT_EXCEEDED_REASON_CODE}`],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Sign-in needed\",\n\t\tavailabilitySummary: (context) => resolveControllerSignInAvailabilityCopy(context).summary,\n\t\tavailabilityTooltip: (context) => resolveControllerSignInAvailabilityCopy(context).tooltip,\n\t\tbody: (targetName) => `${targetName}'s local provider login expired on its computer. Re-authenticate the local agent there (its own CLI, not OpenMeld), then check its status here.`,\n\t\tcontrollerInterfaceDescription: (context) => resolveControllerSignInAvailabilityCopy(context).controllerInterfaceDescription,\n\t\tcontrollerInterfaceDescriptionFallback: \"Installed, but this controller is not signed in.\",\n\t\tkind: \"local_service\",\n\t\tmappedReasonBody: \"The model provider rejected this request because the local provider login expired. Re-authenticate the local agent on its computer, then wake the agent again.\",\n\t\tcause: [\"The model provider rejected the local agent's sign-in.\", \"模型提供方拒绝了本地 Agent 的登录凭据。\"],\n\t\tpatterns: [\n\t\t\t\"=controller.auth.unauthenticated\",\n\t\t\t\"auth.\",\n\t\t\t\"auth.required\",\n\t\t\t\"credential.\",\n\t\t\t\"login.\"\n\t\t],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: (targetName) => `${targetName}'s selected model is not available for this agent's account. Switch it to a different model, then wake the agent again.`,\n\t\tkind: \"account_access\",\n\t\tmappedReasonBody: UNSUPPORTED_MODEL_PUBLIC_COPY,\n\t\tpatterns: [\"model.unsupported\", \"unsupported_model\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: RUNTIME_PERMISSION_DENIAL_PUBLIC_COPY,\n\t\tkind: \"account_access\",\n\t\tmappedReasonBody: RUNTIME_PERMISSION_DENIAL_PUBLIC_COPY,\n\t\tcause: [\"The Agent Profile's permission settings blocked an action.\", \"Agent Profile 的权限设置阻止了一项操作。\"],\n\t\tpatterns: [\"permission.denied.runtime\"],\n\t\tprimaryActionId: \"review_agent_permissions\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: (targetName) => `${targetName} stopped this Wake because the current Cursor plan has reached its usage limit. Upgrade the Cursor plan, then wake ${targetName} again.`,\n\t\tkind: \"account_access\",\n\t\tmappedReasonBody: (targetName) => `${targetName} stopped this Wake because the current Cursor plan has reached its usage limit. Upgrade the Cursor plan, then wake ${targetName} again.`,\n\t\tpatterns: [\"=cursor.plan_upgrade_required\"],\n\t\tprimaryActionId: \"manage_cursor_plan\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"cursor_account\"\n\t},\n\t{\n\t\tbody: (targetName) => `${targetName}'s AI account reached its Usage Limit. Review Usage Limits in agent settings before waking it again.`,\n\t\tkind: \"account_access\",\n\t\tmappedReasonBody: (targetName) => `${targetName}'s AI account reached its Usage Limit. Review Usage Limits in agent settings before waking it again.`,\n\t\tavailabilityBadgeLabel: \"Usage Limit reached\",\n\t\tavailabilitySummary: \"This agent's AI account reached its Usage Limit. Review Usage Limits in agent settings before waking it again.\",\n\t\tavailabilityTooltip: \"Usage Limit reached. Review Usage Limits.\",\n\t\tpatterns: [\"=usage_exhausted\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: (targetName) => `OpenMeld is still checking ${targetName}'s current Usage. Wait a moment, then wake ${targetName} again.`,\n\t\tkind: \"system_retry\",\n\t\tmappedReasonBody: \"OpenMeld is still checking this agent's current Usage. Wait a moment, then wake it again.\",\n\t\tpatterns: [\"=usage_checking\"],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: (targetName) => `${targetName}'s model provider account does not have enough credits for this Wake. Add credits or update billing directly with the provider, then wake the agent again.`,\n\t\tkind: \"system_retry\",\n\t\tmappedReasonBody: \"The model provider rejected this request because the provider account does not have enough credits. Add credits or update billing directly with the provider, then wake the agent again.\",\n\t\tpatterns: [\n\t\t\t\"provider.insufficient_balance\",\n\t\t\t\"quota.exceeded\",\n\t\t\t\"insufficient_quota\"\n\t\t],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: (targetName) => `${targetName} hit a provider rate limit before this Wake could reply. Wait a moment, then wake the agent again.`,\n\t\tkind: \"system_retry\",\n\t\tmappedReasonBody: \"The model provider rate-limited this request. Wait a moment, then wake the agent again.\",\n\t\tcause: [\"The model provider rate-limited this request.\", \"模型提供方限制了这次请求的频率。\"],\n\t\tpatterns: [\n\t\t\t\"provider.rate_limited\",\n\t\t\t\"provider.rate_limit\",\n\t\t\t\"rate_limited\",\n\t\t\t\"rate_limit\"\n\t\t],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Unavailable\",\n\t\tavailabilitySummary: \"This model is no longer offered. Change this agent's model to continue.\",\n\t\tavailabilityTooltip: \"Model no longer offered\",\n\t\tbody: (targetName) => `${targetName}'s model is no longer offered. Change its model to continue.`,\n\t\tkind: \"account_access\",\n\t\tmappedReasonBody: \"This model is no longer offered. Change this agent's model to continue.\",\n\t\tpatterns: [\"=model.retired\"],\n\t\tprimaryActionId: \"change_model\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Unavailable\",\n\t\tavailabilitySummary: \"This model is unavailable. Check this agent's model settings.\",\n\t\tavailabilityTooltip: \"Model unavailable\",\n\t\tbody: (targetName) => `${targetName}'s model is unavailable. Check its model and account settings.`,\n\t\tkind: \"account_access\",\n\t\tmappedReasonBody: \"This model is unavailable. Check this agent's model and account settings.\",\n\t\tpatterns: [\"=model.unavailable\"],\n\t\tprimaryActionId: \"change_model\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: (targetName) => `${targetName}'s provider subscription does not include the access this agent needs. Review the provider plan or account on its computer before waking it again.`,\n\t\tkind: \"account_access\",\n\t\tmappedReasonBody: (targetName) => `${targetName}'s provider subscription does not include the access this agent needs. Review the provider plan or account on its computer before waking it again.`,\n\t\tpatterns: [\"provider.subscription_access_unavailable\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: (targetName) => `${targetName}'s selected model is not responding right now. Switch this agent to another model or try again later.`,\n\t\tkind: \"account_access\",\n\t\tmappedReasonBody: PROVIDER_UNAVAILABLE_PUBLIC_COPY,\n\t\tcause: [\"The selected model is not responding right now.\", \"所选模型目前没有响应。\"],\n\t\tpatterns: [\n\t\t\t\"provider.unavailable\",\n\t\t\t\"provider.bad_gateway\",\n\t\t\t\"model.provider_unavailable\"\n\t\t],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Unavailable\",\n\t\tavailabilitySummary: \"Fix provider access before this agent can reply.\",\n\t\tavailabilityTooltip: \"Provider access needed\",\n\t\tbody: (targetName) => `${targetName} is connected, but its provider subscription does not include the access this agent needs. Review the provider plan or account on its computer before waking it again.`,\n\t\tkind: \"account_access\",\n\t\tpatterns: [\"=provider_account.subscription_access_unavailable\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Unavailable\",\n\t\tavailabilitySummary: \"Fix provider access before this agent can reply.\",\n\t\tavailabilityTooltip: \"Provider access needed\",\n\t\tbody: (targetName) => `${targetName} is connected, but its organization has disabled the provider access this agent needs. Ask the provider account admin to enable access before waking it again.`,\n\t\tkind: \"account_access\",\n\t\tpatterns: [\"=provider_account.organization_access_disabled\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Unavailable\",\n\t\tavailabilitySummary: \"Review the provider plan, billing, or credits.\",\n\t\tavailabilityTooltip: \"Provider quota exhausted\",\n\t\tbody: (targetName) => `${targetName} is connected, but its provider quota or credit balance is exhausted. Review the provider plan, billing, or credits before waking it again.`,\n\t\tkind: \"account_access\",\n\t\tpatterns: [\"=provider_account.capacity_exhausted\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Unavailable\",\n\t\tavailabilitySummary: \"Fix provider access before this agent can reply.\",\n\t\tavailabilityTooltip: \"Provider access needed\",\n\t\tbody: (targetName) => `${targetName}'s provider account needs attention on its computer. Fix access with the provider there, then check its status here.`,\n\t\tkind: \"account_access\",\n\t\tpatterns: [\"provider_account.\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Unavailable\",\n\t\tavailabilitySummary: \"This agent shares a reply conversation with another Agent Profile.\",\n\t\tavailabilityTooltip: \"Duplicate reply conversation\",\n\t\tbody: (targetName) => `${targetName} shares a reply conversation with another Agent Profile. Review agent settings and choose one Agent Profile to keep this reply conversation.`,\n\t\tkind: \"local_agent_connection\",\n\t\tpatterns: [\"=agent_profile_binding.controller_conversation_conflict\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Unavailable\",\n\t\tavailabilitySummary: \"This agent cannot reply from this computer right now.\",\n\t\tavailabilityTooltip: \"Unavailable for Wake\",\n\t\tbody: (targetName) => `${targetName} is connected to a different OpenMeld account. Sign in with the correct OpenMeld account, then run setup again.`,\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\n\t\t\t\"agent_profile_binding.owner_mismatch\",\n\t\t\t\"claim_eligibility.binding_owner_mismatch\",\n\t\t\t\"claim_eligibility.owner_mismatch\",\n\t\t\t\"dispatch.claim_eligibility.binding.owner_mismatch\"\n\t\t],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Workspace unavailable\",\n\t\tavailabilitySummary: \"OpenMeld could not verify this Agent Profile's workspace.\",\n\t\tavailabilityTooltip: \"OpenMeld could not verify this Agent Profile's workspace\",\n\t\tbody: (targetName) => `OpenMeld could not verify ${targetName}'s workspace. Try again, and open diagnostics if the problem continues.`,\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\n\t\t\t\"=organization_binding_authorization.lookup_failed\",\n\t\t\t\"=organization_binding_authorization.preference_unavailable\",\n\t\t\t\"=organization_binding_authorization.space_org_unavailable\"\n\t\t],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Wrong workspace\",\n\t\tavailabilitySummary: \"This Agent Profile belongs to a different workspace.\",\n\t\tavailabilityTooltip: \"This Agent Profile belongs to another workspace\",\n\t\tbody: (targetName) => `${targetName} belongs to a different workspace. Choose an Agent Profile created in this workspace.`,\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\"=agent_profile.organization_mismatch\"],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Workspace unavailable\",\n\t\tavailabilitySummary: \"OpenMeld could not verify this Agent Profile's workspace.\",\n\t\tavailabilityTooltip: \"OpenMeld could not verify this Agent Profile's workspace\",\n\t\tbody: (targetName) => `OpenMeld could not verify ${targetName}'s workspace. Try again, and open diagnostics if the problem continues.`,\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\n\t\t\t\"=agent_profile.organization_context_missing\",\n\t\t\t\"=agent_profile.organization_lookup_failed\",\n\t\t\t\"=agent_profile.space_organization_unavailable\"\n\t\t],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Wrong workspace\",\n\t\tavailabilitySummary: \"This Agent Profile cannot be used in this workspace.\",\n\t\tavailabilityTooltip: \"This Agent Profile cannot be used here\",\n\t\tbody: (targetName) => `${targetName} cannot be used in this workspace. Choose an Agent Profile created here.`,\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\n\t\t\t\"=organization_binding_authorization.required\",\n\t\t\t\"=organization_binding_authorization.binding_required\",\n\t\t\t\"=organization_binding_authorization.no_bindings\",\n\t\t\t\"=organization_binding_authorization.profile_org_mismatch\",\n\t\t\t\"=organization_binding_authorization.profile_owner_mismatch\"\n\t\t],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Connection mismatch\",\n\t\tavailabilitySummary: \"This Agent's saved connection does not match this computer setup. To use this setup, create a new Agent. The existing Agent has not been moved.\",\n\t\tavailabilityTooltip: \"Agent connection does not match this setup\",\n\t\tbody: (targetName) => `${targetName}'s saved connection does not match this computer setup. To use this setup, create a new Agent. The existing Agent has not been moved.`,\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\n\t\t\t\"claim_eligibility.binding_runtime_mismatch\",\n\t\t\t\"claim_eligibility.openmeld_service_runtime_id_mismatch\",\n\t\t\t\"claim_eligibility.binding_capability_mismatch\",\n\t\t\t\"=local_service.identity_mismatch\"\n\t\t],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: (targetName) => `OpenMeld could not confirm ${targetName}'s current local agent setup. Check its status on the computer that runs it, then try again.`,\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\n\t\t\t\"claim_eligibility.openmeld_service_runtime_id_missing\",\n\t\t\t\"claim_eligibility.openmeld_service_runtime_id_not_opaque\",\n\t\t\t\"claim_eligibility.openmeld_service_runtime_identity_invalid\",\n\t\t\t\"claim_eligibility.runtime_missing\",\n\t\t\t\"claim_eligibility.runtime_unavailable\",\n\t\t\t\"claim_eligibility.agent_controller_report_unknown\",\n\t\t\t\"claim_eligibility.agent_controller_report_missing\",\n\t\t\t\"claim_eligibility.agent_controller_report_stale\",\n\t\t\t\"claim_eligibility.agent_controller_report_disabled\",\n\t\t\t\"claim_eligibility.agent_controller_report_unavailable\"\n\t\t],\n\t\tprimaryActionId: \"check_status\",\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Needs attention\",\n\t\tavailabilitySummary: \"Check the local agent's status on the computer that runs it.\",\n\t\tavailabilityTooltip: \"Local agent report unavailable\",\n\t\tbody: (targetName) => `${targetName} is connected, but OpenMeld has no current local agent report from its computer. Check the local agent’s status on that computer.`,\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=agent_profile_binding.agent_controller_report_missing\"],\n\t\tprimaryActionId: \"check_status\",\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Needs attention\",\n\t\tavailabilitySummary: \"Check the local agent's status on the computer that runs it.\",\n\t\tavailabilityTooltip: \"Local agent report out of date\",\n\t\tbody: (targetName) => `${targetName} is connected, but its local agent report is out of date. Check the local agent’s status on that computer.`,\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=agent_profile_binding.agent_controller_report_stale\"],\n\t\tprimaryActionId: \"check_status\",\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Checking\",\n\t\tavailabilitySummary: \"Checking this agent's local controller.\",\n\t\tavailabilityTooltip: \"Checking local agent\",\n\t\tbody: (targetName) => `${targetName} is connected, but OpenMeld has no current local agent report from its computer. Check the local agent’s status on that computer.`,\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=runtime.projection_missing\", \"=runtime.agent_controller_report_missing\"],\n\t\tprimaryActionId: \"check_status\",\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Checking\",\n\t\tavailabilitySummary: \"Checking this agent's local controller.\",\n\t\tavailabilityTooltip: \"Checking local agent\",\n\t\tbody: (targetName) => `${targetName} is connected, but its local agent report is out of date. Check the local agent’s status on that computer.`,\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=runtime.agent_controller_report_stale\"],\n\t\tprimaryActionId: \"check_status\",\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Connect\",\n\t\tavailabilitySummary: \"Connect a local agent before this profile can reply.\",\n\t\tavailabilityTooltip: \"Connect local agent\",\n\t\tbody: (targetName) => `${targetName} is in this space, but OpenMeld cannot tell which local agent should reply for it yet.`,\n\t\tkind: \"local_agent_connection\",\n\t\tmappedReasonBody: (targetName) => `No local agent has been selected to reply for ${formatObjectTargetName(targetName)} yet.`,\n\t\tpatterns: [\n\t\t\t\"agent_profile_binding.missing\",\n\t\t\t\"agent_profile_binding.disabled\",\n\t\t\t\"claim_eligibility.binding_missing\",\n\t\t\t\"claim_eligibility.binding_disabled\",\n\t\t\t\"claim_eligibility.binding_not_routable\",\n\t\t\t\"dispatch.claim_eligibility.blocked\",\n\t\t\t\"dispatch.claim_eligibility.binding.disabled_historical\",\n\t\t\t\"dispatch.claim_eligibility.binding.enabled_primary\",\n\t\t\t\"dispatch.claim_eligibility.binding.missing\",\n\t\t\t\"profile.unbound\"\n\t\t],\n\t\tmanualOnlyAgentDetail: \"No local agent selected for Wake\",\n\t\tprimaryActionId: \"choose_local_agent\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: (targetName) => `${targetName} has a conflicting reply connection. Wait a moment, then run setup again if the issue continues.`,\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\n\t\t\t\"claim_eligibility.binding_conflict\",\n\t\t\t\"claim_eligibility.lease_conflict\",\n\t\t\t\"claim_eligibility.runtime_conflict\",\n\t\t\t\"dispatch.claim_eligibility.binding.conflict\"\n\t\t],\n\t\tprimaryActionId: \"connect_local_agent\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tbody: \"OpenMeld could not verify permission to run this agent. Sign in again, then try once more.\",\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\"claim_eligibility.caller_not_allowed\", \"claim_eligibility.not_read_after_caller_authorization_failed\"],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: \"This Wake request is no longer active. Send a new message and wake the agent again.\",\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\n\t\t\t\"claim_eligibility.non_wake_relation_not_dispatchable\",\n\t\t\t\"claim_eligibility.dispatch_evidence_missing\",\n\t\t\t\"claim_eligibility.dispatch_evidence_stale\",\n\t\t\t\"claim_eligibility.dispatch_missing\",\n\t\t\t\"claim_eligibility.dispatch_terminal\",\n\t\t\t\"claim_eligibility.wake_not_allowed_at_creation\",\n\t\t\t\"claim_eligibility.wake_no_longer_allowed_by_policy\",\n\t\t\t\"claim_eligibility.space_liveness_missing\",\n\t\t\t\"claim_eligibility.space_liveness_stale\",\n\t\t\t\"claim_eligibility.policy_version_mismatch\"\n\t\t],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: \"This agent is no longer a member of this space. Add it back from the space's members panel, then try again.\",\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\"claim_eligibility.target_no_longer_member\", \"claim_eligibility.target_not_claimable_agent_member\"],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: (targetName) => `OpenMeld stopped this Wake for ${formatObjectTargetName(targetName)} because the Wake details changed after it was accepted. Send the request again. If this keeps happening, open Diagnostics.`,\n\t\tkind: \"system_retry\",\n\t\tpatterns: [`=${RUNTIME_COORDINATOR_ACCEPTED_DISPATCH_PAYLOAD_CONFLICT_REASON_CODE}`],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: (targetName) => `This Wake expired before it reached ${formatObjectTargetName(targetName)}. Reconnect the computer, then wake the Agent again.`,\n\t\tkind: \"local_service\",\n\t\tpatterns: [\"runtime_coordinator.delivery_expired\"],\n\t\tprimaryActionId: \"reconnect_openmeld_service\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tbody: (targetName) => `OpenMeld could not start ${formatObjectTargetName(targetName)} in time. Reconnect the computer, then wake the Agent again.`,\n\t\tkind: \"local_service\",\n\t\tpatterns: [\"daemon.delivery.start_timeout\", \"delivery.start_timeout\"],\n\t\tprimaryActionId: \"reconnect_openmeld_service\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tbody: \"OpenMeld could not resume the Agent's conversation in time. Try waking the Agent again. If this keeps happening, open Diagnostics.\",\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\"=context.resume_timeout\"],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: \"OpenMeld could not read the latest Space messages to finish this reply. Open Diagnostics for details before trying again.\",\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\"=dispatch.agent_reply_observation.unavailable\", \"=dispatch.agent_reply_observation.no_progress\"],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: (targetName) => `OpenMeld Service stopped or disconnected while ${formatObjectTargetName(targetName)} was working on this Wake. Start OpenMeld again before retrying.`,\n\t\tkind: \"local_service\",\n\t\tpatterns: [\"=runtime.local_runtime_lost\"],\n\t\tprimaryActionId: \"reconnect_openmeld_service\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tbody: (targetName) => `${targetName} stopped making progress on this Wake. Reconnect the computer before trying again.`,\n\t\tkind: \"local_service\",\n\t\tpatterns: [\"daemon.delivery.execution_stalled\", \"runtime.progress_stale\"],\n\t\tprimaryActionId: \"reconnect_openmeld_service\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tbody: (targetName) => `OpenMeld received progress from ${formatObjectTargetName(targetName)}, but could not finish the final result in time.`,\n\t\tkind: \"local_service\",\n\t\tpatterns: [\"daemon.delivery.finalization_timeout\", \"delivery.result_timeout\"],\n\t\tprimaryActionId: \"reconnect_openmeld_service\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tbody: (targetName) => `${targetName} took too long to finish this Wake. Reconnect the computer before trying again.`,\n\t\tkind: \"local_service\",\n\t\tpatterns: [\n\t\t\t\"daemon.delivery.timeout\",\n\t\t\t\"local_adapter.timeout\",\n\t\t\t\"timed_out_after_output\",\n\t\t\t\"timed_out_no_output\",\n\t\t\t\"=timeout\"\n\t\t],\n\t\tprimaryActionId: \"reconnect_openmeld_service\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Offline\",\n\t\tavailabilitySummary: \"Connect your computer before this Agent can reply.\",\n\t\tavailabilityTooltip: \"Computer not connected\",\n\t\tbody: (targetName) => `${targetName}'s computer is disconnected from OpenMeld. Reconnect the computer so it can receive local Wake work.`,\n\t\tkind: \"local_service\",\n\t\tpatterns: [\"=service.not_running\"],\n\t\tprimaryActionId: \"reconnect_openmeld_service\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Offline\",\n\t\tavailabilitySummary: \"Connect your computer before this Agent can reply.\",\n\t\tavailabilityTooltip: \"Computer not connected\",\n\t\tbody: (targetName) => `OpenMeld is not set up on ${formatPossessiveTargetName(targetName)} computer. Connect the computer so it can receive local Wake work.`,\n\t\tkind: \"local_service\",\n\t\tpatterns: [\"=service.not_installed\"],\n\t\tprimaryActionId: \"connect_openmeld_service\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Needs attention\",\n\t\tavailabilitySummary: \"OpenMeld found a service problem on this computer. Open Computer details to check it.\",\n\t\tavailabilityTooltip: \"Check OpenMeld on Computer\",\n\t\tbody: (targetName) => `OpenMeld found a service problem on ${formatPossessiveTargetName(targetName)} computer. Open Computer details to see what needs attention.`,\n\t\tkind: \"local_service\",\n\t\tpatterns: [\"=service.drifted\"],\n\t\tprimaryActionId: \"check_status\",\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Offline\",\n\t\tavailabilitySummary: \"Connect your computer before this Agent can reply.\",\n\t\tavailabilityTooltip: \"Computer not connected\",\n\t\tbody: (targetName) => `${targetName}'s computer is not connected to the current OpenMeld account. Reconnect the computer.`,\n\t\tkind: \"local_service\",\n\t\tpatterns: [\"=local_service.not_connected_for_account\"],\n\t\tprimaryActionId: \"reconnect_openmeld_service\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Offline\",\n\t\tavailabilitySummary: \"Connect your computer before this Agent can reply.\",\n\t\tavailabilityTooltip: \"Computer not connected\",\n\t\tbody: (targetName) => `OpenMeld could not check ${formatPossessiveTargetName(targetName)} computer connection. Reconnect the computer and try again.`,\n\t\tkind: \"local_service\",\n\t\tpatterns: [\"=local_service.unavailable\"],\n\t\tprimaryActionId: \"reconnect_openmeld_service\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Checking\",\n\t\tavailabilitySummary: \"This computer is connected but isn't accepting new tasks yet.\",\n\t\tavailabilityTooltip: \"Checking task availability\",\n\t\tbody: (targetName) => `${formatPossessiveTargetName(targetName)} computer is connected but isn't accepting new tasks right now. Open Computer details to check its status.`,\n\t\tkind: \"local_service\",\n\t\tpatterns: [\"=local_service.not_accepting_wakes\"],\n\t\tprimaryActionId: \"check_status\",\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Reconnecting\",\n\t\tavailabilitySummary: \"Computer is reconnecting.\",\n\t\tavailabilityTooltip: \"Reconnecting Computer\",\n\t\tbody: (targetName) => `${targetName} is connected, but OpenMeld cannot see an active local Wake route from this computer yet. OpenMeld is checking the route from this computer.`,\n\t\tkind: \"local_service\",\n\t\tpatterns: [\"=local_service.reconnecting\"],\n\t\tprimaryActionId: \"check_status\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Checking\",\n\t\tavailabilitySummary: \"Checking this agent's Wake route.\",\n\t\tavailabilityTooltip: \"Checking Wake route\",\n\t\tbody: (targetName) => `${targetName} is connected, but OpenMeld cannot see an active local Wake route from this computer yet. OpenMeld is checking the route from this computer.`,\n\t\tkind: \"local_service\",\n\t\tpatterns: [\"=agent_execution.route_missing\", \"=route.not_registered\"],\n\t\tprimaryActionId: \"check_status\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Offline\",\n\t\tavailabilitySummary: \"This Agent's computer is offline.\",\n\t\tavailabilityTooltip: \"Agent computer is offline\",\n\t\tbody: (targetName) => `${targetName} is connected, but OpenMeld cannot see an active local Wake route from this computer yet. OpenMeld is checking the route from this computer.`,\n\t\tkind: \"local_service\",\n\t\tpatterns: [\"=agent_execution.route_offline\", \"=route.offline\"],\n\t\tprimaryActionId: \"check_status\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Unavailable\",\n\t\tavailabilitySummary: \"OpenMeld couldn't check this agent's connection.\",\n\t\tavailabilityTooltip: \"Connection check unavailable\",\n\t\tbody: (targetName) => `OpenMeld couldn't check ${targetName}'s connection. Try again.`,\n\t\tkind: \"local_service\",\n\t\tpatterns: [\"=agent_execution.route_unavailable\", \"=route.unavailable\"],\n\t\tprimaryActionId: \"check_status\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Update\",\n\t\tavailabilitySummary: \"Update OpenMeld on your computer before this Agent can reply.\",\n\t\tavailabilityTooltip: \"Update OpenMeld on Computer\",\n\t\tbody: \"Update OpenMeld on this computer before it can receive local Wake work.\",\n\t\tkind: \"local_service\",\n\t\tpatterns: [\n\t\t\t\"background_helper.installed_outdated\",\n\t\t\t\"background_helper.update_required\",\n\t\t\t\"service.update_required\"\n\t\t],\n\t\tprimaryActionId: \"update_openmeld_service\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tbody: \"OpenMeld is not set up on this computer.\",\n\t\tkind: \"local_service\",\n\t\tpatterns: [\"background_helper.not_installed\"],\n\t\tprimaryActionId: \"connect_openmeld_service\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tbody: (targetName) => `The computer is connected, but ${formatObjectTargetName(targetName)} did not become ready in time for this Wake. Try waking the Agent again in a moment.`,\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\"=daemon.profile.pending_first_report\"],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: (targetName) => `${formatObjectTargetName(targetName)} did not start before the deadline. This Wake has expired and will not run when the computer reconnects. Send a new Wake if the work is still needed.`,\n\t\tkind: \"request_ended\",\n\t\tpatterns: [\"=wake.device_wait.expired\"],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: \"This waiting Wake could not start because its requester or Agent no longer has access to this Space. Review access before sending a new Wake.\",\n\t\tkind: \"request_ended\",\n\t\tpatterns: [\"=wake.device_wait.access_revoked\"],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: (targetName) => `OpenMeld could not reach ${formatObjectTargetName(targetName)} on this computer for this Wake. Reconnect the computer, then try again.`,\n\t\tkind: \"local_service\",\n\t\tpatterns: [\n\t\t\t\"daemon.profile.offline\",\n\t\t\t\"daemon.session.not_found\",\n\t\t\t\"local_service.\",\n\t\t\t\"route.\",\n\t\t\t\"service.\",\n\t\t\t\"service.not_running\"\n\t\t],\n\t\tprimaryActionId: \"reconnect_openmeld_service\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tbody: buildMalformedSpaceReplyCopy,\n\t\tkind: \"system_retry\",\n\t\tmappedReasonBody: buildMalformedSpaceReplyCopy,\n\t\tpatterns: [\"=openmeld.space_action.repair_failed\"],\n\t\tpreferMappedReasonDetailPatterns: [\n\t\t\t\"replied, but not with a valid space reply action\",\n\t\t\t\"finished, but openmeld couldn't post its reply\",\n\t\t\t\"finished, but openmeld could not post its reply\",\n\t\t\t\"finished, but did not produce a valid space reply\",\n\t\t\t\"finished, but its reply could not be posted\",\n\t\t\t\"finished, but the reply could not be posted\",\n\t\t\t\"openmeld did not receive a message it could post in this space\"\n\t\t],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: buildEmptyAgentReplyCopy,\n\t\tkind: \"system_retry\",\n\t\tmappedReasonBody: buildEmptyAgentReplyCopy,\n\t\tpatterns: [\"=runtime.reply.empty_output\"],\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: buildMissingAgentReplyIdentityCopy,\n\t\tkind: \"system_retry\",\n\t\tmappedReasonBody: buildMissingAgentReplyIdentityCopy,\n\t\tpatterns: [\"=runtime.reply.metadata_missing.agent_controller_ref\"],\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: \"OpenMeld found more than one install for this agent on this device. Choose which one OpenMeld should use here, then try again.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"controller.launch.choice_required\", \"launch choice\"],\n\t\tprimaryActionId: \"choose_local_agent\",\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"Claude project tasks need Docker or Podman running on the Agent's computer. Start a Linux container engine, then try again. For a reply without project files, choose a Space-only task.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=claude_project.container_runtime_unavailable\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"Docker or Podman could not prepare the image for this Claude project task. Check the container engine and its image download, then try again.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=claude_project.image_unavailable\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"OpenMeld couldn't verify this Claude project task's file isolation. Check Docker or Podman and this Agent's settings before starting another project task. Open Diagnostics for the failed check.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\n\t\t\t\"=claude_project.isolation_unverified\",\n\t\t\t\"=claude_project.inside_access_unverified\",\n\t\t\t\"=claude_project.outside_access_unverified\",\n\t\t\t\"=claude_project.inside_write_unverified\"\n\t\t],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"OpenMeld couldn't confirm this Claude Agent's permission rules. Check that its Claude settings files can be read and contain valid JSON, then wake the Agent again.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=claude_delivery_policy.unavailable\", \"=claude_delivery_policy.invalid\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"Select the official Antigravity ACP installation and sign in on this computer, then start a new task. The legacy Antigravity CLI cannot run independent tasks.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=execution_context.antigravity_acp_required\"],\n\t\tprimaryActionId: \"manage_local_agent\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"This Agent cannot apply the selected task access limits. Start a new task using Agent settings, or choose an Agent that supports these limits.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=execution_context.controller_access_unsupported\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"The selected task is not available to continue or fork. Select an available task that you started, or start a new task.\",\n\t\tkind: \"request_ended\",\n\t\tpatterns: [\"=execution_context.source_unavailable\"],\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: \"This Agent cannot fork task history. Continue the original task, or start a new task with no previous history.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=execution_context.fork_unsupported\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"This independent project task needs a connected Git repository with at least one commit. Choose that repository's root as the Agent's working folder, then start a new task.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\n\t\t\t\"execution_context.project_repository_required\",\n\t\t\t\"execution_context.project_repository_root_required\",\n\t\t\t\"execution_context.project_commit_required\"\n\t\t],\n\t\tprimaryActionId: \"manage_local_agent\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"The requested commit is not available in the Agent's Project connection. Fetch that published commit on the Agent's computer, then send a new handoff.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=execution_context.project_revision_unavailable\"],\n\t\tprimaryActionId: \"check_status\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"The current folder is on a different commit. Choose a separate copy for the requested revision, or switch the connected checkout before sending a new handoff.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=execution_context.project_revision_mismatch\"],\n\t\tprimaryActionId: \"check_status\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"The current folder has local changes. Choose a separate copy, or finish those changes before handing off a fixed revision.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=execution_context.project_worktree_dirty\"],\n\t\tprimaryActionId: \"check_status\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: CODE_HANDOFF_RECEIVER_UNSUPPORTED_PUBLIC_COPY,\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=space.handoff.code_receiver_unsupported\"],\n\t\tprimaryActionId: \"manage_local_agent\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: \"This Agent cannot receive the selected handoff materials. Choose a supported Agent and send a new handoff. Shared files without a repository require Codex or a Remote Agent.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=execution_context.handoff_receiver_unsupported\"],\n\t\tprimaryActionId: \"manage_local_agent\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: \"This Agent's connection cannot enforce the handoff's file-access limits. Use a Codex Agent connected through App Server, or another supported Agent, then send a new handoff.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=execution_context.handoff_transport_unsupported\"],\n\t\tprimaryActionId: \"manage_local_agent\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: \"OpenMeld could not verify file-access limits with this Agent's previous permission settings, so the task did not start. Choose Ask for approval, Approve for me, or Full access in this Agent's settings, then try again.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=execution_context.custom_config_file_access_unverified\"],\n\t\tprimaryActionId: \"manage_local_agent\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"The Agent owner's request can no longer be verified. The task did not start. Ask the owner to send the task again.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=execution_context.owner_request_unavailable\"],\n\t\tprimaryActionId: \"check_status\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"OpenMeld couldn't verify this task's project file boundary. Check this computer's file-access settings and use a task workspace outside system temporary folders, then start a new task.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\n\t\t\t\"execution_context.workspace_access_unverified\",\n\t\t\t\"execution_context.workspace_probe_unsupported\",\n\t\t\t\"execution_context.workspace_probe_timeout\"\n\t\t],\n\t\tprimaryActionId: \"manage_local_agent\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"This local Agent couldn't start with only the tools authorized for this task. Check the Agent's MCP configuration, then start a new task.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\n\t\t\t\"execution_context.mcp_server_namespace_conflict\",\n\t\t\t\"execution_context.mcp_inventory_timeout\",\n\t\t\t\"context.mcp_isolation_unverified\"\n\t\t],\n\t\tprimaryActionId: \"manage_local_agent\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"OpenMeld couldn't start the tools required for this task. Open Diagnostics for details, then wake the agent again.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"execution_context.mcp_server_initialization_failed\"],\n\t\tprimaryActionId: \"manage_local_agent\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"This task did not start because its conversation uses a different folder. Send it again to choose how to continue. The previous conversation is saved.\",\n\t\tkind: \"request_ended\",\n\t\tpatterns: [\n\t\t\t\"=context.workspace_mismatch\",\n\t\t\t\"=context.workspace_unavailable\",\n\t\t\t\"=context.workspace_recovery_changed\",\n\t\t\t\"=context.workspace_recovery_unanswered\"\n\t\t],\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: \"The Computer owner stopped this task before the Agent started. The previous conversation is saved.\",\n\t\tkind: \"request_ended\",\n\t\tpatterns: [\"=context.workspace_recovery_declined\"],\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: \"OpenMeld could not read this conversation’s folder. Open the conversation in OpenCode, then try this task again.\",\n\t\tkind: \"request_ended\",\n\t\tpatterns: [\"=context.workspace_verification_unavailable\"],\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: \"This task ended while waiting for a response. Send it again when you’re ready.\",\n\t\tkind: \"request_ended\",\n\t\tpatterns: [\"=interaction.expired\", \"=runtime_coordinator.interaction_expired\"],\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Working folder missing\",\n\t\tavailabilitySummary: \"Choose a working folder for this Agent.\",\n\t\tavailabilityTooltip: \"Working folder missing\",\n\t\tbody: (targetName) => `${targetName} couldn’t start because its working folder is not configured on the computer that runs it. Choose a working folder, then try again.`,\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"workspace.missing\", \"profile.workspace.missing\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"working_folder\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Working folder unavailable\",\n\t\tavailabilitySummary: \"Review this Agent’s working folder.\",\n\t\tavailabilityTooltip: \"Working folder unavailable\",\n\t\tbody: (targetName) => `${targetName} couldn’t start because its working folder could not be used on the computer that runs it. Review that folder, then try again.`,\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"workspace.invalid\", \"profile.workspace.invalid\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: \"working_folder\"\n\t},\n\t{\n\t\tbody: CODEX_UPGRADE_REQUIRED_REASON,\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"controller.client.upgrade_required\"],\n\t\tprimaryActionId: \"manage_local_agent\",\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"This local agent is not available on the computer that runs this Agent. Check its installation on that computer, then try again.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"controller.runtime.missing\"],\n\t\tprimaryActionId: \"manage_local_agent\",\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: (targetName) => `${targetName} could not start on this device. Repair it on this device, then try again.`,\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"controller.launch.needs_repair\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Turned off\",\n\t\tavailabilitySummary: \"This local agent is turned off in OpenMeld on this computer. Turn it on before this profile can reply.\",\n\t\tavailabilityTooltip: \"This local agent is turned off in OpenMeld on this computer.\",\n\t\tbody: (targetName) => `${targetName}'s local agent is turned off in OpenMeld on this computer. Turn it on, then wake the agent again.`,\n\t\tkind: \"local_agent_prepare\",\n\t\tmappedReasonBody: \"This local agent is turned off in OpenMeld on this computer. Turn it on, then wake the agent again.\",\n\t\tpatterns: [\"=controller.registry.disabled\"],\n\t\tprimaryActionId: \"turn_on_local_agent\",\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tavailabilityBadgeLabel: \"Needs attention\",\n\t\tavailabilitySummary: \"Check the local agent's status on the computer that runs it.\",\n\t\tavailabilityTooltip: \"Local agent setup needs attention\",\n\t\tbody: (targetName) => `${targetName}'s local agent could not complete setup on its computer. Check its status on that computer, then try again.`,\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=controller.bootstrap.failed\", \"=controller.gateway.unhealthy\"],\n\t\tprimaryActionId: \"check_status\",\n\t\trecoveryTarget: \"computer\"\n\t},\n\t{\n\t\tbody: \"The model provider rejected this request because the provider credentials are invalid or expired. Reconnect the provider account, then wake the agent again.\",\n\t\tkind: \"account_access\",\n\t\tmappedReasonBody: \"The model provider rejected this request because the provider credentials are invalid or expired. Reconnect the provider account, then wake the agent again.\",\n\t\tpatterns: [\n\t\t\t\"auth\",\n\t\t\t\"credential\",\n\t\t\t\"login\"\n\t\t],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: (targetName) => `${targetName} asked for permission before it could continue. OpenMeld cannot collect that permission response yet. Review the Agent Profile’s permission mode, then wake the agent again.`,\n\t\tkind: \"account_access\",\n\t\tmappedReasonBody: INTERACTION_PERMISSION_REQUIRED_PUBLIC_COPY,\n\t\tpatterns: [\"=interaction.permission_required\"],\n\t\tprimaryActionId: \"review_agent_permissions\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: INTERACTION_QUESTION_REQUIRED_PUBLIC_COPY,\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\"=interaction.question_required\"],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: INTERACTION_PLAN_REQUIRED_PUBLIC_COPY,\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\"=interaction.plan_required\"],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: INTERACTION_UNSUPPORTED_PUBLIC_COPY,\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\"=interaction.unsupported\"],\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: \"The selected local agent is not ready to connect. Finish local agent setup on the Computer, then retry setup.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=agent_profile_creation_request.local_agent_not_ready\"],\n\t\tprimaryActionId: \"connect_local_agent\",\n\t\trecoveryTarget: \"prepare_setup\"\n\t},\n\t{\n\t\tbody: \"The selected model isn't offered by this local agent. Choose another model or update the local agent, then retry setup.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=agent_profile_creation_request.model_not_offered\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: \"The selected model requires a newer local agent. Update the local agent or choose another model, then retry setup.\",\n\t\tkind: \"local_agent_prepare\",\n\t\tpatterns: [\"=agent_profile_creation_request.model_requires_newer_controller\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: UNSUPPORTED_REASONING_PUBLIC_COPY,\n\t\tkind: \"account_access\",\n\t\tpatterns: [\"=model.reasoning_unsupported\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: CURSOR_MODEL_INVENTORY_UNAVAILABLE_PUBLIC_COPY,\n\t\tkind: \"system_retry\",\n\t\tpatterns: [\"=model.inventory_unavailable\"],\n\t\tpreferMappedReasonOverDetail: true,\n\t\trecoveryTarget: null\n\t},\n\t{\n\t\tbody: UNSUPPORTED_MODEL_PUBLIC_COPY,\n\t\tkind: \"account_access\",\n\t\tpatterns: [\"model.unsupported\", \"unsupported_model\"],\n\t\tpreferMappedReasonOverDetail: true,\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: \"The model provider rejected this request because the provider account does not have enough credits or quota. Add credits, increase the provider quota, or update billing, then wake the agent again.\",\n\t\tkind: \"account_access\",\n\t\tmappedReasonBody: \"The model provider rejected this request because the provider account does not have enough credits or quota. Add credits, increase the provider quota, or update billing, then wake the agent again.\",\n\t\tpatterns: [\"quota\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: \"The model provider rate-limited this request. Wait a moment or raise the provider limit, then wake the agent again.\",\n\t\tkind: \"account_access\",\n\t\tmappedReasonBody: \"The model provider rate-limited this request. Wait a moment or raise the provider limit, then wake the agent again.\",\n\t\tpatterns: [\"rate\"],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: \"The agent does not have permission to reply here.\",\n\t\tkind: \"account_access\",\n\t\tpatterns: [\n\t\t\t\"forbidden\",\n\t\t\t\"permission\",\n\t\t\t\"unauthorized\"\n\t\t],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t},\n\t{\n\t\tbody: \"The model provider was unreachable. Check provider status or network access, then wake the agent again.\",\n\t\tkind: \"unknown\",\n\t\tmappedReasonBody: \"The model provider was unreachable. Check provider status or network access, then wake the agent again.\",\n\t\tpatterns: [\n\t\t\t\"network\",\n\t\t\t\"provider\",\n\t\t\t\"unavailable\",\n\t\t\t\"upstream\"\n\t\t],\n\t\tprimaryActionId: \"review_agent_settings\",\n\t\trecoveryTarget: \"agents\"\n\t}\n];\nfunction resolvePublicAgentFailureRecovery(input) {\n\tconst normalizedErrorCode = normalizeOptionalText(input.errorCode)?.toLowerCase();\n\tif (!normalizedErrorCode) return null;\n\tconst targetName = normalizeOptionalText(input.targetLabel) ?? \"This agent\";\n\tconst mapping = findPublicFailureRecoveryMapping(normalizedErrorCode);\n\tif (!mapping) return input.includeUnknown === false ? null : {\n\t\tbody: `OpenMeld did not receive enough error details to explain why ${targetName} could not reply. Open diagnostics for technical details.`,\n\t\tkind: \"unknown\",\n\t\trecoveryTarget: null\n\t};\n\tconst body = resolvePublicAgentFailureBody(mapping.body, targetName);\n\tif (mapping.recoveryTarget === null) return {\n\t\tbody,\n\t\tkind: mapping.kind,\n\t\trecoveryTarget: null\n\t};\n\treturn {\n\t\tbody,\n\t\tkind: mapping.kind,\n\t\tprimaryActionId: mapping.primaryActionId,\n\t\tprimaryActionLabel: formatAgentRecoveryActionLabel(mapping.primaryActionId),\n\t\trecoveryTarget: mapping.recoveryTarget\n\t};\n}\nfunction resolveMappedPublicAgentFailureReason(errorCode, targetLabel) {\n\tconst normalizedErrorCode = normalizeOptionalText(errorCode)?.toLowerCase();\n\tif (!normalizedErrorCode) return null;\n\tconst mapping = findMappedFailureRecovery(normalizedErrorCode);\n\tif (!mapping) return null;\n\treturn resolvePublicAgentFailureBody(mapping.mappedReasonBody ?? mapping.body, normalizeOptionalText(targetLabel) ?? \"This agent\");\n}\nfunction findMappedFailureRecovery(errorCode) {\n\treturn PUBLIC_FAILURE_RECOVERY_BY_CODE.find((candidate) => candidate.patterns.some((pattern) => matchesPublicFailureReasonPattern(errorCode, pattern)));\n}\nfunction resolveFailureCauseOnly(reasonCode, agentLabel) {\n\tconst callbackCause = CENTER_AGENT_CALLBACK_COPY_BY_CODE[reasonCode]?.cause;\n\tif (callbackCause) return callbackCause;\n\tconst cause = findMappedFailureRecovery(reasonCode.toLowerCase())?.cause;\n\treturn cause ? [resolvePublicAgentFailureBody(cause[0], agentLabel), resolvePublicAgentFailureBody(cause[1], agentLabel)] : null;\n}\nfunction shouldPreferMappedPublicAgentFailureReason(errorCode, detail) {\n\tconst normalizedErrorCode = normalizeOptionalText(errorCode)?.toLowerCase();\n\tif (!normalizedErrorCode) return false;\n\tconst mapping = findPublicFailureRecoveryMapping(normalizedErrorCode);\n\tif (!mapping) return false;\n\tif (mapping.preferMappedReasonOverDetail) return true;\n\tconst normalizedDetail = normalizeOptionalText(detail)?.toLowerCase();\n\treturn normalizedDetail ? mapping.preferMappedReasonDetailPatterns?.some((pattern) => normalizedDetail.includes(pattern)) ?? false : false;\n}\nfunction isProjectLocalConnectionFailureReasonCode(value) {\n\treturn projectLocalConnectionFailureReasonCodeSchema.safeParse(value).success;\n}\nfunction resolvePublicAgentAvailabilityCopy(reasonCode, context = {}) {\n\tconst normalizedReasonCode = normalizeOptionalText(reasonCode)?.toLowerCase();\n\tif (!normalizedReasonCode) return null;\n\tconst mapping = PUBLIC_AGENT_AVAILABILITY_ONLY_COPY_BY_CODE.find((candidate) => candidate.patterns.some((pattern) => matchesPublicFailureReasonPattern(normalizedReasonCode, pattern))) ?? PUBLIC_FAILURE_RECOVERY_BY_CODE.find((candidate) => candidate.availabilitySummary !== void 0 && candidate.patterns.some((pattern) => matchesPublicFailureReasonPattern(normalizedReasonCode, pattern))) ?? null;\n\tif (!mapping) return null;\n\treturn {\n\t\tavailabilityBadgeLabel: resolvePublicAgentAvailabilityCopyValue(mapping.availabilityBadgeLabel, context),\n\t\tavailabilitySummary: resolvePublicAgentAvailabilityCopyValue(mapping.availabilitySummary, context),\n\t\tavailabilityTooltip: resolvePublicAgentAvailabilityCopyValue(mapping.availabilityTooltip, context),\n\t\tcontrollerInterfaceDescription: resolvePublicAgentAvailabilityCopyValue(mapping.controllerInterfaceDescription, context),\n\t\tcontrollerInterfaceDescriptionFallback: resolvePublicAgentAvailabilityCopyValue(mapping.controllerInterfaceDescriptionFallback, context),\n\t\tmanualOnlyAgentDetail: resolvePublicAgentAvailabilityCopyValue(mapping.manualOnlyAgentDetail, context)\n\t};\n}\nfunction resolvePublicAgentAvailabilityCopyValue(value, context) {\n\treturn typeof value === \"function\" ? value(context) : value;\n}\nfunction resolveControllerSignInAvailabilityCopy(context) {\n\treturn CONTROLLER_SIGN_IN_AVAILABILITY_COPY_BY_ID[context.agentControllerId ?? \"\"] ?? DEFAULT_CONTROLLER_SIGN_IN_AVAILABILITY_COPY;\n}\nfunction normalizeOptionalText(value) {\n\tconst normalized = typeof value === \"string\" ? value.trim() : \"\";\n\treturn normalized.length > 0 ? normalized : null;\n}\nfunction formatObjectTargetName(targetName) {\n\treturn targetName === \"This agent\" ? \"this agent\" : targetName;\n}\nfunction formatPossessiveTargetName(targetName) {\n\tconst objectTargetName = formatObjectTargetName(targetName);\n\treturn objectTargetName.endsWith(\"s\") ? `${objectTargetName}'` : `${objectTargetName}'s`;\n}\nfunction matchesPublicFailureReasonPattern(normalizedErrorCode, pattern) {\n\tif (pattern.startsWith(EXACT_PATTERN_PREFIX)) return normalizedErrorCode === pattern.slice(1);\n\treturn normalizedErrorCode.includes(pattern);\n}\nfunction findPublicFailureRecoveryMapping(normalizedErrorCode) {\n\treturn PUBLIC_FAILURE_RECOVERY_BY_CODE.find((candidate) => candidate.patterns.some((pattern) => matchesPublicFailureReasonPattern(normalizedErrorCode, pattern))) ?? null;\n}\nfunction resolvePublicAgentFailureBody(body, targetName) {\n\treturn typeof body === \"function\" ? body(targetName) : body;\n}\n//#endregion\nexport { CENTER_AGENT_CONTEXT_WINDOW_EXCEEDED_PUBLIC_COPY, CENTER_AGENT_EMPTY_REPLY_PUBLIC_COPY, CENTER_AGENT_EXECUTION_IDENTITY_MISMATCH_PUBLIC_COPY, CENTER_AGENT_ORGANIZATION_UNAVAILABLE_PUBLIC_COPY, CENTER_AGENT_OUTPUT_LIMIT_EXCEEDED_PUBLIC_COPY, CENTER_AGENT_REPLY_PUBLICATION_FAILED_PUBLIC_COPY, CENTER_AGENT_REQUEST_FAILED_PUBLIC_COPY, CENTER_AGENT_REQUEST_START_FAILED_PUBLIC_COPY, CENTER_AGENT_REQUEST_STOPPED_PUBLIC_COPY, CENTER_AGENT_SOURCE_MESSAGE_MISSING_PUBLIC_COPY, CENTER_AGENT_TEMPORARILY_UNAVAILABLE_PUBLIC_COPY, CENTER_AGENT_TURN_TIMEOUT_PUBLIC_COPY, CODEX_UPGRADE_REQUIRED_REASON, CODE_HANDOFF_RECEIVER_UNSUPPORTED_PUBLIC_COPY, DISPATCH_ERROR_SUMMARY_MAX_LENGTH, ORGANIZATION_SKILL_RELEASE_UNAVAILABLE_PUBLIC_COPY, ORGANIZATION_SKILL_RELEASE_UNAVAILABLE_REASON_CODE, PROJECT_LOCAL_CONNECTION_FAILURE_REASON_CODES, REMOTE_AGENT_CONVERSATION_HISTORY_LIMIT_EXCEEDED_PUBLIC_COPY, REMOTE_AGENT_CONVERSATION_HISTORY_LIMIT_EXCEEDED_REASON_CODE, REMOTE_AGENT_TOOL_RESULT_TOO_LARGE_PUBLIC_COPY, REMOTE_AGENT_TOOL_RESULT_TOO_LARGE_REASON_CODE, REMOTE_AGENT_TOOL_SAFETY_LIMIT_PUBLIC_COPY, REMOTE_AGENT_TOOL_SAFETY_LIMIT_REASON_CODE, REMOTE_AGENT_WORK_LOOP_CONTINUATION_LIMIT_PUBLIC_COPY, REMOTE_AGENT_WORK_LOOP_CONTINUATION_LIMIT_REASON_CODE, buildHostedAgentRequestFailedPublicCopy, buildTaskContinuationAdmissionExhaustedPublicCopy, formatPublicAgentFailureFacts, formatPublicInterruptedTaskFailureFacts, formatPublicRoutineFailureFacts, isProjectLocalConnectionFailureReasonCode, projectLocalConnectionFailureReasonCodeSchema, resolveCenterAgentCallbackFailureMessage, resolveHostedAgentCallbackFailureReasonCode, resolveMappedPublicAgentFailureReason, resolvePublicAgentAvailabilityCopy, resolvePublicAgentFailureRecovery, resolvePublicFailureCodeCategory, sanitizeDispatchErrorSummary, shouldPreferMappedPublicAgentFailureReason };\n\n//# sourceMappingURL=public-agent-failure-reason.js.map","import { openMeldRequestContextSchema } from \"./daemon/profile-identity.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/ai-billing.ts\nconst AI_FREE_MONTHLY_CREDITS = 5e3;\nconst AI_CREDITS_PER_USD = 1e3;\nconst AI_CREDIT_POLICY_VERSION = \"2026-10-v1\";\nconst aiFundingSourceSchema = z$1.enum([\"free\", \"byok\"]);\nconst aiUsageFundingSourceSchema = aiFundingSourceSchema.or(z$1.literal(\"internal\"));\nconst organizationAiBillingSchema = z$1.strictObject({\n\tplan: z$1.literal(\"free\"),\n\tsource: aiFundingSourceSchema,\n\tpolicyVersion: z$1.literal(AI_CREDIT_POLICY_VERSION),\n\tmonthlyCredits: z$1.number().int().nonnegative().nullable(),\n\tusedCredits: z$1.number().nonnegative().nullable(),\n\tremainingCredits: z$1.number().nonnegative().nullable(),\n\tresetsAt: z$1.iso.datetime().nullable(),\n\tkeySuffix: z$1.string().max(4).nullable(),\n\tcanManage: z$1.boolean(),\n\tstatus: z$1.enum([\n\t\t\"available\",\n\t\t\"exhausted\",\n\t\t\"unavailable\"\n\t])\n});\nconst updateOrganizationAiBillingSchema = z$1.discriminatedUnion(\"source\", [z$1.strictObject({ source: z$1.literal(\"free\") }), z$1.strictObject({\n\tsource: z$1.literal(\"byok\"),\n\tapiKey: z$1.string().trim().min(16).max(512).regex(/^sk-or-[A-Za-z0-9_-]+$/)\n})]);\nconst organizationAiBillingRpcInputSchema = z$1.strictObject({ context: openMeldRequestContextSchema });\nconst updateOrganizationAiBillingRpcInputSchema = organizationAiBillingRpcInputSchema.extend({ settings: updateOrganizationAiBillingSchema });\nconst remoteAiProviderAuthorizationSchema = z$1.strictObject({\n\tsource: aiFundingSourceSchema,\n\tapiKey: z$1.string().min(16).max(512)\n});\n//#endregion\nexport { AI_CREDITS_PER_USD, AI_CREDIT_POLICY_VERSION, AI_FREE_MONTHLY_CREDITS, aiFundingSourceSchema, aiUsageFundingSourceSchema, organizationAiBillingRpcInputSchema, organizationAiBillingSchema, remoteAiProviderAuthorizationSchema, updateOrganizationAiBillingRpcInputSchema, updateOrganizationAiBillingSchema };\n\n//# sourceMappingURL=ai-billing.js.map","import { openMeldRequestContextSchema } from \"./daemon/profile-identity.js\";\nimport { centerAgentToolSpeakerSchema } from \"./http/center-agent-speaker.js\";\nimport { aiUsageFundingSourceSchema, remoteAiProviderAuthorizationSchema } from \"./ai-billing.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/ai-usage.ts\nconst count = z$1.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);\nconst identifier = z$1.string().trim().min(1).max(256);\nconst aiUsageTokensSchema = z$1.strictObject({\n\tinput: count,\n\toutput: count,\n\tcacheRead: count.nullable(),\n\tcacheWrite: count.nullable(),\n\treasoning: count.nullable(),\n\ttotal: count\n});\nconst aiUsageObservationSchema = z$1.strictObject({\n\teventId: identifier,\n\tprovider: identifier,\n\tmodel: identifier.nullable(),\n\tsource: z$1.enum([\n\t\t\"openrouter_response\",\n\t\t\"codex_event\",\n\t\t\"claude_message\",\n\t\t\"opencode_message\"\n\t]),\n\toccurredAtMs: count,\n\ttokens: aiUsageTokensSchema.nullable(),\n\tcost: z$1.strictObject({\n\t\tnanoUsd: count,\n\t\tkind: z$1.enum([\"provider_reported\", \"provider_estimate\"])\n\t}).nullable()\n});\nconst aiUsageRecordSchema = aiUsageObservationSchema.extend({\n\tfundingSource: aiUsageFundingSourceSchema.optional(),\n\tstatus: z$1.enum([\n\t\t\"pending\",\n\t\t\"reported\",\n\t\t\"unavailable\",\n\t\t\"collection_failed\"\n\t]),\n\tcollectionFailure: z$1.enum([\n\t\t\"request_failed\",\n\t\t\"stream_interrupted\",\n\t\t\"invalid_response\"\n\t]).optional(),\n\tproviderRequestId: identifier.nullable(),\n\torganizationId: identifier,\n\truntime: z$1.enum([\"local\", \"remote\"]),\n\tpurpose: z$1.enum([\n\t\t\"agent\",\n\t\t\"compaction\",\n\t\t\"compaction_prefix\",\n\t\t\"web_research\",\n\t\t\"image_understanding\",\n\t\t\"session_title\",\n\t\t\"activity_digest\"\n\t]),\n\tagentProfileId: identifier.nullable(),\n\tspaceId: identifier.nullable(),\n\ttaskId: identifier.nullable(),\n\tdispatchId: identifier.nullable().optional(),\n\tattemptId: identifier.nullable(),\n\tcomputerId: identifier.nullable(),\n\tcontroller: identifier.nullable()\n});\nconst remoteAiUsageWriteSchema = z$1.strictObject({\n\tproviderAuthorizationVersion: z$1.literal(1).optional(),\n\tphase: z$1.enum([\"begin\", \"settle\"]),\n\trecord: aiUsageRecordSchema\n});\nconst remoteAiUsageWriteResponseSchema = z$1.strictObject({\n\tstatus: z$1.enum([\"accepted\", \"limit_reached\"]),\n\tproviderAuthorization: remoteAiProviderAuthorizationSchema.optional()\n});\nconst aiUsageQuerySchema = z$1.strictObject({\n\tfromMs: count,\n\ttoMs: count,\n\truntime: z$1.enum([\"local\", \"remote\"]).optional(),\n\tmodel: identifier.optional(),\n\tagentProfileId: identifier.optional(),\n\tagentProfileIds: z$1.array(identifier).max(1e3).optional(),\n\tspaceId: identifier.optional(),\n\ttaskId: identifier.optional(),\n\tdispatchId: identifier.optional(),\n\tcomputerId: identifier.optional(),\n\tcontroller: identifier.optional(),\n\tgroupBy: z$1.enum([\n\t\t\"model\",\n\t\t\"task\",\n\t\t\"agent\"\n\t]).optional(),\n\tsortBy: z$1.enum([\"cost\", \"tokens\"]).optional(),\n\tlimit: z$1.number().int().min(1).max(50).optional(),\n\tincludeIssues: z$1.boolean().optional(),\n\tbucketBoundariesMs: z$1.array(count).min(2).max(32).optional(),\n\tgroupTimeSeriesBy: z$1.enum([\"controller\", \"model\"]).optional()\n}).refine((value) => !value.groupTimeSeriesBy || !!value.bucketBoundariesMs, { message: \"Time series grouping requires bucket boundaries.\" }).refine((value) => value.toMs > value.fromMs && value.toMs - value.fromMs <= 26784e5, { message: \"Choose a period of up to 31 days.\" }).refine(({ bucketBoundariesMs: edges, fromMs, toMs }) => !edges || edges[0] === fromMs && edges.at(-1) === toMs && edges.every((edge, index) => index === 0 || edge > (edges[index - 1] ?? -1)), { message: \"Buckets must increase strictly and cover the query period.\" });\nconst aiUsageSummarySchema = z$1.strictObject({\n\truntime: z$1.enum([\"local\", \"remote\"]),\n\tprovider: identifier,\n\tmodel: identifier.nullable(),\n\trequests: count,\n\tinputTokens: count,\n\toutputTokens: count,\n\ttotalTokens: count,\n\treportedCostNanoUsd: count,\n\testimatedCostNanoUsd: count,\n\tmissingTokenRequests: count,\n\tmissingCostRequests: count\n});\nconst aiUsageCoverageSchema = z$1.strictObject({\n\tscope: z$1.literal(\"observed_requests\"),\n\treportedRequests: count,\n\tpendingRequests: count,\n\tstalePendingRequests: count,\n\tunavailableRequests: count,\n\tcollectionFailedRequests: count,\n\tmissingTokenRequests: count,\n\tmissingCostRequests: count,\n\tunassignedTaskRequests: count,\n\toldestPendingAtMs: count.nullable(),\n\tstaleAfterMs: count\n});\nconst aiUsageGroupSchema = z$1.strictObject({\n\truntime: z$1.enum([\"local\", \"remote\"]),\n\ttaskId: identifier.nullable(),\n\tagentProfileId: identifier.nullable(),\n\tspaceId: identifier.nullable(),\n\trequests: count,\n\tinputTokens: count,\n\toutputTokens: count,\n\ttotalTokens: count,\n\treportedCostNanoUsd: count,\n\testimatedCostNanoUsd: count,\n\tmissingTokenRequests: count,\n\tmissingCostRequests: count,\n\tpendingRequests: count,\n\tcollectionFailedRequests: count,\n\tunavailableRequests: count,\n\tobservedExecutionAttempts: count,\n\tobservedExecutionRetries: count.nullable(),\n\trequestsWithoutAttemptId: count,\n\tfirstObservedAtMs: count,\n\tlastObservedAtMs: count,\n\tmodels: z$1.array(identifier.nullable()),\n\tpurposes: z$1.array(aiUsageRecordSchema.shape.purpose),\n\tdispatchIds: z$1.array(identifier),\n\tdispatchIdsTruncated: z$1.boolean(),\n\texecutionDetailsTruncated: z$1.boolean().optional(),\n\texecutions: z$1.array(z$1.strictObject({\n\t\tdispatchId: identifier,\n\t\tsource: z$1.enum([\"runtime_coordinator\", \"native_delivery\"]),\n\t\tstatus: identifier.nullable(),\n\t\toutcome: identifier.nullable(),\n\t\tupdatedAtMs: count.nullable()\n\t})).optional()\n});\nconst aiUsageBucketTotalsSchema = z$1.strictObject({\n\trequests: count,\n\tinputTokens: count,\n\toutputTokens: count,\n\ttotalTokens: count,\n\tmissingTokenRequests: count\n});\nconst aiUsageQueryResponseSchema = z$1.strictObject({\n\tfromMs: count,\n\ttoMs: count,\n\tmodels: z$1.array(aiUsageSummarySchema),\n\ttimeSeries: z$1.array(aiUsageBucketTotalsSchema.extend({\n\t\tfromMs: count,\n\t\ttoMs: count,\n\t\treportedCostNanoUsd: count.optional(),\n\t\testimatedCostNanoUsd: count.optional(),\n\t\tmissingCostRequests: count.optional(),\n\t\tcontrollers: z$1.array(aiUsageBucketTotalsSchema.extend({ controller: identifier.nullable() })).optional(),\n\t\tmodels: z$1.array(aiUsageBucketTotalsSchema.extend({\n\t\t\tprovider: identifier,\n\t\t\tmodel: identifier.nullable(),\n\t\t\treportedCostNanoUsd: count,\n\t\t\testimatedCostNanoUsd: count,\n\t\t\tmissingCostRequests: count\n\t\t})).optional()\n\t})).max(31).optional(),\n\tcoverage: aiUsageCoverageSchema.optional(),\n\tissues: z$1.strictObject({\n\t\trecords: z$1.array(aiUsageRecordSchema),\n\t\thasMore: z$1.boolean()\n\t}).optional(),\n\tbreakdown: z$1.strictObject({\n\t\tgroupBy: z$1.enum([\"task\", \"agent\"]),\n\t\tsortBy: z$1.enum([\"cost\", \"tokens\"]),\n\t\tlimit: count,\n\t\thasMore: z$1.boolean(),\n\t\tgroups: z$1.array(aiUsageGroupSchema)\n\t}).optional()\n});\nconst organizationAiUsageRpcInputSchema = z$1.strictObject({\n\tcontext: openMeldRequestContextSchema,\n\tquery: aiUsageQuerySchema.optional()\n});\nconst centerAgentAiUsageRpcInputSchema = organizationAiUsageRpcInputSchema.extend({ speakerMember: centerAgentToolSpeakerSchema });\n//#endregion\nexport { aiUsageObservationSchema, aiUsageQueryResponseSchema, aiUsageQuerySchema, aiUsageRecordSchema, aiUsageSummarySchema, aiUsageTokensSchema, centerAgentAiUsageRpcInputSchema, organizationAiUsageRpcInputSchema, remoteAiUsageWriteResponseSchema, remoteAiUsageWriteSchema };\n\n//# sourceMappingURL=ai-usage.js.map","import { openMeldRequestContextSchema } from \"../daemon/profile-identity.js\";\nimport { spaceThreadContextSchema } from \"./space-thread.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/space-mesh/agent-reply-placement.ts\nconst AGENT_REPLY_PLACEMENT_HEADER = \"x-openmeld-agent-reply-placement\";\nfunction agentStreamForReplyPlacementReader(stream, supported) {\n\tif (supported || stream.replyThreadRootSignalId === void 0) return stream;\n\tif (stream.replyThreadRootSignalId !== null) return null;\n\treturn {\n\t\t...stream,\n\t\treplyThreadRootSignalId: void 0\n\t};\n}\nfunction agentStreamsForReplyPlacementReader(streams, supported) {\n\treturn streams.flatMap((stream) => {\n\t\tconst projected = agentStreamForReplyPlacementReader(stream, supported);\n\t\treturn projected ? [projected] : [];\n\t});\n}\nconst agentReplyPlacementSchema = z$1.enum([\"conversation\", \"thread\"]);\nconst centerAgentSetReplyPlacementInputSchema = z$1.strictObject({\n\tcontext: openMeldRequestContextSchema,\n\tplacement: agentReplyPlacementSchema\n});\nconst resolveNativeReplyPlacementInputSchema = z$1.strictObject({\n\tspaceId: z$1.string().min(1),\n\tdispatchId: z$1.string().min(1),\n\tsourceSignalId: z$1.string().min(1),\n\tprofileId: z$1.string().min(1),\n\tdefaultToThread: z$1.boolean(),\n\tlock: z$1.boolean(),\n\tplacement: agentReplyPlacementSchema.optional()\n});\nconst nativeReplyPlacementSchema = z$1.strictObject({\n\tdispatchId: z$1.string().min(1),\n\tsourceSignalId: z$1.string().min(1),\n\tprofileId: z$1.string().min(1),\n\tthreadContext: spaceThreadContextSchema.nullable(),\n\tlocked: z$1.boolean()\n});\n//#endregion\nexport { AGENT_REPLY_PLACEMENT_HEADER, agentReplyPlacementSchema, agentStreamForReplyPlacementReader, agentStreamsForReplyPlacementReader, centerAgentSetReplyPlacementInputSchema, nativeReplyPlacementSchema, resolveNativeReplyPlacementInputSchema };\n\n//# sourceMappingURL=agent-reply-placement.js.map","import { trimmedStringFromUnknown } from \"../protocol/shared.js\";\nimport { openMeldRuntimeProfileIdSchema } from \"../protocol/profile.js\";\nimport { spaceMessageFileReferencesSchema } from \"../http/space-files.js\";\nimport { messageEnvelopeSchema } from \"../protocol/message-envelope.js\";\nimport { spaceThreadActionRefSchema } from \"./space-thread.js\";\n \nimport { spaceStatusSchema } from \"./signal-status.js\";\nimport { agentReplyPlacementSchema } from \"./agent-reply-placement.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/space-mesh/openmeld-space-action.ts\nconst SPACE_UPDATES_DEFAULT_LIMIT = 20;\nconst SPACE_UPDATES_MAX_LIMIT = 200;\nconst signalIdRefSchema = z$1.strictObject({ signalId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)) });\nconst openMeldSpaceActionReplyToSchema = z$1.union([z$1.literal(\"current\"), signalIdRefSchema]);\nconst openMeldSpaceActionReadUpdatesFromSchema = z$1.union([z$1.literal(\"last_public_reply\"), signalIdRefSchema]);\nconst openMeldSpaceActionReadResultBySchema = z$1.union([z$1.strictObject({ resultRef: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)) }), z$1.strictObject({ dispatchId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)) })]);\nconst openMeldSpacePostMessageActionSchema = z$1.strictObject({\n\ttype: z$1.literal(\"post_message\"),\n\tplacement: agentReplyPlacementSchema.optional(),\n\tobservedThroughSignalId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)).optional(),\n\tmessageEnvelope: messageEnvelopeSchema,\n\tfiles: spaceMessageFileReferencesSchema.optional(),\n\tthread: spaceThreadActionRefSchema.optional(),\n\tsaveResult: z$1.boolean().optional()\n});\nconst openMeldSpacePostStatusActionSchema = z$1.strictObject({\n\ttype: z$1.literal(\"post_status\"),\n\tstatus: spaceStatusSchema,\n\ttargetProfileId: openMeldRuntimeProfileIdSchema.optional(),\n\ttext: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(120)),\n\treplyTo: openMeldSpaceActionReplyToSchema.optional(),\n\tthread: spaceThreadActionRefSchema.optional(),\n\tsaveResult: z$1.boolean().optional()\n});\nconst openMeldSpaceStaySilentActionSchema = z$1.strictObject({\n\ttype: z$1.literal(\"stay_silent\"),\n\treason: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),\n\tsaveResult: z$1.boolean().optional()\n});\nconst openMeldSpaceReadUpdatesActionSchema = z$1.strictObject({\n\ttype: z$1.literal(\"read_updates\"),\n\tfrom: openMeldSpaceActionReadUpdatesFromSchema,\n\tthread: spaceThreadActionRefSchema.optional(),\n\tlimit: z$1.number().int().finite().positive().max(200).optional()\n});\nconst openMeldSpaceReadResultActionSchema = z$1.strictObject({\n\ttype: z$1.literal(\"read_result\"),\n\tby: openMeldSpaceActionReadResultBySchema\n});\nconst openMeldSpaceActionSchema = z$1.union([\n\topenMeldSpacePostMessageActionSchema,\n\topenMeldSpacePostStatusActionSchema,\n\topenMeldSpaceStaySilentActionSchema,\n\topenMeldSpaceReadUpdatesActionSchema,\n\topenMeldSpaceReadResultActionSchema\n]);\nconst openMeldSpaceEgressActionSchema = z$1.union([\n\topenMeldSpacePostMessageActionSchema,\n\topenMeldSpacePostStatusActionSchema,\n\topenMeldSpaceStaySilentActionSchema\n]);\n//#endregion\nexport { SPACE_UPDATES_DEFAULT_LIMIT, SPACE_UPDATES_MAX_LIMIT, openMeldSpaceActionReadResultBySchema, openMeldSpaceActionReadUpdatesFromSchema, openMeldSpaceActionReplyToSchema, openMeldSpaceActionSchema, openMeldSpaceEgressActionSchema, openMeldSpacePostMessageActionSchema, openMeldSpacePostStatusActionSchema, openMeldSpaceReadResultActionSchema, openMeldSpaceReadUpdatesActionSchema, openMeldSpaceStaySilentActionSchema };\n\n//# sourceMappingURL=openmeld-space-action.js.map","import { array, boolean, discriminatedUnion, enum as enumFactory, int, literal, null as nullFactory, number, strictObject, string, union } from \"../../lazy-zod.js\";\nimport { profileWorkingDirectorySchema } from \"../protocol/profile.js\";\nimport { executionContextCompletionSchema } from \"../protocol/execution-context.js\";\nimport { agentControllerConversationRefSchema } from \"./conversation-contract.js\";\nimport { runtimeTransportModeSchema } from \"./controller-contract.js\";\nimport { dispatchExecutionSchema } from \"./conversation-lifecycle.js\";\nimport { bootstrapTemplateFactsSchema } from \"./conversation-execution-state.js\";\nimport { projectLocalConnectionFailureReasonCodeSchema } from \"../../public-agent-failure-reason.js\";\nimport { aiUsageObservationSchema } from \"../ai-usage.js\";\nimport { openMeldSpaceEgressActionSchema } from \"../space-mesh/openmeld-space-action.js\";\n//#region src/schemas/daemon/task-result.ts\nconst OPENMELD_DAEMON_TASK_RESULT_SCHEMA_VERSION = 4;\nconst OPENMELD_DAEMON_TASK_RESULT_SCHEMA_VERSION_PREVIOUS = 3;\nconst OPENMELD_DAEMON_TASK_RESULT_SCHEMA_VERSION_LEGACY = 2;\nconst OPENMELD_DAEMON_TASK_RESULT_SCHEMA_VERSION_OLDEST = 1;\nconst openMeldDaemonTaskResultStatusSchema = enumFactory([\n\t\"success\",\n\t\"partial_success\",\n\t\"failed\"\n]);\nconst openMeldDaemonTaskResultErrorTypeSchema = enumFactory([\n\t\"config\",\n\t\"network\",\n\t\"adapter\",\n\t\"policy\",\n\t\"timeout\",\n\t\"internal\",\n\t\"auth\"\n]);\nconst openMeldDaemonProviderAccessEvidenceProviderSchema = enumFactory([\n\t\"claude-code\",\n\t\"codex\",\n\t\"opencode\",\n\t\"openclaw\"\n]);\nconst openMeldDaemonProviderAccessEvidenceReasonCodeSchema = enumFactory([\n\t\"usage_exhausted\",\n\t\"provider_account.capacity_exhausted\",\n\t\"provider_account.organization_access_disabled\",\n\t\"provider_account.subscription_access_unavailable\"\n]);\nconst OPENMELD_ORIGINAL_ERROR_MAX_LENGTH = 2e3;\nconst ORIGINAL_ERROR_DIAGNOSTIC_FIELD_PATTERN = /(?:^|\\n)\\s*(?:args|command|cwd|raw(?:[_ ]payload)?|stack|stderr|stdout)\\s*:/i;\nconst ORIGINAL_ERROR_LOCAL_PATH_PATTERN = /(?:^|[\\s('\"`])(?:\\/(?:Users|home|private|tmp|var)\\/|[a-z]:\\\\)/i;\nconst ORIGINAL_ERROR_RAW_PAYLOAD_PATTERN = /^\\s*[[{]/;\nconst ORIGINAL_ERROR_SECRET_PATTERN = /(?:\\bsk-[a-z0-9_-]{16,}|\\b(?:api[_ -]?key|authorization|access[_ -]?token)\\s*[:=]\\s*\\S+)/i;\nconst ORIGINAL_ERROR_STACK_TRACE_PATTERN = /(?:^|\\n)\\s*(?:at\\s+\\S+|Error:.*\\n\\s*at\\s+)/;\nfunction isOriginalErrorSafeForMessageDetails(value) {\n\treturn !(ORIGINAL_ERROR_DIAGNOSTIC_FIELD_PATTERN.test(value) || ORIGINAL_ERROR_LOCAL_PATH_PATTERN.test(value) || ORIGINAL_ERROR_RAW_PAYLOAD_PATTERN.test(value) || ORIGINAL_ERROR_SECRET_PATTERN.test(value) || ORIGINAL_ERROR_STACK_TRACE_PATTERN.test(value));\n}\nconst openMeldDaemonOriginalErrorSchema = string().trim().min(1).max(OPENMELD_ORIGINAL_ERROR_MAX_LENGTH).refine(isOriginalErrorSafeForMessageDetails, { message: \"original error must not contain diagnostics, sensitive values, or local paths\" });\nconst openMeldDaemonProviderAccessEvidenceSourceSchema = literal(\"wake_failure\");\nconst openMeldDaemonProviderAccessEvidenceSchema = strictObject({\n\tobservedAtMs: number().int().nonnegative(),\n\tprovider: openMeldDaemonProviderAccessEvidenceProviderSchema,\n\treasonCode: openMeldDaemonProviderAccessEvidenceReasonCodeSchema,\n\tsource: openMeldDaemonProviderAccessEvidenceSourceSchema\n});\nconst openMeldDaemonTaskResultSpaceActionProvenanceSchema = enumFactory([\n\t\"cli_action\",\n\t\"direct\",\n\t\"local_repair\",\n\t\"controller_repair\"\n]);\nconst openMeldDaemonTaskResultSpaceActionFailureRepairModeSchema = enumFactory([\n\t\"required_check\",\n\t\"local_synthetic\",\n\t\"controller_roundtrip\"\n]);\nconst openMeldDaemonTaskResultSpaceActionCarrierKindSchema = enumFactory([\n\t\"fenced_block\",\n\t\"invalid_json\",\n\t\"none\",\n\t\"trailing_json\"\n]);\nconst openMeldDaemonTaskResultSpaceActionFailureDiagnosticsSchema = strictObject({\n\tcarrierKind: openMeldDaemonTaskResultSpaceActionCarrierKindSchema,\n\tinvalidOutputPreview: union([string().min(1), nullFactory()]),\n\tpublicFailureReason: union([string().min(1), nullFactory()]).optional().default(null),\n\trepairMode: openMeldDaemonTaskResultSpaceActionFailureRepairModeSchema,\n\tspaceActionCandidatePresent: boolean(),\n\tspaceActionParseError: union([string().min(1), nullFactory()])\n});\nconst openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema = enumFactory([\n\t\"missing_after_restart\",\n\t\"missing_before_restart\",\n\t\"visible\",\n\t\"visible_after_restart\"\n]);\nconst openMeldDaemonTaskResultOpenClawGatewayVisibilitySchema = strictObject({\n\tagentId: string().min(1),\n\tgatewayRestartAttempted: boolean(),\n\tgatewayVisibility: openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema\n});\nconst openMeldDaemonTaskResultOpenClawBindingClassificationSchema = enumFactory([\n\t\"missing\",\n\t\"canonical_owned\",\n\t\"legacy\",\n\t\"foreign\"\n]);\nconst openMeldDaemonTaskResultOpenClawBindingSchema = strictObject({ classification: openMeldDaemonTaskResultOpenClawBindingClassificationSchema });\nconst openMeldDaemonTaskResultLocalOwnerConflictSchema = strictObject({\n\tactiveAttemptId: string().min(1).nullable(),\n\tactiveDispatchId: string().min(1).nullable(),\n\tactiveExecutionTokenRunId: string().min(1).nullable(),\n\tactiveRuntimeCoordinatorExecutionId: string().min(1).nullable(),\n\tactiveTaskId: string().min(1).nullable(),\n\treason: literal(\"task.owner_conflict\"),\n\trejectedAttemptId: string().min(1),\n\trejectedDispatchId: string().min(1),\n\trejectedExecutionTokenRunId: string().min(1).nullable(),\n\trejectedRuntimeCoordinatorExecutionId: string().min(1).nullable(),\n\trejectedTaskId: string().min(1)\n});\nconst openMeldDaemonTaskResultPromptTraceSchema = strictObject({\n\tfingerprint: string().min(1),\n\tlength: int().nonnegative(),\n\tpreview: union([string().min(1), nullFactory()])\n});\nconst openMeldDaemonTaskResultClaimLeaseSchema = strictObject({\n\tclaimLeaseId: string().min(1),\n\toutcome: enumFactory([\"existing_lease\", \"new_lease\"]),\n\tstatus: literal(\"accepted\")\n});\nconst openMeldDaemonTaskResultProjectFailureContextSchema = strictObject({\n\tbindingGeneration: string().min(1).optional(),\n\tprojectId: string().min(1)\n});\nconst openMeldDaemonTaskResultTokenUsageBreakdownSchema = strictObject({\n\tcacheWriteInputTokens: int().nonnegative().optional(),\n\tcachedInputTokens: int().nonnegative(),\n\tinputTokens: int().nonnegative(),\n\toutputTokens: int().nonnegative(),\n\treasoningOutputTokens: int().nonnegative(),\n\ttotalTokens: int().nonnegative()\n});\nconst openMeldDaemonTaskResultTokenUsageSchema = strictObject({\n\tlast: openMeldDaemonTaskResultTokenUsageBreakdownSchema,\n\tmodelContextWindow: int().nonnegative().nullable(),\n\ttotal: openMeldDaemonTaskResultTokenUsageBreakdownSchema\n});\nconst openMeldDaemonTaskResultTelemetrySchema = strictObject({\n\taiUsage: array(aiUsageObservationSchema).max(4096).optional(),\n\tcompletedAtMs: number().int().nonnegative(),\n\tcontextCompactionObserved: boolean().optional(),\n\tcontextHealed: boolean().optional(),\n\texitCode: int().nullable().optional(),\n\texitObservedAtMs: number().int().nonnegative().optional(),\n\texitSignal: string().min(1).nullable().optional(),\n\tfirstOutputAtMs: number().int().nonnegative().optional(),\n\tfirstStderrAtMs: number().int().nonnegative().optional(),\n\tfirstStdoutAtMs: number().int().nonnegative().optional(),\n\tinvokedAtMs: number().int().nonnegative(),\n\tpreviewEmitted: boolean().optional(),\n\tprocessId: number().int().positive().optional(),\n\tprocessSpawnedAtMs: number().int().nonnegative().optional(),\n\tresumedContext: boolean(),\n\tstdinClosedAtMs: number().int().nonnegative().optional(),\n\tstreamingMode: enumFactory([\"final\", \"stream\"]).optional(),\n\ttimeoutTriggeredAtMs: number().int().nonnegative().optional(),\n\ttokenUsage: openMeldDaemonTaskResultTokenUsageSchema.optional()\n});\nconst openMeldDaemonTaskResultCommonSchemaV1 = strictObject({\n\ttaskId: string().min(1),\n\tsourceEventId: string().min(1),\n\tagentId: string().min(1),\n\tdeduped: boolean(),\n\tagentControllerRef: string().min(1).optional(),\n\tagentControllerConversationId: string().min(1).optional()\n});\nconst openMeldDaemonTaskResultCommonSchema = openMeldDaemonTaskResultCommonSchemaV1.extend({\n\texecutionContextId: string().uuid().optional(),\n\texecutionContextCompletion: executionContextCompletionSchema.optional(),\n\tattemptId: string().min(1),\n\ttelemetry: openMeldDaemonTaskResultTelemetrySchema.optional(),\n\tagentControllerConversation: agentControllerConversationRefSchema.optional(),\n\teffectiveRuntimeWorkingDirectory: profileWorkingDirectorySchema.optional(),\n\truntimeWorkspaceFingerprint: string().min(1).optional(),\n\ttransportMode: runtimeTransportModeSchema.optional(),\n\tpromptTrace: openMeldDaemonTaskResultPromptTraceSchema.optional(),\n\tprojectFailureContext: openMeldDaemonTaskResultProjectFailureContextSchema.optional(),\n\tclaimLease: openMeldDaemonTaskResultClaimLeaseSchema.optional(),\n\tbootstrapTemplateFacts: bootstrapTemplateFactsSchema.optional(),\n\tdispatchExecution: dispatchExecutionSchema.optional(),\n\topenClawGatewayVisibility: openMeldDaemonTaskResultOpenClawGatewayVisibilitySchema.optional(),\n\topenClawBinding: openMeldDaemonTaskResultOpenClawBindingSchema.optional(),\n\tlocalOwnerConflict: openMeldDaemonTaskResultLocalOwnerConflictSchema.optional(),\n\tspaceAction: openMeldSpaceEgressActionSchema.optional(),\n\tspaceActionFailureDiagnostics: openMeldDaemonTaskResultSpaceActionFailureDiagnosticsSchema.optional(),\n\tspaceActionProvenance: openMeldDaemonTaskResultSpaceActionProvenanceSchema.optional(),\n\tsuppressPublicOutcome: boolean().optional()\n});\nconst openMeldDaemonTaskResultCommonSchemaV3 = openMeldDaemonTaskResultCommonSchemaV1.extend({\n\tattemptId: string().min(1),\n\ttelemetry: openMeldDaemonTaskResultTelemetrySchema.optional(),\n\tagentControllerConversation: agentControllerConversationRefSchema.optional(),\n\teffectiveRuntimeWorkingDirectory: profileWorkingDirectorySchema.optional(),\n\truntimeWorkspaceFingerprint: string().min(1).optional(),\n\tbootstrapTemplateFacts: bootstrapTemplateFactsSchema.optional(),\n\tdispatchExecution: dispatchExecutionSchema.optional(),\n\topenClawGatewayVisibility: openMeldDaemonTaskResultOpenClawGatewayVisibilitySchema.optional(),\n\topenClawBinding: openMeldDaemonTaskResultOpenClawBindingSchema.optional(),\n\tspaceAction: openMeldSpaceEgressActionSchema.optional(),\n\tsuppressPublicOutcome: boolean().optional()\n});\nconst openMeldDaemonTaskResultSuccessPayloadSchema = openMeldDaemonTaskResultCommonSchema.extend({\n\tstatus: literal(\"success\"),\n\toutput: string().min(1)\n});\nconst openMeldDaemonTaskResultPartialSuccessPayloadSchema = openMeldDaemonTaskResultCommonSchema.extend({\n\tstatus: literal(\"partial_success\"),\n\toutput: string().min(1),\n\terrorType: openMeldDaemonTaskResultErrorTypeSchema,\n\terrorCode: string().min(1).optional(),\n\tpartialReason: string().min(1),\n\terrorMessage: string().min(1).optional()\n});\nconst openMeldDaemonTaskResultFailedPayloadSchema = openMeldDaemonTaskResultCommonSchema.extend({\n\tstatus: literal(\"failed\"),\n\terrorType: openMeldDaemonTaskResultErrorTypeSchema,\n\terrorCode: string().min(1).optional(),\n\terrorMessage: string().min(1).optional(),\n\toriginalError: openMeldDaemonOriginalErrorSchema.optional(),\n\tproviderAccessEvidence: openMeldDaemonProviderAccessEvidenceSchema.optional()\n});\nconst openMeldDaemonTaskResultPayloadSchema = discriminatedUnion(\"status\", [\n\topenMeldDaemonTaskResultSuccessPayloadSchema,\n\topenMeldDaemonTaskResultPartialSuccessPayloadSchema,\n\topenMeldDaemonTaskResultFailedPayloadSchema\n]).superRefine((value, ctx) => {\n\tconst isProjectConnectionFailure = value.status === \"failed\" && projectLocalConnectionFailureReasonCodeSchema.safeParse(value.errorCode).success;\n\tif (isProjectConnectionFailure && !value.projectFailureContext) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Project connection failures must include path-free Project trace context\",\n\t\tpath: [\"projectFailureContext\"]\n\t});\n\tif (!isProjectConnectionFailure && value.projectFailureContext) ctx.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"Project trace context is only valid for Project connection failures\",\n\t\tpath: [\"projectFailureContext\"]\n\t});\n});\nconst openMeldDaemonTaskResultSuccessPayloadSchemaV3 = openMeldDaemonTaskResultCommonSchemaV3.extend({\n\tstatus: literal(\"success\"),\n\toutput: string().min(1)\n});\nconst openMeldDaemonTaskResultPartialSuccessPayloadSchemaV3 = openMeldDaemonTaskResultCommonSchemaV3.extend({\n\tstatus: literal(\"partial_success\"),\n\toutput: string().min(1),\n\terrorType: openMeldDaemonTaskResultErrorTypeSchema,\n\terrorCode: string().min(1).optional(),\n\tpartialReason: string().min(1),\n\terrorMessage: string().min(1).optional()\n});\nconst openMeldDaemonTaskResultFailedPayloadSchemaV3 = openMeldDaemonTaskResultCommonSchemaV3.extend({\n\tstatus: literal(\"failed\"),\n\terrorType: openMeldDaemonTaskResultErrorTypeSchema,\n\terrorCode: string().min(1).optional(),\n\terrorMessage: string().min(1).optional()\n});\nconst openMeldDaemonTaskResultPayloadSchemaV3 = discriminatedUnion(\"status\", [\n\topenMeldDaemonTaskResultSuccessPayloadSchemaV3,\n\topenMeldDaemonTaskResultPartialSuccessPayloadSchemaV3,\n\topenMeldDaemonTaskResultFailedPayloadSchemaV3\n]);\nconst openMeldDaemonTaskResultSuccessPayloadSchemaV1 = openMeldDaemonTaskResultCommonSchemaV1.extend({\n\tstatus: literal(\"success\"),\n\toutput: string().min(1)\n});\nconst openMeldDaemonTaskResultPartialSuccessPayloadSchemaV1 = openMeldDaemonTaskResultCommonSchemaV1.extend({\n\tstatus: literal(\"partial_success\"),\n\toutput: string().min(1),\n\terrorType: openMeldDaemonTaskResultErrorTypeSchema,\n\terrorCode: string().min(1).optional(),\n\tpartialReason: string().min(1),\n\terrorMessage: string().min(1).optional()\n});\nconst openMeldDaemonTaskResultFailedPayloadSchemaV1 = openMeldDaemonTaskResultCommonSchemaV1.extend({\n\tstatus: literal(\"failed\"),\n\terrorType: openMeldDaemonTaskResultErrorTypeSchema,\n\terrorCode: string().min(1).optional(),\n\terrorMessage: string().min(1).optional()\n});\nconst openMeldDaemonTaskResultPayloadSchemaV1 = discriminatedUnion(\"status\", [\n\topenMeldDaemonTaskResultSuccessPayloadSchemaV1,\n\topenMeldDaemonTaskResultPartialSuccessPayloadSchemaV1,\n\topenMeldDaemonTaskResultFailedPayloadSchemaV1\n]);\nconst openMeldDaemonTaskResultEnvelopeWriteSchema = strictObject({\n\tv: literal(4),\n\tcode: literal(\"service.task_result\"),\n\tpayload: openMeldDaemonTaskResultPayloadSchema\n});\nconst openMeldDaemonTaskResultEnvelopeSchemaV3 = strictObject({\n\tv: literal(OPENMELD_DAEMON_TASK_RESULT_SCHEMA_VERSION_PREVIOUS),\n\tcode: literal(\"service.task_result\"),\n\tpayload: openMeldDaemonTaskResultPayloadSchemaV3\n});\nconst openMeldDaemonTaskResultEnvelopeSchemaV2 = strictObject({\n\tv: literal(OPENMELD_DAEMON_TASK_RESULT_SCHEMA_VERSION_LEGACY),\n\tcode: literal(\"service.task_result\"),\n\tpayload: openMeldDaemonTaskResultPayloadSchemaV3\n});\nconst openMeldDaemonTaskResultEnvelopeSchemaV1 = strictObject({\n\tv: literal(OPENMELD_DAEMON_TASK_RESULT_SCHEMA_VERSION_OLDEST),\n\tcode: literal(\"service.task_result\"),\n\tpayload: openMeldDaemonTaskResultPayloadSchemaV1\n});\nconst openMeldDaemonTaskResultEnvelopeSchema = union([\n\topenMeldDaemonTaskResultEnvelopeWriteSchema,\n\topenMeldDaemonTaskResultEnvelopeSchemaV2,\n\topenMeldDaemonTaskResultEnvelopeSchemaV3,\n\topenMeldDaemonTaskResultEnvelopeSchemaV1\n]);\n//#endregion\nexport { OPENMELD_DAEMON_TASK_RESULT_SCHEMA_VERSION, OPENMELD_ORIGINAL_ERROR_MAX_LENGTH, isOriginalErrorSafeForMessageDetails, openMeldDaemonOriginalErrorSchema, openMeldDaemonProviderAccessEvidenceProviderSchema, openMeldDaemonProviderAccessEvidenceReasonCodeSchema, openMeldDaemonProviderAccessEvidenceSchema, openMeldDaemonProviderAccessEvidenceSourceSchema, openMeldDaemonTaskResultClaimLeaseSchema, openMeldDaemonTaskResultEnvelopeSchema, openMeldDaemonTaskResultEnvelopeWriteSchema, openMeldDaemonTaskResultErrorTypeSchema, openMeldDaemonTaskResultLocalOwnerConflictSchema, openMeldDaemonTaskResultOpenClawBindingClassificationSchema, openMeldDaemonTaskResultOpenClawBindingSchema, openMeldDaemonTaskResultOpenClawGatewayVisibilitySchema, openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, openMeldDaemonTaskResultPayloadSchema, openMeldDaemonTaskResultProjectFailureContextSchema, openMeldDaemonTaskResultPromptTraceSchema, openMeldDaemonTaskResultSpaceActionCarrierKindSchema, openMeldDaemonTaskResultSpaceActionFailureDiagnosticsSchema, openMeldDaemonTaskResultSpaceActionFailureRepairModeSchema, openMeldDaemonTaskResultSpaceActionProvenanceSchema, openMeldDaemonTaskResultStatusSchema, openMeldDaemonTaskResultTelemetrySchema, openMeldDaemonTaskResultTokenUsageSchema };\n\n//# sourceMappingURL=task-result.js.map"],"mappings":";;;;;;;AAIA,MAAM,kBAAkB;;;ACDxB,MAAM,4BAA4B;AAElC,MAAM,kCAAkC;AAOxC,MAAM,yBAAyB;AAC/B,MAAM,qBAAqB;AAC3B,MAAM,0BAA0B;CAC/B,QAAQ;CACR,SAAS;CACT,QAAQ;CACR,SAAS;CACT,SAAS;CACT,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,QAAQ;CACR,UAAU;CACV,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,QAAQ;AACT;AACA,MAAM,gBAAgB,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG;AACpD,MAAM,yBAAyB,SAAS,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG;AACtE,MAAM,4BAA4B,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,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;EACrB,qBAAqB;EACrB,OAAO,eAAe,GAAG,WAAW;EACpC,MAAM;EACN,UAAU,CAAC,mBAAmB;EAC9B,iBAAiB;EACjB,gBAAgB;CACjB;CACA;EACC,wBAAwB;EACxB,qBAAqB;EACrB,qBAAqB;EACrB,OAAO,eAAe,GAAG,WAAW;EACpC,MAAM;EACN,UAAU,CAAC,yDAAyD;EACpE,iBAAiB;EACjB,gBAAgB;CACjB;CACA;EACC,wBAAwB;EACxB,qBAAqB;EACrB,qBAAqB;EACrB,OAAO,eAAe,GAAG,WAAW;EACpC,MAAM;EACN,UAAU;GACT;GACA;GACA;GACA;EACD;EACA,gBAAgB;CACjB;CACA;EACC,wBAAwB;EACxB,qBAAqB;EACrB,qBAAqB;EACrB,OAAO,eAAe,6BAA6B,WAAW;EAC9D,MAAM;EACN,UAAU;GACT;GACA;GACA;EACD;EACA,gBAAgB;CACjB;CACA;EACC,wBAAwB;EACxB,qBAAqB;EACrB,qBAAqB;EACrB,OAAO,eAAe,GAAG,WAAW;EACpC,MAAM;EACN,UAAU,CAAC,sCAAsC;EACjD,gBAAgB;CACjB;CACA;EACC,wBAAwB;EACxB,qBAAqB;EACrB,qBAAqB;EACrB,OAAO,eAAe,6BAA6B,WAAW;EAC9D,MAAM;EACN,UAAU;GACT;GACA;GACA;EACD;EACA,gBAAgB;CACjB;CACA;EACC,wBAAwB;EACxB,qBAAqB;EACrB,qBAAqB;EACrB,OAAO,eAAe,GAAG,WAAW;EACpC,MAAM;EACN,UAAU;GACT;GACA;GACA;GACA;GACA;EACD;EACA,gBAAgB;CACjB;CACA;EACC,wBAAwB;EACxB,qBAAqB;EACrB,qBAAqB;EACrB,OAAO,eAAe,GAAG,WAAW;EACpC,MAAM;EACN,UAAU;GACT;GACA;GACA;GACA;EACD;EACA,gBAAgB;CACjB;CACA;EACC,OAAO,eAAe,8BAA8B,WAAW;EAC/D,MAAM;EACN,UAAU;GACT;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD;EACA,iBAAiB;EACjB,gBAAgB;CACjB;CACA;EACC,wBAAwB;EACxB,qBAAqB;EACrB,qBAAqB;EACrB,OAAO,eAAe,GAAG,WAAW;EACpC,MAAM;EACN,UAAU,CAAC,wDAAwD;EACnE,iBAAiB;EACjB,gBAAgB;CACjB;CACA;EACC,wBAAwB;EACxB,qBAAqB;EACrB,qBAAqB;EACrB,OAAO,eAAe,GAAG,WAAW;EACpC,MAAM;EACN,UAAU,CAAC,sDAAsD;EACjE,iBAAiB;EACjB,gBAAgB;CACjB;CACA;EACC,wBAAwB;EACxB,qBAAqB;EACrB,qBAAqB;EACrB,OAAO,eAAe,GAAG,WAAW;EACpC,MAAM;EACN,UAAU,CAAC,+BAA+B,0CAA0C;EACpF,iBAAiB;EACjB,gBAAgB;CACjB;CACA;EACC,wBAAwB;EACxB,qBAAqB;EACrB,qBAAqB;EACrB,OAAO,eAAe,GAAG,WAAW;EACpC,MAAM;EACN,UAAU,CAAC,wCAAwC;EACnD,iBAAiB;EACjB,gBAAgB;CACjB;CACA;EACC,wBAAwB;EACxB,qBAAqB;EACrB,qBAAqB;EACrB,OAAO,eAAe,GAAG,WAAW;EACpC,MAAM;EACN,mBAAmB,eAAe,iDAAiD,uBAAuB,UAAU,EAAE;EACtH,UAAU;GACT;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD;EACA,uBAAuB;EACvB,iBAAiB;EACjB,gBAAgB;CACjB;CACA;EACC,OAAO,eAAe,GAAG,WAAW;EACpC,MAAM;EACN,UAAU;GACT;GACA;GACA;GACA;EACD;EACA,iBAAiB;EACjB,gBAAgB;CACjB;CACA;EACC,MAAM;EACN,MAAM;EACN,UAAU,CAAC,wCAAwC,8DAA8D;EACjH,gBAAgB;CACjB;CACA;EACC,MAAM;EACN,MAAM;EACN,UAAU;GACT;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD;EACA,gBAAgB;CACjB;CACA;EACC,MAAM;EACN,MAAM;EACN,UAAU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