@agent-team-foundation/first-tree-hub 0.9.6 → 0.9.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 +11 -7
- package/dist/{core-USyOOh7y.mjs → core-DKA6g1lL.mjs} +1052 -352
- package/dist/{feishu-GlaczcVf.mjs → feishu-CRNUI05I.mjs} +104 -13
- package/dist/index.mjs +2 -2
- package/dist/web/assets/{index-CzlAfdgm.js → index-Cp24nDIg.js} +77 -77
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "../observability-DV_fQKqV-CuLWzBxQ.mjs";
|
|
3
|
-
import { A as checkServerHealth, C as runMigrations, D as checkDocker, E as checkDatabase, G as
|
|
3
|
+
import { A as checkServerHealth, B as resolveReplyToFromEnv, C as runMigrations, D as checkDocker, E as checkDatabase, G as FirstTreeHubSDK, H as print, I as stopPostgres, J as cleanWorkspaces, K as SdkError, L as ClientRuntime, M as checkWebSocket, N as printResults, O as checkNodeVersion, R as createOwner, S as uninstallClientService, T as checkClientConfig, U as setJsonMode, X as configureClientLoggerForService, Y as applyClientLoggerConfig, _ as runHomeMigration, a as showServiceLogs, b as isServiceSupported, c as COMMAND_VERSION, d as promptMissingFields, f as formatCheckReport, g as saveOnboardState, h as onboardCreate, i as parseDuration, j as checkServerReachable, k as checkServerConfig, l as isInteractive, m as onboardCheck, n as declineUpdate, o as validateLevel, p as loadOnboardState, q as SessionRegistry, r as promptUpdate, s as startServer, t as createExecuteUpdate, u as promptAddAgent, v as getClientServiceStatus, w as checkAgentConfigs, y as installClientService } from "../core-DKA6g1lL.mjs";
|
|
4
4
|
import "../logger-core-BTmvdflj-DhdipBkV.mjs";
|
|
5
5
|
import { C as serverConfigSchema, _ as loadAgents, b as resetConfig, c as saveCredentials, d as DEFAULT_HOME_DIR, f as agentConfigSchema, g as initConfig, h as getConfigValue, i as loadCredentials, l as DEFAULT_CONFIG_DIR, n as ensureFreshAccessToken, o as resolveServerUrl, p as clientConfigSchema, r as ensureFreshAdminToken, s as saveAgentConfig, u as DEFAULT_DATA_DIR, w as setConfigValue, x as resetConfigMeta, y as readConfigFile } from "../bootstrap-DWifXj9b.mjs";
|
|
6
|
-
import { n as bindFeishuUser, t as bindFeishuBot } from "../feishu-
|
|
6
|
+
import { n as bindFeishuUser, t as bindFeishuBot } from "../feishu-CRNUI05I.mjs";
|
|
7
7
|
import { join } from "node:path";
|
|
8
8
|
import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync } from "node:fs";
|
|
9
9
|
import { Command } from "commander";
|
|
@@ -351,7 +351,7 @@ function registerAgentCommands(program) {
|
|
|
351
351
|
print.line(" No agents configured.\n");
|
|
352
352
|
return;
|
|
353
353
|
}
|
|
354
|
-
for (const [name, config] of agents) print.line(` ${name.padEnd(20)} runtime: ${config.runtime.padEnd(14)}
|
|
354
|
+
for (const [name, config] of agents) print.line(` ${name.padEnd(20)} runtime: ${config.runtime.padEnd(14)} uuid: ${config.agentId}\n`);
|
|
355
355
|
} catch {
|
|
356
356
|
print.line(" No agents configured.\n");
|
|
357
357
|
}
|
|
@@ -499,21 +499,25 @@ function registerAgentCommands(program) {
|
|
|
499
499
|
} catch {
|
|
500
500
|
fail("INVALID_METADATA", "Metadata must be valid JSON.", 2);
|
|
501
501
|
}
|
|
502
|
+
const { replyToInbox, replyToChat } = resolveReplyToFromEnv(process.env, {
|
|
503
|
+
replyToInbox: options.replyToInbox,
|
|
504
|
+
replyToChat: options.replyToChat
|
|
505
|
+
});
|
|
502
506
|
const sdk = createSdk(options.agent);
|
|
503
507
|
if (options.chat) success(await sdk.sendMessage(target, {
|
|
504
508
|
format: options.format,
|
|
505
509
|
content,
|
|
506
510
|
metadata,
|
|
507
511
|
inReplyTo: options.replyTo,
|
|
508
|
-
replyToInbox
|
|
509
|
-
replyToChat
|
|
512
|
+
replyToInbox,
|
|
513
|
+
replyToChat
|
|
510
514
|
}));
|
|
511
515
|
else success(await sdk.sendToAgent(target, {
|
|
512
516
|
format: options.format,
|
|
513
517
|
content,
|
|
514
518
|
metadata,
|
|
515
|
-
replyToInbox
|
|
516
|
-
replyToChat
|
|
519
|
+
replyToInbox,
|
|
520
|
+
replyToChat
|
|
517
521
|
}));
|
|
518
522
|
} catch (error) {
|
|
519
523
|
handleSdkError(error);
|