openmeld 0.3.239 → 0.3.241

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/{add-me-membership-CoM_mJ-b.js → add-me-membership-BU2dHctF.js} +2 -2
  2. package/dist/{add-me-membership-CoM_mJ-b.js.map → add-me-membership-BU2dHctF.js.map} +1 -1
  3. package/dist/{agents-BrHNPIza.js → agents-BCbxo9ej.js} +9 -9
  4. package/dist/{agents-BrHNPIza.js.map → agents-BCbxo9ej.js.map} +1 -1
  5. package/dist/{api-client-foundation-D5pIprkz.js → api-client-foundation-Dbc5MXyW.js} +3 -3
  6. package/dist/{api-client-foundation-D5pIprkz.js.map → api-client-foundation-Dbc5MXyW.js.map} +1 -1
  7. package/dist/{api-client-foundation-DHkGzzGG.js → api-client-foundation-uYxH6diU.js} +1 -1
  8. package/dist/{auth-session-BTRu2Kc5.js → auth-session-Injt39gv.js} +2 -2
  9. package/dist/{auth-session-BTRu2Kc5.js.map → auth-session-Injt39gv.js.map} +1 -1
  10. package/dist/auth-session-j1EhJkpg2.js +4 -0
  11. package/dist/{channel-BxlX3o3i.js → channel-CxgYezuw.js} +3 -3
  12. package/dist/{channel-BxlX3o3i.js.map → channel-CxgYezuw.js.map} +1 -1
  13. package/dist/{command-DfIyDuvl.js → command-BEWvHfNy.js} +15 -15
  14. package/dist/{command-DfIyDuvl.js.map → command-BEWvHfNy.js.map} +1 -1
  15. package/dist/{computer-connection-Sntn_-XO.js → computer-connection-CSa8O0op.js} +2 -2
  16. package/dist/{computer-connection-Sntn_-XO.js.map → computer-connection-CSa8O0op.js.map} +1 -1
  17. package/dist/{computer-connection-review-Ka_oNySD.js → computer-connection-review-B3jM81-q.js} +5 -5
  18. package/dist/{computer-connection-review-Ka_oNySD.js.map → computer-connection-review-B3jM81-q.js.map} +1 -1
  19. package/dist/{computer-disconnect-pvBUMehS.js → computer-disconnect-De7aDtz9.js} +7 -7
  20. package/dist/{computer-disconnect-pvBUMehS.js.map → computer-disconnect-De7aDtz9.js.map} +1 -1
  21. package/dist/{computer-setup-continuation-Cowbbx8k.js → computer-setup-continuation-DUDXeWyZ.js} +3 -3
  22. package/dist/{computer-setup-continuation-Cowbbx8k.js.map → computer-setup-continuation-DUDXeWyZ.js.map} +1 -1
  23. package/dist/{daemon-device-id-D7lbw6c4.js → daemon-device-id-CAKHWLK9.js} +4 -4
  24. package/dist/{daemon-device-id-D7lbw6c4.js.map → daemon-device-id-CAKHWLK9.js.map} +1 -1
  25. package/dist/{daemon-lifecycle-journal-0gXU-eU8.js → daemon-lifecycle-journal-txRGG09R.js} +3 -3
  26. package/dist/{daemon-lifecycle-journal-0gXU-eU8.js.map → daemon-lifecycle-journal-txRGG09R.js.map} +1 -1
  27. package/dist/{daemon-service-runtime-CTo2oiT_.js → daemon-service-runtime-DVou-9gk.js} +2 -2
  28. package/dist/{daemon-service-runtime-CTo2oiT_.js.map → daemon-service-runtime-DVou-9gk.js.map} +1 -1
  29. package/dist/{daemon-service-update-coordinator-CfXSbQH7.js → daemon-service-update-coordinator-j-NJ6SG6.js} +9 -9
  30. package/dist/{daemon-service-update-coordinator-CfXSbQH7.js.map → daemon-service-update-coordinator-j-NJ6SG6.js.map} +1 -1
  31. package/dist/{dispatch-owned-runtime-CPD9gM2K.js → dispatch-owned-runtime-Ds0NjZbf.js} +10 -6
  32. package/dist/dispatch-owned-runtime-Ds0NjZbf.js.map +1 -0
  33. package/dist/{dist-sH8NpjIN.js → dist-BE0dKSoc.js} +1236 -809
  34. package/dist/dist-BE0dKSoc.js.map +1 -0
  35. package/dist/{dist-JmQvl3T6.js → dist-D4nEGVsQ.js} +1 -1
  36. package/dist/{dual-view-guide-catalog-Qk4ZQfam.js → dual-view-guide-catalog-Bm3heywF.js} +3 -3
  37. package/dist/{dual-view-guide-catalog-Qk4ZQfam.js.map → dual-view-guide-catalog-Bm3heywF.js.map} +1 -1
  38. package/dist/{elapsed-time-Df6d3nkk.js → elapsed-time-8Z_hiMHG.js} +3 -3
  39. package/dist/{elapsed-time-Df6d3nkk.js.map → elapsed-time-8Z_hiMHG.js.map} +1 -1
  40. package/dist/{entry-B6WlnCha.js → entry-CRNdcPn2.js} +6 -6
  41. package/dist/{entry-B6WlnCha.js.map → entry-CRNdcPn2.js.map} +1 -1
  42. package/dist/{installation-inventory-_duIUWss.js → installation-inventory-C2gqd8Ui.js} +3 -3
  43. package/dist/{installation-inventory-_duIUWss.js.map → installation-inventory-C2gqd8Ui.js.map} +1 -1
  44. package/dist/{installer-CJdJQco3.js → installer-C5wRsjRo.js} +2 -2
  45. package/dist/{installer-CJdJQco3.js.map → installer-C5wRsjRo.js.map} +1 -1
  46. package/dist/{meta-api-XVAyoWIw.js → meta-api-f30I0cYW.js} +5 -5
  47. package/dist/{meta-api-XVAyoWIw.js.map → meta-api-f30I0cYW.js.map} +1 -1
  48. package/dist/{openmeld-maintenance-worker-BmCadk9-.js → openmeld-maintenance-worker-DO2-9bPr.js} +9 -9
  49. package/dist/{openmeld-maintenance-worker-BmCadk9-.js.map → openmeld-maintenance-worker-DO2-9bPr.js.map} +1 -1
  50. package/dist/{openmeld-aOpLpGnq.js → openmeld-pa6CFD0L.js} +101 -35
  51. package/dist/openmeld-pa6CFD0L.js.map +1 -0
  52. package/dist/{openmeld-tools-update-join-9pbGIjqE.js → openmeld-tools-update-join-7k8F3WoX.js} +4 -4
  53. package/dist/{openmeld-tools-update-join-9pbGIjqE.js.map → openmeld-tools-update-join-7k8F3WoX.js.map} +1 -1
  54. package/dist/openmeld.js +4 -4
  55. package/dist/{prepare-provider-runtime-BnwBAQkH.js → prepare-provider-runtime-CRKT1qfE.js} +23 -15
  56. package/dist/prepare-provider-runtime-CRKT1qfE.js.map +1 -0
  57. package/dist/{prepare-session-executor-CAz4foMJ.js → prepare-session-executor-HgLhIpBN.js} +18 -18
  58. package/dist/{prepare-session-executor-CAz4foMJ.js.map → prepare-session-executor-HgLhIpBN.js.map} +1 -1
  59. package/dist/{process-channel-QRugdtrY.js → process-channel-Ceb-ha2V.js} +2 -2
  60. package/dist/{process-channel-QRugdtrY.js.map → process-channel-Ceb-ha2V.js.map} +1 -1
  61. package/dist/{runtime-Ctey_DIE.js → runtime-DMlmaA44.js} +20 -18
  62. package/dist/{runtime-Ctey_DIE.js.map → runtime-DMlmaA44.js.map} +1 -1
  63. package/dist/{runtime-agent-controller-reporting-submission-adIxUk6V.js → runtime-agent-controller-reporting-submission-BYU0eXKb.js} +8 -8
  64. package/dist/{runtime-agent-controller-reporting-submission-adIxUk6V.js.map → runtime-agent-controller-reporting-submission-BYU0eXKb.js.map} +1 -1
  65. package/dist/{runtime-transport-BVCHi4qM.js → runtime-transport-BPK70mkB.js} +65 -7
  66. package/dist/runtime-transport-BPK70mkB.js.map +1 -0
  67. package/dist/{service-W-CdoiQ4.js → service-BLA4eCyA.js} +19 -18
  68. package/dist/service-BLA4eCyA.js.map +1 -0
  69. package/dist/{service-account-authorization-C1CdX1P3.js → service-account-authorization-C6wZHidB.js} +2 -2
  70. package/dist/{service-account-authorization-C1CdX1P3.js.map → service-account-authorization-C6wZHidB.js.map} +1 -1
  71. package/dist/{service-account-control-CRIDZfll.js → service-account-control-xIDWMYp7.js} +8 -8
  72. package/dist/{service-account-control-CRIDZfll.js.map → service-account-control-xIDWMYp7.js.map} +1 -1
  73. package/dist/{service-control-capabilities-DUaoTDfB.js → service-control-capabilities-9SQY-44h.js} +3 -3
  74. package/dist/{service-control-capabilities-DUaoTDfB.js.map → service-control-capabilities-9SQY-44h.js.map} +1 -1
  75. package/dist/{service-control-capabilities-SarCxWmg.js → service-control-capabilities-C4rpfc9B.js} +1 -1
  76. package/dist/{state-BCso_DsL.js → state-BNcCVukg.js} +2 -2
  77. package/dist/{state-BCso_DsL.js.map → state-BNcCVukg.js.map} +1 -1
  78. package/dist/{updates-api-BEVyS67y.js → updates-api-CTf05SZn.js} +162 -36
  79. package/dist/updates-api-CTf05SZn.js.map +1 -0
  80. package/dist/{upgrade-DZKZ3xLM.js → upgrade-B17yGEBC.js} +8 -8
  81. package/dist/{upgrade-DZKZ3xLM.js.map → upgrade-B17yGEBC.js.map} +1 -1
  82. package/dist/upgrade-BoX1y1zH.js +4 -0
  83. package/dist/windows/openmeld-windows-process.exe +0 -0
  84. package/package.json +12 -12
  85. package/skills/openmeld-cli/playbooks/plugins.md +11 -3
  86. package/dist/auth-session-D2f7Lud02.js +0 -4
  87. package/dist/dispatch-owned-runtime-CPD9gM2K.js.map +0 -1
  88. package/dist/dist-sH8NpjIN.js.map +0 -1
  89. package/dist/openmeld-aOpLpGnq.js.map +0 -1
  90. package/dist/prepare-provider-runtime-BnwBAQkH.js.map +0 -1
  91. package/dist/runtime-transport-BVCHi4qM.js.map +0 -1
  92. package/dist/service-W-CdoiQ4.js.map +0 -1
  93. package/dist/updates-api-BEVyS67y.js.map +0 -1
  94. package/dist/upgrade-CbKLfGQ1.js +0 -4
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { $r as spaceMentionLabelSourceSchema, $t as spaceMessageAttachmentSchema, An as spaceFileClientMutationIdSchema, Ar as spaceAgentStreamTerminalFrameSchema, Bn as spaceMessageFileReferencesSchema, Br as runtimeCoordinatorExecutionCreationDiagnosticSchema, Ci as localAgentCatalogLaunchStatusSchema, Cn as restoreSpaceFileRevisionResponseSchema, Ct as agentTaskCompletionObservationSchema, Dn as spaceFileBaseRevisionSchema, Dr as spaceAgentStreamPartFrameSchema, Dt as buildAgentTaskKey, En as spaceFileActorSchema, Er as spaceAgentStreamDeltaFrameSchema, Et as areAgentTaskTerminalOutcomesEqual, Fi as updateAgentProfileDefaultProjectBodySchema, Fn as spaceFileOriginSchema, Fr as agentInteractionResponseSchema, Gt as signalTextDataSchema, H as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, Hn as trashSpaceFileEntryResponseSchema, Hr as runtimeCoordinatorExecutionRecordSchema, Ii as updateAgentProfileDefaultProjectResponseSchema, In as spaceFileRevisionNumberSchema, Ir as postSpaceWakeStopBodySchema, Jn as spaceThreadContextSchema, Jr as normalizeSpacePasswordText, Jt as spaceAttachmentDescriptorSchema, K as openMeldDaemonOriginalErrorSchema, Kn as computerCareObservationSchema, Kr as spaceTraceExecutionIdentityProjectionSchema, Kt as signalTextSchema, Li as updateProfileResponseSchema, Ln as spaceFileRevisionSchema, Lr as postSpaceWakeStopResponseSchema, Mi as authProfileViewSchema, Mn as spaceFileEntryIdSchema, Mr as agentInteractionPendingSummarySchema, Nn as spaceFileMimeTypeSchema, Oi as CENTER_AGENT_BOT_AVATAR_TYPES, On as spaceFileBreadcrumbSchema, Or as spaceAgentStreamPresenceSchema, Ot as controllerAgentTaskHandleSchema, Pn as spaceFileNameSchema, Q as openMeldDaemonTaskResultProjectFailureContextSchema, Qr as spaceMentionLabelSchema, Qt as spaceAttachmentSizeBytesSchema, Rn as spaceFolderDescriptorSchema, Rr as clientMessageIdSchema$1, Sn as restoreSpaceFileEntryResponseSchema, St as agentTaskCompletionConditionSchema, Ti as localAgentCatalogWithLifecycleSchema, Tn as spaceComposerUploadIdSchema, Tr as agentStreamToolPartSchema, Tt as agentTaskTerminalOutcomeSchema, Un as updateSpaceFileEntryResponseSchema, Ut as signalStatusDataSchema, Vi as MAX_TEXT_LENGTH$1, Vn as stageSpaceComposerUploadResponseSchema, Vr as runtimeCoordinatorExecutionEventSchema, Vt as centerAgentExecutionInputTargetSchema, Wn as uploadSpaceFileResponseSchema, Wt as signalSystemNoticeDataSchema, Xn as spaceThreadSchema, Xt as spaceAttachmentFileNameSchema, Yn as spaceThreadEventSchema, Yr as spacePasswordSchema, Yt as spaceAttachmentDimensionSchema, Zn as spaceThreadSignalPlacementSchema, Zt as spaceAttachmentMimeTypeSchema, _i as localFolderPathSchema, _n as listSpaceFileRevisionsResponseSchema, _r as openMeldWebUrlSchema, ai as localAgentReasoningPreferencesSchema, ar as workingLanguageTagSchema, at as MESSAGE_CHANNEL_PROVIDERS, br as connectorServiceSchema, bt as spaceCallerContextSchema, ci as inspectExecutionRecoveryResponseSchema, ct as messageChannelIngressEnvelopeSchema, dn as SPACE_FILE_MAX_SIZE_BYTES, dt as messageChannelResourceDescriptorSchema, ei as organizationInformationProtectionPolicyResponseSchema, en as spaceMessageAttachmentsSchema, er as resultArchivePolicySchema, et as AGENT_REPLY_PLACEMENT_HEADER, fr as messageEnvelopeSchema, ft as messageChannelTransportSchema, gi as localFolderPickerResultSchema, gr as openMeldNavigationTargetSchema, hi as localFolderPickerRequestSchema, hn as getSpaceFileResponseSchema, hr as computerSetupModeSchema, i as daemonExecutionCompatibilitySchema, ir as workingLanguageGuidanceSchema, it as centerAgentVerifiedMemberToolSpeakerSchema, ji as authProfileManagedRoleSchema, jn as spaceFileDescriptorSchema, ki as agentAvatarStyleSchema, kn as spaceFileCapabilitiesSchema, kr as spaceAgentStreamSnapshotSchema, kt as spaceWakeAgentTaskHandleSchema, li as agentProfileWorkRecoveryActionKindSchema, lt as messageChannelParticipantIdentitySchema, mn as discardSpaceComposerUploadResponseSchema, mt as slackThreadPublicationPermalinkSchema, ni as updateOrganizationInformationProtectionPolicyBodySchema, nr as spacePublicationModeSchema, nt as aiUsageQueryResponseSchema, oi as executeExecutionRecoveryBodySchema, on as spaceWorkHandoffSchema, ot as buildMessageChannelConversationId, pn as createSpaceFolderResponseSchema, pt as slackMessagePermalinkSchema, q as openMeldDaemonProviderAccessEvidenceProviderSchema, qn as executionHostObservationSchema, qr as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, qt as wakeDeviceWaitTargetSchema, rn as centerAgentInteractionSourceSchema, rr as spaceDispatchPolicySchema, rt as centerAgentToolSpeakerSchema, si as executeExecutionRecoveryResponseSchema, sr as targetWakeLifecycleIdentitySchema, st as messageChannelConversationLocatorSchema, ti as organizationProtectedInformationSchema, tn as conversationCompactionMarkerSchema, tr as spaceAllowedActionsSchema, un as SPACE_FILE_ERROR_CODES, ut as messageChannelProviderSchema, vi as START_BOUNDED_ID_SCHEMA, vn as listSpaceFilesResponseSchema, vr as connectorConnectionNameSchema, wn as spaceComposerUploadDescriptorSchema, wr as AGENT_STREAM_SNAPSHOT_MAX_CHARS, wt as agentTaskHandleSchema, xt as agentDelegationSnapshotSchema, yn as publishSpaceComposerUploadResponseSchema, yr as connectorConnectionScopeSchema, zi as openMeldRequestContextSchema } from "./runtime-transport-BVCHi4qM.js";
3
+ import { $n as spaceThreadSchema, $r as spacePasswordSchema, $t as spaceMessageAttachmentSchema, An as spaceFileClientMutationIdSchema, Ar as spaceAgentStreamPartFrameSchema, Bi as updateAgentProfileDefaultProjectResponseSchema, Bn as spaceMessageFileReferencesSchema, Br as postSpaceWakeStopResponseSchema, Cn as restoreSpaceFileRevisionResponseSchema, Cr as connectorServiceSchema, Ct as agentTaskCompletionObservationSchema, Di as localAgentCatalogLaunchStatusSchema, Dn as spaceFileBaseRevisionSchema, Dr as AGENT_STREAM_SNAPSHOT_MAX_CHARS, Dt as buildAgentTaskKey, En as spaceFileActorSchema, Et as areAgentTaskTerminalOutcomesEqual, Fi as authProfileManagedRoleSchema, Fn as spaceFileOriginSchema, Fr as agentInteractionPendingSummarySchema, Gi as MAX_TEXT_LENGTH$1, Gn as spaceEvidenceReferenceSchema, Gr as runtimeCoordinatorExecutionRecordSchema, Gt as signalTextDataSchema, H as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, Hn as trashSpaceFileEntryResponseSchema, Ii as authProfileViewSchema, In as spaceFileRevisionNumberSchema, Jt as spaceAttachmentDescriptorSchema, K as openMeldDaemonOriginalErrorSchema, Kn as spaceEvidenceReferencesSchema, Kt as signalTextSchema, Ln as spaceFileRevisionSchema, Mi as CENTER_AGENT_BOT_AVATAR_TYPES, Mn as spaceFileEntryIdSchema, Mr as spaceAgentStreamSnapshotSchema, Ni as agentAvatarStyleSchema, Nn as spaceFileMimeTypeSchema, Nr as spaceAgentStreamTerminalFrameSchema, On as spaceFileBreadcrumbSchema, Or as agentStreamToolPartSchema, Ot as controllerAgentTaskHandleSchema, Pn as spaceFileNameSchema, Q as openMeldDaemonTaskResultProjectFailureContextSchema, Qn as spaceThreadEventSchema, Qr as normalizeSpacePasswordText, Qt as spaceAttachmentSizeBytesSchema, Rn as spaceFolderDescriptorSchema, Rr as agentInteractionResponseSchema, Si as START_BOUNDED_ID_SCHEMA, Sn as restoreSpaceFileEntryResponseSchema, Sr as connectorConnectionScopeSchema, St as agentTaskCompletionConditionSchema, Tn as spaceComposerUploadIdSchema, Tt as agentTaskTerminalOutcomeSchema, Ui as openMeldRequestContextSchema, Un as updateSpaceFileEntryResponseSchema, Ur as runtimeCoordinatorExecutionCreationDiagnosticSchema, Ut as signalStatusDataSchema, Vi as updateProfileResponseSchema, Vn as stageSpaceComposerUploadResponseSchema, Vr as clientMessageIdSchema$1, Vt as centerAgentExecutionInputTargetSchema, Wn as uploadSpaceFileResponseSchema, Wr as runtimeCoordinatorExecutionEventSchema, Wt as signalSystemNoticeDataSchema, Xn as executionHostObservationSchema, Xr as spaceTraceExecutionIdentityProjectionSchema, Xt as spaceAttachmentFileNameSchema, Yn as computerCareObservationSchema, Yt as spaceAttachmentDimensionSchema, Zn as spaceThreadContextSchema, Zr as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, Zt as spaceAttachmentMimeTypeSchema, _n as listSpaceFileRevisionsResponseSchema, ai as organizationProtectedInformationSchema, ar as spacePublicationModeSchema, at as MESSAGE_CHANNEL_PROVIDERS, bi as localFolderPickerResultSchema, br as openMeldWebUrlSchema, bt as spaceCallerContextSchema, cr as workingLanguageTagSchema, ct as messageChannelIngressEnvelopeSchema, di as executeExecutionRecoveryResponseSchema, dn as SPACE_FILE_MAX_SIZE_BYTES, dt as messageChannelResourceDescriptorSchema, en as spaceMessageAttachmentsSchema, er as spaceThreadSignalPlacementSchema, et as AGENT_REPLY_PLACEMENT_HEADER, fi as inspectExecutionRecoveryResponseSchema, ft as messageChannelTransportSchema, hn as getSpaceFileResponseSchema, hr as messageEnvelopeSchema, i as daemonExecutionCompatibilitySchema, ii as organizationInformationProtectionPolicyResponseSchema, ir as spaceAllowedActionsSchema, it as centerAgentVerifiedMemberToolSpeakerSchema, jn as spaceFileDescriptorSchema, jr as spaceAgentStreamPresenceSchema, ki as localAgentCatalogWithLifecycleSchema, kn as spaceFileCapabilitiesSchema, kr as spaceAgentStreamDeltaFrameSchema, kt as spaceWakeAgentTaskHandleSchema, li as localAgentReasoningPreferencesSchema, lt as messageChannelParticipantIdentitySchema, mn as discardSpaceComposerUploadResponseSchema, mt as slackThreadPublicationPermalinkSchema, ni as spaceMentionLabelSchema, nt as aiUsageQueryResponseSchema, oi as updateOrganizationInformationProtectionPolicyBodySchema, on as spaceWorkHandoffSchema, or as spaceDispatchPolicySchema, ot as buildMessageChannelConversationId, pi as agentProfileWorkRecoveryActionKindSchema, pn as createSpaceFolderResponseSchema, pt as slackMessagePermalinkSchema, q as openMeldDaemonProviderAccessEvidenceProviderSchema, qr as runtimeCoordinatorExecutionTokenEchoSchema, qt as wakeDeviceWaitTargetSchema, ri as spaceMentionLabelSourceSchema, rn as centerAgentInteractionSourceSchema, rr as resultArchivePolicySchema, rt as centerAgentToolSpeakerSchema, sr as workingLanguageGuidanceSchema, st as messageChannelConversationLocatorSchema, tn as conversationCompactionMarkerSchema, ui as executeExecutionRecoveryBodySchema, un as SPACE_FILE_ERROR_CODES, ur as targetWakeLifecycleIdentitySchema, ut as messageChannelProviderSchema, vn as listSpaceFilesResponseSchema, vr as computerSetupModeSchema, wn as spaceComposerUploadDescriptorSchema, wt as agentTaskHandleSchema, xi as localFolderPathSchema, xr as connectorConnectionNameSchema, xt as agentDelegationSnapshotSchema, yi as localFolderPickerRequestSchema, yn as publishSpaceComposerUploadResponseSchema, yr as openMeldNavigationTargetSchema, zi as updateAgentProfileDefaultProjectBodySchema, zr as postSpaceWakeStopBodySchema } from "./runtime-transport-BPK70mkB.js";
4
4
  import { A as profileKindSchema, E as agentProfileIdSchema, F as uuidProfileIdSchema, I as finiteIntegerNumber, L as nonEmptyTrimmedStringFromUnknown, M as profileSchema, N as profileWorkingDirectorySchema, O as openMeldRuntimeProfileIdSchema, P as profileWorkspaceModeSchema, R as optionalBooleanQuerySchema, r as localAgentInstallationOptionSchema, v as openMeldDaemonSyncRouteCatalogPayloadSchema, w as dispatchExecutionSchema, z as trimmedStringFromUnknown } from "./control-plane-QqGL-jtT.js";
5
5
  import { C as resolveBuiltinAgentControllerConversationCapability, S as agentControllerConversationCapabilitySchema, b as normalizeKnownBuiltinAgentControllerId, h as agentControllerRefSchema, s as runtimeTransportModeSchema } from "./controller-contract-DAOCaefz.js";
6
6
  import { A as boolean, B as nullFactory, D as NEVER, F as int, G as strictObject, H as object, I as iso, J as undefinedFactory, K as string, L as lazySchema, M as discriminatedUnion, N as email, P as enumFactory, R as literal, S as openMeldToolsUpdateOperationSchema, U as preprocess, V as number, W as record, X as unknown, Y as union, Z as url, _ as openMeldToolsMaintenanceMutationResultSchema, c as localComponentUpdatePolicySchema, j as coerce, k as array, l as localComponentUpdateProjectionSchema, q as tuple, u as localComponentUpdateStatusSchema, v as openMeldToolsMaintenanceProjectionSchema, w as openMeldToolsUpdateRequestResultSchema, z as neverFactory } from "./local-components-DJiMS67S.js";
@@ -1463,36 +1463,42 @@ const slackInboxSourceTargetSchema = strictObject({
1463
1463
  teamId: identifierSchema$4,
1464
1464
  threadRootMessageId: identifierSchema$4
1465
1465
  });
