@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.
- package/dist/cli/index.mjs +39 -4
- package/dist/{client-GOgUQxVe-Dqk9oZf9.mjs → client-DNEtPEBu-BtHkUya2.mjs} +2 -2
- package/dist/{client-B89AKi3Q-DAyGdQSq.mjs → client-bR8nwHaV-OxnjyKOk.mjs} +316 -277
- package/dist/{dist-xP6NpdMp.mjs → dist-CnjqakXS.mjs} +46 -12
- package/dist/drizzle/0038_chat_membership_user_state.sql +223 -0
- package/dist/drizzle/0039_drop_chat_participants_subscriptions.sql +26 -0
- package/dist/drizzle/0040_chat_user_state_engagement.sql +24 -0
- package/dist/drizzle/meta/_journal.json +21 -0
- package/dist/{feishu-CsfadBKa.mjs → feishu-DrnBbl8T.mjs} +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{invitation-C299fxkP-DFBBuUcj.mjs → invitation-C299fxkP-KKslbta2.mjs} +1 -1
- package/dist/{saas-connect-RCN8zL5e.mjs → saas-connect-CLcon-De.mjs} +308 -135
- package/dist/web/assets/index-BPMrSv_A.js +11 -0
- package/dist/web/assets/{index-BdW7weV1.css → index-DxAYxUpz.css} +1 -1
- package/dist/web/assets/index-ntmzuk5X.js +421 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/index-BHNq2Nl1.js +0 -16
- package/dist/web/assets/index-BaLvRwAX.js +0 -416
package/dist/cli/index.mjs
CHANGED
|
@@ -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-
|
|
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-
|
|
8
|
-
import { n as bindFeishuUser, t as bindFeishuBot } from "../feishu-
|
|
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-
|
|
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-
|
|
3
|
+
import "./dist-CnjqakXS.mjs";
|
|
4
4
|
import "./errors-CF5evtJt-B0NTIVPt.mjs";
|
|
5
5
|
import "./src-DNBS5Yjj.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { J as listMyPinnedAgents } from "./client-bR8nwHaV-OxnjyKOk.mjs";
|
|
7
7
|
export { listMyPinnedAgents };
|