@agent-team-foundation/first-tree-hub 0.12.2 → 0.12.4

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 success, b as onboardCreate, c as detectInstallMode, ct as FirstTreeHubSDK, d as startServer, dt as cleanWorkspaces, et as removeLocalAgent, f as reconcileLocalRuntimeProviders, ft as probeCapabilities, g as promptMissingFields, h as promptAddAgent, i as createExecuteUpdate, it as fail, j as checkNodeVersion, k as checkDatabase, l as fetchLatestVersion, lt as SdkError, m as isInteractive, mt as configureClientLoggerForService, o as promptUpdate, ot as ClientOrgMismatchError, p as uploadClientCapabilities, pt as applyClientLoggerConfig, r as registerSaaSConnectCommand, rt as resolveReplyToFromEnv, s as PACKAGE_NAME, st as ClientUserMismatchError, tt as createOwner, u as installGlobalLatest, ut as SessionRegistry, v as loadOnboardState, w as migrateLocalAgentDirs, x as saveOnboardState, y as onboardCheck, z as installClientService } from "../saas-connect-_2M4kfPR.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 success, b as onboardCreate, c as detectInstallMode, ct as FirstTreeHubSDK, d as startServer, dt as cleanWorkspaces, et as removeLocalAgent, f as reconcileLocalRuntimeProviders, ft as probeCapabilities, g as promptMissingFields, h as promptAddAgent, i as createExecuteUpdate, it as fail, j as checkNodeVersion, k as checkDatabase, l as fetchLatestVersion, lt as SdkError, m as isInteractive, mt as configureClientLoggerForService, o as promptUpdate, ot as ClientOrgMismatchError, p as uploadClientCapabilities, pt as applyClientLoggerConfig, r as registerSaaSConnectCommand, rt as resolveReplyToFromEnv, s as PACKAGE_NAME, st as ClientUserMismatchError, tt as createOwner, u as installGlobalLatest, ut as SessionRegistry, v as loadOnboardState, w as migrateLocalAgentDirs, x as saveOnboardState, y as onboardCheck, z as installClientService } from "../saas-connect-S71rG182.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-C_K2CKXC.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-DHHd2dar.mjs";
8
- import { n as bindFeishuUser, t as bindFeishuBot } from "../feishu-fLnwqCOs.mjs";
7
+ import "../dist-CMhywpXB.mjs";
8
+ import { n as bindFeishuUser, t as bindFeishuBot } from "../feishu-tkZS0vvL.mjs";
9
9
  import "../errors-CF5evtJt-B0NTIVPt.mjs";
10
10
  import "../src-DNBS5Yjj.mjs";
11
- import "../client-DHCSQ8kg-DjlSmE9q.mjs";
11
+ import "../client-D1TDiik_-NV_lkhfI.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";
@@ -1,7 +1,7 @@
1
1
  import "./observability-BAScT_5S-BcW9HgkG.mjs";
2
2
  import "./logger-core-BTmvdflj-DjW8FM4T.mjs";
3
- import "./dist-DHHd2dar.mjs";
3
+ import "./dist-CMhywpXB.mjs";
4
4
  import "./errors-CF5evtJt-B0NTIVPt.mjs";
5
5
  import "./src-DNBS5Yjj.mjs";
6
- import { q as listMyPinnedAgents } from "./client-DHCSQ8kg-DjlSmE9q.mjs";
6
+ import { q as listMyPinnedAgents } from "./client-D1TDiik_-NV_lkhfI.mjs";
7
7
  export { listMyPinnedAgents };
@@ -1,10 +1,10 @@
1
1
  import { O as withSpan, f as messageAttrs, s as createLogger } from "./observability-BAScT_5S-BcW9HgkG.mjs";
