openmeld 0.3.72 → 0.3.74

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 { cn as agentControllerRefSchema, hn as __exportAll, tn as runtimeTransportModeSchema } from "./base-url-KfrIdedc.js";
4
- import { $ as localFolderPickerResultSchema, $n as organizationInformationProtectionPolicyResponseSchema, At as spaceAttachmentDescriptorSchema, Bn as runtimeCoordinatorExecutionCreationDiagnosticSchema, Bt as localAgentInstallationOptionSchema, Ct as signalStatusDataSchema, Dr as openMeldNavigationTargetSchema, Er as computerSetupModeSchema, Et as signalTextSchema, F as runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema, Ft as spaceMessageAttachmentSchema, G as openMeldDaemonTaskResultProjectFailureContextSchema, Gn as spaceTraceExecutionIdentityProjectionSchema, Hn as runtimeCoordinatorExecutionRecordSchema, I as runtimeTransportRuntimeCoordinatorHeadWaitingCategorySchema, In as postSpaceWakeStopBodySchema, It as spaceMessageAttachmentsSchema, Jn as spacePasswordSchema, Jt as spaceThreadContextSchema, Kn as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, L as runtimeTransportRuntimeCoordinatorHeadWaitingReasonCodeSchema, Ln as postSpaceWakeStopResponseSchema, Lt as conversationCompactionMarkerSchema, M as runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionSourceSchema, Mn as localComponentUpdatePolicySchema, Mt as spaceAttachmentFileNameSchema, N as runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema, Nn as localComponentUpdateProjectionSchema, Nt as spaceAttachmentMimeTypeSchema, Or as openMeldWebUrlSchema, P as runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema, Pn as localComponentUpdateStatusSchema, Pt as spaceAttachmentSizeBytesSchema, Q as localFolderPickerRequestSchema, Qn as spaceMentionLabelSourceSchema, R as runtimeTransportRuntimeCoordinatorHeadWaitingRecoveryActionSchema, Rn as clientMessageIdSchema$1, Sn as agentInteractionPendingSummarySchema, Tn as agentInteractionResponseSchema, Tt as signalTextDataSchema, Ut as openMeldDaemonSyncRouteCatalogPayloadSchema, V as openMeldDaemonProviderAccessEvidenceProviderSchema, Vn as runtimeCoordinatorExecutionEventSchema, Xt as spaceThreadSchema, Yt as spaceThreadEventSchema, Zn as spaceMentionLabelSchema, Zt as spaceThreadSignalPlacementSchema, _n as spaceAgentStreamPartFrameSchema, _r as nonEmptyTrimmedStringFromUnknown, an as workingLanguageTagSchema, at as agentTaskTerminalOutcomeSchema, bn as spaceAgentStreamTerminalFrameSchema, br as MAX_TEXT_LENGTH$1, cr as agentProfileIdSchema, ct as controllerAgentTaskHandleSchema, dn as messageEnvelopeSchema, dr as profileKindSchema, en as resultArchivePolicySchema, er as organizationProtectedInformationSchema, et as localFolderPathSchema, fr as profileSchema, gn as spaceAgentStreamDeltaFrameSchema, gr as finiteIntegerNumber, hn as agentStreamToolPartSchema, hr as uuidProfileIdSchema, in as workingLanguageGuidanceSchema, ir as inspectExecutionRecoveryResponseSchema, it as agentTaskHandleSchema, j as runtimeTransportRuntimeCoordinatorHeadLifecycleStatusSchema, jt as spaceAttachmentDimensionSchema, lt as spaceWakeAgentTaskHandleSchema, mn as AGENT_STREAM_SNAPSHOT_MAX_CHARS, mr as profileWorkspaceModeSchema, n as daemonExecutionCompatibilitySchema, nn as spacePublicationModeSchema, nr as executeExecutionRecoveryBodySchema, nt as agentTaskCompletionConditionSchema, on as targetWakeLifecycleIdentitySchema, or as openMeldRequestContextSchema, ot as areAgentTaskTerminalOutcomesEqual, pr as profileWorkingDirectorySchema, qn as normalizeSpacePasswordText, qt as dispatchExecutionSchema, rn as spaceDispatchPolicySchema, rr as executeExecutionRecoveryResponseSchema, rt as agentTaskCompletionObservationSchema, st as buildAgentTaskKey, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tn as spaceAllowedActionsSchema, tr as updateOrganizationInformationProtectionPolicyBodySchema, tt as agentDelegationSnapshotSchema, ur as openMeldRuntimeProfileIdSchema, vn as spaceAgentStreamPresenceSchema, vr as optionalBooleanQuerySchema, wt as signalSystemNoticeDataSchema, xt as centerAgentTaskReferenceSchema, yn as spaceAgentStreamSnapshotSchema, yr as trimmedStringFromUnknown, z as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, zt as centerAgentInteractionSourceSchema } from "./runtime-transport-CaAK1jo1.js";
4
+ import { $ as localFolderPickerResultSchema, $n as organizationInformationProtectionPolicyResponseSchema, At as spaceAttachmentDescriptorSchema, Bn as runtimeCoordinatorExecutionCreationDiagnosticSchema, Bt as localAgentInstallationOptionSchema, Ct as signalStatusDataSchema, Dr as openMeldNavigationTargetSchema, Er as computerSetupModeSchema, Et as signalTextSchema, F as runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema, Ft as spaceMessageAttachmentSchema, G as openMeldDaemonTaskResultProjectFailureContextSchema, Gn as spaceTraceExecutionIdentityProjectionSchema, Hn as runtimeCoordinatorExecutionRecordSchema, I as runtimeTransportRuntimeCoordinatorHeadWaitingCategorySchema, In as postSpaceWakeStopBodySchema, It as spaceMessageAttachmentsSchema, Jn as spacePasswordSchema, Jt as spaceThreadContextSchema, Kn as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, L as runtimeTransportRuntimeCoordinatorHeadWaitingReasonCodeSchema, Ln as postSpaceWakeStopResponseSchema, Lt as conversationCompactionMarkerSchema, M as runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionSourceSchema, Mn as localComponentUpdatePolicySchema, Mt as spaceAttachmentFileNameSchema, N as runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema, Nn as localComponentUpdateProjectionSchema, Nt as spaceAttachmentMimeTypeSchema, Or as openMeldWebUrlSchema, P as runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema, Pn as localComponentUpdateStatusSchema, Pt as spaceAttachmentSizeBytesSchema, Q as localFolderPickerRequestSchema, Qn as spaceMentionLabelSourceSchema, R as runtimeTransportRuntimeCoordinatorHeadWaitingRecoveryActionSchema, Rn as clientMessageIdSchema$1, Sn as agentInteractionPendingSummarySchema, Tn as agentInteractionResponseSchema, Tt as signalTextDataSchema, Ut as openMeldDaemonSyncRouteCatalogPayloadSchema, V as openMeldDaemonProviderAccessEvidenceProviderSchema, Vn as runtimeCoordinatorExecutionEventSchema, Xt as spaceThreadSchema, Yt as spaceThreadEventSchema, Zn as spaceMentionLabelSchema, Zt as spaceThreadSignalPlacementSchema, _n as spaceAgentStreamPartFrameSchema, _r as nonEmptyTrimmedStringFromUnknown, an as workingLanguageTagSchema, at as agentTaskTerminalOutcomeSchema, bn as spaceAgentStreamTerminalFrameSchema, br as MAX_TEXT_LENGTH$1, cr as agentProfileIdSchema, ct as controllerAgentTaskHandleSchema, dn as messageEnvelopeSchema, dr as profileKindSchema, en as resultArchivePolicySchema, er as organizationProtectedInformationSchema, et as localFolderPathSchema, fr as profileSchema, gn as spaceAgentStreamDeltaFrameSchema, gr as finiteIntegerNumber, hn as agentStreamToolPartSchema, hr as uuidProfileIdSchema, in as workingLanguageGuidanceSchema, ir as inspectExecutionRecoveryResponseSchema, it as agentTaskHandleSchema, j as runtimeTransportRuntimeCoordinatorHeadLifecycleStatusSchema, jt as spaceAttachmentDimensionSchema, lt as spaceWakeAgentTaskHandleSchema, mn as AGENT_STREAM_SNAPSHOT_MAX_CHARS, mr as profileWorkspaceModeSchema, n as daemonExecutionCompatibilitySchema, nn as spacePublicationModeSchema, nr as executeExecutionRecoveryBodySchema, nt as agentTaskCompletionConditionSchema, on as targetWakeLifecycleIdentitySchema, or as openMeldRequestContextSchema, ot as areAgentTaskTerminalOutcomesEqual, pr as profileWorkingDirectorySchema, qn as normalizeSpacePasswordText, qt as dispatchExecutionSchema, rn as spaceDispatchPolicySchema, rr as executeExecutionRecoveryResponseSchema, rt as agentTaskCompletionObservationSchema, st as buildAgentTaskKey, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tn as spaceAllowedActionsSchema, tr as updateOrganizationInformationProtectionPolicyBodySchema, tt as agentDelegationSnapshotSchema, ur as openMeldRuntimeProfileIdSchema, vn as spaceAgentStreamPresenceSchema, vr as optionalBooleanQuerySchema, wt as signalSystemNoticeDataSchema, xt as centerAgentTaskReferenceSchema, yn as spaceAgentStreamSnapshotSchema, yr as trimmedStringFromUnknown, z as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, zt as centerAgentInteractionSourceSchema } from "./runtime-transport-BxhzIxn4.js";
5
5
  import { r as daemonServiceLaneSchema } from "./service-contract-DZWQdPz5.js";
