@agent-team-foundation/first-tree-hub 0.12.6 → 0.12.8

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,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import "../observability-BAScT_5S-BcW9HgkG.mjs";
3
- import { $ as formatStaleReason, A as checkDocker, B as isServiceSupported, C as createApiNameResolver, D as checkBackgroundService, E as checkAgentConfigs, F as checkWebSocket, H as restartClientService, I as printResults, J as stopPostgres, L as reconcileAgentConfigs, M as checkServerConfig, N as checkServerHealth, O as checkClientConfig, P as checkServerReachable, Q as findStaleAliases, R as getClientServiceStatus, S as runHomeMigration, T as runMigrations, U as startClientService, W as stopClientService, X as handleClientOrgMismatch, Y as ClientRuntime, _ as formatCheckReport, a as declineUpdate, at as fail, b as onboardCreate, c as detectInstallMode, ct as ClientUserMismatchError, d as startServer, dt as SessionRegistry, et as removeLocalAgent, f as reconcileLocalRuntimeProviders, ft as cleanWorkspaces, g as promptMissingFields, h as promptAddAgent, ht as configureClientLoggerForService, i as createExecuteUpdate, it as resolveSenderName, j as checkNodeVersion, k as checkDatabase, l as fetchLatestVersion, lt as FirstTreeHubSDK, m as isInteractive, mt as applyClientLoggerConfig, o as promptUpdate, ot as success, p as uploadClientCapabilities, pt as probeCapabilities, r as registerSaaSConnectCommand, rt as resolveReplyToFromEnv, s as PACKAGE_NAME, st as ClientOrgMismatchError, tt as createOwner, u as installGlobalLatest, ut as SdkError, v as loadOnboardState, w as migrateLocalAgentDirs, x as saveOnboardState, y as onboardCheck, z as installClientService } from "../saas-connect-RCN8zL5e.mjs";
3
+ import { $ as formatStaleReason, A as checkDocker, B as isServiceSupported, C as createApiNameResolver, D as checkBackgroundService, E as checkAgentConfigs, F as checkWebSocket, H as restartClientService, I as printResults, J as stopPostgres, L as reconcileAgentConfigs, M as checkServerConfig, N as checkServerHealth, O as checkClientConfig, P as checkServerReachable, Q as findStaleAliases, R as getClientServiceStatus, S as runHomeMigration, T as runMigrations, U as startClientService, W as stopClientService, X as handleClientOrgMismatch, Y as ClientRuntime, _ as formatCheckReport, a as declineUpdate, at as fail, b as onboardCreate, c as detectInstallMode, ct as ClientUserMismatchError, d as startServer, dt as SessionRegistry, et as removeLocalAgent, f as reconcileLocalRuntimeProviders, ft as cleanWorkspaces, g as promptMissingFields, h as promptAddAgent, ht as configureClientLoggerForService, i as createExecuteUpdate, it as resolveSenderName, j as checkNodeVersion, k as checkDatabase, l as fetchLatestVersion, lt as FirstTreeHubSDK, m as isInteractive, mt as applyClientLoggerConfig, o as promptUpdate, ot as success, p as uploadClientCapabilities, pt as probeCapabilities, r as registerSaaSConnectCommand, rt as resolveReplyToFromEnv, s as PACKAGE_NAME, st as ClientOrgMismatchError, tt as createOwner, u as installGlobalLatest, ut as SdkError, v as loadOnboardState, w as migrateLocalAgentDirs, x as saveOnboardState, y as onboardCheck, z as installClientService } from "../saas-connect-CLcon-De.mjs";
4
4
  import "../logger-core-BTmvdflj-DjW8FM4T.mjs";
5
5
  import { C as resetConfigMeta, E as setConfigValue, S as resetConfig, T as serverConfigSchema, _ as getConfigValue, a as ensureFreshAdminToken, c as resolveServerUrl, d as DEFAULT_CONFIG_DIR, f as DEFAULT_DATA_DIR, h as clientConfigSchema, i as ensureFreshAccessToken, l as saveAgentConfig, m as agentConfigSchema, o as loadCredentials, p as DEFAULT_HOME_DIR, u as saveCredentials, v as initConfig, w as resolveConfigReadonly, x as readConfigFile, y as loadAgents } from "../bootstrap-BCZC1ki6.mjs";
6
6
  import { a as print, n as CLI_USER_AGENT, o as setJsonMode, r as COMMAND_VERSION, t as cliFetch } from "../cli-fetch--tiwKm5S.mjs";