1466
+ const computerInboxSourceTargetSchema = strictObject({
1467
+ kind: literal("computer_connection"),
1468
+ computerId: identifierSchema$4,
1469
+ deviceId: identifierSchema$4,
1470
+ incidentId: identifierSchema$4,
1471
+ lane: daemonServiceLaneSchema,
1472
+ state: enumFactory([
1473
+ "disconnected",
1474
+ "restored",
1475
+ "deactivated"
1476
+ ])
1477
+ });
1478
+ const desktopUpdateInboxSourceTargetSchema = strictObject({
1479
+ kind: literal("desktop_update"),
1480
+ installationId: identifierSchema$4,
1481
+ lane: daemonServiceLaneSchema,
1482
+ deviceName: string().trim().min(1).max(120),
1483
+ version: string().trim().min(1).max(100),
1484
+ platform: enumFactory([
1485
+ "darwin",
1486
+ "win32",
1487
+ "linux"
1488
+ ]),
1489
+ state: enumFactory([
1490
+ "available",
1491
+ "installed",
1492
+ "superseded"
1493
+ ])
1494
+ });
1466
1495
  const inboxSourceTargetSchema = discriminatedUnion("kind", [
1467
1496
  strictObject({
1468
- kind: literal("computer_connection"),
1469
- computerId: identifierSchema$4,
1470
- deviceId: identifierSchema$4,
1471
- incidentId: identifierSchema$4,
1472
- lane: daemonServiceLaneSchema,
1473
- state: enumFactory([
1474
- "disconnected",
1475
- "restored",
1476
- "deactivated"
1477
- ])
1478
- }),
1479
- strictObject({
1480
- kind: literal("desktop_update"),
1481
- installationId: identifierSchema$4,
1482
- lane: daemonServiceLaneSchema,
1483
- deviceName: string().trim().min(1).max(120),
1484
- version: string().trim().min(1).max(100),
1485
- platform: enumFactory([
1486
- "darwin",
1487
- "win32",
1488
- "linux"
1489
- ]),
1490
- state: enumFactory([
1491
- "available",
1492
- "installed",
1493
- "superseded"
1494
- ])
1497
+ kind: literal("plugin_action_request"),
1498
+ requestId: identifierSchema$4
1495
1499
  }),
1500
+ computerInboxSourceTargetSchema,
1501
+ desktopUpdateInboxSourceTargetSchema,
1496
1502
  strictObject({
1497
1503
  kind: literal("organization_join_request"),
1498
1504
  requestId: identifierSchema$4
@@ -1935,7 +1941,8 @@ const signalStatusEnvelopeSchema = z$1.object({
1935
1941
  const signalSystemNoticeEnvelopeSchema = z$1.object({
1936
1942
  ...baseEnvelopeShape,
1937
1943
  type: z$1.literal("signal.system_notice"),
1938
- data: signalSystemNoticeDataSchema
1944
+ data: signalSystemNoticeDataSchema,
1945
+ stoppedReplyText: z$1.string().max(AGENT_STREAM_SNAPSHOT_MAX_CHARS).optional()
1939
1946
  });
1940
1947
  const signalEnvelopeSchema = z$1.union([
1941
1948
  presenceEnvelopeSchema,
@@ -4833,6 +4840,25 @@ const getAgentExecutionReadinessResponseSchema = strictObject({
4833
4840
  });
4834
4841
  const getAgentExecutionReadinessBatchResponseSchema = strictObject({ items: array(getAgentExecutionReadinessResponseSchema) });
4835
4842
  //#endregion
4843
+ //#region ../../packages/schemas/dist/schemas/http/connector-action-replay.js
4844
+ /** Recovery evidence for one existing operation, never new action authority. */
4845
+ const connectorActionReplayPermissionSchema = discriminatedUnion("allowed", [strictObject({
4846
+ allowed: literal(true),
4847
+ remainingWindowMs: int().positive().max(864e5),
4848
+ maxAttempts: literal(1)
4849
+ }), strictObject({
4850
+ allowed: literal(false),
4851
+ reason: enumFactory([
4852
+ "window_unverified",
4853
+ "original_account_unverified",
4854
+ "original_executor_required",
4855
+ "window_expired",
4856
+ "already_replayed",
4857
+ "operation_in_progress",
4858
+ "operation_terminal"
4859
+ ])
4860
+ })]);
4861
+ //#endregion
4836
4862
  //#region ../../packages/schemas/dist/schemas/http/organization-member-openmeld-service-status.js
4837
4863
  const BOUNDED_ID_SCHEMA$1 = z$1.string().trim().min(1).max(256);
4838
4864
  const ISO_DATE_TIME_SCHEMA$12 = z$1.iso.datetime({ offset: true });
@@ -6016,6 +6042,7 @@ const listSpaceThreadSignalsResponseSchema = z$1.strictObject({
6016
6042
  placements: z$1.array(spaceThreadSignalPlacementSchema)
6017
6043
  });
6018
6044
  const postSpaceThreadSignalBodySchema = z$1.strictObject({
6045
+ evidenceRefs: signalTextSchema.shape.data.shape.meta.unwrap().shape.evidenceRefs,
6019
6046
  workHandoff: signalTextSchema.shape.data.shape.meta.unwrap().shape.workHandoff,
6020
6047
  threadWakeContinuation: z$1.literal(true).optional(),
6021
6048
  text: signalTextSchema.shape.data.shape.text,
@@ -6503,6 +6530,17 @@ discriminatedUnion("action", [
6503
6530
  context: openMeldRequestContextSchema,
6504
6531
  speakerMember: centerAgentToolSpeakerSchema,
6505
6532
  url: sourceUrlSchema
6533
+ }),
6534
+ strictObject({
6535
+ action: literal("get_import_batch"),
6536
+ batchId: operationIdSchema$2,
6537
+ context: openMeldRequestContextSchema,
6538
+ speakerMember: centerAgentToolSpeakerSchema
6539
+ }),
6540
+ strictObject({
6541
+ action: literal("list_import_batches"),
6542
+ context: openMeldRequestContextSchema,
6543
+ speakerMember: centerAgentToolSpeakerSchema
6506
6544
  })
6507
6545
  ]);
6508
6546
  discriminatedUnion("action", [
@@ -6526,7 +6564,12 @@ discriminatedUnion("action", [
6526
6564
  action: literal("preview_github_repository"),
6527
6565
  organizationId: identifierSchema$3,
6528
6566
  preview: organizationSkillGitHubRepositoryPreviewSchema
6529
- })
6567
+ }),
6568
+ getOrganizationSkillImportBatchResponseSchema.extend({
6569
+ action: literal("get_import_batch"),
6570
+ organizationId: identifierSchema$3
6571
+ }),
6572
+ listOrganizationSkillImportBatchesResponseSchema.extend({ action: literal("list_import_batches") })
6530
6573
  ]);
6531
6574
  const centerAgentCreateOrganizationSkillRpcInputSchema = strictObject({
6532
6575
  action: literal("create"),
@@ -6546,7 +6589,20 @@ const centerAgentImportOrganizationSkillFromGitHubRpcInputSchema = strictObject(
6546
6589
  discriminatedUnion("action", [
6547
6590
  centerAgentCreateOrganizationSkillRpcInputSchema,
6548
6591
  centerAgentImportOrganizationSkillFromGitHubRpcInputSchema,
6549
- centerAgentImportOrganizationSkillFromGitHubRpcInputSchema.extend({ action: literal("import_github_with_report") })
6592
+ centerAgentImportOrganizationSkillFromGitHubRpcInputSchema.extend({ action: literal("import_github_with_report") }),
6593
+ beginOrganizationSkillImportBatchBodySchema.omit({ expectedOrganizationId: true }).extend({
6594
+ action: literal("begin_import_batch"),
6595
+ expectedCommitSha: string().regex(/^[a-f0-9]{40}$/),
6596
+ context: openMeldRequestContextSchema,
6597
+ speakerMember: centerAgentToolSpeakerSchema
6598
+ }),
6599
+ strictObject({
6600
+ action: literal("install_batch_item"),
6601
+ batchId: operationIdSchema$2,
6602
+ path: string().max(1024),
6603
+ context: openMeldRequestContextSchema,
6604
+ speakerMember: centerAgentToolSpeakerSchema
6605
+ })
6550
6606
  ]);
6551
6607
  discriminatedUnion("action", [
6552
6608
  strictObject({
@@ -6565,6 +6621,17 @@ discriminatedUnion("action", [
6565
6621
  skill: organizationSkillSummarySchema,
6566
6622
  warnings: array(string().trim().min(1).max(1024)),
6567
6623
  storedButNotExecutable: array(string().max(1024))
6624
+ }),
6625
+ beginOrganizationSkillImportBatchResponseSchema.extend({
6626
+ action: literal("begin_import_batch"),
6627
+ organizationId: identifierSchema$3
6628
+ }),
6629
+ strictObject({
6630
+ action: literal("install_batch_item"),
6631
+ organizationId: identifierSchema$3,
6632
+ skill: organizationSkillSummarySchema,
6633
+ warnings: array(string().trim().min(1).max(1024)),
6634
+ storedButNotExecutable: array(string().max(1024))
6568
6635
  })
6569
6636
  ]);
6570
6637
  const organizationSkillRuntimeReleaseSelectionSchema = strictObject({
@@ -9298,171 +9365,501 @@ function expectNullTraceEvidence(context, actual, path) {
9298
9365
  expectTraceEvidence(context, actual, null, path, "not-found trace correlation must not include resolved trace evidence");
9299
9366
  }
9300
9367
  //#endregion
9301
- //#region ../../packages/schemas/dist/schemas/http/center-agent.js
9302
- const ISO_DATE_TIME_SCHEMA$6 = iso.datetime({ offset: true });
9303
- const trimmedNonEmptyStringSchema$8 = string().trim().min(1);
9304
- const nullableTrimmedStringSchema$3 = union([trimmedNonEmptyStringSchema$8, nullFactory()]);
9305
- const nullableIsoDateTimeSchema$3 = union([ISO_DATE_TIME_SCHEMA$6, nullFactory()]);
9306
- const nullableDiagnosticTextSchema = union([trimmedNonEmptyStringSchema$8.max(512), nullFactory()]);
9307
- const CENTER_AGENT_REFERENCE_OVERLAP_MESSAGE = "A profile cannot be both a Wake target and a Reference target.";
9308
- function findCenterAgentReferenceOverlapIndex(input) {
9309
- const executableProfileIds = new Set(input.activationTargets);
9310
- if (input.fallbackAgentProfileId) executableProfileIds.add(input.fallbackAgentProfileId);
9311
- return input.referenceTargets?.findIndex((profileId) => executableProfileIds.has(profileId));
9312
- }
9313
- const centerAgentActionSchema = enumFactory([
9314
- "create_space",
9315
- "create_agent_profile",
9316
- "enable_agent_profile",
9317
- "invite_member",
9318
- "carry_over_binding_authorization",
9319
- "designate_remote_center_agent",
9320
- "authorize_remote_center_agent_binding",
9321
- "revoke_center_agent",
9322
- "pause_center_agent",
9323
- "resume_center_agent",
9324
- "connect_slack_workspace",
9325
- "move_slack_workspace",
9326
- "disconnect_slack_workspace",
9327
- "disconnect_message_channel_identity_link",
9328
- "replace_message_channel_identity_link",
9329
- "start_shared_app_authorization",
9330
- "disconnect_shared_app",
9331
- "add_members_to_space",
9332
- "add_agent_profiles_to_space",
9333
- "post_slack_channel_message",
9334
- "post_slack_file",
9335
- "list_slack_channels",
9336
- "read_slack_channel_members",
9337
- "read_slack_channel_history",
9338
- "read_slack_file",
9339
- "read_channel_file",
9340
- "post_channel_file",
9341
- "search_slack_messages",
9342
- "post_space_message",
9343
- "remove_agent_profiles_from_space",
9344
- "read_org_directory",
9345
- "read_member_computers",
9346
- "read_member_openmeld_service_status",
9347
- "read_slack_workspace_directory",
9348
- "read_org_documents",
9349
- "read_org_skills",
9350
- "preview_org_skill",
9351
- "install_org_skill",
9352
- "create_org_document_folder",
9353
- "rename_org_document_folder",
9354
- "move_org_document",
9355
- "save_org_document",
9356
- "read_org_space_directory",
9357
- "read_space_context",
9358
- "manage_space_input_queue",
9359
- "read_dispatch_history",
9360
- "read_projects",
9361
- "create_project",
9362
- "update_project",
9363
- "set_agent_profile_default_project",
9364
- "prepare_remove_project",
9365
- "remove_project",
9366
- "update_space_settings",
9367
- "wake_agent_profiles_in_space",
9368
- "read_agent_tasks",
9369
- "watch_agent_task",
9370
- "draft_org_document",
9371
- "research_member",
9372
- "execute_connector_action",
9373
- "complete_connector_action",
9374
- "fail_connector_action",
9375
- "record_connector_action_outcome_unknown",
9376
- "receive_local_agent_request",
9377
- "read_center_agent_context",
9378
- "load_center_agent_context",
9379
- "create_routine",
9380
- "update_routine",
9381
- "pause_routine",
9382
- "resume_routine",
9383
- "delete_routine",
9384
- "set_working_language",
9385
- "observe_working_language"
9386
- ]);
9387
- const centerAgentConnectorActionAuditOutcomeSchema = enumFactory([
9388
- "attempted",
9389
- "completed",
9390
- "failed",
9391
- "outcome_unknown"
9392
- ]);
9393
- strictObject({
9394
- connectionName: connectorConnectionNameSchema.optional(),
9395
- actionId: trimmedNonEmptyStringSchema$8.max(160),
9396
- operationId: trimmedNonEmptyStringSchema$8.max(256),
9397
- outcome: centerAgentConnectorActionAuditOutcomeSchema,
9398
- service: connectorServiceSchema,
9399
- speakerMember: centerAgentToolSpeakerSchema
9368
+ //#region ../../packages/schemas/dist/schemas/http/account-space-index.js
9369
+ const ISO_DATE_TIME_SCHEMA$6 = z$1.iso.datetime({ offset: true });
9370
+ const trimmedNonEmptyStringSchema$8 = z$1.string().trim().min(1);
9371
+ const nullableTrimmedStringSchema$3 = z$1.union([trimmedNonEmptyStringSchema$8, z$1.null()]);
9372
+ const nullableNonNegativeIntSchema = z$1.union([z$1.number().int().min(0), z$1.null()]);
9373
+ const nullableIsoDateTimeSchema$3 = z$1.union([ISO_DATE_TIME_SCHEMA$6, z$1.null()]);
9374
+ const ACCOUNT_SPACE_INDEX_MAX_LIMIT = 500;
9375
+ const NON_NEGATIVE_INT_RE$1 = /^\d+$/;
9376
+ const accountSpaceIndexScopeSchema = z$1.enum(["account", "profile"]);
9377
+ const accountSpaceIndexLimitSchema = z$1.preprocess((value) => {
9378
+ if (typeof value === "number") return value;
9379
+ if (typeof value !== "string") return value;
9380
+ const normalized = value.trim();
9381
+ if (!NON_NEGATIVE_INT_RE$1.test(normalized)) return NaN;
9382
+ return Number.parseInt(normalized, 10);
9383
+ }, z$1.number().int().min(1).max(ACCOUNT_SPACE_INDEX_MAX_LIMIT)).optional();
9384
+ const accountSpaceIndexIncludeRecentlyDeletedItemsSchema = z$1.preprocess((value) => {
9385
+ if (typeof value === "boolean") return value;
9386
+ return value === "true";
9387
+ }, z$1.boolean()).optional();
9388
+ const accountSpaceIndexIncludePurposesSchema = z$1.preprocess((value) => {
9389
+ if (typeof value === "boolean") return value;
9390
+ return value === "true";
9391
+ }, z$1.boolean()).optional();
9392
+ const accountSpaceIndexIncludeDirectMessageProfileIdsSchema = z$1.preprocess((value) => {
9393
+ if (typeof value === "boolean") return value;
9394
+ return value === "true";
9395
+ }, z$1.boolean()).optional();
9396
+ z$1.strictObject({
9397
+ includeMessagePreviews: z$1.preprocess((value) => value === true || value === "true", z$1.boolean()).optional(),
9398
+ includeMemberPreviews: z$1.preprocess((value) => value === true || value === "true", z$1.boolean()).optional(),
9399
+ gatewayHost: profileSpaceHistoryGatewayHostSchema,
9400
+ includeDirectMessageProfileIds: accountSpaceIndexIncludeDirectMessageProfileIdsSchema,
9401
+ includeRecentlyDeletedItems: accountSpaceIndexIncludeRecentlyDeletedItemsSchema,
9402
+ includePurposes: accountSpaceIndexIncludePurposesSchema,
9403
+ limit: accountSpaceIndexLimitSchema,
9404
+ scope: accountSpaceIndexScopeSchema.default("account"),
9405
+ selectedProfileId: trimmedNonEmptyStringSchema$8
9400
9406
  });
9401
- const centerAgentResourceSchema = strictObject({
9402
- type: trimmedNonEmptyStringSchema$8,
9403
- id: trimmedNonEmptyStringSchema$8
9407
+ const accountSpaceIndexJoinedProfileSchema = z$1.strictObject({
9408
+ lastJoinedAt: ISO_DATE_TIME_SCHEMA$6,
9409
+ pinnedAt: nullableIsoDateTimeSchema$3,
9410
+ profileId: trimmedNonEmptyStringSchema$8,
9411
+ profileName: trimmedNonEmptyStringSchema$8
9404
9412
  });
9405
- const centerAgentOnBehalfOfInputSchema = strictObject({ profileId: openMeldRuntimeProfileIdSchema });
9406
- const centerAgentAttributionSchema = strictObject({
9407
- actorProfileId: agentProfileIdSchema,
9408
- onBehalfOf: strictObject({
9409
- profileId: openMeldRuntimeProfileIdSchema,
9410
- userId: nullableTrimmedStringSchema$3,
9411
- displayName: trimmedNonEmptyStringSchema$8
9412
- }).nullable()
9413
+ const accountSpaceIndexItemSchema = z$1.strictObject({
9414
+ messagePreview: z$1.strictObject({
9415
+ signalId: trimmedNonEmptyStringSchema$8,
9416
+ profileId: trimmedNonEmptyStringSchema$8,
9417
+ timestamp: z$1.number().int().nonnegative(),
9418
+ text: z$1.string().max(240)
9419
+ }).nullable().optional(),
9420
+ memberPreviews: z$1.array(z$1.strictObject({
9421
+ profileId: trimmedNonEmptyStringSchema$8,
9422
+ profileName: trimmedNonEmptyStringSchema$8,
9423
+ profileKind: z$1.enum(["human", "agent"]),
9424
+ agentControllerRef: nullableTrimmedStringSchema$3
9425
+ })).max(3).optional(),
9426
+ creatorKind: z$1.union([profileSpaceCreatorKindSchema, z$1.null()]),
9427
+ creatorOwnerUserId: nullableTrimmedStringSchema$3,
9428
+ creatorProfileId: nullableTrimmedStringSchema$3,
9429
+ creatorProfileName: nullableTrimmedStringSchema$3,
9430
+ gatewayHost: profileSpaceHistoryGatewayHostSchema,
9431
+ joinedProfiles: z$1.array(accountSpaceIndexJoinedProfileSchema),
9432
+ lastJoinedAt: ISO_DATE_TIME_SCHEMA$6,
9433
+ lastSeenTs: nullableNonNegativeIntSchema,
9434
+ openProfileId: trimmedNonEmptyStringSchema$8,
9435
+ openProfileName: trimmedNonEmptyStringSchema$8,
9436
+ organizationId: trimmedNonEmptyStringSchema$8,
9437
+ pinnedAt: nullableIsoDateTimeSchema$3,
9438
+ pinnedProfileIds: z$1.array(trimmedNonEmptyStringSchema$8),
9439
+ spaceCreatedAt: nullableIsoDateTimeSchema$3,
9440
+ spaceId: trimmedNonEmptyStringSchema$8,
9441
+ spaceName: trimmedNonEmptyStringSchema$8,
9442
+ activeAgentCount: nullableNonNegativeIntSchema.optional(),
9443
+ activeHumanCount: nullableNonNegativeIntSchema.optional(),
9444
+ activeMemberCount: nullableNonNegativeIntSchema.optional(),
9445
+ directMessageConvertedAt: nullableIsoDateTimeSchema$3.optional(),
9446
+ directMessageProfileIds: z$1.union([z$1.tuple([trimmedNonEmptyStringSchema$8, trimmedNonEmptyStringSchema$8]), z$1.null()]).optional(),
9447
+ spacePurpose: nullableTrimmedStringSchema$3.optional(),
9448
+ spaceUpdatedAt: nullableIsoDateTimeSchema$3,
9449
+ status: trimmedNonEmptyStringSchema$8,
9450
+ updatedAt: ISO_DATE_TIME_SCHEMA$6,
9451
+ visibility: spaceOrganizationVisibilitySchema
9413
9452
  });
9414
- strictObject({
9415
- attribution: centerAgentAttributionSchema,
9416
- recorded: literal(true)
9453
+ const accountSpaceIndexDeletedItemSchema = z$1.strictObject({
9454
+ deletedAt: ISO_DATE_TIME_SCHEMA$6,
9455
+ deletedByProfileName: nullableTrimmedStringSchema$3,
9456
+ spaceId: trimmedNonEmptyStringSchema$8,
9457
+ spaceName: nullableTrimmedStringSchema$3
9417
9458
  });
9418
- const centerAgentConnectorActionOperationStatusSchema = enumFactory([
9419
- "pending",
9420
- "completed",
9421
- "failed",
9422
- "outcome_unknown"
9423
- ]);
9424
- const centerAgentConnectorActionExecutionConnectionSchema = strictObject({
9425
- connectionName: connectorConnectionNameSchema,
9426
- ownerDisplayName: trimmedNonEmptyStringSchema$8,
9427
- ownerUserId: trimmedNonEmptyStringSchema$8,
9428
- scope: connectorConnectionScopeSchema,
9429
- service: connectorServiceSchema
9459
+ const accountSpaceIndexResponseSchema = z$1.strictObject({
9460
+ pinnedItems: z$1.array(accountSpaceIndexItemSchema),
9461
+ recentlyDeletedItems: z$1.array(accountSpaceIndexDeletedItemSchema).optional(),
9462
+ spaceItems: z$1.array(accountSpaceIndexItemSchema)
9430
9463
  });
9431
- strictObject({
9432
- includeRecoveryWindow: boolean().optional(),
9433
- actionId: trimmedNonEmptyStringSchema$8.max(160),
9434
- operationId: trimmedNonEmptyStringSchema$8.max(256),
9435
- service: connectorServiceSchema,
9436
- speakerMember: centerAgentToolSpeakerSchema
9464
+ //#endregion
9465
+ //#region ../../packages/schemas/dist/schemas/http/center-agent-direct-message-space.js
9466
+ const CENTER_AGENT_DIRECT_MESSAGE_SPACE_KIND = "center_agent_direct_message_space";
9467
+ const ISO_DATE_TIME_SCHEMA$5 = z$1.iso.datetime({ offset: true });
9468
+ const trimmedNonEmptyStringSchema$7 = z$1.string().trim().min(1);
9469
+ const createCenterAgentSessionBodySchema = z$1.strictObject({ creationId: z$1.uuid() });
9470
+ const centerAgentSessionSelectorSchema = z$1.strictObject({ spaceId: trimmedNonEmptyStringSchema$7.max(128) });
9471
+ const centerAgentDirectMessageSpaceProjectionSchema = z$1.strictObject({
9472
+ centerAgentProfileId: trimmedNonEmptyStringSchema$7,
9473
+ isCenterAgentDirectMessageSpace: z$1.literal(true),
9474
+ kind: z$1.literal(CENTER_AGENT_DIRECT_MESSAGE_SPACE_KIND),
9475
+ memberProfileId: trimmedNonEmptyStringSchema$7,
9476
+ organizationId: trimmedNonEmptyStringSchema$7,
9477
+ spaceId: trimmedNonEmptyStringSchema$7
9437
9478
  });
9438
- strictObject({ operation: strictObject({
9439
- replayWindowRemainingMs: int().nonnegative().optional(),
9440
- actionId: trimmedNonEmptyStringSchema$8.max(160),
9441
- connectionName: connectorConnectionNameSchema,
9442
- executionConnection: centerAgentConnectorActionExecutionConnectionSchema.nullable().optional(),
9443
- operationId: trimmedNonEmptyStringSchema$8.max(256),
9444
- service: connectorServiceSchema,
9445
- status: centerAgentConnectorActionOperationStatusSchema
9446
- }).superRefine((value, context) => {
9447
- if (value.executionConnection && (value.executionConnection.connectionName !== value.connectionName || value.executionConnection.service !== value.service)) context.addIssue({
9448
- code: "custom",
9449
- message: "executionConnection must match the connector action operation.",
9450
- path: ["executionConnection"]
9451
- });
9452
- }).nullable() });
9453
- strictObject({
9454
- includeRecoveryWindow: boolean().optional(),
9455
- actionId: trimmedNonEmptyStringSchema$8.max(160),
9456
- effect: enumFactory([
9457
- "read",
9458
- "write",
9459
- "destructive",
9460
- "unspecified"
9461
- ]).optional(),
9479
+ const getCenterAgentDirectMessageSpaceProjectionResponseSchema = z$1.strictObject({
9480
+ generatedAt: ISO_DATE_TIME_SCHEMA$5,
9481
+ organizationId: trimmedNonEmptyStringSchema$7,
9482
+ projection: z$1.union([centerAgentDirectMessageSpaceProjectionSchema, z$1.null()])
9483
+ });
9484
+ const listCenterAgentSessionsQuerySchema = z$1.strictObject({
9485
+ cursor: z$1.string().trim().min(1).max(1024).optional(),
9486
+ limit: z$1.number().int().min(1).max(100).default(20)
9487
+ });
9488
+ z$1.strictObject({
9489
+ v: z$1.literal(1),
9490
+ organizationId: trimmedNonEmptyStringSchema$7,
9491
+ pairKey: trimmedNonEmptyStringSchema$7,
9492
+ createdAtMs: z$1.number().int().nonnegative(),
9493
+ spaceId: centerAgentSessionSelectorSchema.shape.spaceId
9494
+ });
9495
+ const centerAgentSessionListItemSchema = centerAgentDirectMessageSpaceProjectionSchema.extend({
9496
+ name: z$1.string().nullable(),
9497
+ createdAt: ISO_DATE_TIME_SCHEMA$5.nullable(),
9498
+ messagePreview: accountSpaceIndexItemSchema.shape.messagePreview
9499
+ });
9500
+ const listCenterAgentSessionsResponseSchema = z$1.strictObject({
9501
+ generatedAt: ISO_DATE_TIME_SCHEMA$5,
9502
+ organizationId: trimmedNonEmptyStringSchema$7,
9503
+ sessions: z$1.array(centerAgentSessionListItemSchema).max(100),
9504
+ nextCursor: z$1.string().min(1).max(1024).nullable()
9505
+ });
9506
+ //#endregion
9507
+ //#region ../../packages/schemas/dist/schemas/http/center-agent-context-manifest.js
9508
+ const CENTER_AGENT_CONTEXT_MANIFEST_VERSION = "center_agent_context_manifest.v1";
9509
+ const CENTER_AGENT_CONTEXT_LOAD_RECEIPT_VERSION = "center_agent_context_load_receipt.v1";
9510
+ const CENTER_AGENT_CONTEXT_TOKEN_ESTIMATE_ALGORITHM = "utf8_bytes_divided_by_3.v1";
9511
+ const CENTER_AGENT_CONTEXT_DEFAULT_TOKEN_BUDGET = 8e3;
9512
+ const CENTER_AGENT_CONTEXT_MAX_TOKEN_BUDGET = 32768;
9513
+ const CENTER_AGENT_CONTEXT_ERROR_CODES = [
9514
+ "center_agent.context_conversation_required",
9515
+ "center_agent.context_cursor_invalid",
9516
+ "center_agent.context_token_budget_too_small",
9517
+ "center_agent.context_manifest_not_found",
9518
+ "center_agent.context_load_already_recorded",
9519
+ "center_agent.context_load_client_mismatch",
9520
+ "center_agent.context_load_manifest_empty",
9521
+ "center_agent.context_load_selection_duplicate",
9522
+ "center_agent.context_load_selection_invalid"
9523
+ ];
9524
+ const ISO_DATE_TIME_SCHEMA$4 = iso.datetime({ offset: true });
9525
+ const trimmedNonEmptyStringSchema$6 = string().trim().min(1);
9526
+ const contentHashSchema = string().regex(/^sha256:[0-9a-f]{64}$/u);
9527
+ const centerAgentContextManifestIdSchema = string().regex(/^center_agent_context_manifest_[0-9a-f-]{36}$/u);
9528
+ const loadReceiptIdSchema = string().regex(/^center_agent_context_load_receipt_[0-9a-f-]{36}$/u);
9529
+ const centerAgentContextManifestViewSchema = literal("messages");
9530
+ const createCenterAgentContextManifestBodySchema = strictObject({
9531
+ spaceId: centerAgentSessionSelectorSchema.shape.spaceId.optional(),
9532
+ cursor: string().trim().min(1).max(768).optional(),
9533
+ limit: number().int().min(1).max(50).default(20),
9534
+ maxContextTokens: number().int().min(256).max(CENTER_AGENT_CONTEXT_MAX_TOKEN_BUDGET).default(CENTER_AGENT_CONTEXT_DEFAULT_TOKEN_BUDGET),
9535
+ source: centerAgentInteractionSourceSchema,
9536
+ view: centerAgentContextManifestViewSchema.default("messages")
9537
+ });
9538
+ const centerAgentContextManifestSourceRefSchema = strictObject({
9539
+ id: trimmedNonEmptyStringSchema$6,
9540
+ type: literal("space_signal"),
9541
+ uri: string().regex(/^openmeld:\/\/spaces\/[^/]+\/signals\/[^/]+$/u),
9542
+ version: contentHashSchema
9543
+ });
9544
+ const centerAgentContextManifestEntrySchema = strictObject({
9545
+ reactions: spaceMessageReactionsSchema.optional(),
9546
+ author: strictObject({
9547
+ profileId: trimmedNonEmptyStringSchema$6,
9548
+ profileKind: enumFactory([
9549
+ "agent",
9550
+ "human",
9551
+ "system"
9552
+ ]),
9553
+ profileName: trimmedNonEmptyStringSchema$6
9554
+ }),
9555
+ carrier: strictObject({
9556
+ client: trimmedNonEmptyStringSchema$6.max(80),
9557
+ kind: literal("local_agent")
9558
+ }).optional(),
9559
+ content: strictObject({
9560
+ originalCharacterCount: number().int().nonnegative(),
9561
+ text: string(),
9562
+ truncated: boolean(),
9563
+ type: literal("text")
9564
+ }),
9565
+ materializedContentHash: contentHashSchema,
9566
+ occurredAt: ISO_DATE_TIME_SCHEMA$4,
9567
+ redactions: array(enumFactory([
9568
+ "attachments_not_in_messages_view",
9569
+ "local_session_locator_omitted",
9570
+ "message_content_budget"
9571
+ ])),
9572
+ replyToSignalId: trimmedNonEmptyStringSchema$6.optional(),
9573
+ sourceRef: centerAgentContextManifestSourceRefSchema
9574
+ });
9575
+ strictObject({
9576
+ estimatedTokens: number().int().nonnegative(),
9577
+ materializedContentHash: contentHashSchema,
9578
+ sourceRef: centerAgentContextManifestSourceRefSchema
9579
+ });
9580
+ const centerAgentContextLoadSelectedEntrySchema = strictObject({
9581
+ materializedContentHash: contentHashSchema,
9582
+ sourceRefId: trimmedNonEmptyStringSchema$6
9583
+ });
9584
+ const createCenterAgentContextLoadReceiptBodySchema = strictObject({
9585
+ selection: discriminatedUnion("kind", [strictObject({ kind: literal("all_manifest_entries") }), strictObject({
9586
+ entries: array(centerAgentContextLoadSelectedEntrySchema).min(1).max(50),
9587
+ kind: literal("selected_entries")
9588
+ })]),
9589
+ source: centerAgentInteractionSourceSchema
9590
+ });
9591
+ const createCenterAgentContextManifestResponseSchema = strictObject({
9592
+ authorization: strictObject({
9593
+ principal: literal("authenticated_member"),
9594
+ scope: literal("requester_private")
9595
+ }),
9596
+ availableViews: tuple([literal("messages")]),
9597
+ budget: strictObject({
9598
+ estimateAlgorithm: literal(CENTER_AGENT_CONTEXT_TOKEN_ESTIMATE_ALGORITHM),
9599
+ estimatedTokens: number().int().nonnegative(),
9600
+ includedMessages: number().int().nonnegative(),
9601
+ requestedTokens: number().int().positive(),
9602
+ truncated: boolean(),
9603
+ truncationReasons: array(enumFactory([
9604
+ "context_token_budget",
9605
+ "message_content_budget",
9606
+ "message_limit",
9607
+ "older_messages_available"
9608
+ ]))
9609
+ }),
9610
+ continuation: strictObject({
9611
+ cursor: string().trim().min(1).max(768).nullable(),
9612
+ hasMore: boolean()
9613
+ }),
9614
+ entries: array(centerAgentContextManifestEntrySchema),
9615
+ generatedAt: ISO_DATE_TIME_SCHEMA$4,
9616
+ manifestId: centerAgentContextManifestIdSchema,
9617
+ provenance: strictObject({
9618
+ auditEntryId: trimmedNonEmptyStringSchema$6,
9619
+ contentProjection: literal("user_visible_space_signals")
9620
+ }),
9621
+ request: strictObject({ source: centerAgentInteractionSourceSchema }),
9622
+ schemaVersion: literal(CENTER_AGENT_CONTEXT_MANIFEST_VERSION),
9623
+ subject: strictObject({
9624
+ centerAgentProfileId: trimmedNonEmptyStringSchema$6,
9625
+ conversationId: trimmedNonEmptyStringSchema$6,
9626
+ kind: literal("center_agent_conversation"),
9627
+ memberProfileId: trimmedNonEmptyStringSchema$6,
9628
+ organizationId: trimmedNonEmptyStringSchema$6
9629
+ }),
9630
+ view: centerAgentContextManifestViewSchema
9631
+ });
9632
+ const createCenterAgentContextLoadReceiptResponseSchema = strictObject({
9633
+ authorization: strictObject({
9634
+ principal: literal("authenticated_member"),
9635
+ scope: literal("requester_private")
9636
+ }),
9637
+ provenance: strictObject({ auditEntryId: trimmedNonEmptyStringSchema$6 }),
9638
+ receipt: strictObject({
9639
+ client: trimmedNonEmptyStringSchema$6.max(80),
9640
+ estimatedTokens: number().int().nonnegative(),
9641
+ id: loadReceiptIdSchema,
9642
+ includedMessages: number().int().min(1).max(50),
9643
+ manifestId: centerAgentContextManifestIdSchema,
9644
+ selectedEntries: array(centerAgentContextLoadSelectedEntrySchema).min(1).max(50),
9645
+ status: literal("loaded")
9646
+ }),
9647
+ recordedAt: ISO_DATE_TIME_SCHEMA$4,
9648
+ schemaVersion: literal(CENTER_AGENT_CONTEXT_LOAD_RECEIPT_VERSION)
9649
+ });
9650
+ //#endregion
9651
+ //#region ../../packages/schemas/dist/schemas/http/space-evidence.js
9652
+ const spaceMessageEvidenceResponseSchema = z$1.strictObject({
9653
+ message: centerAgentContextManifestEntrySchema,
9654
+ offset: z$1.int().nonnegative(),
9655
+ nextOffset: z$1.int().positive().nullable()
9656
+ });
9657
+ const spaceThreadEvidenceResponseSchema = z$1.strictObject({
9658
+ sourceRef: spaceEvidenceReferenceSchema.options[1],
9659
+ messages: z$1.array(centerAgentContextManifestEntrySchema).max(20),
9660
+ offset: z$1.int().nonnegative(),
9661
+ nextOffset: z$1.int().positive().nullable(),
9662
+ truncated: z$1.boolean()
9663
+ });
9664
+ //#endregion
9665
+ //#region ../../packages/schemas/dist/schemas/http/plugin-delegation.js
9666
+ const pluginDelegationRequestSchema = z$1.strictObject({
9667
+ targetProfileId: z$1.string().min(1),
9668
+ service: connectorServiceSchema,
9669
+ connectionName: connectorConnectionNameSchema,
9670
+ actionId: z$1.string().trim().min(1).max(160),
9671
+ input: z$1.record(z$1.string(), z$1.unknown()),
9672
+ effect: z$1.enum(["read", "write"]),
9673
+ expiresAtMs: z$1.int().positive()
9674
+ });
9675
+ const pluginDelegationAuthorizationSchema = pluginDelegationRequestSchema.omit({ input: true }).extend({
9676
+ requestSignature: z$1.string().regex(/^[a-f0-9]{64}$/u),
9677
+ connectionUpdatedAtMs: z$1.int().nonnegative(),
9678
+ connectionOwnerUserId: z$1.string().min(1),
9679
+ connectionScope: z$1.enum(["member", "shared"])
9680
+ });
9681
+ //#endregion
9682
+ //#region ../../packages/schemas/dist/schemas/http/center-agent.js
9683
+ const ISO_DATE_TIME_SCHEMA$3 = iso.datetime({ offset: true });
9684
+ const trimmedNonEmptyStringSchema$5 = string().trim().min(1);
9685
+ const nullableTrimmedStringSchema$2 = union([trimmedNonEmptyStringSchema$5, nullFactory()]);
9686
+ const nullableIsoDateTimeSchema$2 = union([ISO_DATE_TIME_SCHEMA$3, nullFactory()]);
9687
+ const nullableDiagnosticTextSchema = union([trimmedNonEmptyStringSchema$5.max(512), nullFactory()]);
9688
+ const CENTER_AGENT_REFERENCE_OVERLAP_MESSAGE = "A profile cannot be both a Wake target and a Reference target.";
9689
+ function findCenterAgentReferenceOverlapIndex(input) {
9690
+ const executableProfileIds = new Set(input.activationTargets);
9691
+ if (input.fallbackAgentProfileId) executableProfileIds.add(input.fallbackAgentProfileId);
9692
+ return input.referenceTargets?.findIndex((profileId) => executableProfileIds.has(profileId));
9693
+ }
9694
+ const centerAgentActionSchema = enumFactory([
9695
+ "create_space",
9696
+ "create_agent_profile",
9697
+ "enable_agent_profile",
9698
+ "invite_member",
9699
+ "carry_over_binding_authorization",
9700
+ "designate_remote_center_agent",
9701
+ "authorize_remote_center_agent_binding",
9702
+ "revoke_center_agent",
9703
+ "pause_center_agent",
9704
+ "resume_center_agent",
9705
+ "connect_slack_workspace",
9706
+ "move_slack_workspace",
9707
+ "disconnect_slack_workspace",
9708
+ "disconnect_message_channel_identity_link",
9709
+ "replace_message_channel_identity_link",
9710
+ "start_shared_app_authorization",
9711
+ "disconnect_shared_app",
9712
+ "add_members_to_space",
9713
+ "add_agent_profiles_to_space",
9714
+ "post_slack_channel_message",
9715
+ "post_slack_file",
9716
+ "list_slack_channels",
9717
+ "read_slack_channel_members",
9718
+ "read_slack_channel_history",
9719
+ "read_slack_file",
9720
+ "read_channel_file",
9721
+ "post_channel_file",
9722
+ "search_slack_messages",
9723
+ "post_space_message",
9724
+ "remove_agent_profiles_from_space",
9725
+ "read_org_directory",
9726
+ "read_member_computers",
9727
+ "read_member_openmeld_service_status",
9728
+ "read_slack_workspace_directory",
9729
+ "read_org_documents",
9730
+ "read_org_skills",
9731
+ "preview_org_skill",
9732
+ "install_org_skill",
9733
+ "create_org_document_folder",
9734
+ "rename_org_document_folder",
9735
+ "move_org_document",
9736
+ "save_org_document",
9737
+ "read_org_space_directory",
9738
+ "read_space_context",
9739
+ "manage_space_input_queue",
9740
+ "read_dispatch_history",
9741
+ "read_projects",
9742
+ "create_project",
9743
+ "update_project",
9744
+ "set_agent_profile_default_project",
9745
+ "prepare_remove_project",
9746
+ "remove_project",
9747
+ "update_space_settings",
9748
+ "wake_agent_profiles_in_space",
9749
+ "read_agent_tasks",
9750
+ "watch_agent_task",
9751
+ "draft_org_document",
9752
+ "research_member",
9753
+ "execute_connector_action",
9754
+ "complete_connector_action",
9755
+ "fail_connector_action",
9756
+ "record_connector_action_outcome_unknown",
9757
+ "receive_local_agent_request",
9758
+ "read_center_agent_context",
9759
+ "load_center_agent_context",
9760
+ "create_routine",
9761
+ "update_routine",
9762
+ "pause_routine",
9763
+ "resume_routine",
9764
+ "delete_routine",
9765
+ "set_working_language",
9766
+ "observe_working_language"
9767
+ ]);
9768
+ const centerAgentConnectorActionAuditOutcomeSchema = enumFactory([
9769
+ "attempted",
9770
+ "completed",
9771
+ "failed",
9772
+ "outcome_unknown"
9773
+ ]);
9774
+ strictObject({
9775
+ connectionName: connectorConnectionNameSchema.optional(),
9776
+ actionId: trimmedNonEmptyStringSchema$5.max(160),
9777
+ operationId: trimmedNonEmptyStringSchema$5.max(256),
9778
+ outcome: centerAgentConnectorActionAuditOutcomeSchema,
9779
+ service: connectorServiceSchema,
9780
+ speakerMember: centerAgentToolSpeakerSchema
9781
+ });
9782
+ const centerAgentResourceSchema = strictObject({
9783
+ type: trimmedNonEmptyStringSchema$5,
9784
+ id: trimmedNonEmptyStringSchema$5
9785
+ });
9786
+ const centerAgentOnBehalfOfInputSchema = strictObject({ profileId: openMeldRuntimeProfileIdSchema });
9787
+ const centerAgentAttributionSchema = strictObject({
9788
+ actorProfileId: agentProfileIdSchema,
9789
+ onBehalfOf: strictObject({
9790
+ profileId: openMeldRuntimeProfileIdSchema,
9791
+ userId: nullableTrimmedStringSchema$2,
9792
+ displayName: trimmedNonEmptyStringSchema$5
9793
+ }).nullable()
9794
+ });
9795
+ strictObject({
9796
+ attribution: centerAgentAttributionSchema,
9797
+ recorded: literal(true)
9798
+ });
9799
+ const centerAgentConnectorActionOperationStatusSchema = enumFactory([
9800
+ "pending",
9801
+ "completed",
9802
+ "failed",
9803
+ "outcome_unknown"
9804
+ ]);
9805
+ const centerAgentConnectorActionExecutionConnectionSchema = strictObject({
9806
+ connectionName: connectorConnectionNameSchema,
9807
+ ownerDisplayName: trimmedNonEmptyStringSchema$5,
9808
+ ownerUserId: trimmedNonEmptyStringSchema$5,
9809
+ scope: connectorConnectionScopeSchema,
9810
+ service: connectorServiceSchema
9811
+ });
9812
+ const connectorActionVerificationReferenceSchema = strictObject({
9813
+ operationId: trimmedNonEmptyStringSchema$5.max(256),
9814
+ actionId: trimmedNonEmptyStringSchema$5.max(160)
9815
+ });
9816
+ const connectorActionVerificationEvidenceSchema = strictObject({
9817
+ operationId: trimmedNonEmptyStringSchema$5.max(256),
9818
+ actionId: trimmedNonEmptyStringSchema$5.max(160),
9819
+ requestSignature: string().regex(/^[a-f0-9]{64}$/u),
9820
+ status: centerAgentConnectorActionOperationStatusSchema,
9821
+ connection: centerAgentConnectorActionExecutionConnectionSchema,
9822
+ interpretation: literal("read_evidence_only")
9823
+ });
9824
+ strictObject({
9825
+ includeExecutionPermit: literal(true).optional(),
9826
+ includeRecoveryWindow: boolean().optional(),
9827
+ actionId: trimmedNonEmptyStringSchema$5.max(160),
9828
+ operationId: trimmedNonEmptyStringSchema$5.max(256),
9829
+ service: connectorServiceSchema,
9830
+ speakerMember: centerAgentToolSpeakerSchema
9831
+ });
9832
+ strictObject({ operation: strictObject({
9833
+ replay: connectorActionReplayPermissionSchema.optional(),
9834
+ replayWindowRemainingMs: int().nonnegative().optional(),
9835
+ actionId: trimmedNonEmptyStringSchema$5.max(160),
9462
9836
  connectionName: connectorConnectionNameSchema,
9463
- operationId: trimmedNonEmptyStringSchema$8.max(256),
9837
+ executionConnection: centerAgentConnectorActionExecutionConnectionSchema.nullable().optional(),
9838
+ operationId: trimmedNonEmptyStringSchema$5.max(256),
9839
+ service: connectorServiceSchema,
9840
+ status: centerAgentConnectorActionOperationStatusSchema
9841
+ }).superRefine((value, context) => {
9842
+ if (value.executionConnection && (value.executionConnection.connectionName !== value.connectionName || value.executionConnection.service !== value.service)) context.addIssue({
9843
+ code: "custom",
9844
+ message: "executionConnection must match the connector action operation.",
9845
+ path: ["executionConnection"]
9846
+ });
9847
+ }).nullable() });
9848
+ strictObject({
9849
+ verificationOf: connectorActionVerificationReferenceSchema.optional(),
9850
+ includeExecutionPermit: literal(true).optional(),
9851
+ includeRecoveryWindow: boolean().optional(),
9852
+ actionId: trimmedNonEmptyStringSchema$5.max(160),
9853
+ effect: enumFactory([
9854
+ "read",
9855
+ "write",
9856
+ "destructive",
9857
+ "unspecified"
9858
+ ]).optional(),
9859
+ connectionName: connectorConnectionNameSchema,
9860
+ operationId: trimmedNonEmptyStringSchema$5.max(256),
9464
9861
  outcome: centerAgentConnectorActionAuditOutcomeSchema,
9465
- providerExecutionId: nullableTrimmedStringSchema$3,
9862
+ providerExecutionId: nullableTrimmedStringSchema$2,
9466
9863
  requestSignature: string().regex(/^[0-9a-f]{64}$/),
9467
9864
  service: connectorServiceSchema,
9468
9865
  speakerMember: centerAgentToolSpeakerSchema
@@ -9474,21 +9871,29 @@ strictObject({
9474
9871
  });
9475
9872
  });
9476
9873
  strictObject({
9874
+ verificationOf: connectorActionVerificationEvidenceSchema.optional(),
9875
+ executionAllowed: boolean().optional(),
9876
+ replay: connectorActionReplayPermissionSchema.optional(),
9477
9877
  replayWindowRemainingMs: int().nonnegative().optional(),
9478
9878
  attribution: centerAgentAttributionSchema,
9479
9879
  executionConnection: centerAgentConnectorActionExecutionConnectionSchema.nullable().optional(),
9480
- operationId: trimmedNonEmptyStringSchema$8.max(256),
9481
- providerExecutionId: nullableTrimmedStringSchema$3,
9880
+ operationId: trimmedNonEmptyStringSchema$5.max(256),
9881
+ providerExecutionId: nullableTrimmedStringSchema$2,
9482
9882
  recorded: literal(true),
9483
9883
  replayed: boolean(),
9484
9884
  status: centerAgentConnectorActionOperationStatusSchema
9885
+ }).extend({
9886
+ actionId: trimmedNonEmptyStringSchema$5,
9887
+ status: enumFactory(["completed", "failed"]),
9888
+ executionAllowed: literal(false),
9889
+ message: trimmedNonEmptyStringSchema$5
9485
9890
  });
9486
9891
  const centerAgentDesignationSchema = strictObject({
9487
- organizationId: trimmedNonEmptyStringSchema$8,
9892
+ organizationId: trimmedNonEmptyStringSchema$5,
9488
9893
  agentProfileId: agentProfileIdSchema,
9489
9894
  duty: nullFactory(),
9490
- designatedBy: trimmedNonEmptyStringSchema$8.nullable(),
9491
- createdAt: ISO_DATE_TIME_SCHEMA$6
9895
+ designatedBy: trimmedNonEmptyStringSchema$5.nullable(),
9896
+ createdAt: ISO_DATE_TIME_SCHEMA$3
9492
9897
  });
9493
9898
  const centerAgentModelConfigurationResponseSchema = strictObject({
9494
9899
  canManage: boolean(),
@@ -9496,7 +9901,7 @@ const centerAgentModelConfigurationResponseSchema = strictObject({
9496
9901
  configurationRevision: number().int().nonnegative(),
9497
9902
  effectiveModel: centerAgentModelSummarySchema,
9498
9903
  effectiveReasoningLevel: hostedModelReasoningLevelSchema.optional(),
9499
- organizationId: trimmedNonEmptyStringSchema$8,
9904
+ organizationId: trimmedNonEmptyStringSchema$5,
9500
9905
  preference: centerAgentModelPreferenceSchema,
9501
9906
  reasoningLevel: hostedModelReasoningLevelSchema.nullable().optional()
9502
9907
  });
@@ -9518,23 +9923,23 @@ const centerAgentRemoteRuntimeAvailabilitySchema = strictObject({
9518
9923
  const centerAgentSlackWorkspaceConnectionSchema = strictObject({
9519
9924
  connected: boolean(),
9520
9925
  directMessagesReady: boolean().optional(),
9521
- slackTeamId: nullableTrimmedStringSchema$3,
9522
- workspaceName: nullableTrimmedStringSchema$3
9926
+ slackTeamId: nullableTrimmedStringSchema$2,
9927
+ workspaceName: nullableTrimmedStringSchema$2
9523
9928
  });
9524
9929
  const getCenterAgentDesignationResponseSchema = strictObject({
9525
- organizationId: trimmedNonEmptyStringSchema$8,
9930
+ organizationId: trimmedNonEmptyStringSchema$5,
9526
9931
  designation: centerAgentDesignationSchema.nullable(),
9527
9932
  remoteRuntimeAvailability: centerAgentRemoteRuntimeAvailabilitySchema.optional(),
9528
9933
  slackConnection: centerAgentSlackWorkspaceConnectionSchema.optional()
9529
9934
  });
9530
- const centerAgentSlackWorkspaceConnectBodySchema = strictObject({ slackTeamId: trimmedNonEmptyStringSchema$8 });
9935
+ const centerAgentSlackWorkspaceConnectBodySchema = strictObject({ slackTeamId: trimmedNonEmptyStringSchema$5 });
9531
9936
  const centerAgentSlackWorkspaceConnectionResponseSchema = strictObject({
9532
- organizationId: trimmedNonEmptyStringSchema$8,
9937
+ organizationId: trimmedNonEmptyStringSchema$5,
9533
9938
  slackConnection: centerAgentSlackWorkspaceConnectionSchema
9534
9939
  });
9535
9940
  const centerAgentSlackWorkspaceDisconnectResponseSchema = strictObject({
9536
9941
  disconnected: boolean(),
9537
- organizationId: trimmedNonEmptyStringSchema$8,
9942
+ organizationId: trimmedNonEmptyStringSchema$5,
9538
9943
  slackConnection: centerAgentSlackWorkspaceConnectionSchema
9539
9944
  });
9540
9945
  const slackIdentityLinkTokenSchema = string().trim().regex(/^slacklink_[0-9a-f]{64}$/);
@@ -9542,15 +9947,15 @@ const slackIdentityLinkPreviewBodySchema = strictObject({ token: slackIdentityLi
9542
9947
  const slackIdentityLinkPreviewResponseSchema = strictObject({
9543
9948
  alreadyMember: boolean().default(true),
9544
9949
  continuesRequest: boolean().default(true),
9545
- expiresAt: ISO_DATE_TIME_SCHEMA$6,
9546
- organizationId: trimmedNonEmptyStringSchema$8,
9547
- organizationName: trimmedNonEmptyStringSchema$8,
9950
+ expiresAt: ISO_DATE_TIME_SCHEMA$3,
9951
+ organizationId: trimmedNonEmptyStringSchema$5,
9952
+ organizationName: trimmedNonEmptyStringSchema$5,
9548
9953
  slackAccountEmail: email().nullable().default(null),
9549
- slackDisplayName: trimmedNonEmptyStringSchema$8,
9550
- slackTeamId: trimmedNonEmptyStringSchema$8,
9551
- slackUserId: trimmedNonEmptyStringSchema$8,
9552
- slackWorkspaceLabel: trimmedNonEmptyStringSchema$8,
9553
- openMeldAccountEmail: trimmedNonEmptyStringSchema$8,
9954
+ slackDisplayName: trimmedNonEmptyStringSchema$5,
9955
+ slackTeamId: trimmedNonEmptyStringSchema$5,
9956
+ slackUserId: trimmedNonEmptyStringSchema$5,
9957
+ slackWorkspaceLabel: trimmedNonEmptyStringSchema$5,
9958
+ openMeldAccountEmail: trimmedNonEmptyStringSchema$5,
9554
9959
  replacesExistingLink: boolean().default(false)
9555
9960
  });
9556
9961
  const slackIdentityLinkConsumeBodySchema = strictObject({
@@ -9562,27 +9967,27 @@ const slackIdentityLinkConsumeResponseSchema = strictObject({
9562
9967
  continued: boolean().default(false),
9563
9968
  joinedOrganization: boolean().default(false),
9564
9969
  linked: literal(true),
9565
- openMeldProfileId: trimmedNonEmptyStringSchema$8.nullable().default(null),
9566
- organizationId: trimmedNonEmptyStringSchema$8,
9567
- organizationName: trimmedNonEmptyStringSchema$8,
9568
- organizationSlug: trimmedNonEmptyStringSchema$8.nullable().default(null),
9569
- slackDisplayName: trimmedNonEmptyStringSchema$8,
9570
- slackTeamId: trimmedNonEmptyStringSchema$8,
9970
+ openMeldProfileId: trimmedNonEmptyStringSchema$5.nullable().default(null),
9971
+ organizationId: trimmedNonEmptyStringSchema$5,
9972
+ organizationName: trimmedNonEmptyStringSchema$5,
9973
+ organizationSlug: trimmedNonEmptyStringSchema$5.nullable().default(null),
9974
+ slackDisplayName: trimmedNonEmptyStringSchema$5,
9975
+ slackTeamId: trimmedNonEmptyStringSchema$5,
9571
9976
  slackThreadPermalink: slackMessagePermalinkSchema.nullable().optional(),
9572
- slackUserId: trimmedNonEmptyStringSchema$8,
9977
+ slackUserId: trimmedNonEmptyStringSchema$5,
9573
9978
  replacedExistingLink: boolean().default(false),
9574
- openMeldUserId: trimmedNonEmptyStringSchema$8
9979
+ openMeldUserId: trimmedNonEmptyStringSchema$5
9575
9980
  });
9576
9981
  strictObject({
9577
- organizationId: trimmedNonEmptyStringSchema$8,
9578
- userId: trimmedNonEmptyStringSchema$8
9982
+ organizationId: trimmedNonEmptyStringSchema$5,
9983
+ userId: trimmedNonEmptyStringSchema$5
9579
9984
  });
9580
9985
  discriminatedUnion("ok", [strictObject({
9581
9986
  alreadyMember: boolean(),
9582
9987
  ok: literal(true),
9583
- organizationId: trimmedNonEmptyStringSchema$8,
9584
- organizationName: trimmedNonEmptyStringSchema$8,
9585
- organizationSlug: trimmedNonEmptyStringSchema$8,
9988
+ organizationId: trimmedNonEmptyStringSchema$5,
9989
+ organizationName: trimmedNonEmptyStringSchema$5,
9990
+ organizationSlug: trimmedNonEmptyStringSchema$5,
9586
9991
  role: enumFactory([
9587
9992
  "owner",
9588
9993
  "admin",
@@ -9596,24 +10001,24 @@ discriminatedUnion("ok", [strictObject({
9596
10001
  "slack.workspace_member_enrollment.organization_inactive",
9597
10002
  "slack.workspace_member_enrollment.personal_organization"
9598
10003
  ]),
9599
- message: trimmedNonEmptyStringSchema$8,
10004
+ message: trimmedNonEmptyStringSchema$5,
9600
10005
  ok: literal(false)
9601
10006
  })]);
9602
10007
  strictObject({
9603
- organizationId: trimmedNonEmptyStringSchema$8,
10008
+ organizationId: trimmedNonEmptyStringSchema$5,
9604
10009
  provider: enumFactory([
9605
10010
  "feishu",
9606
10011
  "lark",
9607
10012
  "slack"
9608
10013
  ]),
9609
- userId: trimmedNonEmptyStringSchema$8
10014
+ userId: trimmedNonEmptyStringSchema$5
9610
10015
  });
9611
10016
  discriminatedUnion("ok", [strictObject({
9612
10017
  alreadyMember: boolean(),
9613
10018
  ok: literal(true),
9614
- organizationId: trimmedNonEmptyStringSchema$8,
9615
- organizationName: trimmedNonEmptyStringSchema$8,
9616
- organizationSlug: trimmedNonEmptyStringSchema$8,
10019
+ organizationId: trimmedNonEmptyStringSchema$5,
10020
+ organizationName: trimmedNonEmptyStringSchema$5,
10021
+ organizationSlug: trimmedNonEmptyStringSchema$5,
9617
10022
  role: enumFactory([
9618
10023
  "owner",
9619
10024
  "admin",
@@ -9627,7 +10032,7 @@ discriminatedUnion("ok", [strictObject({
9627
10032
  "message_channel.member_enrollment.organization_inactive",
9628
10033
  "message_channel.member_enrollment.personal_organization"
9629
10034
  ]),
9630
- message: trimmedNonEmptyStringSchema$8,
10035
+ message: trimmedNonEmptyStringSchema$5,
9631
10036
  ok: literal(false)
9632
10037
  })]);
9633
10038
  const designateCenterAgentBodySchema = strictObject({
@@ -9635,7 +10040,7 @@ const designateCenterAgentBodySchema = strictObject({
9635
10040
  runtime: enumFactory(["self_hosted", "remote_agent"]).default("self_hosted")
9636
10041
  });
9637
10042
  const designateCenterAgentResponseSchema = strictObject({
9638
- organizationId: trimmedNonEmptyStringSchema$8,
10043
+ organizationId: trimmedNonEmptyStringSchema$5,
9639
10044
  designation: centerAgentDesignationSchema,
9640
10045
  status: enumFactory([
9641
10046
  "designated",
@@ -9647,8 +10052,8 @@ const centerAgentOperatingStateSchema = enumFactory(["active", "paused"]);
9647
10052
  const getCenterAgentOperatingStateResponseSchema = strictObject({
9648
10053
  canChangeOperatingState: boolean(),
9649
10054
  operatingState: centerAgentOperatingStateSchema,
9650
- organizationId: trimmedNonEmptyStringSchema$8,
9651
- pausedAt: nullableIsoDateTimeSchema$3
10055
+ organizationId: trimmedNonEmptyStringSchema$5,
10056
+ pausedAt: nullableIsoDateTimeSchema$2
9652
10057
  });
9653
10058
  const updateCenterAgentOperatingStateBodySchema = strictObject({ operatingState: centerAgentOperatingStateSchema });
9654
10059
  const updateCenterAgentOperatingStateResponseSchema = getCenterAgentOperatingStateResponseSchema.extend({
@@ -9656,25 +10061,25 @@ const updateCenterAgentOperatingStateResponseSchema = getCenterAgentOperatingSta
9656
10061
  changed: boolean()
9657
10062
  });
9658
10063
  const centerAgentUpdateProfileBodySchema = strictObject({
9659
- profileName: trimmedNonEmptyStringSchema$8.optional(),
10064
+ profileName: trimmedNonEmptyStringSchema$5.optional(),
9660
10065
  avatarStyle: enumFactory(["fluid", ...CENTER_AGENT_BOT_AVATAR_TYPES]).optional()
9661
10066
  }).refine((value) => value.profileName !== void 0 || value.avatarStyle !== void 0, { message: "Choose a profile name or avatar." });
9662
10067
  const centerAgentUpdateProfileResponseSchema = strictObject({
9663
- organizationId: trimmedNonEmptyStringSchema$8,
10068
+ organizationId: trimmedNonEmptyStringSchema$5,
9664
10069
  profile: authProfileViewSchema
9665
10070
  });
9666
10071
  const centerAgentAuditJournalEntrySchema = strictObject({
9667
- id: trimmedNonEmptyStringSchema$8,
9668
- organizationId: trimmedNonEmptyStringSchema$8,
10072
+ id: trimmedNonEmptyStringSchema$5,
10073
+ organizationId: trimmedNonEmptyStringSchema$5,
9669
10074
  actorProfileId: openMeldRuntimeProfileIdSchema,
9670
10075
  action: centerAgentActionSchema,
9671
10076
  onBehalfOf: strictObject({
9672
10077
  profileId: openMeldRuntimeProfileIdSchema,
9673
- userId: nullableTrimmedStringSchema$3,
9674
- displayName: trimmedNonEmptyStringSchema$8
10078
+ userId: nullableTrimmedStringSchema$2,
10079
+ displayName: trimmedNonEmptyStringSchema$5
9675
10080
  }).nullable(),
9676
10081
  interactionSource: strictObject({
9677
- client: trimmedNonEmptyStringSchema$8.max(80),
10082
+ client: trimmedNonEmptyStringSchema$5.max(80),
9678
10083
  kind: literal("local_agent")
9679
10084
  }).optional(),
9680
10085
  contextManifest: strictObject({
@@ -9685,11 +10090,11 @@ const centerAgentAuditJournalEntrySchema = strictObject({
9685
10090
  contextLoad: strictObject({
9686
10091
  estimatedTokens: number().int().nonnegative(),
9687
10092
  includedMessages: number().int().min(1).max(50),
9688
- manifestId: trimmedNonEmptyStringSchema$8
10093
+ manifestId: trimmedNonEmptyStringSchema$5
9689
10094
  }).optional(),
9690
10095
  resource: centerAgentResourceSchema.nullable(),
9691
- sourceSpaceId: trimmedNonEmptyStringSchema$8.nullable().optional(),
9692
- createdAt: ISO_DATE_TIME_SCHEMA$6
10096
+ sourceSpaceId: trimmedNonEmptyStringSchema$5.nullable().optional(),
10097
+ createdAt: ISO_DATE_TIME_SCHEMA$3
9693
10098
  });
9694
10099
  const listCenterAgentAuditJournalQuerySchema = strictObject({
9695
10100
  actionSet: enumFactory([
@@ -9718,7 +10123,7 @@ const listCenterAgentAuditJournalQuerySchema = strictObject({
9718
10123
  limit: coerce.number().int().min(1).max(200).optional()
9719
10124
  });
9720
10125
  const listCenterAgentAuditJournalResponseSchema = strictObject({
9721
- organizationId: trimmedNonEmptyStringSchema$8,
10126
+ organizationId: trimmedNonEmptyStringSchema$5,
9722
10127
  entries: array(centerAgentAuditJournalEntrySchema)
9723
10128
  });
9724
10129
  strictObject({
@@ -9745,29 +10150,31 @@ strictObject({
9745
10150
  };
9746
10151
  });
9747
10152
  strictObject({
9748
- profileName: trimmedNonEmptyStringSchema$8,
10153
+ profileName: trimmedNonEmptyStringSchema$5,
9749
10154
  onBehalfOf: centerAgentOnBehalfOfInputSchema.optional()
9750
10155
  });
9751
10156
  strictObject({ onBehalfOf: centerAgentOnBehalfOfInputSchema.optional() });
9752
10157
  strictObject({
9753
10158
  agentProfileIds: array(agentProfileIdSchema).min(1).max(100),
9754
10159
  onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
9755
- password: trimmedNonEmptyStringSchema$8.optional(),
9756
- spaceId: trimmedNonEmptyStringSchema$8
10160
+ password: trimmedNonEmptyStringSchema$5.optional(),
10161
+ spaceId: trimmedNonEmptyStringSchema$5
9757
10162
  });
9758
10163
  strictObject({
9759
- memberUserIds: array(trimmedNonEmptyStringSchema$8).min(1).max(100),
9760
- spaceId: trimmedNonEmptyStringSchema$8,
10164
+ memberUserIds: array(trimmedNonEmptyStringSchema$5).min(1).max(100),
10165
+ spaceId: trimmedNonEmptyStringSchema$5,
9761
10166
  speakerMember: centerAgentToolSpeakerSchema
9762
10167
  });
9763
10168
  strictObject({
9764
10169
  agentProfileIds: array(agentProfileIdSchema).min(1).max(100),
9765
10170
  onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
9766
- spaceId: trimmedNonEmptyStringSchema$8
10171
+ spaceId: trimmedNonEmptyStringSchema$5
9767
10172
  });
9768
10173
  const centerAgentSpaceContextScopeSchema = enumFactory([
9769
10174
  "source",
9770
10175
  "thread",
10176
+ "source_evidence",
10177
+ "thread_evidence",
9771
10178
  "delta",
9772
10179
  "history"
9773
10180
  ]);
@@ -9775,17 +10182,26 @@ const centerAgentSpaceContextAnchorByScope = {
9775
10182
  delta: "afterSignalId",
9776
10183
  history: null,
9777
10184
  source: "sourceSignalId",
9778
- thread: "threadId"
10185
+ thread: "threadId",
10186
+ source_evidence: "sourceSignalId",
10187
+ thread_evidence: "threadId"
9779
10188
  };
9780
10189
  strictObject({
9781
- afterSignalId: trimmedNonEmptyStringSchema$8.optional(),
10190
+ afterSignalId: trimmedNonEmptyStringSchema$5.optional(),
9782
10191
  limit: number().int().min(1).max(100).optional(),
9783
10192
  requestedAddressingModel: literal("wake_reference_mention").optional(),
9784
10193
  scope: centerAgentSpaceContextScopeSchema.optional(),
9785
- sourceSignalId: trimmedNonEmptyStringSchema$8.optional(),
9786
- spaceId: trimmedNonEmptyStringSchema$8,
9787
- threadId: trimmedNonEmptyStringSchema$8.optional()
10194
+ sourceSignalId: trimmedNonEmptyStringSchema$5.optional(),
10195
+ spaceId: trimmedNonEmptyStringSchema$5,
10196
+ threadId: trimmedNonEmptyStringSchema$5.optional(),
10197
+ version: spaceEvidenceReferenceSchema.options[0].shape.version.optional(),
10198
+ offset: int().nonnegative().max(1e6).optional()
9788
10199
  }).superRefine((value, context) => {
10200
+ const exact = value.scope === "source_evidence" || value.scope === "thread_evidence";
10201
+ if (!exact && (value.version !== void 0 || value.offset !== void 0) || exact && value.limit !== void 0 || value.offset && !value.version || value.scope === "thread_evidence" && (value.offset ?? 0) > 1e4) context.addIssue({
10202
+ code: "custom",
10203
+ message: "Exact evidence pages require their original version and offset; limit applies only to context reads."
10204
+ });
9789
10205
  const requiredAnchor = value.scope ? centerAgentSpaceContextAnchorByScope[value.scope] : null;
9790
10206
  if (requiredAnchor && !value[requiredAnchor]) context.addIssue({
9791
10207
  code: "custom",
@@ -9803,17 +10219,17 @@ strictObject({
9803
10219
  });
9804
10220
  });
9805
10221
  strictObject({
9806
- dispatchId: trimmedNonEmptyStringSchema$8.optional(),
10222
+ dispatchId: trimmedNonEmptyStringSchema$5.optional(),
9807
10223
  limit: number().int().min(1).max(20).optional(),
9808
- spaceId: trimmedNonEmptyStringSchema$8,
9809
- targetProfileId: trimmedNonEmptyStringSchema$8.optional()
10224
+ spaceId: trimmedNonEmptyStringSchema$5,
10225
+ targetProfileId: trimmedNonEmptyStringSchema$5.optional()
9810
10226
  });
9811
10227
  strictObject({
9812
10228
  files: spaceMessageFileReferencesSchema.optional(),
9813
10229
  mentionProfileIds: array(openMeldRuntimeProfileIdSchema).max(25).optional(),
9814
10230
  onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
9815
10231
  referenceProfileIds: array(openMeldRuntimeProfileIdSchema).max(25).optional(),
9816
- spaceId: trimmedNonEmptyStringSchema$8,
10232
+ spaceId: trimmedNonEmptyStringSchema$5,
9817
10233
  text: string().trim().min(1).max(MAX_TEXT_LENGTH$1)
9818
10234
  }).superRefine((value, context) => {
9819
10235
  const referenceProfileIds = new Set(value.referenceProfileIds ?? []);
@@ -9825,19 +10241,19 @@ strictObject({
9825
10241
  });
9826
10242
  });
9827
10243
  const centerAgentRemoteAgentExecutionPublicationSourceSchema = strictObject({
9828
- executionId: trimmedNonEmptyStringSchema$8.max(512),
10244
+ executionId: trimmedNonEmptyStringSchema$5.max(512),
9829
10245
  kind: literal("remote_agent_execution"),
9830
- operationId: trimmedNonEmptyStringSchema$8.max(256).optional()
10246
+ operationId: trimmedNonEmptyStringSchema$5.max(256).optional()
9831
10247
  });
9832
10248
  const centerAgentPublicationSourceSchema = discriminatedUnion("kind", [
9833
10249
  strictObject({
9834
- documentId: trimmedNonEmptyStringSchema$8.max(256),
10250
+ documentId: trimmedNonEmptyStringSchema$5.max(256),
9835
10251
  kind: literal("organization_document")
9836
10252
  }),
9837
10253
  centerAgentRemoteAgentExecutionPublicationSourceSchema,
9838
10254
  strictObject({
9839
10255
  kind: literal("routine_run"),
9840
- runId: trimmedNonEmptyStringSchema$8.max(256)
10256
+ runId: trimmedNonEmptyStringSchema$5.max(256)
9841
10257
  })
9842
10258
  ]);
9843
10259
  const centerAgentSlackMessageCommonBodyFields = {
@@ -9846,7 +10262,7 @@ const centerAgentSlackMessageCommonBodyFields = {
9846
10262
  };
9847
10263
  strictObject({
9848
10264
  ...centerAgentSlackMessageCommonBodyFields,
9849
- channelName: trimmedNonEmptyStringSchema$8.max(80),
10265
+ channelName: trimmedNonEmptyStringSchema$5.max(80),
9850
10266
  publicationSource: centerAgentPublicationSourceSchema.optional()
9851
10267
  });
9852
10268
  union([strictObject({
@@ -9855,18 +10271,18 @@ union([strictObject({
9855
10271
  threadPermalink: slackThreadPublicationPermalinkSchema
9856
10272
  }), strictObject({
9857
10273
  ...centerAgentSlackMessageCommonBodyFields,
9858
- channelName: trimmedNonEmptyStringSchema$8.max(80),
10274
+ channelName: trimmedNonEmptyStringSchema$5.max(80),
9859
10275
  publicationSource: centerAgentRemoteAgentExecutionPublicationSourceSchema,
9860
10276
  threadTs: string().trim().regex(/^\d+\.\d+$/).max(32)
9861
10277
  })]);
9862
10278
  const centerAgentSlackFilePublicationCommonFields = {
9863
10279
  contentBase64: string().max(CENTER_AGENT_SLACK_FILE_MAX_BASE64_CHARACTERS).regex(/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u),
9864
10280
  contentSha256: string().regex(/^[0-9a-f]{64}$/u),
9865
- fileName: trimmedNonEmptyStringSchema$8.max(255),
10281
+ fileName: trimmedNonEmptyStringSchema$5.max(255),
9866
10282
  initialComment: string().trim().min(1).max(MAX_TEXT_LENGTH$1).optional(),
9867
10283
  publicationSource: centerAgentRemoteAgentExecutionPublicationSourceSchema,
9868
10284
  speakerMember: centerAgentToolSpeakerSchema,
9869
- title: trimmedNonEmptyStringSchema$8.max(255).optional()
10285
+ title: trimmedNonEmptyStringSchema$5.max(255).optional()
9870
10286
  };
9871
10287
  union([
9872
10288
  strictObject({
@@ -9875,7 +10291,7 @@ union([
9875
10291
  }),
9876
10292
  strictObject({
9877
10293
  ...centerAgentSlackFilePublicationCommonFields,
9878
- channelName: trimmedNonEmptyStringSchema$8.max(80)
10294
+ channelName: trimmedNonEmptyStringSchema$5.max(80)
9879
10295
  }),
9880
10296
  strictObject({
9881
10297
  ...centerAgentSlackFilePublicationCommonFields,
@@ -9884,7 +10300,7 @@ union([
9884
10300
  ]);
9885
10301
  strictObject({
9886
10302
  includeBots: boolean().optional(),
9887
- query: trimmedNonEmptyStringSchema$8.max(500),
10303
+ query: trimmedNonEmptyStringSchema$5.max(500),
9888
10304
  searchAuthorization: remoteAgentSlackSearchAuthorizationSchema,
9889
10305
  speakerMember: centerAgentToolSpeakerSchema
9890
10306
  });
@@ -9895,7 +10311,9 @@ const centerAgentDelegationCompletionModeSchema = enumFactory([
9895
10311
  "resume_parent_on_failure",
9896
10312
  "resume_parent_on_each_terminal"
9897
10313
  ]);
9898
- strictObject({
10314
+ const centerAgentWakeAgentProfilesInSpaceBodySchema = strictObject({
10315
+ evidenceRefs: spaceEvidenceReferencesSchema.optional(),
10316
+ pluginActions: array(pluginDelegationRequestSchema).min(1).max(10).optional(),
9899
10317
  agentProfileIds: array(agentProfileIdSchema).min(1).max(25),
9900
10318
  completionMode: centerAgentDelegationCompletionModeSchema.optional(),
9901
10319
  replyLanguageTag: workingLanguageTagSchema.optional(),
@@ -9903,7 +10321,7 @@ strictObject({
9903
10321
  mentionProfileIds: array(openMeldRuntimeProfileIdSchema).max(25).optional(),
9904
10322
  onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
9905
10323
  referenceProfileIds: array(openMeldRuntimeProfileIdSchema).max(25).optional(),
9906
- spaceId: trimmedNonEmptyStringSchema$8,
10324
+ spaceId: trimmedNonEmptyStringSchema$5,
9907
10325
  text: string().trim().min(1).max(MAX_TEXT_LENGTH$1)
9908
10326
  }).superRefine((value, context) => {
9909
10327
  const otherAddressingProfileIds = /* @__PURE__ */ new Set([
@@ -9951,22 +10369,26 @@ strictObject({
9951
10369
  });
9952
10370
  });
9953
10371
  strictObject({
10372
+ evidenceRefs: spaceEvidenceReferencesSchema.optional(),
10373
+ pluginActions: array(pluginDelegationAuthorizationSchema).min(1).max(10).optional(),
9954
10374
  activationTargets: array(agentProfileIdSchema).min(1),
9955
10375
  attribution: centerAgentAttributionSchema,
9956
- clientMessageId: trimmedNonEmptyStringSchema$8,
10376
+ clientMessageId: trimmedNonEmptyStringSchema$5,
9957
10377
  completionMode: centerAgentDelegationCompletionModeSchema,
9958
10378
  replyLanguageTag: workingLanguageTagSchema.optional(),
9959
10379
  context: openMeldRequestContextSchema,
9960
- delegationId: trimmedNonEmptyStringSchema$8,
10380
+ delegationId: trimmedNonEmptyStringSchema$5,
10381
+ batchRootPublicationId: trimmedNonEmptyStringSchema$5.optional(),
10382
+ batchPublicationIds: array(trimmedNonEmptyStringSchema$5).min(2).max(10).optional(),
9961
10383
  fallbackAgentProfileId: agentProfileIdSchema.nullable(),
9962
- organizationId: trimmedNonEmptyStringSchema$8,
9963
- parentSubmissionId: trimmedNonEmptyStringSchema$8,
10384
+ organizationId: trimmedNonEmptyStringSchema$5,
10385
+ parentSubmissionId: trimmedNonEmptyStringSchema$5,
9964
10386
  profile: profileSchema,
9965
10387
  mentionTargets: array(openMeldRuntimeProfileIdSchema).max(25).default([]),
9966
10388
  referenceTargets: array(openMeldRuntimeProfileIdSchema).max(25).default([]),
9967
10389
  spaceAddressingVersion: literal("1").optional(),
9968
- spaceId: trimmedNonEmptyStringSchema$8,
9969
- subscriptionIds: array(trimmedNonEmptyStringSchema$8).min(1),
10390
+ spaceId: trimmedNonEmptyStringSchema$5,
10391
+ subscriptionIds: array(trimmedNonEmptyStringSchema$5).min(1),
9970
10392
  text: string().trim().min(1).max(MAX_TEXT_LENGTH$1),
9971
10393
  v: literal(1)
9972
10394
  }).superRefine((value, context) => {
@@ -9981,6 +10403,38 @@ strictObject({
9981
10403
  path: ["referenceTargets", overlappingReferenceIndex]
9982
10404
  });
9983
10405
  });
10406
+ strictObject({
10407
+ destinations: array(centerAgentWakeAgentProfilesInSpaceBodySchema).min(2).max(10),
10408
+ replyLanguageTag: workingLanguageTagSchema.optional(),
10409
+ onBehalfOf: centerAgentOnBehalfOfInputSchema.optional()
10410
+ }).superRefine((value, context) => {
10411
+ if (new Set(value.destinations.map((destination) => destination.spaceId)).size !== value.destinations.length) context.addIssue({
10412
+ code: "custom",
10413
+ path: ["destinations"],
10414
+ message: "Include each Space once, with all of its Agent targets."
10415
+ });
10416
+ if (value.destinations.reduce((count, destination) => count + destination.agentProfileIds.length, 0) > 25) context.addIssue({
10417
+ code: "custom",
10418
+ path: ["destinations"],
10419
+ message: "A Wake batch supports at most 25 Agent tasks."
10420
+ });
10421
+ value.destinations.forEach((destination, index) => {
10422
+ if (destination.fallbackAgentProfileId || destination.onBehalfOf || destination.replyLanguageTag || destination.completionMode && destination.completionMode !== "resume_parent_when_all_terminal") context.addIssue({
10423
+ code: "custom",
10424
+ path: ["destinations", index],
10425
+ message: "A multi-Space Wake has one requester, reply language, and all-terminal completion barrier; per-destination fallbacks are not supported."
10426
+ });
10427
+ });
10428
+ });
10429
+ strictObject({
10430
+ delegationId: trimmedNonEmptyStringSchema$5,
10431
+ status: literal("queued"),
10432
+ childTasks: array(strictObject({
10433
+ completionCondition: literal("terminal"),
10434
+ subscriptionId: trimmedNonEmptyStringSchema$5,
10435
+ task: spaceWakeAgentTaskHandleSchema
10436
+ })).min(2).max(25)
10437
+ });
9984
10438
  strictObject({
9985
10439
  speakerMember: centerAgentToolSpeakerSchema.optional(),
9986
10440
  completionCondition: agentTaskCompletionConditionSchema,
@@ -9989,7 +10443,7 @@ strictObject({
9989
10443
  task: agentTaskHandleSchema
9990
10444
  });
9991
10445
  strictObject({
9992
- sourceSubscriptionId: trimmedNonEmptyStringSchema$8.max(512),
10446
+ sourceSubscriptionId: trimmedNonEmptyStringSchema$5.max(512),
9993
10447
  inspectOnly: boolean().optional(),
9994
10448
  includePublishedResult: boolean().optional(),
9995
10449
  replyLanguageTag: workingLanguageTagSchema.optional(),
@@ -10002,18 +10456,18 @@ strictObject({
10002
10456
  "already_requested",
10003
10457
  "unavailable"
10004
10458
  ]),
10005
- sourceSubscriptionId: trimmedNonEmptyStringSchema$8,
10006
- subscriptionId: trimmedNonEmptyStringSchema$8.nullable(),
10007
- reasonCode: trimmedNonEmptyStringSchema$8.nullable(),
10459
+ sourceSubscriptionId: trimmedNonEmptyStringSchema$5,
10460
+ subscriptionId: trimmedNonEmptyStringSchema$5.nullable(),
10461
+ reasonCode: trimmedNonEmptyStringSchema$5.nullable(),
10008
10462
  publishedResult: strictObject({
10009
- spaceId: trimmedNonEmptyStringSchema$8,
10010
- signalId: trimmedNonEmptyStringSchema$8
10463
+ spaceId: trimmedNonEmptyStringSchema$5,
10464
+ signalId: trimmedNonEmptyStringSchema$5
10011
10465
  }).optional()
10012
10466
  });
10013
10467
  strictObject({
10014
- spaceId: trimmedNonEmptyStringSchema$8,
10015
- profileId: trimmedNonEmptyStringSchema$8,
10016
- ownerUserId: trimmedNonEmptyStringSchema$8
10468
+ spaceId: trimmedNonEmptyStringSchema$5,
10469
+ profileId: trimmedNonEmptyStringSchema$5,
10470
+ ownerUserId: trimmedNonEmptyStringSchema$5
10017
10471
  });
10018
10472
  strictObject({ allowed: boolean() });
10019
10473
  strictObject({
@@ -10027,7 +10481,7 @@ strictObject({
10027
10481
  onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
10028
10482
  password: spacePasswordSchema.optional(),
10029
10483
  purpose: string().optional(),
10030
- spaceId: trimmedNonEmptyStringSchema$8
10484
+ spaceId: trimmedNonEmptyStringSchema$5
10031
10485
  }).superRefine((value, ctx) => {
10032
10486
  if (value.accessMode === void 0 && value.guide === void 0 && value.purpose === void 0) ctx.addIssue({
10033
10487
  code: "custom",
@@ -10067,24 +10521,24 @@ const centerAgentProductOperationStepSchema = strictObject({
10067
10521
  "failed",
10068
10522
  "skipped"
10069
10523
  ]),
10070
- message: trimmedNonEmptyStringSchema$8.optional(),
10071
- nextAction: trimmedNonEmptyStringSchema$8.optional()
10524
+ message: trimmedNonEmptyStringSchema$5.optional(),
10525
+ nextAction: trimmedNonEmptyStringSchema$5.optional()
10072
10526
  });
10073
10527
  const centerAgentLocalAgentConnectionCandidateSchema = strictObject({
10074
- agentControllerRef: trimmedNonEmptyStringSchema$8,
10075
- agentDisplayName: trimmedNonEmptyStringSchema$8,
10076
- candidateId: trimmedNonEmptyStringSchema$8,
10528
+ agentControllerRef: trimmedNonEmptyStringSchema$5,
10529
+ agentDisplayName: trimmedNonEmptyStringSchema$5,
10530
+ candidateId: trimmedNonEmptyStringSchema$5,
10077
10531
  connectable: boolean(),
10078
- deviceDisplayName: trimmedNonEmptyStringSchema$8,
10079
- deviceId: trimmedNonEmptyStringSchema$8,
10532
+ deviceDisplayName: trimmedNonEmptyStringSchema$5,
10533
+ deviceId: trimmedNonEmptyStringSchema$5,
10080
10534
  freshness: enumFactory([
10081
10535
  "fresh",
10082
10536
  "stale",
10083
10537
  "unknown"
10084
10538
  ]),
10085
10539
  lastObservedAtMs: number().int().nonnegative().nullable(),
10086
- reasonCodes: array(trimmedNonEmptyStringSchema$8),
10087
- runtimeLane: trimmedNonEmptyStringSchema$8,
10540
+ reasonCodes: array(trimmedNonEmptyStringSchema$5),
10541
+ runtimeLane: trimmedNonEmptyStringSchema$5,
10088
10542
  status: enumFactory([
10089
10543
  "ready",
10090
10544
  "not_ready",
@@ -10094,12 +10548,12 @@ const centerAgentLocalAgentConnectionCandidateSchema = strictObject({
10094
10548
  openMeldServiceRuntimeId: prepareReadinessRuntimeIdSchema
10095
10549
  });
10096
10550
  const centerAgentComputerSetupOptionSchema = strictObject({
10097
- connectedComputerId: trimmedNonEmptyStringSchema$8.nullable(),
10098
- deviceDisplayName: trimmedNonEmptyStringSchema$8,
10099
- deviceId: trimmedNonEmptyStringSchema$8,
10551
+ connectedComputerId: trimmedNonEmptyStringSchema$5.nullable(),
10552
+ deviceDisplayName: trimmedNonEmptyStringSchema$5,
10553
+ deviceId: trimmedNonEmptyStringSchema$5,
10100
10554
  isCurrent: boolean(),
10101
10555
  lastObservedAtMs: number().int().nonnegative().nullable(),
10102
- reasonCodes: array(trimmedNonEmptyStringSchema$8),
10556
+ reasonCodes: array(trimmedNonEmptyStringSchema$5),
10103
10557
  recommendedMode: computerSetupModeSchema.nullable(),
10104
10558
  status: enumFactory([
10105
10559
  "connected",
@@ -10115,12 +10569,12 @@ const centerAgentComputerSetupOptionSchema = strictObject({
10115
10569
  });
10116
10570
  });
10117
10571
  strictObject({
10118
- memberUserId: trimmedNonEmptyStringSchema$8.optional(),
10572
+ memberUserId: trimmedNonEmptyStringSchema$5.optional(),
10119
10573
  speakerMember: centerAgentToolSpeakerSchema
10120
10574
  });
10121
10575
  strictObject({
10122
10576
  candidates: array(centerAgentLocalAgentConnectionCandidateSchema),
10123
- organizationId: trimmedNonEmptyStringSchema$8
10577
+ organizationId: trimmedNonEmptyStringSchema$5
10124
10578
  });
10125
10579
  strictObject({
10126
10580
  includeDiagnostics: boolean().optional(),
@@ -10130,7 +10584,7 @@ strictObject({
10130
10584
  strictObject({
10131
10585
  computers: array(centerAgentComputerSetupOptionSchema),
10132
10586
  diagnostics: ownerComputerDiagnosticsSchema.optional(),
10133
- organizationId: trimmedNonEmptyStringSchema$8
10587
+ organizationId: trimmedNonEmptyStringSchema$5
10134
10588
  });
10135
10589
  strictObject({
10136
10590
  includeUsageLimits: literal("true").optional(),
@@ -10142,7 +10596,7 @@ lazySchema(() => strictObject({
10142
10596
  capabilities: true,
10143
10597
  localAgentCatalog: true
10144
10598
  })) })) }),
10145
- organizationId: trimmedNonEmptyStringSchema$8,
10599
+ organizationId: trimmedNonEmptyStringSchema$5,
10146
10600
  selectedComputer: strictObject({
10147
10601
  target: peopleComputerTargetSchema,
10148
10602
  readiness: currentLocalRuntimeReplyReadinessResponseSchema,
@@ -10156,7 +10610,7 @@ strictObject({
10156
10610
  target: peopleComputerTargetSchema.optional()
10157
10611
  });
10158
10612
  strictObject({
10159
- organizationId: trimmedNonEmptyStringSchema$8,
10613
+ organizationId: trimmedNonEmptyStringSchema$5,
10160
10614
  result: requestCurrentOpenMeldToolsUpdateResponseSchema
10161
10615
  });
10162
10616
  strictObject({
@@ -10165,28 +10619,28 @@ strictObject({
10165
10619
  target: peopleComputerTargetSchema.optional()
10166
10620
  });
10167
10621
  strictObject({
10168
- organizationId: trimmedNonEmptyStringSchema$8,
10622
+ organizationId: trimmedNonEmptyStringSchema$5,
10169
10623
  result: setCurrentOpenMeldToolsMaintenanceResponseSchema
10170
10624
  });
10171
10625
  strictObject({
10172
- agentId: trimmedNonEmptyStringSchema$8.max(256),
10626
+ agentId: trimmedNonEmptyStringSchema$5.max(256),
10173
10627
  speakerMember: centerAgentToolSpeakerSchema,
10174
10628
  target: peopleComputerTargetSchema.optional()
10175
10629
  });
10176
- currentLocalAgentInstallationsResponseSchema.extend({ organizationId: trimmedNonEmptyStringSchema$8 });
10630
+ currentLocalAgentInstallationsResponseSchema.extend({ organizationId: trimmedNonEmptyStringSchema$5 });
10177
10631
  strictObject({
10178
- agentId: trimmedNonEmptyStringSchema$8.max(256),
10632
+ agentId: trimmedNonEmptyStringSchema$5.max(256),
10179
10633
  confirmed: literal(true),
10180
- installationId: trimmedNonEmptyStringSchema$8.max(256),
10634
+ installationId: trimmedNonEmptyStringSchema$5.max(256),
10181
10635
  speakerMember: centerAgentToolSpeakerSchema,
10182
10636
  target: peopleComputerTargetSchema.optional()
10183
10637
  });
10184
- selectCurrentLocalAgentInstallationResponseSchema.extend({ organizationId: trimmedNonEmptyStringSchema$8 });
10638
+ selectCurrentLocalAgentInstallationResponseSchema.extend({ organizationId: trimmedNonEmptyStringSchema$5 });
10185
10639
  strictObject({
10186
10640
  includeUsageLimits: literal("true").optional(),
10187
- memberUserId: trimmedNonEmptyStringSchema$8
10641
+ memberUserId: trimmedNonEmptyStringSchema$5
10188
10642
  });
10189
- organizationComputersResponseSchema.extend({ memberUserId: trimmedNonEmptyStringSchema$8 }).superRefine((value, context) => {
10643
+ organizationComputersResponseSchema.extend({ memberUserId: trimmedNonEmptyStringSchema$5 }).superRefine((value, context) => {
10190
10644
  value.computers.forEach((computer, index) => {
10191
10645
  if (computer.ownerUserId !== value.memberUserId) context.addIssue({
10192
10646
  code: "custom",
@@ -10203,20 +10657,20 @@ strictObject({
10203
10657
  agentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),
10204
10658
  agentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),
10205
10659
  agentProfileId: agentProfileIdSchema,
10206
- candidateId: trimmedNonEmptyStringSchema$8,
10207
- modelId: trimmedNonEmptyStringSchema$8.optional(),
10660
+ candidateId: trimmedNonEmptyStringSchema$5,
10661
+ modelId: trimmedNonEmptyStringSchema$5.optional(),
10208
10662
  onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
10209
10663
  openCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),
10210
- reasoningLevel: trimmedNonEmptyStringSchema$8.optional()
10664
+ reasoningLevel: trimmedNonEmptyStringSchema$5.optional()
10211
10665
  });
10212
10666
  strictObject({
10213
10667
  agentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),
10214
10668
  agentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),
10215
10669
  agentProfileId: agentProfileIdSchema,
10216
- modelId: trimmedNonEmptyStringSchema$8.optional(),
10670
+ modelId: trimmedNonEmptyStringSchema$5.optional(),
10217
10671
  onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
10218
10672
  openCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),
10219
- reasoningLevel: trimmedNonEmptyStringSchema$8.optional(),
10673
+ reasoningLevel: trimmedNonEmptyStringSchema$5.optional(),
10220
10674
  workspaceMode: profileWorkspaceModeSchema.optional(),
10221
10675
  workspacePath: profileWorkingDirectorySchema.optional()
10222
10676
  }).superRefine((value, ctx) => {
@@ -10243,14 +10697,14 @@ strictObject({ onBehalfOf: centerAgentOnBehalfOfInputSchema.optional() });
10243
10697
  strictObject({
10244
10698
  agentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),
10245
10699
  agentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),
10246
- candidateId: trimmedNonEmptyStringSchema$8,
10700
+ candidateId: trimmedNonEmptyStringSchema$5,
10247
10701
  configuration: agentProfileCreationPreferenceSelectionSchema.optional(),
10248
- modelId: trimmedNonEmptyStringSchema$8.optional(),
10702
+ modelId: trimmedNonEmptyStringSchema$5.optional(),
10249
10703
  onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
10250
10704
  openCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),
10251
- profileName: trimmedNonEmptyStringSchema$8,
10252
- reasoningLevel: trimmedNonEmptyStringSchema$8.optional(),
10253
- spaceId: trimmedNonEmptyStringSchema$8,
10705
+ profileName: trimmedNonEmptyStringSchema$5,
10706
+ reasoningLevel: trimmedNonEmptyStringSchema$5.optional(),
10707
+ spaceId: trimmedNonEmptyStringSchema$5,
10254
10708
  workspaceMode: profileWorkspaceModeSchema.optional(),
10255
10709
  workspacePath: profileWorkingDirectorySchema.optional()
10256
10710
  }).superRefine((value, ctx) => {
@@ -10268,13 +10722,13 @@ strictObject({
10268
10722
  const centerAgentCheckAgentProfileReadinessResponseSchema = strictObject({
10269
10723
  agentProfileId: agentProfileIdSchema,
10270
10724
  blockers: array(strictObject({
10271
- reasonCode: trimmedNonEmptyStringSchema$8,
10272
- explanation: trimmedNonEmptyStringSchema$8
10725
+ reasonCode: trimmedNonEmptyStringSchema$5,
10726
+ explanation: trimmedNonEmptyStringSchema$5
10273
10727
  })),
10274
10728
  canReply: boolean(),
10275
- organizationId: trimmedNonEmptyStringSchema$8,
10729
+ organizationId: trimmedNonEmptyStringSchema$5,
10276
10730
  readiness: getAgentExecutionReadinessResponseSchema,
10277
- summary: trimmedNonEmptyStringSchema$8
10731
+ summary: trimmedNonEmptyStringSchema$5
10278
10732
  });
10279
10733
  const centerAgentProductOperationStatusSchema = enumFactory(["completed", "blocked"]);
10280
10734
  const centerAgentConnectAgentProfileToLocalAgentResponseSchema = strictObject({
@@ -10282,7 +10736,7 @@ const centerAgentConnectAgentProfileToLocalAgentResponseSchema = strictObject({
10282
10736
  binding: ensureAgentProfilePrimaryBindingResponseSchema.optional(),
10283
10737
  canReply: boolean(),
10284
10738
  candidate: centerAgentLocalAgentConnectionCandidateSchema.optional(),
10285
- organizationId: trimmedNonEmptyStringSchema$8,
10739
+ organizationId: trimmedNonEmptyStringSchema$5,
10286
10740
  readiness: centerAgentCheckAgentProfileReadinessResponseSchema.optional(),
10287
10741
  status: centerAgentProductOperationStatusSchema,
10288
10742
  steps: array(centerAgentProductOperationStepSchema)
@@ -10291,7 +10745,7 @@ strictObject({
10291
10745
  agentProfileId: agentProfileIdSchema,
10292
10746
  binding: ensureAgentProfilePrimaryBindingResponseSchema.optional(),
10293
10747
  canReply: boolean(),
10294
- organizationId: trimmedNonEmptyStringSchema$8,
10748
+ organizationId: trimmedNonEmptyStringSchema$5,
10295
10749
  readiness: centerAgentCheckAgentProfileReadinessResponseSchema.optional(),
10296
10750
  status: centerAgentProductOperationStatusSchema,
10297
10751
  steps: array(centerAgentProductOperationStepSchema),
@@ -10301,22 +10755,22 @@ strictObject({
10301
10755
  agentProfileId: agentProfileIdSchema.optional(),
10302
10756
  canReply: boolean(),
10303
10757
  connection: centerAgentConnectAgentProfileToLocalAgentResponseSchema.optional(),
10304
- organizationId: trimmedNonEmptyStringSchema$8,
10758
+ organizationId: trimmedNonEmptyStringSchema$5,
10305
10759
  profile: authProfileViewSchema.optional(),
10306
10760
  readiness: centerAgentCheckAgentProfileReadinessResponseSchema.optional(),
10307
- spaceId: trimmedNonEmptyStringSchema$8,
10761
+ spaceId: trimmedNonEmptyStringSchema$5,
10308
10762
  status: centerAgentProductOperationStatusSchema,
10309
10763
  steps: array(centerAgentProductOperationStepSchema),
10310
10764
  workspace: setCurrentAgentProfileWorkspaceResponseSchema.optional()
10311
10765
  });
10312
10766
  const centerAgentConciergeActionResponseSchema = strictObject({
10313
- organizationId: trimmedNonEmptyStringSchema$8,
10767
+ organizationId: trimmedNonEmptyStringSchema$5,
10314
10768
  attribution: centerAgentAttributionSchema,
10315
10769
  resource: centerAgentResourceSchema.nullable()
10316
10770
  });
10317
10771
  centerAgentConciergeActionResponseSchema.extend({
10318
10772
  meta: spaceMetaSchema.optional(),
10319
- spaceId: trimmedNonEmptyStringSchema$8
10773
+ spaceId: trimmedNonEmptyStringSchema$5
10320
10774
  });
10321
10775
  centerAgentConciergeActionResponseSchema.extend({ profile: authProfileViewSchema });
10322
10776
  centerAgentConciergeActionResponseSchema.extend({
@@ -10325,49 +10779,51 @@ centerAgentConciergeActionResponseSchema.extend({
10325
10779
  });
10326
10780
  centerAgentConciergeActionResponseSchema.extend({
10327
10781
  agentProfileIds: array(agentProfileIdSchema),
10328
- spaceId: trimmedNonEmptyStringSchema$8,
10782
+ spaceId: trimmedNonEmptyStringSchema$5,
10329
10783
  membership: postSpaceMembersResponseSchema
10330
10784
  });
10331
10785
  const centerAgentAddMembersToSpaceResultSchema = discriminatedUnion("status", [strictObject({
10332
- memberUserId: trimmedNonEmptyStringSchema$8,
10786
+ memberUserId: trimmedNonEmptyStringSchema$5,
10333
10787
  profileId: openMeldRuntimeProfileIdSchema,
10334
10788
  status: enumFactory(["added", "already_member"])
10335
10789
  }), strictObject({
10336
10790
  code: enumFactory(["not_organization_member", "active_human_profile_required"]),
10337
- memberUserId: trimmedNonEmptyStringSchema$8,
10338
- message: trimmedNonEmptyStringSchema$8,
10791
+ memberUserId: trimmedNonEmptyStringSchema$5,
10792
+ message: trimmedNonEmptyStringSchema$5,
10339
10793
  status: literal("rejected")
10340
10794
  })]);
10341
10795
  centerAgentConciergeActionResponseSchema.extend({
10342
10796
  membership: postSpaceMembersResponseSchema,
10343
10797
  results: array(centerAgentAddMembersToSpaceResultSchema),
10344
- spaceId: trimmedNonEmptyStringSchema$8
10798
+ spaceId: trimmedNonEmptyStringSchema$5
10345
10799
  });
10346
10800
  centerAgentConciergeActionResponseSchema.extend({
10347
10801
  agentProfileIds: array(agentProfileIdSchema),
10348
- spaceId: trimmedNonEmptyStringSchema$8,
10802
+ spaceId: trimmedNonEmptyStringSchema$5,
10349
10803
  membership: removeSpaceMembersResponseSchema
10350
10804
  });
10351
10805
  const centerAgentSpaceContextBaseResponseShape = {
10352
- organizationId: trimmedNonEmptyStringSchema$8,
10353
- spaceId: trimmedNonEmptyStringSchema$8
10806
+ organizationId: trimmedNonEmptyStringSchema$5,
10807
+ spaceId: trimmedNonEmptyStringSchema$5
10354
10808
  };
10355
10809
  const centerAgentProgressiveSpaceContextSchema = discriminatedUnion("scope", [
10810
+ spaceMessageEvidenceResponseSchema.extend({ scope: literal("source_evidence") }),
10811
+ spaceThreadEvidenceResponseSchema.extend({ scope: literal("thread_evidence") }),
10356
10812
  strictObject({
10357
10813
  scope: literal("source"),
10358
10814
  signals: array(signalEnvelopeSchema).max(1),
10359
- sourceSignalId: trimmedNonEmptyStringSchema$8,
10815
+ sourceSignalId: trimmedNonEmptyStringSchema$5,
10360
10816
  threadContext: union([spaceThreadContextSchema, nullFactory()]),
10361
10817
  truncated: literal(false)
10362
10818
  }),
10363
10819
  strictObject({
10364
10820
  scope: literal("thread"),
10365
10821
  signals: array(signalEnvelopeSchema).max(100),
10366
- threadId: trimmedNonEmptyStringSchema$8,
10822
+ threadId: trimmedNonEmptyStringSchema$5,
10367
10823
  truncated: boolean()
10368
10824
  }),
10369
10825
  strictObject({
10370
- afterSignalId: trimmedNonEmptyStringSchema$8,
10826
+ afterSignalId: trimmedNonEmptyStringSchema$5,
10371
10827
  scope: literal("delta"),
10372
10828
  signals: array(signalEnvelopeSchema).max(100),
10373
10829
  truncated: boolean()
@@ -10386,32 +10842,32 @@ union([strictObject({
10386
10842
  context: centerAgentProgressiveSpaceContextSchema
10387
10843
  })]);
10388
10844
  const centerAgentDispatchHistoryLatestAttemptSchema = strictObject({
10389
- attemptId: trimmedNonEmptyStringSchema$8,
10845
+ attemptId: trimmedNonEmptyStringSchema$5,
10390
10846
  attemptNo: int().min(1),
10391
- createdAt: ISO_DATE_TIME_SCHEMA$6,
10392
- errorCode: nullableTrimmedStringSchema$3,
10847
+ createdAt: ISO_DATE_TIME_SCHEMA$3,
10848
+ errorCode: nullableTrimmedStringSchema$2,
10393
10849
  errorMessage: nullableDiagnosticTextSchema,
10394
- finishedAt: nullableIsoDateTimeSchema$3,
10395
- startedAt: nullableIsoDateTimeSchema$3,
10850
+ finishedAt: nullableIsoDateTimeSchema$2,
10851
+ startedAt: nullableIsoDateTimeSchema$2,
10396
10852
  status: spaceDispatchTraceAttemptStatusSchema
10397
10853
  });
10398
10854
  strictObject({
10399
10855
  entries: array(strictObject({
10400
10856
  attemptCount: int().min(0),
10401
- dispatchId: trimmedNonEmptyStringSchema$8,
10402
- firstSeenAt: ISO_DATE_TIME_SCHEMA$6,
10403
- lastAttemptAt: ISO_DATE_TIME_SCHEMA$6,
10857
+ dispatchId: trimmedNonEmptyStringSchema$5,
10858
+ firstSeenAt: ISO_DATE_TIME_SCHEMA$3,
10859
+ lastAttemptAt: ISO_DATE_TIME_SCHEMA$3,
10404
10860
  latestAttempt: union([centerAgentDispatchHistoryLatestAttemptSchema, nullFactory()]),
10405
10861
  status: spaceDispatchTraceDispatchStatusSchema,
10406
- targetProfileId: trimmedNonEmptyStringSchema$8
10862
+ targetProfileId: trimmedNonEmptyStringSchema$5
10407
10863
  })),
10408
- organizationId: trimmedNonEmptyStringSchema$8,
10409
- spaceId: trimmedNonEmptyStringSchema$8
10864
+ organizationId: trimmedNonEmptyStringSchema$5,
10865
+ spaceId: trimmedNonEmptyStringSchema$5
10410
10866
  });
10411
10867
  centerAgentConciergeActionResponseSchema.extend({
10412
10868
  accessModeState: spaceAccessModeStateSchema.optional(),
10413
10869
  meta: spaceMetaSchema.optional(),
10414
- spaceId: trimmedNonEmptyStringSchema$8
10870
+ spaceId: trimmedNonEmptyStringSchema$5
10415
10871
  });
10416
10872
  discriminatedUnion("addressingModel", [strictObject({
10417
10873
  addressingModel: literal("wake_reference"),
@@ -10423,25 +10879,25 @@ discriminatedUnion("addressingModel", [strictObject({
10423
10879
  })]);
10424
10880
  centerAgentConciergeActionResponseSchema.extend({
10425
10881
  signal: signalTextEnvelopeSchema,
10426
- spaceId: trimmedNonEmptyStringSchema$8
10882
+ spaceId: trimmedNonEmptyStringSchema$5
10427
10883
  });
10428
10884
  strictObject({
10429
10885
  attribution: centerAgentAttributionSchema,
10430
- channelName: trimmedNonEmptyStringSchema$8.max(80),
10886
+ channelName: trimmedNonEmptyStringSchema$5.max(80),
10431
10887
  joinedChannel: boolean(),
10432
- messageTs: trimmedNonEmptyStringSchema$8,
10433
- organizationId: trimmedNonEmptyStringSchema$8
10888
+ messageTs: trimmedNonEmptyStringSchema$5,
10889
+ organizationId: trimmedNonEmptyStringSchema$5
10434
10890
  });
10435
10891
  strictObject({
10436
10892
  attribution: centerAgentAttributionSchema,
10437
- channelName: trimmedNonEmptyStringSchema$8.max(80),
10893
+ channelName: trimmedNonEmptyStringSchema$5.max(80),
10438
10894
  file: slackFileMetadataSchema,
10439
10895
  joinedChannel: boolean(),
10440
- organizationId: trimmedNonEmptyStringSchema$8
10896
+ organizationId: trimmedNonEmptyStringSchema$5
10441
10897
  });
10442
10898
  const centerAgentSlackSearchFailureSchema = strictObject({
10443
- organizationId: trimmedNonEmptyStringSchema$8,
10444
- reason: trimmedNonEmptyStringSchema$8.max(500),
10899
+ organizationId: trimmedNonEmptyStringSchema$5,
10900
+ reason: trimmedNonEmptyStringSchema$5.max(500),
10445
10901
  retryAfterSeconds: number().int().nonnegative().optional(),
10446
10902
  status: enumFactory([
10447
10903
  "authorization_expired",
@@ -10451,36 +10907,36 @@ const centerAgentSlackSearchFailureSchema = strictObject({
10451
10907
  ])
10452
10908
  });
10453
10909
  const centerAgentSlackSearchEvidenceItemSchema = strictObject({
10454
- authorName: trimmedNonEmptyStringSchema$8.max(256),
10455
- authorUserId: trimmedNonEmptyStringSchema$8.max(256),
10456
- channelId: trimmedNonEmptyStringSchema$8.max(256),
10457
- channelName: trimmedNonEmptyStringSchema$8.max(256),
10458
- content: trimmedNonEmptyStringSchema$8.max(2e3),
10910
+ authorName: trimmedNonEmptyStringSchema$5.max(256),
10911
+ authorUserId: trimmedNonEmptyStringSchema$5.max(256),
10912
+ channelId: trimmedNonEmptyStringSchema$5.max(256),
10913
+ channelName: trimmedNonEmptyStringSchema$5.max(256),
10914
+ content: trimmedNonEmptyStringSchema$5.max(2e3),
10459
10915
  isAuthorBot: boolean(),
10460
- messageTs: trimmedNonEmptyStringSchema$8.max(64),
10916
+ messageTs: trimmedNonEmptyStringSchema$5.max(64),
10461
10917
  permalink: slackMessagePermalinkSchema
10462
10918
  });
10463
10919
  discriminatedUnion("status", [strictObject({
10464
10920
  messages: array(centerAgentSlackSearchEvidenceItemSchema.extend({ contextMessages: array(centerAgentSlackSearchEvidenceItemSchema).max(2) })).max(8),
10465
10921
  moreResultsAvailable: boolean(),
10466
- organizationId: trimmedNonEmptyStringSchema$8,
10922
+ organizationId: trimmedNonEmptyStringSchema$5,
10467
10923
  status: literal("found")
10468
10924
  }), centerAgentSlackSearchFailureSchema]);
10469
10925
  const centerAgentWakeAgentProfilesInSpaceResponseBaseSchema = centerAgentConciergeActionResponseSchema.extend({
10470
10926
  agentProfileIds: array(agentProfileIdSchema),
10471
10927
  childTasks: array(strictObject({
10472
10928
  completionCondition: literal("terminal"),
10473
- subscriptionId: trimmedNonEmptyStringSchema$8,
10929
+ subscriptionId: trimmedNonEmptyStringSchema$5,
10474
10930
  task: spaceWakeAgentTaskHandleSchema
10475
10931
  })).optional(),
10476
- delegationId: trimmedNonEmptyStringSchema$8.optional(),
10932
+ delegationId: trimmedNonEmptyStringSchema$5.optional(),
10477
10933
  fallbackTask: strictObject({
10478
- activationSubscriptionId: trimmedNonEmptyStringSchema$8,
10934
+ activationSubscriptionId: trimmedNonEmptyStringSchema$5,
10479
10935
  completionCondition: literal("terminal"),
10480
- subscriptionId: trimmedNonEmptyStringSchema$8,
10936
+ subscriptionId: trimmedNonEmptyStringSchema$5,
10481
10937
  task: spaceWakeAgentTaskHandleSchema
10482
10938
  }).optional(),
10483
- spaceId: trimmedNonEmptyStringSchema$8
10939
+ spaceId: trimmedNonEmptyStringSchema$5
10484
10940
  });
10485
10941
  union([centerAgentWakeAgentProfilesInSpaceResponseBaseSchema.extend({
10486
10942
  publicationStatus: literal("accepted").optional(),
@@ -10529,9 +10985,9 @@ centerAgentConciergeActionResponseSchema.extend({
10529
10985
  "condition_not_met"
10530
10986
  ]),
10531
10987
  outcome: union([agentTaskCompletionObservationSchema, nullFactory()]),
10532
- subscriptionId: trimmedNonEmptyStringSchema$8,
10988
+ subscriptionId: trimmedNonEmptyStringSchema$5,
10533
10989
  task: agentTaskHandleSchema,
10534
- watchId: trimmedNonEmptyStringSchema$8
10990
+ watchId: trimmedNonEmptyStringSchema$5
10535
10991
  });
10536
10992
  const centerAgentListAgentTaskSchema = strictObject({
10537
10993
  outcome: union([agentTaskTerminalOutcomeSchema, nullFactory()]),
@@ -10542,17 +10998,82 @@ const centerAgentListAgentTaskSchema = strictObject({
10542
10998
  });
10543
10999
  strictObject({
10544
11000
  hasMore: boolean(),
10545
- organizationId: trimmedNonEmptyStringSchema$8,
11001
+ organizationId: trimmedNonEmptyStringSchema$5,
10546
11002
  tasks: array(centerAgentListAgentTaskSchema).max(20)
10547
11003
  });
10548
11004
  centerAgentConciergeActionResponseSchema.extend({ invited: literal(true) });
10549
11005
  const openCenterAgentDirectMessageSpaceResponseSchema = strictObject({
10550
- organizationId: trimmedNonEmptyStringSchema$8,
11006
+ organizationId: trimmedNonEmptyStringSchema$5,
10551
11007
  centerAgentProfileId: agentProfileIdSchema,
10552
11008
  memberProfileId: openMeldRuntimeProfileIdSchema,
10553
- spaceId: trimmedNonEmptyStringSchema$8,
11009
+ spaceId: trimmedNonEmptyStringSchema$5,
10554
11010
  created: boolean()
10555
11011
  });
11012
+ strictObject({
11013
+ organizationId: string().min(1),
11014
+ userId: string().min(1),
11015
+ actorProfileId: string().min(1),
11016
+ operationId: string().min(1).max(256),
11017
+ sourceRequestKey: string().nullable(),
11018
+ connection: centerAgentConnectorActionExecutionConnectionSchema,
11019
+ connectionUpdatedAtMs: number().int(),
11020
+ accessRevision: number().int(),
11021
+ service: connectorServiceSchema,
11022
+ actionId: string().min(1).max(160),
11023
+ effect: enumFactory([
11024
+ "write",
11025
+ "destructive",
11026
+ "unspecified"
11027
+ ]),
11028
+ input: record(string(), unknown())
11029
+ });
11030
+ const pluginActionRequestViewSchema = strictObject({
11031
+ requestId: string().uuid(),
11032
+ inboxItemId: string().min(1),
11033
+ state: enumFactory([
11034
+ "pending",
11035
+ "approved",
11036
+ "rejected",
11037
+ "expired",
11038
+ "revoked"
11039
+ ]),
11040
+ service: connectorServiceSchema,
11041
+ actionId: string(),
11042
+ effect: enumFactory([
11043
+ "write",
11044
+ "destructive",
11045
+ "unspecified"
11046
+ ]),
11047
+ accountName: string(),
11048
+ accountScope: enumFactory(["member", "shared"]),
11049
+ actorProfileId: string(),
11050
+ inputFieldCount: number().int().nonnegative(),
11051
+ targets: array(strictObject({
11052
+ label: string(),
11053
+ value: string()
11054
+ })).max(12),
11055
+ createdAtMs: number().int(),
11056
+ expiresAtMs: number().int()
11057
+ });
11058
+ const pluginActionRequestCommandSchema = discriminatedUnion("operation", [
11059
+ strictObject({
11060
+ operation: literal("read"),
11061
+ requestId: string().uuid()
11062
+ }),
11063
+ strictObject({
11064
+ operation: literal("reject"),
11065
+ requestId: string().uuid()
11066
+ }),
11067
+ strictObject({
11068
+ operation: literal("approve"),
11069
+ requestId: string().uuid()
11070
+ })
11071
+ ]);
11072
+ strictObject({
11073
+ context: openMeldRequestContextSchema,
11074
+ expectedOrganizationId: string().min(1),
11075
+ command: pluginActionRequestCommandSchema
11076
+ });
10556
11077
  //#endregion
10557
11078
  //#region ../../packages/schemas/dist/schemas/http/space-file-upload.js
10558
11079
  const SPACE_FILE_UPLOAD_PART_BYTES = 8 * 1024 * 1024;
@@ -10748,18 +11269,18 @@ z$1.strictObject({ organizationId: boundedIdentifierSchema$2 });
10748
11269
  const updateFeedbackReportingPolicyBodySchema = z$1.strictObject({ reportingEnabled: z$1.boolean() });
10749
11270
  //#endregion
10750
11271
  //#region ../../packages/schemas/dist/schemas/http/organization-directory.js
10751
- const ISO_DATE_TIME_SCHEMA$5 = iso.datetime({ offset: true });
10752
- const trimmedNonEmptyStringSchema$7 = string().trim().min(1);
11272
+ const ISO_DATE_TIME_SCHEMA$2 = iso.datetime({ offset: true });
11273
+ const trimmedNonEmptyStringSchema$4 = string().trim().min(1);
10753
11274
  strictObject({
10754
- organizationId: trimmedNonEmptyStringSchema$7,
10755
- userId: trimmedNonEmptyStringSchema$7,
11275
+ organizationId: trimmedNonEmptyStringSchema$4,
11276
+ userId: trimmedNonEmptyStringSchema$4,
10756
11277
  profileId: uuidProfileIdSchema,
10757
- lastActiveAt: ISO_DATE_TIME_SCHEMA$5
11278
+ lastActiveAt: ISO_DATE_TIME_SCHEMA$2
10758
11279
  });
10759
- const nullableTrimmedStringSchema$2 = union([trimmedNonEmptyStringSchema$7, nullFactory()]);
11280
+ const nullableTrimmedStringSchema$1 = union([trimmedNonEmptyStringSchema$4, nullFactory()]);
10760
11281
  const organizationDirectoryAgentProfileWorkLocationSchema = strictObject({
10761
11282
  spaceId: string().trim().min(1).max(512),
10762
- spaceName: trimmedNonEmptyStringSchema$7
11283
+ spaceName: trimmedNonEmptyStringSchema$4
10763
11284
  });
10764
11285
  const organizationDirectoryAgentProfileOperationalContextSchema = discriminatedUnion("status", [
10765
11286
  strictObject({ status: literal("checking") }),
@@ -10777,54 +11298,54 @@ const organizationDirectoryAgentProfileOperationalContextSchema = discriminatedU
10777
11298
  currentWorkLocation: organizationDirectoryAgentProfileWorkLocationSchema.optional(),
10778
11299
  queuedWorkLocations: array(organizationDirectoryAgentProfileWorkLocationSchema).max(50).optional(),
10779
11300
  recoveryAction: agentProfileWorkRecoveryActionKindSchema.optional(),
10780
- recoveryTargetWakeLifecycleId: trimmedNonEmptyStringSchema$7.optional(),
11301
+ recoveryTargetWakeLifecycleId: trimmedNonEmptyStringSchema$4.optional(),
10781
11302
  status: literal("paused"),
10782
11303
  waitingCount: number().int().min(0).max(50)
10783
11304
  })
10784
11305
  ]);
10785
11306
  const organizationDirectoryHumanProfileSchema = strictObject({
10786
- lastUsedAt: union([ISO_DATE_TIME_SCHEMA$5, nullFactory()]).optional(),
11307
+ lastUsedAt: union([ISO_DATE_TIME_SCHEMA$2, nullFactory()]).optional(),
10787
11308
  profileId: uuidProfileIdSchema,
10788
- profileName: trimmedNonEmptyStringSchema$7,
10789
- profileHandle: trimmedNonEmptyStringSchema$7,
11309
+ profileName: trimmedNonEmptyStringSchema$4,
11310
+ profileHandle: trimmedNonEmptyStringSchema$4,
10790
11311
  status: enumFactory(["active", "disabled"])
10791
11312
  });
10792
11313
  const organizationDirectoryMemberSchema = strictObject({
10793
- lastActiveAt: union([ISO_DATE_TIME_SCHEMA$5, nullFactory()]).optional(),
10794
- memberId: trimmedNonEmptyStringSchema$7,
10795
- organizationId: trimmedNonEmptyStringSchema$7,
10796
- userId: trimmedNonEmptyStringSchema$7,
10797
- role: trimmedNonEmptyStringSchema$7,
10798
- joinedAt: ISO_DATE_TIME_SCHEMA$5,
11314
+ lastActiveAt: union([ISO_DATE_TIME_SCHEMA$2, nullFactory()]).optional(),
11315
+ memberId: trimmedNonEmptyStringSchema$4,
11316
+ organizationId: trimmedNonEmptyStringSchema$4,
11317
+ userId: trimmedNonEmptyStringSchema$4,
11318
+ role: trimmedNonEmptyStringSchema$4,
11319
+ joinedAt: ISO_DATE_TIME_SCHEMA$2,
10799
11320
  user: strictObject({
10800
- id: trimmedNonEmptyStringSchema$7,
10801
- name: trimmedNonEmptyStringSchema$7,
10802
- email: trimmedNonEmptyStringSchema$7,
10803
- image: nullableTrimmedStringSchema$2
11321
+ id: trimmedNonEmptyStringSchema$4,
11322
+ name: trimmedNonEmptyStringSchema$4,
11323
+ email: trimmedNonEmptyStringSchema$4,
11324
+ image: nullableTrimmedStringSchema$1
10804
11325
  }),
10805
11326
  humanProfile: organizationDirectoryHumanProfileSchema.nullable()
10806
11327
  });
10807
11328
  const organizationDirectoryAgentProfileIdentitySchema = strictObject({
10808
- organizationId: trimmedNonEmptyStringSchema$7,
11329
+ organizationId: trimmedNonEmptyStringSchema$4,
10809
11330
  profileId: agentProfileIdSchema,
10810
- profileName: trimmedNonEmptyStringSchema$7,
10811
- profileHandle: trimmedNonEmptyStringSchema$7,
11331
+ profileName: trimmedNonEmptyStringSchema$4,
11332
+ profileHandle: trimmedNonEmptyStringSchema$4,
10812
11333
  profileKind: literal("agent"),
10813
11334
  isDefault: literal(false),
10814
11335
  status: enumFactory(["active", "disabled"]),
10815
- ownerUserId: nullableTrimmedStringSchema$2,
10816
- ownerName: trimmedNonEmptyStringSchema$7.optional(),
10817
- avatarUrl: trimmedNonEmptyStringSchema$7.optional(),
11336
+ ownerUserId: nullableTrimmedStringSchema$1,
11337
+ ownerName: trimmedNonEmptyStringSchema$4.optional(),
11338
+ avatarUrl: trimmedNonEmptyStringSchema$4.optional(),
10818
11339
  avatarStyle: agentAvatarStyleSchema.nullable().optional(),
10819
- avatarModelId: nullableTrimmedStringSchema$2.optional(),
10820
- source: trimmedNonEmptyStringSchema$7,
11340
+ avatarModelId: nullableTrimmedStringSchema$1.optional(),
11341
+ source: trimmedNonEmptyStringSchema$4,
10821
11342
  managedRole: union([authProfileManagedRoleSchema, nullFactory()]),
10822
- createdByUserId: nullableTrimmedStringSchema$2,
10823
- creatorProfileId: nullableTrimmedStringSchema$2,
10824
- lastUsedAt: union([ISO_DATE_TIME_SCHEMA$5, nullFactory()]),
10825
- lastTaskActivityAt: ISO_DATE_TIME_SCHEMA$5.nullable().optional(),
10826
- createdAt: ISO_DATE_TIME_SCHEMA$5,
10827
- updatedAt: ISO_DATE_TIME_SCHEMA$5
11343
+ createdByUserId: nullableTrimmedStringSchema$1,
11344
+ creatorProfileId: nullableTrimmedStringSchema$1,
11345
+ lastUsedAt: union([ISO_DATE_TIME_SCHEMA$2, nullFactory()]),
11346
+ lastTaskActivityAt: ISO_DATE_TIME_SCHEMA$2.nullable().optional(),
11347
+ createdAt: ISO_DATE_TIME_SCHEMA$2,
11348
+ updatedAt: ISO_DATE_TIME_SCHEMA$2
10828
11349
  });
10829
11350
  const organizationDirectoryAgentProfileSchema = organizationDirectoryAgentProfileIdentitySchema.extend({
10830
11351
  isCenterAgent: boolean().optional(),
@@ -10832,7 +11353,7 @@ const organizationDirectoryAgentProfileSchema = organizationDirectoryAgentProfil
10832
11353
  readiness: getAgentExecutionReadinessResponseSchema
10833
11354
  });
10834
11355
  const organizationProfileDirectoryAgentProfileSchema = organizationDirectoryAgentProfileIdentitySchema.extend({
10835
- agentControllerRef: nullableTrimmedStringSchema$2,
11356
+ agentControllerRef: nullableTrimmedStringSchema$1,
10836
11357
  modelSelection: agentProfileBindingModelSelectionSchema.nullable().optional(),
10837
11358
  isCenterAgent: boolean().optional()
10838
11359
  });
@@ -10842,28 +11363,28 @@ strictObject({
10842
11363
  includeModelSelection: boolean().optional()
10843
11364
  });
10844
11365
  strictObject({
10845
- taskActivitySince: ISO_DATE_TIME_SCHEMA$5.optional(),
10846
- organizationId: trimmedNonEmptyStringSchema$7,
10847
- generatedAt: ISO_DATE_TIME_SCHEMA$5,
11366
+ taskActivitySince: ISO_DATE_TIME_SCHEMA$2.optional(),
11367
+ organizationId: trimmedNonEmptyStringSchema$4,
11368
+ generatedAt: ISO_DATE_TIME_SCHEMA$2,
10848
11369
  members: array(organizationDirectoryMemberSchema),
10849
11370
  agentProfiles: array(organizationProfileDirectoryAgentProfileSchema)
10850
11371
  });
10851
11372
  const organizationAgentRuntimeOverviewItemSchema = strictObject({
10852
11373
  profileId: agentProfileIdSchema,
10853
11374
  workload: agentWorkloadSnapshotSchema.optional(),
10854
- lastTaskActivityAt: ISO_DATE_TIME_SCHEMA$5.nullable().optional(),
11375
+ lastTaskActivityAt: ISO_DATE_TIME_SCHEMA$2.nullable().optional(),
10855
11376
  operationalContext: organizationDirectoryAgentProfileOperationalContextSchema.optional(),
10856
11377
  readiness: getAgentExecutionReadinessResponseSchema
10857
11378
  });
10858
11379
  strictObject({
10859
- organizationId: trimmedNonEmptyStringSchema$7,
10860
- generatedAt: ISO_DATE_TIME_SCHEMA$5,
10861
- taskActivitySince: ISO_DATE_TIME_SCHEMA$5.optional(),
11380
+ organizationId: trimmedNonEmptyStringSchema$4,
11381
+ generatedAt: ISO_DATE_TIME_SCHEMA$2,
11382
+ taskActivitySince: ISO_DATE_TIME_SCHEMA$2.optional(),
10862
11383
  agentProfiles: array(organizationAgentRuntimeOverviewItemSchema)
10863
11384
  });
10864
11385
  const organizationDirectoryResponseSchema = strictObject({
10865
- organizationId: trimmedNonEmptyStringSchema$7,
10866
- generatedAt: ISO_DATE_TIME_SCHEMA$5,
11386
+ organizationId: trimmedNonEmptyStringSchema$4,
11387
+ generatedAt: ISO_DATE_TIME_SCHEMA$2,
10867
11388
  members: array(organizationDirectoryMemberSchema),
10868
11389
  agentProfiles: array(organizationDirectoryAgentProfileSchema)
10869
11390
  });
@@ -10872,378 +11393,96 @@ organizationDirectoryResponseSchema.extend({
10872
11393
  totalMembers: number().int().nonnegative(),
10873
11394
  totalAgentProfiles: number().int().nonnegative()
10874
11395
  });
10875
- strictObject({
10876
- lastActiveAt: ISO_DATE_TIME_SCHEMA$5,
10877
- organizationId: trimmedNonEmptyStringSchema$7,
10878
- userId: trimmedNonEmptyStringSchema$7
10879
- });
10880
- strictObject({
10881
- cursor: string().trim().min(1).max(1024).optional(),
10882
- limit: number().int().min(1).max(100).optional()
10883
- }).extend({
10884
- context: openMeldRequestContextSchema,
10885
- speakerMember: centerAgentToolSpeakerSchema.optional()
10886
- });
10887
- strictObject({
10888
- generatedAt: ISO_DATE_TIME_SCHEMA$5,
10889
- members: array(organizationDirectoryMemberSchema),
10890
- nextCursor: string().trim().min(1).max(1024).nullable(),
10891
- organizationId: trimmedNonEmptyStringSchema$7,
10892
- totalMembers: number().int().nonnegative()
10893
- });
10894
- //#endregion
10895
- //#region ../../packages/schemas/dist/schemas/http/organization-space-directory.js
10896
- const ISO_DATE_TIME_SCHEMA$4 = z$1.iso.datetime({ offset: true });
10897
- const trimmedNonEmptyStringSchema$6 = z$1.string().trim().min(1);
10898
- const nullableIsoDateTimeSchema$2 = z$1.union([ISO_DATE_TIME_SCHEMA$4, z$1.null()]);
10899
- const organizationSpaceDirectoryItemSchema = z$1.strictObject({
10900
- spaceId: trimmedNonEmptyStringSchema$6,
10901
- name: trimmedNonEmptyStringSchema$6,
10902
- organizationId: trimmedNonEmptyStringSchema$6,
10903
- visibility: spaceOrganizationVisibilitySchema,
10904
- joined: z$1.boolean(),
10905
- lastJoinedAt: nullableIsoDateTimeSchema$2,
10906
- spaceCreatedAt: nullableIsoDateTimeSchema$2,
10907
- spaceUpdatedAt: nullableIsoDateTimeSchema$2,
10908
- updatedAt: ISO_DATE_TIME_SCHEMA$4
10909
- });
10910
- const organizationSpaceDirectoryResponseSchema = z$1.strictObject({
10911
- organizationId: trimmedNonEmptyStringSchema$6,
10912
- generatedAt: ISO_DATE_TIME_SCHEMA$4,
10913
- spaces: z$1.array(organizationSpaceDirectoryItemSchema)
10914
- });
10915
- const organizationSpaceDirectoryWithMemberCountsItemSchema = organizationSpaceDirectoryItemSchema.extend({ activeMemberCount: z$1.number().int().nonnegative().nullable() });
10916
- const organizationSpaceDirectoryWithMemberCountsResponseSchema = z$1.strictObject({
10917
- organizationId: trimmedNonEmptyStringSchema$6,
10918
- generatedAt: ISO_DATE_TIME_SCHEMA$4,
10919
- spaces: z$1.array(organizationSpaceDirectoryWithMemberCountsItemSchema)
10920
- });
10921
- //#endregion
10922
- //#region ../../packages/schemas/dist/schemas/common/error-response.js
10923
- const commonErrorSchema = z$1.strictObject({
10924
- code: z$1.string().min(1),
10925
- message: z$1.string().min(1),
10926
- requestId: z$1.string().min(1).optional(),
10927
- details: z$1.unknown().optional()
10928
- });
10929
- z$1.strictObject({
10930
- ok: z$1.literal(false),
10931
- error: commonErrorSchema,
10932
- requestId: z$1.string().min(1).optional()
10933
- });
10934
- //#endregion
10935
- //#region ../../packages/schemas/dist/schemas/http/space-signals.js
10936
- const signalTextRequestDataSchema = signalTextSchema.shape.data;
10937
- z$1.enum([
10938
- "user_authored",
10939
- "system_emitted",
10940
- "legacy_nullable"
10941
- ]);
10942
- const postNormalMessageBodySchema = z$1.strictObject({
10943
- workHandoffVersion: z$1.literal(1).optional(),
10944
- text: signalTextRequestDataSchema.shape.text,
10945
- deviceWait: signalTextRequestDataSchema.shape.deviceWait.optional(),
10946
- contextSelection: signalTextRequestDataSchema.shape.contextSelection.optional(),
10947
- attachments: signalTextRequestDataSchema.shape.attachments.optional(),
10948
- files: signalTextRequestDataSchema.shape.files.optional(),
10949
- messageEnvelope: signalTextRequestDataSchema.shape.messageEnvelope.optional(),
10950
- replyTo: signalTextRequestDataSchema.shape.replyTo.optional(),
10951
- meta: signalTextRequestDataSchema.shape.meta.optional()
10952
- }).superRefine((value, ctx) => {
10953
- const { workHandoffVersion: _workHandoffVersion, ...signalData } = value;
10954
- const parsed = signalTextRequestDataSchema.safeParse(signalData);
10955
- if (parsed.success) return;
10956
- const firstIssue = parsed.error.issues[0];
10957
- ctx.addIssue({
10958
- code: "custom",
10959
- path: firstIssue?.path ?? [],
10960
- message: firstIssue?.message ?? "Invalid normal message payload"
10961
- });
10962
- });
10963
- const postNormalMessageResponseSchema = signalTextEnvelopeSchema;
10964
- //#endregion
10965
- //#region ../../packages/schemas/dist/schemas/http/account-space-index.js
10966
- const ISO_DATE_TIME_SCHEMA$3 = z$1.iso.datetime({ offset: true });
10967
- const trimmedNonEmptyStringSchema$5 = z$1.string().trim().min(1);
10968
- const nullableTrimmedStringSchema$1 = z$1.union([trimmedNonEmptyStringSchema$5, z$1.null()]);
10969
- const nullableNonNegativeIntSchema = z$1.union([z$1.number().int().min(0), z$1.null()]);
10970
- const nullableIsoDateTimeSchema$1 = z$1.union([ISO_DATE_TIME_SCHEMA$3, z$1.null()]);
10971
- const ACCOUNT_SPACE_INDEX_MAX_LIMIT = 500;
10972
- const NON_NEGATIVE_INT_RE$1 = /^\d+$/;
10973
- const accountSpaceIndexScopeSchema = z$1.enum(["account", "profile"]);
10974
- const accountSpaceIndexLimitSchema = z$1.preprocess((value) => {
10975
- if (typeof value === "number") return value;
10976
- if (typeof value !== "string") return value;
10977
- const normalized = value.trim();
10978
- if (!NON_NEGATIVE_INT_RE$1.test(normalized)) return NaN;
10979
- return Number.parseInt(normalized, 10);
10980
- }, z$1.number().int().min(1).max(ACCOUNT_SPACE_INDEX_MAX_LIMIT)).optional();
10981
- const accountSpaceIndexIncludeRecentlyDeletedItemsSchema = z$1.preprocess((value) => {
10982
- if (typeof value === "boolean") return value;
10983
- return value === "true";
10984
- }, z$1.boolean()).optional();
10985
- const accountSpaceIndexIncludePurposesSchema = z$1.preprocess((value) => {
10986
- if (typeof value === "boolean") return value;
10987
- return value === "true";
10988
- }, z$1.boolean()).optional();
10989
- const accountSpaceIndexIncludeDirectMessageProfileIdsSchema = z$1.preprocess((value) => {
10990
- if (typeof value === "boolean") return value;
10991
- return value === "true";
10992
- }, z$1.boolean()).optional();
10993
- z$1.strictObject({
10994
- includeMessagePreviews: z$1.preprocess((value) => value === true || value === "true", z$1.boolean()).optional(),
10995
- includeMemberPreviews: z$1.preprocess((value) => value === true || value === "true", z$1.boolean()).optional(),
10996
- gatewayHost: profileSpaceHistoryGatewayHostSchema,
10997
- includeDirectMessageProfileIds: accountSpaceIndexIncludeDirectMessageProfileIdsSchema,
10998
- includeRecentlyDeletedItems: accountSpaceIndexIncludeRecentlyDeletedItemsSchema,
10999
- includePurposes: accountSpaceIndexIncludePurposesSchema,
11000
- limit: accountSpaceIndexLimitSchema,
11001
- scope: accountSpaceIndexScopeSchema.default("account"),
11002
- selectedProfileId: trimmedNonEmptyStringSchema$5
11003
- });
11004
- const accountSpaceIndexJoinedProfileSchema = z$1.strictObject({
11005
- lastJoinedAt: ISO_DATE_TIME_SCHEMA$3,
11006
- pinnedAt: nullableIsoDateTimeSchema$1,
11007
- profileId: trimmedNonEmptyStringSchema$5,
11008
- profileName: trimmedNonEmptyStringSchema$5
11009
- });
11010
- const accountSpaceIndexItemSchema = z$1.strictObject({
11011
- messagePreview: z$1.strictObject({
11012
- signalId: trimmedNonEmptyStringSchema$5,
11013
- profileId: trimmedNonEmptyStringSchema$5,
11014
- timestamp: z$1.number().int().nonnegative(),
11015
- text: z$1.string().max(240)
11016
- }).nullable().optional(),
11017
- memberPreviews: z$1.array(z$1.strictObject({
11018
- profileId: trimmedNonEmptyStringSchema$5,
11019
- profileName: trimmedNonEmptyStringSchema$5,
11020
- profileKind: z$1.enum(["human", "agent"]),
11021
- agentControllerRef: nullableTrimmedStringSchema$1
11022
- })).max(3).optional(),
11023
- creatorKind: z$1.union([profileSpaceCreatorKindSchema, z$1.null()]),
11024
- creatorOwnerUserId: nullableTrimmedStringSchema$1,
11025
- creatorProfileId: nullableTrimmedStringSchema$1,
11026
- creatorProfileName: nullableTrimmedStringSchema$1,
11027
- gatewayHost: profileSpaceHistoryGatewayHostSchema,
11028
- joinedProfiles: z$1.array(accountSpaceIndexJoinedProfileSchema),
11029
- lastJoinedAt: ISO_DATE_TIME_SCHEMA$3,
11030
- lastSeenTs: nullableNonNegativeIntSchema,
11031
- openProfileId: trimmedNonEmptyStringSchema$5,
11032
- openProfileName: trimmedNonEmptyStringSchema$5,
11033
- organizationId: trimmedNonEmptyStringSchema$5,
11034
- pinnedAt: nullableIsoDateTimeSchema$1,
11035
- pinnedProfileIds: z$1.array(trimmedNonEmptyStringSchema$5),
11036
- spaceCreatedAt: nullableIsoDateTimeSchema$1,
11037
- spaceId: trimmedNonEmptyStringSchema$5,
11038
- spaceName: trimmedNonEmptyStringSchema$5,
11039
- activeAgentCount: nullableNonNegativeIntSchema.optional(),
11040
- activeHumanCount: nullableNonNegativeIntSchema.optional(),
11041
- activeMemberCount: nullableNonNegativeIntSchema.optional(),
11042
- directMessageConvertedAt: nullableIsoDateTimeSchema$1.optional(),
11043
- directMessageProfileIds: z$1.union([z$1.tuple([trimmedNonEmptyStringSchema$5, trimmedNonEmptyStringSchema$5]), z$1.null()]).optional(),
11044
- spacePurpose: nullableTrimmedStringSchema$1.optional(),
11045
- spaceUpdatedAt: nullableIsoDateTimeSchema$1,
11046
- status: trimmedNonEmptyStringSchema$5,
11047
- updatedAt: ISO_DATE_TIME_SCHEMA$3,
11048
- visibility: spaceOrganizationVisibilitySchema
11049
- });
11050
- const accountSpaceIndexDeletedItemSchema = z$1.strictObject({
11051
- deletedAt: ISO_DATE_TIME_SCHEMA$3,
11052
- deletedByProfileName: nullableTrimmedStringSchema$1,
11053
- spaceId: trimmedNonEmptyStringSchema$5,
11054
- spaceName: nullableTrimmedStringSchema$1
11055
- });
11056
- const accountSpaceIndexResponseSchema = z$1.strictObject({
11057
- pinnedItems: z$1.array(accountSpaceIndexItemSchema),
11058
- recentlyDeletedItems: z$1.array(accountSpaceIndexDeletedItemSchema).optional(),
11059
- spaceItems: z$1.array(accountSpaceIndexItemSchema)
11060
- });
11061
- //#endregion
11062
- //#region ../../packages/schemas/dist/schemas/http/center-agent-direct-message-space.js
11063
- const CENTER_AGENT_DIRECT_MESSAGE_SPACE_KIND = "center_agent_direct_message_space";
11064
- const ISO_DATE_TIME_SCHEMA$2 = z$1.iso.datetime({ offset: true });
11065
- const trimmedNonEmptyStringSchema$4 = z$1.string().trim().min(1);
11066
- const createCenterAgentSessionBodySchema = z$1.strictObject({ creationId: z$1.uuid() });
11067
- const centerAgentSessionSelectorSchema = z$1.strictObject({ spaceId: trimmedNonEmptyStringSchema$4.max(128) });
11068
- const centerAgentDirectMessageSpaceProjectionSchema = z$1.strictObject({
11069
- centerAgentProfileId: trimmedNonEmptyStringSchema$4,
11070
- isCenterAgentDirectMessageSpace: z$1.literal(true),
11071
- kind: z$1.literal(CENTER_AGENT_DIRECT_MESSAGE_SPACE_KIND),
11072
- memberProfileId: trimmedNonEmptyStringSchema$4,
11073
- organizationId: trimmedNonEmptyStringSchema$4,
11074
- spaceId: trimmedNonEmptyStringSchema$4
11075
- });
11076
- const getCenterAgentDirectMessageSpaceProjectionResponseSchema = z$1.strictObject({
11077
- generatedAt: ISO_DATE_TIME_SCHEMA$2,
11078
- organizationId: trimmedNonEmptyStringSchema$4,
11079
- projection: z$1.union([centerAgentDirectMessageSpaceProjectionSchema, z$1.null()])
11080
- });
11081
- const listCenterAgentSessionsQuerySchema = z$1.strictObject({
11082
- cursor: z$1.string().trim().min(1).max(1024).optional(),
11083
- limit: z$1.number().int().min(1).max(100).default(20)
11084
- });
11085
- z$1.strictObject({
11086
- v: z$1.literal(1),
11396
+ strictObject({
11397
+ lastActiveAt: ISO_DATE_TIME_SCHEMA$2,
11087
11398
  organizationId: trimmedNonEmptyStringSchema$4,
11088
- pairKey: trimmedNonEmptyStringSchema$4,
11089
- createdAtMs: z$1.number().int().nonnegative(),
11090
- spaceId: centerAgentSessionSelectorSchema.shape.spaceId
11399
+ userId: trimmedNonEmptyStringSchema$4
11091
11400
  });
11092
- const centerAgentSessionListItemSchema = centerAgentDirectMessageSpaceProjectionSchema.extend({
11093
- name: z$1.string().nullable(),
11094
- createdAt: ISO_DATE_TIME_SCHEMA$2.nullable(),
11095
- messagePreview: accountSpaceIndexItemSchema.shape.messagePreview
11401
+ strictObject({
11402
+ cursor: string().trim().min(1).max(1024).optional(),
11403
+ limit: number().int().min(1).max(100).optional()
11404
+ }).extend({
11405
+ context: openMeldRequestContextSchema,
11406
+ speakerMember: centerAgentToolSpeakerSchema.optional()
11096
11407
  });
11097
- const listCenterAgentSessionsResponseSchema = z$1.strictObject({
11408
+ strictObject({
11098
11409
  generatedAt: ISO_DATE_TIME_SCHEMA$2,
11410
+ members: array(organizationDirectoryMemberSchema),
11411
+ nextCursor: string().trim().min(1).max(1024).nullable(),
11099
11412
  organizationId: trimmedNonEmptyStringSchema$4,
11100
- sessions: z$1.array(centerAgentSessionListItemSchema).max(100),
11101
- nextCursor: z$1.string().min(1).max(1024).nullable()
11413
+ totalMembers: number().int().nonnegative()
11102
11414
  });
11103
11415
  //#endregion
11104
- //#region ../../packages/schemas/dist/schemas/http/center-agent-context-manifest.js
11105
- const CENTER_AGENT_CONTEXT_MANIFEST_VERSION = "center_agent_context_manifest.v1";
11106
- const CENTER_AGENT_CONTEXT_LOAD_RECEIPT_VERSION = "center_agent_context_load_receipt.v1";
11107
- const CENTER_AGENT_CONTEXT_TOKEN_ESTIMATE_ALGORITHM = "utf8_bytes_divided_by_3.v1";
11108
- const CENTER_AGENT_CONTEXT_DEFAULT_TOKEN_BUDGET = 8e3;
11109
- const CENTER_AGENT_CONTEXT_MAX_TOKEN_BUDGET = 32768;
11110
- const CENTER_AGENT_CONTEXT_ERROR_CODES = [
11111
- "center_agent.context_conversation_required",
11112
- "center_agent.context_cursor_invalid",
11113
- "center_agent.context_token_budget_too_small",
11114
- "center_agent.context_manifest_not_found",
11115
- "center_agent.context_load_already_recorded",
11116
- "center_agent.context_load_client_mismatch",
11117
- "center_agent.context_load_manifest_empty",
11118
- "center_agent.context_load_selection_duplicate",
11119
- "center_agent.context_load_selection_invalid"
11120
- ];
11121
- const ISO_DATE_TIME_SCHEMA$1 = iso.datetime({ offset: true });
11122
- const trimmedNonEmptyStringSchema$3 = string().trim().min(1);
11123
- const contentHashSchema = string().regex(/^sha256:[0-9a-f]{64}$/u);
11124
- const centerAgentContextManifestIdSchema = string().regex(/^center_agent_context_manifest_[0-9a-f-]{36}$/u);
11125
- const loadReceiptIdSchema = string().regex(/^center_agent_context_load_receipt_[0-9a-f-]{36}$/u);
11126
- const centerAgentContextManifestViewSchema = literal("messages");
11127
- const createCenterAgentContextManifestBodySchema = strictObject({
11128
- spaceId: centerAgentSessionSelectorSchema.shape.spaceId.optional(),
11129
- cursor: string().trim().min(1).max(768).optional(),
11130
- limit: number().int().min(1).max(50).default(20),
11131
- maxContextTokens: number().int().min(256).max(CENTER_AGENT_CONTEXT_MAX_TOKEN_BUDGET).default(CENTER_AGENT_CONTEXT_DEFAULT_TOKEN_BUDGET),
11132
- source: centerAgentInteractionSourceSchema,
11133
- view: centerAgentContextManifestViewSchema.default("messages")
11134
- });
11135
- const centerAgentContextManifestSourceRefSchema = strictObject({
11136
- id: trimmedNonEmptyStringSchema$3,
11137
- type: literal("space_signal"),
11138
- uri: string().regex(/^openmeld:\/\/spaces\/[^/]+\/signals\/[^/]+$/u),
11139
- version: contentHashSchema
11140
- });
11141
- const centerAgentContextManifestEntrySchema = strictObject({
11142
- reactions: spaceMessageReactionsSchema.optional(),
11143
- author: strictObject({
11144
- profileId: trimmedNonEmptyStringSchema$3,
11145
- profileKind: enumFactory([
11146
- "agent",
11147
- "human",
11148
- "system"
11149
- ]),
11150
- profileName: trimmedNonEmptyStringSchema$3
11151
- }),
11152
- carrier: strictObject({
11153
- client: trimmedNonEmptyStringSchema$3.max(80),
11154
- kind: literal("local_agent")
11155
- }).optional(),
11156
- content: strictObject({
11157
- originalCharacterCount: number().int().nonnegative(),
11158
- text: string(),
11159
- truncated: boolean(),
11160
- type: literal("text")
11161
- }),
11162
- materializedContentHash: contentHashSchema,
11163
- occurredAt: ISO_DATE_TIME_SCHEMA$1,
11164
- redactions: array(enumFactory([
11165
- "attachments_not_in_messages_view",
11166
- "local_session_locator_omitted",
11167
- "message_content_budget"
11168
- ])),
11169
- replyToSignalId: trimmedNonEmptyStringSchema$3.optional(),
11170
- sourceRef: centerAgentContextManifestSourceRefSchema
11416
+ //#region ../../packages/schemas/dist/schemas/http/organization-space-directory.js
11417
+ const ISO_DATE_TIME_SCHEMA$1 = z$1.iso.datetime({ offset: true });
11418
+ const trimmedNonEmptyStringSchema$3 = z$1.string().trim().min(1);
11419
+ const nullableIsoDateTimeSchema$1 = z$1.union([ISO_DATE_TIME_SCHEMA$1, z$1.null()]);
11420
+ const organizationSpaceDirectoryItemSchema = z$1.strictObject({
11421
+ spaceId: trimmedNonEmptyStringSchema$3,
11422
+ name: trimmedNonEmptyStringSchema$3,
11423
+ organizationId: trimmedNonEmptyStringSchema$3,
11424
+ visibility: spaceOrganizationVisibilitySchema,
11425
+ joined: z$1.boolean(),
11426
+ lastJoinedAt: nullableIsoDateTimeSchema$1,
11427
+ spaceCreatedAt: nullableIsoDateTimeSchema$1,
11428
+ spaceUpdatedAt: nullableIsoDateTimeSchema$1,
11429
+ updatedAt: ISO_DATE_TIME_SCHEMA$1
11171
11430
  });
11172
- strictObject({
11173
- estimatedTokens: number().int().nonnegative(),
11174
- materializedContentHash: contentHashSchema,
11175
- sourceRef: centerAgentContextManifestSourceRefSchema
11431
+ const organizationSpaceDirectoryResponseSchema = z$1.strictObject({
11432
+ organizationId: trimmedNonEmptyStringSchema$3,
11433
+ generatedAt: ISO_DATE_TIME_SCHEMA$1,
11434
+ spaces: z$1.array(organizationSpaceDirectoryItemSchema)
11176
11435
  });
11177
- const centerAgentContextLoadSelectedEntrySchema = strictObject({
11178
- materializedContentHash: contentHashSchema,
11179
- sourceRefId: trimmedNonEmptyStringSchema$3
11436
+ const organizationSpaceDirectoryWithMemberCountsItemSchema = organizationSpaceDirectoryItemSchema.extend({ activeMemberCount: z$1.number().int().nonnegative().nullable() });
11437
+ const organizationSpaceDirectoryWithMemberCountsResponseSchema = z$1.strictObject({
11438
+ organizationId: trimmedNonEmptyStringSchema$3,
11439
+ generatedAt: ISO_DATE_TIME_SCHEMA$1,
11440
+ spaces: z$1.array(organizationSpaceDirectoryWithMemberCountsItemSchema)
11180
11441
  });
11181
- const createCenterAgentContextLoadReceiptBodySchema = strictObject({
11182
- selection: discriminatedUnion("kind", [strictObject({ kind: literal("all_manifest_entries") }), strictObject({
11183
- entries: array(centerAgentContextLoadSelectedEntrySchema).min(1).max(50),
11184
- kind: literal("selected_entries")
11185
- })]),
11186
- source: centerAgentInteractionSourceSchema
11442
+ //#endregion
11443
+ //#region ../../packages/schemas/dist/schemas/common/error-response.js
11444
+ const commonErrorSchema = z$1.strictObject({
11445
+ code: z$1.string().min(1),
11446
+ message: z$1.string().min(1),
11447
+ requestId: z$1.string().min(1).optional(),
11448
+ details: z$1.unknown().optional()
11187
11449
  });
11188
- const createCenterAgentContextManifestResponseSchema = strictObject({
11189
- authorization: strictObject({
11190
- principal: literal("authenticated_member"),
11191
- scope: literal("requester_private")
11192
- }),
11193
- availableViews: tuple([literal("messages")]),
11194
- budget: strictObject({
11195
- estimateAlgorithm: literal(CENTER_AGENT_CONTEXT_TOKEN_ESTIMATE_ALGORITHM),
11196
- estimatedTokens: number().int().nonnegative(),
11197
- includedMessages: number().int().nonnegative(),
11198
- requestedTokens: number().int().positive(),
11199
- truncated: boolean(),
11200
- truncationReasons: array(enumFactory([
11201
- "context_token_budget",
11202
- "message_content_budget",
11203
- "message_limit",
11204
- "older_messages_available"
11205
- ]))
11206
- }),
11207
- continuation: strictObject({
11208
- cursor: string().trim().min(1).max(768).nullable(),
11209
- hasMore: boolean()
11210
- }),
11211
- entries: array(centerAgentContextManifestEntrySchema),
11212
- generatedAt: ISO_DATE_TIME_SCHEMA$1,
11213
- manifestId: centerAgentContextManifestIdSchema,
11214
- provenance: strictObject({
11215
- auditEntryId: trimmedNonEmptyStringSchema$3,
11216
- contentProjection: literal("user_visible_space_signals")
11217
- }),
11218
- request: strictObject({ source: centerAgentInteractionSourceSchema }),
11219
- schemaVersion: literal(CENTER_AGENT_CONTEXT_MANIFEST_VERSION),
11220
- subject: strictObject({
11221
- centerAgentProfileId: trimmedNonEmptyStringSchema$3,
11222
- conversationId: trimmedNonEmptyStringSchema$3,
11223
- kind: literal("center_agent_conversation"),
11224
- memberProfileId: trimmedNonEmptyStringSchema$3,
11225
- organizationId: trimmedNonEmptyStringSchema$3
11226
- }),
11227
- view: centerAgentContextManifestViewSchema
11450
+ z$1.strictObject({
11451
+ ok: z$1.literal(false),
11452
+ error: commonErrorSchema,
11453
+ requestId: z$1.string().min(1).optional()
11228
11454
  });
11229
- const createCenterAgentContextLoadReceiptResponseSchema = strictObject({
11230
- authorization: strictObject({
11231
- principal: literal("authenticated_member"),
11232
- scope: literal("requester_private")
11233
- }),
11234
- provenance: strictObject({ auditEntryId: trimmedNonEmptyStringSchema$3 }),
11235
- receipt: strictObject({
11236
- client: trimmedNonEmptyStringSchema$3.max(80),
11237
- estimatedTokens: number().int().nonnegative(),
11238
- id: loadReceiptIdSchema,
11239
- includedMessages: number().int().min(1).max(50),
11240
- manifestId: centerAgentContextManifestIdSchema,
11241
- selectedEntries: array(centerAgentContextLoadSelectedEntrySchema).min(1).max(50),
11242
- status: literal("loaded")
11243
- }),
11244
- recordedAt: ISO_DATE_TIME_SCHEMA$1,
11245
- schemaVersion: literal(CENTER_AGENT_CONTEXT_LOAD_RECEIPT_VERSION)
11455
+ //#endregion
11456
+ //#region ../../packages/schemas/dist/schemas/http/space-signals.js
11457
+ const signalTextRequestDataSchema = signalTextSchema.shape.data;
11458
+ z$1.enum([
11459
+ "user_authored",
11460
+ "system_emitted",
11461
+ "legacy_nullable"
11462
+ ]);
11463
+ const postNormalMessageBodySchema = z$1.strictObject({
11464
+ workHandoffVersion: z$1.literal(1).optional(),
11465
+ evidenceRefsVersion: z$1.literal(1).optional(),
11466
+ text: signalTextRequestDataSchema.shape.text,
11467
+ deviceWait: signalTextRequestDataSchema.shape.deviceWait.optional(),
11468
+ contextSelection: signalTextRequestDataSchema.shape.contextSelection.optional(),
11469
+ attachments: signalTextRequestDataSchema.shape.attachments.optional(),
11470
+ files: signalTextRequestDataSchema.shape.files.optional(),
11471
+ messageEnvelope: signalTextRequestDataSchema.shape.messageEnvelope.optional(),
11472
+ replyTo: signalTextRequestDataSchema.shape.replyTo.optional(),
11473
+ meta: signalTextRequestDataSchema.shape.meta.optional()
11474
+ }).superRefine((value, ctx) => {
11475
+ const { workHandoffVersion: _workHandoffVersion, evidenceRefsVersion: _evidenceRefsVersion, ...signalData } = value;
11476
+ const parsed = signalTextRequestDataSchema.safeParse(signalData);
11477
+ if (parsed.success) return;
11478
+ const firstIssue = parsed.error.issues[0];
11479
+ ctx.addIssue({
11480
+ code: "custom",
11481
+ path: firstIssue?.path ?? [],
11482
+ message: firstIssue?.message ?? "Invalid normal message payload"
11483
+ });
11246
11484
  });
11485
+ const postNormalMessageResponseSchema = signalTextEnvelopeSchema;
11247
11486
  //#endregion
11248
11487
  //#region ../../packages/schemas/dist/schemas/http/lark-platform-registration-domains.js
11249
11488
  var lark_platform_registration_domains_default = {
@@ -13030,6 +13269,21 @@ const copyFileRootToSpaceBodySchema = strictObject({
13030
13269
  ...copyRevisionFields,
13031
13270
  sourceLocation: enumFactory(["team", "my"])
13032
13271
  });
13272
+ /** Explicit human selection. Offsets count Unicode code points, end exclusive. */
13273
+ const copyOwnMessageExcerptBodySchema = strictObject({
13274
+ source: strictObject({
13275
+ spaceId: string().regex(/^[a-f0-9]{64}$/u),
13276
+ sourceSignalId: string().min(1).max(256),
13277
+ version: string().regex(/^sha256:[a-f0-9]{64}$/u),
13278
+ authorProfileId: string().min(1).max(256),
13279
+ start: number().int().min(0).max(1e6),
13280
+ end: number().int().min(1).max(1e6)
13281
+ }),
13282
+ audienceProfileIds: array(string().min(1).max(256)).min(1).max(100),
13283
+ name: spaceFileNameSchema,
13284
+ parentId: spaceFileEntryIdSchema.nullable(),
13285
+ clientMutationId: spaceFileClientMutationIdSchema
13286
+ });
13033
13287
  const copyFileRootRevisionResponseSchema = strictObject({
13034
13288
  file: fileRootFileDescriptorSchema,
13035
13289
  source: strictObject({
@@ -13531,6 +13785,9 @@ const selection = {
13531
13785
  account: enumFactory(["personal", "shared"])
13532
13786
  };
13533
13787
  const pluginActionRequestSchema = strictObject({
13788
+ executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema.optional(),
13789
+ includeRecoveryReceipt: literal(true).optional(),
13790
+ includeRequestAuthorization: literal(true).optional(),
13534
13791
  dispatchId: string().trim().min(1).max(256).optional(),
13535
13792
  action: discriminatedUnion("operation", [
13536
13793
  strictObject({ operation: literal("list") }),
@@ -13553,7 +13810,10 @@ const pluginActionRequestSchema = strictObject({
13553
13810
  actionId: string().trim().min(1).max(160),
13554
13811
  input: record(string(), unknown()),
13555
13812
  operationId: string().trim().min(1).max(256),
13556
- confirmationToken: string().uuid().optional()
13813
+ confirmationToken: string().uuid().optional(),
13814
+ authorizationRequestId: string().uuid().optional(),
13815
+ replay: boolean().optional(),
13816
+ verificationOf: connectorActionVerificationReferenceSchema.optional()
13557
13817
  })
13558
13818
  ])
13559
13819
  });
@@ -13563,6 +13823,10 @@ strictObject({
13563
13823
  request: pluginActionRequestSchema
13564
13824
  });
13565
13825
  const pluginActionResponseSchema = discriminatedUnion("kind", [
13826
+ strictObject({
13827
+ kind: literal("authorization_required"),
13828
+ request: pluginActionRequestViewSchema
13829
+ }),
13566
13830
  strictObject({
13567
13831
  kind: literal("connection_guidance"),
13568
13832
  service: connectorServiceSchema,
@@ -13596,11 +13860,18 @@ const pluginActionResponseSchema = discriminatedUnion("kind", [
13596
13860
  }),
13597
13861
  strictObject({
13598
13862
  kind: literal("execution"),
13863
+ verificationOf: connectorActionVerificationEvidenceSchema.optional(),
13599
13864
  connection: centerAgentConnectorActionExecutionConnectionSchema,
13600
13865
  actionId: string(),
13601
13866
  operationId: string(),
13602
13867
  status: centerAgentConnectorActionOperationStatusSchema,
13603
13868
  replayed: boolean(),
13869
+ replay: connectorActionReplayPermissionSchema.optional(),
13870
+ executionConfirmation: enumFactory([
13871
+ "executed",
13872
+ "not_executed",
13873
+ "unknown"
13874
+ ]).optional(),
13604
13875
  data: unknown().optional(),
13605
13876
  error: string().optional(),
13606
13877
  providerExecutionId: string().nullable()
@@ -14507,6 +14778,8 @@ const wakeProgressItemSchema = z$1.strictObject({
14507
14778
  threadId: z$1.string().trim().min(1).nullable()
14508
14779
  }).nullable().optional(),
14509
14780
  dispatchId: z$1.string().trim().min(1).nullable(),
14781
+ replyThreadRootSignalId: z$1.string().trim().min(1).nullable().optional(),
14782
+ replyPlacementRevision: z$1.number().int().nonnegative().optional(),
14510
14783
  runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.nullable().optional(),
14511
14784
  targetProfileId: z$1.string().trim().min(1),
14512
14785
  targetLabel: z$1.string().trim().min(1),
@@ -14523,6 +14796,7 @@ const wakeProgressItemSchema = z$1.strictObject({
14523
14796
  });
14524
14797
  z$1.strictObject({
14525
14798
  spaceId: nonEmptyTrimmedStringFromUnknown,
14799
+ includeReplyPlacement: optionalBooleanQuerySchema,
14526
14800
  clientMessageId: clientMessageIdSchema$1,
14527
14801
  includePreviewText: optionalBooleanQuerySchema,
14528
14802
  includeTiming: optionalBooleanQuerySchema,
@@ -14542,6 +14816,7 @@ const getSpaceWakeProgressResponseSchema = z$1.strictObject({
14542
14816
  });
14543
14817
  z$1.strictObject({
14544
14818
  spaceId: nonEmptyTrimmedStringFromUnknown,
14819
+ includeReplyPlacement: optionalBooleanQuerySchema,
14545
14820
  includePageInfo: optionalBooleanQuerySchema,
14546
14821
  includePreviewText: optionalBooleanQuerySchema,
14547
14822
  includeTiming: optionalBooleanQuerySchema,
@@ -14667,6 +14942,134 @@ const ORGANIZATION_DIRECTORY_AGENT_PROFILE_WORK_RECOVERY_VERSION_QUERY_PARAMETER
14667
14942
  const MAX_TEXT_LENGTH = 1e5;
14668
14943
  const DAEMON_STREAM_KEEPALIVE_PING = "ping";
14669
14944
  const DAEMON_STREAM_KEEPALIVE_PONG = "pong";
14945
+ const TEXT_ENCODER = new TextEncoder();
14946
+ async function materializeEntry(input) {
14947
+ const originalText = input.signal.data.text;
14948
+ const redactions = [];
14949
+ if ((input.signal.data.attachments?.length ?? 0) > 0) redactions.push("attachments_not_in_messages_view");
14950
+ const interactionSource = input.signal.data.meta?.centerAgentInteractionSource;
14951
+ if (interactionSource?.sessionId) redactions.push("local_session_locator_omitted");
14952
+ const version = await sha256(JSON.stringify({
14953
+ data: {
14954
+ replyToSignalId: input.signal.data.messageEnvelope?.replyToSignalId ?? input.signal.data.replyTo?.signalId ?? null,
14955
+ text: originalText,
14956
+ ...input.signal.reactions ? { reactions: input.signal.reactions } : {}
14957
+ },
14958
+ id: input.signal.id,
14959
+ profile: {
14960
+ kind: input.signal.profile.kind,
14961
+ profileId: input.signal.profile.profileId,
14962
+ profileName: input.signal.profile.profileName ?? null
14963
+ },
14964
+ ts: input.signal.ts
14965
+ }));
14966
+ return {
14967
+ author: {
14968
+ profileId: input.signal.profile.profileId,
14969
+ profileKind: input.signal.profile.kind,
14970
+ profileName: input.signal.profile.profileName ?? input.signal.profile.profileId
14971
+ },
14972
+ ...interactionSource ? { carrier: {
14973
+ client: interactionSource.client,
14974
+ kind: interactionSource.kind
14975
+ } } : {},
14976
+ content: {
14977
+ originalCharacterCount: Array.from(originalText).length,
14978
+ text: originalText,
14979
+ truncated: false,
14980
+ type: "text"
14981
+ },
14982
+ ...input.signal.reactions ? { reactions: input.signal.reactions } : {},
14983
+ materializedContentHash: await sha256(input.signal.reactions ? JSON.stringify({
14984
+ text: originalText,
14985
+ reactions: input.signal.reactions
14986
+ }) : originalText),
14987
+ occurredAt: new Date(input.signal.ts).toISOString(),
14988
+ redactions,
14989
+ ...input.signal.data.messageEnvelope?.replyToSignalId ?? input.signal.data.replyTo?.signalId ? { replyToSignalId: input.signal.data.messageEnvelope?.replyToSignalId ?? input.signal.data.replyTo?.signalId } : {},
14990
+ sourceRef: {
14991
+ id: input.signal.id,
14992
+ type: "space_signal",
14993
+ uri: `openmeld://spaces/${encodeURIComponent(input.spaceId)}/signals/${encodeURIComponent(input.signal.id)}`,
14994
+ version
14995
+ }
14996
+ };
14997
+ }
14998
+ /** One exact message page; access must be checked by the source owner per call. */
14999
+ async function buildSpaceMessageEvidence(input) {
15000
+ if (input.signal.data.meta?.recalledAt !== void 0) throw new Error("space.evidence_unavailable: This message was recalled.");
15001
+ const entry = await materializeEntry(input);
15002
+ if (input.version !== void 0 && input.version !== entry.sourceRef.version) throw new Error("space.evidence_version_unavailable: The requested message version is no longer available.");
15003
+ const offset = input.offset ?? 0;
15004
+ const characters = Array.from(entry.content.text);
15005
+ if (offset > characters.length) throw new Error("space.evidence_offset_invalid: The offset is outside this message.");
15006
+ const end = Math.min(characters.length, offset + 4e3);
15007
+ return {
15008
+ message: offset === 0 && end === characters.length ? entry : await buildTruncatedEntry(entry, characters.slice(offset, end).join("")),
15009
+ offset,
15010
+ nextOffset: end < characters.length ? end : null
15011
+ };
15012
+ }
15013
+ /** Stable thread selection over current source records. Any mutation rejects
15014
+ * the old fingerprint; this does not manufacture unavailable historical text. */
15015
+ async function buildSpaceThreadEvidence(input) {
15016
+ if (input.signals.length > 1e4) throw new Error("space.evidence_thread_too_large");
15017
+ if (input.signals.reduce((bytes, signal) => bytes + TEXT_ENCODER.encode(JSON.stringify(signal)).byteLength, 0) > 8 * 1024 * 1024) throw new Error("space.evidence_thread_too_large");
15018
+ if (input.signals.some((signal) => signal.spaceId !== input.thread.spaceId)) throw new Error("space.evidence_source_mismatch");
15019
+ const visible = input.signals.filter((signal) => signal.type === "signal.text" && signal.data.meta?.recalledAt === void 0);
15020
+ const entries = await Promise.all(visible.map((signal) => materializeEntry({
15021
+ signal,
15022
+ spaceId: input.thread.spaceId
15023
+ })));
15024
+ const version = await sha256(JSON.stringify({
15025
+ thread: input.thread,
15026
+ sources: entries.map((entry) => entry.sourceRef)
15027
+ }));
15028
+ if (input.version !== void 0 && input.version !== version) throw new Error("space.evidence_version_unavailable: The requested thread version is no longer available.");
15029
+ const offset = input.offset ?? 0;
15030
+ if (offset > entries.length) throw new Error("space.evidence_offset_invalid");
15031
+ const messages = [];
15032
+ let remaining = 4e3;
15033
+ for (const entry of entries.slice(offset, offset + 20)) {
15034
+ if (remaining === 0) break;
15035
+ const chars = Array.from(entry.content.text);
15036
+ const selected = chars.slice(0, remaining).join("");
15037
+ messages.push(chars.length > remaining ? await buildTruncatedEntry(entry, selected) : entry);
15038
+ remaining -= Math.min(chars.length, remaining);
15039
+ }
15040
+ const end = offset + messages.length;
15041
+ return {
15042
+ sourceRef: {
15043
+ kind: "thread",
15044
+ spaceId: input.thread.spaceId,
15045
+ threadId: input.thread.threadId,
15046
+ version
15047
+ },
15048
+ messages,
15049
+ offset,
15050
+ nextOffset: end < entries.length ? end : null,
15051
+ truncated: end < entries.length || messages.some((entry) => entry.content.truncated)
15052
+ };
15053
+ }
15054
+ async function buildTruncatedEntry(entry, text) {
15055
+ return {
15056
+ ...entry,
15057
+ content: {
15058
+ ...entry.content,
15059
+ text,
15060
+ truncated: true
15061
+ },
15062
+ materializedContentHash: await sha256(entry.reactions ? JSON.stringify({
15063
+ text,
15064
+ reactions: entry.reactions
15065
+ }) : text),
15066
+ redactions: [...entry.redactions, ...entry.redactions.includes("message_content_budget") ? [] : ["message_content_budget"]]
15067
+ };
15068
+ }
15069
+ async function sha256(value) {
15070
+ const digest = await crypto.subtle.digest("SHA-256", TEXT_ENCODER.encode(value));
15071
+ return `sha256:${[...new Uint8Array(digest)].map((byte) => byte.toString(16).padStart(2, "0")).join("")}`;
15072
+ }
14670
15073
  function parseEnvelope(value) {
14671
15074
  const parsed = signalEnvelopeSchema.safeParse(value);
14672
15075
  return parsed.success ? parsed.data : null;
@@ -15503,19 +15906,16 @@ const createCenterAgentApi = (client) => ({
15503
15906
  invalidMessage: "Invalid Center Agent model response."
15504
15907
  }),
15505
15908
  updateModel: async (input) => {
15506
- const request = validateModelInput(input);
15909
+ const body = requireValidModelBody(input);
15507
15910
  return await client.requestJson({
15508
15911
  url: buildCenterAgentModelPath(),
15509
15912
  operation: "center_agent.model.update",
15510
15913
  method: "PUT",
15511
- requestContext: request.requestContext,
15512
- signal: request.signal,
15513
- timeoutMs: request.timeoutMs,
15914
+ requestContext: input.requestContext,
15915
+ signal: input.signal,
15916
+ timeoutMs: input.timeoutMs,
15514
15917
  headers: { "content-type": "application/json" },
15515
- body: JSON.stringify({
15516
- expectedConfigurationRevision: request.expectedConfigurationRevision,
15517
- preference: request.preference
15518
- }),
15918
+ body: JSON.stringify(body),
15519
15919
  schema: updateCenterAgentModelResponseSchema,
15520
15920
  invalidMessage: "Invalid Center Agent model update response."
15521
15921
  });
@@ -15793,14 +16193,15 @@ function validateOperatingStateInput(input) {
15793
16193
  validateRequestInput$1(input);
15794
16194
  return input;
15795
16195
  }
15796
- function validateModelInput(input) {
16196
+ function requireValidModelBody(input) {
15797
16197
  const parsed = updateCenterAgentModelBodySchema.safeParse({
15798
16198
  expectedConfigurationRevision: input.expectedConfigurationRevision,
15799
- preference: input.preference
16199
+ preference: input.preference,
16200
+ reasoningLevel: input.reasoningLevel
15800
16201
  });
15801
16202
  if (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? "Invalid Center Agent model.");
15802
16203
  validateRequestInput$1(input);
15803
- return input;
16204
+ return parsed.data;
15804
16205
  }
15805
16206
  function validateAuditJournalInput(input) {
15806
16207
  const parsed = listCenterAgentAuditJournalQuerySchema.safeParse({
@@ -16587,6 +16988,17 @@ function contentPath(location, fileId) {
16587
16988
  }
16588
16989
  function createFileRootApi(client) {
16589
16990
  return {
16991
+ async copyOwnMessageExcerpt(input) {
16992
+ return (await client.requestJson({
16993
+ url: `/v1/spaces/${encodeURIComponent(input.spaceId)}/files/excerpts`,
16994
+ operation: "files.copy_own_message_excerpt",
16995
+ method: "POST",
16996
+ headers: { "content-type": "application/json" },
16997
+ body: JSON.stringify(copyOwnMessageExcerptBodySchema.parse(input.body)),
16998
+ schema: getSpaceFileResponseSchema,
16999
+ invalidMessage: "Invalid excerpt copy response."
17000
+ })).file;
17001
+ },
16590
17002
  async copyToSpace(input) {
16591
17003
  return (await client.requestJson({
16592
17004
  url: `/v1/spaces/${encodeURIComponent(input.spaceId)}/files/copies`,
@@ -17138,7 +17550,7 @@ const createInboxApi = (client) => ({
17138
17550
  function inboxSourceTargetVersionHeaders() {
17139
17551
  return {
17140
17552
  [OPENMELD_HEADER_INBOX_ITEM_KIND_VERSION]: "1",
17141
- [OPENMELD_HEADER_INBOX_SOURCE_TARGET_VERSION]: "9"
17553
+ [OPENMELD_HEADER_INBOX_SOURCE_TARGET_VERSION]: "10"
17142
17554
  };
17143
17555
  }
17144
17556
  function requestOptions$7(input) {
@@ -18440,20 +18852,32 @@ function requestOptions$2(input) {
18440
18852
  };
18441
18853
  }
18442
18854
  function createPluginsApi(client) {
18443
- return { action: async (input) => {
18444
- const request = pluginActionRequestSchema.parse(input.request);
18445
- return await client.requestJson({
18855
+ return {
18856
+ requestAuthorization: (input) => client.requestJson({
18446
18857
  method: "POST",
18447
- operation: "plugins.action",
18448
- timeoutMs: input.request.action.operation === "execute" ? 12e4 : 3e4,
18858
+ operation: "plugins.requestAuthorization",
18449
18859
  requestContext: input.requestContext,
18450
- url: `/v1/organizations/current/plugins/actions?expectedOrganizationId=${encodeURIComponent(input.organizationId)}`,
18451
- body: JSON.stringify(request),
18860
+ url: `/v1/organizations/current/plugins/action-requests?expectedOrganizationId=${encodeURIComponent(input.organizationId)}`,
18861
+ body: JSON.stringify(pluginActionRequestCommandSchema.parse(input.command)),
18452
18862
  headers: { "content-type": "application/json" },
18453
- schema: pluginActionResponseSchema,
18454
- invalidMessage: "Invalid plugin action response."
18455
- });
18456
- } };
18863
+ schema: pluginActionRequestViewSchema,
18864
+ invalidMessage: "Invalid Plugin request response."
18865
+ }),
18866
+ action: async (input) => {
18867
+ const request = pluginActionRequestSchema.parse(input.request);
18868
+ return await client.requestJson({
18869
+ method: "POST",
18870
+ operation: "plugins.action",
18871
+ timeoutMs: input.request.action.operation === "execute" ? 12e4 : 3e4,
18872
+ requestContext: input.requestContext,
18873
+ url: `/v1/organizations/current/plugins/actions?expectedOrganizationId=${encodeURIComponent(input.organizationId)}`,
18874
+ body: JSON.stringify(request),
18875
+ headers: { "content-type": "application/json" },
18876
+ schema: pluginActionResponseSchema,
18877
+ invalidMessage: "Invalid plugin action response."
18878
+ });
18879
+ }
18880
+ };
18457
18881
  }
18458
18882
  function buildPrepareReadinessRoute(deviceId) {
18459
18883
  return `/v1/devices/${encodeURIComponent(deviceId)}/prepare-readiness`;
@@ -20195,6 +20619,7 @@ function buildPostNormalMessageBody(input) {
20195
20619
  return {
20196
20620
  text: input.text,
20197
20621
  ...input.meta?.workHandoff ? { workHandoffVersion: 1 } : {},
20622
+ ...input.meta?.evidenceRefs ? { evidenceRefsVersion: 1 } : {},
20198
20623
  ...input.deviceWait ? { deviceWait: input.deviceWait } : {},
20199
20624
  ...input.contextSelection ? { contextSelection: input.contextSelection } : {},
20200
20625
  ...input.attachments ? { attachments: input.attachments } : {},
@@ -20421,6 +20846,7 @@ async function getSpaceWakeProgress(client, input) {
20421
20846
  const searchParams = new URLSearchParams();
20422
20847
  searchParams.set("clientMessageId", input.clientMessageId);
20423
20848
  if (input.includePreviewText === true) searchParams.set("includePreviewText", "true");
20849
+ if (input.includeReplyPlacement === true) searchParams.set("includeReplyPlacement", "true");
20424
20850
  if (input.includeSourceContext === true) searchParams.set("includeSourceContext", "true");
20425
20851
  if (input.includeTiming === true) searchParams.set("includeTiming", "true");
20426
20852
  if (input.includeWaitReason === true) searchParams.set("includeWaitReason", "true");
@@ -20444,6 +20870,7 @@ async function getActiveSpaceWakeProgress(client, input) {
20444
20870
  const searchParams = new URLSearchParams();
20445
20871
  if (input.includePageInfo === true) searchParams.set("includePageInfo", "true");
20446
20872
  if (input.includePreviewText === true) searchParams.set("includePreviewText", "true");
20873
+ if (input.includeReplyPlacement === true) searchParams.set("includeReplyPlacement", "true");
20447
20874
  if (input.includeSourceContext === true) searchParams.set("includeSourceContext", "true");
20448
20875
  if (input.includeTiming === true) searchParams.set("includeTiming", "true");
20449
20876
  if (input.includeWaitReason === true) searchParams.set("includeWaitReason", "true");
@@ -20761,6 +21188,6 @@ function shouldWrapNetworkRequestError(error) {
20761
21188
  return message.includes("fetch failed") || message.includes("failed to fetch") || message.includes("network request failed");
20762
21189
  }
20763
21190
  //#endregion
20764
- export { buildLocalFolderPickerPath as $, toCompatibleSpaceAddressingRequestWireValue as $i, parseServerErrorFrame as $n, removeSpaceMembersResponseSchema as $r, createLocalRuntimeExpectedRoutesApi as $t, buildCurrentOrganizationDirectoryPath as A, agentActivityEventSchema as Ai, postSpaceWorkHandoff as An, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as Ar, buildSpaceAttachmentDownloadPath as At, buildCurrentOrganizationMessageChannelsPath as B, localProjectControlDiscoverProjectsResponseSchema as Bi, setSpaceAccessMode as Bn, ORGANIZATION_SKILL_BUNDLE_MAX_BYTES as Br, createAgentProfileWorkRecoveryApi as Bt, buildCenterAgentSessionPath as C, listCenterAgentRoutinesResponseSchema as Ci, isInboxItemVisibleConversation as Cn, mutateSpaceTaskBodySchema as Cr, buildProjectsPath as Ct, buildCurrentAgentProfileSessionRoute as D, modelCatalogSchema as Di, listSpaceTasks as Dn, organizationDirectoryResponseSchema as Dr, buildRoutineRunsPath as Dt, buildComputerFileAccessUpdatePath as E, updateCenterAgentRoutineResponseSchema as Ei, listSpaceFiles as En, organizationSpaceDirectoryWithMemberCountsResponseSchema as Er, buildRoutineResumePath as Et, buildCurrentOrganizationMessageChannelPath as F, serviceConnectionEvidenceEventSchema as Fi, readOrUpdateSpaceFilePins as Fn, spaceDispatchTraceAttemptStatusSchema as Fr, buildSpaceInboxUnreadTargetsPath as Ft, buildFeedbackIssueSubmissionPath as G, updateProjectResponseSchema as Gi, updateSpaceMeta as Gn, organizationSkillFileSchema as Gr, createCurrentDeviceApi as Gt, buildCurrentOrganizationSpacesWithMemberCountsPath as H, createProjectResponseSchema as Hi, trashSpaceFileEntry as Hn, getOrganizationSkillResponseSchema as Hr, createComputerAuthorizationGrant as Ht, buildCurrentOrganizationMessageChannelRegistrationPath as I, serviceConnectionEvidenceJournalSchema as Ii, readOrUpdateSpaceInputQueue as In, spaceDispatchTraceDispatchStatusSchema as Ir, createAccountSpaceIndexApi as It, buildInboxItemReadPath as J, OPENMELD_RUNTIME_CAPABILITIES_HEADER as Ji, DAEMON_STREAM_KEEPALIVE_PING as Jn, organizationSkillRuntimeReleaseSelectionSchema as Jr, createFetchTransport as Jt, buildInboxItemDismissPath as K, COMPUTER_FILE_ACCESS_OWNER_CANCELLED_REASON_CODE as Ki, uploadSpaceAttachment as Kn, organizationSkillGitHubRepositoryPreviewSchema as Kr, createDirectMessageApi as Kt, buildCurrentOrganizationMessageChannelRegistrationPollPath as L, signalTextEnvelopeSchema as Li, readOrUpdateSpaceMessagePins as Ln, spaceDispatchTraceResponseSchema as Lr, createAgentActivityApi as Lt, buildCurrentOrganizationInformationProtectionPath as M, agentActivitySessionStatusSchema as Mi, readAccountOrganizationContext as Mn, projectSpaceDispatchTraceFinalVisibleOutcome as Mr, buildSpaceFileContentPath as Mt, buildCurrentOrganizationLogoPath as N, agentActivitySnapshotQuerySchema as Ni, readAccountSession as Nn, resolveRuntimeCoordinatorHeadStatusRootCause as Nr, buildSpaceInboxReadThroughPath as Nt, buildCurrentOrganizationCenterAgentMemoryWipeSelfPath as O, AGENT_ACTIVITY_EVENT_MAX_BYTES as Oi, mutateSpaceTask as On, submitFeedbackIssueRequestSchema as Or, buildRoutineTargetSpacesPath as Ot, buildCurrentOrganizationMemberOpenMeldServiceStatusesPath as P, agentActivitySnapshotResponseSchema as Pi, readCliRelease as Pn, resolveSpaceDispatchTraceRootCause as Pr, buildSpaceInboxSummaryPath as Pt, buildInboxSummaryPath as Q, toLegacySpaceImageGeometryWireValue as Qi, parseIncoming as Qn, postSpaceMembersResponseSchema as Qr, createLocalProjectControlApi as Qt, buildCurrentOrganizationMessageChannelRegistrationsPath as R, localProjectControlConnectionSchema as Ri, resolveAccountSpaceIndexGatewayHost as Rn, observabilityWakeTraceSelectorSchema as Rr, createAgentProfileBindingApi as Rt, buildCenterAgentProfilePath as S, listCenterAgentRoutineRunsResponseSchema as Si, isInboxItemInOrganizationScope as Sn, createSpaceTaskBodySchema as Sr, buildProjectPath as St, buildComputerFileAccessReadPath as T, resumeCenterAgentRoutineResponseSchema as Ti, listSpaceFileRevisions as Tn, spaceTaskMutationReceiptSchema as Tr, buildRoutinePausePath as Tt, buildDirectMessageConversionPath as U, listProjectsResponseSchema as Ui, updateSpaceFileContent as Un, listOrganizationSkillsResponseSchema as Ur, createComputerFileAccessApi as Ut, buildCurrentOrganizationSpacesPath as V, archiveProjectResponseSchema as Vi, toStructuredApiClientFailure as Vn, ORGANIZATION_SKILL_FILE_MAX_BYTES as Vr, createCenterAgentApi as Vt, buildDirectMessageSpacePath as W, projectSchema as Wi, updateSpaceFileEntry as Wn, organizationSkillBundleSchema as Wr, createConfigApi as Wt, buildInboxPath as X, computerFileAccessPolicyInputSchema as Xi, MAX_TEXT_LENGTH as Xn, stringifyOrganizationSkillBundleCanonicalJson as Xr, createInboxApi as Xt, buildInboxMarkAllReadPath as Y, computerFileAccessDaemonFrameSchema as Yi, DAEMON_STREAM_KEEPALIVE_PONG as Yn, organizationSkillSummarySchema as Yr, createFileRootApi as Yt, buildInboxPreferencesPath as Z, computerFileAccessPolicySchema as Zi, parseEnvelope as Zn, leaveSpaceResponseSchema as Zr, createLocalFolderPickerApi as Zt, buildCenterAgentDirectMessageSpacePath as _, resolveInitialSpaceAccessMode as _i, downloadSpaceFileContent as _n, betterAuthSessionSnapshotResponseSchema as _r, buildOrganizationUsageOverviewPath as _t, buildAgentActivitySessionsPath as a, spaceMemberKindSchema as ai, createPluginsApi as an, buildOpenMeldRequestContextHeaders as ar, buildOrganizationDocumentsPath as at, buildCenterAgentMemberResearchPath as b, createCenterAgentRoutineResponseSchema as bi, getSpaceTask as bn, createAgentProfileCreationRequestBodySchema as br, buildProfileSpaceHistoryStatusPath as bt, buildAgentProfileCreationApprovalPreferencePath as c, projectOwnerComputerLocalRuntimes as ci, createProfilesApi as cn, spaceEntryTargetSchema as cr, buildOrganizationSkillFilesImportPath as ct, buildAgentProfileCreationRequestDecisionPath as d, agentActivityInventorySessionOriginSchema as di, createRoutinesApi as dn, BETTER_AUTH_DEVICE_AUTHORIZATION_GRANT_TYPE as dr, buildOrganizationSkillGitHubPreviewPath as dt, resolvedSpaceMemberProfileSchema as ei, createOpenMeldApiClient as en, resolveCustomMentionAliasOverride as er, buildLocalProjectControlPath as et, buildAgentProfileCreationRequestRetryPath as f, agentActivityInventorySessionStatusSchema as fi, createRuntimeReportingApi as fn, betterAuthDeviceAuthorizationCodeRequestSchema as fr, buildOrganizationSkillMaintainersPath as ft, buildCenterAgentDesignationPath as g, observedLocalAgentSessionSchema as gi, createSpaceTask as gn, betterAuthDeviceAuthorizationTokenResponseSchema as gr, buildOrganizationSkillsPath as gt, buildCenterAgentAuditJournalPath as h, localAgentSessionProviderSchema as hi, createSpaceFolder as hn, betterAuthDeviceAuthorizationTokenRequestSchema as hr, buildOrganizationSkillResourcePath as ht, buildAccountSpaceIndexPath as i, spaceMemberDirectorySchema as ii, createOrganizationUsageApi as in, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as ir, buildOrganizationDocumentPath as it, buildCurrentOrganizationFeedbackReportingPolicyPath as j, agentActivityProviderSchema as ji, publicSpaceUrls as jn, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as jr, buildSpaceBootstrapReadPath as jt, buildCurrentOrganizationComputersPath as k, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as ki, normalizeApiBaseUrl as kn, submitFeedbackIssueResponseSchema as kr, buildRoutinesPath as kt, buildAgentProfileCreationDefaultsPath as l, summarizeComputerFileAccessPolicy as li, createProjectsApi as ln, openDirectMessageSpaceBodySchema as lr, buildOrganizationSkillFilesPreviewPath as lt, buildAgentProfileWorkRecoveryRoute as m, agentActivitySessionInventoryResponseSchema as mi, createSpaceApi as mn, betterAuthDeviceAuthorizationErrorResponseSchema as mr, buildOrganizationSkillRepositoryPreviewPath as mt, OpenMeldApiClientInvalidResponseError as n, spaceMemberDirectoryAllowedRelationsSchema as ni, createOrganizationDocumentsApi as nn, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as nr, buildOrganizationDocumentApproveDraftPath as nt, buildAgentActivitySnapshotPath as o, submitAgentControllerTaskLifecycleEventItemSchema as oi, createPrepareReadinessApi as on, toErrorMessage$2 as or, buildOrganizationSkillCatalogPath as ot, buildAgentProfileCreationRequestsPath as p, agentActivitySessionInventoryQuerySchema as pi, createServiceConnectionEvidenceApi as pn, betterAuthDeviceAuthorizationCodeResponseSchema as pr, buildOrganizationSkillPath as pt, buildInboxItemPath as q, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as qi, uploadSpaceFile as qn, organizationSkillReleaseSummarySchema as qr, createFeedbackApi as qt, buildAccountSpaceActiveWakeSummaryPath as r, spaceMemberDirectoryEntrySchema as ri, createOrganizationSkillsApi as rn, OPENMELD_HEADER_REQUEST_ID as rr, buildOrganizationDocumentDiscardDraftPath as rt, buildAgentActivityStatsPath as s, ownerComputerDiagnosticsSchema as si, createProfileSpaceHistoryApi as sn, getSpaceUpdatesResponseSchema as sr, buildOrganizationSkillEnabledPath as st, OpenMeldApiClientHttpError as t, spaceMemberAgentWakeAvailabilitySchema as ti, createOrganizationApi as tn, OPENMELD_HEADER_PROFILE_ID as tr, buildModelCatalogPath as tt, buildAgentProfileCreationRequestCancelPath as u, organizationComputersResponseSchema as ui, createReasoningStreamApi as un, pluginActionRequestSchema as ur, buildOrganizationSkillGitHubImportPath as ut, buildCenterAgentInboxReadThroughPath as v, spaceCreatorSchema as vi, getModelCatalog as vn, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as vr, buildProfileRoute as vt, buildCenterAgentSessionsPath as w, pauseCenterAgentRoutineResponseSchema as wi, isInboxNotificationEligible as wn, spaceTaskIdSchema as wr, buildRoutinePath as wt, buildCenterAgentOperatingStatePath as x, deleteCenterAgentRoutineResponseSchema as xi, inboxMessageNotificationSpaceId as xn, gatewayErrorEnvelopeSchema as xr, buildProfileSpaceHistoryUpsertPath as xt, buildCenterAgentInboxSummaryPath as y, spaceMetaSchema as yi, getSpaceFile as yn, agentProfileCreationConfigurationSchema as yr, buildProfileSpaceHistoryListPath as yt, buildCurrentOrganizationMessageChannelSetupRequestsPath as z, localProjectControlDaemonFrameSchema as zi, resolveProfileSpaceHistoryGatewayHost as zn, projectObservabilityWakeCorrelation as zr, createAgentProfileExecutionModeApi as zt };
21191
+ export { buildLocalFolderPickerPath as $, computerFileAccessPolicyInputSchema as $i, parseEnvelope as $n, stringifyOrganizationSkillBundleCanonicalJson as $r, createLocalRuntimeExpectedRoutesApi as $t, buildCurrentOrganizationDirectoryPath as A, modelCatalogSchema as Ai, postSpaceWorkHandoff as An, submitFeedbackIssueRequestSchema as Ar, buildSpaceAttachmentDownloadPath as At, buildCurrentOrganizationMessageChannelsPath as B, signalTextEnvelopeSchema as Bi, setSpaceAccessMode as Bn, spaceDispatchTraceResponseSchema as Br, createAgentProfileWorkRecoveryApi as Bt, buildCenterAgentSessionPath as C, createCenterAgentRoutineResponseSchema as Ci, isInboxItemVisibleConversation as Cn, gatewayErrorEnvelopeSchema as Cr, buildProjectsPath as Ct, buildCurrentAgentProfileSessionRoute as D, pauseCenterAgentRoutineResponseSchema as Di, listSpaceTasks as Dn, spaceTaskMutationReceiptSchema as Dr, buildRoutineRunsPath as Dt, buildComputerFileAccessUpdatePath as E, listCenterAgentRoutinesResponseSchema as Ei, listSpaceFiles as En, spaceTaskIdSchema as Er, buildRoutineResumePath as Et, buildCurrentOrganizationMessageChannelPath as F, agentActivitySessionStatusSchema as Fi, readOrUpdateSpaceFilePins as Fn, projectSpaceDispatchTraceFinalVisibleOutcome as Fr, buildSpaceInboxUnreadTargetsPath as Ft, buildFeedbackIssueSubmissionPath as G, createProjectResponseSchema as Gi, updateSpaceMeta as Gn, getOrganizationSkillResponseSchema as Gr, createCurrentDeviceApi as Gt, buildCurrentOrganizationSpacesWithMemberCountsPath as H, localProjectControlDaemonFrameSchema as Hi, trashSpaceFileEntry as Hn, projectObservabilityWakeCorrelation as Hr, createComputerAuthorizationGrant as Ht, buildCurrentOrganizationMessageChannelRegistrationPath as I, agentActivitySnapshotQuerySchema as Ii, readOrUpdateSpaceInputQueue as In, resolveRuntimeCoordinatorHeadStatusRootCause as Ir, createAccountSpaceIndexApi as It, buildInboxItemReadPath as J, updateProjectResponseSchema as Ji, DAEMON_STREAM_KEEPALIVE_PING as Jn, organizationSkillFileSchema as Jr, createFetchTransport as Jt, buildInboxItemDismissPath as K, listProjectsResponseSchema as Ki, uploadSpaceAttachment as Kn, listOrganizationSkillsResponseSchema as Kr, createDirectMessageApi as Kt, buildCurrentOrganizationMessageChannelRegistrationPollPath as L, agentActivitySnapshotResponseSchema as Li, readOrUpdateSpaceMessagePins as Ln, resolveSpaceDispatchTraceRootCause as Lr, createAgentActivityApi as Lt, buildCurrentOrganizationInformationProtectionPath as M, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Mi, readAccountOrganizationContext as Mn, spaceThreadEvidenceResponseSchema as Mr, buildSpaceFileContentPath as Mt, buildCurrentOrganizationLogoPath as N, agentActivityEventSchema as Ni, readAccountSession as Nn, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as Nr, buildSpaceInboxReadThroughPath as Nt, buildCurrentOrganizationCenterAgentMemoryWipeSelfPath as O, resumeCenterAgentRoutineResponseSchema as Oi, mutateSpaceTask as On, organizationSpaceDirectoryWithMemberCountsResponseSchema as Or, buildRoutineTargetSpacesPath as Ot, buildCurrentOrganizationMemberOpenMeldServiceStatusesPath as P, agentActivityProviderSchema as Pi, readCliRelease as Pn, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as Pr, buildSpaceInboxSummaryPath as Pt, buildInboxSummaryPath as Q, computerFileAccessDaemonFrameSchema as Qi, buildSpaceThreadEvidence as Qn, organizationSkillSummarySchema as Qr, createLocalProjectControlApi as Qt, buildCurrentOrganizationMessageChannelRegistrationsPath as R, serviceConnectionEvidenceEventSchema as Ri, resolveAccountSpaceIndexGatewayHost as Rn, spaceDispatchTraceAttemptStatusSchema as Rr, createAgentProfileBindingApi as Rt, buildCenterAgentProfilePath as S, spaceMetaSchema as Si, isInboxItemInOrganizationScope as Sn, createAgentProfileCreationRequestBodySchema as Sr, buildProjectPath as St, buildComputerFileAccessReadPath as T, listCenterAgentRoutineRunsResponseSchema as Ti, listSpaceFileRevisions as Tn, mutateSpaceTaskBodySchema as Tr, buildRoutinePausePath as Tt, buildDirectMessageConversionPath as U, localProjectControlDiscoverProjectsResponseSchema as Ui, updateSpaceFileContent as Un, ORGANIZATION_SKILL_BUNDLE_MAX_BYTES as Ur, createComputerFileAccessApi as Ut, buildCurrentOrganizationSpacesPath as V, localProjectControlConnectionSchema as Vi, toStructuredApiClientFailure as Vn, observabilityWakeTraceSelectorSchema as Vr, createCenterAgentApi as Vt, buildDirectMessageSpacePath as W, archiveProjectResponseSchema as Wi, updateSpaceFileEntry as Wn, ORGANIZATION_SKILL_FILE_MAX_BYTES as Wr, createConfigApi as Wt, buildInboxPath as X, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as Xi, MAX_TEXT_LENGTH as Xn, organizationSkillReleaseSummarySchema as Xr, createInboxApi as Xt, buildInboxMarkAllReadPath as Y, COMPUTER_FILE_ACCESS_OWNER_CANCELLED_REASON_CODE as Yi, DAEMON_STREAM_KEEPALIVE_PONG as Yn, organizationSkillGitHubRepositoryPreviewSchema as Yr, createFileRootApi as Yt, buildInboxPreferencesPath as Z, OPENMELD_RUNTIME_CAPABILITIES_HEADER as Zi, buildSpaceMessageEvidence as Zn, organizationSkillRuntimeReleaseSelectionSchema as Zr, createLocalFolderPickerApi as Zt, buildCenterAgentDirectMessageSpacePath as _, agentActivitySessionInventoryResponseSchema as _i, downloadSpaceFileContent as _n, betterAuthDeviceAuthorizationTokenRequestSchema as _r, buildOrganizationUsageOverviewPath as _t, buildAgentActivitySessionsPath as a, spaceMemberDirectoryAllowedRelationsSchema as ai, createPluginsApi as an, OPENMELD_HEADER_REQUEST_ID as ar, buildOrganizationDocumentsPath as at, buildCenterAgentMemberResearchPath as b, resolveInitialSpaceAccessMode as bi, getSpaceTask as bn, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as br, buildProfileSpaceHistoryStatusPath as bt, buildAgentProfileCreationApprovalPreferencePath as c, spaceMemberKindSchema as ci, createProfilesApi as cn, toErrorMessage$2 as cr, buildOrganizationSkillFilesImportPath as ct, buildAgentProfileCreationRequestDecisionPath as d, projectOwnerComputerLocalRuntimes as di, createRoutinesApi as dn, openDirectMessageSpaceBodySchema as dr, buildOrganizationSkillGitHubPreviewPath as dt, computerFileAccessPolicySchema as ea, leaveSpaceResponseSchema as ei, createOpenMeldApiClient as en, parseIncoming as er, buildLocalProjectControlPath as et, buildAgentProfileCreationRequestRetryPath as f, summarizeComputerFileAccessPolicy as fi, createRuntimeReportingApi as fn, pluginActionRequestSchema as fr, buildOrganizationSkillMaintainersPath as ft, buildCenterAgentDesignationPath as g, agentActivitySessionInventoryQuerySchema as gi, createSpaceTask as gn, betterAuthDeviceAuthorizationErrorResponseSchema as gr, buildOrganizationSkillsPath as gt, buildCenterAgentAuditJournalPath as h, agentActivityInventorySessionStatusSchema as hi, createSpaceFolder as hn, betterAuthDeviceAuthorizationCodeResponseSchema as hr, buildOrganizationSkillResourcePath as ht, buildAccountSpaceIndexPath as i, spaceMemberAgentWakeAvailabilitySchema as ii, createOrganizationUsageApi as in, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as ir, buildOrganizationDocumentPath as it, buildCurrentOrganizationFeedbackReportingPolicyPath as j, AGENT_ACTIVITY_EVENT_MAX_BYTES as ji, publicSpaceUrls as jn, submitFeedbackIssueResponseSchema as jr, buildSpaceBootstrapReadPath as jt, buildCurrentOrganizationComputersPath as k, updateCenterAgentRoutineResponseSchema as ki, normalizeApiBaseUrl as kn, organizationDirectoryResponseSchema as kr, buildRoutinesPath as kt, buildAgentProfileCreationDefaultsPath as l, submitAgentControllerTaskLifecycleEventItemSchema as li, createProjectsApi as ln, getSpaceUpdatesResponseSchema as lr, buildOrganizationSkillFilesPreviewPath as lt, buildAgentProfileWorkRecoveryRoute as m, agentActivityInventorySessionOriginSchema as mi, createSpaceApi as mn, betterAuthDeviceAuthorizationCodeRequestSchema as mr, buildOrganizationSkillRepositoryPreviewPath as mt, OpenMeldApiClientInvalidResponseError as n, toCompatibleSpaceAddressingRequestWireValue as na, removeSpaceMembersResponseSchema as ni, createOrganizationDocumentsApi as nn, resolveCustomMentionAliasOverride as nr, buildOrganizationDocumentApproveDraftPath as nt, buildAgentActivitySnapshotPath as o, spaceMemberDirectoryEntrySchema as oi, createPrepareReadinessApi as on, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as or, buildOrganizationSkillCatalogPath as ot, buildAgentProfileCreationRequestsPath as p, organizationComputersResponseSchema as pi, createServiceConnectionEvidenceApi as pn, BETTER_AUTH_DEVICE_AUTHORIZATION_GRANT_TYPE as pr, buildOrganizationSkillPath as pt, buildInboxItemPath as q, projectSchema as qi, uploadSpaceFile as qn, organizationSkillBundleSchema as qr, createFeedbackApi as qt, buildAccountSpaceActiveWakeSummaryPath as r, resolvedSpaceMemberProfileSchema as ri, createOrganizationSkillsApi as rn, OPENMELD_HEADER_PROFILE_ID as rr, buildOrganizationDocumentDiscardDraftPath as rt, buildAgentActivityStatsPath as s, spaceMemberDirectorySchema as si, createProfileSpaceHistoryApi as sn, buildOpenMeldRequestContextHeaders as sr, buildOrganizationSkillEnabledPath as st, OpenMeldApiClientHttpError as t, toLegacySpaceImageGeometryWireValue as ta, postSpaceMembersResponseSchema as ti, createOrganizationApi as tn, parseServerErrorFrame as tr, buildModelCatalogPath as tt, buildAgentProfileCreationRequestCancelPath as u, ownerComputerDiagnosticsSchema as ui, createReasoningStreamApi as un, spaceEntryTargetSchema as ur, buildOrganizationSkillGitHubImportPath as ut, buildCenterAgentInboxReadThroughPath as v, localAgentSessionProviderSchema as vi, getModelCatalog as vn, betterAuthDeviceAuthorizationTokenResponseSchema as vr, buildProfileRoute as vt, buildCenterAgentSessionsPath as w, deleteCenterAgentRoutineResponseSchema as wi, isInboxNotificationEligible as wn, createSpaceTaskBodySchema as wr, buildRoutinePath as wt, buildCenterAgentOperatingStatePath as x, spaceCreatorSchema as xi, inboxMessageNotificationSpaceId as xn, agentProfileCreationConfigurationSchema as xr, buildProfileSpaceHistoryUpsertPath as xt, buildCenterAgentInboxSummaryPath as y, observedLocalAgentSessionSchema as yi, getSpaceFile as yn, betterAuthSessionSnapshotResponseSchema as yr, buildProfileSpaceHistoryListPath as yt, buildCurrentOrganizationMessageChannelSetupRequestsPath as z, serviceConnectionEvidenceJournalSchema as zi, resolveProfileSpaceHistoryGatewayHost as zn, spaceDispatchTraceDispatchStatusSchema as zr, createAgentProfileExecutionModeApi as zt };
20765
21192
 
20766
- //# sourceMappingURL=dist-sH8NpjIN.js.map
21193
+ //# sourceMappingURL=dist-BE0dKSoc.js.map