openmeld 0.3.197 → 0.3.198

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 (37) hide show
  1. package/dist/{add-me-membership-C9uxzH84.js → add-me-membership-DKpC3EhG.js} +2 -2
  2. package/dist/{add-me-membership-C9uxzH84.js.map → add-me-membership-DKpC3EhG.js.map} +1 -1
  3. package/dist/{api-client-foundation-HPh7nYGY.js → api-client-foundation-DISAuROT.js} +3 -3
  4. package/dist/{api-client-foundation-HPh7nYGY.js.map → api-client-foundation-DISAuROT.js.map} +1 -1
  5. package/dist/{api-client-foundation-Cb6QKgs-.js → api-client-foundation-e3LardOA.js} +1 -1
  6. package/dist/auth-session-B7OGmKso.js +4 -0
  7. package/dist/{auth-session-nklLwM9D.js → auth-session-BjZX32Cm.js} +2 -2
  8. package/dist/{auth-session-nklLwM9D.js.map → auth-session-BjZX32Cm.js.map} +1 -1
  9. package/dist/{command-Wx88DamN.js → command-DlzTGCgU.js} +35 -29
  10. package/dist/command-DlzTGCgU.js.map +1 -0
  11. package/dist/{dist-B76WJQhX.js → dist-BNSY0PaP.js} +1 -1
  12. package/dist/{dist-Dec5o82m.js → dist-Mhy5FanK.js} +302 -26
  13. package/dist/dist-Mhy5FanK.js.map +1 -0
  14. package/dist/{elapsed-time-B3vpOQS9.js → elapsed-time-BVaAdO2f.js} +3 -3
  15. package/dist/{elapsed-time-B3vpOQS9.js.map → elapsed-time-BVaAdO2f.js.map} +1 -1
  16. package/dist/{installer-BPW3ruIA.js → installer-Cb6dJ-Dj.js} +3 -3
  17. package/dist/{installer-BPW3ruIA.js.map → installer-Cb6dJ-Dj.js.map} +1 -1
  18. package/dist/{openmeld-B-BIkyIh.js → openmeld-CcYTC54w.js} +41 -21
  19. package/dist/openmeld-CcYTC54w.js.map +1 -0
  20. package/dist/{openmeld-maintenance-worker-BhBB6171.js → openmeld-maintenance-worker-Bgn69UrV.js} +3 -3
  21. package/dist/{openmeld-maintenance-worker-BhBB6171.js.map → openmeld-maintenance-worker-Bgn69UrV.js.map} +1 -1
  22. package/dist/{openmeld-tools-update-coordinator-ClR_mpUt.js → openmeld-tools-update-coordinator-AKsXMm44.js} +10 -10
  23. package/dist/openmeld-tools-update-coordinator-AKsXMm44.js.map +1 -0
  24. package/dist/openmeld.js +3 -3
  25. package/dist/{runtime-transport-4qeDrtxw.js → runtime-transport-B22M3ZUl.js} +43 -6
  26. package/dist/runtime-transport-B22M3ZUl.js.map +1 -0
  27. package/dist/upgrade-SXadeUxr.js +4 -0
  28. package/dist/{upgrade-ClCCv6Hb.js → upgrade-i-HvIYsB.js} +4 -4
  29. package/dist/{upgrade-ClCCv6Hb.js.map → upgrade-i-HvIYsB.js.map} +1 -1
  30. package/package.json +2 -2
  31. package/dist/auth-session-CF4NC2v0.js +0 -4
  32. package/dist/command-Wx88DamN.js.map +0 -1
  33. package/dist/dist-Dec5o82m.js.map +0 -1
  34. package/dist/openmeld-B-BIkyIh.js.map +0 -1
  35. package/dist/openmeld-tools-update-coordinator-ClR_mpUt.js.map +0 -1
  36. package/dist/runtime-transport-4qeDrtxw.js.map +0 -1
  37. package/dist/upgrade-BnhBDhux.js +0 -4
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { C as resolveBuiltinAgentControllerConversationCapability, S as agentControllerConversationCapabilitySchema, b as normalizeKnownBuiltinAgentControllerId, h as agentControllerRefSchema, s as runtimeTransportModeSchema } from "./controller-contract-pe3_Re-c.js";
4
- import { $ as localFolderPickerRequestSchema, $n as spaceMentionLabelSourceSchema, $r as spaceAgentStreamPresenceSchema, $t as runtimeCoordinatorExecutionEventSchema, An as signalTextDataSchema, Ar as int, B as openMeldDaemonOriginalErrorSchema, Br as strictObject, Bt as localComponentUpdateProjectionSchema, Cr as NEVER, Ct as spacePublicationModeSchema, Di as openMeldWebUrlSchema, Dr as discriminatedUnion, Dt as targetWakeLifecycleIdentitySchema, Ei as openMeldNavigationTargetSchema, Er as coerce, Et as workingLanguageTagSchema, Fn as spaceAttachmentFileNameSchema, Fr as nullFactory, Gr as unknown, Hr as tuple, I as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, In as spaceAttachmentMimeTypeSchema, Ir as number, Jn as centerAgentInteractionSourceSchema, Jt as openMeldToolsUpdateRequestResultSchema, K as openMeldDaemonTaskResultProjectFailureContextSchema, Kr as url, Ln as spaceAttachmentSizeBytesSchema, Lr as object, Mn as wakeDeviceWaitTargetSchema, Mr as lazySchema, Mt as agentInteractionResponseSchema, Nn as spaceAttachmentDescriptorSchema, Nr as literal, On as signalStatusDataSchema, Or as email, Pn as spaceAttachmentDimensionSchema, Pr as neverFactory, Qn as spaceMentionLabelSchema, Qr as spaceAgentStreamPartFrameSchema, Qt as runtimeCoordinatorExecutionCreationDiagnosticSchema, Rn as spaceMessageAttachmentSchema, Rr as preprocess, Sr as uploadSpaceFileResponseSchema, St as spaceAllowedActionsSchema, Ti as computerSetupModeSchema, Tr as boolean, Tt as workingLanguageGuidanceSchema, Ur as undefinedFactory, Ut as openMeldToolsMaintenanceMutationResultSchema, V as openMeldDaemonProviderAccessEvidenceProviderSchema, Vr as string, Vt as localComponentUpdateStatusSchema, Wn as messageEnvelopeSchema, Wr as union, Wt as openMeldToolsMaintenanceProjectionSchema, Xr as agentStreamToolPartSchema, Xt as postSpaceWakeStopBodySchema, Yr as AGENT_STREAM_SNAPSHOT_MAX_CHARS, Zr as spaceAgentStreamDeltaFrameSchema, Zt as postSpaceWakeStopResponseSchema, _i as optionalBooleanQuerySchema, ai as spaceThreadSignalPlacementSchema, an as normalizeSpacePasswordText, at as agentTaskHandleSchema, br as trashSpaceFileEntryResponseSchema, cn as organizationProtectedInformationSchema, cr as publishSpaceComposerUploadResponseSchema, ct as buildAgentTaskKey, di as profileSchema, dn as executeExecutionRecoveryResponseSchema, dr as restoreSpaceFileEntryResponseSchema, dt as localAgentInstallationOptionSchema, ei as spaceAgentStreamSnapshotSchema, en as runtimeCoordinatorExecutionRecordSchema, er as SPACE_FILE_ERROR_CODES, et as localFolderPickerResultSchema, fi as profileWorkingDirectorySchema, fn as inspectExecutionRecoveryResponseSchema, fr as restoreSpaceFileRevisionResponseSchema, gi as nonEmptyTrimmedStringFromUnknown, hi as finiteIntegerNumber, hn as agentProfileWorkRecoveryActionKindSchema, hr as spaceFileMimeTypeSchema, ii as spaceThreadSchema, in as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, ir as getSpaceFileResponseSchema, it as agentTaskCompletionObservationSchema, jn as signalTextSchema, jr as iso, kn as signalSystemNoticeDataSchema, kr as enumFactory, kt as agentInteractionPendingSummarySchema, li as openMeldRuntimeProfileIdSchema, ln as updateOrganizationInformationProtectionPolicyBodySchema, lt as controllerAgentTaskHandleSchema, mi as uuidProfileIdSchema, mn as openMeldRequestContextSchema, mt as openMeldDaemonSyncRouteCatalogPayloadSchema, n as daemonExecutionCompatibilitySchema, ni as spaceThreadContextSchema, nr as createSpaceFolderResponseSchema, nt as agentDelegationSnapshotSchema, on as spacePasswordSchema, or as listSpaceFileRevisionsResponseSchema, ot as agentTaskTerminalOutcomeSchema, pi as profileWorkspaceModeSchema, pr as spaceFileDescriptorSchema, qn as conversationCompactionMarkerSchema, qr as clientMessageIdSchema$1, qt as openMeldToolsUpdateOperationSchema, ri as spaceThreadEventSchema, rn as spaceTraceExecutionIdentityProjectionSchema, rr as discardSpaceComposerUploadResponseSchema, rt as agentTaskCompletionConditionSchema, si as agentProfileIdSchema, sn as organizationInformationProtectionPolicyResponseSchema, sr as listSpaceFilesResponseSchema, st as areAgentTaskTerminalOutcomesEqual, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, ti as spaceAgentStreamTerminalFrameSchema, tr as SPACE_FILE_MAX_SIZE_BYTES, tt as localFolderPathSchema, ui as profileKindSchema, un as executeExecutionRecoveryBodySchema, ut as spaceWakeAgentTaskHandleSchema, vi as trimmedStringFromUnknown, vr as spaceMessageFileReferencesSchema, vt as dispatchExecutionSchema, wr as array, wt as spaceDispatchPolicySchema, xr as updateSpaceFileEntryResponseSchema, xt as resultArchivePolicySchema, yi as MAX_TEXT_LENGTH$1, yr as stageSpaceComposerUploadResponseSchema, zn as spaceMessageAttachmentsSchema, zr as record, zt as localComponentUpdatePolicySchema } from "./runtime-transport-4qeDrtxw.js";
4
+ import { $ as localFolderPickerRequestSchema, $n as spaceMentionLabelSchema, $r as clientMessageIdSchema$1, $t as runtimeCoordinatorExecutionCreationDiagnosticSchema, An as signalSystemNoticeDataSchema, Ar as array, At as agentInteractionPendingSummarySchema, B as openMeldDaemonOriginalErrorSchema, Bn as spaceMessageAttachmentsSchema, Br as neverFactory, Bt as localComponentUpdatePolicySchema, Ci as optionalBooleanQuerySchema, Ct as spaceAllowedActionsSchema, Dr as updateSpaceFileEntryResponseSchema, Dt as workingLanguageTagSchema, Er as trashSpaceFileEntryResponseSchema, Et as workingLanguageGuidanceSchema, Fn as spaceAttachmentDimensionSchema, Fr as enumFactory, Gn as messageEnvelopeSchema, Gr as record, Gt as openMeldToolsMaintenanceProjectionSchema, Hr as number, Ht as localComponentUpdateStatusSchema, I as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, In as spaceAttachmentFileNameSchema, Ir as int, Jn as conversationCompactionMarkerSchema, Jr as tuple, Jt as openMeldToolsUpdateOperationSchema, K as openMeldDaemonTaskResultProjectFailureContextSchema, Kr as strictObject, Ln as spaceAttachmentMimeTypeSchema, Lr as iso, Mi as openMeldNavigationTargetSchema, Mn as signalTextSchema, Mr as coerce, Ni as openMeldWebUrlSchema, Nn as wakeDeviceWaitTargetSchema, Nr as discriminatedUnion, Nt as agentInteractionResponseSchema, Or as uploadSpaceFileResponseSchema, Ot as targetWakeLifecycleIdentitySchema, Pn as spaceAttachmentDescriptorSchema, Pr as email, Qr as url, Qt as postSpaceWakeStopResponseSchema, Rn as spaceAttachmentSizeBytesSchema, Rr as lazySchema, Si as nonEmptyTrimmedStringFromUnknown, Sr as spaceFileNameSchema, St as resultArchivePolicySchema, Ti as MAX_TEXT_LENGTH$1, Tr as stageSpaceComposerUploadResponseSchema, Tt as spaceDispatchPolicySchema, Ur as object, V as openMeldDaemonProviderAccessEvidenceProviderSchema, Vr as nullFactory, Vt as localComponentUpdateProjectionSchema, Wr as preprocess, Wt as openMeldToolsMaintenanceMutationResultSchema, Xr as union, Yn as centerAgentInteractionSourceSchema, Yr as undefinedFactory, Yt as openMeldToolsUpdateRequestResultSchema, Zr as unknown, Zt as postSpaceWakeStopBodySchema, _i as profileSchema, _r as spaceFileActorSchema, ai as spaceAgentStreamPresenceSchema, an as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, ar as discardSpaceComposerUploadResponseSchema, at as agentTaskCompletionObservationSchema, bi as uuidProfileIdSchema, br as spaceFileEntryIdSchema, ci as spaceThreadContextSchema, cn as organizationInformationProtectionPolicyResponseSchema, cr as listSpaceFileRevisionsResponseSchema, ct as areAgentTaskTerminalOutcomesEqual, di as spaceThreadSignalPlacementSchema, dn as executeExecutionRecoveryBodySchema, dt as spaceWakeAgentTaskHandleSchema, en as runtimeCoordinatorExecutionEventSchema, er as spaceMentionLabelSourceSchema, et as localFolderPickerResultSchema, fn as executeExecutionRecoveryResponseSchema, ft as localAgentInstallationOptionSchema, gi as profileKindSchema, gn as agentProfileWorkRecoveryActionKindSchema, gr as spaceComposerUploadIdSchema, hi as openMeldRuntimeProfileIdSchema, hn as openMeldRequestContextSchema, hr as spaceComposerUploadDescriptorSchema, ht as openMeldDaemonSyncRouteCatalogPayloadSchema, ii as spaceAgentStreamPartFrameSchema, in as spaceTraceExecutionIdentityProjectionSchema, ir as createSpaceFolderResponseSchema, it as agentTaskCompletionConditionSchema, ji as computerSetupModeSchema, jn as signalTextDataSchema, jr as boolean, kn as signalStatusDataSchema, kr as NEVER, li as spaceThreadEventSchema, ln as organizationProtectedInformationSchema, lr as listSpaceFilesResponseSchema, lt as buildAgentTaskKey, mr as restoreSpaceFileRevisionResponseSchema, n as daemonExecutionCompatibilitySchema, ni as agentStreamToolPartSchema, nr as SPACE_FILE_MAX_SIZE_BYTES, nt as spaceCallerContextSchema, oi as spaceAgentStreamSnapshotSchema, on as normalizeSpacePasswordText, or as getSpaceFileResponseSchema, ot as agentTaskHandleSchema, pi as agentProfileIdSchema, pn as inspectExecutionRecoveryResponseSchema, pr as restoreSpaceFileEntryResponseSchema, qr as string, ri as spaceAgentStreamDeltaFrameSchema, rt as agentDelegationSnapshotSchema, si as spaceAgentStreamTerminalFrameSchema, sn as spacePasswordSchema, st as agentTaskTerminalOutcomeSchema, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, ti as AGENT_STREAM_SNAPSHOT_MAX_CHARS, tn as runtimeCoordinatorExecutionRecordSchema, tr as SPACE_FILE_ERROR_CODES, tt as localFolderPathSchema, ui as spaceThreadSchema, un as updateOrganizationInformationProtectionPolicyBodySchema, ur as publishSpaceComposerUploadResponseSchema, ut as controllerAgentTaskHandleSchema, vi as profileWorkingDirectorySchema, vr as spaceFileClientMutationIdSchema, wi as trimmedStringFromUnknown, wr as spaceMessageFileReferencesSchema, wt as spacePublicationModeSchema, xi as finiteIntegerNumber, xr as spaceFileMimeTypeSchema, yi as profileWorkspaceModeSchema, yr as spaceFileDescriptorSchema, yt as dispatchExecutionSchema, zn as spaceMessageAttachmentSchema, zr as literal } from "./runtime-transport-B22M3ZUl.js";
5
5
  import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
