agent-transport-system 0.8.0 → 0.8.1

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-CUhLLV5i.js";
4
- import "./dist-CAWDZ7ug.js";
3
+ import "./base-url-CKIxI7a-.js";
4
+ import "./dist-Dnk0Sbkn.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-CEJEhUA0.js.map
14
+ //# sourceMappingURL=add-me-membership-DTPIQzFt.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"add-me-membership-DTPIQzFt.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-CAWDZ7ug.js";
3
+ import "./dist-Dnk0Sbkn.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-CUhLLV5i.js";
4
- import "./dist-CAWDZ7ug.js";
3
+ import { t as DEV_LOCAL_GATEWAY_BASE_URL } from "./base-url-CKIxI7a-.js";
4
+ import "./dist-Dnk0Sbkn.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-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";
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-CKIxI7a-.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 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 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 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 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-Dnk0Sbkn.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,12 +32,12 @@ 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.8.0";
35
+ var version = "0.8.1";
36
36
  var package_default = {
37
37
  $schema: "https://www.schemastore.org/package.json",
38
38
  name: "agent-transport-system",
39
39
  version,
40
- atsReleaseDate: "2026-07-03",
40
+ atsReleaseDate: "2026-07-04",
41
41
  description: "Agent Transport System CLI - https://ats.sh",
42
42
  license: "MIT",
43
43
  type: "module",
@@ -3950,7 +3950,7 @@ function resolveAtsAccountContext(input) {
3950
3950
  };
3951
3951
  }
3952
3952
  async function resolveCurrentAtsAccountContext() {
3953
- const { getAuthSessionMetadata } = await import("./auth-session-CGS0wU36.js");
3953
+ const { getAuthSessionMetadata } = await import("./auth-session-DImu5O5J.js");
3954
3954
  return resolveAtsAccountContext({ session: await getAuthSessionMetadata().catch(() => null) });
3955
3955
  }