2
- import { a as AGENT_STATUSES, at as questionAnswerMessageContentSchema, dt as scanMentionTokens, ot as questionMessageContentSchema, s as AGENT_VISIBILITY, w as clientCapabilitiesSchema, z as extractMentions } from "./dist-DHHd2dar.mjs";
2
+ import { A as extractMentions, X as questionMessageContentSchema, Y as questionAnswerMessageContentSchema, a as AGENT_VISIBILITY, g as clientCapabilitiesSchema, i as AGENT_STATUSES, tt as scanMentionTokens } from "./dist-CMhywpXB.mjs";
3
3
  import { a as ConflictError, i as ClientUserMismatchError, l as organizations, n as BadRequestError, o as ForbiddenError, s as NotFoundError, u as users } from "./errors-CF5evtJt-B0NTIVPt.mjs";
4
4
  import { randomUUID } from "node:crypto";
5
5
  import { and, desc, eq, inArray, isNotNull, lt, ne, or, sql } from "drizzle-orm";
6
6
  import { bigserial, boolean, index, integer, jsonb, pgTable, primaryKey, text, timestamp, unique } from "drizzle-orm/pg-core";
7
- //#region ../server/dist/client-DHCSQ8kg.mjs
7
+ //#region ../server/dist/client-D1TDiik_.mjs
8
8
  /**
9
9
  * Client connections. A client is a single SDK process (AgentRuntime) that may
10
10
  * host multiple agents. From the unified-user-token milestone on, a client is
@@ -691,14 +691,6 @@ async function leaveChat(db, chatId, humanAgentId) {
691
691
  return db.select().from(chatParticipants).where(eq(chatParticipants.chatId, chatId));
692
692
  }
693
693
  async function findOrCreateDirectChat(db, agentAId, agentBId) {
694
- const aChats = await db.select({ chatId: chatParticipants.chatId }).from(chatParticipants).where(eq(chatParticipants.agentId, agentAId));
695
- const bChats = await db.select({ chatId: chatParticipants.chatId }).from(chatParticipants).where(eq(chatParticipants.agentId, agentBId));
696
- const bChatIds = new Set(bChats.map((r) => r.chatId));
697
- const commonChatIds = aChats.map((r) => r.chatId).filter((id) => bChatIds.has(id));
698
- if (commonChatIds.length > 0) {
699
- const directChats = await db.select().from(chats).where(and(inArray(chats.id, commonChatIds), eq(chats.type, "direct"))).orderBy(chats.createdAt, chats.id).limit(1);
700
- if (directChats.length > 0 && directChats[0]) return directChats[0];
701
- }
702
694
  const ends = await db.select({
703
695
  uuid: agents.uuid,
704
696
  organizationId: agents.organizationId,
@@ -708,12 +700,22 @@ async function findOrCreateDirectChat(db, agentAId, agentBId) {
708
700
  if (!agentA) throw new NotFoundError(`Agent "${agentAId}" not found`);
709
701
  const agentB = ends.find((a) => a.uuid === agentBId);
710
702
  if (!agentB) throw new NotFoundError(`Agent "${agentBId}" not found`);
703
+ if (agentA.organizationId !== agentB.organizationId) throw new BadRequestError(`Cannot create direct chat across organizations: agent "${agentAId}" (org "${agentA.organizationId}") vs agent "${agentBId}" (org "${agentB.organizationId}")`);
704
+ const orgId = agentA.organizationId;
705
+ const aChats = await db.select({ chatId: chatParticipants.chatId }).from(chatParticipants).where(eq(chatParticipants.agentId, agentAId));
706
+ const bChats = await db.select({ chatId: chatParticipants.chatId }).from(chatParticipants).where(eq(chatParticipants.agentId, agentBId));
707
+ const bChatIds = new Set(bChats.map((r) => r.chatId));
708
+ const commonChatIds = aChats.map((r) => r.chatId).filter((id) => bChatIds.has(id));
709
+ if (commonChatIds.length > 0) {
710
+ const directChats = await db.select().from(chats).where(and(inArray(chats.id, commonChatIds), eq(chats.type, "direct"), eq(chats.organizationId, orgId))).orderBy(chats.createdAt, chats.id).limit(1);
711
+ if (directChats.length > 0 && directChats[0]) return directChats[0];
712
+ }
711
713
  const mode = agentA.type !== "human" && agentB.type !== "human" ? "mention_only" : "full";
712
714
  const chatId = randomUUID();
713
715
  return db.transaction(async (tx) => {
714
716
  const [chat] = await tx.insert(chats).values({
715
717
  id: chatId,
716
- organizationId: agentA.organizationId,
718
+ organizationId: orgId,
717
719
  type: "direct"
718
720
  }).returning();
719
721
  await tx.insert(chatParticipants).values([{
@@ -438,11 +438,6 @@ z.object({
438
438
  });
439
439
  const runtimeProviderSchema = z.enum(["claude-code", "codex"]);
440
440
  const DEFAULT_RUNTIME_PROVIDER = "claude-code";
441
- const AGENT_TYPES = {
442
- HUMAN: "human",
443
- PERSONAL_ASSISTANT: "personal_assistant",
444
- AUTONOMOUS_AGENT: "autonomous_agent"
445
- };
446
441
  const agentTypeSchema = z.enum([
447
442
  "human",
448
443
  "personal_assistant",
@@ -458,10 +453,6 @@ const AGENT_STATUSES = {
458
453
  SUSPENDED: "suspended",
459
454
  DELETED: "deleted"
460
455
  };
461
- const AGENT_SOURCES = {
462
- ADMIN_API: "admin-api",
463
- PORTAL: "portal"
464
- };
465
456
  const agentSourceSchema = z.enum(["admin-api", "portal"]);
466
457
  z.enum(["active", "suspended"]);
467
458
  /**
@@ -846,7 +837,6 @@ const messageFormatSchema = z.enum([
846
837
  "card",
847
838
  "reference",
848
839
  "file",
849
- "task",
850
840
  "question",
851
841
  "question_answer"
852
842
  ]);
@@ -1035,9 +1025,7 @@ const meChatRowSchema = z.object({
1035
1025
  lastMessageAt: z.string().nullable(),
1036
1026
  lastMessagePreview: z.string().nullable(),
1037
1027
  unreadMentionCount: z.number().int(),
1038
- canReply: z.boolean(),
1039
- taskId: z.string().nullable(),
1040
- taskStatus: z.string().nullable()
1028
+ canReply: z.boolean()
1041
1029
  });
1042
1030
  z.object({
1043
1031
  rows: z.array(meChatRowSchema),
@@ -1550,133 +1538,6 @@ z.object({
1550
1538
  totalMessages: z.number(),
1551
1539
  byOrganization: z.array(orgStatsSchema)
1552
1540
  });
1553
- /** Fixed 5-state machine. No custom statuses. */
1554
- const TASK_STATUSES = {
1555
- PENDING: "pending",
1556
- ASSIGNED: "assigned",
1557
- WORKING: "working",
1558
- COMPLETED: "completed",
1559
- FAILED: "failed",
1560
- CANCELLED: "cancelled"
1561
- };
1562
- const taskStatusSchema = z.enum([
1563
- "pending",
1564
- "assigned",
1565
- "working",
1566
- "completed",
1567
- "failed",
1568
- "cancelled"
1569
- ]);
1570
- /** Terminal statuses — once reached, no further transitions allowed. */
1571
- const TASK_TERMINAL_STATUSES = [
1572
- "completed",
1573
- "failed",
1574
- "cancelled"
1575
- ];
1576
- /** Creator type discriminator. */
1577
- const TASK_CREATOR_TYPES = {
1578
- AGENT: "agent",
1579
- ADMIN: "admin"
1580
- };
1581
- const taskCreatorTypeSchema = z.enum(["agent", "admin"]);
1582
- const taskMessageEventSchema = z.enum([
1583
- "assigned",
1584
- "status_changed",
1585
- "cancelled"
1586
- ]);
1587
- z.object({
1588
- taskId: z.string(),
1589
- event: taskMessageEventSchema,
1590
- title: z.string(),
1591
- body: z.string().default(""),
1592
- status: taskStatusSchema,
1593
- fromStatus: taskStatusSchema.optional(),
1594
- originRef: z.string().nullable().optional()
1595
- });
1596
- /** Create task input. Used by both agent API and admin API. */
1597
- const createTaskSchema = z.object({
1598
- title: z.string().min(1).max(500),
1599
- body: z.string().optional(),
1600
- assigneeAgentId: z.string().optional(),
1601
- originRef: z.string().max(500).optional(),
1602
- metadata: z.record(z.string(), z.unknown()).optional()
1603
- });
1604
- /** Admin-only create: allows passing an explicit organizationId. */
1605
- const adminCreateTaskSchema = createTaskSchema.extend({ organizationId: z.string().optional() });
1606
- /**
1607
- * Agent-facing status update. Agents may only self-report working/completed/failed.
1608
- * Cancellation goes through the dedicated cancel endpoint.
1609
- */
1610
- const updateTaskStatusSchema = z.object({
1611
- status: z.enum([
1612
- "working",
1613
- "completed",
1614
- "failed"
1615
- ]),
1616
- result: z.string().optional()
1617
- });
1618
- /** Admin-facing update — may re-assign or re-target status (within legal transitions). */
1619
- const adminUpdateTaskSchema = z.object({
1620
- assigneeAgentId: z.string().nullable().optional(),
1621
- status: taskStatusSchema.optional(),
1622
- result: z.string().optional()
1623
- });
1624
- const linkTaskChatSchema = z.object({ chatId: z.string().min(1) });
1625
- const taskSchema = z.object({
1626
- id: z.string(),
1627
- organizationId: z.string(),
1628
- title: z.string(),
1629
- body: z.string(),
1630
- status: taskStatusSchema,
1631
- assigneeAgentId: z.string().nullable(),
1632
- createdByType: taskCreatorTypeSchema,
1633
- createdById: z.string(),
1634
- originRef: z.string().nullable(),
1635
- result: z.string().nullable(),
1636
- metadata: z.record(z.string(), z.unknown()),
1637
- createdAt: z.string(),
1638
- updatedAt: z.string(),
1639
- cancelledAt: z.string().nullable(),
1640
- cancelledByType: taskCreatorTypeSchema.nullable(),
1641
- cancelledById: z.string().nullable()
1642
- });
1643
- const taskChatLinkSchema = z.object({
1644
- taskId: z.string(),
1645
- chatId: z.string(),
1646
- linkedByAgentId: z.string().nullable(),
1647
- linkedAt: z.string()
1648
- });
1649
- taskSchema.extend({ chats: z.array(taskChatLinkSchema) });
1650
- const taskListQuerySchema = z.object({
1651
- status: taskStatusSchema.optional(),
1652
- assigneeAgentId: z.string().optional(),
1653
- originRef: z.string().optional(),
1654
- limit: z.coerce.number().int().min(1).max(100).default(20),
1655
- cursor: z.string().optional()
1656
- });
1657
- /**
1658
- * Task health signals derived from associated chats' session state + recent messages.
1659
- * See hub-task-design Section 9.
1660
- */
1661
- const TASK_HEALTH_SIGNALS = {
1662
- NORMAL: "normal",
1663
- IDLE_ISLAND: "idle_island",
1664
- AWAITING_REPLY: "awaiting_reply",
1665
- NO_CHAT: "no_chat",
1666
- NOT_APPLICABLE: "not_applicable"
1667
- };
1668
- const taskHealthSignalSchema = z.enum([
1669
- "normal",
1670
- "idle_island",
1671
- "awaiting_reply",
1672
- "no_chat",
1673
- "not_applicable"
1674
- ]);
1675
- z.object({
1676
- taskId: z.string(),
1677
- signal: taskHealthSignalSchema,
1678
- reason: z.string()
1679
- });
1680
1541
  const userStatusSchema = z.enum(["active", "suspended"]);