6
6
  import { n as toErrorMessage$3 } from "./dist-o3UL1EGQ.js";
7
7
  import * as z$1 from "zod/v4";
@@ -93,6 +93,36 @@ function omitJsonField(value, fieldName) {
93
93
  return Object.fromEntries(Object.entries(value).filter(([key]) => key !== fieldName));
94
94
  }
95
95
  //#endregion
96
+ //#region ../../packages/schemas/dist/schemas/http/space-link-previews.js
97
+ const previewUrlSchema = z$1.url().max(4096).refine((value) => {
98
+ const url = new URL(value);
99
+ return ["https:", "http:"].includes(url.protocol) && !url.username && !url.password;
100
+ });
101
+ const previewImageSchema = z$1.string().max(35e4).regex(/^data:image\/(?:png|jpeg|webp|gif|x-icon|vnd\.microsoft\.icon);base64,[A-Za-z0-9+/=]+$/).nullable();
102
+ z$1.object({
103
+ spaceId: z$1.string().regex(/^[0-9a-f]{64}$/),
104
+ signalId: z$1.string().min(1).max(256)
105
+ }).strict();
106
+ z$1.object({
107
+ signalId: z$1.string(),
108
+ revision: z$1.number().int().nonnegative(),
109
+ urls: z$1.array(previewUrlSchema).max(12)
110
+ }).strict();
111
+ const linkPreviewSchema = z$1.object({
112
+ url: previewUrlSchema,
113
+ title: z$1.string().max(300).nullable(),
114
+ description: z$1.string().max(500).nullable(),
115
+ siteName: z$1.string().max(100).nullable(),
116
+ image: previewImageSchema,
117
+ icon: previewImageSchema,
118
+ status: z$1.enum(["available", "unavailable"])
119
+ }).strict();
120
+ const getSpaceLinkPreviewsResponseSchema = z$1.object({
121
+ signalId: z$1.string(),
122
+ revision: z$1.number().int().nonnegative(),
123
+ previews: z$1.array(linkPreviewSchema).max(12)
124
+ }).strict();
125
+ //#endregion
96
126
  //#region ../../packages/schemas/dist/schemas/space-mesh/message-reaction.js
