@agent-team-foundation/first-tree-hub 0.11.1 → 0.11.2

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.
@@ -569,10 +569,11 @@ const serverConfigSchema = defineConfig({
569
569
  connectTokenExpiry: field(z.string().default("10m"), { env: "FIRST_TREE_HUB_AUTH_CONNECT_TOKEN_EXPIRY" })
570
570
  },
571
571
  contextTree: optional({
572
- repo: field(z.string(), {
572
+ repo: field(z.string().optional(), {
573
573
  env: "FIRST_TREE_HUB_CONTEXT_TREE_REPO",
574
574
  prompt: { message: "Context Tree repo URL (e.g. https://github.com/org/first-tree):" }
575
575
  }),
576
+ localPath: field(z.string().optional(), { env: "FIRST_TREE_HUB_CONTEXT_TREE_PATH" }),
576
577
  branch: field(z.string().default("main"))
577
578
  }),
578
579
  github: {
@@ -595,6 +596,7 @@ const serverConfigSchema = defineConfig({
595
596
  max: field(z.number().default(100), { env: "FIRST_TREE_HUB_RATE_LIMIT_MAX" }),
596
597
  loginMax: field(z.number().default(5), { env: "FIRST_TREE_HUB_RATE_LIMIT_LOGIN_MAX" }),
597
598
  webhookMax: field(z.number().default(60), { env: "FIRST_TREE_HUB_RATE_LIMIT_WEBHOOK_MAX" }),
599
+ contextTreeSnapshotMax: field(z.number().default(6), { env: "FIRST_TREE_HUB_RATE_LIMIT_CONTEXT_TREE_SNAPSHOT_MAX" }),
598
600
  agentMessageMax: field(z.number().default(30), { env: "FIRST_TREE_HUB_RATE_LIMIT_AGENT_MESSAGE_MAX" })
599
601
  }),
600
602
  ws: optional({ maxPayload: field(z.number().int().min(1024).default(262144), { env: "FIRST_TREE_HUB_WS_MAX_PAYLOAD" }) }),
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
- import "../observability-C3nY6Jcz-Dpsi3eFk.mjs";
3
- import { $ as findStaleAliases, A as checkDatabase, B as installClientService, C as runHomeMigration, D as checkAgentConfigs, E as runMigrations, F as checkServerReachable, G as stopClientService, I as checkWebSocket, L as printResults, M as checkNodeVersion, N as checkServerConfig, O as checkBackgroundService, P as checkServerHealth, R as reconcileAgentConfigs, S as saveOnboardState, T as migrateLocalAgentDirs, U as restartClientService, V as isServiceSupported, W as startClientService, X as ClientRuntime, Y as stopPostgres, Z as handleClientOrgMismatch, _ as promptMissingFields, _t as probeCapabilities, a as declineUpdate, at as fail, b as onboardCheck, c as detectInstallMode, ct as print, d as startServer, dt as ClientOrgMismatchError, et as formatStaleReason, f as COMMAND_VERSION, ft as ClientUserMismatchError, g as promptAddAgent, gt as cleanWorkspaces, h as isInteractive, ht as SessionRegistry, i as createExecuteUpdate, it as resolveReplyToFromEnv, j as checkDocker, k as checkClientConfig, l as fetchLatestVersion, lt as setJsonMode, m as uploadClientCapabilities, mt as SdkError, nt as createOwner, o as promptUpdate, ot as success, p as reconcileLocalRuntimeProviders, pt as FirstTreeHubSDK, r as registerSaaSConnectCommand, s as PACKAGE_NAME, tt as removeLocalAgent, u as installGlobalLatest, v as formatCheckReport, vt as applyClientLoggerConfig, w as createApiNameResolver, x as onboardCreate, y as loadOnboardState, yt as configureClientLoggerForService, z as getClientServiceStatus } from "../saas-connect-Bd0g0v_b.mjs";
2
+ import "../observability-C3nY6Jcz-Bk7FX689.mjs";
3
+ import { $ as findStaleAliases, A as checkDatabase, B as installClientService, C as runHomeMigration, D as checkAgentConfigs, E as runMigrations, F as checkServerReachable, G as stopClientService, I as checkWebSocket, L as printResults, M as checkNodeVersion, N as checkServerConfig, O as checkBackgroundService, P as checkServerHealth, R as reconcileAgentConfigs, S as saveOnboardState, T as migrateLocalAgentDirs, U as restartClientService, V as isServiceSupported, W as startClientService, X as ClientRuntime, Y as stopPostgres, Z as handleClientOrgMismatch, _ as promptMissingFields, _t as probeCapabilities, a as declineUpdate, at as fail, b as onboardCheck, c as detectInstallMode, ct as print, d as startServer, dt as ClientOrgMismatchError, et as formatStaleReason, f as COMMAND_VERSION, ft as ClientUserMismatchError, g as promptAddAgent, gt as cleanWorkspaces, h as isInteractive, ht as SessionRegistry, i as createExecuteUpdate, it as resolveReplyToFromEnv, j as checkDocker, k as checkClientConfig, l as fetchLatestVersion, lt as setJsonMode, m as uploadClientCapabilities, mt as SdkError, nt as createOwner, o as promptUpdate, ot as success, p as reconcileLocalRuntimeProviders, pt as FirstTreeHubSDK, r as registerSaaSConnectCommand, s as PACKAGE_NAME, tt as removeLocalAgent, u as installGlobalLatest, v as formatCheckReport, vt as applyClientLoggerConfig, w as createApiNameResolver, x as onboardCreate, y as loadOnboardState, yt as configureClientLoggerForService, z as getClientServiceStatus } from "../saas-connect-Df2CVAGp.mjs";
4
4
  import "../logger-core-BTmvdflj-DjW8FM4T.mjs";
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-TJRy0B9m.mjs";
6
- import "../dist-BkvrONSQ.mjs";
7
- import { n as bindFeishuUser, t as bindFeishuBot } from "../feishu-AEMHwT6L.mjs";
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-B-FRMuvL.mjs";
6
+ import "../dist-FuUBFTEB.mjs";
7
+ import { n as bindFeishuUser, t as bindFeishuBot } from "../feishu-GvFABWW5.mjs";
8
8
  import "../errors-BmyRwN0Y-CIZZ_sDc.mjs";
9
- import "../client-BCaK653p-CZjDNcdM.mjs";
9
+ import "../client-CLdRbuml-B416INrm.mjs";
10
10
  import "../src-DNBS5Yjj.mjs";
11
11
  import "../invitation-Dnn5gGGX-Ce7zbZpn.mjs";
12
12
  import { join } from "node:path";
@@ -1667,13 +1667,13 @@ function isSecretField(schema, dotPath) {
1667
1667
  //#region src/commands/onboard.ts
1668
1668
  async function promptMissing(args) {
1669
1669
  if (!args.server) try {
1670
- const { resolveServerUrl } = await import("../bootstrap-TJRy0B9m.mjs").then((n) => n.r);
1670
+ const { resolveServerUrl } = await import("../bootstrap-B-FRMuvL.mjs").then((n) => n.r);
1671
1671
  resolveServerUrl();
1672
1672
  } catch {
1673
1673
  args.server = await input({ message: "Hub server URL:" });
1674
1674
  saveOnboardState(args);
1675
1675
  }
1676
- const { loadCredentials } = await import("../bootstrap-TJRy0B9m.mjs").then((n) => n.r);
1676
+ const { loadCredentials } = await import("../bootstrap-B-FRMuvL.mjs").then((n) => n.r);
1677
1677
  if (!loadCredentials()) throw new Error("No saved credentials. Run `first-tree-hub client connect <server-url>` before onboarding.");
1678
1678
  if (!args.id) {
1679
1679
  args.id = await input({ message: "Agent ID:" });
@@ -0,0 +1,4 @@
1
+ import "./dist-FuUBFTEB.mjs";
2
+ import "./errors-BmyRwN0Y-CIZZ_sDc.mjs";
3
+ import { y as listMyPinnedAgents } from "./client-CLdRbuml-B416INrm.mjs";
4
+ export { listMyPinnedAgents };
@@ -1,8 +1,8 @@
1
- import { C as clientCapabilitiesSchema } from "./dist-BkvrONSQ.mjs";
1
+ import { C as clientCapabilitiesSchema } from "./dist-FuUBFTEB.mjs";
2
2
  import { a as ConflictError, i as ClientUserMismatchError, l as organizations, n as BadRequestError, s as NotFoundError, u as users } from "./errors-BmyRwN0Y-CIZZ_sDc.mjs";
3
3
  import { and, eq, inArray, ne, sql } from "drizzle-orm";
4
4
  import { index, integer, jsonb, pgTable, text, timestamp, unique } from "drizzle-orm/pg-core";
5
- //#region ../server/dist/client-BCaK653p.mjs
5
+ //#region ../server/dist/client-CLdRbuml.mjs
6
6
  /**
7
7
  * Client connections. A client is a single SDK process (AgentRuntime) that may
8
8
  * host multiple agents. From the unified-user-token milestone on, a client is
@@ -400,6 +400,14 @@ async function updateClientCapabilities(db, clientId, capabilities) {
400
400
  await db.update(clients).set({ metadata: merged }).where(eq(clients.id, clientId));
401
401
  }
402
402
  /**
403
+ * Scope-aware client listing. Returns the caller's own clients (cross-org —
404
+ * a client is owned by a user, not an org). The admin route adds a separate
405
+ * `?organizationId=` cross-user view via {@link listClientsForOrgAdmin}.
406
+ */
407
+ async function listClients(db, scope) {
408
+ return attachAgentCounts(db, await db.select().from(clients).where(eq(clients.userId, scope.userId)));
409
+ }
410
+ /**
403
411
  * Admin-only cross-user listing: every client owned by an active member of
404
412
  * `orgId`. Joining `clients → members.user_id` instead of `clients.organization_id`
405
413
  * keeps the read path consistent with the rule that connection has no
@@ -513,4 +521,4 @@ async function cleanupStaleClients(db, staleSeconds = 60) {
513
521
  return result.length;
514
522
  }
515
523
  //#endregion
516
- export { serverInstances as C, unbindAgent as D, touchAgent as E, updateClientCapabilities as O, retireClient as S, setRuntimeState as T, listClientsForOrgAdmin as _, claimClient as a, members as b, clients as c, getClient as d, getOnlineCount as f, listActiveAgentsPinnedToClient as g, heartbeatInstance as h, bindAgent as i, deriveAuthState as l, heartbeatClient as m, agents as n, cleanupStaleClients as o, getPresence as p, assertClientOwner as r, cleanupStalePresence as s, agentPresence as t, disconnectClient as u, listMyPinnedAgents as v, setOffline as w, registerClient as x, markStaleAgents as y };
524
+ export { retireClient as C, touchAgent as D, setRuntimeState as E, unbindAgent as O, registerClient as S, setOffline as T, listClients as _, claimClient as a, markStaleAgents as b, clients as c, getClient as d, getOnlineCount as f, listActiveAgentsPinnedToClient as g, heartbeatInstance as h, bindAgent as i, updateClientCapabilities as k, deriveAuthState as l, heartbeatClient as m, agents as n, cleanupStaleClients as o, getPresence as p, assertClientOwner as r, cleanupStalePresence as s, agentPresence as t, disconnectClient as u, listClientsForOrgAdmin as v, serverInstances as w, members as x, listMyPinnedAgents as y };
@@ -679,6 +679,104 @@ const paginationQuerySchema = z.object({
679
679
  limit: z.coerce.number().int().min(1).max(100).default(20),
680
680
  cursor: z.string().optional()
681
681
  });
682
+ const contextTreeSnapshotStatusSchema = z.enum([
683
+ "active",
684
+ "stale",
685
+ "unavailable"
686
+ ]);
687
+ const contextTreeStatusSeveritySchema = z.enum([
688
+ "ok",
689
+ "warning",
690
+ "error"
691
+ ]);
692
+ const contextTreeStatusSchema = z.object({
693
+ label: z.string(),
694
+ detail: z.string().nullable(),
695
+ severity: contextTreeStatusSeveritySchema
696
+ });
697
+ const contextTreeNodeKindSchema = z.enum([
698
+ "root",
699
+ "domain",
700
+ "subdomain",
701
+ "leaf"
702
+ ]);
703
+ const contextTreeChangeTypeSchema = z.enum([
704
+ "added",
705
+ "edited",
706
+ "removed"
707
+ ]);
708
+ const contextTreeEdgeKindSchema = z.enum([
709
+ "parent",
710
+ "soft_link",
711
+ "markdown_link"
712
+ ]);
713
+ const contextTreeRiskLevelSchema = z.enum([
714
+ "low",
715
+ "medium",
716
+ "high"
717
+ ]);
718
+ const contextTreeNodeSchema = z.object({
719
+ id: z.string(),
720
+ path: z.string(),
721
+ sourcePath: z.string().nullable(),
722
+ title: z.string(),
723
+ kind: contextTreeNodeKindSchema,
724
+ owners: z.array(z.string()),
725
+ parentId: z.string().nullable(),
726
+ preview: z.string().nullable(),
727
+ relatedNodeIds: z.array(z.string()),
728
+ affectedContextArea: z.string(),
729
+ changeType: contextTreeChangeTypeSchema.nullable(),
730
+ changedAtCommit: z.string().nullable()
731
+ });
732
+ const contextTreeEdgeSchema = z.object({
733
+ source: z.string(),
734
+ target: z.string(),
735
+ kind: contextTreeEdgeKindSchema
736
+ });
737
+ const contextTreeChangeSchema = z.object({
738
+ path: z.string(),
739
+ nodeId: z.string().nullable(),
740
+ type: contextTreeChangeTypeSchema,
741
+ commit: z.string().nullable(),
742
+ changedAt: z.string().nullable(),
743
+ changedBy: z.string().nullable(),
744
+ summary: z.string().nullable()
745
+ });
746
+ const contextTreeUpdateSchema = z.object({
747
+ id: z.string(),
748
+ nodeId: z.string().nullable(),
749
+ path: z.string(),
750
+ title: z.string(),
751
+ changeType: contextTreeChangeTypeSchema,
752
+ affectedContextArea: z.string(),
753
+ reason: z.string(),
754
+ summary: z.string(),
755
+ changedBy: z.string().nullable(),
756
+ owners: z.array(z.string()),
757
+ relatedNodeIds: z.array(z.string()),
758
+ sourceCommit: z.string().nullable(),
759
+ riskLevel: contextTreeRiskLevelSchema
760
+ });
761
+ const contextTreeSummarySchema = z.object({
762
+ addedCount: z.number().int().nonnegative(),
763
+ editedCount: z.number().int().nonnegative(),
764
+ removedCount: z.number().int().nonnegative(),
765
+ changedNodeCount: z.number().int().nonnegative()
766
+ });
767
+ const contextTreeSnapshotSchema = z.object({
768
+ repo: z.string().nullable(),
769
+ branch: z.string().nullable(),
770
+ headCommit: z.string().nullable(),
771
+ syncedAt: z.string().nullable(),
772
+ snapshotStatus: contextTreeSnapshotStatusSchema,
773
+ contextStatus: contextTreeStatusSchema,
774
+ summary: contextTreeSummarySchema,
775
+ updates: z.array(contextTreeUpdateSchema),
776
+ nodes: z.array(contextTreeNodeSchema),
777
+ edges: z.array(contextTreeEdgeSchema),
778
+ changes: z.array(contextTreeChangeSchema)
779
+ });
682
780
  const supportedImageMimeSchema = z.enum([
683
781
  "image/png",
684
782
  "image/jpeg",
@@ -1369,4 +1467,4 @@ z.object({
1369
1467
  capabilities: serverCapabilitiesSchema.optional()
1370
1468
  }).passthrough();
1371
1469
  //#endregion
1372
- export { paginationQuerySchema as $, createMeChatSchema as A, githubStartQuerySchema as B, clientCapabilitiesSchema as C, wsAuthFrameSchema as Ct, createAdapterMappingSchema as D, createAdapterConfigSchema as E, delegateFeishuUserSchema as F, isRedactedEnvValue as G, inboxAckFrameSchema as H, dryRunAgentRuntimeConfigSchema as I, linkTaskChatSchema as J, isReservedAgentName as K, extractMentions as L, createOrgFromMeSchema as M, createTaskSchema as N, createAgentSchema as O, defaultRuntimeConfigPayload as P, notificationQuerySchema as Q, githubCallbackQuerySchema as R, agentTypeSchema as S, updateTaskStatusSchema as St, connectTokenExchangeSchema as T, inboxDeliverFrameSchema as U, imageInlineContentSchema as V, inboxPollQuerySchema as W, loginSchema as X, listMeChatsQuerySchema as Y, messageSourceSchema as Z, adminCreateTaskSchema as _, updateAgentSchema as _t, AGENT_STATUSES as a, selfServiceFeishuBotSchema as at, agentPinnedMessageSchema as b, updateMemberSchema as bt, DEFAULT_RUNTIME_PROVIDER as c, sessionCompletionMessageSchema as ct, TASK_HEALTH_SIGNALS as d, sessionReconcileRequestSchema as dt, rebindAgentSchema as et, TASK_STATUSES as f, sessionStateMessageSchema as ft, addParticipantSchema as g, updateAgentRuntimeConfigSchema as gt, addMeChatParticipantsSchema as h, updateAdapterConfigSchema as ht, AGENT_SOURCES as i, scanMentionTokens as it, createMemberSchema as j, createChatSchema as k, MENTION_REGEX as l, sessionEventMessageSchema as lt, WS_AUTH_FRAME_TIMEOUT_MS as m, taskListQuerySchema as mt, AGENT_NAME_REGEX as n, runtimeStateMessageSchema as nt, AGENT_TYPES as o, sendMessageSchema as ot, TASK_TERMINAL_STATUSES as p, stripCode as pt, joinByInvitationSchema as q, AGENT_SELECTOR_HEADER as r, safeRedirectPath as rt, AGENT_VISIBILITY as s, sendToAgentSchema as st, AGENT_BIND_REJECT_REASONS as t, refreshTokenSchema as tt, TASK_CREATOR_TYPES as u, sessionEventSchema as ut, adminUpdateTaskSchema as v, updateChatSchema as vt, clientRegisterSchema as w, agentRuntimeConfigPayloadSchema as x, updateOrganizationSchema as xt, agentBindRequestSchema as y, updateClientCapabilitiesSchema as yt, githubDevCallbackQuerySchema as z };
1470
+ export { notificationQuerySchema as $, createChatSchema as A, githubDevCallbackQuerySchema as B, clientCapabilitiesSchema as C, updateTaskStatusSchema as Ct, createAdapterConfigSchema as D, contextTreeSnapshotSchema as E, defaultRuntimeConfigPayload as F, inboxPollQuerySchema as G, imageInlineContentSchema as H, delegateFeishuUserSchema as I, joinByInvitationSchema as J, isRedactedEnvValue as K, dryRunAgentRuntimeConfigSchema as L, createMemberSchema as M, createOrgFromMeSchema as N, createAdapterMappingSchema as O, createTaskSchema as P, messageSourceSchema as Q, extractMentions as R, agentTypeSchema as S, updateOrganizationSchema as St, connectTokenExchangeSchema as T, inboxAckFrameSchema as U, githubStartQuerySchema as V, inboxDeliverFrameSchema as W, listMeChatsQuerySchema as X, linkTaskChatSchema as Y, loginSchema as Z, adminCreateTaskSchema as _, updateAgentRuntimeConfigSchema as _t, AGENT_STATUSES as a, scanMentionTokens as at, agentPinnedMessageSchema as b, updateClientCapabilitiesSchema as bt, DEFAULT_RUNTIME_PROVIDER as c, sendToAgentSchema as ct, TASK_HEALTH_SIGNALS as d, sessionEventSchema as dt, paginationQuerySchema as et, TASK_STATUSES as f, sessionReconcileRequestSchema as ft, addParticipantSchema as g, updateAdapterConfigSchema as gt, addMeChatParticipantsSchema as h, taskListQuerySchema as ht, AGENT_SOURCES as i, safeRedirectPath as it, createMeChatSchema as j, createAgentSchema as k, MENTION_REGEX as l, sessionCompletionMessageSchema as lt, WS_AUTH_FRAME_TIMEOUT_MS as m, stripCode as mt, AGENT_NAME_REGEX as n, refreshTokenSchema as nt, AGENT_TYPES as o, selfServiceFeishuBotSchema as ot, TASK_TERMINAL_STATUSES as p, sessionStateMessageSchema as pt, isReservedAgentName as q, AGENT_SELECTOR_HEADER as r, runtimeStateMessageSchema as rt, AGENT_VISIBILITY as s, sendMessageSchema as st, AGENT_BIND_REJECT_REASONS as t, rebindAgentSchema as tt, TASK_CREATOR_TYPES as u, sessionEventMessageSchema as ut, adminUpdateTaskSchema as v, updateAgentSchema as vt, clientRegisterSchema as w, wsAuthFrameSchema as wt, agentRuntimeConfigPayloadSchema as x, updateMemberSchema as xt, agentBindRequestSchema as y, updateChatSchema as yt, githubCallbackQuerySchema as z };
@@ -1,5 +1,5 @@
1
1
  import { r as __exportAll } from "./chunk-BSw8zbkd.mjs";
2
- import { r as AGENT_SELECTOR_HEADER } from "./dist-BkvrONSQ.mjs";
2
+ import { r as AGENT_SELECTOR_HEADER } from "./dist-FuUBFTEB.mjs";
3
3
  //#region src/core/feishu.ts
4
4
  var feishu_exports = /* @__PURE__ */ __exportAll({
5
5
  bindFeishuBot: () => bindFeishuBot,
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
- import "./observability-C3nY6Jcz-Dpsi3eFk.mjs";
2
- import { A as checkDatabase, B as installClientService, C as runHomeMigration, D as checkAgentConfigs, E as runMigrations, F as checkServerReachable, G as stopClientService, H as resolveCliInvocation, I as checkWebSocket, J as isDockerAvailable, K as uninstallClientService, L as printResults, M as checkNodeVersion, N as checkServerConfig, P as checkServerHealth, Q as rotateClientIdWithBackup, U as restartClientService, V as isServiceSupported, W as startClientService, X as ClientRuntime, Y as stopPostgres, Z as handleClientOrgMismatch, _ as promptMissingFields, b as onboardCheck, d as startServer, g as promptAddAgent, h as isInteractive, j as checkDocker, k as checkClientConfig, mt as SdkError, n as deriveHubUrlFromToken, nt as createOwner, pt as FirstTreeHubSDK, q as ensurePostgres, rt as hasUser, st as blank, t as HubUrlDerivationError, ut as status, v as formatCheckReport, x as onboardCreate, z as getClientServiceStatus } from "./saas-connect-Bd0g0v_b.mjs";
1
+ import "./observability-C3nY6Jcz-Bk7FX689.mjs";
2
+ import { A as checkDatabase, B as installClientService, C as runHomeMigration, D as checkAgentConfigs, E as runMigrations, F as checkServerReachable, G as stopClientService, H as resolveCliInvocation, I as checkWebSocket, J as isDockerAvailable, K as uninstallClientService, L as printResults, M as checkNodeVersion, N as checkServerConfig, P as checkServerHealth, Q as rotateClientIdWithBackup, U as restartClientService, V as isServiceSupported, W as startClientService, X as ClientRuntime, Y as stopPostgres, Z as handleClientOrgMismatch, _ as promptMissingFields, b as onboardCheck, d as startServer, g as promptAddAgent, h as isInteractive, j as checkDocker, k as checkClientConfig, mt as SdkError, n as deriveHubUrlFromToken, nt as createOwner, pt as FirstTreeHubSDK, q as ensurePostgres, rt as hasUser, st as blank, t as HubUrlDerivationError, ut as status, v as formatCheckReport, x as onboardCreate, z as getClientServiceStatus } from "./saas-connect-Df2CVAGp.mjs";
3
3
  import "./logger-core-BTmvdflj-DjW8FM4T.mjs";
4
- import { a as ensureFreshAdminToken, c as resolveServerUrl, i as ensureFreshAccessToken, n as AuthRefreshRateLimitedError, s as resolveAccessToken, t as AuthRefreshFailedError } from "./bootstrap-TJRy0B9m.mjs";
5
- import "./dist-BkvrONSQ.mjs";
6
- import { n as bindFeishuUser, t as bindFeishuBot } from "./feishu-AEMHwT6L.mjs";
4
+ import { a as ensureFreshAdminToken, c as resolveServerUrl, i as ensureFreshAccessToken, n as AuthRefreshRateLimitedError, s as resolveAccessToken, t as AuthRefreshFailedError } from "./bootstrap-B-FRMuvL.mjs";
5
+ import "./dist-FuUBFTEB.mjs";
6
+ import { n as bindFeishuUser, t as bindFeishuBot } from "./feishu-GvFABWW5.mjs";
7
7
  import "./errors-BmyRwN0Y-CIZZ_sDc.mjs";
8
- import "./client-BCaK653p-CZjDNcdM.mjs";
8
+ import "./client-CLdRbuml-B416INrm.mjs";
9
9
  import "./src-DNBS5Yjj.mjs";
10
10
  import "./invitation-Dnn5gGGX-Ce7zbZpn.mjs";
11
11
  export { AuthRefreshFailedError, AuthRefreshRateLimitedError, ClientRuntime, FirstTreeHubSDK, HubUrlDerivationError, SdkError, bindFeishuBot, bindFeishuUser, blank, checkAgentConfigs, checkClientConfig, checkDatabase, checkDocker, checkNodeVersion, checkServerConfig, checkServerHealth, checkServerReachable, checkWebSocket, createOwner, deriveHubUrlFromToken, ensureFreshAccessToken, ensureFreshAdminToken, ensurePostgres, formatCheckReport, getClientServiceStatus, handleClientOrgMismatch, hasUser, installClientService, isDockerAvailable, isInteractive, isServiceSupported, onboardCheck, onboardCreate, printResults, promptAddAgent, promptMissingFields, resolveAccessToken, resolveCliInvocation, resolveServerUrl, restartClientService, rotateClientIdWithBackup, runHomeMigration, runMigrations, startClientService, startServer, status, stopClientService, stopPostgres, uninstallClientService };
@@ -1,4 +1,4 @@
1
- import "./dist-BkvrONSQ.mjs";
1
+ import "./dist-FuUBFTEB.mjs";
2
2
  import "./errors-BmyRwN0Y-CIZZ_sDc.mjs";
3
3
  import { s as previewInvitation } from "./invitation-Dnn5gGGX-Ce7zbZpn.mjs";
4
4
  export { previewInvitation };
@@ -33768,7 +33768,7 @@ var require_gaxios = /* @__PURE__ */ __commonJSMin(((exports) => {
33768
33768
  }
33769
33769
  static async #getFetch() {
33770
33770
  const hasWindow = typeof window !== "undefined" && !!window;
33771
- this.#fetch ||= hasWindow ? window.fetch : (await import("./src-uVZSbShB.mjs")).default;
33771
+ this.#fetch ||= hasWindow ? window.fetch : (await import("./src-CzQ5KF6D.mjs")).default;
33772
33772
  return this.#fetch;
33773
33773
  }
33774
33774
  /**
@@ -1,4 +1,4 @@
1
- import { _ as shutdownTelemetry, c as initTelemetry } from "./observability-C3nY6Jcz-Dpsi3eFk.mjs";
1
+ import { _ as shutdownTelemetry, c as initTelemetry } from "./observability-C3nY6Jcz-Bk7FX689.mjs";
2
2
  import "./logger-core-BTmvdflj-DjW8FM4T.mjs";
3
3
  import "./esm-iadMkGbV.mjs";
4
4
  import "./src-DNBS5Yjj.mjs";