agent-transport-system 0.7.71 → 0.7.73
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.
- package/dist/{api-client-foundation-BLE9dEKS.js → api-client-foundation-y1eJVk0v.js} +1 -1
- package/dist/ats-dev.js +2 -2
- package/dist/ats.js +26 -8
- package/dist/ats.js.map +1 -1
- package/dist/{auth-session-_2PcSk4Z.js → auth-session-C6wIrK9k.js} +1 -1
- package/dist/{base-url-Bog7qBrI.js → base-url-B5k94aeg.js} +2 -2
- package/dist/{base-url-Bog7qBrI.js.map → base-url-B5k94aeg.js.map} +1 -1
- package/dist/{daemon-runtime-lease-BDZaPb_s.js → daemon-runtime-lease-DIZn-px9.js} +1 -1
- package/dist/{dist-NqgPO0PZ.js → dist-BpWyHB9n.js} +11 -3
- package/dist/{dist-NqgPO0PZ.js.map → dist-BpWyHB9n.js.map} +1 -1
- package/dist/{dist-lGy6pOEQ.js → dist-R-qZJPWh.js} +1 -1
- package/package.json +1 -1
- package/skills/ats-cli/SKILL.md +16 -3
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-
|
|
4
|
-
import "./dist-
|
|
3
|
+
import { t as DEV_LOCAL_GATEWAY_BASE_URL } from "./base-url-B5k94aeg.js";
|
|
4
|
+
import "./dist-BpWyHB9n.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 updateConfiguredOnboardingConfig, S as updateConfiguredDeviceRuntimeState, T as updateConfiguredStartV1OnboardingState, _ as getConfiguredViewCustomization, a as resolveBaseUrl, b as setConfiguredBaseUrl, c as resolveExplicitGatewayUrlOrThrow, d as createDefaultRuntimeAgentControllerSettings, f as getConfiguredDaemonDispatchLimits, g as getConfiguredStartV1OnboardingState, 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 getRuntimeConfigReadHealth, w as updateConfiguredSkillsConfig, x as setConfiguredSkillsConfig, y as resolveRuntimeSkillsCustomTargetId } from "./base-url-
|
|
4
|
-
import { $ as
|
|
3
|
+
import { C as updateConfiguredOnboardingConfig, S as updateConfiguredDeviceRuntimeState, T as updateConfiguredStartV1OnboardingState, _ as getConfiguredViewCustomization, a as resolveBaseUrl, b as setConfiguredBaseUrl, c as resolveExplicitGatewayUrlOrThrow, d as createDefaultRuntimeAgentControllerSettings, f as getConfiguredDaemonDispatchLimits, g as getConfiguredStartV1OnboardingState, 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 getRuntimeConfigReadHealth, w as updateConfiguredSkillsConfig, x as setConfiguredSkillsConfig, y as resolveRuntimeSkillsCustomTargetId } from "./base-url-B5k94aeg.js";
|
|
4
|
+
import { $ as getSpaceDispatchLookupResponseSchema, $n as canonicalizeBuiltinAgentControllerRef, $t as spaceViewerMembershipResponseSchema, A as dispatchBriefSchema, An as DISPATCH_ACTIVITY_FAILED_PURPOSE, Ar as resolveMessageEnvelopeTargetField, At as postSpaceMembersBodySchema, B as gatewayErrorCodeSchema, Bn as SPACE_MENTION_REJECT_NOTICE_PURPOSE, Bt as resolveStartHandoffBodySchema, C as createStartSessionBodySchema, Cn as AGENT_REPLY_PREVIEW_PURPOSE, Cr as normalizeOptionalWorkingDirectory, Ct as observabilityWakeTraceSelectorSchema, D as daemonRouteObservationResponseSchema, Dn as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, Dr as profileWorkspaceModeSchema, Dt as patchStartSessionBodySchema, E as daemonRouteCatalogCacheSchema, En as CONVERSATION_CONTINUITY_WARNING_PURPOSE, Er as parseOptionalClientMessageId, Et as patchSpaceContractResponseSchema, F as forgetCurrentComputerResponseSchema, Fn as MAX_SIGNAL_REPLY_TO_PREVIEW_LENGTH, Fr as runtimeCoordinatorExecutionTokenEnvelopeSchema, Ft as prepareSessionStreamServerFrameSchema, G as getAgentExecutionReadinessResponseSchema, Gn as atsdControlPlaneRequestSchema, Gt as spaceBootstrapResponseSchema, H as getActiveSpaceWakeProgressResponseSchema, Hn as SPACE_UPDATES_MAX_LIMIT, Ht as serverErrorFrameSchema, I as formatLocalComponentsSummaryDescription, In as MAX_VISITED_PROFILE_IDS, Ir as sanitizeSignalTextPreview, It as projectObservabilityWakeCorrelation, J as getLocalRuntimeExpectedRoutesResponseSchema, Jn as atsdTaskResultOpenClawGatewayVisibilityStatusSchema, Jt as spaceIdentityDirectorySchema, K as getAgentProfilePrimaryBindingResponseSchema, Kn as atsdControlPlaneResponseSchema, Kt as spaceCreatorSchema, L as formatLocalComponentsSummaryLabel, Ln as MESSAGE_MENTION_TYPE_VALUES, Lt as projectSpaceDispatchTraceFinalVisibleOutcome, M as ensureAgentProfilePrimaryBindingResponseSchema, Mn as LEGACY_RUNTIME_DISPATCH_POLICY, Mr as resolveSpaceMentionLabels, Mt as postSpaceThreadSignalBodySchema, N as entryBriefSchema, Nn as MAX_PROFILE_ID_LENGTH, Nt as postSpaceThreadSignalResponseSchema, O as daemonRuntimeLeaseSchema, On as DAEMON_HUB_SCHEMA_VERSION, Or as providerDispatchRuntimeContextSchema, Ot as postNormalMessageBodySchema, P as forgetComputerResponseSchema, Pn as MAX_PROFILE_WORKING_DIRECTORY_LENGTH, Pt as prepareSessionResponseSchema, Q as getSpaceContractResponseSchema, Qn as canonicalizeAgentControllerRef, Qt as spaceMetaSchema, R as formatLocalSetupActionDescription, Rn as SPACE_MEMBER_JOIN_NOTICE_PURPOSE, Rt as removeSpaceMembersResponseSchema, S as createSpaceThreadResponseSchema, Sn as AGENT_REPLY_PREVIEW_END_PURPOSE, Sr as normalizeMessageEnvelope, St as notifyAgentProfileRouteCatalogChangedResponseSchema, T as currentLocalRuntimeReplyReadinessResponseSchema, Tn as ATSD_TASK_RESULT_SCHEMA_VERSION, Tr as parseAgentControllerRef$1, Tt as patchSpaceContractBodySchema, U as getAgentExecutionReadinessBatchBodySchema, Un as atsRuntimeProfileIdSchema, Ut as setLocalRuntimeDisplayNameBodySchema, V as gatewayErrorEnvelopeSchema, Vn as SPACE_PASSWORD_MIN_LENGTH, Vt as resolveStartHandoffResponseSchema, W as getAgentExecutionReadinessBatchResponseSchema, Wn as atsSpaceEgressActionSchema, Wt as signalEnvelopeSchema, X as getPrepareReadinessQuerySchema, Xn as buildAgentControllerConversationRef, Xt as spaceMemberDirectorySchema, Y as getModelCatalogResponseSchema, Yn as atsdTaskResultPayloadSchema, Yt as spaceMemberDirectoryEntrySchema, Z as getPrepareReadinessResponseSchema, Zn as buildAgentControllerRoutingKey, Zt as spaceMembersSnapshotSchema, _ as createSpaceBodySchema, _n as writeCurrentDeviceObservedMetadataResponseSchema, _r as daemonStreamFrameSchema, _t as localRuntimesResponseSchema, a as DAEMON_ROUTE_CATALOG_CACHE_SCHEMA_VERSION, an as startSessionSpaceChoiceResponseSchema, ar as daemonHubDispatchLifecycleRequestSchema, at as getSpaceWakeProgressResponseSchema, b as createSpaceResponseSchema, bn as AGENT_REPLYING_END_PURPOSE, br as normalizeBuiltinAgentControllerId, bt as normalizeSpaceCursorPatch, c as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, cn as submitRuntimeAgentControllerReportsBodySchema, cr as daemonHubDispatchRuntimeEvidenceRequestSchema, ct as installedLocalComponentsSnapshotSchema, d as agentProfileBindingRouteParamsSchema, dn as submitRuntimeProviderConversationProofsResponseSchema, dr as daemonHubRegisterSessionRequestSchema, dt as listSpaceThreadEventsResponseSchema, en as startDeviceProjectionSchema, er as collectCanonicalMentionTextFragments, et as getSpaceDispatchResultResponseSchema, f as atsProfileIdSchema, fn as submitRuntimeRegistrationBodySchema, fr as daemonHubRegisterSessionResponseSchema, ft as listSpaceThreadSignalsResponseSchema, g as continuitySchema, gn as writeCurrentDeviceObservedMetadataBodySchema, gr as daemonServiceLaneSchema, gt as localRuntimesQuerySchema, h as cliJsonOutputEnvelopeSchema, hn as upsertProfileSpaceHistoryResponseSchema, hr as daemonServiceContractSchema, ht as localRuntimeEnrollmentResponseSchema, i as DAEMON_ROUTE_CATALOG_CACHE_SCHEMA_NAME, in as startSessionSpaceChoiceBodySchema, ir as daemonHubDeliveryExecutionIdentitySchema, it as getSpaceUpdatesResponseSchema, j as ensureAgentProfilePrimaryBindingBodySchema, jn as DISPATCH_ACTIVITY_RETRYING_PURPOSE, jr as resolveSingleSpaceMentionLabels, jt as postSpaceMembersResponseSchema, k as deleteSpaceResponseSchema, kn as DISPATCH_ACTIVITY_DISPATCHING_PURPOSE, kr as resolveBuiltinAgentControllerConversationKind, kt as postNormalMessageResponseSchema, l as accountSpaceIndexResponseSchema, ln as submitRuntimeAgentControllerReportsResponseSchema, lr as daemonHubHeartbeatRequestSchema, lt as leaveSpaceResponseSchema, m as catchupResponseSchema, mn as updateAgentProfilePrimaryBindingModelSelectionBodySchema, mr as daemonHubSubmitTaskResultRequestSchema, mt as localRuntimeEnrollmentBodySchema, n as resolveBuiltinAgentControllerBrand, nn as startSessionProgressSchema, nr as createDaemonRouteObservationSummary, nt as getSpaceStatusResponseSchema, o as LOCAL_COMPONENTS_SCHEMA_VERSION, on as startSessionWithTokenResponseSchema, or as daemonHubDispatchPreviewEndRequestSchema, ot as getSpaceWakeTraceWaterfallResponseSchema, p as atsRequestContextSchema, pn as submitRuntimeRegistrationResponseSchema, pr as daemonHubRouteCatalogChangedFramePayloadSchema, pt as listSpaceThreadsResponseSchema, q as getLocalRuntimeExpectedRoutesQuerySchema, qn as atsdTaskResultEnvelopeWriteSchema, qt as spaceDispatchTraceResponseSchema, r as resolveMappedPublicAgentFailureReason, rn as startSessionResponseSchema, rr as daemonHubDeliverDispatchRequestSchema, rt as getSpaceThreadResponseSchema, s as PREPARE_SESSION_STREAM_PROTOCOL_VERSION, sn as structuredGuidePayloadFromInputSchema, sr as daemonHubDispatchPreviewRequestSchema, st as incomingServerMessageSchema, t as CODEX_UPGRADE_REQUIRED_REASON, tn as startProfileReadinessSummarySchema, tr as conversationExecutionStateSchema, tt as getSpaceMessageDetailsResponseSchema, u as agentExecutionReadinessRouteParamsSchema, un as submitRuntimeProviderConversationProofsBodySchema, ur as daemonHubHeartbeatResponseSchema, ut as listProfileSpaceHistoryResponseSchema, v as createSpaceDiagnosticReportBodySchema, vn as writeSetupTokenLocalRuntimeObservedMetadataBodySchema, vr as formatCanonicalMentionLiteral, vt as modelCatalogSchema, w as currentDeviceTargetResponseSchema, wn as ATSD_CONTROL_PLANE_SCHEMA_VERSION, wr as normalizeSpacePasswordText, wt as patchProfileSpaceHistoryStatusResponseSchema, x as createSpaceThreadBodySchema, xn as AGENT_REPLYING_PURPOSE, xr as normalizeKnownBuiltinAgentControllerId, xt as notifyAgentProfileRouteCatalogChangedBodySchema, y as createSpaceDiagnosticReportResponseSchema, yn as writeSetupTokenLocalRuntimeObservedMetadataResponseSchema, yr as getSpaceMessageAddressingRelationSupportForTargetKind, yt as normalizeListSignalsReadQuerySemantics, z as formatLocalSetupActionLabel, zn as SPACE_MEMBER_REMOVE_NOTICE_PURPOSE, zt as resolveSpaceDispatchTraceRootCause } from "./dist-BpWyHB9n.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";
|
|
@@ -30,7 +30,7 @@ import { Box, Container, Editor, Key, ProcessTerminal, TUI, Text, getEditorKeybi
|
|
|
30
30
|
import { ReadStream, WriteStream } from "node:tty";
|
|
31
31
|
|
|
32
32
|
//#region package.json
|
|
33
|
-
var version = "0.7.
|
|
33
|
+
var version = "0.7.73";
|
|
34
34
|
var package_default = {
|
|
35
35
|
$schema: "https://www.schemastore.org/package.json",
|
|
36
36
|
name: "agent-transport-system",
|
|
@@ -3907,7 +3907,7 @@ function resolveAtsAccountContext(input) {
|
|
|
3907
3907
|
};
|
|
3908
3908
|
}
|
|
3909
3909
|
async function resolveCurrentAtsAccountContext() {
|
|
3910
|
-
const { getAuthSessionMetadata } = await import("./auth-session-
|
|
3910
|
+
const { getAuthSessionMetadata } = await import("./auth-session-C6wIrK9k.js");
|
|
3911
3911
|
return resolveAtsAccountContext({ session: await getAuthSessionMetadata().catch(() => null) });
|
|
3912
3912
|
}
|
|
3913
3913
|
function resolveHostKey(baseUrl) {
|
|
@@ -4348,7 +4348,7 @@ async function setDaemonServiceRuntimeState(state, pathInput = {}) {
|
|
|
4348
4348
|
await writeDaemonServiceRuntimeState(state, pathInput);
|
|
4349
4349
|
}
|
|
4350
4350
|
async function clearDaemonServiceRuntimeState(pathInput = {}) {
|
|
4351
|
-
const { clearDaemonRuntimeLease } = await import("./daemon-runtime-lease-
|
|
4351
|
+
const { clearDaemonRuntimeLease } = await import("./daemon-runtime-lease-DIZn-px9.js");
|
|
4352
4352
|
await Promise.all([rm(daemonServiceRuntimeStatePath(pathInput), { force: true }), clearDaemonRuntimeLease(pathInput)]);
|
|
4353
4353
|
}
|
|
4354
4354
|
async function withDaemonServiceRunLock(callback, meta = {
|
|
@@ -25485,9 +25485,9 @@ function createModelCatalogReadSession(input) {
|
|
|
25485
25485
|
async function readModelCatalogOnce(baseUrl) {
|
|
25486
25486
|
try {
|
|
25487
25487
|
const [apiClient, baseUrlModule, clientFoundationModule] = await Promise.all([
|
|
25488
|
-
import("./dist-
|
|
25489
|
-
import("./base-url-
|
|
25490
|
-
import("./api-client-foundation-
|
|
25488
|
+
import("./dist-R-qZJPWh.js"),
|
|
25489
|
+
import("./base-url-B5k94aeg.js").then((n) => n.n),
|
|
25490
|
+
import("./api-client-foundation-y1eJVk0v.js")
|
|
25491
25491
|
]);
|
|
25492
25492
|
if (typeof apiClient.createConfigApi !== "function") throw new Error("config api client is unavailable");
|
|
25493
25493
|
const resolvedBaseUrl = baseUrl ?? await baseUrlModule.resolveBaseUrl();
|
|
@@ -94623,6 +94623,18 @@ function resolveTerminalStepFailureReasonCode(input) {
|
|
|
94623
94623
|
function findStep(snapshot, stepId) {
|
|
94624
94624
|
return snapshot.steps.find((step) => step.id === stepId) ?? null;
|
|
94625
94625
|
}
|
|
94626
|
+
function buildPrepareSessionClientHelloFrame(input) {
|
|
94627
|
+
return {
|
|
94628
|
+
type: "client.hello",
|
|
94629
|
+
payload: {
|
|
94630
|
+
cliVersion: input.cliVersion,
|
|
94631
|
+
protocolVersion: PREPARE_SESSION_STREAM_PROTOCOL_VERSION
|
|
94632
|
+
}
|
|
94633
|
+
};
|
|
94634
|
+
}
|
|
94635
|
+
function isLegacyPrepareSessionClientHelloRejection(input) {
|
|
94636
|
+
return input.code === "schema.invalid" && input.message === "Invalid prepare session frame.";
|
|
94637
|
+
}
|
|
94626
94638
|
async function waitForSnapshotWithProgress(input) {
|
|
94627
94639
|
const indicator = startHumanWaitingIndicator(input.input, input.waitingMessage);
|
|
94628
94640
|
try {
|
|
@@ -94638,6 +94650,7 @@ async function connectPrepareSessionStream(input) {
|
|
|
94638
94650
|
const rejectWaiters = (error) => {
|
|
94639
94651
|
for (const waiter of waiters.splice(0)) waiter.reject(error);
|
|
94640
94652
|
};
|
|
94653
|
+
let stateWriteSent = false;
|
|
94641
94654
|
ws.onMessage((raw) => {
|
|
94642
94655
|
const frame = parseServerFrame(raw);
|
|
94643
94656
|
if (!frame) return;
|
|
@@ -94647,6 +94660,7 @@ async function connectPrepareSessionStream(input) {
|
|
|
94647
94660
|
return;
|
|
94648
94661
|
}
|
|
94649
94662
|
if (frame.type === "server.error") {
|
|
94663
|
+
if (!stateWriteSent && isLegacyPrepareSessionClientHelloRejection(frame.payload)) return;
|
|
94650
94664
|
rejectWaiters(errorFromPrepareSessionServerError(frame.payload));
|
|
94651
94665
|
return;
|
|
94652
94666
|
}
|
|
@@ -94665,6 +94679,7 @@ async function connectPrepareSessionStream(input) {
|
|
|
94665
94679
|
ws.onError((error) => {
|
|
94666
94680
|
rejectWaiters(new PrepareSessionConnectionInterruptedError(null, error instanceof Error ? error.message : "connection failed"));
|
|
94667
94681
|
});
|
|
94682
|
+
ws.send(JSON.stringify(buildPrepareSessionClientHelloFrame({ cliVersion: getCliVersionInfo().version })));
|
|
94668
94683
|
return {
|
|
94669
94684
|
close: () => ws.close(1e3, "prepare_complete"),
|
|
94670
94685
|
getLatestSnapshot: () => latestSnapshot,
|
|
@@ -94681,6 +94696,7 @@ async function connectPrepareSessionStream(input) {
|
|
|
94681
94696
|
},
|
|
94682
94697
|
writeTerminalStep: (step) => {
|
|
94683
94698
|
if (!latestSnapshot) throw new Error("Setup session snapshot is not available yet.");
|
|
94699
|
+
stateWriteSent = true;
|
|
94684
94700
|
ws.send(JSON.stringify({
|
|
94685
94701
|
type: "terminal.step.write",
|
|
94686
94702
|
payload: {
|
|
@@ -94700,6 +94716,7 @@ async function connectPrepareSessionStream(input) {
|
|
|
94700
94716
|
},
|
|
94701
94717
|
writeTerminalLocalAgentCatalog: (catalog) => {
|
|
94702
94718
|
if (!latestSnapshot) throw new Error("Setup session snapshot is not available yet.");
|
|
94719
|
+
stateWriteSent = true;
|
|
94703
94720
|
ws.send(JSON.stringify({
|
|
94704
94721
|
type: "terminal.local_agent_catalog.write",
|
|
94705
94722
|
payload: {
|
|
@@ -94711,6 +94728,7 @@ async function connectPrepareSessionStream(input) {
|
|
|
94711
94728
|
},
|
|
94712
94729
|
writeTerminalAgentSelection: (selection) => {
|
|
94713
94730
|
if (!latestSnapshot) throw new Error("Setup session snapshot is not available yet.");
|
|
94731
|
+
stateWriteSent = true;
|
|
94714
94732
|
ws.send(JSON.stringify({
|
|
94715
94733
|
type: "terminal.agent_selection.write",
|
|
94716
94734
|
payload: {
|