3956
3956
  function resolveHostKey(baseUrl) {
@@ -4317,7 +4317,7 @@ const DAEMON_SERVICE_LEGACY_EXECUTABLE_WRAPPER_FILENAME_BY_PRESET = {
4317
4317
  const DAEMON_SERVICE_LIFECYCLE_LOCK_PROFILE = DAEMON_SERVICE_LOCK_PROFILE;
4318
4318
  const DAEMON_SERVICE_LIFECYCLE_LOCK_KEY = DAEMON_SERVICE_LOCK_KEY;
4319
4319
  async function getDaemonStatus(pathInput = {}) {
4320
- const [state, runtimeExists] = await Promise.all([readDaemonInstallState(pathInput), pathExists$7(daemonRuntimeRootPath(pathInput))]);
4320
+ const [state, runtimeExists] = await Promise.all([readDaemonInstallState(pathInput), pathExists$8(daemonRuntimeRootPath(pathInput))]);
4321
4321
  if (state && runtimeExists) return {
4322
4322
  installed: true,
4323
4323
  state
@@ -4401,7 +4401,7 @@ async function setDaemonServiceRuntimeState(state, pathInput = {}) {
4401
4401
  await writeDaemonServiceRuntimeState(state, pathInput);
4402
4402
  }
4403
4403
  async function clearDaemonServiceRuntimeState(pathInput = {}) {
4404
- const { clearDaemonRuntimeLease } = await import("./daemon-runtime-lease-D95ZBBfu.js");
4404
+ const { clearDaemonRuntimeLease } = await import("./daemon-runtime-lease-DnBNmCXy.js");
4405
4405
  await Promise.all([rm(daemonServiceRuntimeStatePath(pathInput), { force: true }), clearDaemonRuntimeLease(pathInput)]);
4406
4406
  }
4407
4407
  async function withDaemonServiceRunLock(callback, meta = {
@@ -4477,7 +4477,7 @@ async function readDaemonServiceLifecycleLockMetaWithCleanup() {
4477
4477
  }
4478
4478
  async function installDaemon(input) {
4479
4479
  const existingState = await readDaemonInstallState();
4480
- const runtimeExists = await pathExists$7(daemonRuntimeRootPath());
4480
+ const runtimeExists = await pathExists$8(daemonRuntimeRootPath());
4481
4481
  if (existingState && runtimeExists && existingState.daemonVersion === input.daemonVersion) {
4482
4482
  await ensureDaemonTokenState();
4483
4483
  return {
@@ -4504,9 +4504,9 @@ async function installDaemon(input) {
4504
4504
  }
4505
4505
  async function uninstallDaemon(pathInput = {}) {
4506
4506
  const [hasState, hasRuntimeDir, hasToken] = await Promise.all([
4507
- pathExists$7(daemonStatePath(pathInput)),
4508
- pathExists$7(daemonRuntimeRootPath(pathInput)),
4509
- pathExists$7(daemonTokenPath(pathInput))
4507
+ pathExists$8(daemonStatePath(pathInput)),
4508
+ pathExists$8(daemonRuntimeRootPath(pathInput)),
4509
+ pathExists$8(daemonTokenPath(pathInput))
4510
4510
  ]);
4511
4511
  await Promise.all([
4512
4512
  rm(daemonStatePath(pathInput), { force: true }),
@@ -4821,7 +4821,7 @@ function isDaemonTokenExpired(state) {
4821
4821
  function createDaemonTokenValue() {
4822
4822
  return randomBytes(32).toString("base64url");
4823
4823
  }
4824
- async function pathExists$7(path) {
4824
+ async function pathExists$8(path) {
4825
4825
  try {
4826
4826
  await stat(path);
4827
4827
  return true;
@@ -30960,9 +30960,9 @@ function createModelCatalogReadSession(input) {
30960
30960
  async function readModelCatalogOnce(baseUrl) {
30961
30961
  try {
30962
30962
  const [apiClient, baseUrlModule, clientFoundationModule] = await Promise.all([
30963
- import("./dist-D0BlTUON.js"),
30964
- import("./base-url-CUhLLV5i.js").then((n) => n.n),
30965
- import("./api-client-foundation-DTyZepRv.js")
30963
+ import("./dist-CY3sdjqc.js"),
30964
+ import("./base-url-CKIxI7a-.js").then((n) => n.n),
30965
+ import("./api-client-foundation-CF0bk-Dm.js")
30966
30966
  ]);
30967
30967
  if (typeof apiClient.createConfigApi !== "function") throw new Error("config api client is unavailable");
30968
30968
  const resolvedBaseUrl = baseUrl ?? await baseUrlModule.resolveBaseUrl();
@@ -32093,7 +32093,7 @@ async function resolveAlignedDaemonActiveBundleEntryPath() {
32093
32093
  ]);
32094
32094
  const currentSourceDistFingerprint = await resolveCurrentDaemonSourceDistFingerprint().catch(() => null);
32095
32095
  const activeBundleEntryPath = await resolveDaemonBundleEntryPathFromState(state);
32096
- const activeBundleSourceAvailable = state && state.bundleFormat === "legacy_linked_v1" ? await pathExists$6(state.sourcePackageRootPath).catch(() => null) : null;
32096
+ const activeBundleSourceAvailable = state && state.bundleFormat === "legacy_linked_v1" ? await pathExists$7(state.sourcePackageRootPath).catch(() => null) : null;
32097
32097
  return resolveDaemonServiceArtifact({
32098
32098
  expectedVersion: serviceContract?.daemonVersion ?? (installStatus.installed ? installStatus.state.daemonVersion : state?.daemonVersion ?? "unknown"),
32099
32099
  installStatus,
@@ -32107,7 +32107,7 @@ async function resolveAlignedDaemonActiveBundleEntryPath() {
32107
32107
  async function resolveDaemonBundleEntryPathFromState(state, pathInput = {}) {
32108
32108
  if (!state) return null;
32109
32109
  const entryPath = join(resolveDaemonBundleRootPath(state.bundleId, pathInput), state.entryScriptRelativePath);
32110
- return await pathExists$6(entryPath) ? entryPath : null;
32110
+ return await pathExists$7(entryPath) ? entryPath : null;
32111
32111
  }
32112
32112
  async function prepareDaemonServiceBundle(input) {
32113
32113
  const sourceProvenance = await resolveDaemonBundleSourceProvenance(input.cliScriptPath);
@@ -32190,7 +32190,7 @@ async function copyDaemonBundleRuntimeDependencies(input) {
32190
32190
  });
32191
32191
  }
32192
32192
  async function copyDaemonBundleDependencyDirectory(input) {
32193
- if (!await pathExists$6(input.sourceDependencyPath)) throw new Error(`ATS could not copy runtime dependency ${input.dependencyName} for background service bundling from ${input.sourceDependencyPath}. Run \`pnpm install\` and retry.`);
32193
+ if (!await pathExists$7(input.sourceDependencyPath)) throw new Error(`ATS could not copy runtime dependency ${input.dependencyName} for background service bundling from ${input.sourceDependencyPath}. Run \`pnpm install\` and retry.`);
32194
32194
  const targetDependencyPath = join(input.targetNodeModulesPath, ...input.dependencyName.split("/"));
32195
32195
  await mkdir(dirname(targetDependencyPath), { recursive: true });
32196
32196
  await cp(input.sourceDependencyPath, targetDependencyPath, {
@@ -32410,14 +32410,14 @@ async function findDaemonDependencyPackageRootFromResolutionPaths(input) {
32410
32410
  if (!resolutionPaths) return null;
32411
32411
  for (const nodeModulesPath of resolutionPaths) {
32412
32412
  const candidatePackageRootPath = join(nodeModulesPath, ...input.dependencyName.split("/"));
32413
- if (await pathExists$6(join(candidatePackageRootPath, "package.json"))) return await realpath(candidatePackageRootPath);
32413
+ if (await pathExists$7(join(candidatePackageRootPath, "package.json"))) return await realpath(candidatePackageRootPath);
32414
32414
  }
32415
32415
  return null;
32416
32416
  }
32417
32417
  async function findDaemonDependencyPackageRoot(resolvedEntryPath) {
32418
32418
  let currentPath = dirname(resolvedEntryPath);
32419
32419
  while (true) {
32420
- if (await pathExists$6(join(currentPath, "package.json"))) return currentPath;
32420
+ if (await pathExists$7(join(currentPath, "package.json"))) return currentPath;
32421
32421
  const parentPath = dirname(currentPath);
32422
32422
  if (parentPath === currentPath) break;
32423
32423
  currentPath = parentPath;
@@ -32756,7 +32756,7 @@ function normalizeOptionalText$27(value) {
32756
32756
  const normalized = String(value ?? "").trim();
32757
32757
  return normalized.length > 0 ? normalized : null;
32758
32758
  }
32759
- async function pathExists$6(path) {
32759
+ async function pathExists$7(path) {
32760
32760
  try {
32761
32761
  await stat(path);
32762
32762
  return true;
@@ -32776,7 +32776,7 @@ async function resolvePreferredCliScriptPath(rawPath) {
32776
32776
  ];
32777
32777
  for (const scriptName of preferredScriptNames) for (const candidateRoot of candidateRoots) {
32778
32778
  const candidatePath = join(candidateRoot, scriptName);
32779
- if (await pathExists$6(candidatePath)) return candidatePath;
32779
+ if (await pathExists$7(candidatePath)) return candidatePath;
32780
32780
  }
32781
32781
  return null;
32782
32782
  }
@@ -37543,7 +37543,7 @@ async function runCommand$3(input) {
37543
37543
  });
37544
37544
  });
37545
37545
  }
37546
- async function pathExists$5(path) {
37546
+ async function pathExists$6(path) {
37547
37547
  try {
37548
37548
  await access(path, constants.F_OK);
37549
37549
  return true;
@@ -37810,7 +37810,7 @@ function buildSystemdManager(pathInput = {}) {
37810
37810
  });
37811
37811
  },
37812
37812
  enableAutostart: async () => {
37813
- if (!await pathExists$5(unitPath)) throw new Error("ATS Service is not installed for systemd.");
37813
+ if (!await pathExists$6(unitPath)) throw new Error("ATS Service is not installed for systemd.");
37814
37814
  await runCommand$3({
37815
37815
  command: "systemctl",
37816
37816
  args: [
@@ -37822,7 +37822,7 @@ function buildSystemdManager(pathInput = {}) {
37822
37822
  });
37823
37823
  },
37824
37824
  disableAutostart: async () => {
37825
- if (!await pathExists$5(unitPath)) throw new Error("ATS Service is not installed for systemd.");
37825
+ if (!await pathExists$6(unitPath)) throw new Error("ATS Service is not installed for systemd.");
37826
37826
  await runCommand$3({
37827
37827
  command: "systemctl",
37828
37828
  args: [
@@ -37869,7 +37869,7 @@ function buildSystemdManager(pathInput = {}) {
37869
37869
  });
37870
37870
  },
37871
37871
  status: async () => {
37872
- const installed = await pathExists$5(unitPath);
37872
+ const installed = await pathExists$6(unitPath);
37873
37873
  const activeResult = await runCommand$3({
37874
37874
  command: "systemctl",
37875
37875
  args: [
@@ -37978,7 +37978,7 @@ function buildLaunchdManager(pathInput = {}) {
37978
37978
  await rm(plistPath, { force: true });
37979
37979
  },
37980
37980
  enableAutostart: async () => {
37981
- if (!await pathExists$5(plistPath)) throw new Error("ATS Service is not installed for launchd.");
37981
+ if (!await pathExists$6(plistPath)) throw new Error("ATS Service is not installed for launchd.");
37982
37982
  await runCommand$3({
37983
37983
  command: "launchctl",
37984
37984
  args: ["enable", launchdServiceKey],
@@ -37986,7 +37986,7 @@ function buildLaunchdManager(pathInput = {}) {
37986
37986
  });
37987
37987
  },
37988
37988
  disableAutostart: async () => {
37989
- if (!await pathExists$5(plistPath)) throw new Error("ATS Service is not installed for launchd.");
37989
+ if (!await pathExists$6(plistPath)) throw new Error("ATS Service is not installed for launchd.");
37990
37990
  await runCommand$3({
37991
37991
  command: "launchctl",
37992
37992
  args: ["disable", launchdServiceKey],
@@ -38035,7 +38035,7 @@ function buildLaunchdManager(pathInput = {}) {
38035
38035
  });
38036
38036
  },
38037
38037
  status: async () => {
38038
- const installed = await pathExists$5(plistPath);
38038
+ const installed = await pathExists$6(plistPath);
38039
38039
  const printResult = await runCommand$3({
38040
38040
  command: "launchctl",
38041
38041
  args: ["print", launchdServiceKey],
@@ -38078,7 +38078,7 @@ function buildLaunchdManager(pathInput = {}) {
38078
38078
  waitUntilAbsent: async () => {
38079
38079
  await waitForCondition({
38080
38080
  until: async () => {
38081
- const [installed, printResult] = await Promise.all([pathExists$5(plistPath), runCommand$3({
38081
+ const [installed, printResult] = await Promise.all([pathExists$6(plistPath), runCommand$3({
38082
38082
  command: "launchctl",
38083
38083
  args: ["print", launchdServiceKey],
38084
38084
  throwOnError: false
@@ -39117,7 +39117,7 @@ async function inspectDaemonServiceInventory(input) {
39117
39117
  ownedProcesses,
39118
39118
  runtimeStatus
39119
39119
  });
39120
- const runtimeCommandPathExists = runtimeCommandEntryPath ? await pathExists$4(runtimeCommandEntryPath).catch(() => null) : null;
39120
+ const runtimeCommandPathExists = runtimeCommandEntryPath ? await pathExists$5(runtimeCommandEntryPath).catch(() => null) : null;
39121
39121
  const currentSourceDistFingerprint = activeBundle?.bundleFormat === "self_contained_v1" ? await resolveCurrentDaemonSourceDistFingerprint({ cliScriptPath: input.cliScriptPath }).catch(() => null) : null;
39122
39122
  const resolvedArtifact = resolveDaemonServiceArtifact({
39123
39123
  expectedVersion: input.expectedVersion,
@@ -39192,7 +39192,7 @@ async function inspectDaemonServiceInventory(input) {
39192
39192
  }
39193
39193
  async function resolveActiveBundleSourceAvailability(activeBundle) {
39194
39194
  if (activeBundle?.bundleFormat !== "legacy_linked_v1") return null;
39195
- return await pathExists$4(activeBundle.sourcePackageRootPath).catch(() => null);
39195
+ return await pathExists$5(activeBundle.sourcePackageRootPath).catch(() => null);
39196
39196
  }
39197
39197
  function scopeServiceManagerToCurrentRoot(input) {
39198
39198
  if (!hasExplicitAtsHomeOverride()) return {
@@ -39430,7 +39430,7 @@ function buildRuntimeBundleMismatchMessage(input) {
39430
39430
  if (input.activeBundleSourceEntryPath) return `ATS Service is running from ${input.runtimeCommandEntryPath}, but neither the active service entry (${input.activeBundleEntryPath}) nor the service source entry (${input.activeBundleSourceEntryPath}) matches this runtime.`;
39431
39431
  return `ATS Service is running from ${input.runtimeCommandEntryPath}, but the active service files point at ${input.activeBundleEntryPath}.`;
39432
39432
  }
39433
- async function pathExists$4(path) {
39433
+ async function pathExists$5(path) {
39434
39434
  try {
39435
39435
  await stat(path);
39436
39436
  return true;
@@ -40632,6 +40632,13 @@ async function buildExpectedLocalComponentsManifest() {
40632
40632
  skills
40633
40633
  };
40634
40634
  }
40635
+ async function readInstalledLocalComponentsSnapshot() {
40636
+ const raw = await readFile(localComponentsSnapshotPath(), "utf8").catch(() => null);
40637
+ if (!raw) return null;
40638
+ const parsed = JSON.parse(raw);
40639
+ const result = installedLocalComponentsSnapshotSchema.safeParse(parsed);
40640
+ return result.success ? result.data : null;
40641
+ }
40635
40642
  async function writeInstalledLocalComponentsSnapshot(input) {
40636
40643
  const snapshot = {
40637
40644
  schemaVersion: LOCAL_COMPONENTS_SCHEMA_VERSION,
@@ -40774,42 +40781,79 @@ async function resolveServiceComponentState() {
40774
40781
  }
40775
40782
  }
40776
40783
  async function resolveSkillsComponentState() {
40777
- const [expected, snapshot] = await Promise.all([resolveExpectedSkillsManifest(), collectSkillsReadinessSnapshot().catch(() => null)]);
40784
+ const [installed, snapshot] = await Promise.all([resolveInstalledSkillsManifest(), collectSkillsReadinessSnapshot().catch(() => null)]);
40778
40785
  if (!snapshot) return {
40779
- installedBundleHash: null,
40786
+ installedBundleHash: installed?.bundleHash ?? null,
40780
40787
  reasonCodes: ["skills.status_unavailable"],
40781
40788
  status: "update_required",
40782
40789
  targetCount: 0
40783
40790
  };
40791
+ if (!installed) return {
40792
+ installedBundleHash: null,
40793
+ reasonCodes: ["skills.bundle_hash_unavailable"],
40794
+ status: "update_required",
40795
+ targetCount: snapshot.targetCount
40796
+ };
40784
40797
  if (snapshot.status === "action_required") return {
40785
- installedBundleHash: expected.bundleHash,
40798
+ installedBundleHash: installed.bundleHash,
40786
40799
  reasonCodes: ["skills.update_required"],
40787
40800
  status: "update_required",
40788
40801
  targetCount: snapshot.targetCount
40789
40802
  };
40790
40803
  return {
40791
- installedBundleHash: expected.bundleHash,
40804
+ installedBundleHash: installed.bundleHash,
40792
40805
  reasonCodes: snapshot.status === "no_targets" ? ["skills.no_targets"] : [],
40793
40806
  status: "ok",
40794
40807
  targetCount: snapshot.targetCount
40795
40808
  };
40796
40809
  }
40797
40810
  async function resolveExpectedSkillsManifest() {
40811
+ return await resolveBundledSkillsManifest() ?? buildUnavailableSkillsManifest();
40812
+ }
40813
+ async function resolveInstalledSkillsManifest() {
40814
+ const bundled = await resolveBundledSkillsManifest();
40815
+ if (bundled) return bundled;
40816
+ const activeBundleSource = await resolveActiveBundleSourceSkillsManifest();
40817
+ if (activeBundleSource) return activeBundleSource;
40818
+ return (await readInstalledLocalComponentsSnapshot())?.manifest.skills ?? null;
40819
+ }
40820
+ async function resolveBundledSkillsManifest() {
40798
40821
  const bundled = resolveBundledSkillsLocation();
40799
- if (!bundled) return {
40800
- bundleHash: null,
40801
- skillContractVersion: ATS_SKILLS_CONTRACT_VERSION,
40802
- skillIds: []
40803
- };
40822
+ if (!bundled) return null;
40823
+ return await buildSkillsManifestFromRoot(bundled.skillsRootDir);
40824
+ }
40825
+ async function resolveActiveBundleSourceSkillsManifest() {
40826
+ const sourcePackageRootPath = normalizeOptionalString$18((await readDaemonActiveBundleState().catch(() => null))?.sourcePackageRootPath);
40827
+ if (!sourcePackageRootPath) return null;
40828
+ const skillsRootDir = join(sourcePackageRootPath, "skills");
40829
+ if (!await pathExists$4(skillsRootDir)) return null;
40830
+ return await buildSkillsManifestFromRoot(skillsRootDir);
40831
+ }
40832
+ async function buildSkillsManifestFromRoot(skillsRootDir) {
40804
40833
  return {
40805
40834
  bundleHash: await computeDirectoryContentHash({
40806
- rootDir: bundled.skillsRootDir,
40835
+ rootDir: skillsRootDir,
40807
40836
  ignoredNames: [".ats-skill.json"]
40808
40837
  }).catch(() => null),
40809
40838
  skillContractVersion: ATS_SKILLS_CONTRACT_VERSION,
40810
40839
  skillIds: ["ats-cli"]
40811
40840
  };
40812
40841
  }
40842
+ function buildUnavailableSkillsManifest() {
40843
+ return {
40844
+ bundleHash: null,
40845
+ skillContractVersion: ATS_SKILLS_CONTRACT_VERSION,
40846
+ skillIds: []
40847
+ };
40848
+ }
40849
+ async function pathExists$4(path) {
40850
+ try {
40851
+ await access(path);
40852
+ return true;
40853
+ } catch {
40854
+ return false;
40855
+ }
40856
+ }
40813
40857
  function collectServiceUpdateReasonCodes(input) {
40814
40858
  const reasonCodes = input.anomalyCodes.filter((code) => SERVICE_COMPONENT_UPDATE_CODES.has(code));
40815
40859
  if (input.participation.kind === "outdated") reasonCodes.push("version_outdated");
@@ -105000,7 +105044,7 @@ function normalizeOptionalString(value) {
105000
105044
  return normalized.length > 0 ? normalized : null;
105001
105045
  }
105002
105046
  async function runDefaultSpaceAddMeMembership(input) {
105003
- const { runSpaceAddMeMembership } = await import("./add-me-membership-CEJEhUA0.js");
105047
+ const { runSpaceAddMeMembership } = await import("./add-me-membership-DTPIQzFt.js");
105004
105048
  return await runSpaceAddMeMembership(input);
105005
105049
  }
105006
105050