openmeld 0.3.137 → 0.3.139

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { Sn as __exportAll, bn as agentControllerConversationCapabilitySchema, on as runtimeTransportModeSchema, pn as agentControllerRefSchema, vn as normalizeKnownBuiltinAgentControllerId, xn as resolveBuiltinAgentControllerConversationCapability } from "./base-url-CY_j4bLH.js";
4
- import { $ as localFolderPickerResultSchema, $n as openMeldToolsMaintenanceProjectionSchema, $t as trashSpaceFileEntryResponseSchema, An as AGENT_STREAM_SNAPSHOT_MAX_CHARS, Ar as clientMessageIdSchema$1, At as spaceAttachmentMimeTypeSchema, B as openMeldDaemonProviderAccessEvidenceProviderSchema, Br as spacePasswordSchema, Bt as discardSpaceComposerUploadResponseSchema, Cr as tuple, Ct as signalStatusDataSchema, Dn as messageEnvelopeSchema, Dr as url, Dt as spaceAttachmentDescriptorSchema, Er as unknown, Et as signalTextSchema, F as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, Fn as spaceAgentStreamSnapshotSchema, G as openMeldDaemonTaskResultProjectFailureContextSchema, Gr as organizationInformationProtectionPolicyResponseSchema, Gt as publishSpaceComposerUploadResponseSchema, In as spaceAgentStreamTerminalFrameSchema, It as centerAgentInteractionSourceSchema, Jn as localComponentUpdatePolicySchema, Jr as executeExecutionRecoveryBodySchema, Jt as restoreSpaceFileRevisionResponseSchema, Kr as organizationProtectedInformationSchema, Lr as spaceTraceExecutionIdentityProjectionSchema, Lt as SPACE_FILE_ERROR_CODES, Mn as spaceAgentStreamDeltaFrameSchema, Mr as runtimeCoordinatorExecutionCreationDiagnosticSchema, Mt as spaceMessageAttachmentSchema, Nn as spaceAgentStreamPartFrameSchema, Nr as runtimeCoordinatorExecutionEventSchema, Nt as spaceMessageAttachmentsSchema, Or as postSpaceWakeStopBodySchema, Ot as spaceAttachmentDimensionSchema, Pn as spaceAgentStreamPresenceSchema, Pr as runtimeCoordinatorExecutionRecordSchema, Pt as conversationCompactionMarkerSchema, Q as localFolderPickerRequestSchema, Qn as openMeldToolsMaintenanceMutationResultSchema, Qr as openMeldRequestContextSchema, Qt as stageSpaceComposerUploadResponseSchema, Rn as agentInteractionPendingSummarySchema, Rr as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, Rt as SPACE_FILE_MAX_SIZE_BYTES, Sn as targetWakeLifecycleIdentitySchema, Sr as string, Tr as union, Tt as signalTextDataSchema, Ur as spaceMentionLabelSchema, Ut as listSpaceFileRevisionsResponseSchema, Vn as agentInteractionResponseSchema, Vt as getSpaceFileResponseSchema, Wr as spaceMentionLabelSourceSchema, Wt as listSpaceFilesResponseSchema, Xn as localComponentUpdateStatusSchema, Xr as inspectExecutionRecoveryResponseSchema, Yn as localComponentUpdateProjectionSchema, Yr as executeExecutionRecoveryResponseSchema, Yt as spaceFileMimeTypeSchema, Zt as spaceMessageFileReferencesSchema, _n as spaceAllowedActionsSchema, _r as number, ai as profileWorkingDirectorySchema, an as openMeldDaemonSyncRouteCatalogPayloadSchema, ar as NEVER, at as agentTaskTerminalOutcomeSchema, bi as openMeldNavigationTargetSchema, bn as workingLanguageGuidanceSchema, br as record, ci as finiteIntegerNumber, cr as coerce, ct as controllerAgentTaskHandleSchema, di as trimmedStringFromUnknown, dn as spaceThreadEventSchema, dr as enumFactory, ei as agentProfileIdSchema, en as updateSpaceFileEntryResponseSchema, et as localFolderPathSchema, fi as MAX_TEXT_LENGTH$1, fn as spaceThreadSchema, fr as int, gn as resultArchivePolicySchema, gr as nullFactory, hr as neverFactory, ii as profileSchema, it as agentTaskHandleSchema, jn as agentStreamToolPartSchema, jt as spaceAttachmentSizeBytesSchema, kr as postSpaceWakeStopResponseSchema, kt as spaceAttachmentFileNameSchema, li as nonEmptyTrimmedStringFromUnknown, ln as dispatchExecutionSchema, lr as discriminatedUnion, lt as spaceWakeAgentTaskHandleSchema, mr as literal, n as daemonExecutionCompatibilitySchema, ni as openMeldRuntimeProfileIdSchema, nn as localAgentInstallationOptionSchema, nr as openMeldToolsUpdateOperationSchema, nt as agentTaskCompletionConditionSchema, oi as profileWorkspaceModeSchema, or as array, ot as areAgentTaskTerminalOutcomesEqual, pi as agentProfileWorkRecoveryActionKindSchema, pn as spaceThreadSignalPlacementSchema, pr as iso, qr as updateOrganizationInformationProtectionPolicyBodySchema, qt as restoreSpaceFileEntryResponseSchema, ri as profileKindSchema, rr as openMeldToolsUpdateRequestResultSchema, rt as agentTaskCompletionObservationSchema, si as uuidProfileIdSchema, sr as boolean, st as buildAgentTaskKey, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tn as uploadSpaceFileResponseSchema, tt as agentDelegationSnapshotSchema, ui as optionalBooleanQuerySchema, un as spaceThreadContextSchema, ur as email, vn as spacePublicationModeSchema, vr as object, wr as undefinedFactory, wt as signalSystemNoticeDataSchema, xi as openMeldWebUrlSchema, xn as workingLanguageTagSchema, xr as strictObject, xt as centerAgentTaskReferenceSchema, yi as computerSetupModeSchema, yn as spaceDispatchPolicySchema, yr as preprocess, z as openMeldDaemonOriginalErrorSchema, zr as normalizeSpacePasswordText, zt as createSpaceFolderResponseSchema } from "./runtime-transport-DYzU1lHC.js";
4
+ import { $ as localFolderPickerResultSchema, $n as openMeldToolsMaintenanceProjectionSchema, $t as trashSpaceFileEntryResponseSchema, An as AGENT_STREAM_SNAPSHOT_MAX_CHARS, Ar as clientMessageIdSchema$1, At as spaceAttachmentMimeTypeSchema, B as openMeldDaemonProviderAccessEvidenceProviderSchema, Br as spacePasswordSchema, Bt as discardSpaceComposerUploadResponseSchema, Cr as tuple, Ct as signalStatusDataSchema, Dn as messageEnvelopeSchema, Dr as url, Dt as spaceAttachmentDescriptorSchema, Er as unknown, Et as signalTextSchema, F as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, Fn as spaceAgentStreamSnapshotSchema, G as openMeldDaemonTaskResultProjectFailureContextSchema, Gr as organizationInformationProtectionPolicyResponseSchema, Gt as publishSpaceComposerUploadResponseSchema, In as spaceAgentStreamTerminalFrameSchema, It as centerAgentInteractionSourceSchema, Jn as localComponentUpdatePolicySchema, Jr as executeExecutionRecoveryBodySchema, Jt as restoreSpaceFileRevisionResponseSchema, Kr as organizationProtectedInformationSchema, Lr as spaceTraceExecutionIdentityProjectionSchema, Lt as SPACE_FILE_ERROR_CODES, Mn as spaceAgentStreamDeltaFrameSchema, Mr as runtimeCoordinatorExecutionCreationDiagnosticSchema, Mt as spaceMessageAttachmentSchema, Nn as spaceAgentStreamPartFrameSchema, Nr as runtimeCoordinatorExecutionEventSchema, Nt as spaceMessageAttachmentsSchema, Or as postSpaceWakeStopBodySchema, Ot as spaceAttachmentDimensionSchema, Pn as spaceAgentStreamPresenceSchema, Pr as runtimeCoordinatorExecutionRecordSchema, Pt as conversationCompactionMarkerSchema, Q as localFolderPickerRequestSchema, Qn as openMeldToolsMaintenanceMutationResultSchema, Qr as openMeldRequestContextSchema, Qt as stageSpaceComposerUploadResponseSchema, Rn as agentInteractionPendingSummarySchema, Rr as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, Rt as SPACE_FILE_MAX_SIZE_BYTES, Sn as targetWakeLifecycleIdentitySchema, Sr as string, Tr as union, Tt as signalTextDataSchema, Ur as spaceMentionLabelSchema, Ut as listSpaceFileRevisionsResponseSchema, Vn as agentInteractionResponseSchema, Vt as getSpaceFileResponseSchema, Wr as spaceMentionLabelSourceSchema, Wt as listSpaceFilesResponseSchema, Xn as localComponentUpdateStatusSchema, Xr as inspectExecutionRecoveryResponseSchema, Yn as localComponentUpdateProjectionSchema, Yr as executeExecutionRecoveryResponseSchema, Yt as spaceFileMimeTypeSchema, Zt as spaceMessageFileReferencesSchema, _n as spaceAllowedActionsSchema, _r as number, ai as profileWorkingDirectorySchema, an as openMeldDaemonSyncRouteCatalogPayloadSchema, ar as NEVER, at as agentTaskTerminalOutcomeSchema, bi as openMeldNavigationTargetSchema, bn as workingLanguageGuidanceSchema, br as record, ci as finiteIntegerNumber, cr as coerce, ct as controllerAgentTaskHandleSchema, di as trimmedStringFromUnknown, dn as spaceThreadEventSchema, dr as enumFactory, ei as agentProfileIdSchema, en as updateSpaceFileEntryResponseSchema, et as localFolderPathSchema, fi as MAX_TEXT_LENGTH$1, fn as spaceThreadSchema, fr as int, gn as resultArchivePolicySchema, gr as nullFactory, hr as neverFactory, ii as profileSchema, it as agentTaskHandleSchema, jn as agentStreamToolPartSchema, jt as spaceAttachmentSizeBytesSchema, kr as postSpaceWakeStopResponseSchema, kt as spaceAttachmentFileNameSchema, li as nonEmptyTrimmedStringFromUnknown, ln as dispatchExecutionSchema, lr as discriminatedUnion, lt as spaceWakeAgentTaskHandleSchema, mr as literal, n as daemonExecutionCompatibilitySchema, ni as openMeldRuntimeProfileIdSchema, nn as localAgentInstallationOptionSchema, nr as openMeldToolsUpdateOperationSchema, nt as agentTaskCompletionConditionSchema, oi as profileWorkspaceModeSchema, or as array, ot as areAgentTaskTerminalOutcomesEqual, pi as agentProfileWorkRecoveryActionKindSchema, pn as spaceThreadSignalPlacementSchema, pr as iso, qr as updateOrganizationInformationProtectionPolicyBodySchema, qt as restoreSpaceFileEntryResponseSchema, ri as profileKindSchema, rr as openMeldToolsUpdateRequestResultSchema, rt as agentTaskCompletionObservationSchema, si as uuidProfileIdSchema, sr as boolean, st as buildAgentTaskKey, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tn as uploadSpaceFileResponseSchema, tt as agentDelegationSnapshotSchema, ui as optionalBooleanQuerySchema, un as spaceThreadContextSchema, ur as email, vn as spacePublicationModeSchema, vr as object, wr as undefinedFactory, wt as signalSystemNoticeDataSchema, xi as openMeldWebUrlSchema, xn as workingLanguageTagSchema, xr as strictObject, xt as centerAgentTaskReferenceSchema, yi as computerSetupModeSchema, yn as spaceDispatchPolicySchema, yr as preprocess, z as openMeldDaemonOriginalErrorSchema, zr as normalizeSpacePasswordText, zt as createSpaceFolderResponseSchema } from "./runtime-transport-QslOj6uZ.js";
5
5
  import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