1681
1542
  z.object({
1682
1543
  id: z.string(),
@@ -1721,4 +1582,4 @@ z.object({
1721
1582
  capabilities: serverCapabilitiesSchema.optional()
1722
1583
  }).passthrough();
1723
1584
  //#endregion
1724
- export { loginSchema as $, createAgentSchema as A, updateTaskStatusSchema as At, githubCallbackQuerySchema as B, agentTypeSchema as C, updateAdapterConfigSchema as Ct, contextTreeSnapshotSchema as D, updateClientCapabilitiesSchema as Dt, connectTokenExchangeSchema as E, updateChatSchema as Et, createTaskSchema as F, inboxDeliverFrameSchema as G, githubStartQuerySchema as H, defaultRuntimeConfigPayload as I, isRedactedEnvValue as J, inboxPollQuerySchema as K, delegateFeishuUserSchema as L, createMeChatSchema as M, createMemberSchema as N, createAdapterConfigSchema as O, updateMemberSchema as Ot, createOrgFromMeSchema as P, listMeChatsQuerySchema as Q, dryRunAgentRuntimeConfigSchema as R, agentRuntimeConfigPayloadSchema as S, taskListQuerySchema as St, clientRegisterSchema as T, updateAgentSchema as Tt, imageInlineContentSchema as U, githubDevCallbackQuerySchema as V, inboxAckFrameSchema as W, joinByInvitationSchema as X, isReservedAgentName as Y, linkTaskChatSchema as Z, addParticipantSchema as _, sessionEventSchema as _t, AGENT_STATUSES as a, questionAnswerMessageContentSchema as at, agentBindRequestSchema as b, stripCode as bt, DEFAULT_RUNTIME_PROVIDER as c, refreshTokenSchema as ct, TASK_CREATOR_TYPES as d, scanMentionTokens as dt, messageSourceSchema as et, TASK_HEALTH_SIGNALS as f, selfServiceFeishuBotSchema as ft, addMeChatParticipantsSchema as g, sessionEventMessageSchema as gt, WS_AUTH_FRAME_TIMEOUT_MS as h, sessionCompletionMessageSchema as ht, AGENT_SOURCES as i, patchOnboardingSchema as it, createChatSchema as j, wsAuthFrameSchema as jt, createAdapterMappingSchema as k, updateOrganizationSchema as kt, MENTION_REGEX as l, runtimeStateMessageSchema as lt, TASK_TERMINAL_STATUSES as m, sendToAgentSchema as mt, AGENT_NAME_REGEX as n, onboardingEventSchema as nt, AGENT_TYPES as o, questionMessageContentSchema as ot, TASK_STATUSES as p, sendMessageSchema as pt, isOrgSettingNamespace as q, AGENT_SELECTOR_HEADER as r, paginationQuerySchema as rt, AGENT_VISIBILITY as s, rebindAgentSchema as st, AGENT_BIND_REJECT_REASONS as t, notificationQuerySchema as tt, ORG_SETTINGS_NAMESPACES as u, safeRedirectPath as ut, adminCreateTaskSchema as v, sessionReconcileRequestSchema as vt, clientCapabilitiesSchema as w, updateAgentRuntimeConfigSchema as wt, agentPinnedMessageSchema as x, submitQuestionAnswerSchema as xt, adminUpdateTaskSchema as y, sessionStateMessageSchema as yt, extractMentions as z };
1585
+ export { runtimeStateMessageSchema as $, extractMentions as A, isReservedAgentName as B, createChatSchema as C, defaultRuntimeConfigPayload as D, createOrgFromMeSchema as E, inboxAckFrameSchema as F, notificationQuerySchema as G, listMeChatsQuerySchema as H, inboxDeliverFrameSchema as I, patchOnboardingSchema as J, onboardingEventSchema as K, inboxPollQuerySchema as L, githubDevCallbackQuerySchema as M, githubStartQuerySchema as N, delegateFeishuUserSchema as O, imageInlineContentSchema as P, refreshTokenSchema as Q, isOrgSettingNamespace as R, createAgentSchema as S, createMemberSchema as T, loginSchema as U, joinByInvitationSchema as V, messageSourceSchema as W, questionMessageContentSchema as X, questionAnswerMessageContentSchema as Y, rebindAgentSchema as Z, clientRegisterSchema as _, updateMemberSchema as _t, AGENT_VISIBILITY as a, sessionCompletionMessageSchema as at, createAdapterConfigSchema as b, ORG_SETTINGS_NAMESPACES as c, sessionReconcileRequestSchema as ct, addParticipantSchema as d, submitQuestionAnswerSchema as dt, safeRedirectPath as et, agentBindRequestSchema as f, updateAdapterConfigSchema as ft, clientCapabilitiesSchema as g, updateClientCapabilitiesSchema as gt, agentTypeSchema as h, updateChatSchema as ht, AGENT_STATUSES as i, sendToAgentSchema as it, githubCallbackQuerySchema as j, dryRunAgentRuntimeConfigSchema as k, WS_AUTH_FRAME_TIMEOUT_MS as l, sessionStateMessageSchema as lt, agentRuntimeConfigPayloadSchema as m, updateAgentSchema as mt, AGENT_NAME_REGEX as n, selfServiceFeishuBotSchema as nt, DEFAULT_RUNTIME_PROVIDER as o, sessionEventMessageSchema as ot, agentPinnedMessageSchema as p, updateAgentRuntimeConfigSchema as pt, paginationQuerySchema as q, AGENT_SELECTOR_HEADER as r, sendMessageSchema as rt, MENTION_REGEX as s, sessionEventSchema as st, AGENT_BIND_REJECT_REASONS as t, scanMentionTokens as tt, addMeChatParticipantsSchema as u, stripCode as ut, connectTokenExchangeSchema as v, updateOrganizationSchema as vt, createMeChatSchema as w, createAdapterMappingSchema as x, contextTreeSnapshotSchema as y, wsAuthFrameSchema as yt, isRedactedEnvValue as z };
@@ -0,0 +1,7 @@
1
+ -- Drop the Hub Task subsystem. The product no longer uses tasks; the
2
+ -- chat-first workspace covers every flow that previously needed task rows.
3
+ -- Order matches the historical service-layer dependency; DB-level FKs were
4
+ -- already removed in 0014_drop_task_fks so either order would technically work.
5
+
6
+ DROP TABLE IF EXISTS "task_chats";--> statement-breakpoint
7
+ DROP TABLE IF EXISTS "tasks";
@@ -246,6 +246,13 @@
246
246
  "when": 1778371200000,
247
247
  "tag": "0034_pending_questions",
248
248
  "breakpoints": true
249
+ },
250
+ {
251
+ "idx": 35,
252
+ "version": "7",
253
+ "when": 1778457600000,
254
+ "tag": "0035_drop_hub_tasks",
255
+ "breakpoints": true
249
256
  }
250
257
  ]
