first-tree-staging 0.5.2-staging.35.1 → 0.5.2-staging.36.1
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 +2 -2
- package/dist/{connect-token-BiWP2RHo.mjs → connect-token-Drbpm2TP.mjs} +10 -6
- package/dist/feishu-DhB9_e2j.mjs +2 -0
- package/dist/{feishu-DirO-XHk.mjs → feishu-gkap_IB8.mjs} +8 -4
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/feishu-S2IdFiQv.mjs +0 -2
package/dist/cli/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as cliFetch, f as channelConfig, l as print, n as bindFeishuUser, o as CLI_USER_AGENT, r as documentContextSchema, s as COMMAND_VERSION, t as bindFeishuBot, u as setJsonMode } from "../feishu-
|
|
3
|
-
import { $ as agentConfigSchema, A as installClientService, C as checkClientConfig, D as printResults, E as checkWebSocket, F as startClientService, G as loadCredentials, I as stopClientService, J as saveAgentConfig, M as isServiceUnitDriftDetected, O as reconcileAgentConfigs, P as restartClientService, Q as removeLocalAgent, R as ClientRuntime, S as checkBackgroundService, T as checkServerReachable, U as ensureFreshAccessToken, W as ensureFreshAdminToken, X as findStaleAliases, Y as saveCredentials, Z as formatStaleReason, _t as buildMessageDocumentSnapshots, a as declineUpdate, at as initConfig, b as migrateLocalAgentDirs, bt as applyClientLoggerConfig, c as detectInstallMode, ct as resetConfig, d as reconcileLocalRuntimeProviders, dt as setConfigValue, et as clientConfigSchema, f as uploadClientCapabilities, ft as ClientOrgMismatchError, gt as SessionRegistry, h as promptMissingFields, ht as SdkError, i as createExecuteUpdate, it as getConfigValue, j as isServiceSupported, k as getClientServiceStatus, l as fetchLatestVersion, lt as resetConfigMeta, m as promptAddAgent, mt as FirstTreeHubSDK, n as decodeJwtPayload, nt as defaultDataDir, o as promptUpdate, ot as loadAgents, pt as ClientUserMismatchError, q as resolveServerUrl, r as deriveHubUrlFromToken, rt as defaultHome, s as PACKAGE_NAME, st as readConfigFile, t as HubUrlDerivationError, tt as defaultConfigDir, u as installGlobalLatest, ut as resolveConfigReadonly, vt as cleanWorkspaces, w as checkNodeVersion, x as checkAgentConfigs, xt as configureClientLoggerForService, y as createApiNameResolver, yt as probeCapabilities, z as handleClientOrgMismatch } from "../connect-token-
|
|
2
|
+
import { a as cliFetch, f as channelConfig, l as print, n as bindFeishuUser, o as CLI_USER_AGENT, r as documentContextSchema, s as COMMAND_VERSION, t as bindFeishuBot, u as setJsonMode } from "../feishu-gkap_IB8.mjs";
|
|
3
|
+
import { $ as agentConfigSchema, A as installClientService, C as checkClientConfig, D as printResults, E as checkWebSocket, F as startClientService, G as loadCredentials, I as stopClientService, J as saveAgentConfig, M as isServiceUnitDriftDetected, O as reconcileAgentConfigs, P as restartClientService, Q as removeLocalAgent, R as ClientRuntime, S as checkBackgroundService, T as checkServerReachable, U as ensureFreshAccessToken, W as ensureFreshAdminToken, X as findStaleAliases, Y as saveCredentials, Z as formatStaleReason, _t as buildMessageDocumentSnapshots, a as declineUpdate, at as initConfig, b as migrateLocalAgentDirs, bt as applyClientLoggerConfig, c as detectInstallMode, ct as resetConfig, d as reconcileLocalRuntimeProviders, dt as setConfigValue, et as clientConfigSchema, f as uploadClientCapabilities, ft as ClientOrgMismatchError, gt as SessionRegistry, h as promptMissingFields, ht as SdkError, i as createExecuteUpdate, it as getConfigValue, j as isServiceSupported, k as getClientServiceStatus, l as fetchLatestVersion, lt as resetConfigMeta, m as promptAddAgent, mt as FirstTreeHubSDK, n as decodeJwtPayload, nt as defaultDataDir, o as promptUpdate, ot as loadAgents, pt as ClientUserMismatchError, q as resolveServerUrl, r as deriveHubUrlFromToken, rt as defaultHome, s as PACKAGE_NAME, st as readConfigFile, t as HubUrlDerivationError, tt as defaultConfigDir, u as installGlobalLatest, ut as resolveConfigReadonly, vt as cleanWorkspaces, w as checkNodeVersion, x as checkAgentConfigs, xt as configureClientLoggerForService, y as createApiNameResolver, yt as probeCapabilities, z as handleClientOrgMismatch } from "../connect-token-Drbpm2TP.mjs";
|
|
4
4
|
import { basename, dirname, join, relative, resolve } from "node:path";
|
|
5
5
|
import { homedir, tmpdir } from "node:os";
|
|
6
6
|
import { cpSync, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, readlinkSync, rmSync, statSync, symlinkSync, unlinkSync, writeFileSync } from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __require, r as __toESM, t as __commonJSMin } from "./chunk-CBBoxR_p.mjs";
|
|
2
|
-
import { a as cliFetch, c as blank, f as channelConfig, i as updateAttemptSchema$1, l as print, o as CLI_USER_AGENT, p as inferChannelFromVersion } from "./feishu-
|
|
2
|
+
import { a as cliFetch, c as blank, f as channelConfig, i as updateAttemptSchema$1, l as print, o as CLI_USER_AGENT, p as inferChannelFromVersion } from "./feishu-gkap_IB8.mjs";
|
|
3
3
|
import { basename, delimiter, dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
4
4
|
import { homedir, hostname, platform, tmpdir, userInfo } from "node:os";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -4164,6 +4164,10 @@ function deriveRepoLocalPath(url) {
|
|
|
4164
4164
|
if (!trimmed) return "";
|
|
4165
4165
|
return ((trimmed.split(/[?#]/)[0] ?? "").split(/[/:]/).filter(Boolean).pop() ?? "").replace(/\.git$/i, "");
|
|
4166
4166
|
}
|
|
4167
|
+
const paginationQuerySchema = z.object({
|
|
4168
|
+
limit: z.coerce.number().int().min(1).max(100).default(20),
|
|
4169
|
+
cursor: z.string().optional()
|
|
4170
|
+
});
|
|
4167
4171
|
const presenceStatusSchema = z.enum(["online", "offline"]);
|
|
4168
4172
|
const runtimeStateSchema = z.enum([
|
|
4169
4173
|
"idle",
|
|
@@ -4337,6 +4341,10 @@ const agentPinnedMessageSchema = z.object({
|
|
|
4337
4341
|
agentType: agentTypeSchema,
|
|
4338
4342
|
runtimeProvider: runtimeProviderSchema
|
|
4339
4343
|
});
|
|
4344
|
+
paginationQuerySchema.extend({
|
|
4345
|
+
type: agentTypeSchema.optional(),
|
|
4346
|
+
query: z.string().trim().max(60).optional()
|
|
4347
|
+
});
|
|
4340
4348
|
const githubEntityTypeSchema = z.enum([
|
|
4341
4349
|
"issue",
|
|
4342
4350
|
"pull_request",
|
|
@@ -4763,10 +4771,6 @@ const capabilityEntrySchema = z.object({
|
|
|
4763
4771
|
*/
|
|
4764
4772
|
const clientCapabilitiesSchema = z.record(z.string(), capabilityEntrySchema);
|
|
4765
4773
|
z.object({ capabilities: clientCapabilitiesSchema });
|
|
4766
|
-
z.object({
|
|
4767
|
-
limit: z.coerce.number().int().min(1).max(100).default(20),
|
|
4768
|
-
cursor: z.string().optional()
|
|
4769
|
-
});
|
|
4770
4774
|
const contextTreeSnapshotStatusSchema = z.enum([
|
|
4771
4775
|
"active",
|
|
4772
4776
|
"stale",
|
|
@@ -15454,7 +15458,7 @@ async function onboardCreate(args) {
|
|
|
15454
15458
|
}
|
|
15455
15459
|
const runtimeAgent = args.type === "human" ? args.assistant : args.id;
|
|
15456
15460
|
if (args.feishuBotAppId && args.feishuBotAppSecret) {
|
|
15457
|
-
const { bindFeishuBot } = await import("./feishu-
|
|
15461
|
+
const { bindFeishuBot } = await import("./feishu-DhB9_e2j.mjs");
|
|
15458
15462
|
const targetAgentUuid = args.type === "human" ? assistantUuid : primary.uuid;
|
|
15459
15463
|
if (!targetAgentUuid) print.line(`Warning: Cannot bind Feishu bot — no runtime agent available for "${args.id}".\n`);
|
|
15460
15464
|
else {
|
|
@@ -583,6 +583,10 @@ function deriveRepoLocalPath(url) {
|
|
|
583
583
|
if (!trimmed) return "";
|
|
584
584
|
return ((trimmed.split(/[?#]/)[0] ?? "").split(/[/:]/).filter(Boolean).pop() ?? "").replace(/\.git$/i, "");
|
|
585
585
|
}
|
|
586
|
+
const paginationQuerySchema = z.object({
|
|
587
|
+
limit: z.coerce.number().int().min(1).max(100).default(20),
|
|
588
|
+
cursor: z.string().optional()
|
|
589
|
+
});
|
|
586
590
|
const presenceStatusSchema = z.enum(["online", "offline"]);
|
|
587
591
|
const runtimeStateSchema = z.enum([
|
|
588
592
|
"idle",
|
|
@@ -750,6 +754,10 @@ z.object({
|
|
|
750
754
|
agentType: agentTypeSchema,
|
|
751
755
|
runtimeProvider: runtimeProviderSchema
|
|
752
756
|
});
|
|
757
|
+
paginationQuerySchema.extend({
|
|
758
|
+
type: agentTypeSchema.optional(),
|
|
759
|
+
query: z.string().trim().max(60).optional()
|
|
760
|
+
});
|
|
753
761
|
const githubEntityTypeSchema = z.enum([
|
|
754
762
|
"issue",
|
|
755
763
|
"pull_request",
|
|
@@ -1176,10 +1184,6 @@ const capabilityEntrySchema = z.object({
|
|
|
1176
1184
|
*/
|
|
1177
1185
|
const clientCapabilitiesSchema = z.record(z.string(), capabilityEntrySchema);
|
|
1178
1186
|
z.object({ capabilities: clientCapabilitiesSchema });
|
|
1179
|
-
z.object({
|
|
1180
|
-
limit: z.coerce.number().int().min(1).max(100).default(20),
|
|
1181
|
-
cursor: z.string().optional()
|
|
1182
|
-
});
|
|
1183
1187
|
const contextTreeSnapshotStatusSchema = z.enum([
|
|
1184
1188
|
"active",
|
|
1185
1189
|
"stale",
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as blank, d as status, n as bindFeishuUser, t as bindFeishuBot } from "./feishu-
|
|
2
|
-
import { A as installClientService, B as rotateClientIdWithBackup, C as checkClientConfig, D as printResults, E as checkWebSocket, F as startClientService, H as AuthRefreshRateLimitedError, I as stopClientService, K as resolveAccessToken, L as uninstallClientService, N as resolveCliInvocation, P as restartClientService, R as ClientRuntime, T as checkServerReachable, U as ensureFreshAccessToken, V as AuthRefreshFailedError, W as ensureFreshAdminToken, _ as onboardCheck, g as formatCheckReport, h as promptMissingFields, ht as SdkError, j as isServiceSupported, k as getClientServiceStatus, m as promptAddAgent, mt as FirstTreeHubSDK, p as isInteractive, q as resolveServerUrl, r as deriveHubUrlFromToken, t as HubUrlDerivationError, v as onboardCreate, w as checkNodeVersion, x as checkAgentConfigs, z as handleClientOrgMismatch } from "./connect-token-
|
|
1
|
+
import { c as blank, d as status, n as bindFeishuUser, t as bindFeishuBot } from "./feishu-gkap_IB8.mjs";
|
|
2
|
+
import { A as installClientService, B as rotateClientIdWithBackup, C as checkClientConfig, D as printResults, E as checkWebSocket, F as startClientService, H as AuthRefreshRateLimitedError, I as stopClientService, K as resolveAccessToken, L as uninstallClientService, N as resolveCliInvocation, P as restartClientService, R as ClientRuntime, T as checkServerReachable, U as ensureFreshAccessToken, V as AuthRefreshFailedError, W as ensureFreshAdminToken, _ as onboardCheck, g as formatCheckReport, h as promptMissingFields, ht as SdkError, j as isServiceSupported, k as getClientServiceStatus, m as promptAddAgent, mt as FirstTreeHubSDK, p as isInteractive, q as resolveServerUrl, r as deriveHubUrlFromToken, t as HubUrlDerivationError, v as onboardCreate, w as checkNodeVersion, x as checkAgentConfigs, z as handleClientOrgMismatch } from "./connect-token-Drbpm2TP.mjs";
|
|
3
3
|
export { AuthRefreshFailedError, AuthRefreshRateLimitedError, ClientRuntime, FirstTreeHubSDK, HubUrlDerivationError, SdkError, bindFeishuBot, bindFeishuUser, blank, checkAgentConfigs, checkClientConfig, checkNodeVersion, checkServerReachable, checkWebSocket, deriveHubUrlFromToken, ensureFreshAccessToken, ensureFreshAdminToken, formatCheckReport, getClientServiceStatus, handleClientOrgMismatch, installClientService, isInteractive, isServiceSupported, onboardCheck, onboardCreate, printResults, promptAddAgent, promptMissingFields, resolveAccessToken, resolveCliInvocation, resolveServerUrl, restartClientService, rotateClientIdWithBackup, startClientService, status, stopClientService, uninstallClientService };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "first-tree-staging",
|
|
3
|
-
"version": "0.5.2-staging.
|
|
3
|
+
"version": "0.5.2-staging.36.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "First Tree — unified CLI for Context Tree onboarding, GitHub Scan automation, agent management, and Hub messaging. (Source-tree dev build; CI rewrites `name` and `bin` for prod / staging publishes — see docs/local-dev-isolation.md.)",
|
|
6
6
|
"keywords": [
|
package/dist/feishu-S2IdFiQv.mjs
DELETED