openmeld 0.3.136 → 0.3.138

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 (31) hide show
  1. package/dist/{add-me-membership-BNNtDZYW.js → add-me-membership-BZ9GEg6y.js} +2 -2
  2. package/dist/{add-me-membership-BNNtDZYW.js.map → add-me-membership-BZ9GEg6y.js.map} +1 -1
  3. package/dist/{api-client-foundation-CabWpjFe.js → api-client-foundation-tvnD_7HW.js} +4 -7
  4. package/dist/api-client-foundation-tvnD_7HW.js.map +1 -0
  5. package/dist/{auth-session-Bj8n8YwV.js → auth-session-hdKG6Oqe.js} +3 -6
  6. package/dist/auth-session-hdKG6Oqe.js.map +1 -0
  7. package/dist/{base-url-BtqW4aLS.js → base-url-CY_j4bLH.js} +13 -6
  8. package/dist/base-url-CY_j4bLH.js.map +1 -0
  9. package/dist/{command-BGqFPMwd.js → command-BV6ylBgU.js} +920 -703
  10. package/dist/{command-BGqFPMwd.js.map → command-BV6ylBgU.js.map} +1 -1
  11. package/dist/{daemon-runtime-lease-D82uDZ5s.js → daemon-runtime-lease-6DIprlJy.js} +2 -2
  12. package/dist/{daemon-runtime-lease-D82uDZ5s.js.map → daemon-runtime-lease-6DIprlJy.js.map} +1 -1
  13. package/dist/{dist-0qM_CVk2.js → dist-DEiXhSkt.js} +217 -39
  14. package/dist/dist-DEiXhSkt.js.map +1 -0
  15. package/dist/openmeld-dev.js +1 -1
  16. package/dist/openmeld.js +462 -237
  17. package/dist/openmeld.js.map +1 -1
  18. package/dist/{runtime-transport-BiQfJGnw.js → runtime-transport-CFM93Yqy.js} +58 -22
  19. package/dist/runtime-transport-CFM93Yqy.js.map +1 -0
  20. package/package.json +2 -2
  21. package/skills/README.md +5 -2
  22. package/skills/openmeld-cli/SKILL.md +109 -1151
  23. package/skills/openmeld-cli/playbooks/space-ops.md +38 -16
  24. package/skills/openmeld-cli/playbooks/space-reads.md +123 -0
  25. package/skills/openmeld-cli/references/commands.md +19 -9
  26. package/skills/openmeld-cli/references/runtime-resolution.md +21 -2
  27. package/dist/api-client-foundation-CabWpjFe.js.map +0 -1
  28. package/dist/auth-session-Bj8n8YwV.js.map +0 -1
  29. package/dist/base-url-BtqW4aLS.js.map +0 -1
  30. package/dist/dist-0qM_CVk2.js.map +0 -1
  31. package/dist/runtime-transport-BiQfJGnw.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { _n as normalizeKnownBuiltinAgentControllerId, an as runtimeTransportModeSchema, bn as resolveBuiltinAgentControllerConversationCapability, fn as agentControllerRefSchema, xn as __exportAll, yn as agentControllerConversationCapabilitySchema } from "./base-url-BtqW4aLS.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-BiQfJGnw.js";
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-CFM93Yqy.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
@@ -34,29 +34,48 @@ z$1.enum(AGENT_EXECUTION_READINESS_IMPACT_CLEARING_TRIGGERS);
34
34
  const MESSAGE_ENVELOPE_WIRE_FIELD_NAMES = /* @__PURE__ */ new Set(["messageEnvelope", "sourceMessageEnvelope"]);
35
35
  /**
36
36
  * Temporary transport-only compatibility for clients released before Space
37
- * Message Addressing moved to Wake and Reference.
37
+ * Message Addressing moved from CC to explicit Wake, Reference, and Mention.
38
38
  *
39
39
  * Callers must pass values that have already crossed current schemas. The
40
40
  * returned value is for JSON serialization only and must never be reused as a
41
41
  * domain object. Remove this encoder after the minimum supported Web, CLI,
42
42
  * Local Service, Gateway, Core, and Remote Agent versions all understand the
43
- * two-relation contract and production history has completed one retention
43
+ * current addressing contract and production history has completed one retention
44
44
  * window under the current read projection.
45
45
  */
46
46
  function toLegacySpaceAddressingWireValue(value) {
47
47
  return encodeLegacySpaceAddressingWireValue(value, null);
48
48
  }
49
+ /**
50
+ * Keeps Human Mention requests current while retaining the old request shape
51
+ * for messages that do not use the new relation.
52
+ */
53
+ function toCompatibleSpaceAddressingRequestWireValue(value) {
54
+ return containsHumanMentionTarget(value) ? value : toLegacySpaceAddressingWireValue(value);
55
+ }
56
+ function containsHumanMentionTarget(value) {
57
+ if (Array.isArray(value)) return value.some(containsHumanMentionTarget);
58
+ if (!isJsonRecord(value)) return false;
59
+ if (Array.isArray(value.mentionTargets) && value.mentionTargets.length > 0) return true;
60
+ return Object.values(value).some(containsHumanMentionTarget);
61
+ }
49
62
  function encodeLegacySpaceAddressingWireValue(value, fieldName) {
50
63
  if (Array.isArray(value)) return value.map((item) => encodeLegacySpaceAddressingWireValue(item, fieldName));
51
64
  if (!isJsonRecord(value)) return value;
52
65
  const encoded = Object.fromEntries(Object.entries(value).map(([key, nestedValue]) => [key, encodeLegacySpaceAddressingWireValue(nestedValue, key)]));
53
- if ((fieldName === null || fieldName !== null && MESSAGE_ENVELOPE_WIRE_FIELD_NAMES.has(fieldName)) && isCurrentMessageEnvelope(encoded)) return {
54
- ...encoded,
55
- ccTargets: []
56
- };
66
+ if ((fieldName === null || fieldName !== null && MESSAGE_ENVELOPE_WIRE_FIELD_NAMES.has(fieldName)) && isCurrentMessageEnvelope(encoded)) {
67
+ const mentionTargets = Array.isArray(encoded.mentionTargets) ? encoded.mentionTargets : [];
68
+ const referenceTargets = Array.isArray(encoded.referenceTargets) ? encoded.referenceTargets : [];
69
+ return {
70
+ ...omitJsonField(encoded, "mentionTargets"),
71
+ ccTargets: [],
72
+ referenceTargets: [.../* @__PURE__ */ new Set([...referenceTargets, ...mentionTargets])]
73
+ };
74
+ }
57
75
  if (fieldName === "allowedRelations" && isCurrentAllowedRelations(encoded)) return {
58
- ...encoded,
59
- cc: false
76
+ ...omitJsonField(encoded, "mention"),
77
+ cc: false,
78
+ reference: encoded.reference === true || encoded.mention === true
60
79
  };
61
80
  return encoded;
62
81
  }
