agent-transport-system 0.3.49 → 0.4.0

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-eseGyF4R.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(),
@@ -6439,6 +6491,9 @@ const REPLY_READINESS_REASON_CODE_VALUES = [
6439
6491
  "service.not_installed",
6440
6492
  "service.drifted",
6441
6493
  "service.not_running",
6494
+ "service.account_mismatch",
6495
+ "service.auth_missing",
6496
+ "service.auth_stale",
6442
6497
  "dispatch.storage_not_ready",
6443
6498
  "service.gateway_chain_unhealthy",
6444
6499
  "profile.inactive",
@@ -6626,6 +6681,268 @@ const dbInspectionSummarySchema = strictObject({
6626
6681
  }),
6627
6682
  notes: array(trimmedNonEmptyStringSchema$5)
6628
6683
  });
6684
+ const boundedIdentifierSchema$4 = string().trim().min(1).max(256);
6685
+ const reasonCodeSchema$3 = string().trim().min(1).max(256);
6686
+ const agentProfileBindingRouteParamsSchema = strictObject({ agentProfileId: boundedIdentifierSchema$4 });
6687
+ const agentProfileBindingRuntimeIdSchema = strictObject({
6688
+ source: literal("runtime_registry_authority"),
6689
+ value: string().trim().min(1).max(512)
6690
+ });
6691
+ const ensureAgentProfilePrimaryBindingBodySchema = strictObject({
6692
+ capabilityRef: boundedIdentifierSchema$4,
6693
+ deviceId: boundedIdentifierSchema$4,
6694
+ lane: boundedIdentifierSchema$4,
6695
+ runtimeId: agentProfileBindingRuntimeIdSchema
6696
+ });
6697
+ const agentProfileBindingStateSchema = _enum([
6698
+ "missing",
6699
+ "enabled_primary",
6700
+ "disabled_historical",
6701
+ "conflict",
6702
+ "owner_mismatch"
6703
+ ]);
6704
+ const agentProfileBindingResolutionSourceSchema = _enum([
6705
+ "binding_truth",
6706
+ "missing_projection",
6707
+ "conflict_evidence"
6708
+ ]);
6709
+ const agentProfileBindingAuthoritySourceSchema = _enum([
6710
+ "binding_truth",
6711
+ "none",
6712
+ "blocked"
6713
+ ]);
6714
+ const agentProfileBindingRuntimeCapabilitySchema = strictObject({
6715
+ capabilityRef: boundedIdentifierSchema$4,
6716
+ runtimeId: agentProfileBindingRuntimeIdSchema
6717
+ });
6718
+ const agentProfileBindingDispatchEligibilitySchema = strictObject({
6719
+ reasonCodes: array(reasonCodeSchema$3),
6720
+ routable: boolean(),
6721
+ status: _enum(["routable", "not_routable"])
6722
+ });
6723
+ const agentProfileBindingProjectionSchema = strictObject({
6724
+ agentProfileId: boundedIdentifierSchema$4,
6725
+ authoritySource: agentProfileBindingAuthoritySourceSchema,
6726
+ bindingId: boundedIdentifierSchema$4.optional(),
6727
+ bindingState: agentProfileBindingStateSchema,
6728
+ dispatchEligibility: agentProfileBindingDispatchEligibilitySchema,
6729
+ grantsClaimSuccess: literal(false),
6730
+ reasonCodes: array(reasonCodeSchema$3),
6731
+ resolutionSource: agentProfileBindingResolutionSourceSchema,
6732
+ routable: boolean(),
6733
+ runtimeCapability: agentProfileBindingRuntimeCapabilitySchema.nullable()
6734
+ }).superRefine(validateAgentProfileBindingProjection);
6735
+ const getAgentProfilePrimaryBindingResponseSchema = strictObject({
6736
+ binding: agentProfileBindingProjectionSchema,
6737
+ grantsClaimSuccess: literal(false),
6738
+ status: _enum(["found", "missing"])
6739
+ }).superRefine((value, context) => {
6740
+ const expectedStatus = value.binding.bindingState === "missing" ? "missing" : "found";
6741
+ if (value.status !== expectedStatus) context.addIssue({
6742
+ code: "custom",
6743
+ message: "Binding read status must match Binding projection",
6744
+ path: ["status"]
6745
+ });
6746
+ });
6747
+ const ensureAgentProfilePrimaryBindingResponseSchema = strictObject({
6748
+ binding: agentProfileBindingProjectionSchema.optional(),
6749
+ grantsClaimSuccess: literal(false),
6750
+ outcome: _enum(["created", "reused"]).optional(),
6751
+ reasonCodes: array(reasonCodeSchema$3),
6752
+ routable: boolean(),
6753
+ status: _enum(["accepted", "rejected"])
6754
+ }).superRefine((value, context) => {
6755
+ if (value.status === "accepted") {
6756
+ if (!value.binding) context.addIssue({
6757
+ code: "custom",
6758
+ message: "accepted Binding command response requires Binding truth",
6759
+ path: ["binding"]
6760
+ });
6761
+ if (!value.outcome) context.addIssue({
6762
+ code: "custom",
6763
+ message: "accepted Binding command response requires an outcome",
6764
+ path: ["outcome"]
6765
+ });
6766
+ if (!value.routable) context.addIssue({
6767
+ code: "custom",
6768
+ message: "accepted Binding command response must be routable",
6769
+ path: ["routable"]
6770
+ });
6771
+ if (value.binding) requireAcceptedBindingCommandProjection(value.binding, context);
6772
+ return;
6773
+ }
6774
+ if (value.outcome) context.addIssue({
6775
+ code: "custom",
6776
+ message: "rejected Binding command response cannot include outcome",
6777
+ path: ["outcome"]
6778
+ });
6779
+ if (value.routable) context.addIssue({
6780
+ code: "custom",
6781
+ message: "rejected Binding command response cannot be routable",
6782
+ path: ["routable"]
6783
+ });
6784
+ });
6785
+ function validateAgentProfileBindingProjection(value, context) {
6786
+ validateBindingDispatchEligibility(value, context);
6787
+ bindingProjectionValidators[value.bindingState](value, context);
6788
+ }
6789
+ const bindingProjectionValidators = {
6790
+ conflict: validateConflictProjection,
6791
+ disabled_historical: validateDisabledHistoricalProjection,
6792
+ enabled_primary: validateEnabledPrimaryProjection,
6793
+ missing: validateMissingProjection,
6794
+ owner_mismatch: validateOwnerMismatchProjection
6795
+ };
6796
+ function validateBindingDispatchEligibility(value, context) {
6797
+ if (value.dispatchEligibility.routable !== value.routable) context.addIssue({
6798
+ code: "custom",
6799
+ message: "Binding routable fields must agree",
6800
+ path: ["dispatchEligibility", "routable"]
6801
+ });
6802
+ if (value.dispatchEligibility.status !== (value.routable ? "routable" : "not_routable")) context.addIssue({
6803
+ code: "custom",
6804
+ message: "Binding dispatch status must match routable state",
6805
+ path: ["dispatchEligibility", "status"]
6806
+ });
6807
+ }
6808
+ function validateEnabledPrimaryProjection(value, context) {
6809
+ requireBindingTruthProjection(value, context);
6810
+ if (!value.routable) context.addIssue({
6811
+ code: "custom",
6812
+ message: "enabled primary Binding must be routable",
6813
+ path: ["routable"]
6814
+ });
6815
+ }
6816
+ function validateDisabledHistoricalProjection(value, context) {
6817
+ requireBindingTruthProjection(value, context);
6818
+ if (value.routable) context.addIssue({
6819
+ code: "custom",
6820
+ message: "disabled historical Binding cannot be routable",
6821
+ path: ["routable"]
6822
+ });
6823
+ }
6824
+ function validateMissingProjection(value, context) {
6825
+ if (value.authoritySource !== "none") context.addIssue({
6826
+ code: "custom",
6827
+ message: "missing Binding projection cannot have authority source",
6828
+ path: ["authoritySource"]
6829
+ });
6830
+ if (value.resolutionSource !== "missing_projection") context.addIssue({
6831
+ code: "custom",
6832
+ message: "missing Binding projection requires missing source",
6833
+ path: ["resolutionSource"]
6834
+ });
6835
+ rejectMissingProjectionEvidence(value, context);
6836
+ }
6837
+ function rejectMissingProjectionEvidence(value, context) {
6838
+ if (value.bindingId) context.addIssue({
6839
+ code: "custom",
6840
+ message: "missing Binding projection cannot include bindingId",
6841
+ path: ["bindingId"]
6842
+ });
6843
+ if (value.runtimeCapability) context.addIssue({
6844
+ code: "custom",
6845
+ message: "missing Binding projection cannot include Runtime capability",
6846
+ path: ["runtimeCapability"]
6847
+ });
6848
+ if (value.routable) context.addIssue({
6849
+ code: "custom",
6850
+ message: "missing Binding projection cannot be routable",
6851
+ path: ["routable"]
6852
+ });
6853
+ }
6854
+ function validateConflictProjection(value, context) {
6855
+ if (value.authoritySource !== "blocked") context.addIssue({
6856
+ code: "custom",
6857
+ message: "conflict Binding projection must be blocked",
6858
+ path: ["authoritySource"]
6859
+ });
6860
+ if (value.resolutionSource !== "conflict_evidence") context.addIssue({
6861
+ code: "custom",
6862
+ message: "conflict Binding projection requires conflict evidence",
6863
+ path: ["resolutionSource"]
6864
+ });
6865
+ if (value.routable) context.addIssue({
6866
+ code: "custom",
6867
+ message: "conflict Binding projection cannot be routable",
6868
+ path: ["routable"]
6869
+ });
6870
+ }
6871
+ function validateOwnerMismatchProjection(value, context) {
6872
+ if (value.authoritySource !== "blocked") context.addIssue({
6873
+ code: "custom",
6874
+ message: "owner mismatch Binding projection must be blocked",
6875
+ path: ["authoritySource"]
6876
+ });
6877
+ if (value.routable) context.addIssue({
6878
+ code: "custom",
6879
+ message: "owner mismatch Binding projection cannot be routable",
6880
+ path: ["routable"]
6881
+ });
6882
+ }
6883
+ function requireBindingTruthProjection(value, context) {
6884
+ if (value.authoritySource !== "binding_truth") context.addIssue({
6885
+ code: "custom",
6886
+ message: "Binding truth projection requires binding authority",
6887
+ path: ["authoritySource"]
6888
+ });
6889
+ if (value.resolutionSource !== "binding_truth") context.addIssue({
6890
+ code: "custom",
6891
+ message: "Binding truth projection requires binding resolution source",
6892
+ path: ["resolutionSource"]
6893
+ });
6894
+ if (!value.bindingId) context.addIssue({
6895
+ code: "custom",
6896
+ message: "Binding truth projection requires bindingId",
6897
+ path: ["bindingId"]
6898
+ });
6899
+ if (!value.runtimeCapability) context.addIssue({
6900
+ code: "custom",
6901
+ message: "Binding truth projection requires Runtime capability",
6902
+ path: ["runtimeCapability"]
6903
+ });
6904
+ }
6905
+ function requireAcceptedBindingCommandProjection(binding, context) {
6906
+ if (binding.bindingState !== "enabled_primary") context.addIssue({
6907
+ code: "custom",
6908
+ message: "accepted Binding command response requires enabled primary truth",
6909
+ path: ["binding", "bindingState"]
6910
+ });
6911
+ if (binding.authoritySource !== "binding_truth") context.addIssue({
6912
+ code: "custom",
6913
+ message: "accepted Binding command response requires Binding authority",
6914
+ path: ["binding", "authoritySource"]
6915
+ });
6916
+ if (binding.resolutionSource !== "binding_truth") context.addIssue({
6917
+ code: "custom",
6918
+ message: "accepted Binding command response requires Binding truth source",
6919
+ path: ["binding", "resolutionSource"]
6920
+ });
6921
+ if (!binding.bindingId) context.addIssue({
6922
+ code: "custom",
6923
+ message: "accepted Binding command response requires bindingId",
6924
+ path: ["binding", "bindingId"]
6925
+ });
6926
+ if (!binding.runtimeCapability) context.addIssue({
6927
+ code: "custom",
6928
+ message: "accepted Binding command response requires Runtime capability",
6929
+ path: ["binding", "runtimeCapability"]
6930
+ });
6931
+ if (!(binding.routable && binding.dispatchEligibility.routable)) context.addIssue({
6932
+ code: "custom",
6933
+ message: "accepted Binding command response requires routable Binding truth",
6934
+ path: ["binding", "routable"]
6935
+ });
6936
+ if (binding.dispatchEligibility.status !== "routable") context.addIssue({
6937
+ code: "custom",
6938
+ message: "accepted Binding command response requires routable status",
6939
+ path: [
6940
+ "binding",
6941
+ "dispatchEligibility",
6942
+ "status"
6943
+ ]
6944
+ });
6945
+ }
6629
6946
  const setAuthPasswordBodySchema = strictObject({ newPassword: string() });