6
6
  import * as z$1 from "zod/v4";
7
7
  //#region ../../packages/schemas/dist/agent-execution-readiness-impact-taxonomy.js
@@ -4161,7 +4161,7 @@ const organizationDirectoryMemberSchema = strictObject({
4161
4161
  }),
4162
4162
  humanProfile: organizationDirectoryHumanProfileSchema.nullable()
4163
4163
  });
4164
- const organizationDirectoryAgentProfileSchema = strictObject({
4164
+ const organizationDirectoryAgentProfileIdentitySchema = strictObject({
4165
4165
  organizationId: trimmedNonEmptyStringSchema$14,
4166
4166
  profileId: agentProfileIdSchema,
4167
4167
  profileName: trimmedNonEmptyStringSchema$14,
@@ -4179,11 +4179,31 @@ const organizationDirectoryAgentProfileSchema = strictObject({
4179
4179
  lastUsedAt: union([ISO_DATE_TIME_SCHEMA$10, nullFactory()]),
4180
4180
  createdAt: ISO_DATE_TIME_SCHEMA$10,
4181
4181
  updatedAt: ISO_DATE_TIME_SCHEMA$10
4182
- }).extend({
4182
+ });
4183
+ const organizationDirectoryAgentProfileSchema = organizationDirectoryAgentProfileIdentitySchema.extend({
4183
4184
  isCenterAgent: boolean().optional(),
4184
4185
  operationalContext: organizationDirectoryAgentProfileOperationalContextSchema.optional(),
4185
4186
  readiness: getAgentExecutionReadinessResponseSchema
4186
4187
  });
4188
+ const organizationProfileDirectoryAgentProfileSchema = organizationDirectoryAgentProfileIdentitySchema.extend({
4189
+ agentControllerRef: nullableTrimmedStringSchema$7,
4190
+ isCenterAgent: boolean().optional()
4191
+ });
4192
+ strictObject({
4193
+ organizationId: trimmedNonEmptyStringSchema$14,
4194
+ generatedAt: ISO_DATE_TIME_SCHEMA$10,
4195
+ members: array(organizationDirectoryMemberSchema),
4196
+ agentProfiles: array(organizationProfileDirectoryAgentProfileSchema)
4197
+ });
4198
+ strictObject({
4199
+ organizationId: trimmedNonEmptyStringSchema$14,
4200
+ generatedAt: ISO_DATE_TIME_SCHEMA$10,
4201
+ agentProfiles: array(strictObject({
4202
+ profileId: agentProfileIdSchema,
4203
+ operationalContext: organizationDirectoryAgentProfileOperationalContextSchema.optional(),
4204
+ readiness: getAgentExecutionReadinessResponseSchema
4205
+ }))
4206
+ });
4187
4207
  const organizationDirectoryResponseSchema = strictObject({
4188
4208
  organizationId: trimmedNonEmptyStringSchema$14,
4189
4209
  generatedAt: ISO_DATE_TIME_SCHEMA$10,
@@ -8862,8 +8882,8 @@ const SPACE_DISPATCH_TRACE_PROMPT_LENGTH_MAX = 1e6;
8862
8882
  const SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS = 1200;
8863
8883
  const SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER = "x-openmeld-space-dispatch-trace-response-version";
8864
8884
  const SPACE_DISPATCH_TRACE_INVALID_OUTPUT_PREVIEW_MAX_CHARS = 180;
8865
- literal(2);
8866
- literal(String(2)).transform(() => 2);
8885
+ union([literal(2), literal(3)]);
8886
+ enumFactory([String(2), String(3)]).transform((value) => value === String(3) ? 3 : 2);
8867
8887
  const boundedNullableTrimmedStringSchema = (maxLength) => union([trimmedNonEmptyStringSchema$3.max(maxLength), nullFactory()]);
8868
8888
  const nullableTrimmedStringSchema$2 = boundedNullableTrimmedStringSchema(4096);
8869
8889
  const nullableSignalTextSchema = boundedNullableTrimmedStringSchema(MAX_TEXT_LENGTH$1);
@@ -9225,14 +9245,14 @@ const legacyPublishedRuntimeCoordinatorHeadRecoveryActionSchema = enumFactory([
9225
9245
  "start_or_restart_openmeld_service",
9226
9246
  "update_openmeld_service"
9227
9247
  ]);
9228
- const currentPublishedRuntimeCoordinatorHeadPublicationCategorySchema = enumFactory([
9248
+ const publishedRuntimeCoordinatorHeadPublicationCategoryV2Schema = enumFactory([
9229
9249
  "binding_required",
9230
9250
  "local_connection_mismatch",
9231
9251
  "service_not_connected",
9232
9252
  "update_required",
9233
9253
  "wake_route_registration_pending"
9234
9254
  ]);
9235
- const currentPublishedRuntimeCoordinatorHeadReasonCodeSchema = enumFactory([
9255
+ const publishedRuntimeCoordinatorHeadReasonCodeV2Schema = enumFactory([
9236
9256
  "agent_profile_binding.missing",
9237
9257
  "agent_profile_binding.disabled",
9238
9258
  "agent_profile_binding.owner_mismatch",
@@ -9242,14 +9262,43 @@ const currentPublishedRuntimeCoordinatorHeadReasonCodeSchema = enumFactory([
9242
9262
  "daemon.profile.pending_first_report",
9243
9263
  "service.update_required"
9244
9264
  ]);
9265
+ const publishedRuntimeCoordinatorHeadRecoveryActionV2Schema = enumFactory([
9266
+ "set_up_agent_binding",
9267
+ "enable_agent_binding",
9268
+ "repair_agent_binding",
9269
+ "authorize_agent_binding_for_organization",
9270
+ "reconnect_agent_binding",
9271
+ "start_or_restart_openmeld_service",
9272
+ "update_openmeld_service",
9273
+ "wait_for_wake_route_report"
9274
+ ]);
9275
+ const currentPublishedRuntimeCoordinatorHeadPublicationCategorySchema = enumFactory([
9276
+ "binding_required",
9277
+ "agent_profile_unavailable",
9278
+ "local_agent_unavailable",
9279
+ "local_connection_mismatch",
9280
+ "provider_access_unavailable",
9281
+ "provider_usage_unavailable",
9282
+ "service_not_connected",
9283
+ "update_required",
9284
+ "wake_route_registration_pending",
9285
+ "workspace_unavailable"
9286
+ ]);
9287
+ const currentPublishedRuntimeCoordinatorHeadReasonCodeSchema = string().trim().min(1).max(160);
9245
9288
  const currentPublishedRuntimeCoordinatorHeadRecoveryActionSchema = enumFactory([
9246
9289
  "set_up_agent_binding",
9247
9290
  "enable_agent_binding",
9248
9291
  "repair_agent_binding",
9249
9292
  "authorize_agent_binding_for_organization",
9293
+ "check_status",
9294
+ "connect_local_agent",
9295
+ "enable_local_agent",
9250
9296
  "reconnect_agent_binding",
9297
+ "review_agent_settings",
9251
9298
  "start_or_restart_openmeld_service",
9252
9299
  "update_openmeld_service",
9300
+ "wait_for_usage_report",
9301
+ "wait_for_usage_reset",
9253
9302
  "wait_for_wake_route_report"
9254
9303
  ]);
9255
9304
  const spaceDispatchTraceRuntimeCoordinatorHeadNoExecutionDecisionV1Schema = strictObject({
@@ -9259,6 +9308,13 @@ const spaceDispatchTraceRuntimeCoordinatorHeadNoExecutionDecisionV1Schema = stri
9259
9308
  source: publishedRuntimeCoordinatorHeadDecisionSourceSchema,
9260
9309
  userRecoveryAction: legacyPublishedRuntimeCoordinatorHeadRecoveryActionSchema
9261
9310
  });
9311
+ const spaceDispatchTraceRuntimeCoordinatorHeadNoExecutionDecisionV2Schema = strictObject({
9312
+ decidedAt: ISO_DATE_TIME_SCHEMA$3,
9313
+ publicationCategory: publishedRuntimeCoordinatorHeadPublicationCategoryV2Schema,
9314
+ reasonCode: publishedRuntimeCoordinatorHeadReasonCodeV2Schema,
9315
+ source: publishedRuntimeCoordinatorHeadDecisionSourceSchema,
9316
+ userRecoveryAction: publishedRuntimeCoordinatorHeadRecoveryActionV2Schema
9317
+ });
9262
9318
  const spaceDispatchTraceRuntimeCoordinatorHeadNoExecutionDecisionSchema = strictObject({
9263
9319
  decidedAt: ISO_DATE_TIME_SCHEMA$3,
9264
9320
  publicationCategory: currentPublishedRuntimeCoordinatorHeadPublicationCategorySchema,
@@ -9281,6 +9337,21 @@ const spaceDispatchTraceRuntimeCoordinatorHeadPublicationIntentV1Schema = union(
9281
9337
  reasonCode: literal("runtime_coordinator.pre_agent_stop_requested"),
9282
9338
  status: literal("ready_for_phase_6")
9283
9339
  })]);
9340
+ const spaceDispatchTraceRuntimeCoordinatorHeadPublicationIntentV2Schema = union([strictObject({
9341
+ intentId: trimmedNonEmptyStringSchema$3.max(4096),
9342
+ kind: literal("no_execution_failure"),
9343
+ publicationCategory: publishedRuntimeCoordinatorHeadPublicationCategoryV2Schema,
9344
+ readyAt: ISO_DATE_TIME_SCHEMA$3,
9345
+ reasonCode: publishedRuntimeCoordinatorHeadReasonCodeV2Schema,
9346
+ status: literal("ready_for_phase_6"),
9347
+ userRecoveryAction: publishedRuntimeCoordinatorHeadRecoveryActionV2Schema
9348
+ }), strictObject({
9349
+ intentId: trimmedNonEmptyStringSchema$3.max(4096),
9350
+ kind: literal("stopped_notice"),
9351
+ readyAt: ISO_DATE_TIME_SCHEMA$3,
9352
+ reasonCode: literal("runtime_coordinator.pre_agent_stop_requested"),
9353
+ status: literal("ready_for_phase_6")
9354
+ })]);
9284
9355
  const spaceDispatchTraceRuntimeCoordinatorHeadPublicationIntentSchema = union([strictObject({
9285
9356
  intentId: trimmedNonEmptyStringSchema$3.max(4096),
9286
9357
  kind: literal("no_execution_failure"),
@@ -9393,6 +9464,16 @@ const spaceDispatchTraceRuntimeCoordinatorHeadLifecycleV1Schema = discriminatedU
9393
9464
  spaceDispatchTraceRuntimeCoordinatorHeadMissingSchema,
9394
9465
  spaceDispatchTraceRuntimeCoordinatorHeadAuthorityUnavailableSchema
9395
9466
  ]);
9467
+ const spaceDispatchTraceRuntimeCoordinatorHeadLifecycleV2Schema = discriminatedUnion("readStatus", [
9468
+ strictObject({
9469
+ ...spaceDispatchTraceRuntimeCoordinatorHeadFoundCommonShape,
9470
+ noExecutionDecision: union([spaceDispatchTraceRuntimeCoordinatorHeadNoExecutionDecisionV2Schema, nullFactory()]),
9471
+ publicationIntent: union([spaceDispatchTraceRuntimeCoordinatorHeadPublicationIntentV2Schema, nullFactory()]),
9472
+ waitingBoundary: union([spaceDispatchTraceRuntimeCoordinatorHeadWaitingBoundarySchema, nullFactory()])
9473
+ }),
9474
+ spaceDispatchTraceRuntimeCoordinatorHeadMissingSchema,
9475
+ spaceDispatchTraceRuntimeCoordinatorHeadAuthorityUnavailableSchema
9476
+ ]);
9396
9477
  const spaceDispatchTraceRuntimeCoordinatorHeadLifecycleSchema = discriminatedUnion("readStatus", [
9397
9478
  strictObject({
9398
9479
  ...spaceDispatchTraceRuntimeCoordinatorHeadFoundCommonShape,
@@ -9468,6 +9549,7 @@ const spaceDispatchTraceSnapshotSchema = strictObject({
9468
9549
  structuredActionFailure: union([spaceDispatchTraceStructuredActionFailureSchema, nullFactory()])
9469
9550
  });
9470
9551
  const spaceDispatchTraceSnapshotV1Schema = spaceDispatchTraceSnapshotSchema.extend({ runtimeCoordinatorHeadLifecycle: union([spaceDispatchTraceRuntimeCoordinatorHeadLifecycleV1Schema, nullFactory()]) });
9552
+ const spaceDispatchTraceSnapshotV2Schema = spaceDispatchTraceSnapshotSchema.extend({ runtimeCoordinatorHeadLifecycle: union([spaceDispatchTraceRuntimeCoordinatorHeadLifecycleV2Schema, nullFactory()]) });
9471
9553
  const spaceDispatchTraceResponseSchema = strictObject({
9472
9554
  correlation: observabilityWakeCorrelationSchema,
9473
9555
  query: spaceDispatchTraceQuerySchema,
@@ -9616,6 +9698,7 @@ const spaceDispatchTraceResponseSchema = strictObject({
9616
9698
  }
9617
9699
  });
9618
9700
  spaceDispatchTraceResponseSchema.safeExtend({ trace: union([spaceDispatchTraceSnapshotV1Schema, nullFactory()]) });
9701
+ spaceDispatchTraceResponseSchema.safeExtend({ trace: union([spaceDispatchTraceSnapshotV2Schema, nullFactory()]) });
9619
9702
  const FINAL_VISIBLE_OUTCOME_PUBLICATION_PENDING_REASON_CODE = "final_visible_outcome.publication_pending";
9620
9703
  const FINAL_VISIBLE_OUTCOME_PUBLICATION_RETRYING_REASON_CODE = "final_visible_outcome.publication_retrying";
9621
9704
  const FINAL_VISIBLE_OUTCOME_PUBLICATION_UNRESOLVED_REASON_CODE = "final_visible_outcome.publication_unresolved";
@@ -11997,6 +12080,19 @@ const spaceInboxSummaryResponseSchema = strictObject({
11997
12080
  organizationId: identifierSchema,
11998
12081
  spaces: array(spaceInboxSummaryItemSchema).max(500)
11999
12082
  });
12083
+ const spaceInboxUnreadTargetSchema = strictObject({
12084
+ occurredAtMs: timestampMsSchema,
12085
+ signalId: identifierSchema,
12086
+ threadRootSignalId: identifierSchema.nullable()
12087
+ });
12088
+ const spaceInboxUnreadTargetsResponseSchema = strictObject({
12089
+ hasMoreTargets: boolean(),
12090
+ organizationId: identifierSchema,
12091
+ spaceId: identifierSchema,
12092
+ targets: array(spaceInboxUnreadTargetSchema).max(500),
12093
+ totalUnreadCount: number().int().nonnegative()
12094
+ });
12095
+ const spaceInboxUnreadTargetsRouteParamsSchema = strictObject({ spaceId: identifierSchema });
12000
12096
  const markCenterAgentInboxReadThroughBodySchema = strictObject({
12001
12097
  spaceId: identifierSchema,
12002
12098
  throughOccurredAtMs: timestampMsSchema
@@ -12007,6 +12103,7 @@ const markCenterAgentInboxReadThroughResponseSchema = strictObject({
12007
12103
  });
12008
12104
  const markSpaceInboxReadThroughBodySchema = strictObject({
12009
12105
  spaceId: identifierSchema,
12106
+ threadRootSignalId: identifierSchema.optional(),
12010
12107
  throughOccurredAtMs: timestampMsSchema
12011
12108
  });
12012
12109
  const markSpaceInboxReadThroughResponseSchema = strictObject({
@@ -12050,6 +12147,10 @@ listInboxItemsQuerySchema.extend({ context: openMeldRequestContextSchema });
12050
12147
  strictObject({ context: openMeldRequestContextSchema });
12051
12148
  strictObject({ context: openMeldRequestContextSchema });
12052
12149
  strictObject({ context: openMeldRequestContextSchema });
12150
+ strictObject({
12151
+ context: openMeldRequestContextSchema,
12152
+ spaceId: identifierSchema
12153
+ });
12053
12154
  markCenterAgentInboxReadThroughBodySchema.extend({ context: openMeldRequestContextSchema });
12054
12155
  markSpaceInboxReadThroughBodySchema.extend({ context: openMeldRequestContextSchema });
12055
12156
  inboxItemRouteParamsSchema.extend({ context: openMeldRequestContextSchema });
@@ -13423,6 +13524,7 @@ var dist_exports = /* @__PURE__ */ __exportAll({
13423
13524
  buildSpaceBootstrapReadPath: () => buildSpaceBootstrapReadPath,
13424
13525
  buildSpaceInboxReadThroughPath: () => buildSpaceInboxReadThroughPath,
13425
13526
  buildSpaceInboxSummaryPath: () => buildSpaceInboxSummaryPath,
13527
+ buildSpaceInboxUnreadTargetsPath: () => buildSpaceInboxUnreadTargetsPath,
13426
13528
  createAccountSpaceIndexApi: () => createAccountSpaceIndexApi,
13427
13529
  createAgentActivityApi: () => createAgentActivityApi,
13428
13530
  createAgentProfileBindingApi: () => createAgentProfileBindingApi,
@@ -15131,6 +15233,9 @@ function buildCenterAgentInboxReadThroughPath() {
15131
15233
  function buildSpaceInboxSummaryPath() {
15132
15234
  return `${INBOX_PATH}/spaces/summary`;
15133
15235
  }
15236
+ function buildSpaceInboxUnreadTargetsPath(spaceId) {
15237
+ return `${INBOX_PATH}/spaces/${encodeURIComponent(spaceId)}/unread-targets`;
15238
+ }
15134
15239
  function buildSpaceInboxReadThroughPath() {
15135
15240
  return `${INBOX_PATH}/spaces/read-through`;
15136
15241
  }
@@ -15254,9 +15359,22 @@ const createInboxApi = (client) => ({
15254
15359
  schema: spaceInboxSummaryResponseSchema,
15255
15360
  url: buildSpaceInboxSummaryPath()
15256
15361
  }),
15362
+ spaceUnreadTargets: async (input) => {
15363
+ const params = requireValidInput$5(spaceInboxUnreadTargetsRouteParamsSchema, { spaceId: input.spaceId }, "Space Inbox unread targets request is invalid.");
15364
+ return await client.requestJson({
15365
+ ...requestOptions$7(input),
15366
+ headers: inboxSourceTargetVersionHeaders(),
15367
+ invalidMessage: "invalid Space Inbox unread targets response",
15368
+ method: "GET",
15369
+ operation: "inbox.space.unread_targets",
15370
+ schema: spaceInboxUnreadTargetsResponseSchema,
15371
+ url: buildSpaceInboxUnreadTargetsPath(params.spaceId)
15372
+ });
15373
+ },
15257
15374
  markSpaceReadThrough: async (input) => {
15258
15375
  const body = requireValidInput$5(markSpaceInboxReadThroughBodySchema, {
15259
15376
  spaceId: input.spaceId,
15377
+ ...input.threadRootSignalId === void 0 ? {} : { threadRootSignalId: input.threadRootSignalId },
15260
15378
  throughOccurredAtMs: input.throughOccurredAtMs
15261
15379
  }, "Space Inbox read request is invalid.");
15262
15380
  return await client.requestJson({
@@ -18205,4 +18323,4 @@ function composeAbortSignals(parent, timeout) {
18205
18323
  //#endregion
18206
18324
  export { submitAgentControllerTaskLifecycleEventItemSchema as $, spaceMemberDirectorySchema as $t, MAX_TEXT_LENGTH as A, submitFeedbackIssueRequestSchema as At, toErrorMessage$2 as B, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Bt, createSpaceApi as C, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as Ct, toStructuredApiClientFailure as D, profileCapabilitiesResponseSchema as Dt, resolveProfileSpaceHistoryGatewayHost as E, authProfileManagedRoleSchema as Et, OPENMELD_HEADER_PROFILE_ID as F, listCenterAgentRoutinesResponseSchema as Ft, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as G, agentActivitySnapshotResponseSchema as Gt, toErrorMessage$3 as H, agentActivityProviderSchema as Ht, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as I, pauseCenterAgentRoutineResponseSchema as It, spaceDispatchTraceAttemptStatusSchema as J, localProjectControlDiscoverProjectsResponseSchema as Jt, projectSpaceDispatchTraceFinalVisibleOutcome as K, localProjectControlConnectionSchema as Kt, OPENMELD_HEADER_REQUEST_ID as L, resumeCenterAgentRoutineResponseSchema as Lt, parseIncoming as M, createCenterAgentRoutineResponseSchema as Mt, parseServerErrorFrame as N, deleteCenterAgentRoutineResponseSchema as Nt, DAEMON_STREAM_KEEPALIVE_PING as O, profileErrorResponseSchema as Ot, resolveCustomMentionAliasOverride as P, listCenterAgentRoutineRunsResponseSchema as Pt, projectObservabilityWakeCorrelation as Q, spaceMemberDirectoryEntrySchema as Qt, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as R, updateCenterAgentRoutineResponseSchema as Rt, createRuntimeReportingApi as S, organizationDirectoryResponseSchema as St, resolveAccountSpaceIndexGatewayHost as T, authProfileKindSchema as Tt, getSpaceUpdatesResponseSchema as U, agentActivitySessionStatusSchema as Ut, sleep as V, agentActivityEventSchema as Vt, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as W, agentActivitySnapshotQuerySchema as Wt, spaceDispatchTraceResponseSchema as X, postSpaceMembersResponseSchema as Xt, spaceDispatchTraceDispatchStatusSchema as Y, leaveSpaceResponseSchema as Yt, observabilityWakeTraceSelectorSchema as Z, removeSpaceMembersResponseSchema as Zt, createOrganizationSkillsApi as _, startReplyReadinessSummarySchema as _n, listOrganizationSkillsResponseSchema as _t, buildSpaceAttachmentDownloadPath as a, observedLocalAgentSessionSchema as an, gatewayErrorEnvelopeSchema as at, createProjectsApi as b, agentControllerCollaborationModeSchema as bn, organizationSkillSummarySchema as bt, createAgentProfileBindingApi as c, listProjectsResponseSchema as cn, computerFileAccessDaemonFrameSchema as ct, createCurrentDeviceApi as d, centerAgentToolSpeakerSchema as dn, modelCatalogSchema as dt, agentActivityInventorySessionOriginSchema as en, ownerComputerDiagnosticsSchema as et, createFeedbackApi as f, openCodePermissionConfigSchema as fn, organizationSpaceDirectoryWithMemberCountsResponseSchema as ft, createOrganizationApi as g, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as gn, getOrganizationSkillResponseSchema as gt, createOpenMeldApiClient as h, START_ISO_DATE_TIME_SCHEMA as hn, spaceMetaSchema as ht, buildProfileSpaceHistoryUpsertPath as i, localAgentSessionProviderSchema as in, agentProfileCreationConfigurationSchema as it, parseEnvelope as j, submitFeedbackIssueResponseSchema as jt, DAEMON_STREAM_KEEPALIVE_PONG as k, organizationComputersResponseSchema as kt, createCenterAgentApi as l, projectSchema as ln, computerFileAccessPolicyInputSchema as lt, createLocalRuntimeExpectedRoutesApi as m, START_BOUNDED_VERSION_SCHEMA as mn, spaceCreatorSchema as mt, OpenMeldApiClientInvalidResponseError as n, agentActivitySessionInventoryQuerySchema as nn, summarizeComputerFileAccessPolicy as nt, createAccountSpaceIndexApi as o, archiveProjectResponseSchema as on, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as ot, createFetchTransport as p, START_BOUNDED_ID_SCHEMA as pn, resolveInitialSpaceAccessMode as pt, resolveSpaceDispatchTraceRootCause as q, localProjectControlDaemonFrameSchema as qt, buildProfileSpaceHistoryStatusPath as r, agentActivitySessionInventoryResponseSchema as rn, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as rt, createAgentActivityApi as s, createProjectResponseSchema as sn, OPENMELD_RUNTIME_CAPABILITIES_HEADER as st, OpenMeldApiClientHttpError as t, agentActivityInventorySessionStatusSchema as tn, projectOwnerComputerLocalRuntimes as tt, createComputerFileAccessApi as u, updateProjectResponseSchema as un, computerFileAccessPolicySchema as ut, createPrepareReadinessApi as v, localAgentCatalogSchema as vn, organizationSkillBundleSchema as vt, dist_exports as w, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as wt, createRoutinesApi as x, toCompatibleSpaceAddressingRequestWireValue as xn, stringifyOrganizationSkillBundleCanonicalJson as xt, createProfileSpaceHistoryApi as y, agentControllerPermissionModeSchema as yn, organizationSkillReleaseSummarySchema as yt, buildOpenMeldRequestContextHeaders as z, AGENT_ACTIVITY_EVENT_MAX_BYTES as zt };
18207
18325
 
18208
- //# sourceMappingURL=dist-NJH-sDDB.js.map
18326
+ //# sourceMappingURL=dist-D2XcIIBd.js.map