@@ -64,11 +83,14 @@ function isCurrentMessageEnvelope(value) {
64
83
  return typeof value.text === "string" && Array.isArray(value.activationTargets) && Array.isArray(value.referenceTargets);
65
84
  }
66
85
  function isCurrentAllowedRelations(value) {
67
- return typeof value.wake === "boolean" && typeof value.reference === "boolean";
86
+ return typeof value.wake === "boolean" && typeof value.reference === "boolean" && typeof value.mention === "boolean";
68
87
  }
69
88
  function isJsonRecord(value) {
70
89
  return typeof value === "object" && value !== null;
71
90
  }
91
+ function omitJsonField(value, fieldName) {
92
+ return Object.fromEntries(Object.entries(value).filter(([key]) => key !== fieldName));
93
+ }
72
94
  //#endregion
73
95
  //#region ../../packages/schemas/dist/schemas/agent-controller-collaboration-mode.js
74
96
  const agentControllerCollaborationModeSchema = z$1.enum(["codex:default", "codex:plan"]);
@@ -2069,13 +2091,19 @@ const spaceIdentityDirectorySchema = strictObject({
2069
2091
  });
2070
2092
  const spaceMemberDirectoryAllowedRelationsSchema = preprocess((value) => {
2071
2093
  if (!(value && typeof value === "object") || Array.isArray(value)) return value;
2072
- const record = value;
2073
- if (typeof record.cc !== "boolean") return value;
2074
- const { cc: _legacyCc, ...currentRelations } = record;
2075
- return currentRelations;
2094
+ const { cc: _legacyCc, ...withoutLegacyCc } = value;
2095
+ if (typeof withoutLegacyCc.mention === "boolean") return withoutLegacyCc;
2096
+ if (typeof withoutLegacyCc.wake !== "boolean" || typeof withoutLegacyCc.reference !== "boolean") return withoutLegacyCc;
2097
+ const wasHumanReference = !withoutLegacyCc.wake && withoutLegacyCc.reference;
2098
+ return {
2099
+ ...withoutLegacyCc,
2100
+ mention: wasHumanReference,
2101
+ reference: wasHumanReference ? false : withoutLegacyCc.reference
2102
+ };
2076
2103
  }, strictObject({
2077
2104
  wake: boolean(),
2078
- reference: boolean()
2105
+ reference: boolean(),
2106
+ mention: boolean()
2079
2107
  }));
2080
2108
  const spaceMemberDirectoryCardSchema = strictObject({
2081
2109
  role: nullableTrimmedStringSchema$8,
@@ -2114,6 +2142,16 @@ const spaceMemberDirectoryEntrySchema = strictObject({
2114
2142
  message: "human members cannot support Wake",
2115
2143
  path: ["allowedRelations", "wake"]
2116
2144
  });
2145
+ if (value.profileKind === "human" && value.allowedRelations.reference) ctx.addIssue({
2146
+ code: "custom",
2147
+ message: "human members cannot support Reference",
2148
+ path: ["allowedRelations", "reference"]
2149
+ });
2150
+ if (value.profileKind === "agent" && value.allowedRelations.mention) ctx.addIssue({
2151
+ code: "custom",
2152
+ message: "agent members cannot support Human Mention",
2153
+ path: ["allowedRelations", "mention"]
2154
+ });
2117
2155
  });