6630
6947
  const setAuthPasswordResponseSchema = strictObject({ status: boolean() });
6631
6948
  /**
@@ -6642,6 +6959,62 @@ const catchupResponseSchema = strictObject({
6642
6959
  nextCursor
6643
6960
  };
6644
6961
  });
6962
+ const boundedIdentifierSchema$3 = string().trim().min(1).max(512);
6963
+ const boundedStatusSchema = string().trim().min(1).max(256);
6964
+ const nullableBoundedIdentifierSchema = boundedIdentifierSchema$3.nullable();
6965
+ const claimExecutionDiagnosticsQuerySchema = strictObject({
6966
+ claimLeaseId: boundedIdentifierSchema$3.optional(),
6967
+ dispatchId: boundedIdentifierSchema$3.optional(),
6968
+ sourceClientMessageId: boundedIdentifierSchema$3.optional(),
6969
+ spaceId: boundedIdentifierSchema$3.optional(),
6970
+ targetProfileId: boundedIdentifierSchema$3.optional()
6971
+ }).superRefine((value, context) => {
6972
+ const hasDispatchAnchor = Boolean(value.dispatchId);
6973
+ const hasClaimLeaseAnchor = Boolean(value.claimLeaseId);
6974
+ const hasBoundedSourceAnchor = Boolean(value.sourceClientMessageId && value.spaceId && value.targetProfileId);
6975
+ if (hasDispatchAnchor || hasClaimLeaseAnchor || hasBoundedSourceAnchor) return;
6976
+ context.addIssue({
6977
+ code: "custom",
6978
+ 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",
6979
+ path: ["sourceClientMessageId"]
6980
+ });
6981
+ });
6982
+ const claimExecutionDispatchOwnerSchema = strictObject({
6983
+ id: boundedIdentifierSchema$3,
6984
+ kind: boundedIdentifierSchema$3
6985
+ });
6986
+ const claimExecutionDiagnosticsDispatchSchema = strictObject({
6987
+ dispatchId: boundedIdentifierSchema$3,
6988
+ owner: claimExecutionDispatchOwnerSchema.nullable(),
6989
+ sourceClientMessageId: nullableBoundedIdentifierSchema,
6990
+ sourceEventId: boundedIdentifierSchema$3,
6991
+ status: boundedStatusSchema,
6992
+ targetProfileId: boundedIdentifierSchema$3
6993
+ });
6994
+ const claimExecutionDiagnosticsClaimLeaseSchema = strictObject({
6995
+ claimLeaseId: boundedIdentifierSchema$3,
6996
+ dispatchId: boundedIdentifierSchema$3,
6997
+ leaseState: boundedStatusSchema,
6998
+ sourceClientMessageId: nullableBoundedIdentifierSchema,
6999
+ status: literal("found")
7000
+ });
7001
+ const claimExecutionDiagnosticsResultSchema = strictObject({
7002
+ dispatchId: boundedIdentifierSchema$3,
7003
+ publicOutcome: boundedStatusSchema,
7004
+ publishedSignalId: nullableBoundedIdentifierSchema,
7005
+ resultRef: boundedIdentifierSchema$3,
7006
+ statusType: nullableBoundedIdentifierSchema
7007
+ });
7008
+ const claimExecutionDiagnosticsResponseSchema = strictObject({
7009
+ claimLease: claimExecutionDiagnosticsClaimLeaseSchema.nullable(),
7010
+ dispatch: claimExecutionDiagnosticsDispatchSchema.nullable(),
7011
+ result: claimExecutionDiagnosticsResultSchema.nullable(),
7012
+ status: _enum([
7013
+ "found",
7014
+ "mismatch",
7015
+ "missing"
7016
+ ])
7017
+ });
6645
7018
  const START_ISO_DATE_TIME_SCHEMA = datetime({ offset: true });
6646
7019
  const START_TRIMMED_NON_EMPTY_STRING_SCHEMA = string().trim().min(1);
6647
7020
  const START_BOUNDED_ID_SCHEMA = START_TRIMMED_NON_EMPTY_STRING_SCHEMA.max(256);
@@ -6655,6 +7028,95 @@ const startReplyReadinessSummarySchema = strictObject({
6655
7028
  function toStartTimestampMs(value) {
6656
7029
  return Date.parse(value);
6657
7030
  }
7031
+ const boundedIdentifierSchema$2 = string().trim().min(1).max(256);
7032
+ const reasonCodeSchema$2 = string().trim().min(1).max(256);
7033
+ const prepareReadinessRouteParamsSchema = strictObject({ deviceId: boundedIdentifierSchema$2 });
7034
+ const getPrepareReadinessQuerySchema = strictObject({
7035
+ capabilityRefs: array(string().trim().min(1).max(256)).optional(),
7036
+ lane: boundedIdentifierSchema$2,
7037
+ runtimeId: string().trim().min(1).max(512).optional()
7038
+ });
7039
+ const prepareReadinessRuntimeIdSchema = strictObject({
7040
+ source: literal("runtime_registry_authority"),
7041
+ value: string().trim().min(1).max(512)
7042
+ });
7043
+ const prepareReadinessDisplayStateSchema = _enum([
7044
+ "ready",
7045
+ "pending",
7046
+ "unavailable",
7047
+ "needs_prepare",
7048
+ "needs_repair",
7049
+ "stale",
7050
+ "unknown"
7051
+ ]);
7052
+ const prepareReadinessRunnableCapabilitySchema = strictObject({
7053
+ capabilityRef: string().trim().min(1).max(256),
7054
+ expiresAtMs: int().nonnegative(),
7055
+ observedAtMs: int().nonnegative(),
7056
+ reasonCodes: array(reasonCodeSchema$2),
7057
+ status: literal("ready")
7058
+ });
7059
+ const prepareReadinessNonRunnableCapabilitySchema = strictObject({
7060
+ capabilityRef: string().trim().min(1).max(256),
7061
+ expiresAtMs: int().nonnegative().optional(),
7062
+ observedAtMs: int().nonnegative().optional(),
7063
+ reasonCodes: array(reasonCodeSchema$2),
7064
+ status: _enum([
7065
+ "disabled",
7066
+ "invalid",
7067
+ "missing",
7068
+ "stale",
7069
+ "unavailable",
7070
+ "unknown"
7071
+ ])
7072
+ });
7073
+ const prepareReadinessProjectionSchema = strictObject({
7074
+ allRunnableCapabilitiesPrepared: strictObject({ status: _enum([
7075
+ "prepared",
7076
+ "not_prepared",
7077
+ "partial",
7078
+ "unknown"
7079
+ ]) }).optional(),
7080
+ projectionStatus: prepareReadinessDisplayStateSchema,
7081
+ reasonCodes: array(reasonCodeSchema$2),
7082
+ serviceReadiness: strictObject({ status: _enum([
7083
+ "running",
7084
+ "starting",
7085
+ "not_running",
7086
+ "not_installed",
7087
+ "needs_repair",
7088
+ "unavailable",
7089
+ "unknown"
7090
+ ]) }).optional()
7091
+ });
7092
+ const prepareReadinessSummarySchema = strictObject({
7093
+ displayState: prepareReadinessDisplayStateSchema,
7094
+ ready: boolean(),
7095
+ reasonCodes: array(reasonCodeSchema$2)
7096
+ });
7097
+ const getPrepareReadinessResponseSchema = strictObject({
7098
+ capabilityReportsRead: boolean(),
7099
+ nonRunnableCapabilities: array(prepareReadinessNonRunnableCapabilitySchema),
7100
+ projection: prepareReadinessProjectionSchema,
7101
+ reason: _enum([
7102
+ "runtime_identity_invalid",
7103
+ "runtime_id_invalid",
7104
+ "runtime_id_mismatch",
7105
+ "runtime_lookup_conflict",
7106
+ "runtime_missing",
7107
+ "runtime_not_ready"
7108
+ ]).optional(),
7109
+ runnableCapabilities: array(prepareReadinessRunnableCapabilitySchema),
7110
+ runtimeId: prepareReadinessRuntimeIdSchema.optional(),
7111
+ status: _enum(["not_ready", "ready"]),
7112
+ summary: prepareReadinessSummarySchema
7113
+ }).superRefine((value, context) => {
7114
+ if (value.status === "ready" && !value.runtimeId) context.addIssue({
7115
+ code: "custom",
7116
+ message: "ready prepare readiness response requires authority runtimeId evidence",
7117
+ path: ["runtimeId"]
7118
+ });
7119
+ });
6658
7120
  const ownedDeviceDisplayNameSourceSchema = _enum([
6659
7121
  "user",
6660
7122
  "observed",
@@ -6672,6 +7134,39 @@ const ownedDeviceTypeSchema = _enum([
6672
7134
  "server",
6673
7135
  "unknown"
6674
7136
  ]);
7137
+ const reasonCodeSchema$1 = string().trim().min(1).max(256);
7138
+ const ownedDeviceExecutionTargetCapabilitySchema = strictObject({
7139
+ capabilityRef: string().trim().min(1).max(256),
7140
+ reasonCodes: array(reasonCodeSchema$1),
7141
+ status: _enum([
7142
+ "ready",
7143
+ "not_ready",
7144
+ "stale",
7145
+ "unknown"
7146
+ ])
7147
+ });
7148
+ const ownedDeviceExecutionTargetStatusSchema = _enum([
7149
+ "ready",
7150
+ "partial",
7151
+ "not_ready",
7152
+ "stale",
7153
+ "unknown"
7154
+ ]);
7155
+ const ownedDeviceExecutionTargetSchema = strictObject({
7156
+ deviceId: START_BOUNDED_ID_SCHEMA,
7157
+ runtimeLane: daemonServiceLaneSchema,
7158
+ userFacingCommand: _enum([
7159
+ "ats",
7160
+ "ats-dev",
7161
+ "ats-canary"
7162
+ ]),
7163
+ runtimeId: prepareReadinessRuntimeIdSchema.nullable(),
7164
+ status: ownedDeviceExecutionTargetStatusSchema,
7165
+ capabilities: array(ownedDeviceExecutionTargetCapabilitySchema),
7166
+ reasonCodes: array(reasonCodeSchema$1),
7167
+ lastObservedAtMs: number().int().nonnegative().nullable(),
7168
+ isCurrent: boolean()
7169
+ });
6675
7170
  const ownedDeviceOptionSchema = strictObject({
6676
7171
  deviceId: START_BOUNDED_ID_SCHEMA,
6677
7172
  deviceDisplayName: string().min(1),
@@ -6681,23 +7176,31 @@ const ownedDeviceOptionSchema = strictObject({
6681
7176
  deviceType: ownedDeviceTypeSchema,
6682
7177
  firstSeenAtMs: number().int().nonnegative(),
6683
7178
  lastObservedAtMs: number().int().nonnegative().nullable(),
6684
- isCurrent: boolean()
7179
+ isCurrent: boolean(),
7180
+ executionTargets: array(ownedDeviceExecutionTargetSchema)
6685
7181
  });
6686
7182
  const ownedDevicesResponseSchema = strictObject({
6687
7183
  currentDeviceId: START_BOUNDED_ID_SCHEMA.nullable(),
7184
+ currentRuntimeLane: daemonServiceLaneSchema.nullable(),
6688
7185
  devices: array(ownedDeviceOptionSchema)
6689
7186
  });
6690
7187
  const setOwnedDeviceDisplayNameBodySchema = strictObject({ displayName: string().trim().min(1).max(80).nullable() });
7188
+ const currentDeviceTargetDeviceIdSchema = START_BOUNDED_ID_SCHEMA;
6691
7189
  const currentDeviceTargetResolvedSchema = strictObject({
6692
7190
  availability: literal("resolved"),
6693
- deviceId: START_BOUNDED_ID_SCHEMA
7191
+ deviceId: currentDeviceTargetDeviceIdSchema,
7192
+ runtimeLane: daemonServiceLaneSchema
7193
+ });
7194
+ const currentDeviceTargetMissingSchema = strictObject({
7195
+ availability: literal("missing"),
7196
+ reasonCodes: array(string().trim().min(1).max(256)).optional()
6694
7197
  });
6695
- const currentDeviceTargetMissingSchema = strictObject({ availability: literal("missing") });
6696
7198
  const currentDeviceTargetResponseSchema = discriminatedUnion("availability", [currentDeviceTargetResolvedSchema, currentDeviceTargetMissingSchema]);
6697
7199
  const currentDeviceTargetWriteModeSchema = _enum(["replace", "if_missing"]);
6698
7200
  const currentDeviceTargetActivationSourceSchema = _enum(["local_setup"]);
6699
7201
  const setCurrentDeviceTargetBodySchema = strictObject({
6700
- deviceId: START_BOUNDED_ID_SCHEMA,
7202
+ deviceId: currentDeviceTargetDeviceIdSchema,
7203
+ runtimeLane: daemonServiceLaneSchema,
6701
7204
  activationSource: currentDeviceTargetActivationSourceSchema.optional(),
6702
7205
  writeMode: currentDeviceTargetWriteModeSchema.optional()
6703
7206
  });
@@ -6708,90 +7211,18 @@ const forgetCurrentComputerResponseSchema = strictObject({
6708
7211
  currentDeviceTarget: currentDeviceTargetMissingSchema,
6709
7212
  ownedDevices: ownedDevicesResponseSchema
6710
7213
  });
7214
+ const forgetComputerRouteParamsSchema = strictObject({ deviceId: currentDeviceTargetDeviceIdSchema });
7215
+ const forgetComputerResponseSchema = strictObject({
7216
+ status: forgetCurrentComputerStatusSchema,
7217
+ forgottenDeviceId: START_BOUNDED_ID_SCHEMA.nullable(),
7218
+ currentDeviceTarget: currentDeviceTargetResponseSchema,
7219
+ ownedDevices: ownedDevicesResponseSchema
7220
+ });
6711
7221
  const daemonRouteObservationResponseSchema = strictObject({
6712
7222
  observedAt: string().trim().min(1),
6713
7223
  profileId: string().trim().min(1),
6714
7224
  route: daemonHubLookupRouteResponseSchema
6715
7225
  });
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
7226
  const startSessionLifecycleStatusSchema = _enum([
6796
7227
  "active",
6797
7228
  "superseded",
@@ -6812,10 +7243,10 @@ const startSpaceChoiceModeSchema = _enum([
6812
7243
  "create_new",
6813
7244
  "join_existing"
6814
7245
  ]);
6815
- const startAgentSelectionModeSchema = _enum([
7246
+ const startLocalAgentPreparationModeSchema = _enum([
6816
7247
  "unresolved",
6817
- "selected_agents",
6818
- "no_agents"
7248
+ "prepare_local_agents",
7249
+ "skip_local_agents"
6819
7250
  ]);
6820
7251
  const startSpaceMemberSelectionModeSchema = _enum([
6821
7252
  "unresolved",
@@ -6873,26 +7304,26 @@ function validateStartTargetSpaceId(input) {
6873
7304
  path: ["targetSpaceId"]
6874
7305
  });
6875
7306
  }
6876
- const startSelectedAgentIdsSchema = array(START_BOUNDED_ID_SCHEMA).superRefine((value, ctx) => {
7307
+ const startLocalAgentIdsSchema = array(START_BOUNDED_ID_SCHEMA).superRefine((value, ctx) => {
6877
7308
  if (new Set(value).size !== value.length) ctx.addIssue({
6878
7309
  code: "custom",
6879
- message: "selectedAgentIds must not contain duplicates"
7310
+ message: "localAgentIds must not contain duplicates"
6880
7311
  });
6881
7312
  });
6882
- const startAgentSelectionSchema = strictObject({
6883
- mode: startAgentSelectionModeSchema,
6884
- selectedAgentIds: startSelectedAgentIdsSchema
7313
+ const startLocalAgentPreparationSchema = strictObject({
7314
+ mode: startLocalAgentPreparationModeSchema,
7315
+ localAgentIds: startLocalAgentIdsSchema
6885
7316
  }).superRefine((value, ctx) => {
6886
- const hasSelectedAgentIds = value.selectedAgentIds.length > 0;
6887
- if (value.mode === "selected_agents" && !hasSelectedAgentIds) ctx.addIssue({
7317
+ const hasLocalAgentIds = value.localAgentIds.length > 0;
7318
+ if (value.mode === "prepare_local_agents" && !hasLocalAgentIds) ctx.addIssue({
6888
7319
  code: "custom",
6889
- message: "selected_agents agent selection must provide at least one selectedAgentId",
6890
- path: ["selectedAgentIds"]
7320
+ message: "prepare_local_agents local agent preparation must provide at least one localAgentId",
7321
+ path: ["localAgentIds"]
6891
7322
  });
6892
- if (value.mode !== "selected_agents" && hasSelectedAgentIds) ctx.addIssue({
7323
+ if (value.mode !== "prepare_local_agents" && hasLocalAgentIds) ctx.addIssue({
6893
7324
  code: "custom",
6894
- message: "unresolved and no_agents agent selection must use an empty selectedAgentIds list",
6895
- path: ["selectedAgentIds"]
7325
+ message: "unresolved and skip_local_agents local agent preparation must use an empty localAgentIds list",
7326
+ path: ["localAgentIds"]
6896
7327
  });
6897
7328
  });
6898
7329
  const startSelectedSpaceMemberProfileIdsSchema = array(atsProfileIdSchema).superRefine((value, ctx) => {
@@ -6924,7 +7355,7 @@ const startSessionSchema = strictObject({
6924
7355
  initiator: startSessionInitiatorSchema,
6925
7356
  lifecycleStatus: startSessionLifecycleStatusSchema,
6926
7357
  profileChoice: startProfileChoiceSchema,
6927
- agentSelection: startAgentSelectionSchema,
7358
+ localAgentPreparation: startLocalAgentPreparationSchema,
6928
7359
  spaceMemberSelection: startSpaceMemberSelectionSchema.default({
6929
7360
  mode: "unresolved",
6930
7361
  selectedProfileIds: []
@@ -6986,6 +7417,58 @@ const writeStartObservedDeviceMetadataBodySchema = strictObject({
6986
7417
  metadata: observedDeviceMetadataSchema
6987
7418
  });
6988
7419
  const writeStartObservedDeviceMetadataResponseSchema = writeCurrentDeviceObservedMetadataResponseSchema;
7420
+ const boundedIdentifierSchema$1 = string().trim().min(1).max(512);
7421
+ const boundedReasonCodeSchema = string().trim().min(1).max(256);
7422
+ const timestampMsSchema = int().nonnegative();
7423
+ const finalClaimRouteParamsSchema = strictObject({
7424
+ dispatchId: boundedIdentifierSchema$1,
7425
+ spaceId: boundedIdentifierSchema$1
7426
+ });
7427
+ const finalClaimRuntimeIdSchema = strictObject({
7428
+ source: literal("runtime_registry_authority"),
7429
+ value: boundedIdentifierSchema$1
7430
+ });
7431
+ const reserveFinalClaimBodySchema = strictObject({
7432
+ capabilityRef: boundedIdentifierSchema$1,
7433
+ claimIdempotencyKey: boundedIdentifierSchema$1,
7434
+ deviceId: boundedIdentifierSchema$1,
7435
+ lane: boundedIdentifierSchema$1,
7436
+ runtimeId: finalClaimRuntimeIdSchema,
7437
+ sourceClientMessageId: boundedIdentifierSchema$1.nullable().optional(),
7438
+ sourceSignalId: boundedIdentifierSchema$1,
7439
+ targetProfileId: boundedIdentifierSchema$1
7440
+ });
7441
+ const finalClaimDiagnosticPointerSchema = strictObject({
7442
+ dispatchId: boundedIdentifierSchema$1.optional(),
7443
+ requestId: boundedIdentifierSchema$1.optional(),
7444
+ spaceId: boundedIdentifierSchema$1.optional(),
7445
+ targetProfileId: boundedIdentifierSchema$1.optional()
7446
+ });
7447
+ const finalClaimAcceptedLeaseSchema = strictObject({
7448
+ bindingId: boundedIdentifierSchema$1,
7449
+ capabilityRef: boundedIdentifierSchema$1,
7450
+ dispatchId: boundedIdentifierSchema$1,
7451
+ expiresAtMs: timestampMsSchema,
7452
+ leaseId: boundedIdentifierSchema$1,
7453
+ runtimeId: finalClaimRuntimeIdSchema,
7454
+ targetProfileId: boundedIdentifierSchema$1
7455
+ });
7456
+ const reserveFinalClaimAcceptedResponseSchema = strictObject({
7457
+ claimLeaseReserved: literal(true),
7458
+ lease: finalClaimAcceptedLeaseSchema,
7459
+ outcome: _enum(["new_lease", "existing_lease"]),
7460
+ runtimeExecutionStarted: literal(false),
7461
+ status: literal("accepted")
7462
+ });
7463
+ const reserveFinalClaimRejectedResponseSchema = strictObject({
7464
+ claimLeaseReserved: literal(false),
7465
+ diagnosticPointer: finalClaimDiagnosticPointerSchema.optional(),
7466
+ reason: boundedIdentifierSchema$1,
7467
+ reasonCode: boundedReasonCodeSchema,
7468
+ runtimeExecutionStarted: literal(false),
7469
+ status: literal("rejected")
7470
+ });
7471
+ const reserveFinalClaimResponseSchema = discriminatedUnion("status", [reserveFinalClaimAcceptedResponseSchema, reserveFinalClaimRejectedResponseSchema]);
6989
7472
  const trimmedNonEmptyStringSchema$4 = string().trim().min(1);
6990
7473
  const gatewayErrorCodeSchema = _enum([
6991
7474
  "bad_request",
@@ -7444,6 +7927,113 @@ const updateProfileResponseSchema = strictObject({
7444
7927
  ok: literal(true),
7445
7928
  profile: authProfileViewSchema
7446
7929
  });
7930
+ const boundedIdentifierSchema = string().trim().min(1).max(256);
7931
+ const reasonCodeSchema = string().trim().min(1).max(256);
7932
+ const runtimeReportingRouteParamsSchema = strictObject({ deviceId: boundedIdentifierSchema });
7933
+ const runtimeReportingRuntimeIdSchema = strictObject({
7934
+ source: literal("runtime_registry_authority"),
7935
+ value: string().trim().min(1).max(512)
7936
+ });
7937
+ const submitRuntimeRegistrationBodySchema = strictObject({ lane: boundedIdentifierSchema });
7938
+ const runtimeRegistrationRejectedReasonSchema = _enum([
7939
+ "device_forgotten",
7940
+ "owner_authorization_denied",
7941
+ "owner_authorization_unknown",
7942
+ "owner_authorization_unavailable",
7943
+ "owner_kind_unsupported",
7944
+ "runtime_id_collision",
7945
+ "runtime_id_invalid",
7946
+ "runtime_id_not_opaque",
7947
+ "runtime_record_missing_after_conflict",
7948
+ "unknown"
7949
+ ]);
7950
+ const submitRuntimeRegistrationResponseSchema = strictObject({
7951
+ reason: runtimeRegistrationRejectedReasonSchema.optional(),
7952
+ runtimeId: runtimeReportingRuntimeIdSchema.optional(),
7953
+ status: _enum([
7954
+ "created",
7955
+ "reused",
7956
+ "rejected"
7957
+ ])
7958
+ }).superRefine((value, context) => {
7959
+ if (value.status !== "rejected" && !value.runtimeId) context.addIssue({
7960
+ code: "custom",
7961
+ message: "registered Runtime response requires authority runtimeId",
7962
+ path: ["runtimeId"]
7963
+ });
7964
+ if (value.status === "rejected" && !value.reason) context.addIssue({
7965
+ code: "custom",
7966
+ message: "rejected Runtime registration requires a reason",
7967
+ path: ["reason"]
7968
+ });
7969
+ });
7970
+ const runtimeCapabilityReportStatusSchema = _enum([
7971
+ "ready",
7972
+ "disabled",
7973
+ "unavailable",
7974
+ "unknown"
7975
+ ]);
7976
+ const submitRuntimeCapabilityReportItemSchema = strictObject({
7977
+ capabilityRef: boundedIdentifierSchema,
7978
+ expiresAtMs: int().positive(),
7979
+ observedAtMs: int().positive(),
7980
+ reasonCodes: array(reasonCodeSchema).optional(),
7981
+ status: runtimeCapabilityReportStatusSchema
7982
+ });
7983
+ const submitRuntimeCapabilityReportsBodySchema = strictObject({
7984
+ lane: boundedIdentifierSchema,
7985
+ reports: array(submitRuntimeCapabilityReportItemSchema).min(1).max(64),
7986
+ runtimeId: runtimeReportingRuntimeIdSchema
7987
+ });
7988
+ const runtimeCapabilityReportRejectedReasonSchema = _enum([
7989
+ "capability_ref_invalid",
7990
+ "conflict",
7991
+ "out_of_order",
7992
+ "report_status_invalid",
7993
+ "report_time_invalid",
7994
+ "runtime_id_invalid",
7995
+ "runtime_id_mismatch",
7996
+ "runtime_identity_invalid",
7997
+ "runtime_lookup_conflict",
7998
+ "runtime_missing",
7999
+ "stale"
8000
+ ]);
8001
+ const submitRuntimeCapabilityReportResultSchema = strictObject({
8002
+ capabilityRef: boundedIdentifierSchema,
8003
+ outcome: _enum([
8004
+ "created",
8005
+ "updated",
8006
+ "reused"
8007
+ ]).optional(),
8008
+ reason: runtimeCapabilityReportRejectedReasonSchema.optional(),
8009
+ status: _enum(["accepted", "rejected"])
8010
+ }).superRefine((value, context) => {
8011
+ if (value.status === "accepted" && !value.outcome) context.addIssue({
8012
+ code: "custom",
8013
+ message: "accepted Runtime Capability Report requires an outcome",
8014
+ path: ["outcome"]
8015
+ });
8016
+ if (value.status === "rejected" && !value.reason) context.addIssue({
8017
+ code: "custom",
8018
+ message: "rejected Runtime Capability Report requires a reason",
8019
+ path: ["reason"]
8020
+ });
8021
+ });
8022
+ const submitRuntimeCapabilityReportsResponseSchema = strictObject({
8023
+ reports: array(submitRuntimeCapabilityReportResultSchema),
8024
+ runtimeId: runtimeReportingRuntimeIdSchema.optional(),
8025
+ status: _enum([
8026
+ "accepted",
8027
+ "partial",
8028
+ "rejected"
8029
+ ])
8030
+ }).superRefine((value, context) => {
8031
+ if (value.status !== "rejected" && !value.runtimeId) context.addIssue({
8032
+ code: "custom",
8033
+ message: "accepted Runtime Capability Report response requires authority runtimeId",
8034
+ path: ["runtimeId"]
8035
+ });
8036
+ });
7447
8037
  const patchSpaceContractBodySchema = spaceContractFieldsSchema.pick({
7448
8038
  dispatchPolicy: true,
7449
8039
  publicationMode: true,
@@ -7850,7 +8440,7 @@ const spaceDispatchTraceResponseSchema = strictObject({
7850
8440
  query: spaceDispatchTraceQuerySchema,
7851
8441
  trace: union([spaceDispatchTraceSnapshotSchema, _null()])
7852
8442
  });
7853
- const optionalSelectorSchema$1 = preprocess((value) => {
8443
+ const optionalSelectorSchema$2 = preprocess((value) => {
7854
8444
  const normalized = String(value ?? "").trim();
7855
8445
  return normalized.length > 0 ? normalized : void 0;
7856
8446
  }, string().min(1).optional());
@@ -7860,9 +8450,9 @@ const optionalClientMessageIdSchema = preprocess((value) => {
7860
8450
  }, clientMessageIdSchema.optional());
7861
8451
  const getSpaceDispatchLookupInputSchema = strictObject({
7862
8452
  spaceId: nonEmptyTrimmedStringFromUnknown,
7863
- sourceSignalId: optionalSelectorSchema$1,
8453
+ sourceSignalId: optionalSelectorSchema$2,
7864
8454
  clientMessageId: optionalClientMessageIdSchema,
7865
- targetProfileId: optionalSelectorSchema$1
8455
+ targetProfileId: optionalSelectorSchema$2
7866
8456
  }).superRefine((value, context) => {
7867
8457
  if (Number(value.sourceSignalId !== void 0) + Number(value.clientMessageId !== void 0) === 1) return;
7868
8458
  context.addIssue({
@@ -7891,6 +8481,8 @@ const getSpaceDispatchLookupResponseSchema = strictObject({
7891
8481
  }),
7892
8482
  matches: array(spaceDispatchLookupMatchSchema)
7893
8483
  });
8484
+ const MAX_SPACE_NAME_LENGTH = 80;
8485
+ const spaceNameSchema = string().trim().min(1).max(MAX_SPACE_NAME_LENGTH);
7894
8486
  const isoDateTimeSchema$1 = datetime({ offset: true });
7895
8487
  const nullableTrimmedStringSchema = union([string().trim().min(1), _null()]);
7896
8488
  const dispatchResultKindSchema = _enum(["text", "status"]);
@@ -7951,14 +8543,14 @@ const dispatchResultSchema = strictObject({
7951
8543
  path: ["messageEnvelope", "replyToSignalId"]
7952
8544
  });
7953
8545
  });
7954
- const optionalSelectorSchema = preprocess((value) => {
8546
+ const optionalSelectorSchema$1 = preprocess((value) => {
7955
8547
  const normalized = String(value ?? "").trim();
7956
8548
  return normalized.length > 0 ? normalized : void 0;
7957
8549
  }, string().min(1).optional());
7958
8550
  const getSpaceDispatchResultInputSchema = strictObject({
7959
8551
  spaceId: nonEmptyTrimmedStringFromUnknown,
7960
- dispatchId: optionalSelectorSchema,
7961
- resultRef: optionalSelectorSchema
8552
+ dispatchId: optionalSelectorSchema$1,
8553
+ resultRef: optionalSelectorSchema$1
7962
8554
  }).superRefine((value, ctx) => {
7963
8555
  if (Number(typeof value.dispatchId === "string") + Number(typeof value.resultRef === "string") !== 1) ctx.addIssue({
7964
8556
  code: "custom",
@@ -8086,6 +8678,45 @@ const getSpaceUpdatesInputSchema = strictObject({
8086
8678
  limit: updatesLimitSchema
8087
8679
  });
8088
8680
  const getSpaceUpdatesResponseSchema = strictObject({ signals: array(signalEnvelopeSchema) });
8681
+ const optionalSelectorSchema = preprocess((value) => {
8682
+ const normalized = String(value ?? "").trim();
8683
+ return normalized.length > 0 ? normalized : void 0;
8684
+ }, string().min(1).optional());
8685
+ const wakeProgressPhaseSchema = _enum([
8686
+ "sending",
8687
+ "request_sent",
8688
+ "queued",
8689
+ "connecting",
8690
+ "running",
8691
+ "writing",
8692
+ "retrying",
8693
+ "failed",
8694
+ "replied"
8695
+ ]);
8696
+ const wakeProgressItemSchema = strictObject({
8697
+ clientMessageId: clientMessageIdSchema.nullable(),
8698
+ sourceSignalId: string().trim().min(1).nullable(),
8699
+ dispatchId: string().trim().min(1).nullable(),
8700
+ targetProfileId: string().trim().min(1),
8701
+ targetLabel: string().trim().min(1),
8702
+ phase: wakeProgressPhaseSchema,
8703
+ message: string().trim().min(1),
8704
+ updatedAtMs: int().min(0),
8705
+ terminal: boolean()
8706
+ });
8707
+ const getSpaceWakeProgressInputSchema = strictObject({
8708
+ spaceId: nonEmptyTrimmedStringFromUnknown,
8709
+ clientMessageId: clientMessageIdSchema,
8710
+ targetProfileId: optionalSelectorSchema
8711
+ });
8712
+ const getSpaceWakeProgressResponseSchema = strictObject({
8713
+ query: strictObject({
8714
+ spaceId: string().trim().min(1),
8715
+ clientMessageId: clientMessageIdSchema,
8716
+ targetProfileId: string().trim().min(1).nullable()
8717
+ }),
8718
+ items: array(wakeProgressItemSchema)
8719
+ });
8089
8720
  const startBackgroundHelperInstallStatusSchema = _enum([
8090
8721
  "not_installed",
8091
8722
  "installed_current",
@@ -8255,10 +8886,10 @@ const startDeviceAgentCatalogSchema = strictObject({
8255
8886
  });
8256
8887
  const startDeviceProjectionSchema = strictObject({
8257
8888
  deviceId: START_BOUNDED_ID_SCHEMA,
8889
+ runtimeLane: daemonServiceLaneSchema,
8258
8890
  observedAt: START_ISO_DATE_TIME_SCHEMA,
8259
8891
  backgroundHelper: startBackgroundHelperProjectionSchema,
8260
8892
  skillsReadiness: startSkillsReadinessProjectionSchema,
8261
- savedAgentRuntime: savedDeviceAgentRuntimeSchema,
8262
8893
  deviceAgentCatalog: startDeviceAgentCatalogSchema,
8263
8894
  deviceReplyReadiness: startReplyReadinessSummarySchema
8264
8895
  });
@@ -8287,7 +8918,7 @@ const startNextActionIdSchema = _enum([
8287
8918
  "sign_in",
8288
8919
  "identity",
8289
8920
  "device_check",
8290
- "agent_selection",
8921
+ "local_agent_preparation",
8291
8922
  "space_choice",
8292
8923
  "space_entry"
8293
8924
  ]);
@@ -8298,7 +8929,7 @@ const startPlannerReasonCodeSchema = _enum([
8298
8929
  "sign_in.required",
8299
8930
  "identity.required",
8300
8931
  "device_check.pending",
8301
- "agent_selection.pending",
8932
+ "local_agent_preparation.pending",
8302
8933
  "space_choice.pending",
8303
8934
  "space_entry.pending",
8304
8935
  "device_projection.missing",
@@ -8312,11 +8943,14 @@ const startPlannerReasonCodeSchema = _enum([
8312
8943
  "background_helper.not_running",
8313
8944
  "background_helper.stale",
8314
8945
  "background_helper.unknown",
8946
+ "device_reply_readiness.blocked",
8947
+ "device_reply_readiness.degraded",
8948
+ "device_reply_readiness.unknown",
8315
8949
  "skills_readiness.action_required",
8316
8950
  "skills_readiness.unknown",
8317
- "selected_agents.not_found",
8318
- "selected_agents.not_enabled",
8319
- "selected_agents.not_selectable",
8951
+ "local_agent_preparation.not_found",
8952
+ "local_agent_preparation.not_enabled",
8953
+ "local_agent_preparation.not_selectable",
8320
8954
  "profile_readiness.route_offline",
8321
8955
  "profile_readiness.route_unavailable",
8322
8956
  "profile_readiness.reply_blocked",
@@ -8371,10 +9005,33 @@ const startSessionStepIdSchema = _enum([
8371
9005
  "sign_in",
8372
9006
  "identity",
8373
9007
  "device_check",
8374
- "agent_selection",
9008
+ "local_agent_preparation",
8375
9009
  "space_choice",
8376
9010
  "space_entry"
8377
9011
  ]);
9012
+ const startSessionHandoffFailureGateSchema = _enum([
9013
+ "auth",
9014
+ "device",
9015
+ "service",
9016
+ "local_agent",
9017
+ "runtime_report",
9018
+ "binding",
9019
+ "route"
9020
+ ]);
9021
+ const startSessionHandoffFailureRetryActionSchema = _enum([
9022
+ "rerun_prepare",
9023
+ "copy_fresh_command",
9024
+ "change_selection",
9025
+ "start_over"
9026
+ ]);
9027
+ const startSessionHandoffFailureSchema = strictObject({
9028
+ gate: startSessionHandoffFailureGateSchema,
9029
+ reasonCode: START_TRIMMED_NON_EMPTY_STRING_SCHEMA.max(256),
9030
+ localAgentId: union([START_BOUNDED_ID_SCHEMA, _null()]).optional(),
9031
+ profileId: union([START_BOUNDED_ID_SCHEMA, _null()]).optional(),
9032
+ occurredAt: START_ISO_DATE_TIME_SCHEMA,
9033
+ retryAction: startSessionHandoffFailureRetryActionSchema
9034
+ });
8378
9035
  const startSessionProgressSchema = strictObject({
8379
9036
  sessionId: START_BOUNDED_ID_SCHEMA,
8380
9037
  userId: START_BOUNDED_ID_SCHEMA,
@@ -8383,13 +9040,14 @@ const startSessionProgressSchema = strictObject({
8383
9040
  currentStepId: startSessionStepIdSchema,
8384
9041
  completedStepIds: array(startSessionStepIdSchema),
8385
9042
  profileChoice: startProfileChoiceSchema,
8386
- agentSelection: startAgentSelectionSchema,
9043
+ localAgentPreparation: startLocalAgentPreparationSchema,
8387
9044
  spaceMemberSelection: startSpaceMemberSelectionSchema.default({
8388
9045
  mode: "unresolved",
8389
9046
  selectedProfileIds: []
8390
9047
  }),
8391
9048
  spaceChoice: startSpaceChoiceSchema,
8392
9049
  targetSpaceId: startTargetSpaceIdSchema,
9050
+ lastFailure: union([startSessionHandoffFailureSchema, _null()]).optional(),
8393
9051
  startedAt: START_ISO_DATE_TIME_SCHEMA,
8394
9052
  updatedAt: START_ISO_DATE_TIME_SCHEMA,
8395
9053
  completedAt: START_NULLABLE_COMPLETION_TIME_SCHEMA
@@ -8537,19 +9195,19 @@ const startSessionRouteParamsSchema = strictObject({ deviceId: START_BOUNDED_ID_
8537
9195
  const createStartSessionBodySchema = strictObject({
8538
9196
  initiator: startSessionInitiatorSchema,
8539
9197
  profileChoice: startProfileChoiceSchema,
8540
- agentSelection: startAgentSelectionSchema,
9198
+ localAgentPreparation: startLocalAgentPreparationSchema,
8541
9199
  spaceMemberSelection: startSpaceMemberSelectionSchema.optional(),
8542
9200
  spaceChoice: startSpaceChoiceSchema,
8543
9201
  writeMode: _enum(["replace", "if_missing"]).optional()
8544
9202
  });
8545
9203
  const patchStartSessionBodySchema = strictObject({
8546
9204
  profileChoice: startProfileChoiceSchema.optional(),
8547
- agentSelection: startAgentSelectionSchema.optional(),
9205
+ localAgentPreparation: startLocalAgentPreparationSchema.optional(),
8548
9206
  spaceMemberSelection: startSpaceMemberSelectionSchema.optional(),
8549
9207
  spaceChoice: startSpaceChoiceSchema.optional(),
8550
9208
  targetSpaceId: startTargetSpaceIdSchema.optional()
8551
9209
  }).refine((value) => {
8552
- return value.profileChoice !== void 0 || value.agentSelection !== void 0 || value.spaceMemberSelection !== void 0 || value.spaceChoice !== void 0 || value.targetSpaceId !== void 0;
9210
+ return value.profileChoice !== void 0 || value.localAgentPreparation !== void 0 || value.spaceMemberSelection !== void 0 || value.spaceChoice !== void 0 || value.targetSpaceId !== void 0;
8553
9211
  }, "at least one start session field must be provided");
8554
9212
  const startSessionResponseSchema = strictObject({ session: startSessionSchema });
8555
9213
  const startSessionWithTokenResponseSchema = strictObject({
@@ -8558,7 +9216,7 @@ const startSessionWithTokenResponseSchema = strictObject({
8558
9216
  });
8559
9217
  const startSessionSpaceChoiceCreateNewBodySchema = strictObject({
8560
9218
  mode: literal("create_new"),
8561
- name: string().trim().min(1).max(32),
9219
+ name: spaceNameSchema,
8562
9220
  password: spacePasswordSchema.optional()
8563
9221
  });
8564
9222
  const startSessionSpaceChoiceJoinExistingBodySchema = strictObject({
@@ -9037,5 +9695,5 @@ function toErrorMessage(error) {
9037
9695
  }
9038
9696
 
9039
9697
  //#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
9698
+ 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 };
9699
+ //# sourceMappingURL=lock-pvOz4vGl.js.map