agent-transport-system 0.3.49 → 0.3.50

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,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { C as normalizeAtsProfileId, j as sessionsDir, x as locksDir } from "./paths-DTn3aLSP.js";
3
+ import { C as normalizeAtsProfileId, j as sessionsDir, x as locksDir } from "./paths-DyLxjg9Z.js";
4
4
  import { join } from "node:path";
5
5
  import process$1 from "node:process";
6
6
  import { mkdir, open, readFile, readdir, rename, rm, writeFile } from "node:fs/promises";
@@ -4146,7 +4146,7 @@ const daemonRouteObservationSummarySchema = strictObject({
4146
4146
  });
4147
4147
 
4148
4148
  //#endregion
4149
- //#region ../../packages/schemas/dist/entry-brief-C9fPiNkJ.js
4149
+ //#region ../../packages/schemas/dist/entry-brief-DWASaNYR.js
4150
4150
  const providerConversationExternalImportCapabilitySchema = _enum(["unsupported", "by_ref_id"]);
4151
4151
  const providerConversationResumeCapabilitySchema = _enum(["unsupported", "by_ref_id"]);
4152
4152
  const providerConversationDiscoverCapabilitySchema = literal("unsupported");
@@ -4456,6 +4456,7 @@ const spaceMemberAgentSnapshotSchema = baseSpaceMemberSnapshotSchema.extend({
4456
4456
  ownerName: nullableTrimmedStringSchema$5,
4457
4457
  controllerKind: nullableControllerKindSchema,
4458
4458
  controllerRef: nullableTrimmedStringSchema$5,
4459
+ runtimeDeviceDisplayName: nullableTrimmedStringSchema$5.optional(),
4459
4460
  agentContextId: nullableTrimmedStringSchema$5,
4460
4461
  upstreamConversation: nullableUpstreamConversationRefSchema.optional(),
4461
4462
  workingDirectory: profileWorkingDirectorySchema.nullable().optional(),
@@ -5334,23 +5335,32 @@ const spacePasswordStateSchema = strictObject({ passwordProtected: boolean() });
5334
5335
  const MULTI_SPACE_PATTERN$1 = /\s+/g;
5335
5336
  const CANONICAL_MENTION_LITERAL_PATTERN = /^@(?<name>.+)\((?<type>wake|reference|cc)\)$/u;
5336
5337
  const CANONICAL_MENTION_TEXT_FRAGMENT_PATTERN = /(^|[^\w\\])(?<mention>@[^\n@]*\([^\n@)]*\)?)/gu;
5337
- const MESSAGE_MENTION_TYPE_VALUES = [
5338
+ const SPACE_MESSAGE_ADDRESSING_RELATION_VALUES = [
5338
5339
  "wake",
5339
5340
  "reference",
5340
5341
  "cc"
5341
5342
  ];
5343
+ const MESSAGE_MENTION_TYPE_VALUES = SPACE_MESSAGE_ADDRESSING_RELATION_VALUES;
5342
5344
  const MESSAGE_ENVELOPE_TARGET_FIELD_VALUES = [
5343
5345
  "activationTargets",
5344
5346
  "referenceTargets",
5345
5347
  "ccTargets"
5346
5348
  ];
5347
- const messageMentionTypeSchema = _enum(MESSAGE_MENTION_TYPE_VALUES);
5349
+ const SPACE_MESSAGE_ADDRESSING_TARGET_KIND_VALUES = ["human_profile", "agent_profile"];
5350
+ const spaceMessageAddressingRelationSchema = _enum(SPACE_MESSAGE_ADDRESSING_RELATION_VALUES);
5351
+ const messageMentionTypeSchema = spaceMessageAddressingRelationSchema;
5348
5352
  const messageEnvelopeTargetFieldSchema = _enum(MESSAGE_ENVELOPE_TARGET_FIELD_VALUES);
5353
+ const spaceMessageAddressingTargetKindSchema = _enum(SPACE_MESSAGE_ADDRESSING_TARGET_KIND_VALUES);
5349
5354
  const MESSAGE_ENVELOPE_TARGET_FIELD_BY_MENTION_TYPE = {
5350
5355
  wake: "activationTargets",
5351
5356
  reference: "referenceTargets",
5352
5357
  cc: "ccTargets"
5353
5358
  };
5359
+ const SPACE_MESSAGE_ADDRESSING_TARGET_KIND_SUPPORT_BY_RELATION = {
5360
+ wake: ["agent_profile"],
5361
+ reference: ["human_profile", "agent_profile"],
5362
+ cc: ["human_profile", "agent_profile"]
5363
+ };
5354
5364
  const normalizeCanonicalMentionName = (value) => {
5355
5365
  const normalized = trimmedStringFromUnknown(value).replace(MULTI_SPACE_PATTERN$1, " ").trim();
5356
5366
  if (normalized.length === 0) return;
@@ -5480,6 +5490,31 @@ const resolveMessageEnvelopeTargetField = (value) => {
5480
5490
  if (!parsed.success) throw parsed.error;
5481
5491
  return MESSAGE_ENVELOPE_TARGET_FIELD_BY_MENTION_TYPE[parsed.data];
5482
5492
  };
5493
+ const isSpaceMessageAddressingRelationSupportedForTargetKind = (input) => {
5494
+ const relation = spaceMessageAddressingRelationSchema.safeParse(input.relation);
5495
+ if (!relation.success) throw relation.error;
5496
+ const targetKind = spaceMessageAddressingTargetKindSchema.safeParse(input.targetKind);
5497
+ if (!targetKind.success) throw targetKind.error;
5498
+ return SPACE_MESSAGE_ADDRESSING_TARGET_KIND_SUPPORT_BY_RELATION[relation.data].includes(targetKind.data);
5499
+ };
5500
+ const getSpaceMessageAddressingRelationSupportForTargetKind = (value) => {
5501
+ const targetKind = spaceMessageAddressingTargetKindSchema.safeParse(value);
5502
+ if (!targetKind.success) throw targetKind.error;
5503
+ return {
5504
+ wake: isSpaceMessageAddressingRelationSupportedForTargetKind({
5505
+ relation: "wake",
5506
+ targetKind: targetKind.data
5507
+ }),
5508
+ reference: isSpaceMessageAddressingRelationSupportedForTargetKind({
5509
+ relation: "reference",
5510
+ targetKind: targetKind.data
5511
+ }),
5512
+ cc: isSpaceMessageAddressingRelationSupportedForTargetKind({
5513
+ relation: "cc",
5514
+ targetKind: targetKind.data
5515
+ })
5516
+ };
5517
+ };
5483
5518
  const spaceAuthorityOrderSchema = literal("default");
5484
5519
  const spaceDispatchPolicyModeSchema = _enum(["mention_only", "listen_all"]);
5485
5520
  const spaceDispatchPolicySchema = strictObject({ mode: spaceDispatchPolicyModeSchema });
@@ -5618,16 +5653,20 @@ const sanitizeSignalTextPreview = (text) => {
5618
5653
  };
5619
5654
  const signalTextReplyToSchema = signalReplyToSchema;
5620
5655
  const signalTextContentSchema = preprocess(trimmedStringFromUnknown, string().min(1).max(MAX_TEXT_LENGTH));
5656
+ const runtimeDeviceDisplayNameSchema = preprocess(trimmedStringFromUnknown, string().min(1).max(80));
5621
5657
  const signalTextMetaSchema = object({
5622
5658
  transient: literal(true).optional(),
5623
5659
  clientMessageId: clientMessageIdSchema.optional(),
5624
5660
  sourceEventId: preprocess(trimmedStringFromUnknown, string().max(200)).optional(),
5661
+ sourceClientMessageId: clientMessageIdSchema.optional(),
5625
5662
  purpose: preprocess(trimmedStringFromUnknown, string().min(1).max(80)).optional(),
5663
+ errorCode: preprocess(trimmedStringFromUnknown, string().min(1).max(120)).optional(),
5626
5664
  dispatchId: preprocess(trimmedStringFromUnknown, string().max(200)).optional(),
5627
5665
  targetProfileId: atsRuntimeProfileIdSchema.optional(),
5628
5666
  targetProfileKind: _enum(["human", "agent"]).optional(),
5629
5667
  targetProfileName: preprocess(trimmedStringFromUnknown, string().min(1).max(MAX_PROFILE_NAME_LENGTH)).optional(),
5630
5668
  targetMentionLabel: spaceMentionLabelSchema.optional(),
5669
+ runtimeDeviceDisplayName: runtimeDeviceDisplayNameSchema.optional(),
5631
5670
  addedByProfileId: atsRuntimeProfileIdSchema.optional(),
5632
5671
  addedByDisplayName: preprocess(trimmedStringFromUnknown, string().min(1).max(MAX_PROFILE_NAME_LENGTH)).optional(),
5633
5672
  removedByProfileId: atsRuntimeProfileIdSchema.optional(),
@@ -5780,6 +5819,10 @@ const atsdDispatchContinuitySnapshotSchema = strictObject({
5780
5819
  messagesSinceThen: number().int().finite().min(0),
5781
5820
  higherAuthorityUpdates: boolean()
5782
5821
  });
5822
+ const atsdDispatchOwnerSchema = strictObject({
5823
+ kind: literal("owner_account"),
5824
+ id: string().min(1)
5825
+ });
5783
5826
  const atsdDispatchQueueLegacyMessageSchemaV1 = strictObject({
5784
5827
  v: literal(1),
5785
5828
  dispatchId: string().min(1),
@@ -5795,6 +5838,7 @@ const atsdDispatchQueueMessageSchema = strictObject({
5795
5838
  spaceId: string().min(1),
5796
5839
  sourceEventId: string().min(1),
5797
5840
  sourceClientMessageId: string().min(1).max(200).nullable().optional(),
5841
+ dispatchOwner: atsdDispatchOwnerSchema.optional(),
5798
5842
  targetProfileId: string().min(1),
5799
5843
  targetProfileMentionLabel: spaceMentionLabelSchema.optional(),
5800
5844
  dispatchChainId: string().min(1),
@@ -5994,6 +6038,11 @@ const atsdTaskResultPromptTraceSchema = strictObject({
5994
6038
  length: int().nonnegative(),
5995
6039
  preview: union([string().min(1), _null()])
5996
6040
  });
6041
+ const atsdTaskResultClaimLeaseSchema = strictObject({
6042
+ claimLeaseId: string().min(1),
6043
+ outcome: _enum(["existing_lease", "new_lease"]),
6044
+ status: literal("accepted")
6045
+ });
5997
6046
  const atsdTaskResultTelemetrySchema = strictObject({
5998
6047
  completedAtMs: number().int().nonnegative(),
5999
6048
  contextHealed: boolean().optional(),
@@ -6027,6 +6076,7 @@ const atsdTaskResultCommonSchema = atsdTaskResultCommonSchemaV1.extend({
6027
6076
  effectiveRuntimeWorkingDirectory: profileWorkingDirectorySchema.optional(),
6028
6077
  runtimeWorkspaceFingerprint: string().min(1).optional(),
6029
6078
  promptTrace: atsdTaskResultPromptTraceSchema.optional(),
6079
+ claimLease: atsdTaskResultClaimLeaseSchema.optional(),
6030
6080
  bootstrapTemplateFacts: bootstrapTemplateFactsSchema.optional(),
6031
6081
  dispatchExecution: dispatchExecutionSchema.optional(),
6032
6082
  openClawGatewayVisibility: atsdTaskResultOpenClawGatewayVisibilitySchema.optional(),
@@ -6228,6 +6278,7 @@ const daemonHubDeliverDispatchPayloadSchema = strictObject({
6228
6278
  taskId: string().min(1),
6229
6279
  spaceId: string().min(1),
6230
6280
  sourceEventId: string().min(1),
6281
+ sourceClientMessageId: string().min(1).max(200).nullable().optional(),
6231
6282
  sourceSignal: daemonHubDispatchSourceSignalSchema,
6232
6283
  targetProfileId: string().min(1),
6233
6284
  dispatchContractVersion: number().int().positive(),
@@ -6399,6 +6450,7 @@ const resolvedAtsProfileSchema = strictObject({
6399
6450
  });
6400
6451
  const atsActorContextSchema = strictObject({
6401
6452
  requestId: nonEmptyTextSchema,
6453
+ callerPrincipalId: nonEmptyTextSchema.optional(),
6402
6454
  atsProfileId: atsActorProfileIdSchema,
6403
6455
  profileKind: profileKindSchema,
6404
6456
  profileHandle: profileHandleSchema.optional(),
@@ -6626,6 +6678,268 @@ const dbInspectionSummarySchema = strictObject({
6626
6678
  }),
6627
6679
  notes: array(trimmedNonEmptyStringSchema$5)
6628
6680
  });
6681
+ const boundedIdentifierSchema$4 = string().trim().min(1).max(256);
6682
+ const reasonCodeSchema$3 = string().trim().min(1).max(256);
6683
+ const agentProfileBindingRouteParamsSchema = strictObject({ agentProfileId: boundedIdentifierSchema$4 });
6684
+ const agentProfileBindingRuntimeIdSchema = strictObject({
6685
+ source: literal("runtime_registry_authority"),
6686
+ value: string().trim().min(1).max(512)
6687
+ });
6688
+ const ensureAgentProfilePrimaryBindingBodySchema = strictObject({
6689
+ capabilityRef: boundedIdentifierSchema$4,
6690
+ deviceId: boundedIdentifierSchema$4,
6691
+ lane: boundedIdentifierSchema$4,
6692
+ runtimeId: agentProfileBindingRuntimeIdSchema
6693
+ });
6694
+ const agentProfileBindingStateSchema = _enum([
6695
+ "missing",
6696
+ "enabled_primary",
6697
+ "disabled_historical",
6698
+ "conflict",
6699
+ "owner_mismatch"
6700
+ ]);
6701
+ const agentProfileBindingResolutionSourceSchema = _enum([
6702
+ "binding_truth",
6703
+ "missing_projection",
6704
+ "conflict_evidence"
6705
+ ]);
6706
+ const agentProfileBindingAuthoritySourceSchema = _enum([
6707
+ "binding_truth",
6708
+ "none",
6709
+ "blocked"
6710
+ ]);
6711
+ const agentProfileBindingRuntimeCapabilitySchema = strictObject({
6712
+ capabilityRef: boundedIdentifierSchema$4,
6713
+ runtimeId: agentProfileBindingRuntimeIdSchema
6714
+ });
6715
+ const agentProfileBindingDispatchEligibilitySchema = strictObject({
6716
+ reasonCodes: array(reasonCodeSchema$3),
6717
+ routable: boolean(),
6718
+ status: _enum(["routable", "not_routable"])
6719
+ });
6720
+ const agentProfileBindingProjectionSchema = strictObject({
6721
+ agentProfileId: boundedIdentifierSchema$4,
6722
+ authoritySource: agentProfileBindingAuthoritySourceSchema,
6723
+ bindingId: boundedIdentifierSchema$4.optional(),
6724
+ bindingState: agentProfileBindingStateSchema,
6725
+ dispatchEligibility: agentProfileBindingDispatchEligibilitySchema,
6726
+ grantsClaimSuccess: literal(false),
6727
+ reasonCodes: array(reasonCodeSchema$3),
6728
+ resolutionSource: agentProfileBindingResolutionSourceSchema,
6729
+ routable: boolean(),
6730
+ runtimeCapability: agentProfileBindingRuntimeCapabilitySchema.nullable()
6731
+ }).superRefine(validateAgentProfileBindingProjection);
6732
+ const getAgentProfilePrimaryBindingResponseSchema = strictObject({
6733
+ binding: agentProfileBindingProjectionSchema,
6734
+ grantsClaimSuccess: literal(false),
6735
+ status: _enum(["found", "missing"])
6736
+ }).superRefine((value, context) => {
6737
+ const expectedStatus = value.binding.bindingState === "missing" ? "missing" : "found";
6738
+ if (value.status !== expectedStatus) context.addIssue({
6739
+ code: "custom",
6740
+ message: "Binding read status must match Binding projection",
6741
+ path: ["status"]
6742
+ });
6743
+ });
6744
+ const ensureAgentProfilePrimaryBindingResponseSchema = strictObject({
6745
+ binding: agentProfileBindingProjectionSchema.optional(),
6746
+ grantsClaimSuccess: literal(false),
6747
+ outcome: _enum(["created", "reused"]).optional(),
6748
+ reasonCodes: array(reasonCodeSchema$3),
6749
+ routable: boolean(),
6750
+ status: _enum(["accepted", "rejected"])
6751
+ }).superRefine((value, context) => {
6752
+ if (value.status === "accepted") {
6753
+ if (!value.binding) context.addIssue({
6754
+ code: "custom",
6755
+ message: "accepted Binding command response requires Binding truth",
6756
+ path: ["binding"]
6757
+ });
6758
+ if (!value.outcome) context.addIssue({
6759
+ code: "custom",
6760
+ message: "accepted Binding command response requires an outcome",
6761
+ path: ["outcome"]
6762
+ });
6763
+ if (!value.routable) context.addIssue({
6764
+ code: "custom",
6765
+ message: "accepted Binding command response must be routable",
6766
+ path: ["routable"]
6767
+ });
6768
+ if (value.binding) requireAcceptedBindingCommandProjection(value.binding, context);
6769
+ return;
6770
+ }
6771
+ if (value.outcome) context.addIssue({
6772
+ code: "custom",
6773
+ message: "rejected Binding command response cannot include outcome",
6774
+ path: ["outcome"]
6775
+ });
6776
+ if (value.routable) context.addIssue({
6777
+ code: "custom",
6778
+ message: "rejected Binding command response cannot be routable",
6779
+ path: ["routable"]
6780
+ });
6781
+ });
6782
+ function validateAgentProfileBindingProjection(value, context) {
6783
+ validateBindingDispatchEligibility(value, context);
6784
+ bindingProjectionValidators[value.bindingState](value, context);
6785
+ }
6786
+ const bindingProjectionValidators = {
6787
+ conflict: validateConflictProjection,
6788
+ disabled_historical: validateDisabledHistoricalProjection,
6789
+ enabled_primary: validateEnabledPrimaryProjection,
6790
+ missing: validateMissingProjection,
6791
+ owner_mismatch: validateOwnerMismatchProjection
6792
+ };
6793
+ function validateBindingDispatchEligibility(value, context) {
6794
+ if (value.dispatchEligibility.routable !== value.routable) context.addIssue({
6795
+ code: "custom",
6796
+ message: "Binding routable fields must agree",
6797
+ path: ["dispatchEligibility", "routable"]
6798
+ });
6799
+ if (value.dispatchEligibility.status !== (value.routable ? "routable" : "not_routable")) context.addIssue({
6800
+ code: "custom",
6801
+ message: "Binding dispatch status must match routable state",
6802
+ path: ["dispatchEligibility", "status"]
6803
+ });
6804
+ }
6805
+ function validateEnabledPrimaryProjection(value, context) {
6806
+ requireBindingTruthProjection(value, context);
6807
+ if (!value.routable) context.addIssue({
6808
+ code: "custom",
6809
+ message: "enabled primary Binding must be routable",
6810
+ path: ["routable"]
6811
+ });
6812
+ }
6813
+ function validateDisabledHistoricalProjection(value, context) {
6814
+ requireBindingTruthProjection(value, context);
6815
+ if (value.routable) context.addIssue({
6816
+ code: "custom",
6817
+ message: "disabled historical Binding cannot be routable",
6818
+ path: ["routable"]
6819
+ });
6820
+ }
6821
+ function validateMissingProjection(value, context) {
6822
+ if (value.authoritySource !== "none") context.addIssue({
6823
+ code: "custom",
6824
+ message: "missing Binding projection cannot have authority source",
6825
+ path: ["authoritySource"]
6826
+ });
6827
+ if (value.resolutionSource !== "missing_projection") context.addIssue({
6828
+ code: "custom",
6829
+ message: "missing Binding projection requires missing source",
6830
+ path: ["resolutionSource"]
6831
+ });
6832
+ rejectMissingProjectionEvidence(value, context);
6833
+ }
6834
+ function rejectMissingProjectionEvidence(value, context) {
6835
+ if (value.bindingId) context.addIssue({
6836
+ code: "custom",
6837
+ message: "missing Binding projection cannot include bindingId",
6838
+ path: ["bindingId"]
6839
+ });
6840
+ if (value.runtimeCapability) context.addIssue({
6841
+ code: "custom",
6842
+ message: "missing Binding projection cannot include Runtime capability",
6843
+ path: ["runtimeCapability"]
6844
+ });
6845
+ if (value.routable) context.addIssue({
6846
+ code: "custom",
6847
+ message: "missing Binding projection cannot be routable",
6848
+ path: ["routable"]
6849
+ });
6850
+ }
6851
+ function validateConflictProjection(value, context) {
6852
+ if (value.authoritySource !== "blocked") context.addIssue({
6853
+ code: "custom",
6854
+ message: "conflict Binding projection must be blocked",
6855
+ path: ["authoritySource"]
6856
+ });
6857
+ if (value.resolutionSource !== "conflict_evidence") context.addIssue({
6858
+ code: "custom",
6859
+ message: "conflict Binding projection requires conflict evidence",
6860
+ path: ["resolutionSource"]
6861
+ });
6862
+ if (value.routable) context.addIssue({
6863
+ code: "custom",
6864
+ message: "conflict Binding projection cannot be routable",
6865
+ path: ["routable"]
6866
+ });
6867
+ }
6868
+ function validateOwnerMismatchProjection(value, context) {
6869
+ if (value.authoritySource !== "blocked") context.addIssue({
6870
+ code: "custom",
6871
+ message: "owner mismatch Binding projection must be blocked",
6872
+ path: ["authoritySource"]
6873
+ });
6874
+ if (value.routable) context.addIssue({
6875
+ code: "custom",
6876
+ message: "owner mismatch Binding projection cannot be routable",
6877
+ path: ["routable"]
6878
+ });
6879
+ }
6880
+ function requireBindingTruthProjection(value, context) {
6881
+ if (value.authoritySource !== "binding_truth") context.addIssue({
6882
+ code: "custom",
6883
+ message: "Binding truth projection requires binding authority",
6884
+ path: ["authoritySource"]
6885
+ });
6886
+ if (value.resolutionSource !== "binding_truth") context.addIssue({
6887
+ code: "custom",
6888
+ message: "Binding truth projection requires binding resolution source",
6889
+ path: ["resolutionSource"]
6890
+ });
6891
+ if (!value.bindingId) context.addIssue({
6892
+ code: "custom",
6893
+ message: "Binding truth projection requires bindingId",
6894
+ path: ["bindingId"]
6895
+ });
6896
+ if (!value.runtimeCapability) context.addIssue({
6897
+ code: "custom",
6898
+ message: "Binding truth projection requires Runtime capability",
6899
+ path: ["runtimeCapability"]
6900
+ });
6901
+ }
6902
+ function requireAcceptedBindingCommandProjection(binding, context) {
6903
+ if (binding.bindingState !== "enabled_primary") context.addIssue({
6904
+ code: "custom",
6905
+ message: "accepted Binding command response requires enabled primary truth",
6906
+ path: ["binding", "bindingState"]
6907
+ });
6908
+ if (binding.authoritySource !== "binding_truth") context.addIssue({
6909
+ code: "custom",
6910
+ message: "accepted Binding command response requires Binding authority",
6911
+ path: ["binding", "authoritySource"]
6912
+ });
6913
+ if (binding.resolutionSource !== "binding_truth") context.addIssue({
6914
+ code: "custom",
6915
+ message: "accepted Binding command response requires Binding truth source",
6916
+ path: ["binding", "resolutionSource"]
6917
+ });
6918
+ if (!binding.bindingId) context.addIssue({
6919
+ code: "custom",
6920
+ message: "accepted Binding command response requires bindingId",
6921
+ path: ["binding", "bindingId"]
6922
+ });
6923
+ if (!binding.runtimeCapability) context.addIssue({
6924
+ code: "custom",
6925
+ message: "accepted Binding command response requires Runtime capability",
6926
+ path: ["binding", "runtimeCapability"]
6927
+ });
6928
+ if (!(binding.routable && binding.dispatchEligibility.routable)) context.addIssue({
6929
+ code: "custom",
6930
+ message: "accepted Binding command response requires routable Binding truth",
6931
+ path: ["binding", "routable"]
6932
+ });
6933
+ if (binding.dispatchEligibility.status !== "routable") context.addIssue({
6934
+ code: "custom",
6935
+ message: "accepted Binding command response requires routable status",
6936
+ path: [
6937
+ "binding",
6938
+ "dispatchEligibility",
6939
+ "status"
6940
+ ]
6941
+ });
6942
+ }
6629
6943
  const setAuthPasswordBodySchema = strictObject({ newPassword: string() });
6630
6944
  const setAuthPasswordResponseSchema = strictObject({ status: boolean() });
6631
6945
  /**
@@ -6642,6 +6956,62 @@ const catchupResponseSchema = strictObject({
6642
6956
  nextCursor
6643
6957
  };
6644
6958
  });
6959
+ const boundedIdentifierSchema$3 = string().trim().min(1).max(512);
6960
+ const boundedStatusSchema = string().trim().min(1).max(256);
6961
+ const nullableBoundedIdentifierSchema = boundedIdentifierSchema$3.nullable();
6962
+ const claimExecutionDiagnosticsQuerySchema = strictObject({
6963
+ claimLeaseId: boundedIdentifierSchema$3.optional(),
6964
+ dispatchId: boundedIdentifierSchema$3.optional(),
6965
+ sourceClientMessageId: boundedIdentifierSchema$3.optional(),
6966
+ spaceId: boundedIdentifierSchema$3.optional(),
6967
+ targetProfileId: boundedIdentifierSchema$3.optional()
6968
+ }).superRefine((value, context) => {
6969
+ const hasDispatchAnchor = Boolean(value.dispatchId);
6970
+ const hasClaimLeaseAnchor = Boolean(value.claimLeaseId);
6971
+ const hasBoundedSourceAnchor = Boolean(value.sourceClientMessageId && value.spaceId && value.targetProfileId);
6972
+ if (hasDispatchAnchor || hasClaimLeaseAnchor || hasBoundedSourceAnchor) return;
6973
+ context.addIssue({
6974
+ code: "custom",
6975
+ message: value.sourceClientMessageId === void 0 ? "claim execution diagnostics lookup requires dispatchId, claimLeaseId, or sourceClientMessageId with spaceId and targetProfileId" : "sourceClientMessageId diagnostics lookup requires spaceId and targetProfileId unless paired with dispatchId or claimLeaseId",
6976
+ path: ["sourceClientMessageId"]
6977
+ });
6978
+ });
6979
+ const claimExecutionDispatchOwnerSchema = strictObject({
6980
+ id: boundedIdentifierSchema$3,
6981
+ kind: boundedIdentifierSchema$3
6982
+ });
6983
+ const claimExecutionDiagnosticsDispatchSchema = strictObject({
6984
+ dispatchId: boundedIdentifierSchema$3,
6985
+ owner: claimExecutionDispatchOwnerSchema.nullable(),
6986
+ sourceClientMessageId: nullableBoundedIdentifierSchema,
6987
+ sourceEventId: boundedIdentifierSchema$3,
6988
+ status: boundedStatusSchema,
6989
+ targetProfileId: boundedIdentifierSchema$3
6990
+ });
6991
+ const claimExecutionDiagnosticsClaimLeaseSchema = strictObject({
6992
+ claimLeaseId: boundedIdentifierSchema$3,
6993
+ dispatchId: boundedIdentifierSchema$3,
6994
+ leaseState: boundedStatusSchema,
6995
+ sourceClientMessageId: nullableBoundedIdentifierSchema,
6996
+ status: literal("found")
6997
+ });
6998
+ const claimExecutionDiagnosticsResultSchema = strictObject({
6999
+ dispatchId: boundedIdentifierSchema$3,
7000
+ publicOutcome: boundedStatusSchema,
7001
+ publishedSignalId: nullableBoundedIdentifierSchema,
7002
+ resultRef: boundedIdentifierSchema$3,
7003
+ statusType: nullableBoundedIdentifierSchema
7004
+ });
7005
+ const claimExecutionDiagnosticsResponseSchema = strictObject({
7006
+ claimLease: claimExecutionDiagnosticsClaimLeaseSchema.nullable(),
7007
+ dispatch: claimExecutionDiagnosticsDispatchSchema.nullable(),
7008
+ result: claimExecutionDiagnosticsResultSchema.nullable(),
7009
+ status: _enum([
7010
+ "found",
7011
+ "mismatch",
7012
+ "missing"
7013
+ ])
7014
+ });
6645
7015
  const START_ISO_DATE_TIME_SCHEMA = datetime({ offset: true });
6646
7016
  const START_TRIMMED_NON_EMPTY_STRING_SCHEMA = string().trim().min(1);
6647
7017
  const START_BOUNDED_ID_SCHEMA = START_TRIMMED_NON_EMPTY_STRING_SCHEMA.max(256);
@@ -6655,6 +7025,95 @@ const startReplyReadinessSummarySchema = strictObject({
6655
7025
  function toStartTimestampMs(value) {
6656
7026
  return Date.parse(value);
6657
7027
  }
7028
+ const boundedIdentifierSchema$2 = string().trim().min(1).max(256);
7029
+ const reasonCodeSchema$2 = string().trim().min(1).max(256);
7030
+ const prepareReadinessRouteParamsSchema = strictObject({ deviceId: boundedIdentifierSchema$2 });
7031
+ const getPrepareReadinessQuerySchema = strictObject({
7032
+ capabilityRefs: array(string().trim().min(1).max(256)).optional(),
7033
+ lane: boundedIdentifierSchema$2,
7034
+ runtimeId: string().trim().min(1).max(512).optional()
7035
+ });
7036
+ const prepareReadinessRuntimeIdSchema = strictObject({
7037
+ source: literal("runtime_registry_authority"),
7038
+ value: string().trim().min(1).max(512)
7039
+ });
7040
+ const prepareReadinessDisplayStateSchema = _enum([
7041
+ "ready",
7042
+ "pending",
7043
+ "unavailable",
7044
+ "needs_prepare",
7045
+ "needs_repair",
7046
+ "stale",
7047
+ "unknown"
7048
+ ]);
7049
+ const prepareReadinessRunnableCapabilitySchema = strictObject({
7050
+ capabilityRef: string().trim().min(1).max(256),
7051
+ expiresAtMs: int().nonnegative(),
7052
+ observedAtMs: int().nonnegative(),
7053
+ reasonCodes: array(reasonCodeSchema$2),
7054
+ status: literal("ready")
7055
+ });
7056
+ const prepareReadinessNonRunnableCapabilitySchema = strictObject({
7057
+ capabilityRef: string().trim().min(1).max(256),
7058
+ expiresAtMs: int().nonnegative().optional(),
7059
+ observedAtMs: int().nonnegative().optional(),
7060
+ reasonCodes: array(reasonCodeSchema$2),
7061
+ status: _enum([
7062
+ "disabled",
7063
+ "invalid",
7064
+ "missing",
7065
+ "stale",
7066
+ "unavailable",
7067
+ "unknown"
7068
+ ])
7069
+ });
7070
+ const prepareReadinessProjectionSchema = strictObject({
7071
+ allRunnableCapabilitiesPrepared: strictObject({ status: _enum([
7072
+ "prepared",
7073
+ "not_prepared",
7074
+ "partial",
7075
+ "unknown"
7076
+ ]) }).optional(),
7077
+ projectionStatus: prepareReadinessDisplayStateSchema,
7078
+ reasonCodes: array(reasonCodeSchema$2),
7079
+ serviceReadiness: strictObject({ status: _enum([
7080
+ "running",
7081
+ "starting",
7082
+ "not_running",
7083
+ "not_installed",
7084
+ "needs_repair",
7085
+ "unavailable",
7086
+ "unknown"
7087
+ ]) }).optional()
7088
+ });
7089
+ const prepareReadinessSummarySchema = strictObject({
7090
+ displayState: prepareReadinessDisplayStateSchema,
7091
+ ready: boolean(),
7092
+ reasonCodes: array(reasonCodeSchema$2)
7093
+ });
7094
+ const getPrepareReadinessResponseSchema = strictObject({
7095
+ capabilityReportsRead: boolean(),
7096
+ nonRunnableCapabilities: array(prepareReadinessNonRunnableCapabilitySchema),
7097
+ projection: prepareReadinessProjectionSchema,
7098
+ reason: _enum([
7099
+ "runtime_identity_invalid",
7100
+ "runtime_id_invalid",
7101
+ "runtime_id_mismatch",
7102
+ "runtime_lookup_conflict",
7103
+ "runtime_missing",
7104
+ "runtime_not_ready"
7105
+ ]).optional(),
7106
+ runnableCapabilities: array(prepareReadinessRunnableCapabilitySchema),
7107
+ runtimeId: prepareReadinessRuntimeIdSchema.optional(),
7108
+ status: _enum(["not_ready", "ready"]),
7109
+ summary: prepareReadinessSummarySchema
7110
+ }).superRefine((value, context) => {
7111
+ if (value.status === "ready" && !value.runtimeId) context.addIssue({
7112
+ code: "custom",
7113
+ message: "ready prepare readiness response requires authority runtimeId evidence",
7114
+ path: ["runtimeId"]
7115
+ });
7116
+ });
6658
7117
  const ownedDeviceDisplayNameSourceSchema = _enum([
6659
7118
  "user",
6660
7119
  "observed",
@@ -6672,6 +7131,38 @@ const ownedDeviceTypeSchema = _enum([
6672
7131
  "server",
6673
7132
  "unknown"
6674
7133
  ]);
7134
+ const reasonCodeSchema$1 = string().trim().min(1).max(256);
7135
+ const ownedDeviceExecutionTargetCapabilitySchema = strictObject({
7136
+ capabilityRef: string().trim().min(1).max(256),
7137
+ reasonCodes: array(reasonCodeSchema$1),
7138
+ status: _enum([
7139
+ "ready",
7140
+ "not_ready",
7141
+ "stale",
7142
+ "unknown"
7143
+ ])
7144
+ });
7145
+ const ownedDeviceExecutionTargetStatusSchema = _enum([
7146
+ "ready",
7147
+ "not_ready",
7148
+ "stale",
7149
+ "unknown"
7150
+ ]);
7151
+ const ownedDeviceExecutionTargetSchema = strictObject({
7152
+ deviceId: START_BOUNDED_ID_SCHEMA,
7153
+ runtimeLane: daemonServiceLaneSchema,
7154
+ userFacingCommand: _enum([
7155
+ "ats",
7156
+ "ats-dev",
7157
+ "ats-canary"
7158
+ ]),
7159
+ runtimeId: prepareReadinessRuntimeIdSchema.nullable(),
7160
+ status: ownedDeviceExecutionTargetStatusSchema,
7161
+ capabilities: array(ownedDeviceExecutionTargetCapabilitySchema),
7162
+ reasonCodes: array(reasonCodeSchema$1),
7163
+ lastObservedAtMs: number().int().nonnegative().nullable(),
7164
+ isCurrent: boolean()
7165
+ });
6675
7166
  const ownedDeviceOptionSchema = strictObject({
6676
7167
  deviceId: START_BOUNDED_ID_SCHEMA,
6677
7168
  deviceDisplayName: string().min(1),
@@ -6681,23 +7172,31 @@ const ownedDeviceOptionSchema = strictObject({
6681
7172
  deviceType: ownedDeviceTypeSchema,
6682
7173
  firstSeenAtMs: number().int().nonnegative(),
6683
7174
  lastObservedAtMs: number().int().nonnegative().nullable(),
6684
- isCurrent: boolean()
7175
+ isCurrent: boolean(),
7176
+ executionTargets: array(ownedDeviceExecutionTargetSchema)
6685
7177
  });
6686
7178
  const ownedDevicesResponseSchema = strictObject({
6687
7179
  currentDeviceId: START_BOUNDED_ID_SCHEMA.nullable(),
7180
+ currentRuntimeLane: daemonServiceLaneSchema.nullable(),
6688
7181
  devices: array(ownedDeviceOptionSchema)
6689
7182
  });
6690
7183
  const setOwnedDeviceDisplayNameBodySchema = strictObject({ displayName: string().trim().min(1).max(80).nullable() });
7184
+ const currentDeviceTargetDeviceIdSchema = START_BOUNDED_ID_SCHEMA;
6691
7185
  const currentDeviceTargetResolvedSchema = strictObject({
6692
7186
  availability: literal("resolved"),
6693
- deviceId: START_BOUNDED_ID_SCHEMA
7187
+ deviceId: currentDeviceTargetDeviceIdSchema,
7188
+ runtimeLane: daemonServiceLaneSchema
7189
+ });
7190
+ const currentDeviceTargetMissingSchema = strictObject({
7191
+ availability: literal("missing"),
7192
+ reasonCodes: array(string().trim().min(1).max(256)).optional()
6694
7193
  });
6695
- const currentDeviceTargetMissingSchema = strictObject({ availability: literal("missing") });
6696
7194
  const currentDeviceTargetResponseSchema = discriminatedUnion("availability", [currentDeviceTargetResolvedSchema, currentDeviceTargetMissingSchema]);
6697
7195
  const currentDeviceTargetWriteModeSchema = _enum(["replace", "if_missing"]);
6698
7196
  const currentDeviceTargetActivationSourceSchema = _enum(["local_setup"]);
6699
7197
  const setCurrentDeviceTargetBodySchema = strictObject({
6700
- deviceId: START_BOUNDED_ID_SCHEMA,
7198
+ deviceId: currentDeviceTargetDeviceIdSchema,
7199
+ runtimeLane: daemonServiceLaneSchema,
6701
7200
  activationSource: currentDeviceTargetActivationSourceSchema.optional(),
6702
7201
  writeMode: currentDeviceTargetWriteModeSchema.optional()
6703
7202
  });
@@ -6708,90 +7207,18 @@ const forgetCurrentComputerResponseSchema = strictObject({
6708
7207
  currentDeviceTarget: currentDeviceTargetMissingSchema,
6709
7208
  ownedDevices: ownedDevicesResponseSchema
6710
7209
  });
7210
+ const forgetComputerRouteParamsSchema = strictObject({ deviceId: currentDeviceTargetDeviceIdSchema });
7211
+ const forgetComputerResponseSchema = strictObject({
7212
+ status: forgetCurrentComputerStatusSchema,
7213
+ forgottenDeviceId: START_BOUNDED_ID_SCHEMA.nullable(),
7214
+ currentDeviceTarget: currentDeviceTargetResponseSchema,
7215
+ ownedDevices: ownedDevicesResponseSchema
7216
+ });
6711
7217
  const daemonRouteObservationResponseSchema = strictObject({
6712
7218
  observedAt: string().trim().min(1),
6713
7219
  profileId: string().trim().min(1),
6714
7220
  route: daemonHubLookupRouteResponseSchema
6715
7221
  });
6716
- const deviceAgentRuntimeModeSchema = _enum(["selected_agents", "no_agents"]);
6717
- const selectedAgentIdsSchema$1 = array(START_BOUNDED_ID_SCHEMA).superRefine((value, ctx) => {
6718
- const seen = /* @__PURE__ */ new Set();
6719
- for (const [index, agentId] of value.entries()) {
6720
- if (seen.has(agentId)) {
6721
- ctx.addIssue({
6722
- code: "custom",
6723
- message: "selectedAgentIds must not contain duplicate local agent ids",
6724
- path: [index]
6725
- });
6726
- continue;
6727
- }
6728
- seen.add(agentId);
6729
- }
6730
- });
6731
- const deviceAgentRuntimePreferenceSchema = strictObject({
6732
- deviceId: START_BOUNDED_ID_SCHEMA,
6733
- mode: deviceAgentRuntimeModeSchema,
6734
- selectedAgentIds: selectedAgentIdsSchema$1,
6735
- updatedAt: START_ISO_DATE_TIME_SCHEMA
6736
- }).superRefine((value, ctx) => {
6737
- if (value.mode === "selected_agents" && value.selectedAgentIds.length === 0) ctx.addIssue({
6738
- code: "custom",
6739
- message: "selectedAgentIds must contain at least one agent when mode is selected_agents",
6740
- path: ["selectedAgentIds"]
6741
- });
6742
- if (value.mode === "no_agents" && value.selectedAgentIds.length !== 0) ctx.addIssue({
6743
- code: "custom",
6744
- message: "selectedAgentIds must be empty when mode is no_agents",
6745
- path: ["selectedAgentIds"]
6746
- });
6747
- });
6748
- const savedDeviceAgentRuntimeSchema = discriminatedUnion("availability", [strictObject({ availability: literal("missing") }), strictObject({
6749
- availability: literal("saved"),
6750
- mode: deviceAgentRuntimeModeSchema,
6751
- selectedAgentIds: selectedAgentIdsSchema$1,
6752
- updatedAt: START_ISO_DATE_TIME_SCHEMA
6753
- }).superRefine((value, ctx) => {
6754
- if (value.mode === "selected_agents" && value.selectedAgentIds.length === 0) ctx.addIssue({
6755
- code: "custom",
6756
- message: "selectedAgentIds must contain at least one agent when mode is selected_agents",
6757
- path: ["selectedAgentIds"]
6758
- });
6759
- if (value.mode === "no_agents" && value.selectedAgentIds.length !== 0) ctx.addIssue({
6760
- code: "custom",
6761
- message: "selectedAgentIds must be empty when mode is no_agents",
6762
- path: ["selectedAgentIds"]
6763
- });
6764
- })]);
6765
- const selectedAgentIdsSchema = array(START_BOUNDED_ID_SCHEMA).superRefine((value, ctx) => {
6766
- const seen = /* @__PURE__ */ new Set();
6767
- for (const [index, agentId] of value.entries()) {
6768
- if (seen.has(agentId)) {
6769
- ctx.addIssue({
6770
- code: "custom",
6771
- message: "selectedAgentIds must not contain duplicate local agent ids",
6772
- path: [index]
6773
- });
6774
- continue;
6775
- }
6776
- seen.add(agentId);
6777
- }
6778
- });
6779
- const deviceAgentRuntimeRouteParamsSchema = strictObject({ deviceId: START_BOUNDED_ID_SCHEMA });
6780
- const writeDeviceAgentRuntimeBodySchema = strictObject({
6781
- mode: deviceAgentRuntimeModeSchema,
6782
- selectedAgentIds: selectedAgentIdsSchema
6783
- }).superRefine((value, ctx) => {
6784
- if (value.mode === "selected_agents" && value.selectedAgentIds.length === 0) ctx.addIssue({
6785
- code: "custom",
6786
- message: "selectedAgentIds must contain at least one agent when mode is selected_agents",
6787
- path: ["selectedAgentIds"]
6788
- });
6789
- if (value.mode === "no_agents" && value.selectedAgentIds.length !== 0) ctx.addIssue({
6790
- code: "custom",
6791
- message: "selectedAgentIds must be empty when mode is no_agents",
6792
- path: ["selectedAgentIds"]
6793
- });
6794
- });
6795
7222
  const startSessionLifecycleStatusSchema = _enum([
6796
7223
  "active",
6797
7224
  "superseded",
@@ -6812,10 +7239,10 @@ const startSpaceChoiceModeSchema = _enum([
6812
7239
  "create_new",
6813
7240
  "join_existing"
6814
7241
  ]);
6815
- const startAgentSelectionModeSchema = _enum([
7242
+ const startLocalAgentPreparationModeSchema = _enum([
6816
7243
  "unresolved",
6817
- "selected_agents",
6818
- "no_agents"
7244
+ "prepare_local_agents",
7245
+ "skip_local_agents"
6819
7246
  ]);
6820
7247
  const startSpaceMemberSelectionModeSchema = _enum([
6821
7248
  "unresolved",
@@ -6873,26 +7300,26 @@ function validateStartTargetSpaceId(input) {
6873
7300
  path: ["targetSpaceId"]
6874
7301
  });
6875
7302
  }
6876
- const startSelectedAgentIdsSchema = array(START_BOUNDED_ID_SCHEMA).superRefine((value, ctx) => {
7303
+ const startLocalAgentIdsSchema = array(START_BOUNDED_ID_SCHEMA).superRefine((value, ctx) => {
6877
7304
  if (new Set(value).size !== value.length) ctx.addIssue({
6878
7305
  code: "custom",
6879
- message: "selectedAgentIds must not contain duplicates"
7306
+ message: "localAgentIds must not contain duplicates"
6880
7307
  });
6881
7308
  });
6882
- const startAgentSelectionSchema = strictObject({
6883
- mode: startAgentSelectionModeSchema,
6884
- selectedAgentIds: startSelectedAgentIdsSchema
7309
+ const startLocalAgentPreparationSchema = strictObject({
7310
+ mode: startLocalAgentPreparationModeSchema,
7311
+ localAgentIds: startLocalAgentIdsSchema
6885
7312
  }).superRefine((value, ctx) => {
6886
- const hasSelectedAgentIds = value.selectedAgentIds.length > 0;
6887
- if (value.mode === "selected_agents" && !hasSelectedAgentIds) ctx.addIssue({
7313
+ const hasLocalAgentIds = value.localAgentIds.length > 0;
7314
+ if (value.mode === "prepare_local_agents" && !hasLocalAgentIds) ctx.addIssue({
6888
7315
  code: "custom",
6889
- message: "selected_agents agent selection must provide at least one selectedAgentId",
6890
- path: ["selectedAgentIds"]
7316
+ message: "prepare_local_agents local agent preparation must provide at least one localAgentId",
7317
+ path: ["localAgentIds"]
6891
7318
  });
6892
- if (value.mode !== "selected_agents" && hasSelectedAgentIds) ctx.addIssue({
7319
+ if (value.mode !== "prepare_local_agents" && hasLocalAgentIds) ctx.addIssue({
6893
7320
  code: "custom",
6894
- message: "unresolved and no_agents agent selection must use an empty selectedAgentIds list",
6895
- path: ["selectedAgentIds"]
7321
+ message: "unresolved and skip_local_agents local agent preparation must use an empty localAgentIds list",
7322
+ path: ["localAgentIds"]
6896
7323
  });
6897
7324
  });
6898
7325
  const startSelectedSpaceMemberProfileIdsSchema = array(atsProfileIdSchema).superRefine((value, ctx) => {
@@ -6924,7 +7351,7 @@ const startSessionSchema = strictObject({
6924
7351
  initiator: startSessionInitiatorSchema,
6925
7352
  lifecycleStatus: startSessionLifecycleStatusSchema,
6926
7353
  profileChoice: startProfileChoiceSchema,
6927
- agentSelection: startAgentSelectionSchema,
7354
+ localAgentPreparation: startLocalAgentPreparationSchema,
6928
7355
  spaceMemberSelection: startSpaceMemberSelectionSchema.default({
6929
7356
  mode: "unresolved",
6930
7357
  selectedProfileIds: []
@@ -6986,6 +7413,58 @@ const writeStartObservedDeviceMetadataBodySchema = strictObject({
6986
7413
  metadata: observedDeviceMetadataSchema
6987
7414
  });
6988
7415
  const writeStartObservedDeviceMetadataResponseSchema = writeCurrentDeviceObservedMetadataResponseSchema;
7416
+ const boundedIdentifierSchema$1 = string().trim().min(1).max(512);
7417
+ const boundedReasonCodeSchema = string().trim().min(1).max(256);
7418
+ const timestampMsSchema = int().nonnegative();
7419
+ const finalClaimRouteParamsSchema = strictObject({
7420
+ dispatchId: boundedIdentifierSchema$1,
7421
+ spaceId: boundedIdentifierSchema$1
7422
+ });
7423
+ const finalClaimRuntimeIdSchema = strictObject({
7424
+ source: literal("runtime_registry_authority"),
7425
+ value: boundedIdentifierSchema$1
7426
+ });
7427
+ const reserveFinalClaimBodySchema = strictObject({
7428
+ capabilityRef: boundedIdentifierSchema$1,
7429
+ claimIdempotencyKey: boundedIdentifierSchema$1,
7430
+ deviceId: boundedIdentifierSchema$1,
7431
+ lane: boundedIdentifierSchema$1,
7432
+ runtimeId: finalClaimRuntimeIdSchema,
7433
+ sourceClientMessageId: boundedIdentifierSchema$1.nullable().optional(),
7434
+ sourceSignalId: boundedIdentifierSchema$1,
7435
+ targetProfileId: boundedIdentifierSchema$1
7436
+ });
7437
+ const finalClaimDiagnosticPointerSchema = strictObject({
7438
+ dispatchId: boundedIdentifierSchema$1.optional(),
7439
+ requestId: boundedIdentifierSchema$1.optional(),
7440
+ spaceId: boundedIdentifierSchema$1.optional(),
7441
+ targetProfileId: boundedIdentifierSchema$1.optional()
7442
+ });
7443
+ const finalClaimAcceptedLeaseSchema = strictObject({
7444
+ bindingId: boundedIdentifierSchema$1,
7445
+ capabilityRef: boundedIdentifierSchema$1,
7446
+ dispatchId: boundedIdentifierSchema$1,
7447
+ expiresAtMs: timestampMsSchema,
7448
+ leaseId: boundedIdentifierSchema$1,
7449
+ runtimeId: finalClaimRuntimeIdSchema,
7450
+ targetProfileId: boundedIdentifierSchema$1
7451
+ });
7452
+ const reserveFinalClaimAcceptedResponseSchema = strictObject({
7453
+ claimLeaseReserved: literal(true),
7454
+ lease: finalClaimAcceptedLeaseSchema,
7455
+ outcome: _enum(["new_lease", "existing_lease"]),
7456
+ runtimeExecutionStarted: literal(false),
7457
+ status: literal("accepted")
7458
+ });
7459
+ const reserveFinalClaimRejectedResponseSchema = strictObject({
7460
+ claimLeaseReserved: literal(false),
7461
+ diagnosticPointer: finalClaimDiagnosticPointerSchema.optional(),
7462
+ reason: boundedIdentifierSchema$1,
7463
+ reasonCode: boundedReasonCodeSchema,
7464
+ runtimeExecutionStarted: literal(false),
7465
+ status: literal("rejected")
7466
+ });
7467
+ const reserveFinalClaimResponseSchema = discriminatedUnion("status", [reserveFinalClaimAcceptedResponseSchema, reserveFinalClaimRejectedResponseSchema]);
6989
7468
  const trimmedNonEmptyStringSchema$4 = string().trim().min(1);
6990
7469
  const gatewayErrorCodeSchema = _enum([
6991
7470
  "bad_request",
@@ -7444,6 +7923,113 @@ const updateProfileResponseSchema = strictObject({
7444
7923
  ok: literal(true),
7445
7924
  profile: authProfileViewSchema
7446
7925
  });
7926
+ const boundedIdentifierSchema = string().trim().min(1).max(256);
7927
+ const reasonCodeSchema = string().trim().min(1).max(256);
7928
+ const runtimeReportingRouteParamsSchema = strictObject({ deviceId: boundedIdentifierSchema });
7929
+ const runtimeReportingRuntimeIdSchema = strictObject({
7930
+ source: literal("runtime_registry_authority"),
7931
+ value: string().trim().min(1).max(512)
7932
+ });
7933
+ const submitRuntimeRegistrationBodySchema = strictObject({ lane: boundedIdentifierSchema });
7934
+ const runtimeRegistrationRejectedReasonSchema = _enum([
7935
+ "device_forgotten",
7936
+ "owner_authorization_denied",
7937
+ "owner_authorization_unknown",
7938
+ "owner_authorization_unavailable",
7939
+ "owner_kind_unsupported",
7940
+ "runtime_id_collision",
7941
+ "runtime_id_invalid",
7942
+ "runtime_id_not_opaque",
7943
+ "runtime_record_missing_after_conflict",
7944
+ "unknown"
7945
+ ]);
7946
+ const submitRuntimeRegistrationResponseSchema = strictObject({
7947
+ reason: runtimeRegistrationRejectedReasonSchema.optional(),
7948
+ runtimeId: runtimeReportingRuntimeIdSchema.optional(),
7949
+ status: _enum([
7950
+ "created",
7951
+ "reused",
7952
+ "rejected"
7953
+ ])
7954
+ }).superRefine((value, context) => {
7955
+ if (value.status !== "rejected" && !value.runtimeId) context.addIssue({
7956
+ code: "custom",
7957
+ message: "registered Runtime response requires authority runtimeId",
7958
+ path: ["runtimeId"]
7959
+ });
7960
+ if (value.status === "rejected" && !value.reason) context.addIssue({
7961
+ code: "custom",
7962
+ message: "rejected Runtime registration requires a reason",
7963
+ path: ["reason"]
7964
+ });
7965
+ });
7966
+ const runtimeCapabilityReportStatusSchema = _enum([
7967
+ "ready",
7968
+ "disabled",
7969
+ "unavailable",
7970
+ "unknown"
7971
+ ]);
7972
+ const submitRuntimeCapabilityReportItemSchema = strictObject({
7973
+ capabilityRef: boundedIdentifierSchema,
7974
+ expiresAtMs: int().positive(),
7975
+ observedAtMs: int().positive(),
7976
+ reasonCodes: array(reasonCodeSchema).optional(),
7977
+ status: runtimeCapabilityReportStatusSchema
7978
+ });
7979
+ const submitRuntimeCapabilityReportsBodySchema = strictObject({
7980
+ lane: boundedIdentifierSchema,
7981
+ reports: array(submitRuntimeCapabilityReportItemSchema).min(1).max(64),
7982
+ runtimeId: runtimeReportingRuntimeIdSchema
7983
+ });
7984
+ const runtimeCapabilityReportRejectedReasonSchema = _enum([
7985
+ "capability_ref_invalid",
7986
+ "conflict",
7987
+ "out_of_order",
7988
+ "report_status_invalid",
7989
+ "report_time_invalid",
7990
+ "runtime_id_invalid",
7991
+ "runtime_id_mismatch",
7992
+ "runtime_identity_invalid",
7993
+ "runtime_lookup_conflict",
7994
+ "runtime_missing",
7995
+ "stale"
7996
+ ]);
7997
+ const submitRuntimeCapabilityReportResultSchema = strictObject({
7998
+ capabilityRef: boundedIdentifierSchema,
7999
+ outcome: _enum([
8000
+ "created",
8001
+ "updated",
8002
+ "reused"
8003
+ ]).optional(),
8004
+ reason: runtimeCapabilityReportRejectedReasonSchema.optional(),
8005
+ status: _enum(["accepted", "rejected"])
8006
+ }).superRefine((value, context) => {
8007
+ if (value.status === "accepted" && !value.outcome) context.addIssue({
8008
+ code: "custom",
8009
+ message: "accepted Runtime Capability Report requires an outcome",
8010
+ path: ["outcome"]
8011
+ });
8012
+ if (value.status === "rejected" && !value.reason) context.addIssue({
8013
+ code: "custom",
8014
+ message: "rejected Runtime Capability Report requires a reason",
8015
+ path: ["reason"]
8016
+ });
8017
+ });
8018
+ const submitRuntimeCapabilityReportsResponseSchema = strictObject({
8019
+ reports: array(submitRuntimeCapabilityReportResultSchema),
8020
+ runtimeId: runtimeReportingRuntimeIdSchema.optional(),
8021
+ status: _enum([
8022
+ "accepted",
8023
+ "partial",
8024
+ "rejected"
8025
+ ])
8026
+ }).superRefine((value, context) => {
8027
+ if (value.status !== "rejected" && !value.runtimeId) context.addIssue({
8028
+ code: "custom",
8029
+ message: "accepted Runtime Capability Report response requires authority runtimeId",
8030
+ path: ["runtimeId"]
8031
+ });
8032
+ });
7447
8033
  const patchSpaceContractBodySchema = spaceContractFieldsSchema.pick({
7448
8034
  dispatchPolicy: true,
7449
8035
  publicationMode: true,
@@ -7850,7 +8436,7 @@ const spaceDispatchTraceResponseSchema = strictObject({
7850
8436
  query: spaceDispatchTraceQuerySchema,
7851
8437
  trace: union([spaceDispatchTraceSnapshotSchema, _null()])
7852
8438
  });
7853
- const optionalSelectorSchema$1 = preprocess((value) => {
8439
+ const optionalSelectorSchema$2 = preprocess((value) => {
7854
8440
  const normalized = String(value ?? "").trim();
7855
8441
  return normalized.length > 0 ? normalized : void 0;
7856
8442
  }, string().min(1).optional());
@@ -7860,9 +8446,9 @@ const optionalClientMessageIdSchema = preprocess((value) => {
7860
8446
  }, clientMessageIdSchema.optional());
7861
8447
  const getSpaceDispatchLookupInputSchema = strictObject({
7862
8448
  spaceId: nonEmptyTrimmedStringFromUnknown,
7863
- sourceSignalId: optionalSelectorSchema$1,
8449
+ sourceSignalId: optionalSelectorSchema$2,
7864
8450
  clientMessageId: optionalClientMessageIdSchema,
7865
- targetProfileId: optionalSelectorSchema$1
8451
+ targetProfileId: optionalSelectorSchema$2
7866
8452
  }).superRefine((value, context) => {
7867
8453
  if (Number(value.sourceSignalId !== void 0) + Number(value.clientMessageId !== void 0) === 1) return;
7868
8454
  context.addIssue({
@@ -7891,6 +8477,8 @@ const getSpaceDispatchLookupResponseSchema = strictObject({
7891
8477
  }),
7892
8478
  matches: array(spaceDispatchLookupMatchSchema)
7893
8479
  });
8480
+ const MAX_SPACE_NAME_LENGTH = 80;
8481
+ const spaceNameSchema = string().trim().min(1).max(MAX_SPACE_NAME_LENGTH);
7894
8482
  const isoDateTimeSchema$1 = datetime({ offset: true });
7895
8483
  const nullableTrimmedStringSchema = union([string().trim().min(1), _null()]);
7896
8484
  const dispatchResultKindSchema = _enum(["text", "status"]);
@@ -7951,14 +8539,14 @@ const dispatchResultSchema = strictObject({
7951
8539
  path: ["messageEnvelope", "replyToSignalId"]
7952
8540
  });
7953
8541
  });
7954
- const optionalSelectorSchema = preprocess((value) => {
8542
+ const optionalSelectorSchema$1 = preprocess((value) => {
7955
8543
  const normalized = String(value ?? "").trim();
7956
8544
  return normalized.length > 0 ? normalized : void 0;
7957
8545
  }, string().min(1).optional());
7958
8546
  const getSpaceDispatchResultInputSchema = strictObject({
7959
8547
  spaceId: nonEmptyTrimmedStringFromUnknown,
7960
- dispatchId: optionalSelectorSchema,
7961
- resultRef: optionalSelectorSchema
8548
+ dispatchId: optionalSelectorSchema$1,
8549
+ resultRef: optionalSelectorSchema$1
7962
8550
  }).superRefine((value, ctx) => {
7963
8551
  if (Number(typeof value.dispatchId === "string") + Number(typeof value.resultRef === "string") !== 1) ctx.addIssue({
7964
8552
  code: "custom",
@@ -8086,6 +8674,45 @@ const getSpaceUpdatesInputSchema = strictObject({
8086
8674
  limit: updatesLimitSchema
8087
8675
  });
8088
8676
  const getSpaceUpdatesResponseSchema = strictObject({ signals: array(signalEnvelopeSchema) });
8677
+ const optionalSelectorSchema = preprocess((value) => {
8678
+ const normalized = String(value ?? "").trim();
8679
+ return normalized.length > 0 ? normalized : void 0;
8680
+ }, string().min(1).optional());
8681
+ const wakeProgressPhaseSchema = _enum([
8682
+ "sending",
8683
+ "request_sent",
8684
+ "queued",
8685
+ "connecting",
8686
+ "running",
8687
+ "writing",
8688
+ "retrying",
8689
+ "failed",
8690
+ "replied"
8691
+ ]);
8692
+ const wakeProgressItemSchema = strictObject({
8693
+ clientMessageId: clientMessageIdSchema.nullable(),
8694
+ sourceSignalId: string().trim().min(1).nullable(),
8695
+ dispatchId: string().trim().min(1).nullable(),
8696
+ targetProfileId: string().trim().min(1),
8697
+ targetLabel: string().trim().min(1),
8698
+ phase: wakeProgressPhaseSchema,
8699
+ message: string().trim().min(1),
8700
+ updatedAtMs: int().min(0),
8701
+ terminal: boolean()
8702
+ });
8703
+ const getSpaceWakeProgressInputSchema = strictObject({
8704
+ spaceId: nonEmptyTrimmedStringFromUnknown,
8705
+ clientMessageId: clientMessageIdSchema,
8706
+ targetProfileId: optionalSelectorSchema
8707
+ });
8708
+ const getSpaceWakeProgressResponseSchema = strictObject({
8709
+ query: strictObject({
8710
+ spaceId: string().trim().min(1),
8711
+ clientMessageId: clientMessageIdSchema,
8712
+ targetProfileId: string().trim().min(1).nullable()
8713
+ }),
8714
+ items: array(wakeProgressItemSchema)
8715
+ });
8089
8716
  const startBackgroundHelperInstallStatusSchema = _enum([
8090
8717
  "not_installed",
8091
8718
  "installed_current",
@@ -8255,10 +8882,10 @@ const startDeviceAgentCatalogSchema = strictObject({
8255
8882
  });
8256
8883
  const startDeviceProjectionSchema = strictObject({
8257
8884
  deviceId: START_BOUNDED_ID_SCHEMA,
8885
+ runtimeLane: daemonServiceLaneSchema,
8258
8886
  observedAt: START_ISO_DATE_TIME_SCHEMA,
8259
8887
  backgroundHelper: startBackgroundHelperProjectionSchema,
8260
8888
  skillsReadiness: startSkillsReadinessProjectionSchema,
8261
- savedAgentRuntime: savedDeviceAgentRuntimeSchema,
8262
8889
  deviceAgentCatalog: startDeviceAgentCatalogSchema,
8263
8890
  deviceReplyReadiness: startReplyReadinessSummarySchema
8264
8891
  });
@@ -8287,7 +8914,7 @@ const startNextActionIdSchema = _enum([
8287
8914
  "sign_in",
8288
8915
  "identity",
8289
8916
  "device_check",
8290
- "agent_selection",
8917
+ "local_agent_preparation",
8291
8918
  "space_choice",
8292
8919
  "space_entry"
8293
8920
  ]);
@@ -8298,7 +8925,7 @@ const startPlannerReasonCodeSchema = _enum([
8298
8925
  "sign_in.required",
8299
8926
  "identity.required",
8300
8927
  "device_check.pending",
8301
- "agent_selection.pending",
8928
+ "local_agent_preparation.pending",
8302
8929
  "space_choice.pending",
8303
8930
  "space_entry.pending",
8304
8931
  "device_projection.missing",
@@ -8314,9 +8941,9 @@ const startPlannerReasonCodeSchema = _enum([
8314
8941
  "background_helper.unknown",
8315
8942
  "skills_readiness.action_required",
8316
8943
  "skills_readiness.unknown",
8317
- "selected_agents.not_found",
8318
- "selected_agents.not_enabled",
8319
- "selected_agents.not_selectable",
8944
+ "local_agent_preparation.not_found",
8945
+ "local_agent_preparation.not_enabled",
8946
+ "local_agent_preparation.not_selectable",
8320
8947
  "profile_readiness.route_offline",
8321
8948
  "profile_readiness.route_unavailable",
8322
8949
  "profile_readiness.reply_blocked",
@@ -8371,7 +8998,7 @@ const startSessionStepIdSchema = _enum([
8371
8998
  "sign_in",
8372
8999
  "identity",
8373
9000
  "device_check",
8374
- "agent_selection",
9001
+ "local_agent_preparation",
8375
9002
  "space_choice",
8376
9003
  "space_entry"
8377
9004
  ]);
@@ -8383,7 +9010,7 @@ const startSessionProgressSchema = strictObject({
8383
9010
  currentStepId: startSessionStepIdSchema,
8384
9011
  completedStepIds: array(startSessionStepIdSchema),
8385
9012
  profileChoice: startProfileChoiceSchema,
8386
- agentSelection: startAgentSelectionSchema,
9013
+ localAgentPreparation: startLocalAgentPreparationSchema,
8387
9014
  spaceMemberSelection: startSpaceMemberSelectionSchema.default({
8388
9015
  mode: "unresolved",
8389
9016
  selectedProfileIds: []
@@ -8537,19 +9164,19 @@ const startSessionRouteParamsSchema = strictObject({ deviceId: START_BOUNDED_ID_
8537
9164
  const createStartSessionBodySchema = strictObject({
8538
9165
  initiator: startSessionInitiatorSchema,
8539
9166
  profileChoice: startProfileChoiceSchema,
8540
- agentSelection: startAgentSelectionSchema,
9167
+ localAgentPreparation: startLocalAgentPreparationSchema,
8541
9168
  spaceMemberSelection: startSpaceMemberSelectionSchema.optional(),
8542
9169
  spaceChoice: startSpaceChoiceSchema,
8543
9170
  writeMode: _enum(["replace", "if_missing"]).optional()
8544
9171
  });
8545
9172
  const patchStartSessionBodySchema = strictObject({
8546
9173
  profileChoice: startProfileChoiceSchema.optional(),
8547
- agentSelection: startAgentSelectionSchema.optional(),
9174
+ localAgentPreparation: startLocalAgentPreparationSchema.optional(),
8548
9175
  spaceMemberSelection: startSpaceMemberSelectionSchema.optional(),
8549
9176
  spaceChoice: startSpaceChoiceSchema.optional(),
8550
9177
  targetSpaceId: startTargetSpaceIdSchema.optional()
8551
9178
  }).refine((value) => {
8552
- return value.profileChoice !== void 0 || value.agentSelection !== void 0 || value.spaceMemberSelection !== void 0 || value.spaceChoice !== void 0 || value.targetSpaceId !== void 0;
9179
+ return value.profileChoice !== void 0 || value.localAgentPreparation !== void 0 || value.spaceMemberSelection !== void 0 || value.spaceChoice !== void 0 || value.targetSpaceId !== void 0;
8553
9180
  }, "at least one start session field must be provided");
8554
9181
  const startSessionResponseSchema = strictObject({ session: startSessionSchema });
8555
9182
  const startSessionWithTokenResponseSchema = strictObject({
@@ -8558,7 +9185,7 @@ const startSessionWithTokenResponseSchema = strictObject({
8558
9185
  });
8559
9186
  const startSessionSpaceChoiceCreateNewBodySchema = strictObject({
8560
9187
  mode: literal("create_new"),
8561
- name: string().trim().min(1).max(32),
9188
+ name: spaceNameSchema,
8562
9189
  password: spacePasswordSchema.optional()
8563
9190
  });
8564
9191
  const startSessionSpaceChoiceJoinExistingBodySchema = strictObject({
@@ -9037,5 +9664,5 @@ function toErrorMessage(error) {
9037
9664
  }
9038
9665
 
9039
9666
  //#endregion
9040
- export { currentDeviceTargetResponseSchema as $, resolveSpaceMentionLabels as $t, SPACE_MEMBER_REMOVE_NOTICE_PURPOSE as A, writeCurrentDeviceBootstrapObservationResponseSchema as An, normalizeBuiltinControllerAgentId as At, atsdTaskResultOpenClawGatewayVisibilityStatusSchema as B, patchStartSessionBodySchema as Bt, DISPATCH_ACTIVITY_DISPATCHING_PURPOSE as C, startSessionSpaceChoiceResponseSchema as Cn, getSpaceDispatchResultResponseSchema as Ct, MAX_PROFILE_WORKING_DIRECTORY_LENGTH as D, upsertProfileSpaceHistoryResponseSchema as Dn, isExplicitBuiltinControllerRef as Dt, LEGACY_RUNTIME_DISPATCH_POLICY as E, structuredGuidePayloadFromInputSchema as En, incomingServerMessageSchema as Et, atsRuntimeProfileIdSchema as F, writeStartObservedDeviceMetadataBodySchema as Fn, ownedDevicesResponseSchema as Ft, canonicalizeControllerRefForKind as G, profileWorkspaceModeSchema as Gt, buildControllerRoutingKeyForKind as H, postNormalMessageResponseSchema as Ht, atsSpaceEgressActionSchema as I, writeStartObservedDeviceMetadataResponseSchema as In, parseOptionalClientMessageId as It, continuitySchema as J, removeSpaceMembersResponseSchema as Jt, catchupResponseSchema as K, providerDispatchRuntimeContextSchema as Kt, atsdControlPlaneRequestSchema as L, writeStartSessionProgressBodySchema as Ln, patchProfileSpaceHistoryStatusResponseSchema as Lt, SPACE_PASSWORD_MIN_LENGTH as M, writeCurrentDeviceObservedMetadataResponseSchema as Mn, normalizeListSignalsReadQuerySemantics as Mt, SPACE_UPDATES_MAX_LIMIT as N, writeStartObservationBodySchema as Nn, normalizeMessageEnvelope as Nt, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as O, upsertSpaceDeletionTombstoneResponseSchema as On, leaveSpaceResponseSchema as Ot, atsProfileIdSchema as P, writeStartObservationResponseSchema as Pn, normalizeOptionalWorkingDirectory as Pt, createStartSessionBodySchema as Q, resolveSingleSpaceMentionLabels as Qt, atsdControlPlaneResponseSchema as R, writeStartSessionProgressResponseSchema as Rn, patchSpaceContractBodySchema as Rt, DAEMON_HUB_SCHEMA_VERSION as S, startSessionSpaceChoiceBodySchema as Sn, getSpaceDispatchLookupResponseSchema as St, DISPATCH_ACTIVITY_RETRYING_PURPOSE as T, startStateResponseSchema as Tn, getSpaceUpdatesResponseSchema as Tt, buildUpstreamConversationRef as U, postSpaceMembersBodySchema as Ut, atsdTaskResultPayloadSchema as V, postNormalMessageBodySchema as Vt, canonicalizeBuiltinControllerRef as W, postSpaceMembersResponseSchema as Wt, createSpaceBodySchema as X, resolveBuiltinUpstreamConversationRefKind as Xt, conversationExecutionStateSchema as Y, resolveBuiltinProviderConversationCapability as Yt, createSpaceResponseSchema as Z, resolveMessageEnvelopeTargetField as Zt, AGENT_REPLY_PREVIEW_END_PURPOSE as _, spaceMetaSchema as _n, gatewayErrorCodeSchema as _t, runWithHeldLock as a, serverErrorFrameSchema as an, daemonHubHeartbeatResponseSchema as at, ATSD_TASK_RESULT_SCHEMA_VERSION as b, startSessionProgressSchema as bn, getSpaceConversationRemoteStatusResponseSchema as bt, LEGACY_ATS_RUNTIME_SESSION_ENV_KEY as c, signalEnvelopeSchema as cn, daemonHubSubmitTaskResultRequestSchema as ct, resolveRuntimeSession as d, spaceConversationBindingImportResponseSchema as dn, daemonServiceContractSchema as dt, resolveStartHandoffBodySchema as en, daemonHubDeliverDispatchRequestSchema as et, resolveRuntimeSessionId as f, spaceConversationBindingResponseSchema as fn, daemonStreamFrameSchema as ft, AGENT_REPLYING_PURPOSE as g, spaceMembersSnapshotSchema as gn, formatCanonicalMentionLiteral as gt, AGENT_REPLYING_END_PURPOSE as h, spaceDispatchTraceResponseSchema as hn, forgetCurrentComputerResponseSchema as ht, releaseLock as i, sanitizeSignalTextPreview as in, daemonHubHeartbeatRequestSchema as it, SPACE_MENTION_REJECT_NOTICE_PURPOSE as j, writeCurrentDeviceObservedMetadataBodySchema as jn, normalizeBuiltinControllerProviderId as jt, SPACE_MEMBER_JOIN_NOTICE_PURPOSE as k, writeCurrentDeviceBootstrapObservationBodySchema as kn, listProfileSpaceHistoryResponseSchema as kt, listRuntimeSessionStates as l, spaceConversationBindingConflictResponseSchema as ln, daemonRouteObservationResponseSchema as lt, resolveBuiltinAgentControllerBrand as m, spaceCreatorSchema as mn, entryBriefSchema as mt, isAtsLockError as n, runtimeAgentControllerLaunchContractSchema as nn, daemonHubDispatchPreviewEndRequestSchema as nt, tryCleanupStaleLock as o, setCurrentDeviceTargetBodySchema as on, daemonHubRegisterSessionRequestSchema as ot, writeRuntimeSessionState as p, spaceConversationBindingUpsertResponseSchema as pn, dispatchBriefSchema as pt, collectCanonicalMentionTextFragments as q, querySpaceDeletionTombstonesResponseSchema as qt, readLockMeta as r, runtimeAgentControllerSettingsSchema as rn, daemonHubDispatchPreviewRequestSchema as rt, ATS_RUNTIME_SESSION_ENV_KEY as s, setOwnedDeviceDisplayNameBodySchema as sn, daemonHubRegisterSessionResponseSchema as st, acquireLock as t, resolveStartHandoffResponseSchema as tn, daemonHubDispatchLifecycleRequestSchema as tt, readRuntimeSessionState as u, spaceConversationBindingDeleteResponseSchema as un, daemonRuntimeLeaseSchema as ut, AGENT_REPLY_PREVIEW_PURPOSE as v, startDeviceProjectionSchema as vn, gatewayErrorEnvelopeSchema as vt, DISPATCH_ACTIVITY_FAILED_PURPOSE as w, startSessionWithTokenResponseSchema as wn, getSpaceStatusResponseSchema as wt, CONVERSATION_CONTINUITY_WARNING_PURPOSE as x, startSessionResponseSchema as xn, getSpaceConversationStatusResponseSchema as xt, ATSD_CONTROL_PLANE_SCHEMA_VERSION as y, startProfileReadinessSummarySchema as yn, getSpaceContractResponseSchema as yt, atsdTaskResultEnvelopeWriteSchema as z, createDaemonRouteObservationSummary as zn, patchSpaceContractResponseSchema as zt };
9041
- //# sourceMappingURL=lock-BDqdJx3V.js.map
9667
+ export { continuitySchema as $, writeStartObservationBodySchema as $n, patchSpaceContractResponseSchema as $t, SPACE_MEMBER_JOIN_NOTICE_PURPOSE as A, spaceCreatorSchema as An, getPrepareReadinessResponseSchema as At, atsdControlPlaneRequestSchema as B, startSessionWithTokenResponseSchema as Bn, incomingServerMessageSchema as Bt, DISPATCH_ACTIVITY_DISPATCHING_PURPOSE as C, setOwnedDeviceDisplayNameBodySchema as Cn, forgetComputerResponseSchema as Ct, MAX_PROFILE_WORKING_DIRECTORY_LENGTH as D, spaceConversationBindingImportResponseSchema as Dn, gatewayErrorEnvelopeSchema as Dt, LEGACY_RUNTIME_DISPATCH_POLICY as E, spaceConversationBindingDeleteResponseSchema as En, gatewayErrorCodeSchema as Et, agentProfileBindingRouteParamsSchema as F, startProfileReadinessSummarySchema as Fn, getSpaceDispatchResultResponseSchema as Ft, buildControllerRoutingKeyForKind as G, submitRuntimeRegistrationBodySchema as Gn, normalizeBuiltinControllerProviderId as Gt, atsdTaskResultEnvelopeWriteSchema as H, structuredGuidePayloadFromInputSchema as Hn, leaveSpaceResponseSchema as Ht, atsProfileIdSchema as I, startSessionProgressSchema as In, getSpaceMessageAddressingRelationSupportForTargetKind as It, canonicalizeControllerRefForKind as J, upsertSpaceDeletionTombstoneResponseSchema as Jn, normalizeOptionalWorkingDirectory as Jt, buildUpstreamConversationRef as K, submitRuntimeRegistrationResponseSchema as Kn, normalizeListSignalsReadQuerySemantics as Kt, atsRequestContextSchema as L, startSessionResponseSchema as Ln, getSpaceStatusResponseSchema as Lt, SPACE_MENTION_REJECT_NOTICE_PURPOSE as M, spaceMembersSnapshotSchema as Mn, getSpaceConversationRemoteStatusResponseSchema as Mt, SPACE_PASSWORD_MIN_LENGTH as N, spaceMetaSchema as Nn, getSpaceConversationStatusResponseSchema as Nt, MESSAGE_MENTION_TYPE_VALUES as O, spaceConversationBindingResponseSchema as On, getAgentProfilePrimaryBindingResponseSchema as Ot, SPACE_UPDATES_MAX_LIMIT as P, startDeviceProjectionSchema as Pn, getSpaceDispatchLookupResponseSchema as Pt, collectCanonicalMentionTextFragments as Q, writeCurrentDeviceObservedMetadataResponseSchema as Qn, patchSpaceContractBodySchema as Qt, atsRuntimeProfileIdSchema as R, startSessionSpaceChoiceBodySchema as Rn, getSpaceUpdatesResponseSchema as Rt, DAEMON_HUB_SCHEMA_VERSION as S, setCurrentDeviceTargetBodySchema as Sn, finalClaimRouteParamsSchema as St, DISPATCH_ACTIVITY_RETRYING_PURPOSE as T, spaceConversationBindingConflictResponseSchema as Tn, formatCanonicalMentionLiteral as Tt, atsdTaskResultOpenClawGatewayVisibilityStatusSchema as U, submitRuntimeCapabilityReportsBodySchema as Un, listProfileSpaceHistoryResponseSchema as Ut, atsdControlPlaneResponseSchema as V, startStateResponseSchema as Vn, isExplicitBuiltinControllerRef as Vt, atsdTaskResultPayloadSchema as W, submitRuntimeCapabilityReportsResponseSchema as Wn, normalizeBuiltinControllerAgentId as Wt, claimExecutionDiagnosticsQuerySchema as X, writeCurrentDeviceBootstrapObservationResponseSchema as Xn, parseOptionalClientMessageId as Xt, catchupResponseSchema as Y, writeCurrentDeviceBootstrapObservationBodySchema as Yn, ownedDevicesResponseSchema as Yt, claimExecutionDiagnosticsResponseSchema as Z, writeCurrentDeviceObservedMetadataBodySchema as Zn, patchProfileSpaceHistoryStatusResponseSchema as Zt, AGENT_REPLY_PREVIEW_END_PURPOSE as _, resolveStartHandoffResponseSchema as _n, daemonStreamFrameSchema as _t, runWithHeldLock as a, profileWorkspaceModeSchema as an, createDaemonRouteObservationSummary as ar, daemonHubDeliverDispatchRequestSchema as at, ATSD_TASK_RESULT_SCHEMA_VERSION as b, sanitizeSignalTextPreview as bn, ensureAgentProfilePrimaryBindingResponseSchema as bt, LEGACY_ATS_RUNTIME_SESSION_ENV_KEY as c, removeSpaceMembersResponseSchema as cn, daemonHubDispatchPreviewRequestSchema as ct, resolveRuntimeSession as d, resolveBuiltinProviderConversationCapability as dn, daemonHubRegisterSessionRequestSchema as dt, patchStartSessionBodySchema as en, writeStartObservationResponseSchema as er, conversationExecutionStateSchema as et, resolveRuntimeSessionId as f, resolveBuiltinUpstreamConversationRefKind as fn, daemonHubRegisterSessionResponseSchema as ft, AGENT_REPLYING_PURPOSE as g, resolveStartHandoffBodySchema as gn, daemonServiceContractSchema as gt, AGENT_REPLYING_END_PURPOSE as h, resolveSpaceMentionLabels as hn, daemonRuntimeLeaseSchema as ht, releaseLock as i, postSpaceMembersResponseSchema as in, writeStartSessionProgressResponseSchema as ir, currentDeviceTargetResponseSchema as it, SPACE_MEMBER_REMOVE_NOTICE_PURPOSE as j, spaceDispatchTraceResponseSchema as jn, getSpaceContractResponseSchema as jt, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as k, spaceConversationBindingUpsertResponseSchema as kn, getPrepareReadinessQuerySchema as kt, listRuntimeSessionStates as l, reserveFinalClaimBodySchema as ln, daemonHubHeartbeatRequestSchema as lt, resolveBuiltinAgentControllerBrand as m, resolveSingleSpaceMentionLabels as mn, daemonRouteObservationResponseSchema as mt, isAtsLockError as n, postNormalMessageResponseSchema as nn, writeStartObservedDeviceMetadataResponseSchema as nr, createSpaceResponseSchema as nt, tryCleanupStaleLock as o, providerDispatchRuntimeContextSchema as on, daemonHubDispatchLifecycleRequestSchema as ot, writeRuntimeSessionState as p, resolveMessageEnvelopeTargetField as pn, daemonHubSubmitTaskResultRequestSchema as pt, canonicalizeBuiltinControllerRef as q, upsertProfileSpaceHistoryResponseSchema as qn, normalizeMessageEnvelope as qt, readLockMeta as r, postSpaceMembersBodySchema as rn, writeStartSessionProgressBodySchema as rr, createStartSessionBodySchema as rt, ATS_RUNTIME_SESSION_ENV_KEY as s, querySpaceDeletionTombstonesResponseSchema as sn, daemonHubDispatchPreviewEndRequestSchema as st, acquireLock as t, postNormalMessageBodySchema as tn, writeStartObservedDeviceMetadataBodySchema as tr, createSpaceBodySchema as tt, readRuntimeSessionState as u, reserveFinalClaimResponseSchema as un, daemonHubHeartbeatResponseSchema as ut, AGENT_REPLY_PREVIEW_PURPOSE as v, runtimeAgentControllerLaunchContractSchema as vn, dispatchBriefSchema as vt, DISPATCH_ACTIVITY_FAILED_PURPOSE as w, signalEnvelopeSchema as wn, forgetCurrentComputerResponseSchema as wt, CONVERSATION_CONTINUITY_WARNING_PURPOSE as x, serverErrorFrameSchema as xn, entryBriefSchema as xt, ATSD_CONTROL_PLANE_SCHEMA_VERSION as y, runtimeAgentControllerSettingsSchema as yn, ensureAgentProfilePrimaryBindingBodySchema as yt, atsSpaceEgressActionSchema as z, startSessionSpaceChoiceResponseSchema as zn, getSpaceWakeProgressResponseSchema as zt };
9668
+ //# sourceMappingURL=lock-dEZBpJTL.js.map