first-tree-staging 0.5.7-staging.409.1 → 0.5.7-staging.413.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,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { $ as canonicalizeResourceRepoUrl, At as initConfig, B as printResults, Bt as FirstTreeHubSDK, Dt as defaultDataDir, Et as defaultConfigDir, F as checkBackgroundService, Ft as setConfigValue, G as isServiceSupported, Gt as discoverClaudeCodeSkills, H as runtimeProviderChecks, Ht as SessionRegistry, I as checkClientConfig, It as channelConfig, J as restartClientService, Jt as setCliBinding, K as isServiceUnitDriftDetected, Kt as probeCapabilities, L as checkNodeVersion, Lt as resetConfig, M as createApiNameResolver, Mt as readConfigFile, N as migrateLocalAgentDirs, Nt as resetConfigMeta, Ot as defaultHome, P as checkAgentConfigs, Pt as resolveConfigReadonly, Q as ClientRuntime, R as checkServerReachable, Rt as ClientOrgMismatchError, St as setJsonMode, Tt as clientConfigSchema, U as getClientServiceStatus, Ut as buildMessageDocumentSnapshots, V as reconcileAgentConfigs, Vt as SdkError, W as installClientService, Wt as cleanWorkspaces, X as stopClientService, Xt as configureClientLoggerForService, Y as startClientService, Yt as applyClientLoggerConfig, _ as uploadClientCapabilities, _t as formatStaleReason, a as declineUpdate, b as promptMissingFields, bt as isJsonMode, c as PACKAGE_NAME, ct as loadCredentials, d as fetchServerCommandVersion, dt as saveAgentConfig, et as documentContextSchema, f as installGlobalLatest, ft as saveCredentials, g as uploadAgentSkills, gt as findStaleAliases, h as reconcileLocalRuntimeProviders, ht as COMMAND_VERSION, i as createExecuteUpdate, jt as loadAgents, kt as getConfigValue, l as detectInstallMode, m as listPinnedAgents, mt as CLI_USER_AGENT, n as decodeJwtPayload, nt as handleClientOrgMismatch, o as promptUpdate, ot as ensureFreshAccessToken, p as installGlobalSpec, pt as cliFetch, qt as reprobeOnReconnect, r as deriveHubUrlFromToken, rt as rotateClientIdWithBackup, s as refreshServerUpdateTarget, st as ensureFreshAdminToken, t as HubUrlDerivationError, tt as findAssembledBriefingFingerprint, u as fetchLatestVersion, ut as resolveServerUrl, vt as removeLocalAgent, wt as agentConfigSchema, xt as print, y as promptAddAgent, z as checkWebSocket, zt as ClientUserMismatchError } from "../connect-token-b_j7YZs6.mjs";
2
+ import { $ as canonicalizeResourceRepoUrl, At as initConfig, B as printResults, Bt as FirstTreeHubSDK, Dt as defaultDataDir, Et as defaultConfigDir, F as checkBackgroundService, Ft as setConfigValue, G as isServiceSupported, Gt as discoverClaudeCodeSkills, H as runtimeProviderChecks, Ht as SessionRegistry, I as checkClientConfig, It as channelConfig, J as restartClientService, Jt as setCliBinding, K as isServiceUnitDriftDetected, Kt as probeCapabilities, L as checkNodeVersion, Lt as resetConfig, M as createApiNameResolver, Mt as readConfigFile, N as migrateLocalAgentDirs, Nt as resetConfigMeta, Ot as defaultHome, P as checkAgentConfigs, Pt as resolveConfigReadonly, Q as ClientRuntime, R as checkServerReachable, Rt as ClientOrgMismatchError, St as setJsonMode, Tt as clientConfigSchema, U as getClientServiceStatus, Ut as buildMessageDocumentSnapshots, V as reconcileAgentConfigs, Vt as SdkError, W as installClientService, Wt as cleanWorkspaces, X as stopClientService, Xt as configureClientLoggerForService, Y as startClientService, Yt as applyClientLoggerConfig, _ as uploadClientCapabilities, _t as formatStaleReason, a as declineUpdate, b as promptMissingFields, bt as isJsonMode, c as PACKAGE_NAME, ct as loadCredentials, d as fetchServerCommandVersion, dt as saveAgentConfig, et as documentContextSchema, f as installGlobalLatest, ft as saveCredentials, g as uploadAgentSkills, gt as findStaleAliases, h as reconcileLocalRuntimeProviders, ht as COMMAND_VERSION, i as createExecuteUpdate, jt as loadAgents, kt as getConfigValue, l as detectInstallMode, m as listPinnedAgents, mt as CLI_USER_AGENT, n as decodeJwtPayload, nt as handleClientOrgMismatch, o as promptUpdate, ot as ensureFreshAccessToken, p as installGlobalSpec, pt as cliFetch, qt as reprobeOnReconnect, r as deriveHubUrlFromToken, rt as rotateClientIdWithBackup, s as refreshServerUpdateTarget, st as ensureFreshAdminToken, t as HubUrlDerivationError, tt as findAssembledBriefingFingerprint, u as fetchLatestVersion, ut as resolveServerUrl, vt as removeLocalAgent, wt as agentConfigSchema, xt as print, y as promptAddAgent, z as checkWebSocket, zt as ClientUserMismatchError } from "../connect-token-CBfV_I1k.mjs";
3
3
  import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
4
4
  import { existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, realpathSync, statSync, unlinkSync } from "node:fs";
5
5
  import "node:crypto";
@@ -831,7 +831,11 @@ function registerAgentResetCommand(agent) {
831
831
  * needs to extend the loop, not duplicate the boilerplate.
832
832
  */
833
833
  function registerAgentSessionControlCommands(sessionCmd) {
834
- for (const [cmd, desc] of [["suspend", "Suspend a session"], ["terminate", "Terminate a session"]]) sessionCmd.command(`${cmd} <agent-name> <chat-id>`).description(desc).option("--server <url>", "First Tree server URL").action(async (agentName, chatId, options) => {
834
+ for (const [cmd, desc] of [
835
+ ["suspend", "Suspend a session"],
836
+ ["resume", "Resume a suspended session"],
837
+ ["terminate", "Terminate a session"]
838
+ ]) sessionCmd.command(`${cmd} <agent-name> <chat-id>`).description(desc).option("--server <url>", "First Tree server URL").action(async (agentName, chatId, options) => {
835
839
  try {
836
840
  const serverUrl = resolveServerUrl(options.server);
837
841
  const adminToken = await ensureFreshAccessToken();