2118
2156
  const spaceMemberDirectorySchema = strictObject({
2119
2157
  spaceId: trimmedNonEmptyStringSchema$15,
@@ -4565,6 +4603,9 @@ const trimmedNonEmptyStringSchema$13 = z$1.string().trim().min(1);
4565
4603
  const isoDateTimeSchema$7 = z$1.iso.datetime({ offset: true });
4566
4604
  const MAX_SPACE_GUIDE_LENGTH = 4e3;
4567
4605
  const spaceOrganizationVisibilitySchema = z$1.enum(["public", "private"]);
4606
+ function resolveInitialSpaceAccessMode(visibility) {
4607
+ return visibility === "private" ? "members_only" : "public";
4608
+ }
4568
4609
  const spaceCreatorSchema = z$1.strictObject({
4569
4610
  profileId: openMeldRuntimeProfileIdSchema,
4570
4611
  profileName: trimmedNonEmptyStringSchema$13.optional(),
@@ -4883,7 +4924,10 @@ z$1.strictObject({
4883
4924
  });
4884
4925
  //#endregion
4885
4926
  //#region ../../packages/schemas/dist/schemas/protocol/hello.js
4886
- const helloCapabilitiesSchema = z$1.object({ liveSignalHistory: z$1.boolean().optional() });
4927
+ const helloCapabilitiesSchema = z$1.object({
4928
+ liveSignalHistory: z$1.boolean().optional(),
4929
+ spaceMessageAddressing: z$1.boolean().optional()
4930
+ });
4887
4931
  z$1.object({
4888
4932
  type: z$1.literal("hello"),
4889
4933
  profile: profileSchema,
@@ -7726,6 +7770,13 @@ const optionalTrimmedStringSchema = z$1.preprocess((value) => {
7726
7770
  const normalized = String(value ?? "").trim();
7727
7771
  return normalized.length > 0 ? normalized : void 0;
7728
7772
  }, z$1.string().min(1).optional());
7773
+ function boundSpaceStatusPreviewText(text) {
7774
+ if (text.length <= 240) return text;
7775
+ let truncated = text.slice(0, 239).trimEnd();
7776
+ const finalCodeUnit = truncated.charCodeAt(truncated.length - 1);
7777
+ if (finalCodeUnit >= 55296 && finalCodeUnit <= 56319) truncated = truncated.slice(0, -1).trimEnd();
7778
+ return `${truncated}…`;
7779
+ }
7729
7780
  const spaceStatusLatestVisibleUpdateSchema = z$1.object({
7730
7781
  signalId: nonEmptyTrimmedStringFromUnknown,
7731
7782
  signalType: z$1.enum([
@@ -7736,7 +7787,7 @@ const spaceStatusLatestVisibleUpdateSchema = z$1.object({
7736
7787
  createdAt: isoDateTimeSchema$3,
7737
7788
  actorProfileId: openMeldRuntimeProfileIdSchema,
7738
7789
  actorName: optionalTrimmedStringSchema,
7739
- previewText: nonEmptyTrimmedStringFromUnknown
7790
+ previewText: nonEmptyTrimmedStringFromUnknown.transform(boundSpaceStatusPreviewText)
7740
7791
  });
7741
7792
  const spaceStatusMembersSummarySchema = spaceMembersSummarySchema.extend({
7742
7793
  liveHumanCount: z$1.number().int().min(0),
@@ -8811,8 +8862,8 @@ const SPACE_DISPATCH_TRACE_PROMPT_LENGTH_MAX = 1e6;
8811
8862
  const SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS = 1200;
8812
8863
  const SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER = "x-openmeld-space-dispatch-trace-response-version";
8813
8864
  const SPACE_DISPATCH_TRACE_INVALID_OUTPUT_PREVIEW_MAX_CHARS = 180;
8814
- literal(2);
8815
- literal(String(2)).transform(() => 2);
8865
+ union([literal(2), literal(3)]);
8866
+ enumFactory([String(2), String(3)]).transform((value) => value === String(3) ? 3 : 2);
8816
8867
  const boundedNullableTrimmedStringSchema = (maxLength) => union([trimmedNonEmptyStringSchema$3.max(maxLength), nullFactory()]);
8817
8868
  const nullableTrimmedStringSchema$2 = boundedNullableTrimmedStringSchema(4096);
8818
8869
  const nullableSignalTextSchema = boundedNullableTrimmedStringSchema(MAX_TEXT_LENGTH$1);
@@ -9174,14 +9225,14 @@ const legacyPublishedRuntimeCoordinatorHeadRecoveryActionSchema = enumFactory([
9174
9225
  "start_or_restart_openmeld_service",
9175
9226
  "update_openmeld_service"
9176
9227
  ]);
9177
- const currentPublishedRuntimeCoordinatorHeadPublicationCategorySchema = enumFactory([
9228
+ const publishedRuntimeCoordinatorHeadPublicationCategoryV2Schema = enumFactory([
9178
9229
  "binding_required",
9179
9230
  "local_connection_mismatch",
9180
9231
  "service_not_connected",
9181
9232
  "update_required",
9182
9233
  "wake_route_registration_pending"
9183
9234
  ]);
9184
- const currentPublishedRuntimeCoordinatorHeadReasonCodeSchema = enumFactory([
9235
+ const publishedRuntimeCoordinatorHeadReasonCodeV2Schema = enumFactory([
9185
9236
  "agent_profile_binding.missing",
9186
9237
  "agent_profile_binding.disabled",
9187
9238
  "agent_profile_binding.owner_mismatch",
@@ -9191,14 +9242,43 @@ const currentPublishedRuntimeCoordinatorHeadReasonCodeSchema = enumFactory([
9191
9242
  "daemon.profile.pending_first_report",
9192
9243
  "service.update_required"
9193
9244
  ]);
9245
+ const publishedRuntimeCoordinatorHeadRecoveryActionV2Schema = enumFactory([
9246
+ "set_up_agent_binding",
9247
+ "enable_agent_binding",
9248
+ "repair_agent_binding",
9249
+ "authorize_agent_binding_for_organization",
9250
+ "reconnect_agent_binding",
9251
+ "start_or_restart_openmeld_service",
9252
+ "update_openmeld_service",
9253
+ "wait_for_wake_route_report"
9254
+ ]);
9255
+ const currentPublishedRuntimeCoordinatorHeadPublicationCategorySchema = enumFactory([
9256
+ "binding_required",
9257
+ "agent_profile_unavailable",
9258
+ "local_agent_unavailable",
9259
+ "local_connection_mismatch",
9260
+ "provider_access_unavailable",
9261
+ "provider_usage_unavailable",
9262
+ "service_not_connected",
9263
+ "update_required",
9264
+ "wake_route_registration_pending",
9265
+ "workspace_unavailable"
9266
+ ]);
9267
+ const currentPublishedRuntimeCoordinatorHeadReasonCodeSchema = string().trim().min(1).max(160);
9194
9268
  const currentPublishedRuntimeCoordinatorHeadRecoveryActionSchema = enumFactory([
9195
9269
  "set_up_agent_binding",
9196
9270
  "enable_agent_binding",
9197
9271
  "repair_agent_binding",
9198
9272
  "authorize_agent_binding_for_organization",
9273
+ "check_status",
9274
+ "connect_local_agent",
9275
+ "enable_local_agent",
9199
9276
  "reconnect_agent_binding",
9277
+ "review_agent_settings",
9200
9278
  "start_or_restart_openmeld_service",
9201
9279
  "update_openmeld_service",
9280
+ "wait_for_usage_report",
9281
+ "wait_for_usage_reset",
9202
9282
  "wait_for_wake_route_report"
9203
9283
  ]);
9204
9284
  const spaceDispatchTraceRuntimeCoordinatorHeadNoExecutionDecisionV1Schema = strictObject({
@@ -9208,6 +9288,13 @@ const spaceDispatchTraceRuntimeCoordinatorHeadNoExecutionDecisionV1Schema = stri
9208
9288
  source: publishedRuntimeCoordinatorHeadDecisionSourceSchema,
9209
9289
  userRecoveryAction: legacyPublishedRuntimeCoordinatorHeadRecoveryActionSchema
9210
9290
  });
9291
+ const spaceDispatchTraceRuntimeCoordinatorHeadNoExecutionDecisionV2Schema = strictObject({
9292
+ decidedAt: ISO_DATE_TIME_SCHEMA$3,
9293
+ publicationCategory: publishedRuntimeCoordinatorHeadPublicationCategoryV2Schema,
9294
+ reasonCode: publishedRuntimeCoordinatorHeadReasonCodeV2Schema,
9295
+ source: publishedRuntimeCoordinatorHeadDecisionSourceSchema,
9296
+ userRecoveryAction: publishedRuntimeCoordinatorHeadRecoveryActionV2Schema
9297
+ });
9211
9298
  const spaceDispatchTraceRuntimeCoordinatorHeadNoExecutionDecisionSchema = strictObject({
9212
9299
  decidedAt: ISO_DATE_TIME_SCHEMA$3,
9213
9300
  publicationCategory: currentPublishedRuntimeCoordinatorHeadPublicationCategorySchema,
@@ -9230,6 +9317,21 @@ const spaceDispatchTraceRuntimeCoordinatorHeadPublicationIntentV1Schema = union(
9230
9317
  reasonCode: literal("runtime_coordinator.pre_agent_stop_requested"),
9231
9318
  status: literal("ready_for_phase_6")
9232
9319
  })]);
9320
+ const spaceDispatchTraceRuntimeCoordinatorHeadPublicationIntentV2Schema = union([strictObject({
9321
+ intentId: trimmedNonEmptyStringSchema$3.max(4096),
9322
+ kind: literal("no_execution_failure"),
9323
+ publicationCategory: publishedRuntimeCoordinatorHeadPublicationCategoryV2Schema,
9324
+ readyAt: ISO_DATE_TIME_SCHEMA$3,
9325
+ reasonCode: publishedRuntimeCoordinatorHeadReasonCodeV2Schema,
9326
+ status: literal("ready_for_phase_6"),
9327
+ userRecoveryAction: publishedRuntimeCoordinatorHeadRecoveryActionV2Schema
9328
+ }), strictObject({
9329
+ intentId: trimmedNonEmptyStringSchema$3.max(4096),
9330
+ kind: literal("stopped_notice"),
9331
+ readyAt: ISO_DATE_TIME_SCHEMA$3,
9332
+ reasonCode: literal("runtime_coordinator.pre_agent_stop_requested"),
9333
+ status: literal("ready_for_phase_6")
9334
+ })]);
9233
9335
  const spaceDispatchTraceRuntimeCoordinatorHeadPublicationIntentSchema = union([strictObject({
9234
9336
  intentId: trimmedNonEmptyStringSchema$3.max(4096),
9235
9337
  kind: literal("no_execution_failure"),
@@ -9342,6 +9444,16 @@ const spaceDispatchTraceRuntimeCoordinatorHeadLifecycleV1Schema = discriminatedU
9342
9444
  spaceDispatchTraceRuntimeCoordinatorHeadMissingSchema,
9343
9445
  spaceDispatchTraceRuntimeCoordinatorHeadAuthorityUnavailableSchema
9344
9446
  ]);
9447
+ const spaceDispatchTraceRuntimeCoordinatorHeadLifecycleV2Schema = discriminatedUnion("readStatus", [
9448
+ strictObject({
9449
+ ...spaceDispatchTraceRuntimeCoordinatorHeadFoundCommonShape,
9450
+ noExecutionDecision: union([spaceDispatchTraceRuntimeCoordinatorHeadNoExecutionDecisionV2Schema, nullFactory()]),
9451
+ publicationIntent: union([spaceDispatchTraceRuntimeCoordinatorHeadPublicationIntentV2Schema, nullFactory()]),
9452
+ waitingBoundary: union([spaceDispatchTraceRuntimeCoordinatorHeadWaitingBoundarySchema, nullFactory()])
9453
+ }),
9454
+ spaceDispatchTraceRuntimeCoordinatorHeadMissingSchema,
9455
+ spaceDispatchTraceRuntimeCoordinatorHeadAuthorityUnavailableSchema
9456
+ ]);
9345
9457
  const spaceDispatchTraceRuntimeCoordinatorHeadLifecycleSchema = discriminatedUnion("readStatus", [
9346
9458
  strictObject({
9347
9459
  ...spaceDispatchTraceRuntimeCoordinatorHeadFoundCommonShape,
@@ -9417,6 +9529,7 @@ const spaceDispatchTraceSnapshotSchema = strictObject({
9417
9529
  structuredActionFailure: union([spaceDispatchTraceStructuredActionFailureSchema, nullFactory()])
9418
9530
  });
9419
9531
  const spaceDispatchTraceSnapshotV1Schema = spaceDispatchTraceSnapshotSchema.extend({ runtimeCoordinatorHeadLifecycle: union([spaceDispatchTraceRuntimeCoordinatorHeadLifecycleV1Schema, nullFactory()]) });
9532
+ const spaceDispatchTraceSnapshotV2Schema = spaceDispatchTraceSnapshotSchema.extend({ runtimeCoordinatorHeadLifecycle: union([spaceDispatchTraceRuntimeCoordinatorHeadLifecycleV2Schema, nullFactory()]) });
9420
9533
  const spaceDispatchTraceResponseSchema = strictObject({
9421
9534
  correlation: observabilityWakeCorrelationSchema,
9422
9535
  query: spaceDispatchTraceQuerySchema,
@@ -9565,6 +9678,7 @@ const spaceDispatchTraceResponseSchema = strictObject({
9565
9678
  }
9566
9679
  });
9567
9680
  spaceDispatchTraceResponseSchema.safeExtend({ trace: union([spaceDispatchTraceSnapshotV1Schema, nullFactory()]) });
9681
+ spaceDispatchTraceResponseSchema.safeExtend({ trace: union([spaceDispatchTraceSnapshotV2Schema, nullFactory()]) });
9568
9682
  const FINAL_VISIBLE_OUTCOME_PUBLICATION_PENDING_REASON_CODE = "final_visible_outcome.publication_pending";
9569
9683
  const FINAL_VISIBLE_OUTCOME_PUBLICATION_RETRYING_REASON_CODE = "final_visible_outcome.publication_retrying";
9570
9684
  const FINAL_VISIBLE_OUTCOME_PUBLICATION_UNRESOLVED_REASON_CODE = "final_visible_outcome.publication_unresolved";
@@ -10568,6 +10682,7 @@ const centerAgentSpaceContextAnchorByScope = {
10568
10682
  strictObject({
10569
10683
  afterSignalId: trimmedNonEmptyStringSchema$2.optional(),
10570
10684
  limit: number().int().min(1).max(100).optional(),
10685
+ requestedAddressingModel: literal("wake_reference_mention").optional(),
10571
10686
  scope: centerAgentSpaceContextScopeSchema.optional(),
10572
10687
  sourceSignalId: trimmedNonEmptyStringSchema$2.optional(),
10573
10688
  spaceId: trimmedNonEmptyStringSchema$2,
@@ -10597,10 +10712,19 @@ strictObject({
10597
10712
  });
10598
10713
  strictObject({
10599
10714
  files: spaceMessageFileReferencesSchema.optional(),
10715
+ mentionProfileIds: array(openMeldRuntimeProfileIdSchema).max(25).optional(),
10600
10716
  onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
10601
10717
  referenceProfileIds: array(openMeldRuntimeProfileIdSchema).max(25).optional(),
10602
10718
  spaceId: trimmedNonEmptyStringSchema$2,
10603
10719
  text: string().trim().min(1).max(MAX_TEXT_LENGTH$1)
10720
+ }).superRefine((value, context) => {
10721
+ const referenceProfileIds = new Set(value.referenceProfileIds ?? []);
10722
+ const overlappingMentionIndex = value.mentionProfileIds?.findIndex((profileId) => referenceProfileIds.has(profileId));
10723
+ if (overlappingMentionIndex !== void 0 && overlappingMentionIndex >= 0) context.addIssue({
10724
+ code: "custom",
10725
+ message: "A profile cannot be both a Human Mention and a Reference target.",
10726
+ path: ["mentionProfileIds", overlappingMentionIndex]
10727
+ });
10604
10728
  });
10605
10729
  const centerAgentRemoteAgentExecutionPublicationSourceSchema = strictObject({
10606
10730
  executionId: trimmedNonEmptyStringSchema$2.max(512),
@@ -10677,11 +10801,23 @@ strictObject({
10677
10801
  agentProfileIds: array(agentProfileIdSchema).min(1).max(25),
10678
10802
  completionMode: centerAgentDelegationCompletionModeSchema.optional(),
10679
10803
  fallbackAgentProfileId: agentProfileIdSchema.optional(),
10804
+ mentionProfileIds: array(openMeldRuntimeProfileIdSchema).max(25).optional(),
10680
10805
  onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
10681
10806
  referenceProfileIds: array(openMeldRuntimeProfileIdSchema).max(25).optional(),
10682
10807
  spaceId: trimmedNonEmptyStringSchema$2,
10683
10808
  text: string().trim().min(1).max(MAX_TEXT_LENGTH$1)
10684
10809
  }).superRefine((value, context) => {
10810
+ const otherAddressingProfileIds = /* @__PURE__ */ new Set([
10811
+ ...value.agentProfileIds,
10812
+ ...value.fallbackAgentProfileId ? [value.fallbackAgentProfileId] : [],
10813
+ ...value.referenceProfileIds ?? []
10814
+ ]);
10815
+ const overlappingMentionIndex = value.mentionProfileIds?.findIndex((profileId) => otherAddressingProfileIds.has(profileId));
10816
+ if (overlappingMentionIndex !== void 0 && overlappingMentionIndex >= 0) context.addIssue({
10817
+ code: "custom",
10818
+ message: "A profile cannot be both a Human Mention and another addressing target.",
10819
+ path: ["mentionProfileIds", overlappingMentionIndex]
10820
+ });
10685
10821
  const overlappingReferenceIndex = findCenterAgentReferenceOverlapIndex({
10686
10822
  activationTargets: value.agentProfileIds,
10687
10823
  fallbackAgentProfileId: value.fallbackAgentProfileId,
@@ -10726,7 +10862,9 @@ strictObject({
10726
10862
  organizationId: trimmedNonEmptyStringSchema$2,
10727
10863
  parentSubmissionId: trimmedNonEmptyStringSchema$2,
10728
10864
  profile: profileSchema,
10865
+ mentionTargets: array(openMeldRuntimeProfileIdSchema).max(25).default([]),
10729
10866
  referenceTargets: array(openMeldRuntimeProfileIdSchema).max(25).default([]),
10867
+ spaceAddressingVersion: literal("1").optional(),
10730
10868
  spaceId: trimmedNonEmptyStringSchema$2,
10731
10869
  subscriptionIds: array(trimmedNonEmptyStringSchema$2).min(1),
10732
10870
  text: string().trim().min(1).max(MAX_TEXT_LENGTH$1),
@@ -11113,10 +11251,14 @@ centerAgentConciergeActionResponseSchema.extend({
11113
11251
  meta: spaceMetaSchema.optional(),
11114
11252
  spaceId: trimmedNonEmptyStringSchema$2
11115
11253
  });
11116
- strictObject({
11254
+ discriminatedUnion("addressingModel", [strictObject({
11117
11255
  addressingModel: literal("wake_reference"),
11118
11256
  structuredReferenceTargets: literal(true)
11119
- });
11257
+ }), strictObject({
11258
+ addressingModel: literal("wake_reference_mention"),
11259
+ structuredMentionTargets: literal(true),
11260
+ structuredReferenceTargets: literal(true)
11261
+ })]);
11120
11262
  centerAgentConciergeActionResponseSchema.extend({
11121
11263
  signal: signalTextEnvelopeSchema,
11122
11264
  spaceId: trimmedNonEmptyStringSchema$2
@@ -11756,9 +11898,9 @@ const inboxResolutionStatusSchema = enumFactory([
11756
11898
  "open",
11757
11899
  "resolved"
11758
11900
  ]);
11759
- const inboxItemKindSchema = enumFactory([
11901
+ const inboxItemWireKindSchema = union([enumFactory([
11760
11902
  "space_message",
11761
- "space_reference",
11903
+ "space_mention",
11762
11904
  "agent_reply",
11763
11905
  "agent_interaction",
11764
11906
  "wake_outcome",
@@ -11767,7 +11909,7 @@ const inboxItemKindSchema = enumFactory([
11767
11909
  "document_review",
11768
11910
  "organization_request",
11769
11911
  "system_issue"
11770
- ]);
11912
+ ]), literal("space_reference")]);
11771
11913
  const inboxSourceKindSchema = enumFactory([
11772
11914
  "space_signal",
11773
11915
  "runtime_coordinator_interaction",
@@ -11857,13 +11999,13 @@ const inboxSourceTargetSchema = discriminatedUnion("kind", [
11857
11999
  ])
11858
12000
  })
11859
12001
  ]);
11860
- const inboxItemSchema = strictObject({
12002
+ const inboxItemWireSchema = strictObject({
11861
12003
  attention: inboxAttentionSchema,
11862
12004
  contextLabel: contextLabelSchema.nullable(),
11863
12005
  createdAt: isoDateTimeSchema,
11864
12006
  id: identifierSchema,
11865
12007
  importance: inboxImportanceSchema,
11866
- kind: inboxItemKindSchema,
12008
+ kind: inboxItemWireKindSchema,
11867
12009
  occurredAt: isoDateTimeSchema,
11868
12010
  organizationId: identifierSchema,
11869
12011
  preview: previewSchema,
@@ -11880,6 +12022,10 @@ const inboxItemSchema = strictObject({
11880
12022
  path: ["resolutionStatus"]
11881
12023
  });
11882
12024
  });
12025
+ const inboxItemSchema = inboxItemWireSchema.transform((item) => ({
12026
+ ...item,
12027
+ kind: normalizeInboxItemWireKind(item.kind)
12028
+ }));
11883
12029
  const listInboxItemsQuerySchema = strictObject({
11884
12030
  cursor: string().trim().min(1).max(1024).optional(),
11885
12031
  limit: coerce.number().int().min(1).max(100).optional(),
@@ -11890,6 +12036,11 @@ const listInboxItemsResponseSchema = strictObject({
11890
12036
  nextCursor: string().min(1).max(1024).nullable(),
11891
12037
  organizationId: identifierSchema
11892
12038
  });
12039
+ strictObject({
12040
+ items: array(inboxItemWireSchema),
12041
+ nextCursor: string().min(1).max(1024).nullable(),
12042
+ organizationId: identifierSchema
12043
+ });
11893
12044
  const inboxSummaryResponseSchema = strictObject({
11894
12045
  organizationId: identifierSchema,
11895
12046
  totalUnreadCount: number().int().nonnegative(),
@@ -11932,15 +12083,17 @@ const inboxNotificationPreferencesResponseSchema = strictObject({
11932
12083
  const updateInboxNotificationPreferencesBodySchema = strictObject({ urgentEmailEnabled: boolean() });
11933
12084
  const inboxItemRouteParamsSchema = strictObject({ itemId: identifierSchema });
11934
12085
  const getInboxItemResponseSchema = strictObject({ item: inboxItemSchema });
12086
+ strictObject({ item: inboxItemWireSchema });
11935
12087
  const dismissInboxItemResponseSchema = strictObject({ dismissedItemId: identifierSchema });
11936
12088
  const markInboxItemReadBodySchema = strictObject({ read: boolean() });
11937
12089
  const markInboxItemReadResponseSchema = strictObject({ item: inboxItemSchema });
12090
+ strictObject({ item: inboxItemWireSchema });
11938
12091
  const markAllInboxItemsReadResponseSchema = strictObject({ markedReadCount: number().int().nonnegative() });
11939
12092
  strictObject({
11940
12093
  attention: inboxAttentionSchema,
11941
12094
  contextLabel: contextLabelSchema.nullable(),
11942
12095
  importance: inboxImportanceSchema,
11943
- kind: inboxItemKindSchema,
12096
+ kind: inboxItemWireKindSchema,
11944
12097
  occurredAtMs: timestampMsSchema,
11945
12098
  organizationId: identifierSchema,
11946
12099
  preview: previewSchema,
@@ -11949,7 +12102,13 @@ strictObject({
11949
12102
  sourceKind: inboxSourceKindSchema,
11950
12103
  sourceTarget: inboxSourceTargetSchema,
11951
12104
  title: titleSchema
11952
- });
12105
+ }).transform((candidate) => ({
12106
+ ...candidate,
12107
+ kind: normalizeInboxItemWireKind(candidate.kind)
12108
+ }));
12109
+ function normalizeInboxItemWireKind(kind) {
12110
+ return kind === "space_reference" ? "space_mention" : kind;
12111
+ }
11953
12112
  listInboxItemsQuerySchema.extend({ context: openMeldRequestContextSchema });
11954
12113
  strictObject({ context: openMeldRequestContextSchema });
11955
12114
  strictObject({ context: openMeldRequestContextSchema });
@@ -13079,6 +13238,8 @@ const OPENMELD_HEADER_VISITED_PROFILE_IDS = "x-openmeld-visited-profile-ids";
13079
13238
  const OPENMELD_HEADER_VISITED_PROFILE_IDS_HASH = "x-openmeld-visited-profile-ids-hash";
13080
13239
  const OPENMELD_HEADER_FORWARDED_BY = "x-openmeld-forwarded-by";
13081
13240
  const OPENMELD_HEADER_INBOX_SOURCE_TARGET_VERSION = "x-openmeld-inbox-source-target-version";
13241
+ const OPENMELD_HEADER_INBOX_ITEM_KIND_VERSION = "x-openmeld-inbox-item-kind-version";
13242
+ const OPENMELD_HEADER_SPACE_ADDRESSING_VERSION = "x-openmeld-space-addressing-version";
13082
13243
  const OPENMELD_HEADER_TEXT_ENCODING_PREFIX = "utf-8''";
13083
13244
  const PRINTABLE_ASCII_PATTERN = /^[\x20-\x7e]*$/;
13084
13245
  /**
@@ -15195,7 +15356,10 @@ const createInboxApi = (client) => ({
15195
15356
  }
15196
15357
  });
15197
15358
  function inboxSourceTargetVersionHeaders() {
15198
- return { [OPENMELD_HEADER_INBOX_SOURCE_TARGET_VERSION]: "4" };
15359
+ return {
15360
+ [OPENMELD_HEADER_INBOX_ITEM_KIND_VERSION]: "1",
15361
+ [OPENMELD_HEADER_INBOX_SOURCE_TARGET_VERSION]: "4"
15362
+ };
15199
15363
  }
15200
15364
  function requestOptions$7(input) {
15201
15365
  return {
@@ -17104,6 +17268,12 @@ function toRequestBody$1(bytes) {
17104
17268
  function readRequestBodySize(body) {
17105
17269
  return body instanceof Blob ? body.size : body.byteLength;
17106
17270
  }
17271
+ function currentSpaceAddressingHeaders(contentType) {
17272
+ return {
17273
+ ...contentType ? { "content-type": contentType } : {},
17274
+ [OPENMELD_HEADER_SPACE_ADDRESSING_VERSION]: "1"
17275
+ };
17276
+ }
17107
17277
  const SPACE_HISTORY_SIGNAL_KIND_TO_TYPE = {
17108
17278
  text: "signal.text",
17109
17279
  status: "signal.status",
@@ -17113,6 +17283,7 @@ async function listSpaceSignals(client, input) {
17113
17283
  return await client.requestJson({
17114
17284
  url: buildSpaceSignalsReadPath(input.spaceId, input.query),
17115
17285
  operation: "space.signals.read",
17286
+ headers: currentSpaceAddressingHeaders(),
17116
17287
  requestContext: input.requestContext,
17117
17288
  signal: input.signal,
17118
17289
  timeoutMs: input.timeoutMs,
@@ -17213,6 +17384,7 @@ async function getSpaceBootstrap(client, input) {
17213
17384
  return await client.requestJson({
17214
17385
  url: buildSpaceBootstrapReadPath(input.spaceId, input.historyQuery, input.includeAgentStreamPresence),
17215
17386
  operation: "space.bootstrap.read",
17387
+ headers: currentSpaceAddressingHeaders(),
17216
17388
  requestContext: input.requestContext,
17217
17389
  signal: input.signal,
17218
17390
  timeoutMs: input.timeoutMs,
@@ -17557,6 +17729,7 @@ async function getSpaceMemberDirectory(client, input) {
17557
17729
  return await client.requestJson({
17558
17730
  url: buildSpaceMemberDirectoryPath(input.spaceId),
17559
17731
  operation: "space.member_directory.read",
17732
+ headers: currentSpaceAddressingHeaders(),
17560
17733
  requestContext: input.requestContext,
17561
17734
  signal: input.signal,
17562
17735
  timeoutMs: input.timeoutMs,
@@ -17687,8 +17860,8 @@ async function postSpaceNormalMessage(client, input) {
17687
17860
  url: buildSpaceSignalsPath(input.spaceId),
17688
17861
  operation: "space.send",
17689
17862
  method: "POST",
17690
- headers: { "content-type": "application/json" },
17691
- body: JSON.stringify(toLegacySpaceAddressingWireValue(parsedBody.data)),
17863
+ headers: currentSpaceAddressingHeaders("application/json"),
17864
+ body: JSON.stringify(toCompatibleSpaceAddressingRequestWireValue(parsedBody.data)),
17692
17865
  requestContext: input.requestContext,
17693
17866
  signal: input.signal,
17694
17867
  timeoutMs: input.timeoutMs,
@@ -17747,7 +17920,7 @@ async function createSpaceThread(client, input) {
17747
17920
  url: buildSpaceThreadsPath(input.spaceId),
17748
17921
  operation: "space.thread.create",
17749
17922
  method: "POST",
17750
- headers: { "content-type": "application/json" },
17923
+ headers: currentSpaceAddressingHeaders("application/json"),
17751
17924
  body: JSON.stringify(parsedBody.data),
17752
17925
  requestContext: input.requestContext,
17753
17926
  signal: input.signal,
@@ -17762,6 +17935,7 @@ async function listSpaceThreads(client, input) {
17762
17935
  url: buildSpaceThreadsPath(input.spaceId),
17763
17936
  operation: "space.thread.list",
17764
17937
  method: "GET",
17938
+ headers: currentSpaceAddressingHeaders(),
17765
17939
  requestContext: input.requestContext,
17766
17940
  signal: input.signal,
17767
17941
  timeoutMs: input.timeoutMs,
@@ -17775,6 +17949,7 @@ async function getSpaceThread(client, input) {
17775
17949
  url: buildSpaceThreadPath(input.spaceId, input.threadId),
17776
17950
  operation: "space.thread.get",
17777
17951
  method: "GET",
17952
+ headers: currentSpaceAddressingHeaders(),
17778
17953
  requestContext: input.requestContext,
17779
17954
  signal: input.signal,
17780
17955
  timeoutMs: input.timeoutMs,
@@ -17788,6 +17963,7 @@ async function listSpaceThreadEvents(client, input) {
17788
17963
  url: buildSpaceThreadEventsPath(input.spaceId, input.threadId),
17789
17964
  operation: "space.thread.events",
17790
17965
  method: "GET",
17966
+ headers: currentSpaceAddressingHeaders(),
17791
17967
  requestContext: input.requestContext,
17792
17968
  signal: input.signal,
17793
17969
  timeoutMs: input.timeoutMs,
@@ -17810,6 +17986,7 @@ async function listSpaceThreadSignals(client, input) {
17810
17986
  } : void 0),
17811
17987
  operation: "space.thread.signals",
17812
17988
  method: "GET",
17989
+ headers: currentSpaceAddressingHeaders(),
17813
17990
  requestContext: input.requestContext,
17814
17991
  signal: input.signal,
17815
17992
  timeoutMs: input.timeoutMs,
@@ -17825,8 +18002,8 @@ async function postSpaceThreadSignal(client, input) {
17825
18002
  url: buildSpaceThreadSignalsPath(input.spaceId, input.threadId),
17826
18003
  operation: "space.thread.send",
17827
18004
  method: "POST",
17828
- headers: { "content-type": "application/json" },
17829
- body: JSON.stringify(toLegacySpaceAddressingWireValue(parsedBody.data)),
18005
+ headers: currentSpaceAddressingHeaders("application/json"),
18006
+ body: JSON.stringify(toCompatibleSpaceAddressingRequestWireValue(parsedBody.data)),
17830
18007
  requestContext: input.requestContext,
17831
18008
  signal: input.signal,
17832
18009
  timeoutMs: input.timeoutMs,
@@ -17843,6 +18020,7 @@ async function getSpaceUpdates(client, input) {
17843
18020
  spaceId: input.spaceId
17844
18021
  }),
17845
18022
  operation: "space.updates.read",
18023
+ headers: currentSpaceAddressingHeaders(),
17846
18024
  requestContext: input.requestContext,
17847
18025
  signal: input.signal,
17848
18026
  timeoutMs: input.timeoutMs,
@@ -18088,6 +18266,6 @@ function composeAbortSignals(parent, timeout) {
18088
18266
  };
18089
18267
  }
18090
18268
  //#endregion
18091
- export { ownerComputerDiagnosticsSchema as $, agentActivityInventorySessionStatusSchema as $t, MAX_TEXT_LENGTH as A, createCenterAgentRoutineResponseSchema as At, sleep as B, agentActivityProviderSchema as Bt, createSpaceApi as C, authProfileKindSchema as Ct, toStructuredApiClientFailure as D, organizationComputersResponseSchema as Dt, resolveProfileSpaceHistoryGatewayHost as E, profileErrorResponseSchema as Et, OPENMELD_HEADER_PROFILE_ID as F, resumeCenterAgentRoutineResponseSchema as Ft, projectSpaceDispatchTraceFinalVisibleOutcome as G, localProjectControlDaemonFrameSchema as Gt, getSpaceUpdatesResponseSchema as H, agentActivitySnapshotQuerySchema as Ht, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as I, updateCenterAgentRoutineResponseSchema as It, spaceDispatchTraceDispatchStatusSchema as J, postSpaceMembersResponseSchema as Jt, resolveSpaceDispatchTraceRootCause as K, localProjectControlDiscoverProjectsResponseSchema as Kt, OPENMELD_HEADER_REQUEST_ID as L, AGENT_ACTIVITY_EVENT_MAX_BYTES as Lt, parseIncoming as M, listCenterAgentRoutineRunsResponseSchema as Mt, parseServerErrorFrame as N, listCenterAgentRoutinesResponseSchema as Nt, DAEMON_STREAM_KEEPALIVE_PING as O, submitFeedbackIssueRequestSchema as Ot, resolveCustomMentionAliasOverride as P, pauseCenterAgentRoutineResponseSchema as Pt, submitAgentControllerTaskLifecycleEventItemSchema as Q, agentActivityInventorySessionOriginSchema as Qt, buildOpenMeldRequestContextHeaders as R, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Rt, createRuntimeReportingApi as S, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as St, resolveAccountSpaceIndexGatewayHost as T, profileCapabilitiesResponseSchema as Tt, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as U, agentActivitySnapshotResponseSchema as Ut, toErrorMessage$3 as V, agentActivitySessionStatusSchema as Vt, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as W, localProjectControlConnectionSchema as Wt, observabilityWakeTraceSelectorSchema as X, spaceMemberDirectoryEntrySchema as Xt, spaceDispatchTraceResponseSchema as Y, removeSpaceMembersResponseSchema as Yt, projectObservabilityWakeCorrelation as Z, spaceMemberDirectorySchema as Zt, createOrganizationSkillsApi as _, agentControllerPermissionModeSchema as _n, organizationSkillReleaseSummarySchema as _t, buildSpaceAttachmentDownloadPath as a, createProjectResponseSchema as an, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as at, createProjectsApi as b, organizationDirectoryResponseSchema as bt, createAgentProfileBindingApi as c, updateProjectResponseSchema as cn, computerFileAccessPolicyInputSchema as ct, createCurrentDeviceApi as d, START_BOUNDED_ID_SCHEMA as dn, organizationSpaceDirectoryWithMemberCountsResponseSchema as dt, agentActivitySessionInventoryQuerySchema as en, projectOwnerComputerLocalRuntimes as et, createFeedbackApi as f, START_BOUNDED_VERSION_SCHEMA as fn, spaceCreatorSchema as ft, createOrganizationApi as g, localAgentCatalogSchema as gn, organizationSkillBundleSchema as gt, createOpenMeldApiClient as h, startReplyReadinessSummarySchema as hn, listOrganizationSkillsResponseSchema as ht, buildProfileSpaceHistoryUpsertPath as i, archiveProjectResponseSchema as in, gatewayErrorEnvelopeSchema as it, parseEnvelope as j, deleteCenterAgentRoutineResponseSchema as jt, DAEMON_STREAM_KEEPALIVE_PONG as k, submitFeedbackIssueResponseSchema as kt, createCenterAgentApi as l, centerAgentToolSpeakerSchema as ln, computerFileAccessPolicySchema as lt, createLocalRuntimeExpectedRoutesApi as m, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as mn, getOrganizationSkillResponseSchema as mt, OpenMeldApiClientInvalidResponseError as n, localAgentSessionProviderSchema as nn, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as nt, createAccountSpaceIndexApi as o, listProjectsResponseSchema as on, OPENMELD_RUNTIME_CAPABILITIES_HEADER as ot, createFetchTransport as p, START_ISO_DATE_TIME_SCHEMA as pn, spaceMetaSchema as pt, spaceDispatchTraceAttemptStatusSchema as q, leaveSpaceResponseSchema as qt, buildProfileSpaceHistoryStatusPath as r, observedLocalAgentSessionSchema as rn, agentProfileCreationConfigurationSchema as rt, createAgentActivityApi as s, projectSchema as sn, computerFileAccessDaemonFrameSchema as st, OpenMeldApiClientHttpError as t, agentActivitySessionInventoryResponseSchema as tn, summarizeComputerFileAccessPolicy as tt, createComputerFileAccessApi as u, openCodePermissionConfigSchema as un, modelCatalogSchema as ut, createPrepareReadinessApi as v, agentControllerCollaborationModeSchema as vn, organizationSkillSummarySchema as vt, dist_exports as w, authProfileManagedRoleSchema as wt, createRoutinesApi as x, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as xt, createProfileSpaceHistoryApi as y, toLegacySpaceAddressingWireValue as yn, stringifyOrganizationSkillBundleCanonicalJson as yt, toErrorMessage$2 as z, agentActivityEventSchema as zt };
18269
+ 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 };
18092
18270
 
18093
- //# sourceMappingURL=dist-0qM_CVk2.js.map
18271
+ //# sourceMappingURL=dist-DEiXhSkt.js.map