7
- import "../dist-xP6NpdMp.mjs";
8
- import { n as bindFeishuUser, t as bindFeishuBot } from "../feishu-CsfadBKa.mjs";
7
+ import "../dist-CnjqakXS.mjs";
8
+ import { n as bindFeishuUser, t as bindFeishuBot } from "../feishu-DrnBbl8T.mjs";
9
9
  import "../errors-CF5evtJt-B0NTIVPt.mjs";
10
10
  import "../src-DNBS5Yjj.mjs";
11
- import "../client-B89AKi3Q-DAyGdQSq.mjs";
11
+ import "../client-bR8nwHaV-OxnjyKOk.mjs";
12
12
  import "../invitation-Bg0TRiyx-BsZH4GCS.mjs";
13
13
  import { join } from "node:path";
14
14
  import { existsSync, mkdirSync, readFileSync, readdirSync } from "node:fs";
@@ -1131,6 +1131,15 @@ function registerConnectCommand(parent) {
1131
1131
  }
1132
1132
  //#endregion
1133
1133
  //#region src/commands/client.ts
1134
+ function isWslDbusOvermount(reason) {
1135
+ if (process.platform !== "linux") return false;
1136
+ if (!/failed to connect to bus/i.test(reason)) return false;
1137
+ try {
1138
+ return /microsoft/i.test(readFileSync("/proc/version", "utf8"));
1139
+ } catch {
1140
+ return false;
1141
+ }
1142
+ }
1134
1143
  function registerClientCommands(program) {
1135
1144
  const client = program.command("client").description("Client runtime — connect agents to the server");
1136
1145
  registerConnectCommand(client);
@@ -1149,6 +1158,32 @@ function registerClientCommands(program) {
1149
1158
  const res = startClientService();
1150
1159
  if (!res.ok) {
1151
1160
  print.line(`\n Failed to start service: ${res.reason}\n`);
1161
+ if (isWslDbusOvermount(res.reason)) {
1162
+ print.line("\n");
1163
+ print.line(" WSL2 detected — WSLg has over-mounted /run/user/$UID and is hiding\n");
1164
+ print.line(" the user dbus socket. The systemd user manager is fine; the bus\n");
1165
+ print.line(" socket just isn't reachable from your shell.\n\n");
1166
+ print.line(" Quick fix (one-shot, lost on reboot):\n");
1167
+ print.line(" sudo umount -l /run/user/$(id -u)\n\n");
1168
+ print.line(" Permanent fix — install a boot-time helper, then update wsl.conf:\n\n");
1169
+ print.line(" sudo tee /usr/local/bin/strip-wslg-overlay.sh >/dev/null <<'EOF'\n");
1170
+ print.line(" #!/bin/sh\n");
1171
+ print.line(" for d in /run/user/*; do\n");
1172
+ print.line(" uid=$(basename \"$d\")\n");
1173
+ print.line(" case \"$uid\" in \"\"|*[!0-9]*) continue ;; esac\n");
1174
+ print.line(" for i in $(seq 1 30); do\n");
1175
+ print.line(" if mount | grep -q \"tmpfs on $d .*mode=755\"; then\n");
1176
+ print.line(" umount -l \"$d\"; break\n");
1177
+ print.line(" fi\n");
1178
+ print.line(" sleep 1\n");
1179
+ print.line(" done\n");
1180
+ print.line(" done\n");
1181
+ print.line(" EOF\n");
1182
+ print.line(" sudo chmod +x /usr/local/bin/strip-wslg-overlay.sh\n\n");
1183
+ print.line(" Then add to /etc/wsl.conf under [boot]:\n");
1184
+ print.line(" command=/usr/local/bin/strip-wslg-overlay.sh\n\n");
1185
+ print.line(" Then run `wsl --shutdown` in Windows PowerShell and reopen the shell.\n");
1186
+ }
1152
1187
  print.line(" Try `--foreground` to run inline instead.\n\n");
1153
1188
  process.exit(1);
1154
1189
  }
@@ -1,7 +1,7 @@
1
1
  import "./observability-BAScT_5S-BcW9HgkG.mjs";
2
2
  import "./logger-core-BTmvdflj-DjW8FM4T.mjs";
3
- import "./dist-xP6NpdMp.mjs";
3
+ import "./dist-CnjqakXS.mjs";
4
4
  import "./errors-CF5evtJt-B0NTIVPt.mjs";
5
5
  import "./src-DNBS5Yjj.mjs";
6
- import { Y as listMyPinnedAgents } from "./client-B89AKi3Q-DAyGdQSq.mjs";
6
+ import { J as listMyPinnedAgents } from "./client-bR8nwHaV-OxnjyKOk.mjs";
7
7
  export { listMyPinnedAgents };