6
6
  import { z } from "zod/v4";
7
7
  //#region ../../packages/schemas/dist/agent-execution-readiness-impact-taxonomy.js
@@ -1951,6 +1951,17 @@ const MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS = 4e3;
1951
1951
  const nonEmptyStringSchema$4 = z.string().trim().min(1);
1952
1952
  const providerIdSchema = nonEmptyStringSchema$4.max(512);
1953
1953
  const timestampMsSchema$5 = z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
1954
+ const slackMessagePermalinkSchema = z.url().max(2048).refine(isSlackMessagePermalink, { message: "Slack permalinks must use an HTTPS slack.com host." });
1955
+ function isSlackMessagePermalink(value) {
1956
+ let url;
1957
+ try {
1958
+ url = new URL(value);
1959
+ } catch {
1960
+ return false;
1961
+ }
1962
+ const hostname = url.hostname.toLowerCase();
1963
+ return url.protocol === "https:" && !url.username && !url.password && (hostname === "slack.com" || hostname.endsWith(".slack.com"));
1964
+ }
1954
1965
  const messageChannelProviderSchema = z.enum(MESSAGE_CHANNEL_PROVIDERS);
1955
1966
  const messageChannelParticipantIdentitySchema = z.strictObject({
1956
1967
  connectionId: providerIdSchema,
@@ -3990,6 +4001,115 @@ z.strictObject({
3990
4001
  request: computerFileAccessUpdateRequestSchema
3991
4002
  });
3992
4003
  //#endregion
4004
+ //#region ../../packages/schemas/dist/schemas/protocol/hello.js
4005
+ const helloCapabilitiesSchema = z.object({ liveSignalHistory: z.boolean().optional() });
4006
+ z.object({
4007
+ type: z.literal("hello"),
4008
+ profile: profileSchema,
4009
+ capabilities: helloCapabilitiesSchema.optional()
4010
+ });
4011
+ const helloAckSchema = z.object({
4012
+ type: z.literal("system.hello.ack"),
4013
+ profile: profileSchema
4014
+ });
4015
+ //#endregion
4016
+ //#region ../../packages/schemas/dist/schemas/protocol/server-error.js
4017
+ const serverErrorFrameSchema = z.object({
4018
+ error: nonEmptyTrimmedStringFromUnknown,
4019
+ requestId: nonEmptyTrimmedStringFromUnknown.optional(),
4020
+ clientMessageId: clientMessageIdSchema$1.optional()
4021
+ });
4022
+ //#endregion
4023
+ //#region ../../packages/schemas/dist/schemas/protocol/envelope.js
4024
+ const baseEnvelopeShape = {
4025
+ v: z.literal(1),
4026
+ id: nonEmptyTrimmedStringFromUnknown,
4027
+ spaceId: nonEmptyTrimmedStringFromUnknown,
4028
+ ts: finiteIntegerNumber,
4029
+ profile: profileSchema
4030
+ };
4031
+ const presenceDataSchema = z.record(z.string(), z.unknown());
4032
+ const presenceEnvelopeSchema = z.object({
4033
+ ...baseEnvelopeShape,
4034
+ type: z.enum(["presence.join", "presence.quit"]),
4035
+ data: presenceDataSchema
4036
+ });
4037
+ const signalTextEnvelopeSchema = z.object({
4038
+ ...baseEnvelopeShape,
4039
+ type: z.literal("signal.text"),
4040
+ data: signalTextDataSchema
4041
+ });
4042
+ const signalStatusEnvelopeSchema = z.object({
4043
+ ...baseEnvelopeShape,
4044
+ type: z.literal("signal.status"),
4045
+ data: signalStatusDataSchema
4046
+ });
4047
+ const signalSystemNoticeEnvelopeSchema = z.object({
4048
+ ...baseEnvelopeShape,
4049
+ type: z.literal("signal.system_notice"),
4050
+ data: signalSystemNoticeDataSchema
4051
+ });
4052
+ const signalEnvelopeSchema = z.union([
4053
+ presenceEnvelopeSchema,
4054
+ signalTextEnvelopeSchema,
4055
+ signalStatusEnvelopeSchema,
4056
+ signalSystemNoticeEnvelopeSchema
4057
+ ]);
4058
+ const spaceLiveSignalFrameSchema = z.strictObject({
4059
+ type: z.literal("space.signal"),
4060
+ signal: signalEnvelopeSchema,
4061
+ history: z.strictObject({ persisted: z.boolean() }).optional(),
4062
+ threadContext: spaceThreadContextSchema.optional(),
4063
+ threadPlacement: spaceThreadSignalPlacementSchema.optional()
4064
+ });
4065
+ const spaceLiveInvalidationFrameSchema = z.strictObject({
4066
+ type: z.enum([
4067
+ "space.members.changed",
4068
+ "space.meta.changed",
4069
+ "agent.readiness.invalidated"
4070
+ ]),
4071
+ spaceId: nonEmptyTrimmedStringFromUnknown,
4072
+ version: finiteIntegerNumber,
4073
+ profileIds: z.array(nonEmptyTrimmedStringFromUnknown).optional(),
4074
+ agentProfileIds: z.array(nonEmptyTrimmedStringFromUnknown).optional(),
4075
+ reason: nonEmptyTrimmedStringFromUnknown.optional()
4076
+ });
4077
+ const incomingServerMessageSchema = z.union([
4078
+ signalEnvelopeSchema,
4079
+ spaceLiveSignalFrameSchema,
4080
+ spaceLiveInvalidationFrameSchema,
4081
+ spaceAgentStreamDeltaFrameSchema,
4082
+ spaceAgentStreamPartFrameSchema,
4083
+ spaceAgentStreamTerminalFrameSchema,
4084
+ helloAckSchema,
4085
+ serverErrorFrameSchema
4086
+ ]);
4087
+ //#endregion
4088
+ //#region ../../packages/schemas/dist/schemas/http/space-signals.js
4089
+ const signalTextRequestDataSchema = signalTextSchema.shape.data;
4090
+ z.enum([
4091
+ "user_authored",
4092
+ "system_emitted",
4093
+ "legacy_nullable"
4094
+ ]);
4095
+ const postNormalMessageBodySchema = z.strictObject({
4096
+ text: signalTextRequestDataSchema.shape.text,
4097
+ attachments: signalTextRequestDataSchema.shape.attachments.optional(),
4098
+ messageEnvelope: signalTextRequestDataSchema.shape.messageEnvelope.optional(),
4099
+ replyTo: signalTextRequestDataSchema.shape.replyTo.optional(),
4100
+ meta: signalTextRequestDataSchema.shape.meta.optional()
4101
+ }).superRefine((value, ctx) => {
4102
+ const parsed = signalTextRequestDataSchema.safeParse(value);
4103
+ if (parsed.success) return;
4104
+ const firstIssue = parsed.error.issues[0];
4105
+ ctx.addIssue({
4106
+ code: "custom",
4107
+ path: firstIssue?.path ?? [],
4108
+ message: firstIssue?.message ?? "Invalid normal message payload"
4109
+ });
4110
+ });
4111
+ const postNormalMessageResponseSchema = signalTextEnvelopeSchema;
4112
+ //#endregion
3993
4113
  //#region ../../packages/schemas/dist/schemas/http/center-agent-context-manifest.js
3994
4114
  const CENTER_AGENT_CONTEXT_MANIFEST_VERSION = "center_agent_context_manifest.v1";
3995
4115
  const CENTER_AGENT_CONTEXT_LOAD_RECEIPT_VERSION = "center_agent_context_load_receipt.v1";
@@ -5325,90 +5445,6 @@ const catchupResponseSchema = z.strictObject({
5325
5445
  };
5326
5446
  });
5327
5447
  //#endregion
5328
- //#region ../../packages/schemas/dist/schemas/protocol/hello.js
5329
- const helloCapabilitiesSchema = z.object({ liveSignalHistory: z.boolean().optional() });
5330
- z.object({
5331
- type: z.literal("hello"),
5332
- profile: profileSchema,
5333
- capabilities: helloCapabilitiesSchema.optional()
5334
- });
5335
- const helloAckSchema = z.object({
5336
- type: z.literal("system.hello.ack"),
5337
- profile: profileSchema
5338
- });
5339
- //#endregion
5340
- //#region ../../packages/schemas/dist/schemas/protocol/server-error.js
5341
- const serverErrorFrameSchema = z.object({
5342
- error: nonEmptyTrimmedStringFromUnknown,
5343
- requestId: nonEmptyTrimmedStringFromUnknown.optional(),
5344
- clientMessageId: clientMessageIdSchema$1.optional()
5345
- });
5346
- //#endregion
5347
- //#region ../../packages/schemas/dist/schemas/protocol/envelope.js
5348
- const baseEnvelopeShape = {
5349
- v: z.literal(1),
5350
- id: nonEmptyTrimmedStringFromUnknown,
5351
- spaceId: nonEmptyTrimmedStringFromUnknown,
5352
- ts: finiteIntegerNumber,
5353
- profile: profileSchema
5354
- };
5355
- const presenceDataSchema = z.record(z.string(), z.unknown());
5356
- const presenceEnvelopeSchema = z.object({
5357
- ...baseEnvelopeShape,
5358
- type: z.enum(["presence.join", "presence.quit"]),
5359
- data: presenceDataSchema
5360
- });
5361
- const signalTextEnvelopeSchema = z.object({
5362
- ...baseEnvelopeShape,
5363
- type: z.literal("signal.text"),
5364
- data: signalTextDataSchema
5365
- });
5366
- const signalStatusEnvelopeSchema = z.object({
5367
- ...baseEnvelopeShape,
5368
- type: z.literal("signal.status"),
5369
- data: signalStatusDataSchema
5370
- });
5371
- const signalSystemNoticeEnvelopeSchema = z.object({
5372
- ...baseEnvelopeShape,
5373
- type: z.literal("signal.system_notice"),
5374
- data: signalSystemNoticeDataSchema
5375
- });
5376
- const signalEnvelopeSchema = z.union([
5377
- presenceEnvelopeSchema,
5378
- signalTextEnvelopeSchema,
5379
- signalStatusEnvelopeSchema,
5380
- signalSystemNoticeEnvelopeSchema
5381
- ]);
5382
- const spaceLiveSignalFrameSchema = z.strictObject({
5383
- type: z.literal("space.signal"),
5384
- signal: signalEnvelopeSchema,
5385
- history: z.strictObject({ persisted: z.boolean() }).optional(),
5386
- threadContext: spaceThreadContextSchema.optional(),
5387
- threadPlacement: spaceThreadSignalPlacementSchema.optional()
5388
- });
5389
- const spaceLiveInvalidationFrameSchema = z.strictObject({
5390
- type: z.enum([
5391
- "space.members.changed",
5392
- "space.meta.changed",
5393
- "agent.readiness.invalidated"
5394
- ]),
5395
- spaceId: nonEmptyTrimmedStringFromUnknown,
5396
- version: finiteIntegerNumber,
5397
- profileIds: z.array(nonEmptyTrimmedStringFromUnknown).optional(),
5398
- agentProfileIds: z.array(nonEmptyTrimmedStringFromUnknown).optional(),
5399
- reason: nonEmptyTrimmedStringFromUnknown.optional()
5400
- });
5401
- const incomingServerMessageSchema = z.union([
5402
- signalEnvelopeSchema,
5403
- spaceLiveSignalFrameSchema,
5404
- spaceLiveInvalidationFrameSchema,
5405
- spaceAgentStreamDeltaFrameSchema,
5406
- spaceAgentStreamPartFrameSchema,
5407
- spaceAgentStreamTerminalFrameSchema,
5408
- helloAckSchema,
5409
- serverErrorFrameSchema
5410
- ]);
5411
- //#endregion
5412
5448
  //#region ../../packages/schemas/dist/schemas/runtime/center-agent-model.js
5413
5449
  const boundedIdentifierSchema$3 = z.string().trim().min(1).max(256);
5414
5450
  const centerAgentModelPreferenceSchema = z.discriminatedUnion("kind", [z.strictObject({ kind: z.literal("system_default") }), z.strictObject({
@@ -9331,25 +9367,34 @@ z.strictObject({
9331
9367
  spaceId: trimmedNonEmptyStringSchema$2,
9332
9368
  text: z.string().trim().min(1).max(MAX_TEXT_LENGTH$1)
9333
9369
  });
9370
+ const centerAgentRemoteAgentExecutionPublicationSourceSchema = z.strictObject({
9371
+ executionId: trimmedNonEmptyStringSchema$2.max(512),
9372
+ kind: z.literal("remote_agent_execution")
9373
+ });
9334
9374
  const centerAgentPublicationSourceSchema = z.discriminatedUnion("kind", [
9335
9375
  z.strictObject({
9336
9376
  documentId: trimmedNonEmptyStringSchema$2.max(256),
9337
9377
  kind: z.literal("organization_document")
9338
9378
  }),
9339
- z.strictObject({
9340
- executionId: trimmedNonEmptyStringSchema$2.max(512),
9341
- kind: z.literal("remote_agent_execution")
9342
- }),
9379
+ centerAgentRemoteAgentExecutionPublicationSourceSchema,
9343
9380
  z.strictObject({
9344
9381
  kind: z.literal("routine_run"),
9345
9382
  runId: trimmedNonEmptyStringSchema$2.max(256)
9346
9383
  })
9347
9384
  ]);
9348
- z.strictObject({
9385
+ const centerAgentSlackMessageBodyFields = {
9349
9386
  channelName: trimmedNonEmptyStringSchema$2.max(80),
9350
- publicationSource: centerAgentPublicationSourceSchema.optional(),
9351
9387
  speakerMember: centerAgentToolSpeakerSchema,
9352
9388
  text: z.string().trim().min(1).max(MAX_TEXT_LENGTH$1)
9389
+ };
9390
+ z.strictObject({
9391
+ ...centerAgentSlackMessageBodyFields,
9392
+ publicationSource: centerAgentPublicationSourceSchema.optional()
9393
+ });
9394
+ z.strictObject({
9395
+ ...centerAgentSlackMessageBodyFields,
9396
+ publicationSource: centerAgentRemoteAgentExecutionPublicationSourceSchema,
9397
+ threadTs: z.string().trim().regex(/^\d+\.\d+$/).max(32)
9353
9398
  });
9354
9399
  z.strictObject({
9355
9400
  includeBots: z.boolean().optional(),
@@ -10435,6 +10480,15 @@ const centerAgentInboxSourceTargetSchema = z.strictObject({
10435
10480
  message: "Center Agent Inbox targets must include both spaceId and signalId."
10436
10481
  });
10437
10482
  });
10483
+ const slackInboxSourceTargetSchema = z.strictObject({
10484
+ channelId: identifierSchema,
10485
+ kind: z.literal("message_channel"),
10486
+ messageId: identifierSchema,
10487
+ permalink: slackMessagePermalinkSchema,
10488
+ provider: z.literal("slack"),
10489
+ teamId: identifierSchema,
10490
+ threadRootMessageId: identifierSchema
10491
+ });
10438
10492
  const inboxSourceTargetSchema = z.discriminatedUnion("kind", [
10439
10493
  z.strictObject({
10440
10494
  kind: z.literal("space"),
@@ -10457,6 +10511,7 @@ const inboxSourceTargetSchema = z.discriminatedUnion("kind", [
10457
10511
  kind: z.literal("center_agent_task"),
10458
10512
  taskId: identifierSchema
10459
10513
  }),
10514
+ slackInboxSourceTargetSchema,
10460
10515
  centerAgentInboxSourceTargetSchema,
10461
10516
  z.strictObject({
10462
10517
  kind: z.literal("settings"),
@@ -11639,31 +11694,6 @@ const getSpaceMessageDetailsResponseSchema = z.strictObject({
11639
11694
  });
11640
11695
  clientMessageIdSchema$1.nullable();
11641
11696
  //#endregion
11642
- //#region ../../packages/schemas/dist/schemas/http/space-signals.js
11643
- const signalTextRequestDataSchema = signalTextSchema.shape.data;
11644
- z.enum([
11645
- "user_authored",
11646
- "system_emitted",
11647
- "legacy_nullable"
11648
- ]);
11649
- const postNormalMessageBodySchema = z.strictObject({
11650
- text: signalTextRequestDataSchema.shape.text,
11651
- attachments: signalTextRequestDataSchema.shape.attachments.optional(),
11652
- messageEnvelope: signalTextRequestDataSchema.shape.messageEnvelope.optional(),
11653
- replyTo: signalTextRequestDataSchema.shape.replyTo.optional(),
11654
- meta: signalTextRequestDataSchema.shape.meta.optional()
11655
- }).superRefine((value, ctx) => {
11656
- const parsed = signalTextRequestDataSchema.safeParse(value);
11657
- if (parsed.success) return;
11658
- const firstIssue = parsed.error.issues[0];
11659
- ctx.addIssue({
11660
- code: "custom",
11661
- path: firstIssue?.path ?? [],
11662
- message: firstIssue?.message ?? "Invalid normal message payload"
11663
- });
11664
- });
11665
- const postNormalMessageResponseSchema = signalTextEnvelopeSchema;
11666
- //#endregion
11667
11697
  //#region ../../packages/schemas/dist/schemas/http/space-updates.js
11668
11698
  const DECIMAL_INTEGER_REGEX = /^\d+$/u;
11669
11699
  const updatesLimitSchema = z.preprocess((value) => {
@@ -11810,6 +11840,7 @@ const OPENMELD_HEADER_AUTO_RELAY_DEPTH = "x-openmeld-auto-relay-depth";
11810
11840
  const OPENMELD_HEADER_VISITED_PROFILE_IDS = "x-openmeld-visited-profile-ids";
11811
11841
  const OPENMELD_HEADER_VISITED_PROFILE_IDS_HASH = "x-openmeld-visited-profile-ids-hash";
11812
11842
  const OPENMELD_HEADER_FORWARDED_BY = "x-openmeld-forwarded-by";
11843
+ const OPENMELD_HEADER_INBOX_SOURCE_TARGET_VERSION = "x-openmeld-inbox-source-target-version";
11813
11844
  const OPENMELD_HEADER_TEXT_ENCODING_PREFIX = "utf-8''";
11814
11845
  const PRINTABLE_ASCII_PATTERN = /^[\x20-\x7e]*$/;
11815
11846
  /**
@@ -13692,6 +13723,7 @@ const createInboxApi = (client) => ({
13692
13723
  const params = requireValidInput$5(inboxItemRouteParamsSchema, { itemId: input.itemId }, "Inbox item request is invalid.");
13693
13724
  return await client.requestJson({
13694
13725
  ...requestOptions$7(input),
13726
+ headers: inboxSourceTargetVersionHeaders(),
13695
13727
  invalidMessage: "invalid Inbox item response",
13696
13728
  method: "GET",
13697
13729
  operation: "inbox.item.get",
@@ -13707,6 +13739,7 @@ const createInboxApi = (client) => ({
13707
13739
  }, "Inbox list request is invalid.");
13708
13740
  return await client.requestJson({
13709
13741
  ...requestOptions$7(input),
13742
+ headers: inboxSourceTargetVersionHeaders(),
13710
13743
  invalidMessage: "invalid Inbox list response",
13711
13744
  method: "GET",
13712
13745
  operation: "inbox.list",
@@ -13728,7 +13761,10 @@ const createInboxApi = (client) => ({
13728
13761
  return await client.requestJson({
13729
13762
  ...requestOptions$7(input),
13730
13763
  body: JSON.stringify(body),
13731
- headers: { "content-type": "application/json" },
13764
+ headers: {
13765
+ "content-type": "application/json",
13766
+ ...inboxSourceTargetVersionHeaders()
13767
+ },
13732
13768
  invalidMessage: "invalid Inbox read response",
13733
13769
  method: "PATCH",
13734
13770
  operation: "inbox.item.read",
@@ -13806,6 +13842,9 @@ const createInboxApi = (client) => ({
13806
13842
  });
13807
13843
  }
13808
13844
  });
13845
+ function inboxSourceTargetVersionHeaders() {
13846
+ return { [OPENMELD_HEADER_INBOX_SOURCE_TARGET_VERSION]: "2" };
13847
+ }
13809
13848
  function requestOptions$7(input) {
13810
13849
  return {
13811
13850
  ...input.requestContext === void 0 ? {} : { requestContext: input.requestContext },
@@ -16248,4 +16287,4 @@ function composeAbortSignals(parent, timeout) {
16248
16287
  //#endregion
16249
16288
  export { OPENMELD_RUNTIME_CAPABILITIES_HEADER as $, START_ISO_DATE_TIME_SCHEMA as $t, parseEnvelope as A, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as At, toErrorMessage$3 as B, archiveProjectResponseSchema as Bt, dist_exports as C, deleteCenterAgentRoutineResponseSchema as Ct, DAEMON_STREAM_KEEPALIVE_PING as D, resumeCenterAgentRoutineResponseSchema as Dt, toStructuredApiClientFailure as E, pauseCenterAgentRoutineResponseSchema as Et, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as F, agentActivitySnapshotResponseSchema as Ft, spaceDispatchTraceAttemptStatusSchema as G, leaveSpaceResponseSchema as Gt, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as H, listProjectsResponseSchema as Ht, OPENMELD_HEADER_REQUEST_ID as I, centerAgentToolSpeakerSchema as It, observabilityWakeTraceSelectorSchema as J, spaceMemberDirectoryEntrySchema as Jt, spaceDispatchTraceDispatchStatusSchema as K, postSpaceMembersResponseSchema as Kt, buildOpenMeldRequestContextHeaders as L, localProjectControlConnectionSchema as Lt, parseServerErrorFrame as M, agentActivityProviderSchema as Mt, resolveCustomMentionAliasOverride as N, agentActivitySessionStatusSchema as Nt, DAEMON_STREAM_KEEPALIVE_PONG as O, updateCenterAgentRoutineResponseSchema as Ot, OPENMELD_HEADER_PROFILE_ID as P, agentActivitySnapshotQuerySchema as Pt, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as Q, START_BOUNDED_VERSION_SCHEMA as Qt, toErrorMessage$2 as R, localProjectControlDaemonFrameSchema as Rt, createSpaceApi as S, createCenterAgentRoutineResponseSchema as St, resolveProfileSpaceHistoryGatewayHost as T, listCenterAgentRoutinesResponseSchema as Tt, projectSpaceDispatchTraceFinalVisibleOutcome as U, projectSchema as Ut, getSpaceUpdatesResponseSchema as V, createProjectResponseSchema as Vt, resolveSpaceDispatchTraceRootCause as W, updateProjectResponseSchema as Wt, submitAgentControllerTaskLifecycleEventItemSchema as X, openCodePermissionConfigSchema as Xt, projectObservabilityWakeCorrelation as Y, spaceMemberDirectorySchema as Yt, gatewayErrorEnvelopeSchema as Z, START_BOUNDED_ID_SCHEMA as Zt, createPrepareReadinessApi as _, authProfileManagedRoleSchema as _t, buildSpaceAttachmentDownloadPath as a, toLegacySpaceAddressingWireValue as an, spaceCreatorSchema as at, createRoutinesApi as b, submitFeedbackIssueRequestSchema as bt, createAgentProfileBindingApi as c, listOrganizationSkillsResponseSchema as ct, createFeedbackApi as d, organizationSkillSummarySchema as dt, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as en, computerFileAccessDaemonFrameSchema as et, createFetchTransport as f, stringifyOrganizationSkillBundleCanonicalJson as ft, createOrganizationSkillsApi as g, authProfileKindSchema as gt, createOrganizationApi as h, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as ht, buildProfileSpaceHistoryUpsertPath as i, agentControllerCollaborationModeSchema as in, organizationSpaceDirectoryWithMemberCountsResponseSchema as it, parseIncoming as j, agentActivityEventSchema as jt, MAX_TEXT_LENGTH as k, AGENT_ACTIVITY_EVENT_MAX_BYTES as kt, createCenterAgentApi as l, organizationSkillBundleSchema as lt, createOpenMeldApiClient as m, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as mt, OpenMeldApiClientInvalidResponseError as n, localAgentCatalogSchema as nn, computerFileAccessPolicySchema as nt, createAccountSpaceIndexApi as o, spaceMetaSchema as ot, createLocalRuntimeExpectedRoutesApi as p, organizationDirectoryResponseSchema as pt, spaceDispatchTraceResponseSchema as q, removeSpaceMembersResponseSchema as qt, buildProfileSpaceHistoryStatusPath as r, agentControllerPermissionModeSchema as rn, modelCatalogSchema as rt, createAgentActivityApi as s, getOrganizationSkillResponseSchema as st, OpenMeldApiClientHttpError as t, startReplyReadinessSummarySchema as tn, computerFileAccessPolicyInputSchema as tt, createCurrentDeviceApi as u, organizationSkillReleaseSummarySchema as ut, createProfileSpaceHistoryApi as v, profileCapabilitiesResponseSchema as vt, resolveAccountSpaceIndexGatewayHost as w, listCenterAgentRoutineRunsResponseSchema as wt, createRuntimeReportingApi as x, submitFeedbackIssueResponseSchema as xt, createProjectsApi as y, profileErrorResponseSchema as yt, sleep as z, localProjectControlDiscoverProjectsResponseSchema as zt };
16250
16289
 
16251
- //# sourceMappingURL=dist-BPoTMZlr.js.map
16290
+ //# sourceMappingURL=dist-D3kcxGqs.js.map