@agent-team-foundation/first-tree-hub 0.3.5 → 0.5.0

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.
@@ -0,0 +1,2 @@
1
+ ALTER TABLE "agents" ADD COLUMN "profile" text;
2
+ ALTER TABLE "agents" DROP COLUMN "tree_path";
@@ -0,0 +1,12 @@
1
+ -- Agent identity refactoring: id → uuid (PK) + name (human-readable, per-org unique)
2
+ -- Run BEFORE the data migration script (scripts/migrate-uuid.ts).
3
+
4
+ -- 1. Add name column
5
+ ALTER TABLE "agents" ADD COLUMN "name" text;
6
+
7
+ -- 2. Rename id → uuid (PG auto-updates FK constraints referencing this column)
8
+ ALTER TABLE "agents" RENAME COLUMN "id" TO "uuid";
9
+
10
+ -- 3. Add composite unique constraint (org + name)
11
+ -- NULLs are distinct in PG unique constraints, so deleted agents (name=NULL) don't conflict
12
+ ALTER TABLE "agents" ADD CONSTRAINT "uq_agents_org_name" UNIQUE("organization_id", "name");
@@ -50,6 +50,20 @@
50
50
  "when": 1775073600000,
51
51
  "tag": "0006_agent_tree_path",
52
52
  "breakpoints": true
53
+ },
54
+ {
55
+ "idx": 7,
56
+ "version": "7",
57
+ "when": 1775692800000,
58
+ "tag": "0007_decouple_context_tree",
59
+ "breakpoints": true
60
+ },
61
+ {
62
+ "idx": 8,
63
+ "version": "7",
64
+ "when": 1775952000000,
65
+ "tag": "0008_uuid_identity",
66
+ "breakpoints": true
53
67
  }
54
68
  ]
55
69
  }
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ClientRuntime, C as checkWebSocket, D as ensurePostgres, E as status, M as hasAdminUser, N as FirstTreeHubSDK, O as isDockerAvailable, P as SdkError, S as checkServerReachable, T as blank, _ as checkDocker, a as formatCheckReport, b as checkServerConfig, c as onboardContinue, d as runMigrations, f as checkAgentConfigs, g as checkDatabase, h as checkContextTreeRepo, i as promptMissingFields, j as createAdminUser, k as stopPostgres, l as onboardCreate, m as checkClientConfig, n as isInteractive, p as checkAgentTokens, r as promptAddAgent, s as onboardCheck, t as startServer, v as checkGitHubToken, w as printResults, x as checkServerHealth, y as checkNodeVersion } from "./core-CHL_dgzu.mjs";
2
- import { a as getGitHubUsername, i as getGitHubToken, o as resolveAgentToken, r as checkBootstrapStatus, s as resolveServerUrl, t as bootstrapToken } from "./bootstrap-mhkpeOEc.mjs";
1
+ import { A as createAdminUser, C as printResults, D as isDockerAvailable, E as ensurePostgres, M as FirstTreeHubSDK, N as SdkError, O as stopPostgres, S as checkWebSocket, T as status, _ as checkGitHubToken, a as formatCheckReport, b as checkServerHealth, c as onboardCreate, d as checkAgentConfigs, f as checkAgentTokens, g as checkDocker, h as checkDatabase, i as promptMissingFields, j as hasAdminUser, k as ClientRuntime, m as checkContextTreeRepo, n as isInteractive, p as checkClientConfig, r as promptAddAgent, s as onboardCheck, t as startServer, u as runMigrations, v as checkNodeVersion, w as blank, x as checkServerReachable, y as checkServerConfig } from "./core-jjk1xFW_.mjs";
2
+ import { a as getGitHubUsername, i as getGitHubToken, o as resolveAgentToken, r as checkBootstrapStatus, s as resolveServerUrl, t as bootstrapToken } from "./bootstrap-BU_7B03u.mjs";
3
3
  import { n as bindFeishuUser, t as bindFeishuBot } from "./feishu-Y4m2zFc3.mjs";
4
- export { ClientRuntime, FirstTreeHubSDK, SdkError, bindFeishuBot, bindFeishuUser, blank, bootstrapToken, checkAgentConfigs, checkAgentTokens, checkBootstrapStatus, checkClientConfig, checkContextTreeRepo, checkDatabase, checkDocker, checkGitHubToken, checkNodeVersion, checkServerConfig, checkServerHealth, checkServerReachable, checkWebSocket, createAdminUser, ensurePostgres, formatCheckReport, getGitHubToken, getGitHubUsername, hasAdminUser, isDockerAvailable, isInteractive, onboardCheck, onboardContinue, onboardCreate, printResults, promptAddAgent, promptMissingFields, resolveAgentToken, resolveServerUrl, runMigrations, startServer, status, stopPostgres };
4
+ export { ClientRuntime, FirstTreeHubSDK, SdkError, bindFeishuBot, bindFeishuUser, blank, bootstrapToken, checkAgentConfigs, checkAgentTokens, checkBootstrapStatus, checkClientConfig, checkContextTreeRepo, checkDatabase, checkDocker, checkGitHubToken, checkNodeVersion, checkServerConfig, checkServerHealth, checkServerReachable, checkWebSocket, createAdminUser, ensurePostgres, formatCheckReport, getGitHubToken, getGitHubUsername, hasAdminUser, isDockerAvailable, isInteractive, onboardCheck, onboardCreate, printResults, promptAddAgent, promptMissingFields, resolveAgentToken, resolveServerUrl, runMigrations, startServer, status, stopPostgres };