97
127
  const spaceReactionActorSchema = z$1.object({
98
128
  profileId: z$1.string().min(1),
@@ -230,7 +260,9 @@ const spaceMessageMutationBodySchema = z$1.discriminatedUnion("action", [
230
260
  expectedRevision: z$1.number().int().nonnegative(),
231
261
  text: z$1.string().max(MAX_TEXT_LENGTH$1),
232
262
  retainedFileIds: z$1.array(z$1.string().min(1)).optional(),
233
- retainedAttachmentIds: z$1.array(z$1.string().min(1)).optional()
263
+ retainedAttachmentIds: z$1.array(z$1.string().min(1)).optional(),
264
+ messageEnvelope: messageEnvelopeSchema.optional(),
265
+ addedFiles: spaceMessageFileReferencesSchema.optional()
234
266
  }),
235
267
  z$1.strictObject({
236
268
  action: z$1.literal("recall"),
@@ -239,6 +271,59 @@ const spaceMessageMutationBodySchema = z$1.discriminatedUnion("action", [
239
271
  z$1.strictObject({ action: z$1.literal("restore_draft") })
240
272
  ]);
241
273
  const spaceMessageMutationResponseSchema = z$1.strictObject({ message: signalTextEnvelopeSchema });
274
+ //#endregion
275
+ //#region ../../packages/schemas/dist/schemas/http/space-file-upload.js
276
+ const SPACE_FILE_UPLOAD_PART_BYTES = 8 * 1024 * 1024;
277
+ const spaceFileUploadMetadataSchema = object({
278
+ mimeType: spaceFileMimeTypeSchema,
279
+ sizeBytes: number().int().min(1).max(SPACE_FILE_MAX_SIZE_BYTES),
280
+ partDigests: array(string().regex(/^[a-f0-9]{64}$/u)).min(1).max(32),
281
+ target: discriminatedUnion("kind", [
282
+ object({
283
+ kind: literal("composer"),
284
+ name: spaceFileNameSchema
285
+ }),
286
+ object({
287
+ kind: literal("file"),
288
+ clientMutationId: spaceFileClientMutationIdSchema,
289
+ name: spaceFileNameSchema,
290
+ parentId: spaceFileEntryIdSchema.nullable()
291
+ }),
292
+ object({
293
+ kind: literal("revision"),
294
+ clientMutationId: spaceFileClientMutationIdSchema,
295
+ fileId: spaceFileEntryIdSchema,
296
+ baseRevision: number().int().min(1)
297
+ })
298
+ ])
299
+ });
300
+ discriminatedUnion("action", [
301
+ object({
302
+ action: literal("start"),
303
+ metadata: spaceFileUploadMetadataSchema
304
+ }),
305
+ object({ action: literal("status") }),
306
+ object({
307
+ action: literal("part"),
308
+ partNumber: number().int().min(1).max(32)
309
+ }),
310
+ object({ action: literal("complete") }),
311
+ object({ action: literal("cancel") })
312
+ ]);
313
+ const spaceFileUploadPartSchema = object({
314
+ partNumber: number().int().min(1).max(32),
315
+ etag: string().min(1),
316
+ sizeBytes: number().int().min(1).max(SPACE_FILE_UPLOAD_PART_BYTES)
317
+ });
318
+ const spaceFileUploadResponseSchema = object({
319
+ uploadId: spaceComposerUploadIdSchema,
320
+ expiresAt: string().datetime(),
321
+ partSizeBytes: literal(SPACE_FILE_UPLOAD_PART_BYTES),
322
+ parts: array(spaceFileUploadPartSchema),
323
+ file: spaceFileDescriptorSchema.optional(),
324
+ upload: spaceComposerUploadDescriptorSchema.optional(),
325
+ cancelled: boolean().optional()
326
+ });
242
327
  z$1.strictObject({
243
328
  startSignalId: z$1.string().min(1).max(200).optional(),
244
329
  endSignalId: z$1.string().min(1).max(200).optional()
@@ -4357,6 +4442,7 @@ const organizationDirectoryAgentProfileIdentitySchema = strictObject({
4357
4442
  createdByUserId: nullableTrimmedStringSchema$7,
4358
4443
  creatorProfileId: nullableTrimmedStringSchema$7,
4359
4444
  lastUsedAt: union([ISO_DATE_TIME_SCHEMA$10, nullFactory()]),
4445
+ lastTaskActivityAt: ISO_DATE_TIME_SCHEMA$10.nullable().optional(),
4360
4446
  createdAt: ISO_DATE_TIME_SCHEMA$10,
4361
4447
  updatedAt: ISO_DATE_TIME_SCHEMA$10
4362
4448
  });
@@ -4367,22 +4453,32 @@ const organizationDirectoryAgentProfileSchema = organizationDirectoryAgentProfil
4367
4453
  });
4368
4454
  const organizationProfileDirectoryAgentProfileSchema = organizationDirectoryAgentProfileIdentitySchema.extend({
4369
4455
  agentControllerRef: nullableTrimmedStringSchema$7,
4456
+ modelSelection: agentProfileBindingModelSelectionSchema.nullable().optional(),
4370
4457
  isCenterAgent: boolean().optional()
4371
4458
  });
4372
4459
  strictObject({
4460
+ includeTaskActivity: boolean().optional(),
4461
+ includeMemberLastActiveAt: boolean().optional(),
4462
+ includeModelSelection: boolean().optional()
4463
+ });
4464
+ strictObject({
4465
+ taskActivitySince: ISO_DATE_TIME_SCHEMA$10.optional(),
4373
4466
  organizationId: trimmedNonEmptyStringSchema$14,
4374
4467
  generatedAt: ISO_DATE_TIME_SCHEMA$10,
4375
4468
  members: array(organizationDirectoryMemberSchema),
4376
4469
  agentProfiles: array(organizationProfileDirectoryAgentProfileSchema)
4377
4470
  });
4471
+ const organizationAgentRuntimeOverviewItemSchema = strictObject({
4472
+ profileId: agentProfileIdSchema,
4473
+ lastTaskActivityAt: ISO_DATE_TIME_SCHEMA$10.nullable().optional(),
4474
+ operationalContext: organizationDirectoryAgentProfileOperationalContextSchema.optional(),
4475
+ readiness: getAgentExecutionReadinessResponseSchema
4476
+ });
4378
4477
  strictObject({
4379
4478
  organizationId: trimmedNonEmptyStringSchema$14,
4380
4479
  generatedAt: ISO_DATE_TIME_SCHEMA$10,
4381
- agentProfiles: array(strictObject({
4382
- profileId: agentProfileIdSchema,
4383
- operationalContext: organizationDirectoryAgentProfileOperationalContextSchema.optional(),
4384
- readiness: getAgentExecutionReadinessResponseSchema
4385
- }))
4480
+ taskActivitySince: ISO_DATE_TIME_SCHEMA$10.optional(),
4481
+ agentProfiles: array(organizationAgentRuntimeOverviewItemSchema)
4386
4482
  });
4387
4483
  const organizationDirectoryResponseSchema = strictObject({
4388
4484
  organizationId: trimmedNonEmptyStringSchema$14,
@@ -4809,8 +4905,8 @@ const trimmedNonEmptyStringSchema$13 = z$1.string().trim().min(1);
4809
4905
  const isoDateTimeSchema$6 = z$1.iso.datetime({ offset: true });
4810
4906
  const MAX_SPACE_GUIDE_LENGTH = 4e3;
4811
4907
  const spaceOrganizationVisibilitySchema = z$1.enum(["public", "private"]);
4812
- function resolveInitialSpaceAccessMode(visibility) {
4813
- return visibility === "private" ? "members_only" : "public";
4908
+ function resolveInitialSpaceAccessMode(_visibility) {
4909
+ return "members_only";
4814
4910
  }
4815
4911
  const spaceCreatorSchema = z$1.strictObject({
4816
4912
  profileId: openMeldRuntimeProfileIdSchema,
@@ -4845,6 +4941,8 @@ const spaceMetaSchema = z$1.strictObject({
4845
4941
  purpose: trimmedNonEmptyStringSchema$13.optional(),
4846
4942
  directMessage: spaceDirectMessageMetaSchema.optional(),
4847
4943
  creator: spaceCreatorSchema.optional(),
4944
+ ownerUserIds: z$1.array(trimmedNonEmptyStringSchema$13).optional(),
4945
+ allowGuests: z$1.boolean().optional(),
4848
4946
  guide: trimmedNonEmptyStringSchema$13.optional(),
4849
4947
  accessMode: spaceAccessModeSchema.optional(),
4850
4948
  passwordProtected: z$1.boolean().optional(),
@@ -4855,16 +4953,23 @@ const spaceMetaSchema = z$1.strictObject({
4855
4953
  const patchSpaceMetaResponseSchema = spaceMetaSchema;
4856
4954
  const patchSpaceMetaBodySchema = z$1.strictObject({
4857
4955
  visibility: spaceOrganizationVisibilitySchema.optional(),
4956
+ allowGuests: z$1.boolean().optional(),
4957
+ ownership: z$1.strictObject({
4958
+ userId: trimmedNonEmptyStringSchema$13,
4959
+ role: z$1.enum(["owner", "member"])
4960
+ }).optional(),
4858
4961
  name: spaceNameSchema.optional(),
4859
4962
  purpose: z$1.string().optional(),
4860
4963
  guide: z$1.string().max(MAX_SPACE_GUIDE_LENGTH).optional()
4861
4964
  }).superRefine((value, ctx) => {
4862
- if (value.name !== void 0 || value.visibility !== void 0 || value.purpose !== void 0 || value.guide !== void 0) return;
4965
+ if (value.ownership !== void 0 || value.allowGuests !== void 0 || value.name !== void 0 || value.visibility !== void 0 || value.purpose !== void 0 || value.guide !== void 0) return;
4863
4966
  ctx.addIssue({
4864
4967
  code: "custom",
4865
4968
  message: "Expected name, purpose, guide or visibility"
4866
4969
  });
4867
4970
  }).transform((value) => ({
4971
+ ...value.allowGuests === void 0 ? {} : { allowGuests: value.allowGuests },
4972
+ ...value.ownership === void 0 ? {} : { ownership: value.ownership },
4868
4973
  ...value.visibility === void 0 ? {} : { visibility: value.visibility },
4869
4974
  ...value.name === void 0 ? {} : { name: value.name },
4870
4975
  ...value.purpose === void 0 ? {} : { purpose: value.purpose },
@@ -7058,6 +7163,7 @@ const centerAgentContextScopePlanSchema = strictObject({
7058
7163
  v: literal(1)
7059
7164
  });
7060
7165
  const remoteAgentTurnEnvelopePersonSenderShape = {
7166
+ callerContext: spaceCallerContextSchema.optional(),
7061
7167
  id: nonEmptyStringSchema$1,
7062
7168
  displayName: nonEmptyStringSchema$1,
7063
7169
  ownerUserId: nonEmptyStringSchema$1.optional(),
@@ -8172,6 +8278,8 @@ const getSpaceStatusResponseSchema = z$1.object({
8172
8278
  spacePurpose: optionalTrimmedStringSchema$1,
8173
8279
  directMessageConvertedAt: isoDateTimeSchema$2.optional(),
8174
8280
  organizationVisibility: spaceOrganizationVisibilitySchema.optional(),
8281
+ ownerUserIds: z$1.array(z$1.string().min(1)).optional(),
8282
+ allowGuests: z$1.boolean().optional(),
8175
8283
  accessMode: spaceAccessModeSchema,
8176
8284
  passwordProtected: z$1.boolean(),
8177
8285
  dispatchPolicy: spaceDispatchPolicySchema,
@@ -8196,6 +8304,7 @@ const optionalThreadSignalLimitSchema = z$1.preprocess((value) => {
8196
8304
  return decimalIntegerPattern.test(normalized) ? Number.parseInt(normalized, 10) : NaN;
8197
8305
  }, z$1.number().int().min(1).max(100).optional());
8198
8306
  const listSpaceThreadSignalsQuerySchema = z$1.strictObject({
8307
+ includeWakeContinuation: z$1.preprocess((value) => value === "true" ? true : value, z$1.literal(true).optional()),
8199
8308
  afterSignalId: optionalThreadSignalAnchorSchema,
8200
8309
  limit: optionalThreadSignalLimitSchema
8201
8310
  }).superRefine((value, ctx) => {
@@ -8230,10 +8339,12 @@ const listSpaceThreadsResponseSchema = z$1.strictObject({
8230
8339
  previews: z$1.array(spaceThreadPreviewSchema).default([])
8231
8340
  });
8232
8341
  const listSpaceThreadSignalsResponseSchema = z$1.strictObject({
8342
+ wakeContinuation: z$1.strictObject({ targetProfileId: z$1.string().min(1).nullable() }).optional(),
8233
8343
  signals: z$1.array(signalEnvelopeSchema),
8234
8344
  placements: z$1.array(spaceThreadSignalPlacementSchema)
8235
8345
  });
8236
8346
  const postSpaceThreadSignalBodySchema = z$1.strictObject({
8347
+ threadWakeContinuation: z$1.literal(true).optional(),
8237
8348
  text: signalTextSchema.shape.data.shape.text,
8238
8349
  deviceWait: signalTextSchema.shape.data.shape.deviceWait.optional(),
8239
8350
  files: signalTextSchema.shape.data.shape.files.optional(),
@@ -12701,7 +12812,11 @@ const spaceEntryTargetSchema = z$1.strictObject({
12701
12812
  });
12702
12813
  const spaceEntryAllowedViewSchema = z$1.strictObject({
12703
12814
  state: z$1.literal("allowed"),
12704
- experience: z$1.enum(["member", "public"])
12815
+ experience: z$1.enum([
12816
+ "member",
12817
+ "public",
12818
+ "guest"
12819
+ ])
12705
12820
  });
12706
12821
  const spaceEntryBlockedViewSchema = z$1.discriminatedUnion("state", [
12707
12822
  z$1.strictObject({ state: z$1.literal("sign_in_required") }),
@@ -12740,6 +12855,19 @@ const getSpaceEntryResolutionResponseSchema = z$1.strictObject({
12740
12855
  recovery: spaceEntryRecoverySchema.nullable()
12741
12856
  });
12742
12857
  //#endregion
12858
+ //#region ../../packages/schemas/dist/schemas/http/space-file-update-settings.js
12859
+ const spaceFileUpdateSettingsSchema = z$1.strictObject({
12860
+ fileId: spaceFileEntryIdSchema,
12861
+ version: z$1.number().int().nonnegative(),
12862
+ recipientProfileIds: z$1.array(z$1.string().trim().min(1)).max(50),
12863
+ configuredBy: spaceFileActorSchema.nullable()
12864
+ });
12865
+ z$1.discriminatedUnion("action", [z$1.strictObject({ action: z$1.literal("read") }), z$1.strictObject({
12866
+ action: z$1.literal("configure"),
12867
+ baseVersion: z$1.number().int().nonnegative(),
12868
+ recipientProfileIds: z$1.array(z$1.string().trim().min(1)).max(50)
12869
+ })]);
12870
+ //#endregion
12743
12871
  //#region ../../packages/schemas/dist/schemas/http/space-wake-trace-waterfall.js
12744
12872
  const optionalSelectorSchema$1 = z$1.preprocess((value) => {
12745
12873
  const normalized = String(value ?? "").trim();
@@ -13424,6 +13552,9 @@ const getActiveSpaceWakeProgressResponseSchema = z$1.strictObject({
13424
13552
  items: z$1.array(wakeProgressItemSchema)
13425
13553
  });
13426
13554
  //#endregion
13555
+ //#region ../../packages/schemas/dist/space-access-version.js
13556
+ const SPACE_ACCESS_VERSION_HEADER = "x-openmeld-space-access-version";
13557
+ //#endregion
13427
13558
  //#region ../../packages/gateway-contract/dist/index.js
13428
13559
  const OPENMELD_HEADER_REQUEST_ID = "x-openmeld-request-id";
13429
13560
  const OPENMELD_HEADER_CALLER_PRINCIPAL_ID = "x-openmeld-caller-principal-id";
@@ -17309,10 +17440,13 @@ function buildSpaceThreadEventsPath(spaceId, threadId) {
17309
17440
  function buildSpaceThreadSignalsPath(spaceId, threadId, query) {
17310
17441
  const path = `${buildSpaceThreadPath(spaceId, threadId)}/signals`;
17311
17442
  if (!query) return path;
17312
- return `${path}?${new URLSearchParams({
17313
- afterSignalId: query.afterSignalId,
17314
- limit: String(query.limit)
17315
- }).toString()}`;
17443
+ const searchParams = new URLSearchParams();
17444
+ if (query.afterSignalId && query.limit !== void 0) {
17445
+ searchParams.set("afterSignalId", query.afterSignalId);
17446
+ searchParams.set("limit", String(query.limit));
17447
+ }
17448
+ if (query.includeWakeContinuation) searchParams.set("includeWakeContinuation", "true");
17449
+ return `${path}?${searchParams.toString()}`;
17316
17450
  }
17317
17451
  function buildSpaceRoutePath(spaceId, segment) {
17318
17452
  return `/v1/spaces/${encodeURIComponent(spaceId)}/${segment}`;
@@ -17418,6 +17552,9 @@ function toRequestBody$1(bytes) {
17418
17552
  function readRequestBodySize(body) {
17419
17553
  return body instanceof Blob ? body.size : body.byteLength;
17420
17554
  }
17555
+ function currentSpaceAccessHeaders() {
17556
+ return { [SPACE_ACCESS_VERSION_HEADER]: "1" };
17557
+ }
17421
17558
  function currentSpaceAddressingHeaders(contentType) {
17422
17559
  return {
17423
17560
  ...contentType ? { "content-type": contentType } : {},
@@ -17534,7 +17671,10 @@ async function getSpaceBootstrap(client, input) {
17534
17671
  return await client.requestJson({
17535
17672
  url: buildSpaceBootstrapReadPath(input.spaceId, input.historyQuery, input.includeAgentStreamPresence),
17536
17673
  operation: "space.bootstrap.read",
17537
- headers: currentSpaceAddressingHeaders(),
17674
+ headers: {
17675
+ ...currentSpaceAddressingHeaders(),
17676
+ ...currentSpaceAccessHeaders()
17677
+ },
17538
17678
  requestContext: input.requestContext,
17539
17679
  signal: input.signal,
17540
17680
  timeoutMs: input.timeoutMs,
@@ -17557,7 +17697,10 @@ async function createSpace(client, input) {
17557
17697
  url: buildCreateSpacePath(),
17558
17698
  operation: "space.create",
17559
17699
  method: "POST",
17560
- headers: { "content-type": "application/json" },
17700
+ headers: {
17701
+ ...currentSpaceAccessHeaders(),
17702
+ "content-type": "application/json"
17703
+ },
17561
17704
  body: JSON.stringify(parsedBody.data),
17562
17705
  requestContext: input.requestContext,
17563
17706
  schema: createSpaceResponseSchema,
@@ -17649,6 +17792,83 @@ async function executeSpaceExecutionRecovery(client, input) {
17649
17792
  url: buildSpaceExecutionRecoveryPath(input.spaceId, input.dispatchId)
17650
17793
  });
17651
17794
  }
17795
+ async function spaceFileUpdateSettings(client, input) {
17796
+ const read = input.command.action === "read";
17797
+ return await client.requestJson({
17798
+ url: `/v1/spaces/${encodeURIComponent(input.spaceId)}/files/${encodeURIComponent(input.fileId)}/update-settings`,
17799
+ method: read ? "GET" : "PATCH",
17800
+ operation: "space.files.update-settings",
17801
+ headers: { "content-type": "application/json" },
17802
+ ...read ? {} : { body: JSON.stringify(input.command) },
17803
+ requestContext: input.requestContext,
17804
+ signal: input.signal,
17805
+ timeoutMs: input.timeoutMs,
17806
+ ...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },
17807
+ schema: spaceFileUpdateSettingsSchema,
17808
+ invalidMessage: "Invalid file update settings response"
17809
+ });
17810
+ }
17811
+ function bodySize(body) {
17812
+ return body instanceof Blob ? body.size : body.byteLength;
17813
+ }
17814
+ async function mutationUploadId(mutation) {
17815
+ const hash = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(mutation));
17816
+ const hex = Array.from(new Uint8Array(hash), (b) => b.toString(16).padStart(2, "0")).join("");
17817
+ return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-4${hex.slice(13, 16)}-a${hex.slice(17, 20)}-${hex.slice(20, 32)}`;
17818
+ }
17819
+ async function uploadMultipart(client, input, target, uploadId) {
17820
+ const body = toRequestBody(input.bytes);
17821
+ const blob = body instanceof Blob ? body : new Blob([body]);
17822
+ const url = `/v1/spaces/${encodeURIComponent(input.spaceId)}/file-uploads/${uploadId}`;
17823
+ const request = async (command, part) => {
17824
+ return await retryUploadRequest(input.signal, () => client.requestJson({
17825
+ ...requestFields$1(input),
17826
+ url: command.action === "part" ? `${url}?part=${command.partNumber}` : url,
17827
+ method: "POST",
17828
+ operation: "space.files.upload",
17829
+ headers: { "content-type": part ? "application/octet-stream" : "application/json" },
17830
+ body: part ?? JSON.stringify(command),
17831
+ schema: spaceFileUploadResponseSchema,
17832
+ invalidMessage: "Invalid file upload response."
17833
+ }));
17834
+ };
17835
+ const partDigests = [];
17836
+ for (let offset = 0; offset < blob.size; offset += SPACE_FILE_UPLOAD_PART_BYTES) {
17837
+ input.signal?.throwIfAborted();
17838
+ const hash = await crypto.subtle.digest("SHA-256", await blob.slice(offset, offset + SPACE_FILE_UPLOAD_PART_BYTES).arrayBuffer());
17839
+ partDigests.push(Array.from(new Uint8Array(hash), (b) => b.toString(16).padStart(2, "0")).join(""));
17840
+ }
17841
+ let session = await request({
17842
+ action: "start",
17843
+ metadata: {
17844
+ target,
17845
+ mimeType: input.mimeType,
17846
+ sizeBytes: blob.size,
17847
+ partDigests
17848
+ }
17849
+ });
17850
+ if (session.file || session.upload) return session;
17851
+ input.onProgress?.(session.parts.reduce((n, p) => n + p.sizeBytes, 0), blob.size);
17852
+ for (let start = 0, number = 1; start < blob.size; start += session.partSizeBytes, number++) {
17853
+ if (session.parts.some((p) => p.partNumber === number)) continue;
17854
+ session = await request({
17855
+ action: "part",
17856
+ partNumber: number
17857
+ }, blob.slice(start, start + session.partSizeBytes));
17858
+ input.onProgress?.(session.parts.reduce((n, p) => n + p.sizeBytes, 0), blob.size);
17859
+ }
17860
+ return await request({ action: "complete" });
17861
+ }
17862
+ async function retryUploadRequest(signal, request) {
17863
+ for (let attempt = 0;; attempt++) try {
17864
+ signal?.throwIfAborted();
17865
+ return await request();
17866
+ } catch (error) {
17867
+ const status = error && typeof error === "object" && "status" in error ? error.status : void 0;
17868
+ if (signal?.aborted || attempt >= 2 || typeof status === "number" && status < 500 && status !== 429) throw error;
17869
+ await new Promise((resolve) => setTimeout(resolve, 250 * 2 ** attempt));
17870
+ }
17871
+ }
17652
17872
  async function listSpaceFiles(client, input) {
17653
17873
  const response = await client.requestJson({
17654
17874
  ...requestFields$1(input),
@@ -17755,6 +17975,16 @@ async function uploadSpaceFile(client, input) {
17755
17975
  const body = toRequestBody(input.bytes);
17756
17976
  validateSize(body);
17757
17977
  const mimeType = parseMimeType(input.mimeType);
17978
+ if (bodySize(body) > 10485760) {
17979
+ const response = await uploadMultipart(client, input, {
17980
+ kind: "file",
17981
+ clientMutationId: input.clientMutationId,
17982
+ name: input.name,
17983
+ parentId: input.parentId ?? null
17984
+ }, await mutationUploadId(input.clientMutationId));
17985
+ if (!response.file) throw new Error("The upload did not return a file.");
17986
+ return response.file;
17987
+ }
17758
17988
  return (await client.requestJson({
17759
17989
  ...requestFields$1(input),
17760
17990
  url: buildSpaceFileUploadPath(input),
@@ -17770,6 +18000,14 @@ async function stageSpaceComposerUpload(client, input) {
17770
18000
  const body = toRequestBody(input.bytes);
17771
18001
  validateSize(body);
17772
18002
  const mimeType = parseMimeType(input.mimeType);
18003
+ if (bodySize(body) > 10485760) {
18004
+ const response = await uploadMultipart(client, input, {
18005
+ kind: "composer",
18006
+ name: input.name
18007
+ }, input.uploadId);
18008
+ if (!response.upload) throw new Error("The upload did not return a staged file.");
18009
+ return response.upload;
18010
+ }
17773
18011
  return (await client.requestJson({
17774
18012
  ...requestFields$1(input),
17775
18013
  body,
@@ -17807,6 +18045,16 @@ async function updateSpaceFileContent(client, input) {
17807
18045
  const body = toRequestBody(input.bytes);
17808
18046
  validateSize(body);
17809
18047
  const mimeType = parseMimeType(input.mimeType);
18048
+ if (bodySize(body) > 10485760) {
18049
+ const response = await uploadMultipart(client, input, {
18050
+ kind: "revision",
18051
+ clientMutationId: input.clientMutationId,
18052
+ fileId: input.fileId,
18053
+ baseRevision: input.baseRevision
18054
+ }, await mutationUploadId(input.clientMutationId));
18055
+ if (!response.file) throw new Error("The upload did not return a file.");
18056
+ return response.file;
18057
+ }
17810
18058
  return (await client.requestJson({
17811
18059
  ...requestFields$1(input),
17812
18060
  url: buildSpaceFileContentPath(input.spaceId, input.fileId, {
@@ -17822,6 +18070,13 @@ async function updateSpaceFileContent(client, input) {
17822
18070
  })).file;
17823
18071
  }
17824
18072
  async function downloadSpaceFileContent(client, input) {
18073
+ const content = await streamSpaceFileContent(client, input);
18074
+ return {
18075
+ ...content,
18076
+ bytes: await new Response(content.bytes).arrayBuffer()
18077
+ };
18078
+ }
18079
+ async function streamSpaceFileContent(client, input) {
17825
18080
  const response = await client.requestResponse({
17826
18081
  ...requestFields$1(input),
17827
18082
  url: buildSpaceFileContentPath(input.spaceId, input.fileId, { revision: input.revision }),
@@ -17834,8 +18089,9 @@ async function downloadSpaceFileContent(client, input) {
17834
18089
  const mimeType = parseMimeType(response.headers.get("content-type") ?? "application/octet-stream");
17835
18090
  const revision = Number(response.headers.get("x-openmeld-file-revision"));
17836
18091
  if (!(Number.isInteger(revision) && revision > 0)) throw new Error("invalid Space file revision response header");
18092
+ if (!response.body) throw new Error("Space file download has no body.");
17837
18093
  return {
17838
- bytes: await response.arrayBuffer(),
18094
+ bytes: response.body,
17839
18095
  mimeType,
17840
18096
  revision
17841
18097
  };
@@ -17860,7 +18116,7 @@ function toRequestBody(bytes) {
17860
18116
  return copy.buffer;
17861
18117
  }
17862
18118
  function validateSize(body) {
17863
- if ((body instanceof Blob ? body.size : body.byteLength) > 10485760) throw new Error("Space files must be 10 MiB or smaller");
18119
+ if ((body instanceof Blob ? body.size : body.byteLength) > 262144e3) throw new Error("Space files must be 250 MiB or smaller");
17864
18120
  }
17865
18121
  function getSpaceHistoryNavigation(client, input) {
17866
18122
  const query = new URLSearchParams();
@@ -17890,6 +18146,20 @@ async function leaveSpace(client, input) {
17890
18146
  invalidMessage: "invalid leave space response"
17891
18147
  });
17892
18148
  }
18149
+ function getSpaceLinkPreviews(client, input) {
18150
+ const query = new URLSearchParams({ signalId: input.signalId });
18151
+ return client.requestJson({
18152
+ url: `/v1/spaces/${encodeURIComponent(input.spaceId)}/link-previews?${query}`,
18153
+ operation: "space.link_previews",
18154
+ method: "GET",
18155
+ requestContext: input.requestContext,
18156
+ signal: input.signal,
18157
+ timeoutMs: input.timeoutMs ?? 3e4,
18158
+ ...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },
18159
+ schema: getSpaceLinkPreviewsResponseSchema,
18160
+ invalidMessage: "Invalid link preview response."
18161
+ });
18162
+ }
17893
18163
  async function getSpaceMembersSnapshot(client, input) {
17894
18164
  return await client.requestJson({
17895
18165
  url: buildSpaceMembersPath(input.spaceId),
@@ -18045,6 +18315,8 @@ function requestFields(input) {
18045
18315
  }
18046
18316
  async function updateSpaceMeta(client, input) {
18047
18317
  const parsedBody = patchSpaceMetaBodySchema.safeParse({
18318
+ ...input.ownership === void 0 ? {} : { ownership: input.ownership },
18319
+ ...input.allowGuests === void 0 ? {} : { allowGuests: input.allowGuests },
18048
18320
  ...input.visibility === void 0 ? {} : { visibility: input.visibility },
18049
18321
  ...input.name === void 0 ? {} : { name: input.name },
18050
18322
  ...input.purpose === void 0 ? {} : { purpose: input.purpose },
@@ -18055,7 +18327,10 @@ async function updateSpaceMeta(client, input) {
18055
18327
  url: buildSpaceMetaPath(input.spaceId),
18056
18328
  operation: "space.meta.update",
18057
18329
  method: "PATCH",
18058
- headers: { "content-type": "application/json" },
18330
+ headers: {
18331
+ ...currentSpaceAccessHeaders(),
18332
+ "content-type": "application/json"
18333
+ },
18059
18334
  body: JSON.stringify(parsedBody.data),
18060
18335
  requestContext: input.requestContext,
18061
18336
  signal: input.signal,
@@ -18133,6 +18408,7 @@ async function getSpaceStatus(client, input) {
18133
18408
  return await client.requestJson({
18134
18409
  url: buildSpaceStatusPath(input.spaceId),
18135
18410
  operation: "space.status.read",
18411
+ headers: currentSpaceAccessHeaders(),
18136
18412
  requestContext: input.requestContext,
18137
18413
  signal: input.signal,
18138
18414
  timeoutMs: input.timeoutMs,
@@ -18206,16 +18482,13 @@ async function listSpaceThreadEvents(client, input) {
18206
18482
  }
18207
18483
  async function listSpaceThreadSignals(client, input) {
18208
18484
  const parsedQuery = listSpaceThreadSignalsQuerySchema.safeParse({
18485
+ includeWakeContinuation: input.includeWakeContinuation,
18209
18486
  afterSignalId: input.afterSignalId,
18210
18487
  limit: input.limit
18211
18488
  });
18212
18489
  if (!parsedQuery.success) throw new Error(parsedQuery.error.issues[0]?.message ?? "Invalid bounded thread signals query");
18213
- const hasBoundedQuery = parsedQuery.data.afterSignalId !== void 0;
18214
18490
  return await client.requestJson({
18215
- url: buildSpaceThreadSignalsPath(input.spaceId, input.threadId, hasBoundedQuery ? {
18216
- afterSignalId: parsedQuery.data.afterSignalId,
18217
- limit: parsedQuery.data.limit
18218
- } : void 0),
18491
+ url: buildSpaceThreadSignalsPath(input.spaceId, input.threadId, parsedQuery.data.afterSignalId || parsedQuery.data.includeWakeContinuation ? parsedQuery.data : void 0),
18219
18492
  operation: "space.thread.signals",
18220
18493
  method: "GET",
18221
18494
  headers: currentSpaceAddressingHeaders(),
@@ -18387,6 +18660,7 @@ const createSpaceApi = (client) => {
18387
18660
  uploadAttachment: async (input) => await uploadSpaceAttachment(client, input),
18388
18661
  listFiles: async (input) => await listSpaceFiles(client, input),
18389
18662
  getFile: async (input) => await getSpaceFile(client, input),
18663
+ fileUpdateSettings: async (input) => await spaceFileUpdateSettings(client, input),
18390
18664
  listFileRevisions: async (input) => await listSpaceFileRevisions(client, input),
18391
18665
  createFolder: async (input) => await createSpaceFolder(client, input),
18392
18666
  updateFileEntry: async (input) => await updateSpaceFileEntry(client, input),
@@ -18399,6 +18673,7 @@ const createSpaceApi = (client) => {
18399
18673
  discardComposerUpload: async (input) => await discardSpaceComposerUpload(client, input),
18400
18674
  updateFileContent: async (input) => await updateSpaceFileContent(client, input),
18401
18675
  downloadFileContent: async (input) => await downloadSpaceFileContent(client, input),
18676
+ streamFileContent: async (input) => await streamSpaceFileContent(client, input),
18402
18677
  removeMembers: async (input) => await removeSpaceMembers(client, input),
18403
18678
  setAccessMode: async (input) => await setSpaceAccessMode(client, input),
18404
18679
  updateMeta: async (input) => await updateSpaceMeta(client, input),
@@ -18424,6 +18699,7 @@ const createSpaceApi = (client) => {
18424
18699
  getMessageReactions: (input) => getSpaceMessageReactions(client, input),
18425
18700
  setMessageReaction: (input) => setSpaceMessageReaction(client, input),
18426
18701
  getMessageDetails: async (input) => await getSpaceMessageDetails(client, input),
18702
+ getLinkPreviews: (input) => getSpaceLinkPreviews(client, input),
18427
18703
  createDiagnosticReport: async (input) => await createSpaceDiagnosticReport(client, input),
18428
18704
  mutateMessage: (input) => mutateSpaceMessage(client, input),
18429
18705
  postNormalMessage: async (input) => await postSpaceNormalMessage(client, input),
@@ -18570,4 +18846,4 @@ function composeAbortSignals(parent, timeout) {
18570
18846
  //#endregion
18571
18847
  export { buildLocalFolderPickerPath as $, createAgentProfileCreationRequestBodySchema as $n, agentActivityInventorySessionOriginSchema as $r, createProjectsApi as $t, buildCurrentOrganizationDirectoryPath as A, OPENMELD_HEADER_PROFILE_ID as An, listCenterAgentRoutinesResponseSchema as Ar, createAccountSpaceIndexApi as At, buildCurrentOrganizationMessageChannelsPath as B, projectSpaceDispatchTraceFinalVisibleOutcome as Bn, agentActivitySnapshotResponseSchema as Br, createFetchTransport as Bt, buildCenterAgentSessionPath as C, DAEMON_STREAM_KEEPALIVE_PING as Cn, profileErrorResponseSchema as Cr, buildRoutineTargetSpacesPath as Ct, buildCurrentAgentProfileSessionRoute as D, parseIncoming as Dn, createCenterAgentRoutineResponseSchema as Dr, buildSpaceInboxReadThroughPath as Dt, buildComputerFileAccessUpdatePath as E, parseEnvelope as En, submitFeedbackIssueResponseSchema as Er, buildSpaceBootstrapReadPath as Et, buildCurrentOrganizationMessageChannelPath as F, toErrorMessage$2 as Fn, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Fr, createComputerFileAccessApi as Ft, buildFeedbackIssueSubmissionPath as G, observabilityWakeTraceSelectorSchema as Gn, postSpaceMembersResponseSchema as Gr, createOpenMeldApiClient as Gt, buildCurrentOrganizationSpacesWithMemberCountsPath as H, spaceDispatchTraceAttemptStatusSchema as Hn, localProjectControlDaemonFrameSchema as Hr, createLocalFolderPickerApi as Ht, buildCurrentOrganizationMessageChannelRegistrationPath as I, getSpaceUpdatesResponseSchema as In, agentActivityEventSchema as Ir, createConfigApi as It, buildInboxItemReadPath as J, ownerComputerDiagnosticsSchema as Jn, spaceMemberAgentWakeAvailabilitySchema as Jr, createOrganizationSkillsApi as Jt, buildInboxItemDismissPath as K, projectObservabilityWakeCorrelation as Kn, removeSpaceMembersResponseSchema as Kr, createOrganizationApi as Kt, buildCurrentOrganizationMessageChannelRegistrationPollPath as L, spaceEntryTargetSchema as Ln, agentActivityProviderSchema as Lr, createCurrentDeviceApi as Lt, buildCurrentOrganizationInformationProtectionPath as M, OPENMELD_HEADER_REQUEST_ID as Mn, resumeCenterAgentRoutineResponseSchema as Mr, createAgentProfileBindingApi as Mt, buildCurrentOrganizationLogoPath as N, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as Nn, updateCenterAgentRoutineResponseSchema as Nr, createAgentProfileWorkRecoveryApi as Nt, buildCurrentOrganizationCenterAgentMemoryWipeSelfPath as O, parseServerErrorFrame as On, deleteCenterAgentRoutineResponseSchema as Or, buildSpaceInboxSummaryPath as Ot, buildCurrentOrganizationMemberOpenMeldServiceStatusesPath as P, buildOpenMeldRequestContextHeaders as Pn, AGENT_ACTIVITY_EVENT_MAX_BYTES as Pr, createCenterAgentApi as Pt, buildInboxSummaryPath as Q, agentProfileCreationConfigurationSchema as Qn, spaceMemberKindSchema as Qr, createProfilesApi as Qt, buildCurrentOrganizationMessageChannelRegistrationsPath as R, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as Rn, agentActivitySessionStatusSchema as Rr, createDirectMessageApi as Rt, buildCenterAgentProfilePath as S, uploadSpaceFile as Sn, profileCapabilitiesResponseSchema as Sr, buildRoutineRunsPath as St, buildComputerFileAccessReadPath as T, MAX_TEXT_LENGTH as Tn, submitFeedbackIssueRequestSchema as Tr, buildSpaceAttachmentDownloadPath as Tt, buildDirectMessageConversionPath as U, spaceDispatchTraceDispatchStatusSchema as Un, localProjectControlDiscoverProjectsResponseSchema as Ur, createLocalProjectControlApi as Ut, buildCurrentOrganizationSpacesPath as V, resolveSpaceDispatchTraceRootCause as Vn, localProjectControlConnectionSchema as Vr, createInboxApi as Vt, buildDirectMessageSpacePath as W, spaceDispatchTraceResponseSchema as Wn, leaveSpaceResponseSchema as Wr, createLocalRuntimeExpectedRoutesApi as Wt, buildInboxPath as X, summarizeComputerFileAccessPolicy as Xn, spaceMemberDirectoryEntrySchema as Xr, createPrepareReadinessApi as Xt, buildInboxMarkAllReadPath as Y, projectOwnerComputerLocalRuntimes as Yn, spaceMemberDirectoryAllowedRelationsSchema as Yr, createOrganizationUsageApi as Yt, buildInboxPreferencesPath as Z, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as Zn, spaceMemberDirectorySchema as Zr, createProfileSpaceHistoryApi as Zt, buildCenterAgentDirectMessageSpacePath as _, localAgentCatalogSchema as _i, trashSpaceFileEntry as _n, organizationDirectoryResponseSchema as _r, buildProjectPath as _t, buildAgentActivitySessionsPath as a, archiveProjectResponseSchema as ai, getModelCatalog as an, computerFileAccessPolicySchema as ar, buildOrganizationDocumentsPath as at, buildCenterAgentMemberResearchPath as b, toCompatibleSpaceAddressingRequestWireValue as bi, updateSpaceMeta as bn, authProfileKindSchema as br, buildRoutinePausePath as bt, buildAgentProfileCreationApprovalPreferencePath as c, projectSchema as ci, listSpaceFiles as cn, resolveInitialSpaceAccessMode as cr, buildOrganizationSkillGitHubPreviewPath as ct, buildAgentProfileCreationRequestDecisionPath as d, openCodePermissionConfigSchema as di, readOrUpdateSpaceFilePins as dn, getOrganizationSkillResponseSchema as dr, buildOrganizationSkillsPath as dt, agentActivityInventorySessionStatusSchema as ei, createRoutinesApi as en, gatewayErrorEnvelopeSchema as er, buildLocalProjectControlPath as et, buildAgentProfileCreationRequestRetryPath as f, START_BOUNDED_ID_SCHEMA as fi, readOrUpdateSpaceMessagePins as fn, listOrganizationSkillsResponseSchema as fr, buildOrganizationUsageOverviewPath as ft, buildCenterAgentDesignationPath as g, startReplyReadinessSummarySchema as gi, toStructuredApiClientFailure as gn, stringifyOrganizationSkillBundleCanonicalJson as gr, buildProfileSpaceHistoryUpsertPath as gt, buildCenterAgentAuditJournalPath as h, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as hi, setSpaceAccessMode as hn, organizationSkillSummarySchema as hr, buildProfileSpaceHistoryStatusPath as ht, buildAccountSpaceIndexPath as i, observedLocalAgentSessionSchema as ii, downloadSpaceFileContent as in, computerFileAccessPolicyInputSchema as ir, buildOrganizationDocumentPath as it, buildCurrentOrganizationFeedbackReportingPolicyPath as j, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as jn, pauseCenterAgentRoutineResponseSchema as jr, createAgentActivityApi as jt, buildCurrentOrganizationComputersPath as k, resolveCustomMentionAliasOverride as kn, listCenterAgentRoutineRunsResponseSchema as kr, buildSpaceInboxUnreadTargetsPath as kt, buildAgentProfileCreationDefaultsPath as l, updateProjectResponseSchema as li, normalizeApiBaseUrl as ln, spaceCreatorSchema as lr, buildOrganizationSkillMaintainersPath as lt, buildAgentProfileWorkRecoveryRoute as m, START_ISO_DATE_TIME_SCHEMA as mi, resolveProfileSpaceHistoryGatewayHost as mn, organizationSkillReleaseSummarySchema as mr, buildProfileSpaceHistoryListPath as mt, OpenMeldApiClientInvalidResponseError as n, agentActivitySessionInventoryResponseSchema as ni, createSpaceApi as nn, OPENMELD_RUNTIME_CAPABILITIES_HEADER as nr, buildOrganizationDocumentApproveDraftPath as nt, buildAgentActivitySnapshotPath as o, createProjectResponseSchema as oi, getSpaceFile as on, modelCatalogSchema as or, buildOrganizationSkillEnabledPath as ot, buildAgentProfileCreationRequestsPath as p, START_BOUNDED_VERSION_SCHEMA as pi, resolveAccountSpaceIndexGatewayHost as pn, organizationSkillBundleSchema as pr, buildProfileRoute as pt, buildInboxItemPath as q, submitAgentControllerTaskLifecycleEventItemSchema as qn, resolvedSpaceMemberProfileSchema as qr, createOrganizationDocumentsApi as qt, buildAccountSpaceActiveWakeSummaryPath as r, localAgentSessionProviderSchema as ri, createSpaceFolder as rn, computerFileAccessDaemonFrameSchema as rr, buildOrganizationDocumentDiscardDraftPath as rt, buildAgentActivityStatsPath as s, listProjectsResponseSchema as si, listSpaceFileRevisions as sn, organizationSpaceDirectoryWithMemberCountsResponseSchema as sr, buildOrganizationSkillGitHubImportPath as st, OpenMeldApiClientHttpError as t, agentActivitySessionInventoryQuerySchema as ti, createRuntimeReportingApi as tn, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as tr, buildModelCatalogPath as tt, buildAgentProfileCreationRequestCancelPath as u, centerAgentToolSpeakerSchema as ui, publicSpaceUrls as un, spaceMetaSchema as ur, buildOrganizationSkillPath as ut, buildCenterAgentInboxReadThroughPath as v, agentControllerPermissionModeSchema as vi, updateSpaceFileContent as vn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as vr, buildProjectsPath as vt, buildCenterAgentSessionsPath as w, DAEMON_STREAM_KEEPALIVE_PONG as wn, organizationComputersResponseSchema as wr, buildRoutinesPath as wt, buildCenterAgentOperatingStatePath as x, uploadSpaceAttachment as xn, authProfileManagedRoleSchema as xr, buildRoutineResumePath as xt, buildCenterAgentInboxSummaryPath as y, agentControllerCollaborationModeSchema as yi, updateSpaceFileEntry as yn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as yr, buildRoutinePath as yt, buildCurrentOrganizationMessageChannelSetupRequestsPath as z, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as zn, agentActivitySnapshotQuerySchema as zr, createFeedbackApi as zt };
18572
18848
 
18573
- //# sourceMappingURL=dist-Dec5o82m.js.map
18849
+ //# sourceMappingURL=dist-Mhy5FanK.js.map