agent-transport-system 0.7.99 → 0.8.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,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import "./base-url-CiDhrDeP.js";
4
- import "./dist-DkHDSnUA.js";
3
+ import "./base-url-CUhLLV5i.js";
4
+ import "./dist-CAWDZ7ug.js";
5
5
  import { t as runSpaceAddMembers } from "./ats.js";
6
6
 
7
7
  //#region src/space/add-me-membership.ts
@@ -11,4 +11,4 @@ async function runSpaceAddMeMembership(input) {
11
11
 
12
12
  //#endregion
13
13
  export { runSpaceAddMeMembership };
14
- //# sourceMappingURL=add-me-membership-Cfi5fbyb.js.map
14
+ //# sourceMappingURL=add-me-membership-CEJEhUA0.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-me-membership-Cfi5fbyb.js","names":[],"sources":["../src/space/add-me-membership.ts"],"sourcesContent":["import { runSpaceAddMembers } from \"./command\";\nimport type { SpaceCommandNavigationStatus } from \"./navigation-status\";\n\nexport type SpaceAddMeMembershipInput = Parameters<\n typeof runSpaceAddMembers\n>[0];\nexport type SpaceAddMeMembershipRunner = (\n input: SpaceAddMeMembershipInput\n) => Promise<SpaceCommandNavigationStatus>;\n\nexport async function runSpaceAddMeMembership(\n input: SpaceAddMeMembershipInput\n): Promise<SpaceCommandNavigationStatus> {\n return await runSpaceAddMembers(input);\n}\n"],"mappings":";;;;;;;AAUA,eAAsB,wBACpB,OACuC;AACvC,QAAO,MAAM,mBAAmB,MAAM"}
1
+ {"version":3,"file":"add-me-membership-CEJEhUA0.js","names":[],"sources":["../src/space/add-me-membership.ts"],"sourcesContent":["import { runSpaceAddMembers } from \"./command\";\nimport type { SpaceCommandNavigationStatus } from \"./navigation-status\";\n\nexport type SpaceAddMeMembershipInput = Parameters<\n typeof runSpaceAddMembers\n>[0];\nexport type SpaceAddMeMembershipRunner = (\n input: SpaceAddMeMembershipInput\n) => Promise<SpaceCommandNavigationStatus>;\n\nexport async function runSpaceAddMeMembership(\n input: SpaceAddMeMembershipInput\n): Promise<SpaceCommandNavigationStatus> {\n return await runSpaceAddMembers(input);\n}\n"],"mappings":";;;;;;;AAUA,eAAsB,wBACpB,OACuC;AACvC,QAAO,MAAM,mBAAmB,MAAM"}
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import "./dist-DkHDSnUA.js";
3
+ import "./dist-CAWDZ7ug.js";
4
4
  import { o as createCliApiClientFoundation } from "./ats.js";
5
5
 
6
6
  export { createCliApiClientFoundation };
package/dist/ats-dev.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { t as DEV_LOCAL_GATEWAY_BASE_URL } from "./base-url-CiDhrDeP.js";
4
- import "./dist-DkHDSnUA.js";
3
+ import { t as DEV_LOCAL_GATEWAY_BASE_URL } from "./base-url-CUhLLV5i.js";
4
+ import "./dist-CAWDZ7ug.js";
5
5
 
6
6
  //#region src/ats-dev.ts
7
7
  const LOCAL_GATEWAY_URL = DEV_LOCAL_GATEWAY_BASE_URL;
package/dist/ats.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { C as updateConfiguredSkillsConfig, S as updateConfiguredOnboardingConfig, _ as getRuntimeConfigReadHealth, a as resolveBaseUrl, b as setConfiguredSkillsConfig, c as resolveExplicitGatewayUrlOrThrow, d as createDefaultRuntimeAgentControllerSettings, f as getConfiguredDaemonDispatchLimits, g as getConfiguredViewCustomization, h as getConfiguredSkillsConfig, i as normalizeGatewayBaseUrlOrNull, l as DEFAULT_RUNTIME_AGENT_TRANSPORT_MODE, m as getConfiguredOnboardingDisclaimerAcceptedAt, o as resolveBaseUrlOrNull, p as getConfiguredDeviceRuntimeState, r as normalizeGatewayBaseUrl, s as resolveDefaultGatewayBaseUrl, u as alignRuntimeConfigStorage, v as resolveRuntimeSkillsCustomTargetId, w as updateConfiguredStartV1OnboardingState, x as updateConfiguredDeviceRuntimeState, y as setConfiguredBaseUrl } from "./base-url-CiDhrDeP.js";
4
- import { $ as getSpaceStatusResponseSchema, $n as canonicalizeBuiltinAgentControllerRef, $t as spaceCreatorSchema, A as deleteSpaceResponseSchema, An as LEGACY_RUNTIME_DISPATCH_POLICY, Ar as runtimeTransportDeliverDispatchRequestSchema, At as postSpaceThreadSignalResponseSchema, B as getAgentExecutionReadinessBatchBodySchema, Bn as SPACE_MENTION_REJECT_NOTICE_PURPOSE, Br as runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema, Bt as refreshCurrentLocalAgentCatalogResponseSchema, C as createSpaceThreadBodySchema, Cn as ATSD_CONTROL_PLANE_SCHEMA_VERSION, Cr as resolveBuiltinAgentControllerConversationKind, Ct as patchSpaceContractBodySchema, D as daemonRouteCatalogCacheSchema, Dn as DISPATCH_ACTIVITY_DISPATCHING_PURPOSE, Dt as postSpaceMembersBodySchema, E as currentLocalRuntimeReplyReadinessResponseSchema, En as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, Er as resolveSpaceMentionLabels, Et as postNormalMessageResponseSchema, F as forgetComputerResponseSchema, Fn as MAX_VISITED_PROFILE_IDS, Fr as runtimeTransportDispatchRuntimeEvidenceRequestSchema, Ft as projectObservabilityWakeCorrelation, G as getLocalRuntimeExpectedRoutesResponseSchema, Gn as atsdControlPlaneRequestSchema, Gr as runtimeTransportSubmitTaskResultRequestSchema, Gt as setCurrentLocalAgentEnabledResponseSchema, H as getAgentExecutionReadinessResponseSchema, Hn as SPACE_UPDATES_MAX_LIMIT, Hr as runtimeTransportRegisterSessionRequestSchema, Ht as resolveSpaceDispatchTraceRootCause, I as forgetCurrentComputerResponseSchema, In as MESSAGE_MENTION_TYPE_VALUES, Ir as runtimeTransportHeartbeatRequestSchema, It as projectSpaceDispatchTraceFinalVisibleOutcome, J as getPrepareReadinessResponseSchema, Jn as atsdTaskResultOpenClawGatewayVisibilityStatusSchema, Jt as setupPlanAgentViewEventSchema, K as getModelCatalogResponseSchema, Kn as atsdControlPlaneResponseSchema, Kr as sanitizeSignalTextPreview, Kt as setLocalRuntimeDisplayNameBodySchema, L as gatewayErrorCodeSchema, Ln as RUNTIME_TRANSPORT_SCHEMA_VERSION, Lr as runtimeTransportHeartbeatResponseSchema, Lt as redactPrepareStepDiagnosticsBundle, M as ensureAgentProfilePrimaryBindingBodySchema, Mn as MAX_PROFILE_ID_LENGTH, Mr as runtimeTransportDispatchLifecycleRequestSchema, Mt as prepareSessionStreamServerFrameSchema, N as ensureAgentProfilePrimaryBindingResponseSchema, Nn as MAX_PROFILE_WORKING_DIRECTORY_LENGTH, Nr as runtimeTransportDispatchPreviewEndRequestSchema, Nt as prepareSetupBootstrapWriteSchema, O as daemonRouteObservationResponseSchema, On as DISPATCH_ACTIVITY_FAILED_PURPOSE, Ot as postSpaceMembersResponseSchema, P as entryBriefSchema, Pn as MAX_SIGNAL_REPLY_TO_PREVIEW_LENGTH, Pr as runtimeTransportDispatchPreviewRequestSchema, Pt as prepareStepDiagnosticsBundleSchema, Q as getSpaceMessageDetailsResponseSchema, Qn as canonicalizeAgentControllerRef, Qt as spaceBootstrapResponseSchema, R as gatewayErrorEnvelopeSchema, Rn as SPACE_MEMBER_JOIN_NOTICE_PURPOSE, Rr as runtimeTransportLocalAgentControlCancelFramePayloadSchema, Rt as redactPrepareStepDiagnosticsText, S as createSpaceResponseSchema, Sn as AGENT_REPLY_PREVIEW_PURPOSE, Sr as providerDispatchRuntimeContextSchema, St as patchProfileSpaceHistoryStatusResponseSchema, T as currentDeviceTargetResponseSchema, Tn as CONVERSATION_CONTINUITY_WARNING_PURPOSE, Tr as resolveSingleSpaceMentionLabels, Tt as postNormalMessageBodySchema, U as getAgentProfilePrimaryBindingResponseSchema, Un as atsRuntimeProfileIdSchema, Ur as runtimeTransportRegisterSessionResponseSchema, Ut as serverErrorFrameSchema, V as getAgentExecutionReadinessBatchResponseSchema, Vn as SPACE_PASSWORD_MIN_LENGTH, Vr as runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema, Vt as removeSpaceMembersResponseSchema, W as getLocalRuntimeExpectedRoutesQuerySchema, Wn as atsSpaceEgressActionSchema, Wr as runtimeTransportRouteCatalogChangedFramePayloadSchema, Wt as setCurrentLocalAgentEnabledBodySchema, X as getSpaceDispatchLookupResponseSchema, Xn as buildAgentControllerConversationRef, Xt as signalEnvelopeSchema, Y as getSpaceContractResponseSchema, Yn as atsdTaskResultPayloadSchema, Yt as setupPlanAgentViewPayloadSchema, Z as getSpaceDispatchResultResponseSchema, Zn as buildAgentControllerRoutingKey, Zt as spaceAccessModeStateSchema, _ as cliJsonOutputEnvelopeSchema, _n as writeCurrentDeviceObservedMetadataBodySchema, _r as parseAgentControllerRef$1, _t as normalizeSpaceCursorPatch, a as DAEMON_ROUTE_CATALOG_CACHE_SCHEMA_VERSION, an as spaceMetaSchema, ar as formatCanonicalMentionLiteral, at as leaveSpaceResponseSchema, b as createSpaceDiagnosticReportBodySchema, bn as AGENT_REPLYING_PURPOSE, br as postSpaceWakeStopResponseSchema, bt as notifyAgentProfilesRouteCatalogChangedBodySchema, c as SETUP_PLAN_AGENT_VIEW_CODE, cn as submitRuntimeAgentControllerReportsBodySchema, cr as formatLocalSetupActionDescription, ct as listSpaceThreadSignalsResponseSchema, d as accountSpaceIndexResponseSchema, dn as submitRuntimeProviderConversationProofsResponseSchema, dr as installedLocalComponentsSnapshotSchema, dt as localRuntimeEnrollmentBodySchema, en as spaceDispatchTraceResponseSchema, er as collectCanonicalMentionTextFragments, et as getSpaceThreadResponseSchema, f as agentControllerPermissionModeSchema, fn as submitRuntimeRegistrationBodySchema, fr as normalizeBuiltinAgentControllerId, ft as localRuntimeEnrollmentResponseSchema, g as catchupResponseSchema, gn as upsertProfileSpaceHistoryResponseSchema, gr as normalizeSpacePasswordText, gt as normalizeListSignalsReadQuerySemantics, h as atsRequestContextSchema, hn as updateAgentProfilePrimaryBindingModelSelectionBodySchema, hr as normalizeOptionalWorkingDirectory, ht as modelCatalogSchema, i as DAEMON_ROUTE_CATALOG_CACHE_SCHEMA_NAME, in as spaceMembersSnapshotSchema, ir as daemonStreamFrameSchema, it as incomingServerMessageSchema, j as dispatchBriefSchema, jn as LOCAL_COMPONENTS_SCHEMA_VERSION, jr as runtimeTransportDeliveryExecutionIdentitySchema, jt as prepareSessionResponseSchema, k as daemonRuntimeLeaseSchema, kn as DISPATCH_ACTIVITY_RETRYING_PURPOSE, kr as runtimeCoordinatorExecutionTokenEnvelopeSchema, kt as postSpaceThreadSignalBodySchema, l as SETUP_PLAN_AGENT_VIEW_SCHEMA_VERSION, ln as submitRuntimeAgentControllerReportsResponseSchema, lr as formatLocalSetupActionLabel, lt as listSpaceThreadsResponseSchema, m as agentProfileBindingRouteParamsSchema, mn as updateAgentProfilePrimaryBindingAgentControllerPermissionModeBodySchema, mr as normalizeMessageEnvelope, mt as localRuntimesResponseSchema, n as resolveBuiltinAgentControllerBrand, nn as spaceMemberDirectoryEntrySchema, nr as daemonServiceContractSchema, nt as getSpaceWakeProgressResponseSchema, o as PREPARE_SESSION_STREAM_PROTOCOL_VERSION, on as spaceViewerMembershipResponseSchema, or as formatLocalComponentsSummaryDescription, ot as listProfileSpaceHistoryResponseSchema, p as agentExecutionReadinessRouteParamsSchema, pn as submitRuntimeRegistrationResponseSchema, pr as normalizeKnownBuiltinAgentControllerId, pt as localRuntimesQuerySchema, q as getPrepareReadinessQuerySchema, qn as atsdTaskResultEnvelopeWriteSchema, qt as setSpaceAccessModeBodySchema, r as resolveMappedPublicAgentFailureReason, rn as spaceMemberDirectorySchema, rr as daemonServiceLaneSchema, rt as getSpaceWakeTraceWaterfallResponseSchema, s as PREPARE_STEP_DIAGNOSTICS_MAX_CHARS, sn as structuredGuidePayloadFromInputSchema, sr as formatLocalComponentsSummaryLabel, st as listSpaceThreadEventsResponseSchema, t as CODEX_UPGRADE_REQUIRED_REASON, tn as spaceIdentityDirectorySchema, tr as conversationExecutionStateSchema, tt as getSpaceUpdatesResponseSchema, u as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, un as submitRuntimeProviderConversationProofsBodySchema, ur as getSpaceMessageAddressingRelationSupportForTargetKind, ut as localAgentCatalogSchema, v as continuitySchema, vn as writeCurrentDeviceObservedMetadataResponseSchema, vr as parseOptionalClientMessageId, vt as notifyAgentProfileRouteCatalogChangedBodySchema, w as createSpaceThreadResponseSchema, wn as ATSD_TASK_RESULT_SCHEMA_VERSION, wr as resolveMessageEnvelopeTargetField, wt as patchSpaceContractResponseSchema, x as createSpaceDiagnosticReportResponseSchema, xn as AGENT_REPLY_PREVIEW_END_PURPOSE, xr as profileWorkspaceModeSchema, xt as observabilityWakeTraceSelectorSchema, y as createSpaceBodySchema, yn as AGENT_REPLYING_END_PURPOSE, yr as postSpaceWakeStopBodySchema, yt as notifyAgentProfileRouteCatalogChangedResponseSchema, z as getActiveSpaceWakeProgressResponseSchema, zn as SPACE_MEMBER_REMOVE_NOTICE_PURPOSE, zr as runtimeTransportLocalAgentControlInterruptFramePayloadSchema, zt as redactPrepareStepDiagnosticsValue } from "./dist-DkHDSnUA.js";
3
+ import { C as updateConfiguredSkillsConfig, S as updateConfiguredOnboardingConfig, _ as getRuntimeConfigReadHealth, a as resolveBaseUrl, b as setConfiguredSkillsConfig, c as resolveExplicitGatewayUrlOrThrow, d as createDefaultRuntimeAgentControllerSettings, f as getConfiguredDaemonDispatchLimits, g as getConfiguredViewCustomization, h as getConfiguredSkillsConfig, i as normalizeGatewayBaseUrlOrNull, l as DEFAULT_RUNTIME_AGENT_TRANSPORT_MODE, m as getConfiguredOnboardingDisclaimerAcceptedAt, o as resolveBaseUrlOrNull, p as getConfiguredDeviceRuntimeState, r as normalizeGatewayBaseUrl, s as resolveDefaultGatewayBaseUrl, u as alignRuntimeConfigStorage, v as resolveRuntimeSkillsCustomTargetId, w as updateConfiguredStartV1OnboardingState, x as updateConfiguredDeviceRuntimeState, y as setConfiguredBaseUrl } from "./base-url-CUhLLV5i.js";
4
+ import { $ as getSpaceStatusResponseSchema, $n as canonicalizeBuiltinAgentControllerRef, $t as spaceCreatorSchema, A as deleteSpaceResponseSchema, An as LEGACY_RUNTIME_DISPATCH_POLICY, Ar as runtimeTransportDeliveryExecutionIdentitySchema, At as postSpaceThreadSignalResponseSchema, B as getAgentExecutionReadinessBatchBodySchema, Bn as SPACE_MENTION_REJECT_NOTICE_PURPOSE, Br as runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema, Bt as refreshCurrentLocalAgentCatalogResponseSchema, C as createSpaceThreadBodySchema, Cn as ATSD_CONTROL_PLANE_SCHEMA_VERSION, Cr as resolveMessageEnvelopeTargetField, Ct as patchSpaceContractBodySchema, D as daemonRouteCatalogCacheSchema, Dn as DISPATCH_ACTIVITY_DISPATCHING_PURPOSE, Dt as postSpaceMembersBodySchema, E as currentLocalRuntimeReplyReadinessResponseSchema, En as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, Et as postNormalMessageResponseSchema, F as forgetComputerResponseSchema, Fn as MAX_VISITED_PROFILE_IDS, Fr as runtimeTransportHeartbeatRequestSchema, Ft as projectObservabilityWakeCorrelation, G as getLocalRuntimeExpectedRoutesResponseSchema, Gn as atsdControlPlaneRequestSchema, Gr as sanitizeSignalTextPreview, Gt as setCurrentLocalAgentEnabledResponseSchema, H as getAgentExecutionReadinessResponseSchema, Hn as SPACE_UPDATES_MAX_LIMIT, Hr as runtimeTransportRegisterSessionResponseSchema, Ht as resolveSpaceDispatchTraceRootCause, I as forgetCurrentComputerResponseSchema, In as MESSAGE_MENTION_TYPE_VALUES, Ir as runtimeTransportHeartbeatResponseSchema, It as projectSpaceDispatchTraceFinalVisibleOutcome, J as getPrepareReadinessResponseSchema, Jn as atsdTaskResultOpenClawGatewayVisibilityStatusSchema, Jt as setupPlanAgentViewEventSchema, K as getModelCatalogResponseSchema, Kn as atsdControlPlaneResponseSchema, Kt as setLocalRuntimeDisplayNameBodySchema, L as gatewayErrorCodeSchema, Ln as RUNTIME_TRANSPORT_SCHEMA_VERSION, Lr as runtimeTransportLocalAgentControlCancelFramePayloadSchema, Lt as redactPrepareStepDiagnosticsBundle, M as ensureAgentProfilePrimaryBindingBodySchema, Mn as MAX_PROFILE_ID_LENGTH, Mr as runtimeTransportDispatchPreviewEndRequestSchema, Mt as prepareSessionStreamServerFrameSchema, N as ensureAgentProfilePrimaryBindingResponseSchema, Nn as MAX_PROFILE_WORKING_DIRECTORY_LENGTH, Nr as runtimeTransportDispatchPreviewRequestSchema, Nt as prepareSetupBootstrapWriteSchema, O as daemonRouteObservationResponseSchema, On as DISPATCH_ACTIVITY_FAILED_PURPOSE, Or as runtimeCoordinatorExecutionTokenEnvelopeSchema, Ot as postSpaceMembersResponseSchema, P as entryBriefSchema, Pn as MAX_SIGNAL_REPLY_TO_PREVIEW_LENGTH, Pr as runtimeTransportDispatchRuntimeEvidenceRequestSchema, Pt as prepareStepDiagnosticsBundleSchema, Q as getSpaceMessageDetailsResponseSchema, Qn as canonicalizeAgentControllerRef, Qt as spaceBootstrapResponseSchema, R as gatewayErrorEnvelopeSchema, Rn as SPACE_MEMBER_JOIN_NOTICE_PURPOSE, Rr as runtimeTransportLocalAgentControlInterruptFramePayloadSchema, Rt as redactPrepareStepDiagnosticsText, S as createSpaceResponseSchema, Sn as AGENT_REPLY_PREVIEW_PURPOSE, Sr as resolveBuiltinAgentControllerConversationKind, St as patchProfileSpaceHistoryStatusResponseSchema, T as currentDeviceTargetResponseSchema, Tn as CONVERSATION_CONTINUITY_WARNING_PURPOSE, Tr as resolveSpaceMentionLabels, Tt as postNormalMessageBodySchema, U as getAgentProfilePrimaryBindingResponseSchema, Un as atsRuntimeProfileIdSchema, Ur as runtimeTransportRouteCatalogChangedFramePayloadSchema, Ut as serverErrorFrameSchema, V as getAgentExecutionReadinessBatchResponseSchema, Vn as SPACE_PASSWORD_MIN_LENGTH, Vr as runtimeTransportRegisterSessionRequestSchema, Vt as removeSpaceMembersResponseSchema, W as getLocalRuntimeExpectedRoutesQuerySchema, Wn as atsSpaceEgressActionSchema, Wr as runtimeTransportSubmitTaskResultRequestSchema, Wt as setCurrentLocalAgentEnabledBodySchema, X as getSpaceDispatchLookupResponseSchema, Xn as buildAgentControllerConversationRef, Xt as signalEnvelopeSchema, Y as getSpaceContractResponseSchema, Yn as atsdTaskResultPayloadSchema, Yt as setupPlanAgentViewPayloadSchema, Z as getSpaceDispatchResultResponseSchema, Zn as buildAgentControllerRoutingKey, Zt as spaceAccessModeStateSchema, _ as cliJsonOutputEnvelopeSchema, _n as writeCurrentDeviceObservedMetadataBodySchema, _r as parseOptionalClientMessageId, _t as normalizeSpaceCursorPatch, a as DAEMON_ROUTE_CATALOG_CACHE_SCHEMA_VERSION, an as spaceMetaSchema, ar as formatCanonicalMentionLiteral, at as leaveSpaceResponseSchema, b as createSpaceDiagnosticReportBodySchema, bn as AGENT_REPLYING_PURPOSE, br as profileWorkspaceModeSchema, bt as notifyAgentProfilesRouteCatalogChangedBodySchema, c as SETUP_PLAN_AGENT_VIEW_CODE, cn as submitRuntimeAgentControllerReportsBodySchema, cr as formatLocalSetupActionDescription, ct as listSpaceThreadSignalsResponseSchema, d as accountSpaceIndexResponseSchema, dn as submitRuntimeProviderConversationProofsResponseSchema, dr as normalizeBuiltinAgentControllerId, dt as localRuntimeEnrollmentBodySchema, en as spaceDispatchTraceResponseSchema, er as collectCanonicalMentionTextFragments, et as getSpaceThreadResponseSchema, f as agentControllerPermissionModeSchema, fn as submitRuntimeRegistrationBodySchema, fr as normalizeKnownBuiltinAgentControllerId, ft as localRuntimeEnrollmentResponseSchema, g as catchupResponseSchema, gn as upsertProfileSpaceHistoryResponseSchema, gr as parseAgentControllerRef$1, gt as normalizeListSignalsReadQuerySemantics, h as atsRequestContextSchema, hn as updateAgentProfilePrimaryBindingModelSelectionBodySchema, hr as normalizeSpacePasswordText, ht as modelCatalogSchema, i as DAEMON_ROUTE_CATALOG_CACHE_SCHEMA_NAME, in as spaceMembersSnapshotSchema, ir as daemonStreamFrameSchema, it as incomingServerMessageSchema, j as dispatchBriefSchema, jn as LOCAL_COMPONENTS_SCHEMA_VERSION, jr as runtimeTransportDispatchLifecycleRequestSchema, jt as prepareSessionResponseSchema, k as daemonRuntimeLeaseSchema, kn as DISPATCH_ACTIVITY_RETRYING_PURPOSE, kr as runtimeTransportDeliverDispatchRequestSchema, kt as postSpaceThreadSignalBodySchema, l as SETUP_PLAN_AGENT_VIEW_SCHEMA_VERSION, ln as submitRuntimeAgentControllerReportsResponseSchema, lr as formatLocalSetupActionLabel, lt as listSpaceThreadsResponseSchema, m as agentProfileBindingRouteParamsSchema, mn as updateAgentProfilePrimaryBindingAgentControllerPermissionModeBodySchema, mr as normalizeOptionalWorkingDirectory, mt as localRuntimesResponseSchema, n as resolveDetailedPublicAgentFailureReason$1, nn as spaceMemberDirectoryEntrySchema, nr as daemonServiceContractSchema, nt as getSpaceWakeProgressResponseSchema, o as PREPARE_SESSION_STREAM_PROTOCOL_VERSION, on as spaceViewerMembershipResponseSchema, or as formatLocalComponentsSummaryDescription, ot as listProfileSpaceHistoryResponseSchema, p as agentExecutionReadinessRouteParamsSchema, pn as submitRuntimeRegistrationResponseSchema, pr as normalizeMessageEnvelope, pt as localRuntimesQuerySchema, q as getPrepareReadinessQuerySchema, qn as atsdTaskResultEnvelopeWriteSchema, qt as setSpaceAccessModeBodySchema, r as resolveMappedPublicAgentFailureReason, rn as spaceMemberDirectorySchema, rr as daemonServiceLaneSchema, rt as getSpaceWakeTraceWaterfallResponseSchema, s as PREPARE_STEP_DIAGNOSTICS_MAX_CHARS, sn as structuredGuidePayloadFromInputSchema, sr as formatLocalComponentsSummaryLabel, st as listSpaceThreadEventsResponseSchema, t as resolveBuiltinAgentControllerBrand, tn as spaceIdentityDirectorySchema, tr as conversationExecutionStateSchema, tt as getSpaceUpdatesResponseSchema, u as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, un as submitRuntimeProviderConversationProofsBodySchema, ur as getSpaceMessageAddressingRelationSupportForTargetKind, ut as localAgentCatalogSchema, v as continuitySchema, vn as writeCurrentDeviceObservedMetadataResponseSchema, vr as postSpaceWakeStopBodySchema, vt as notifyAgentProfileRouteCatalogChangedBodySchema, w as createSpaceThreadResponseSchema, wn as ATSD_TASK_RESULT_SCHEMA_VERSION, wr as resolveSingleSpaceMentionLabels, wt as patchSpaceContractResponseSchema, x as createSpaceDiagnosticReportResponseSchema, xn as AGENT_REPLY_PREVIEW_END_PURPOSE, xr as providerDispatchRuntimeContextSchema, xt as observabilityWakeTraceSelectorSchema, y as createSpaceBodySchema, yn as AGENT_REPLYING_END_PURPOSE, yr as postSpaceWakeStopResponseSchema, yt as notifyAgentProfileRouteCatalogChangedResponseSchema, z as getActiveSpaceWakeProgressResponseSchema, zn as SPACE_MEMBER_REMOVE_NOTICE_PURPOSE, zr as runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema, zt as redactPrepareStepDiagnosticsValue } from "./dist-CAWDZ7ug.js";
5
5
  import { A as runtimeDir, C as normalizeAtsProfileId, D as resolveAtsEnvPreset, E as resolveAtsCliEntryNameFromArgv, F as systemDir, N as skillsDir, O as resolveAtsRootDir, P as spacesDir, S as normalizeAccountKey, T as profileViewPath, a as accountProfileWorkspacePath, c as atsRootDir, d as deviceOpenClawProfileBootstrapPath, f as deviceOpenClawProfileDir, i as accountProfileViewPath, j as runtimeLogsDir, k as resolveDefaultAtsHomeDirname, n as accountProfileLocalMetaPath, o as accountsDir, p as deviceOpenClawProfileWorkspaceDir, r as accountProfileSpaceCacheDir, s as atsBackupsDir, t as ATS_HOME_ENV_KEY, w as profileDir, y as legacyAccountProfileSpacesDir } from "./paths-DP4LBid2.js";
6
6
  import { a as runWithHeldLock, c as LEGACY_ATS_CLI_CONTEXT_ENV_KEY, d as resolveCliContext, f as resolveCliContextId, i as releaseLock, l as listCliContextStates, n as isAtsLockError, o as tryCleanupStaleLock, p as writeCliContextState, r as readLockMeta, s as ATS_CLI_CONTEXT_ENV_KEY, t as acquireLock, u as readCliContextState } from "./lock-CBIWEyt0.js";
7
7
  import { _ as toSpaceWsUrl, a as toSpaceCursorUrl, c as toSpaceDispatchTraceUrl, d as toSpaceMetaUrl, f as toSpacePasswordUrl, g as toSpaceUpdatesUrl, h as toSpaceSignalsUrl, i as toSpaceCreateUrl, l as toSpaceLeaveUrl, m as toSpaceResultUrl, n as toDaemonRouteObservationUrl, o as toSpaceDeleteUrl, p as toSpaceRemoveMembersUrl, r as toSpaceContractUrl, s as toSpaceDispatchLookupUrl, t as normalizeBaseUrl, u as toSpaceMembersUrl } from "./urls-B8ZoQgpS.js";
@@ -32,7 +32,7 @@ import { ReadStream, WriteStream } from "node:tty";
32
32
  import { performance } from "node:perf_hooks";
33
33
 
34
34
  //#region package.json
35
- var version = "0.7.99";
35
+ var version = "0.8.0";
36
36
  var package_default = {
37
37
  $schema: "https://www.schemastore.org/package.json",
38
38
  name: "agent-transport-system",
@@ -403,43 +403,7 @@ function resolvePublicAgentFailureReason(input) {
403
403
  return resolveMappedPublicAgentFailureReason(input.errorCode) ?? normalizeOptionalText$2$2(input.defaultReason);
404
404
  }
405
405
  function resolveDetailedPublicAgentFailureReason(errorMessage) {
406
- const normalizedMessage = normalizeProviderFailureMessage(errorMessage);
407
- if (!normalizedMessage) return null;
408
- const lowered = normalizedMessage.toLowerCase();
409
- if (lowered.includes("model is not supported") && lowered.includes("chatgpt account")) return "The current Codex model is not available for this ChatGPT-backed account.";
410
- if (lowered.includes("requires a newer version of codex")) return CODEX_UPGRADE_REQUIRED_REASON;
411
- if (lowered.includes("model is not supported") || lowered.includes("unsupported model")) return "The current model is not available for this agent's account.";
412
- if (lowered.includes("oauth token refresh failed") || lowered.includes("failed to refresh oauth token")) {
413
- if (lowered.includes("openclaw logs --follow")) return "Authentication failed in OpenClaw. Run `openclaw logs --follow`, re-authenticate, then retry.";
414
- return "Authentication failed while refreshing the provider token. Re-authenticate in the provider CLI, then retry.";
415
- }
416
- if (isClaudeCodeSubscriptionAccessFailure$1(lowered)) return "Claude Code subscription access is unavailable. Check your Claude Code subscription, then try again.";
417
- if (isClaudeCodeAccountAccessFailure$1(lowered)) return "Claude Code access is disabled for this account or organization. Enable Claude Code access in Claude, then try again.";
418
- if (lowered.includes("openclaw is not installed or not on path")) return "ATS could not start OpenClaw on this device. Install OpenClaw or fix its PATH for background services, then try again.";
419
- if (lowered.includes("launch contract is required for runtime dispatch")) return "ATS could not start this agent on this device. Repair it on this device, then try again.";
420
- if (lowered.includes("more than one working") && lowered.includes("install")) return "ATS found more than one working install for this agent on this device. Choose which one ATS should use here, then try again.";
421
- return null;
422
- }
423
- function isClaudeCodeAccountAccessFailure$1(value) {
424
- return value.includes("organization") && value.includes("disabled") && value.includes("access") || value.includes("claude code") && (value.includes("access is disabled") || value.includes("disabled claude code") || value.includes("access unavailable") || value.includes("not enabled"));
425
- }
426
- function isClaudeCodeSubscriptionAccessFailure$1(value) {
427
- return value.includes("subscription") && (value.includes("disabled") || value.includes("inactive") || value.includes("required") || value.includes("unavailable"));
428
- }
429
- function normalizeProviderFailureMessage(value) {
430
- const normalized = normalizeOptionalText$2$2(value);
431
- if (!normalized) return null;
432
- return normalizeOptionalText$2$2(extractJsonDetail(normalized)) ?? normalized;
433
- }
434
- function extractJsonDetail(value) {
435
- try {
436
- const parsed = JSON.parse(value);
437
- if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return null;
438
- const record = parsed;
439
- return normalizeOptionalText$2$2(record.detail) ?? normalizeOptionalText$2$2(record.message) ?? (record.error && typeof record.error === "object" && !Array.isArray(record.error) ? normalizeOptionalText$2$2(record.error.message) : null);
440
- } catch {
441
- return null;
442
- }
406
+ return resolveDetailedPublicAgentFailureReason$1(errorMessage);
443
407
  }
444
408
  function normalizeOptionalText$2$2(value) {
445
409
  const normalized = typeof value === "string" ? value.trim() : "";
@@ -3986,7 +3950,7 @@ function resolveAtsAccountContext(input) {
3986
3950
  };
3987
3951
  }
3988
3952
  async function resolveCurrentAtsAccountContext() {
3989
- const { getAuthSessionMetadata } = await import("./auth-session-DbA1IFeL.js");
3953
+ const { getAuthSessionMetadata } = await import("./auth-session-CGS0wU36.js");
3990
3954
  return resolveAtsAccountContext({ session: await getAuthSessionMetadata().catch(() => null) });
3991
3955
  }
3992
3956
  function resolveHostKey(baseUrl) {
@@ -4437,7 +4401,7 @@ async function setDaemonServiceRuntimeState(state, pathInput = {}) {
4437
4401
  await writeDaemonServiceRuntimeState(state, pathInput);
4438
4402
  }
4439
4403
  async function clearDaemonServiceRuntimeState(pathInput = {}) {
4440
- const { clearDaemonRuntimeLease } = await import("./daemon-runtime-lease-D1x-3a2_.js");
4404
+ const { clearDaemonRuntimeLease } = await import("./daemon-runtime-lease-D95ZBBfu.js");
4441
4405
  await Promise.all([rm(daemonServiceRuntimeStatePath(pathInput), { force: true }), clearDaemonRuntimeLease(pathInput)]);
4442
4406
  }
4443
4407
  async function withDaemonServiceRunLock(callback, meta = {
@@ -10498,7 +10462,7 @@ const isAuthFailure$2 = (value) => {
10498
10462
  return value.includes("not logged in") || value.includes("please run /login") || value.includes("authentication_failed") || value.includes("unauthorized") || value.includes("401") || isClaudeCodeAccountAccessFailure(value);
10499
10463
  };
10500
10464
  const isQuotaFailure$2 = (value) => {
10501
- return value.includes("insufficient_quota") || value.includes("quota exceeded") || value.includes("exceeded your current quota") || value.includes("billing") || isClaudeCodeSubscriptionAccessFailure(value);
10465
+ return value.includes("insufficient_quota") || value.includes("insufficient balance") || value.includes("insufficient_balance") || value.includes("quota exceeded") || value.includes("exceeded your current quota") || value.includes("not enough credits") || value.includes("out of credits") || value.includes("credits exhausted") || value.includes("balance is too low") || value.includes("payment required") || value.includes("billing") || isClaudeCodeSubscriptionAccessFailure(value);
10502
10466
  };
10503
10467
  const isModelConfigFailure = (value) => {
10504
10468
  return value.includes("model_not_found") || value.includes("unknown model") || value.includes("invalid model") || value.includes("requested model") || value.includes("unsupported model") || value.includes("model") && (value.includes("does not exist") || value.includes("no longer available") || value.includes("retired") || value.includes("deprecated")) || value.includes("invalid_request_error") && value.includes("model") || value.includes("\"param\": \"model\"");
@@ -12358,7 +12322,7 @@ const isAuthFailure$1 = (value) => {
12358
12322
  return value.includes("401") || value.includes("unauthorized") || value.includes("missing bearer") || value.includes("not logged in") || value.includes("authentication");
12359
12323
  };
12360
12324
  const isQuotaFailure$1 = (value) => {
12361
- return value.includes("insufficient_quota") || value.includes("quota exceeded") || value.includes("exceeded your current quota") || value.includes("billing");
12325
+ return value.includes("insufficient_quota") || value.includes("insufficient balance") || value.includes("insufficient_balance") || value.includes("quota exceeded") || value.includes("exceeded your current quota") || value.includes("not enough credits") || value.includes("out of credits") || value.includes("credits exhausted") || value.includes("balance is too low") || value.includes("payment required") || value.includes("billing");
12362
12326
  };
12363
12327
  const isRateLimitFailure$1 = (value) => {
12364
12328
  return value.includes("429") || value.includes("rate limit") || value.includes("too many requests");
@@ -13057,7 +13021,7 @@ function isAuthFailure(value) {
13057
13021
  return value.includes("not logged in") || value.includes("please run /login") || value.includes("authentication_failed") || value.includes("unauthorized") || HTTP_401_TOKEN_RE.test(value) || value.includes("api key") || value.includes("missing credentials") || value.includes("missing token");
13058
13022
  }
13059
13023
  function isQuotaFailure(value) {
13060
- return value.includes("insufficient_quota") || value.includes("quota exceeded") || value.includes("credits exhausted") || value.includes("billing") || value.includes("payment required");
13024
+ return value.includes("insufficient_quota") || value.includes("insufficient balance") || value.includes("insufficient_balance") || value.includes("quota exceeded") || value.includes("not enough credits") || value.includes("out of credits") || value.includes("credits exhausted") || value.includes("balance is too low") || value.includes("billing") || value.includes("payment required");
13061
13025
  }
13062
13026
  function isRateLimitFailure(value) {
13063
13027
  return value.includes("rate limit") || value.includes("too many requests") || HTTP_429_TOKEN_RE.test(value) || value.includes("throttl");
@@ -14176,6 +14140,11 @@ function classifyOpenCodeFailureMessage(input) {
14176
14140
  errorType: "config",
14177
14141
  message: `model.unsupported: ${normalized}`
14178
14142
  };
14143
+ if (isInsufficientBalanceFailure(lowered)) return {
14144
+ code: "provider.insufficient_balance",
14145
+ errorType: "adapter",
14146
+ message: `provider.insufficient_balance: ${normalized}`
14147
+ };
14179
14148
  if (lowered.includes("rate") || lowered.includes("quota")) return {
14180
14149
  code: "provider.rate_limited",
14181
14150
  errorType: "network",
@@ -14187,6 +14156,9 @@ function classifyOpenCodeFailureMessage(input) {
14187
14156
  message: `upstream_unreachable: ${normalized}`
14188
14157
  };
14189
14158
  }
14159
+ function isInsufficientBalanceFailure(value) {
14160
+ return value.includes("insufficient balance") || value.includes("insufficient_balance") || value.includes("not enough credits") || value.includes("out of credits") || value.includes("credits exhausted") || value.includes("credit balance") || value.includes("account balance") || value.includes("balance is too low") || value.includes("payment required");
14161
+ }
14190
14162
 
14191
14163
  //#endregion
14192
14164
  //#region ../../runtime/adapters/opencode/dist/transport/opencode-cli-transport.js
@@ -14415,7 +14387,7 @@ const collectProviderErrorMessage = (line, output) => {
14415
14387
  };
14416
14388
  const looksLikeProviderFailure = (value) => {
14417
14389
  const lowered = value.toLowerCase();
14418
- return lowered.includes("error") || lowered.includes("failed") || lowered.includes("unauthorized") || lowered.includes("not logged in") || lowered.includes("invalid") || lowered.includes("quota") || lowered.includes("rate") || lowered.includes("session") || lowered.includes("unsupported model") || lowered.includes("model is not supported");
14390
+ return lowered.includes("error") || lowered.includes("failed") || lowered.includes("unauthorized") || lowered.includes("not logged in") || lowered.includes("invalid") || lowered.includes("quota") || lowered.includes("rate") || lowered.includes("balance") || lowered.includes("credit") || lowered.includes("billing") || lowered.includes("payment required") || lowered.includes("session") || lowered.includes("unsupported model") || lowered.includes("model is not supported");
14419
14391
  };
14420
14392
  function normalizeOptionalText$39(value) {
14421
14393
  const normalized = String(value ?? "").trim();
@@ -26938,7 +26910,10 @@ async function runWithDaemonLifecycleCommandJournal(input) {
26938
26910
  await emitDaemonLifecycleEvent({
26939
26911
  type: "lifecycle.command.begin",
26940
26912
  result: "started",
26941
- metadata: input.metadata,
26913
+ metadata: input.includeProcessUptime ? {
26914
+ ...input.metadata,
26915
+ processUptimeMs: Math.round(process$1.uptime() * 1e3)
26916
+ } : input.metadata,
26942
26917
  pathInput: input.pathInput,
26943
26918
  command: input.command,
26944
26919
  intent: input.intent
@@ -27088,6 +27063,7 @@ function formatDaemonLifecycleIntent(intent) {
27088
27063
  //#region src/local-service/inventory/agent-controller-interface-keeper.ts
27089
27064
  const LAST_GOOD_REUSE_TTL_MS = 15 * 6e4;
27090
27065
  const TRANSIENT_FAILURE_REPORT_THRESHOLD = 3;
27066
+ const AGENT_CONTROLLER_INTERFACE_REPROBE_DELAY_MS = 45e3;
27091
27067
  const keeperEntries = /* @__PURE__ */ new Map();
27092
27068
  function buildAgentControllerInterfaceKeeperKey(input) {
27093
27069
  return `${input.agentId}\u0000${input.commandPath ?? ""}`;
@@ -27102,20 +27078,36 @@ function recordAgentControllerInterfaceProbeSuccess(input) {
27102
27078
  keeperEntries.set(input.keeperKey, {
27103
27079
  failStreak: 0,
27104
27080
  lastGoodSnapshot: input.snapshot,
27105
- lastSuccessAtMs: input.nowMs
27081
+ lastSuccessAtMs: input.nowMs,
27082
+ reprobe: "idle"
27106
27083
  });
27107
27084
  }
27108
27085
  function recordAgentControllerInterfaceProbeFailure(input) {
27109
27086
  const entry = keeperEntries.get(input.keeperKey) ?? {
27110
27087
  failStreak: 0,
27111
27088
  lastGoodSnapshot: null,
27112
- lastSuccessAtMs: 0
27089
+ lastSuccessAtMs: 0,
27090
+ reprobe: "idle"
27113
27091
  };
27114
27092
  entry.failStreak += 1;
27093
+ if (entry.lastGoodSnapshot === null && entry.reprobe === "idle") entry.reprobe = "armed";
27115
27094
  keeperEntries.set(input.keeperKey, entry);
27116
27095
  if (entry.lastGoodSnapshot && entry.failStreak < TRANSIENT_FAILURE_REPORT_THRESHOLD) return { heldSnapshot: entry.lastGoodSnapshot };
27117
27096
  return { heldSnapshot: null };
27118
27097
  }
27098
+ function consumeArmedAgentControllerInterfaceReprobe() {
27099
+ let armed = false;
27100
+ for (const entry of keeperEntries.values()) if (entry.reprobe === "armed") {
27101
+ entry.reprobe = "attempted";
27102
+ armed = true;
27103
+ }
27104
+ return armed;
27105
+ }
27106
+ function resolveNextRuntimeAgentControllerReportSyncAtMs(input) {
27107
+ const baseNextMs = input.nowMs + input.baseRetryMs;
27108
+ if (!input.hasArmedReprobe) return baseNextMs;
27109
+ return Math.min(baseNextMs, input.nowMs + AGENT_CONTROLLER_INTERFACE_REPROBE_DELAY_MS);
27110
+ }
27119
27111
 
27120
27112
  //#endregion
27121
27113
  //#region src/local-service/inventory/opencode-readiness-probe.ts
@@ -30968,9 +30960,9 @@ function createModelCatalogReadSession(input) {
30968
30960
  async function readModelCatalogOnce(baseUrl) {
30969
30961
  try {
30970
30962
  const [apiClient, baseUrlModule, clientFoundationModule] = await Promise.all([
30971
- import("./dist-DV2pViNq.js"),
30972
- import("./base-url-CiDhrDeP.js").then((n) => n.n),
30973
- import("./api-client-foundation-CBoyrvoT.js")
30963
+ import("./dist-D0BlTUON.js"),
30964
+ import("./base-url-CUhLLV5i.js").then((n) => n.n),
30965
+ import("./api-client-foundation-DTyZepRv.js")
30974
30966
  ]);
30975
30967
  if (typeof apiClient.createConfigApi !== "function") throw new Error("config api client is unavailable");
30976
30968
  const resolvedBaseUrl = baseUrl ?? await baseUrlModule.resolveBaseUrl();
@@ -40640,13 +40632,6 @@ async function buildExpectedLocalComponentsManifest() {
40640
40632
  skills
40641
40633
  };
40642
40634
  }
40643
- async function readInstalledLocalComponentsSnapshot() {
40644
- const raw = await readFile(localComponentsSnapshotPath(), "utf8").catch(() => null);
40645
- if (!raw) return null;
40646
- const parsed = JSON.parse(raw);
40647
- const result = installedLocalComponentsSnapshotSchema.safeParse(parsed);
40648
- return result.success ? result.data : null;
40649
- }
40650
40635
  async function writeInstalledLocalComponentsSnapshot(input) {
40651
40636
  const snapshot = {
40652
40637
  schemaVersion: LOCAL_COMPONENTS_SCHEMA_VERSION,
@@ -40660,9 +40645,8 @@ async function writeInstalledLocalComponentsSnapshot(input) {
40660
40645
  return snapshot;
40661
40646
  }
40662
40647
  async function resolveLocalComponentsStatus(input = {}) {
40663
- const [expectedManifest, installedSnapshot, service, skills] = await Promise.all([
40648
+ const [expectedManifest, service, skills] = await Promise.all([
40664
40649
  buildExpectedLocalComponentsManifest(),
40665
- readInstalledLocalComponentsSnapshot(),
40666
40650
  resolveServiceComponentState(),
40667
40651
  resolveSkillsComponentState()
40668
40652
  ]);
@@ -40701,7 +40685,7 @@ async function resolveLocalComponentsStatus(input = {}) {
40701
40685
  },
40702
40686
  skills: {
40703
40687
  expectedBundleHash: expectedManifest.skills.bundleHash,
40704
- installedBundleHash: installedSnapshot?.manifest.skills.bundleHash ?? skills.installedBundleHash,
40688
+ installedBundleHash: skills.installedBundleHash,
40705
40689
  reasonCodes: skills.reasonCodes,
40706
40690
  skillContractVersion: expectedManifest.skills.skillContractVersion,
40707
40691
  status: skills.status,
@@ -43779,9 +43763,13 @@ function createCliSpaceApi(baseUrl) {
43779
43763
 
43780
43764
  //#endregion
43781
43765
  //#region src/local-service/dispatch/send-target-reference.ts
43766
+ const SEND_TARGET_REFERENCE_DIRECTORY_CACHE_TTL_MS = 2e4;
43767
+ const memberDirectoryCache = /* @__PURE__ */ new Map();
43768
+ const inFlightMemberDirectoryLoads = /* @__PURE__ */ new Map();
43782
43769
  async function resolveDispatchSendTargetReference(input) {
43783
43770
  try {
43784
- const spaceApi = createCliSpaceApi(await resolveBaseUrl());
43771
+ const baseUrl = await resolveBaseUrl();
43772
+ const spaceApi = createCliSpaceApi(baseUrl);
43785
43773
  const requestContext = buildDispatchSendTargetRequestContext({
43786
43774
  profileOwnerName: input.profileOwnerName,
43787
43775
  profileOwnerUserId: input.profileOwnerUserId,
@@ -43798,11 +43786,14 @@ async function resolveDispatchSendTargetReference(input) {
43798
43786
  targetProfileId: input.dispatchTask.targetProfileId
43799
43787
  });
43800
43788
  const accessRequestContext = getSpaceAccessRequestContext(spaceAccess);
43801
- const spacePassword = getSpaceAccessPassword(spaceAccess);
43802
- const projection = listSpaceMemberDirectorySendTargets(await spaceApi.getMemberDirectory({
43803
- spaceId: spaceAccess.spaceId,
43789
+ const spacePassword = getSpaceAccessPassword(spaceAccess) ?? null;
43790
+ const projection = listSpaceMemberDirectorySendTargets(await loadDispatchSendTargetMemberDirectory({
43791
+ baseUrl,
43792
+ profileOwnerUserId: input.profileOwnerUserId,
43804
43793
  requestContext: accessRequestContext ?? requestContext,
43805
- ...spacePassword ? { spacePassword } : {}
43794
+ spaceApi,
43795
+ spaceId: spaceAccess.spaceId,
43796
+ spacePassword
43806
43797
  })).sort((left, right) => left.primaryMentionLabel.localeCompare(right.primaryMentionLabel, "en", { sensitivity: "base" }));
43807
43798
  return {
43808
43799
  status: "loaded",
@@ -43818,6 +43809,42 @@ async function resolveDispatchSendTargetReference(input) {
43818
43809
  };
43819
43810
  }
43820
43811
  }
43812
+ function loadDispatchSendTargetMemberDirectory(input) {
43813
+ const cacheKey = buildMemberDirectoryCacheKey(input);
43814
+ const nowMs = Date.now();
43815
+ const cached = memberDirectoryCache.get(cacheKey);
43816
+ if (cached && cached.expiresAtMs > nowMs) return Promise.resolve(cached.directory);
43817
+ if (cached) memberDirectoryCache.delete(cacheKey);
43818
+ const inFlight = inFlightMemberDirectoryLoads.get(cacheKey);
43819
+ if (inFlight) return inFlight;
43820
+ const loadPromise = input.spaceApi.getMemberDirectory({
43821
+ requestContext: input.requestContext,
43822
+ spaceId: input.spaceId,
43823
+ ...input.spacePassword ? { spacePassword: input.spacePassword } : {}
43824
+ }).then((directory) => {
43825
+ memberDirectoryCache.set(cacheKey, {
43826
+ directory,
43827
+ expiresAtMs: Date.now() + SEND_TARGET_REFERENCE_DIRECTORY_CACHE_TTL_MS
43828
+ });
43829
+ return directory;
43830
+ }).finally(() => {
43831
+ inFlightMemberDirectoryLoads.delete(cacheKey);
43832
+ });
43833
+ inFlightMemberDirectoryLoads.set(cacheKey, loadPromise);
43834
+ return loadPromise;
43835
+ }
43836
+ function buildMemberDirectoryCacheKey(input) {
43837
+ return [
43838
+ `base:${input.baseUrl}`,
43839
+ `space:${input.spaceId}`,
43840
+ `owner:${input.profileOwnerUserId}`,
43841
+ `password:${hashCacheSecret(input.spacePassword)}`
43842
+ ].join("|");
43843
+ }
43844
+ function hashCacheSecret(value) {
43845
+ if (!value) return "none";
43846
+ return createHash("sha256").update(value).digest("base64url");
43847
+ }
43821
43848
  function buildDispatchSendTargetRequestContext(input) {
43822
43849
  return buildAtsRequestContextFromProfileIdentity({ profileIdentity: {
43823
43850
  atsProfileId: input.targetProfileId,
@@ -47843,7 +47870,11 @@ async function runDaemonSocketSession(input) {
47843
47870
  probePolicy: probeFresh ? "fresh" : "background"
47844
47871
  });
47845
47872
  const retryInMs = result.failedCount > 0 ? RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS : RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS;
47846
- nextRuntimeAgentControllerReportSyncAtMs = Date.now() + retryInMs;
47873
+ nextRuntimeAgentControllerReportSyncAtMs = resolveNextRuntimeAgentControllerReportSyncAtMs({
47874
+ nowMs: Date.now(),
47875
+ baseRetryMs: retryInMs,
47876
+ hasArmedReprobe: consumeArmedAgentControllerInterfaceReprobe()
47877
+ });
47847
47878
  let reportSyncLineText;
47848
47879
  if (result.status === "skipped") reportSyncLineText = `runtime agent controller report sync skipped; ${result.reasonCodes[0] ?? "no reports"}`;
47849
47880
  else if (result.failedCount > 0) reportSyncLineText = `runtime agent controller report sync incomplete; accepted=${result.submittedCount}, failed=${result.failedCount}, total=${result.reportCount}; retrying in ${String(retryInMs)}ms`;
@@ -58349,6 +58380,7 @@ async function executeDaemonRunWithJournal(input) {
58349
58380
  return await runWithDaemonLifecycleCommandJournal({
58350
58381
  command: "ats service run",
58351
58382
  intent: input.mode === "foreground" ? "run_foreground" : "run_background",
58383
+ includeProcessUptime: true,
58352
58384
  metadata: {
58353
58385
  detached: input.detached,
58354
58386
  mode: input.mode
@@ -60534,6 +60566,7 @@ async function runAuthStatus(input) {
60534
60566
  command: "status"
60535
60567
  });
60536
60568
  const sessionState = await getAuthSessionState({ validateRemote: true });
60569
+ await clearRejectedRemoteAuthSessionIfNeeded(sessionState);
60537
60570
  const humanDataMode = runtime.viewCustomization?.render?.human?.dataMode;
60538
60571
  const mismatchGuidance = await resolveAuthStatusEnvironmentMismatch(sessionState);
60539
60572
  if (mismatchGuidance) {
@@ -60571,6 +60604,10 @@ async function runAuthStatus(input) {
60571
60604
  payload: statusPayload
60572
60605
  });
60573
60606
  }
60607
+ async function clearRejectedRemoteAuthSessionIfNeeded(sessionState) {
60608
+ if (sessionState.reasonCode !== "remote_session_invalid" && sessionState.reasonCode !== "remote_session_revoked") return;
60609
+ await clearAuthSession();
60610
+ }
60574
60611
  async function resolveAuthStatusEnvironmentMismatch(sessionState) {
60575
60612
  if (sessionState.state !== "valid" || !sessionState.session) return null;
60576
60613
  const gatewayUrl = await resolveBaseUrlOrNull();
@@ -99672,7 +99709,8 @@ const LIFECYCLE_JOURNAL_METADATA_WHITELIST = [
99672
99709
  "errorMessage",
99673
99710
  "jobDiagnostics",
99674
99711
  "durationMs",
99675
- "reason"
99712
+ "reason",
99713
+ "processUptimeMs"
99676
99714
  ];
99677
99715
  const LIFECYCLE_JOURNAL_METADATA_COMPACT_WHITELIST = LIFECYCLE_JOURNAL_METADATA_WHITELIST.filter((key) => key !== "jobDiagnostics");
99678
99716
  function isPrepareStepDiagnosticsOptedOut(env = process$1.env) {
@@ -104962,7 +105000,7 @@ function normalizeOptionalString(value) {
104962
105000
  return normalized.length > 0 ? normalized : null;
104963
105001
  }
104964
105002
  async function runDefaultSpaceAddMeMembership(input) {
104965
- const { runSpaceAddMeMembership } = await import("./add-me-membership-Cfi5fbyb.js");
105003
+ const { runSpaceAddMeMembership } = await import("./add-me-membership-CEJEhUA0.js");
104966
105004
  return await runSpaceAddMeMembership(input);
104967
105005
  }
104968
105006