251
258
  }
@@ -1,6 +1,6 @@
1
1
  import { r as __exportAll } from "./chunk-BSw8zbkd.mjs";
2
2
  import { t as cliFetch } from "./cli-fetch--tiwKm5S.mjs";
3
- import { r as AGENT_SELECTOR_HEADER } from "./dist-DHHd2dar.mjs";
3
+ import { r as AGENT_SELECTOR_HEADER } from "./dist-CMhywpXB.mjs";
4
4
  //#region src/core/feishu.ts
5
5
  var feishu_exports = /* @__PURE__ */ __exportAll({
6
6
  bindFeishuBot: () => bindFeishuBot,
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import "./observability-BAScT_5S-BcW9HgkG.mjs";
2
- import { A as checkDocker, B as isServiceSupported, E as checkAgentConfigs, F as checkWebSocket, G as uninstallClientService, H as restartClientService, I as printResults, J as stopPostgres, K as ensurePostgres, M as checkServerConfig, N as checkServerHealth, O as checkClientConfig, P as checkServerReachable, R as getClientServiceStatus, S as runHomeMigration, T as runMigrations, U as startClientService, V as resolveCliInvocation, W as stopClientService, X as handleClientOrgMismatch, Y as ClientRuntime, Z as rotateClientIdWithBackup, _ as formatCheckReport, b as onboardCreate, ct as FirstTreeHubSDK, d as startServer, g as promptMissingFields, h as promptAddAgent, j as checkNodeVersion, k as checkDatabase, lt as SdkError, m as isInteractive, n as deriveHubUrlFromToken, nt as hasUser, q as isDockerAvailable, t as HubUrlDerivationError, tt as createOwner, y as onboardCheck, z as installClientService } from "./saas-connect-_2M4kfPR.mjs";
2
+ import { A as checkDocker, B as isServiceSupported, E as checkAgentConfigs, F as checkWebSocket, G as uninstallClientService, H as restartClientService, I as printResults, J as stopPostgres, K as ensurePostgres, M as checkServerConfig, N as checkServerHealth, O as checkClientConfig, P as checkServerReachable, R as getClientServiceStatus, S as runHomeMigration, T as runMigrations, U as startClientService, V as resolveCliInvocation, W as stopClientService, X as handleClientOrgMismatch, Y as ClientRuntime, Z as rotateClientIdWithBackup, _ as formatCheckReport, b as onboardCreate, ct as FirstTreeHubSDK, d as startServer, g as promptMissingFields, h as promptAddAgent, j as checkNodeVersion, k as checkDatabase, lt as SdkError, m as isInteractive, n as deriveHubUrlFromToken, nt as hasUser, q as isDockerAvailable, t as HubUrlDerivationError, tt as createOwner, y as onboardCheck, z as installClientService } from "./saas-connect-S71rG182.mjs";
3
3
  import "./logger-core-BTmvdflj-DjW8FM4T.mjs";
4
4
  import { a as ensureFreshAdminToken, c as resolveServerUrl, i as ensureFreshAccessToken, n as AuthRefreshRateLimitedError, s as resolveAccessToken, t as AuthRefreshFailedError } from "./bootstrap-C_K2CKXC.mjs";
5
5
  import { i as blank, s as status } from "./cli-fetch--tiwKm5S.mjs";
6
- import "./dist-DHHd2dar.mjs";
7
- import { n as bindFeishuUser, t as bindFeishuBot } from "./feishu-fLnwqCOs.mjs";
6
+ import "./dist-CMhywpXB.mjs";
7
+ import { n as bindFeishuUser, t as bindFeishuBot } from "./feishu-tkZS0vvL.mjs";
8
8
  import "./errors-CF5evtJt-B0NTIVPt.mjs";
9
9
  import "./src-DNBS5Yjj.mjs";
10
- import "./client-DHCSQ8kg-DjlSmE9q.mjs";
10
+ import "./client-D1TDiik_-NV_lkhfI.mjs";
11
11
  import "./invitation-Bg0TRiyx-BsZH4GCS.mjs";
12
12
  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-DHHd2dar.mjs";
1
+ import "./dist-CMhywpXB.mjs";
2
2
  import "./errors-CF5evtJt-B0NTIVPt.mjs";
3
3
  import { s as previewInvitation } from "./invitation-Bg0TRiyx-BsZH4GCS.mjs";
4
4
  export { previewInvitation };