@agent-team-foundation/first-tree-hub 0.11.5 → 0.12.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/cli/index.mjs +6 -6
- package/dist/client-BPUdUaZT-CyCrpCTP.mjs +2033 -0
- package/dist/client-BhCtO2df-BGOu-rRN.mjs +7 -0
- package/dist/{dist-BQtAQNRD.mjs → dist-LgF7LHpE.mjs} +1 -1
- package/dist/{dist-CfvCT4E0.mjs → dist-UOZ6vMUW.mjs} +112 -9
- package/dist/drizzle/0034_pending_questions.sql +34 -0
- package/dist/drizzle/meta/_journal.json +7 -0
- package/dist/{feishu-DbSvp9UH.mjs → feishu-C6qlhju2.mjs} +1 -1
- package/dist/{getMachineId-bsd-c2VImogj.mjs → getMachineId-bsd-BmasEOJr.mjs} +1 -1
- package/dist/{getMachineId-bsd-DyySs8xz.mjs → getMachineId-bsd-Dh3h0DDE.mjs} +1 -1
- package/dist/{getMachineId-darwin-Cl7TSzgO.mjs → getMachineId-darwin-CuhM3hfZ.mjs} +1 -1
- package/dist/{getMachineId-darwin-DKgI8b1d.mjs → getMachineId-darwin-D9wR0SLj.mjs} +1 -1
- package/dist/{getMachineId-linux-1OIMWfdh.mjs → getMachineId-linux-CYfb0oxZ.mjs} +1 -1
- package/dist/{getMachineId-linux-cT7EbP10.mjs → getMachineId-linux-D8ZaSjAC.mjs} +1 -1
- package/dist/{getMachineId-unsupported-CkX-YOG1.mjs → getMachineId-unsupported-Cu3iisaD.mjs} +1 -1
- package/dist/{getMachineId-unsupported-CmVlhzIo.mjs → getMachineId-unsupported-DZqI4ZT5.mjs} +1 -1
- package/dist/{getMachineId-win-C2cM60YT.mjs → getMachineId-win-8ZJbtrdf.mjs} +1 -1
- package/dist/{getMachineId-win-Chl03TYe.mjs → getMachineId-win-DT-hqwVp.mjs} +1 -1
- package/dist/index.mjs +6 -6
- package/dist/{invitation-C299fxkP-BR-niZyp.mjs → invitation-C299fxkP-KyCNax4T.mjs} +1 -1
- package/dist/{observability-BAScT_5S-gw1ODB_o.mjs → observability-BAScT_5S-BcW9HgkG.mjs} +13 -13
- package/dist/{observability-CYsdAcoF.mjs → observability-eLA9iNK_.mjs} +3 -3
- package/dist/{saas-connect-CO554S-V.mjs → saas-connect-Drn9g6cR.mjs} +367 -1340
- package/dist/web/assets/index-B_Tf2I6v.css +1 -0
- package/dist/web/assets/{index-B7noAoV-.js → index-Bnyz7inW.js} +1 -1
- package/dist/web/assets/index-Dy3jIUX5.js +391 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/client-D_TRJFZY-LbgJF47t.mjs +0 -4
- package/dist/client-DqdGiggm-NQoGZ2vM.mjs +0 -524
- package/dist/web/assets/index-DPLa60vJ.css +0 -1
- package/dist/web/assets/index-DvGkka4N.js +0 -390
- /package/dist/{esm-Ci8E1Gtj.mjs → esm-iadMkGbV.mjs} +0 -0
- /package/dist/{src-aJMV60mR.mjs → src-DNBS5Yjj.mjs} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./observability-BAScT_5S-BcW9HgkG.mjs";
|
|
2
|
+
import "./logger-core-BTmvdflj-DjW8FM4T.mjs";
|
|
3
|
+
import "./dist-UOZ6vMUW.mjs";
|
|
4
|
+
import "./errors-CF5evtJt-B0NTIVPt.mjs";
|
|
5
|
+
import "./src-DNBS5Yjj.mjs";
|
|
6
|
+
import { q as listMyPinnedAgents } from "./client-BPUdUaZT-CyCrpCTP.mjs";
|
|
7
|
+
export { listMyPinnedAgents };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as __require, t as __commonJSMin } from "./chunk-BSw8zbkd.mjs";
|
|
2
|
-
import { t as require_src } from "./src-
|
|
2
|
+
import { t as require_src } from "./src-DNBS5Yjj.mjs";
|
|
3
3
|
//#region ../../node_modules/.pnpm/agent-base@7.1.4/node_modules/agent-base/dist/helpers.js
|
|
4
4
|
var require_helpers = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
5
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -846,7 +846,9 @@ const messageFormatSchema = z.enum([
|
|
|
846
846
|
"card",
|
|
847
847
|
"reference",
|
|
848
848
|
"file",
|
|
849
|
-
"task"
|
|
849
|
+
"task",
|
|
850
|
+
"question",
|
|
851
|
+
"question_answer"
|
|
850
852
|
]);
|
|
851
853
|
const sendMessageSchema = z.object({
|
|
852
854
|
format: messageFormatSchema.default("text"),
|
|
@@ -1217,26 +1219,26 @@ const githubDevCallbackQuerySchema = z.object({
|
|
|
1217
1219
|
* 2. Add a key to `ORG_SETTINGS_NAMESPACES`.
|
|
1218
1220
|
* 3. Done. No DB migration, no new API route.
|
|
1219
1221
|
*/
|
|
1220
|
-
const
|
|
1222
|
+
const httpsRepoUrlSchema = z.string().url().refine((value) => {
|
|
1221
1223
|
try {
|
|
1222
1224
|
return new URL(value).protocol === "https:";
|
|
1223
1225
|
} catch {
|
|
1224
1226
|
return false;
|
|
1225
1227
|
}
|
|
1226
|
-
}, { message: "
|
|
1228
|
+
}, { message: "Repo URL must use HTTPS." }).refine((value) => {
|
|
1227
1229
|
try {
|
|
1228
1230
|
const url = new URL(value);
|
|
1229
1231
|
return url.username.length === 0 && url.password.length === 0;
|
|
1230
1232
|
} catch {
|
|
1231
1233
|
return false;
|
|
1232
1234
|
}
|
|
1233
|
-
}, { message: "
|
|
1235
|
+
}, { message: "Repo URL must not include credentials." });
|
|
1234
1236
|
const orgContextTreeStorageSchema = z.object({
|
|
1235
|
-
repo:
|
|
1237
|
+
repo: httpsRepoUrlSchema.optional(),
|
|
1236
1238
|
branch: z.string().default("main")
|
|
1237
1239
|
});
|
|
1238
1240
|
const orgContextTreeInputSchema = z.object({
|
|
1239
|
-
repo:
|
|
1241
|
+
repo: httpsRepoUrlSchema.nullish(),
|
|
1240
1242
|
branch: z.string().min(1).nullish()
|
|
1241
1243
|
});
|
|
1242
1244
|
const orgContextTreeOutputSchema = z.object({
|
|
@@ -1249,16 +1251,36 @@ const orgGithubIntegrationOutputSchema = z.object({
|
|
|
1249
1251
|
webhookSecretConfigured: z.boolean(),
|
|
1250
1252
|
webhookUrl: z.string()
|
|
1251
1253
|
});
|
|
1254
|
+
const orgSourceReposStorageSchema = z.object({ repos: z.array(z.object({
|
|
1255
|
+
url: httpsRepoUrlSchema,
|
|
1256
|
+
defaultBranch: z.string().optional()
|
|
1257
|
+
})).default([]) });
|
|
1258
|
+
const orgSourceReposInputSchema = z.object({ repos: z.array(z.object({
|
|
1259
|
+
url: httpsRepoUrlSchema,
|
|
1260
|
+
defaultBranch: z.string().min(1).optional()
|
|
1261
|
+
})).optional() });
|
|
1262
|
+
const orgSourceReposOutputSchema = z.object({ repos: z.array(z.object({
|
|
1263
|
+
url: z.string(),
|
|
1264
|
+
defaultBranch: z.string().optional()
|
|
1265
|
+
})) });
|
|
1252
1266
|
const ORG_SETTINGS_NAMESPACES = {
|
|
1253
1267
|
context_tree: {
|
|
1254
1268
|
storage: orgContextTreeStorageSchema,
|
|
1255
1269
|
input: orgContextTreeInputSchema,
|
|
1256
|
-
output: orgContextTreeOutputSchema
|
|
1270
|
+
output: orgContextTreeOutputSchema,
|
|
1271
|
+
readPolicy: "member"
|
|
1257
1272
|
},
|
|
1258
1273
|
github_integration: {
|
|
1259
1274
|
storage: orgGithubIntegrationStorageSchema,
|
|
1260
1275
|
input: orgGithubIntegrationInputSchema,
|
|
1261
|
-
output: orgGithubIntegrationOutputSchema
|
|
1276
|
+
output: orgGithubIntegrationOutputSchema,
|
|
1277
|
+
readPolicy: "admin"
|
|
1278
|
+
},
|
|
1279
|
+
source_repos: {
|
|
1280
|
+
storage: orgSourceReposStorageSchema,
|
|
1281
|
+
input: orgSourceReposInputSchema,
|
|
1282
|
+
output: orgSourceReposOutputSchema,
|
|
1283
|
+
readPolicy: "member"
|
|
1262
1284
|
}
|
|
1263
1285
|
};
|
|
1264
1286
|
const ORG_SETTINGS_NAMESPACE_KEYS = Object.keys(ORG_SETTINGS_NAMESPACES);
|
|
@@ -1300,6 +1322,87 @@ z.object({
|
|
|
1300
1322
|
organizationId: z.string(),
|
|
1301
1323
|
agents: z.record(z.string(), z.array(pulseBucketSchema).length(32))
|
|
1302
1324
|
});
|
|
1325
|
+
/**
|
|
1326
|
+
* Structured ask-user payloads bridged from the Claude Agent SDK
|
|
1327
|
+
* `AskUserQuestion` tool to Hub messages.
|
|
1328
|
+
*
|
|
1329
|
+
* Shape mirrors the SDK 0.2.84 input/output verbatim so the client
|
|
1330
|
+
* runtime adapter can pass `updatedInput` straight through. See
|
|
1331
|
+
* verify scripts under `packages/client/tmp-verify/` for the live
|
|
1332
|
+
* matrix this was validated against.
|
|
1333
|
+
*
|
|
1334
|
+
* Lifecycle:
|
|
1335
|
+
* 1. Agent emits a `format: "question"` message — its `content` is a
|
|
1336
|
+
* `QuestionMessageContent` carrying `correlationId` + `questions[]`.
|
|
1337
|
+
* 2. User picks options in the Web UI and POSTs answers; server writes
|
|
1338
|
+
* a `format: "question_answer"` message — its `content` is a
|
|
1339
|
+
* `QuestionAnswerMessageContent` referencing the same `correlationId`.
|
|
1340
|
+
* 3. Client runtime resolves the in-flight `canUseTool` promise with the
|
|
1341
|
+
* answers, and the SDK feeds them back to the model.
|
|
1342
|
+
*
|
|
1343
|
+
* `pending → answered → superseded` runtime status lives in a separate
|
|
1344
|
+
* server table (`pending_questions`) and is not part of the message —
|
|
1345
|
+
* messages are immutable once written.
|
|
1346
|
+
*/
|
|
1347
|
+
/**
|
|
1348
|
+
* Single option inside a question. `preview` is rich content rendered above
|
|
1349
|
+
* the label — the SDK's tool input emits it as `string | undefined` (the
|
|
1350
|
+
* field is omitted when the model didn't generate any preview content), so
|
|
1351
|
+
* we accept undefined / null / string and normalise downstream renderers
|
|
1352
|
+
* to treat all three the same way.
|
|
1353
|
+
*/
|
|
1354
|
+
const questionOptionSchema = z.object({
|
|
1355
|
+
label: z.string().min(1),
|
|
1356
|
+
description: z.string(),
|
|
1357
|
+
preview: z.string().nullable().optional()
|
|
1358
|
+
});
|
|
1359
|
+
/**
|
|
1360
|
+
* One question. `header` is a chip-style short tag. The SDK schema docs
|
|
1361
|
+
* describe ≤12 chars but in practice the model occasionally emits
|
|
1362
|
+
* slightly longer headers; we keep the rule loose (≤24) so a stylistic
|
|
1363
|
+
* regression doesn't fail-closed at canUseTool and abandon the entire
|
|
1364
|
+
* tool call. The UI truncates visually if needed.
|
|
1365
|
+
*/
|
|
1366
|
+
const questionItemSchema = z.object({
|
|
1367
|
+
question: z.string().min(1),
|
|
1368
|
+
header: z.string().min(1).max(24),
|
|
1369
|
+
options: z.array(questionOptionSchema).min(2).max(4),
|
|
1370
|
+
multiSelect: z.boolean()
|
|
1371
|
+
});
|
|
1372
|
+
/** Session-level preview format hint. Mirrors `toolConfig.askUserQuestion.previewFormat`. */
|
|
1373
|
+
const questionPreviewFormatSchema = z.enum(["html", "markdown"]).nullable();
|
|
1374
|
+
/**
|
|
1375
|
+
* Content payload for a message whose `format === "question"`.
|
|
1376
|
+
*
|
|
1377
|
+
* `correlationId` ties the question to its eventual answer message AND to the
|
|
1378
|
+
* server-side `pending_questions` row; client runtime uses it to resolve the
|
|
1379
|
+
* waiting `canUseTool` promise. Reuse the SDK `tool_use_id` when available so
|
|
1380
|
+
* a single id flows end-to-end.
|
|
1381
|
+
*/
|
|
1382
|
+
const questionMessageContentSchema = z.object({
|
|
1383
|
+
correlationId: z.string().min(1),
|
|
1384
|
+
questions: z.array(questionItemSchema).min(1).max(4),
|
|
1385
|
+
previewFormat: questionPreviewFormatSchema,
|
|
1386
|
+
allowFreeText: z.boolean()
|
|
1387
|
+
});
|
|
1388
|
+
/**
|
|
1389
|
+
* Content payload for a message whose `format === "question_answer"`.
|
|
1390
|
+
*
|
|
1391
|
+
* `answers` is keyed by `QuestionItem.question` text. For `multiSelect` questions
|
|
1392
|
+
* the value is a `, `-joined string of selected labels (matches SDK convention).
|
|
1393
|
+
* For free-text answers the value is the user's raw input.
|
|
1394
|
+
*/
|
|
1395
|
+
const questionAnswerMessageContentSchema = z.object({
|
|
1396
|
+
correlationId: z.string().min(1),
|
|
1397
|
+
answers: z.record(z.string().min(1), z.string())
|
|
1398
|
+
});
|
|
1399
|
+
/** Submit-answer request body for `POST /api/admin/questions/:correlationId/answer`. */
|
|
1400
|
+
const submitQuestionAnswerSchema = z.object({ answers: z.record(z.string().min(1), z.string()) });
|
|
1401
|
+
z.enum([
|
|
1402
|
+
"pending",
|
|
1403
|
+
"answered",
|
|
1404
|
+
"superseded"
|
|
1405
|
+
]);
|
|
1303
1406
|
const sessionEventKind = z.enum([
|
|
1304
1407
|
"tool_call",
|
|
1305
1408
|
"error",
|
|
@@ -1593,4 +1696,4 @@ z.object({
|
|
|
1593
1696
|
capabilities: serverCapabilitiesSchema.optional()
|
|
1594
1697
|
}).passthrough();
|
|
1595
1698
|
//#endregion
|
|
1596
|
-
export { loginSchema as $, createAgentSchema as A, githubCallbackQuerySchema as B, agentTypeSchema as C,
|
|
1699
|
+
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 };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
-- Pending ask-user question lifecycle. See packages/server/src/db/schema/pending-questions.ts
|
|
2
|
+
-- and services/questions.ts for the read / write paths.
|
|
3
|
+
--
|
|
4
|
+
-- One row per `format=question` message. Rows are written inside the same
|
|
5
|
+
-- transaction as the message INSERT (services/message.ts step 3b) so a
|
|
6
|
+
-- rollback drops both. Status flips to `answered` when the user posts an
|
|
7
|
+
-- answer, or to `superseded` when the chat session is archived
|
|
8
|
+
-- (services/session.ts archiveSession) or the owning client is claimed
|
|
9
|
+
-- away (services/client.ts claimClient).
|
|
10
|
+
--
|
|
11
|
+
-- Per the team's "integrity in service layer" convention, NO foreign-key
|
|
12
|
+
-- constraints — referential integrity is enforced by the question service.
|
|
13
|
+
-- A correlationId reuses the SDK `tool_use_id` so a single id flows from
|
|
14
|
+
-- the Claude Agent SDK callback through to the answer message.
|
|
15
|
+
|
|
16
|
+
CREATE TABLE IF NOT EXISTS "pending_questions" (
|
|
17
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
18
|
+
"agent_id" text NOT NULL,
|
|
19
|
+
"chat_id" text NOT NULL,
|
|
20
|
+
"message_id" text NOT NULL,
|
|
21
|
+
"status" text NOT NULL DEFAULT 'pending',
|
|
22
|
+
"created_at" timestamp with time zone NOT NULL DEFAULT now(),
|
|
23
|
+
"answered_at" timestamp with time zone,
|
|
24
|
+
"superseded_at" timestamp with time zone,
|
|
25
|
+
"superseded_reason" text
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
--> statement-breakpoint
|
|
29
|
+
CREATE INDEX IF NOT EXISTS "idx_pending_questions_agent_status"
|
|
30
|
+
ON "pending_questions" ("agent_id", "status");
|
|
31
|
+
|
|
32
|
+
--> statement-breakpoint
|
|
33
|
+
CREATE INDEX IF NOT EXISTS "idx_pending_questions_chat_status"
|
|
34
|
+
ON "pending_questions" ("chat_id", "status");
|
|
@@ -239,6 +239,13 @@
|
|
|
239
239
|
"when": 1778284800000,
|
|
240
240
|
"tag": "0033_onboarding_dismissed_at",
|
|
241
241
|
"breakpoints": true
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"idx": 34,
|
|
245
|
+
"version": "7",
|
|
246
|
+
"when": 1778371200000,
|
|
247
|
+
"tag": "0034_pending_questions",
|
|
248
|
+
"breakpoints": true
|
|
242
249
|
}
|
|
243
250
|
]
|
|
244
251
|
}
|
|
@@ -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-
|
|
3
|
+
import { r as AGENT_SELECTOR_HEADER } from "./dist-UOZ6vMUW.mjs";
|
|
4
4
|
//#region src/core/feishu.ts
|
|
5
5
|
var feishu_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
bindFeishuBot: () => bindFeishuBot,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, t as __commonJSMin } from "./chunk-BSw8zbkd.mjs";
|
|
2
|
-
import { n as init_esm, t as esm_exports } from "./esm-
|
|
2
|
+
import { n as init_esm, t as esm_exports } from "./esm-iadMkGbV.mjs";
|
|
3
3
|
import { t as require_execAsync } from "./execAsync-DUfRkc4a.mjs";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.7.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js
|
|
5
5
|
var require_getMachineId_bsd = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, t as __commonJSMin } from "./chunk-BSw8zbkd.mjs";
|
|
2
|
-
import { n as init_esm, t as esm_exports } from "./esm-
|
|
2
|
+
import { n as init_esm, t as esm_exports } from "./esm-iadMkGbV.mjs";
|
|
3
3
|
import { t as require_execAsync } from "./execAsync-YbEZSOYd.mjs";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js
|
|
5
5
|
var require_getMachineId_bsd = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, t as __commonJSMin } from "./chunk-BSw8zbkd.mjs";
|
|
2
|
-
import { n as init_esm, t as esm_exports } from "./esm-
|
|
2
|
+
import { n as init_esm, t as esm_exports } from "./esm-iadMkGbV.mjs";
|
|
3
3
|
import { t as require_execAsync } from "./execAsync-DUfRkc4a.mjs";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.7.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js
|
|
5
5
|
var require_getMachineId_darwin = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, t as __commonJSMin } from "./chunk-BSw8zbkd.mjs";
|
|
2
|
-
import { n as init_esm, t as esm_exports } from "./esm-
|
|
2
|
+
import { n as init_esm, t as esm_exports } from "./esm-iadMkGbV.mjs";
|
|
3
3
|
import { t as require_execAsync } from "./execAsync-YbEZSOYd.mjs";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js
|
|
5
5
|
var require_getMachineId_darwin = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, t as __commonJSMin } from "./chunk-BSw8zbkd.mjs";
|
|
2
|
-
import { n as init_esm, t as esm_exports } from "./esm-
|
|
2
|
+
import { n as init_esm, t as esm_exports } from "./esm-iadMkGbV.mjs";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.7.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js
|
|
4
4
|
var require_getMachineId_linux = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, t as __commonJSMin } from "./chunk-BSw8zbkd.mjs";
|
|
2
|
-
import { n as init_esm, t as esm_exports } from "./esm-
|
|
2
|
+
import { n as init_esm, t as esm_exports } from "./esm-iadMkGbV.mjs";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js
|
|
4
4
|
var require_getMachineId_linux = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/{getMachineId-unsupported-CkX-YOG1.mjs → getMachineId-unsupported-Cu3iisaD.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, t as __commonJSMin } from "./chunk-BSw8zbkd.mjs";
|
|
2
|
-
import { n as init_esm, t as esm_exports } from "./esm-
|
|
2
|
+
import { n as init_esm, t as esm_exports } from "./esm-iadMkGbV.mjs";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-unsupported.js
|
|
4
4
|
var require_getMachineId_unsupported = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/{getMachineId-unsupported-CmVlhzIo.mjs → getMachineId-unsupported-DZqI4ZT5.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, t as __commonJSMin } from "./chunk-BSw8zbkd.mjs";
|
|
2
|
-
import { n as init_esm, t as esm_exports } from "./esm-
|
|
2
|
+
import { n as init_esm, t as esm_exports } from "./esm-iadMkGbV.mjs";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.7.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-unsupported.js
|
|
4
4
|
var require_getMachineId_unsupported = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, t as __commonJSMin } from "./chunk-BSw8zbkd.mjs";
|
|
2
|
-
import { n as init_esm, t as esm_exports } from "./esm-
|
|
2
|
+
import { n as init_esm, t as esm_exports } from "./esm-iadMkGbV.mjs";
|
|
3
3
|
import { t as require_execAsync } from "./execAsync-DUfRkc4a.mjs";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.7.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js
|
|
5
5
|
var require_getMachineId_win = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, t as __commonJSMin } from "./chunk-BSw8zbkd.mjs";
|
|
2
|
-
import { n as init_esm, t as esm_exports } from "./esm-
|
|
2
|
+
import { n as init_esm, t as esm_exports } from "./esm-iadMkGbV.mjs";
|
|
3
3
|
import { t as require_execAsync } from "./execAsync-YbEZSOYd.mjs";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js
|
|
5
5
|
var require_getMachineId_win = /* @__PURE__ */ __commonJSMin(((exports) => {
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./observability-BAScT_5S-
|
|
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-
|
|
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-Drn9g6cR.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-
|
|
7
|
-
import { n as bindFeishuUser, t as bindFeishuBot } from "./feishu-
|
|
6
|
+
import "./dist-UOZ6vMUW.mjs";
|
|
7
|
+
import { n as bindFeishuUser, t as bindFeishuBot } from "./feishu-C6qlhju2.mjs";
|
|
8
8
|
import "./errors-CF5evtJt-B0NTIVPt.mjs";
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
9
|
+
import "./src-DNBS5Yjj.mjs";
|
|
10
|
+
import "./client-BPUdUaZT-CyCrpCTP.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,7 +1,7 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./chunk-BSw8zbkd.mjs";
|
|
2
2
|
import { a as formatLocalTime, c as parseLogLevel, i as createLoggerOutputStream, n as LOG_REDACT_PATHS, r as SKIP_KEYS, t as LOG_REDACT_CENSOR } from "./logger-core-BTmvdflj-DjW8FM4T.mjs";
|
|
3
|
-
import { a as metrics, c as SpanStatusCode, d as createContextKey, f as DiagLogLevel, n as init_esm$2, o as diag, r as trace, s as context, t as esm_exports$2, u as DiagConsoleLogger } from "./esm-
|
|
4
|
-
import { t as require_src$85 } from "./src-
|
|
3
|
+
import { a as metrics, c as SpanStatusCode, d as createContextKey, f as DiagLogLevel, n as init_esm$2, o as diag, r as trace, s as context, t as esm_exports$2, u as DiagConsoleLogger } from "./esm-iadMkGbV.mjs";
|
|
4
|
+
import { t as require_src$85 } from "./src-DNBS5Yjj.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { Writable } from "node:stream";
|
|
7
7
|
import * as fs$5 from "fs";
|
|
@@ -8163,19 +8163,19 @@ var require_getMachineId$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8163
8163
|
async function getMachineId() {
|
|
8164
8164
|
if (!getMachineIdImpl) switch (process$3.platform) {
|
|
8165
8165
|
case "darwin":
|
|
8166
|
-
getMachineIdImpl = (await import("./getMachineId-darwin-
|
|
8166
|
+
getMachineIdImpl = (await import("./getMachineId-darwin-D9wR0SLj.mjs").then((m) => /* @__PURE__ */ __toESM(m.default))).getMachineId;
|
|
8167
8167
|
break;
|
|
8168
8168
|
case "linux":
|
|
8169
|
-
getMachineIdImpl = (await import("./getMachineId-linux-
|
|
8169
|
+
getMachineIdImpl = (await import("./getMachineId-linux-D8ZaSjAC.mjs").then((m) => /* @__PURE__ */ __toESM(m.default))).getMachineId;
|
|
8170
8170
|
break;
|
|
8171
8171
|
case "freebsd":
|
|
8172
|
-
getMachineIdImpl = (await import("./getMachineId-bsd-
|
|
8172
|
+
getMachineIdImpl = (await import("./getMachineId-bsd-Dh3h0DDE.mjs").then((m) => /* @__PURE__ */ __toESM(m.default))).getMachineId;
|
|
8173
8173
|
break;
|
|
8174
8174
|
case "win32":
|
|
8175
|
-
getMachineIdImpl = (await import("./getMachineId-win-
|
|
8175
|
+
getMachineIdImpl = (await import("./getMachineId-win-DT-hqwVp.mjs").then((m) => /* @__PURE__ */ __toESM(m.default))).getMachineId;
|
|
8176
8176
|
break;
|
|
8177
8177
|
default:
|
|
8178
|
-
getMachineIdImpl = (await import("./getMachineId-unsupported-
|
|
8178
|
+
getMachineIdImpl = (await import("./getMachineId-unsupported-Cu3iisaD.mjs").then((m) => /* @__PURE__ */ __toESM(m.default))).getMachineId;
|
|
8179
8179
|
break;
|
|
8180
8180
|
}
|
|
8181
8181
|
return getMachineIdImpl();
|
|
@@ -33764,7 +33764,7 @@ var require_gaxios = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
33764
33764
|
* @returns A proxy agent
|
|
33765
33765
|
*/
|
|
33766
33766
|
static async #getProxyAgent() {
|
|
33767
|
-
this.#proxyAgent ||= (await import("./dist-
|
|
33767
|
+
this.#proxyAgent ||= (await import("./dist-LgF7LHpE.mjs").then((m) => /* @__PURE__ */ __toESM(m.default))).HttpsProxyAgent;
|
|
33768
33768
|
return this.#proxyAgent;
|
|
33769
33769
|
}
|
|
33770
33770
|
static async #getFetch() {
|
|
@@ -41933,19 +41933,19 @@ var require_getMachineId = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
41933
41933
|
async function getMachineId() {
|
|
41934
41934
|
if (!getMachineIdImpl) switch (process$1.platform) {
|
|
41935
41935
|
case "darwin":
|
|
41936
|
-
getMachineIdImpl = (await import("./getMachineId-darwin-
|
|
41936
|
+
getMachineIdImpl = (await import("./getMachineId-darwin-CuhM3hfZ.mjs").then((m) => /* @__PURE__ */ __toESM(m.default))).getMachineId;
|
|
41937
41937
|
break;
|
|
41938
41938
|
case "linux":
|
|
41939
|
-
getMachineIdImpl = (await import("./getMachineId-linux-
|
|
41939
|
+
getMachineIdImpl = (await import("./getMachineId-linux-CYfb0oxZ.mjs").then((m) => /* @__PURE__ */ __toESM(m.default))).getMachineId;
|
|
41940
41940
|
break;
|
|
41941
41941
|
case "freebsd":
|
|
41942
|
-
getMachineIdImpl = (await import("./getMachineId-bsd-
|
|
41942
|
+
getMachineIdImpl = (await import("./getMachineId-bsd-BmasEOJr.mjs").then((m) => /* @__PURE__ */ __toESM(m.default))).getMachineId;
|
|
41943
41943
|
break;
|
|
41944
41944
|
case "win32":
|
|
41945
|
-
getMachineIdImpl = (await import("./getMachineId-win-
|
|
41945
|
+
getMachineIdImpl = (await import("./getMachineId-win-8ZJbtrdf.mjs").then((m) => /* @__PURE__ */ __toESM(m.default))).getMachineId;
|
|
41946
41946
|
break;
|
|
41947
41947
|
default:
|
|
41948
|
-
getMachineIdImpl = (await import("./getMachineId-unsupported-
|
|
41948
|
+
getMachineIdImpl = (await import("./getMachineId-unsupported-DZqI4ZT5.mjs").then((m) => /* @__PURE__ */ __toESM(m.default))).getMachineId;
|
|
41949
41949
|
break;
|
|
41950
41950
|
}
|
|
41951
41951
|
return getMachineIdImpl();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as shutdownTelemetry, d as initTelemetry } from "./observability-BAScT_5S-
|
|
1
|
+
import { b as shutdownTelemetry, d as initTelemetry } from "./observability-BAScT_5S-BcW9HgkG.mjs";
|
|
2
2
|
import "./logger-core-BTmvdflj-DjW8FM4T.mjs";
|
|
3
|
-
import "./esm-
|
|
4
|
-
import "./src-
|
|
3
|
+
import "./esm-iadMkGbV.mjs";
|
|
4
|
+
import "./src-DNBS5Yjj.mjs";
|
|
5
5
|
export { initTelemetry, shutdownTelemetry };
|