@agent-team-foundation/first-tree-hub 0.4.0 → 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.
- package/dist/{bootstrap-uyPaaI05.mjs → bootstrap-BU_7B03u.mjs} +6 -6
- package/dist/cli/index.mjs +8 -8
- package/dist/{core-CMeOAZmx.mjs → core-jjk1xFW_.mjs} +228 -200
- package/dist/drizzle/0008_uuid_identity.sql +12 -0
- package/dist/drizzle/meta/_journal.json +7 -0
- package/dist/index.mjs +2 -2
- package/dist/web/assets/index-LFh6j4ki.js +280 -0
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
- package/dist/web/assets/index-C4J9gHaF.js +0 -280
|
@@ -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");
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
2
|
-
import { a as getGitHubUsername, i as getGitHubToken, o as resolveAgentToken, r as checkBootstrapStatus, s as resolveServerUrl, t as bootstrapToken } from "./bootstrap-
|
|
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
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 };
|