@thinkingai/ae-cli 6.0.51 → 6.0.53
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/README.md +7 -1
- package/README.zh.md +7 -1
- package/dist/{auth-XZNXFRJS.js → auth-LHM7NQPR.js} +167 -7
- package/dist/{capability-RJZ4KRGP.js → capability-F2RIR5DS.js} +11 -6
- package/dist/{chunk-57RRFUEZ.js → chunk-5XRQ3CZR.js} +4 -4
- package/dist/{chunk-L2QUIZTS.js → chunk-647BRKZK.js} +3 -3
- package/dist/{chunk-EQ255HKO.js → chunk-7WZACOAI.js} +2 -2
- package/dist/{chunk-DX5CDO34.js → chunk-BW7JUDEI.js} +84 -19
- package/dist/{chunk-7XGFSUOM.js → chunk-DU72X2IO.js} +271 -76
- package/dist/{chunk-V2NUHPXF.js → chunk-GK7WDY7E.js} +1 -1
- package/dist/{chunk-7FTTULED.js → chunk-IG3DYEIR.js} +4 -1
- package/dist/{chunk-HBGADCKA.js → chunk-KJDOTPYU.js} +3 -3
- package/dist/{chunk-4NRCTUZJ.js → chunk-KS4DE3MX.js} +4 -4
- package/dist/{chunk-JOCDD4ON.js → chunk-N4BLPJC7.js} +1 -1
- package/dist/{chunk-WEPZ5M3Z.js → chunk-PGCIKZRE.js} +7 -4
- package/dist/{chunk-HFGZGYCG.js → chunk-QYXDJOLA.js} +252 -6
- package/dist/{chunk-DVMLWQD4.js → chunk-SO5LKIWP.js} +2 -2
- package/dist/{chunk-MAPZ7VB6.js → chunk-YVGXGTD6.js} +13 -0
- package/dist/{community-report-client-CU22W53K.js → community-report-client-6VJDDMJJ.js} +1 -1
- package/dist/{config-XO3LI3SA.js → config-XQWOPDHN.js} +25 -6
- package/dist/{context-IFJI3LIT.js → context-M3HDGEIR.js} +4 -4
- package/dist/{data-integration-HNGUKFIC.js → data-integration-XBTCGXQT.js} +6 -6
- package/dist/index.js +77 -40
- package/dist/{local-data-upload-client-GTRIT64F.js → local-data-upload-client-3P7NIVQ4.js} +1 -1
- package/dist/{memory-QGPSNCQS.js → memory-6APEB2JB.js} +4 -4
- package/dist/{metadata-JAQW7KGZ.js → metadata-V5ZDTKWZ.js} +7 -7
- package/dist/{model-RNPQXIBI.js → model-ZS7HVGKN.js} +4 -4
- package/dist/{personal-semantic-preference-QCZ2IZTK.js → personal-semantic-preference-2XANU3F6.js} +8 -6
- package/dist/{project-semantic-64JURXKF.js → project-semantic-LP3LY7QP.js} +7 -7
- package/dist/{sync-O45NXEQY.js → sync-EQLSTUS7.js} +7 -7
- package/dist/{te-agent-K5MSPNHJ.js → te-agent-Z3HCTKR7.js} +348 -55
- package/dist/{te-analysis-KQKCAI5H.js → te-analysis-3EVYQ3IO.js} +803 -57
- package/dist/{te-community-4OYU3BDA.js → te-community-Z7JACGF3.js} +3 -3
- package/dist/{te-dataops-NFIPB6FX.js → te-dataops-F7GQOIS6.js} +644 -276
- package/dist/{te-engage-HSVSRW22.js → te-engage-LFBU6WWH.js} +6 -6
- package/dist/{te-kb-3TS73NO6.js → te-kb-QJLJEX5K.js} +323 -181
- package/dist/{te-system-STMHLS5J.js → te-system-IXC43QHZ.js} +6 -6
- package/dist/{te-team-3I5AOX3N.js → te-team-BIZIKIHZ.js} +6 -6
- package/dist/{update-RZXLPCRH.js → update-W2SGQNKT.js} +4 -4
- package/package.json +11 -4
- package/skills/ae-agent/SKILL.md +9 -4
- package/skills/ae-agent/references/notification.md +40 -0
- package/skills/ae-analysis/SKILL.md +65 -13
- package/skills/ae-analysis/references/agent_review_submit_to_page.md +3 -1
- package/skills/ae-analysis/references/ai_models/event.md +6 -1
- package/skills/ae-analysis/references/ai_models/funnel.md +7 -1
- package/skills/ae-analysis/references/ai_models/heat_map.md +23 -0
- package/skills/ae-analysis/references/ai_models/interval.md +24 -0
- package/skills/ae-analysis/references/ai_models/path.md +20 -0
- package/skills/ae-analysis/references/ai_models/prop_analysis.md +2 -0
- package/skills/ae-analysis/references/ai_models/rank_list.md +30 -0
- package/skills/ae-analysis/references/ai_models/retention.md +45 -1
- package/skills/ae-analysis/references/ai_models/revenue.md +20 -2
- package/skills/ae-analysis/references/ai_models/tag.md +2 -0
- package/skills/ae-analysis/references/ai_models.md +72 -3
- package/skills/ae-analysis/references/analysis_data_retrieval.md +4 -0
- package/skills/ae-analysis/references/asset_batch_info_export.md +10 -0
- package/skills/ae-analysis/references/asset_batch_sql_export.md +13 -1
- package/skills/ae-analysis/references/asset_export.md +12 -1
- package/skills/ae-analysis/references/asset_list.md +1 -0
- package/skills/ae-analysis/references/asset_search.md +11 -5
- package/skills/ae-analysis/references/bi_panel_list.md +1 -1
- package/skills/ae-analysis/references/catalog_list.md +1 -1
- package/skills/ae-analysis/references/collaboration.md +48 -0
- package/skills/ae-analysis/references/command_index.md +16 -15
- package/skills/ae-analysis/references/dashboard_list.md +4 -4
- package/skills/ae-analysis/references/dashboard_report_data_export.md +2 -0
- package/skills/ae-analysis/references/event_export.md +3 -1
- package/skills/ae-analysis/references/governance_recommendation_auto_review.md +71 -0
- package/skills/ae-analysis/references/governance_recommendation_export.md +11 -0
- package/skills/ae-analysis/references/metadata_resolution.md +3 -3
- package/skills/ae-analysis/references/metric_export.md +3 -1
- package/skills/ae-analysis/references/metric_list.md +1 -1
- package/skills/ae-analysis/references/operation_record_export.md +10 -0
- package/skills/ae-analysis/references/personal_semantic_preference_add.md +2 -2
- package/skills/ae-analysis/references/personal_semantic_preference_get.md +6 -4
- package/skills/ae-analysis/references/personal_semantic_preference_list.md +5 -3
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +3 -3
- package/skills/ae-analysis/references/property_export.md +3 -1
- package/skills/ae-analysis/references/report_create.md +4 -0
- package/skills/ae-analysis/references/report_data_export.md +6 -0
- package/skills/ae-analysis/references/report_get.md +2 -0
- package/skills/ae-analysis/references/report_list.md +5 -5
- package/skills/ae-analysis/references/report_update.md +6 -0
- package/skills/ae-analysis/references/sql_table_columns.md +4 -4
- package/skills/ae-analysis/references/sql_table_list.md +5 -5
- package/skills/ae-analysis/references/user_cluster_models.md +8 -0
- package/skills/ae-analysis/references/user_tag_create.md +7 -1
- package/skills/ae-analysis/references/user_tag_get.md +1 -1
- package/skills/ae-analysis/references/user_tag_models.md +18 -2
- package/skills/ae-analysis/references/user_tag_refresh.md +1 -1
- package/skills/ae-analysis/references/user_tag_update.md +2 -2
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +1 -1
- package/skills/ae-capability/SKILL.md +63 -1
- package/skills/ae-capability/references/collaboration.md +48 -0
- package/skills/ae-community/SKILL.md +5 -1
- package/skills/ae-community/references/collaboration.md +48 -0
- package/skills/ae-data-integration/SKILL.md +4 -0
- package/skills/ae-data-integration/references/collaboration.md +48 -0
- package/skills/ae-data-integration-helper/references/cpp_server_sdk_faq.md +2 -2
- package/skills/ae-data-integration-helper/references/logbus2_parser_plugin.md +6 -6
- package/skills/ae-data-integration-helper/references/sdk_log_guide.md +4 -4
- package/skills/ae-dataops/SKILL.md +54 -74
- package/skills/ae-dataops/references/collaboration.md +48 -0
- package/skills/ae-dataops/references/dataops-backfill.md +23 -18
- package/skills/ae-dataops/references/dataops-flow-create.md +74 -23
- package/skills/ae-dataops/references/dataops-flow-monitor.md +45 -13
- package/skills/ae-dataops/references/dataops-integration.md +57 -30
- package/skills/ae-dataops/references/dataops-query.md +21 -4
- package/skills/ae-dataops/references/dataops-table.md +143 -11
- package/skills/ae-engage/SKILL.md +21 -6
- package/skills/ae-engage/references/add-channel.md +3 -3
- package/skills/ae-engage/references/channel-mgmt.md +3 -3
- package/skills/ae-engage/references/collaboration.md +48 -0
- package/skills/ae-engage/references/common-metric.md +2 -2
- package/skills/ae-engage/references/save-task.md +2 -2
- package/skills/ae-engage/references/scene-config-channel.md +4 -4
- package/skills/ae-generate-tracking-code/SKILL.md +1 -1
- package/skills/ae-generate-tracking-plan/SKILL.md +4 -0
- package/skills/ae-generate-tracking-plan/references/collaboration.md +48 -0
- package/skills/ae-kb/SKILL.md +9 -1
- package/skills/ae-kb/references/collaboration.md +48 -0
- package/skills/ae-kb/references/schema-import.md +30 -0
- package/skills/ae-kb-discovery/SKILL.md +7 -2
- package/skills/ae-kb-discovery/references/collaboration.md +48 -0
- package/skills/ae-metadata/SKILL.md +20 -12
- package/skills/ae-metadata/references/collaboration.md +48 -0
package/dist/index.js
CHANGED
|
@@ -20,48 +20,54 @@ import {
|
|
|
20
20
|
validateAndFix,
|
|
21
21
|
validateDraft,
|
|
22
22
|
writeDraftXlsx
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-KS4DE3MX.js";
|
|
24
|
+
import "./chunk-SO5LKIWP.js";
|
|
25
|
+
import "./chunk-7WZACOAI.js";
|
|
26
|
+
import "./chunk-GK7WDY7E.js";
|
|
27
27
|
import {
|
|
28
28
|
resolveHost
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-N4BLPJC7.js";
|
|
30
30
|
import {
|
|
31
31
|
TeAgentApiError,
|
|
32
32
|
TeAgentCredentialsError
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-KJDOTPYU.js";
|
|
34
34
|
import {
|
|
35
35
|
CapabilityGatewayError,
|
|
36
36
|
executeCapability,
|
|
37
37
|
uploadInputFileBytes
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-QYXDJOLA.js";
|
|
39
39
|
import {
|
|
40
|
+
fetchCliConfig,
|
|
40
41
|
formatCapabilityMissCompatHint,
|
|
41
42
|
printError,
|
|
42
43
|
printOutput,
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
resolveKbAutoDiscoveryFeature,
|
|
45
|
+
runHostCompatCheck,
|
|
46
|
+
shouldSkipAutoSync
|
|
47
|
+
} from "./chunk-BW7JUDEI.js";
|
|
45
48
|
import "./chunk-Y74WTIKJ.js";
|
|
46
49
|
import {
|
|
50
|
+
CredentialStoreUnreadableError,
|
|
47
51
|
SecureStoreAuthError,
|
|
48
|
-
getCliToken
|
|
49
|
-
|
|
52
|
+
getCliToken,
|
|
53
|
+
peekCliToken
|
|
54
|
+
} from "./chunk-DU72X2IO.js";
|
|
50
55
|
import {
|
|
51
56
|
getActiveHost,
|
|
52
57
|
getConfigDir,
|
|
53
58
|
safeJsonParse
|
|
54
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-IG3DYEIR.js";
|
|
55
60
|
import {
|
|
61
|
+
CliApiError,
|
|
56
62
|
CliValidationError,
|
|
57
63
|
CommunityReportError,
|
|
58
64
|
LocalDataUploadError,
|
|
59
65
|
PermissionError,
|
|
60
66
|
logger
|
|
61
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-YVGXGTD6.js";
|
|
62
68
|
|
|
63
69
|
// src/index.ts
|
|
64
|
-
import { Command as CommanderCommand } from "commander";
|
|
70
|
+
import { Command as CommanderCommand, Option } from "commander";
|
|
65
71
|
import { createRequire } from "module";
|
|
66
72
|
|
|
67
73
|
// src/framework/runner.ts
|
|
@@ -232,12 +238,16 @@ async function runCommand(cmd, opts, globalOpts) {
|
|
|
232
238
|
printError("config", message, err.hint);
|
|
233
239
|
} else if (err instanceof PermissionError) {
|
|
234
240
|
printError("permission", message, err.hint, err.code);
|
|
241
|
+
} else if (err instanceof CliApiError) {
|
|
242
|
+
printError("api", message, err.hint, err.code, err.meta);
|
|
235
243
|
} else if (err instanceof CapabilityGatewayError) {
|
|
236
244
|
printError(err.type, message, err.hint ?? capabilityGatewayHint(err), err.code, err.meta);
|
|
237
245
|
} else if (err instanceof CommunityReportError) {
|
|
238
246
|
printError("api", message, err.hint, err.code, err.meta, { log: false });
|
|
239
247
|
} else if (err instanceof LocalDataUploadError) {
|
|
240
248
|
printError("api", message, err.hint, err.code, err.meta, { log: false });
|
|
249
|
+
} else if (err instanceof CredentialStoreUnreadableError) {
|
|
250
|
+
printError("config", message, err.hint, err.code);
|
|
241
251
|
} else if (err instanceof SecureStoreAuthError) {
|
|
242
252
|
printError("auth", message, "Run: ae-cli auth login");
|
|
243
253
|
} else if (err instanceof TeAgentApiError) {
|
|
@@ -302,14 +312,14 @@ function createRuntimeContext(cmd, opts, globalOpts) {
|
|
|
302
312
|
let _communityReportModule = null;
|
|
303
313
|
async function getCommunityReportClient() {
|
|
304
314
|
if (!_communityReportModule) {
|
|
305
|
-
_communityReportModule = await import("./community-report-client-
|
|
315
|
+
_communityReportModule = await import("./community-report-client-6VJDDMJJ.js");
|
|
306
316
|
}
|
|
307
317
|
return _communityReportModule;
|
|
308
318
|
}
|
|
309
319
|
let _localDataUploadModule = null;
|
|
310
320
|
async function getLocalDataUploadClient() {
|
|
311
321
|
if (!_localDataUploadModule) {
|
|
312
|
-
_localDataUploadModule = await import("./local-data-upload-client-
|
|
322
|
+
_localDataUploadModule = await import("./local-data-upload-client-3P7NIVQ4.js");
|
|
313
323
|
}
|
|
314
324
|
return _localDataUploadModule;
|
|
315
325
|
}
|
|
@@ -346,7 +356,7 @@ function createRuntimeContext(cmd, opts, globalOpts) {
|
|
|
346
356
|
list(name) {
|
|
347
357
|
const val = opts[camelCase(name)];
|
|
348
358
|
if (Array.isArray(val)) return val.map(String);
|
|
349
|
-
if (val === void 0 || val === null
|
|
359
|
+
if (val === void 0 || val === null) return [];
|
|
350
360
|
return [String(val)];
|
|
351
361
|
},
|
|
352
362
|
async communityReport(endpoint, rawBody) {
|
|
@@ -482,6 +492,20 @@ function extractGlobalOptions(program2) {
|
|
|
482
492
|
};
|
|
483
493
|
}
|
|
484
494
|
|
|
495
|
+
// src/core/feature-config-check.ts
|
|
496
|
+
async function runFeatureConfigCheck(hostOverride, argv = process.argv) {
|
|
497
|
+
if (shouldSkipAutoSync(argv) || argv.slice(2).some((arg) => arg === "--help" || arg === "-h" || arg === "--version" || arg === "-V")) return void 0;
|
|
498
|
+
try {
|
|
499
|
+
const host = hostOverride || getActiveHost();
|
|
500
|
+
if (!host) return void 0;
|
|
501
|
+
const token = peekCliToken(host);
|
|
502
|
+
if (!token) return void 0;
|
|
503
|
+
return await resolveKbAutoDiscoveryFeature(host, token, () => fetchCliConfig(host, token));
|
|
504
|
+
} catch {
|
|
505
|
+
return void 0;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
|
|
485
509
|
// src/commands/tracking/plan.ts
|
|
486
510
|
import { readFile, writeFile, cp } from "fs/promises";
|
|
487
511
|
import path2, { resolve as resolve2 } from "path";
|
|
@@ -1502,7 +1526,10 @@ async function detectProject(cwd) {
|
|
|
1502
1526
|
// src/tracking/xlsx/read.ts
|
|
1503
1527
|
import * as nodeFs from "fs";
|
|
1504
1528
|
import path3 from "path";
|
|
1505
|
-
set_fs
|
|
1529
|
+
var setXlsxFs = set_fs;
|
|
1530
|
+
if (typeof setXlsxFs === "function") {
|
|
1531
|
+
setXlsxFs(nodeFs);
|
|
1532
|
+
}
|
|
1506
1533
|
var VALID_PROP_TYPES = /* @__PURE__ */ new Set(["string", "number", "bool", "datetime", "object", "array_row", "array_string"]);
|
|
1507
1534
|
var VALID_UPDATE_TYPES = /* @__PURE__ */ new Set(["user_set", "user_setOnce", "user_add", "user_append"]);
|
|
1508
1535
|
function normalizeHeader(h) {
|
|
@@ -2258,7 +2285,13 @@ function getOrCreateCommand(parent, name, description) {
|
|
|
2258
2285
|
|
|
2259
2286
|
// src/framework/program-lifecycle.ts
|
|
2260
2287
|
async function parseProgram(program2, argv = process.argv) {
|
|
2261
|
-
|
|
2288
|
+
try {
|
|
2289
|
+
await program2.parseAsync(normalizeSubcommandVersionOption(program2, argv));
|
|
2290
|
+
} catch (error) {
|
|
2291
|
+
if (!(error instanceof CredentialStoreUnreadableError)) throw error;
|
|
2292
|
+
printError("config", error.message, error.hint, error.code);
|
|
2293
|
+
process.exitCode = 1;
|
|
2294
|
+
}
|
|
2262
2295
|
}
|
|
2263
2296
|
function normalizeSubcommandVersionOption(program2, argv) {
|
|
2264
2297
|
const normalized = [...argv];
|
|
@@ -2329,6 +2362,9 @@ program.name("ae-cli").version(version).description("CLI tool for ThinkingAI (AE
|
|
|
2329
2362
|
"Optional: pre-execution preview without business logic (gateway /dry-run; other transports preview). Use alone to confirm a run; do not stack with --validate",
|
|
2330
2363
|
false
|
|
2331
2364
|
).option("--yes", "Skip confirmation for high-risk write operations", false).option("--no-update-check", "Skip host compatibility checks", false);
|
|
2365
|
+
program.addOption(
|
|
2366
|
+
new Option("--agent-context <base64url-json>", "Internal agent context payload for gateway telemetry").hideHelp()
|
|
2367
|
+
);
|
|
2332
2368
|
function warnLoadFailure(label, err) {
|
|
2333
2369
|
const reason = err instanceof Error ? err.message : String(err);
|
|
2334
2370
|
process.stderr.write(`warning: failed to load ${label}: ${reason}
|
|
@@ -2337,85 +2373,85 @@ function warnLoadFailure(label, err) {
|
|
|
2337
2373
|
async function loadCommands() {
|
|
2338
2374
|
const commands = [];
|
|
2339
2375
|
try {
|
|
2340
|
-
const teAnalysis = await import("./te-analysis-
|
|
2376
|
+
const teAnalysis = await import("./te-analysis-3EVYQ3IO.js");
|
|
2341
2377
|
commands.push(...teAnalysis.default);
|
|
2342
2378
|
} catch (err) {
|
|
2343
2379
|
warnLoadFailure("domain te-analysis", err);
|
|
2344
2380
|
}
|
|
2345
2381
|
try {
|
|
2346
|
-
const engage = await import("./te-engage-
|
|
2382
|
+
const engage = await import("./te-engage-LFBU6WWH.js");
|
|
2347
2383
|
commands.push(...engage.default);
|
|
2348
2384
|
} catch (err) {
|
|
2349
2385
|
warnLoadFailure("domain te-engage", err);
|
|
2350
2386
|
}
|
|
2351
2387
|
try {
|
|
2352
|
-
const community = await import("./te-community-
|
|
2388
|
+
const community = await import("./te-community-Z7JACGF3.js");
|
|
2353
2389
|
commands.push(...community.default);
|
|
2354
2390
|
} catch (err) {
|
|
2355
2391
|
warnLoadFailure("domain te-community", err);
|
|
2356
2392
|
}
|
|
2357
2393
|
try {
|
|
2358
|
-
const dataops = await import("./te-dataops-
|
|
2394
|
+
const dataops = await import("./te-dataops-F7GQOIS6.js");
|
|
2359
2395
|
commands.push(...dataops.default);
|
|
2360
2396
|
} catch (err) {
|
|
2361
2397
|
warnLoadFailure("domain te-dataops", err);
|
|
2362
2398
|
}
|
|
2363
2399
|
try {
|
|
2364
|
-
const teKb = await import("./te-kb-
|
|
2400
|
+
const teKb = await import("./te-kb-QJLJEX5K.js");
|
|
2365
2401
|
commands.push(...teKb.default);
|
|
2366
2402
|
} catch (err) {
|
|
2367
2403
|
warnLoadFailure("domain te-kb", err);
|
|
2368
2404
|
}
|
|
2369
2405
|
try {
|
|
2370
|
-
const teTeam = await import("./te-team-
|
|
2406
|
+
const teTeam = await import("./te-team-BIZIKIHZ.js");
|
|
2371
2407
|
commands.push(...teTeam.default);
|
|
2372
2408
|
} catch (err) {
|
|
2373
2409
|
warnLoadFailure("domain te-team", err);
|
|
2374
2410
|
}
|
|
2375
2411
|
try {
|
|
2376
|
-
const teAgent = await import("./te-agent-
|
|
2412
|
+
const teAgent = await import("./te-agent-Z3HCTKR7.js");
|
|
2377
2413
|
commands.push(...teAgent.default);
|
|
2378
2414
|
} catch (err) {
|
|
2379
2415
|
warnLoadFailure("domain te-agent", err);
|
|
2380
2416
|
}
|
|
2381
2417
|
try {
|
|
2382
|
-
const memory = await import("./memory-
|
|
2418
|
+
const memory = await import("./memory-6APEB2JB.js");
|
|
2383
2419
|
commands.push(...memory.default);
|
|
2384
2420
|
} catch (err) {
|
|
2385
2421
|
warnLoadFailure("domain memory", err);
|
|
2386
2422
|
}
|
|
2387
2423
|
try {
|
|
2388
|
-
const teSystem = await import("./te-system-
|
|
2424
|
+
const teSystem = await import("./te-system-IXC43QHZ.js");
|
|
2389
2425
|
commands.push(...teSystem.default);
|
|
2390
2426
|
} catch (err) {
|
|
2391
2427
|
warnLoadFailure("domain te-system", err);
|
|
2392
2428
|
}
|
|
2393
2429
|
try {
|
|
2394
|
-
const metadata = await import("./metadata-
|
|
2430
|
+
const metadata = await import("./metadata-V5ZDTKWZ.js");
|
|
2395
2431
|
commands.push(...metadata.default);
|
|
2396
2432
|
} catch (err) {
|
|
2397
2433
|
warnLoadFailure("domain metadata", err);
|
|
2398
2434
|
}
|
|
2399
2435
|
try {
|
|
2400
|
-
const personalSemanticPreference = await import("./personal-semantic-preference-
|
|
2436
|
+
const personalSemanticPreference = await import("./personal-semantic-preference-2XANU3F6.js");
|
|
2401
2437
|
commands.push(...personalSemanticPreference.default);
|
|
2402
2438
|
} catch (err) {
|
|
2403
2439
|
warnLoadFailure("domain personal-semantic-preference", err);
|
|
2404
2440
|
}
|
|
2405
2441
|
try {
|
|
2406
|
-
const projectSemantic = await import("./project-semantic-
|
|
2442
|
+
const projectSemantic = await import("./project-semantic-LP3LY7QP.js");
|
|
2407
2443
|
commands.push(...projectSemantic.default);
|
|
2408
2444
|
} catch (err) {
|
|
2409
2445
|
warnLoadFailure("domain project-semantic", err);
|
|
2410
2446
|
}
|
|
2411
2447
|
try {
|
|
2412
|
-
const dataIntegration = await import("./data-integration-
|
|
2448
|
+
const dataIntegration = await import("./data-integration-XBTCGXQT.js");
|
|
2413
2449
|
commands.push(...dataIntegration.default);
|
|
2414
2450
|
} catch (err) {
|
|
2415
2451
|
warnLoadFailure("domain data-integration", err);
|
|
2416
2452
|
}
|
|
2417
2453
|
try {
|
|
2418
|
-
const context = await import("./context-
|
|
2454
|
+
const context = await import("./context-M3HDGEIR.js");
|
|
2419
2455
|
commands.push(...context.default);
|
|
2420
2456
|
} catch (err) {
|
|
2421
2457
|
warnLoadFailure("domain context", err);
|
|
@@ -2424,7 +2460,7 @@ async function loadCommands() {
|
|
|
2424
2460
|
}
|
|
2425
2461
|
async function registerAuthCommands() {
|
|
2426
2462
|
try {
|
|
2427
|
-
const { registerAuth } = await import("./auth-
|
|
2463
|
+
const { registerAuth } = await import("./auth-LHM7NQPR.js");
|
|
2428
2464
|
registerAuth(program);
|
|
2429
2465
|
} catch (err) {
|
|
2430
2466
|
warnLoadFailure("auth commands", err);
|
|
@@ -2432,7 +2468,7 @@ async function registerAuthCommands() {
|
|
|
2432
2468
|
}
|
|
2433
2469
|
async function registerConfigCommands() {
|
|
2434
2470
|
try {
|
|
2435
|
-
const { registerConfig } = await import("./config-
|
|
2471
|
+
const { registerConfig } = await import("./config-XQWOPDHN.js");
|
|
2436
2472
|
registerConfig(program);
|
|
2437
2473
|
} catch (err) {
|
|
2438
2474
|
warnLoadFailure("config commands", err);
|
|
@@ -2440,7 +2476,7 @@ async function registerConfigCommands() {
|
|
|
2440
2476
|
}
|
|
2441
2477
|
async function registerCapabilityCommands() {
|
|
2442
2478
|
try {
|
|
2443
|
-
const { registerCapability } = await import("./capability-
|
|
2479
|
+
const { registerCapability } = await import("./capability-F2RIR5DS.js");
|
|
2444
2480
|
registerCapability(program);
|
|
2445
2481
|
} catch (err) {
|
|
2446
2482
|
warnLoadFailure("capability commands", err);
|
|
@@ -2448,7 +2484,7 @@ async function registerCapabilityCommands() {
|
|
|
2448
2484
|
}
|
|
2449
2485
|
async function registerSyncCommand() {
|
|
2450
2486
|
try {
|
|
2451
|
-
const { registerSync } = await import("./sync-
|
|
2487
|
+
const { registerSync } = await import("./sync-EQLSTUS7.js");
|
|
2452
2488
|
registerSync(program);
|
|
2453
2489
|
} catch (err) {
|
|
2454
2490
|
warnLoadFailure("sync commands", err);
|
|
@@ -2456,7 +2492,7 @@ async function registerSyncCommand() {
|
|
|
2456
2492
|
}
|
|
2457
2493
|
async function registerModelCommand() {
|
|
2458
2494
|
try {
|
|
2459
|
-
const { registerModel } = await import("./model-
|
|
2495
|
+
const { registerModel } = await import("./model-ZS7HVGKN.js");
|
|
2460
2496
|
registerModel(program);
|
|
2461
2497
|
} catch (err) {
|
|
2462
2498
|
warnLoadFailure("model commands", err);
|
|
@@ -2464,7 +2500,7 @@ async function registerModelCommand() {
|
|
|
2464
2500
|
}
|
|
2465
2501
|
async function registerUpdateCommand() {
|
|
2466
2502
|
try {
|
|
2467
|
-
const { registerUpdate } = await import("./update-
|
|
2503
|
+
const { registerUpdate } = await import("./update-W2SGQNKT.js");
|
|
2468
2504
|
registerUpdate(program);
|
|
2469
2505
|
} catch (err) {
|
|
2470
2506
|
warnLoadFailure("update commands", err);
|
|
@@ -2497,6 +2533,7 @@ async function main() {
|
|
|
2497
2533
|
return;
|
|
2498
2534
|
}
|
|
2499
2535
|
}
|
|
2536
|
+
await runFeatureConfigCheck(globalOptionValue(process.argv.slice(2), "--host"));
|
|
2500
2537
|
const commands = await loadCommands();
|
|
2501
2538
|
registerCommands(program, commands);
|
|
2502
2539
|
await registerAuthCommands();
|
|
@@ -2542,7 +2579,7 @@ function optionConsumesValue(token) {
|
|
|
2542
2579
|
if (token.includes("=")) {
|
|
2543
2580
|
return false;
|
|
2544
2581
|
}
|
|
2545
|
-
return token === "--host" || token === "--mcp-url" || token === "--format" || token === "--jq";
|
|
2582
|
+
return token === "--host" || token === "--mcp-url" || token === "--format" || token === "--jq" || token === "--agent-context";
|
|
2546
2583
|
}
|
|
2547
2584
|
function globalOptionValue(args, option) {
|
|
2548
2585
|
for (let i = 0; i < args.length; i += 1) {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
LocalDataUploadError,
|
|
4
4
|
logger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YVGXGTD6.js";
|
|
6
6
|
|
|
7
7
|
// src/core/local-data-upload-client.ts
|
|
8
8
|
import { createHash } from "crypto";
|
|
@@ -2,11 +2,11 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
buildCapabilityGatewayUrl,
|
|
4
4
|
callCapabilityApi
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QYXDJOLA.js";
|
|
6
6
|
import "./chunk-Y74WTIKJ.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-DU72X2IO.js";
|
|
8
|
+
import "./chunk-IG3DYEIR.js";
|
|
9
|
+
import "./chunk-YVGXGTD6.js";
|
|
10
10
|
|
|
11
11
|
// src/commands/memory/index.ts
|
|
12
12
|
import fs from "fs/promises";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
withAsyncArtifactLifecycle
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PGCIKZRE.js";
|
|
5
5
|
import {
|
|
6
6
|
createCapabilityCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-647BRKZK.js";
|
|
8
8
|
import {
|
|
9
9
|
registerCapabilityGatewayRoute
|
|
10
10
|
} from "./chunk-KPQY44JQ.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-QYXDJOLA.js";
|
|
12
|
+
import "./chunk-BW7JUDEI.js";
|
|
13
13
|
import "./chunk-Y74WTIKJ.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-DU72X2IO.js";
|
|
15
|
+
import "./chunk-IG3DYEIR.js";
|
|
16
|
+
import "./chunk-YVGXGTD6.js";
|
|
17
17
|
|
|
18
18
|
// src/commands/metadata/shared.ts
|
|
19
19
|
function createCapabilityCommand2(config) {
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
getClaudeConfigDir,
|
|
13
13
|
getSandboxModels,
|
|
14
14
|
postSandboxModelSelection
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KJDOTPYU.js";
|
|
16
16
|
import "./chunk-Y74WTIKJ.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-DU72X2IO.js";
|
|
18
|
+
import "./chunk-IG3DYEIR.js";
|
|
19
|
+
import "./chunk-YVGXGTD6.js";
|
|
20
20
|
|
|
21
21
|
// src/commands/model/index.ts
|
|
22
22
|
import { existsSync, readFileSync } from "fs";
|
package/dist/{personal-semantic-preference-QCZ2IZTK.js → personal-semantic-preference-2XANU3F6.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createCapabilityCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-647BRKZK.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCapabilityGatewayRoute
|
|
7
7
|
} from "./chunk-KPQY44JQ.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-QYXDJOLA.js";
|
|
9
|
+
import "./chunk-BW7JUDEI.js";
|
|
10
10
|
import "./chunk-Y74WTIKJ.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-DU72X2IO.js";
|
|
12
|
+
import "./chunk-IG3DYEIR.js";
|
|
13
|
+
import "./chunk-YVGXGTD6.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/personal-semantic-preference/shared.ts
|
|
16
16
|
function createPersonalSemanticPreferenceCommand(config) {
|
|
@@ -161,12 +161,14 @@ var personalSemanticPreferenceGet = createPersonalSemanticPreferenceCommand({
|
|
|
161
161
|
flags: [
|
|
162
162
|
{ name: "project-id", type: "number", required: true, desc: "Numeric project ID.", alias: "p", min: 1 },
|
|
163
163
|
{ name: "id", type: "string", required: true, desc: "Preference ID returned by list/add." },
|
|
164
|
+
{ name: "title", type: "string", required: true, desc: "Preference title copied from list output for telemetry only.", minLength: 1, maxLength: 255 },
|
|
164
165
|
{ name: "mark-used", type: "boolean", desc: "Count this preference as adopted and update its usage heat." }
|
|
165
166
|
],
|
|
166
167
|
risk: "read",
|
|
167
168
|
buildInput: (ctx) => ({
|
|
168
169
|
project_id: ctx.num("project-id"),
|
|
169
170
|
id: ctx.str("id"),
|
|
171
|
+
title: ctx.str("title"),
|
|
170
172
|
mark_used: ctx.bool("mark-used")
|
|
171
173
|
})
|
|
172
174
|
});
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
assertOutputPathAvailable,
|
|
4
4
|
downloadAnalysisArtifact,
|
|
5
5
|
withAsyncArtifactLifecycle
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PGCIKZRE.js";
|
|
7
7
|
import {
|
|
8
8
|
registerCapabilityGatewayRoute,
|
|
9
9
|
resolveGatewayDomain
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
dryRunCapability,
|
|
14
14
|
executeCapabilityWithEnvelope,
|
|
15
15
|
validateCapability
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-QYXDJOLA.js";
|
|
17
|
+
import "./chunk-BW7JUDEI.js";
|
|
18
18
|
import "./chunk-Y74WTIKJ.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-DU72X2IO.js";
|
|
20
|
+
import "./chunk-IG3DYEIR.js";
|
|
21
|
+
import "./chunk-YVGXGTD6.js";
|
|
22
22
|
|
|
23
23
|
// src/commands/project-semantic/asset-package/materializer.ts
|
|
24
24
|
import { createHash, randomBytes } from "crypto";
|
|
@@ -318,7 +318,7 @@ var assetPackageExportCommand = {
|
|
|
318
318
|
resource: "asset-package",
|
|
319
319
|
command: "export",
|
|
320
320
|
description: "Export and materialize a knowledge-ready project asset package for CLI Agent consumption.",
|
|
321
|
-
helpText: "Requires
|
|
321
|
+
helpText: "Requires access to the target project. Explicit asset-package export is independent of automatic knowledge-base discovery.",
|
|
322
322
|
flags: [
|
|
323
323
|
{ name: "project-id", type: "number", required: true, desc: "Numeric project ID.", alias: "p", min: 1 },
|
|
324
324
|
{
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
} from "./chunk-T6OSFQZD.js";
|
|
22
22
|
import {
|
|
23
23
|
require_lib
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-SO5LKIWP.js";
|
|
25
|
+
import "./chunk-GK7WDY7E.js";
|
|
26
26
|
import {
|
|
27
27
|
TeAgentApiError,
|
|
28
28
|
TeAgentCredentialsError,
|
|
@@ -30,16 +30,16 @@ import {
|
|
|
30
30
|
postSandboxSyncPull,
|
|
31
31
|
postToMainApp,
|
|
32
32
|
uploadToMainApp
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-KJDOTPYU.js";
|
|
34
34
|
import {
|
|
35
35
|
printError
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-BW7JUDEI.js";
|
|
37
37
|
import "./chunk-Y74WTIKJ.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-DU72X2IO.js";
|
|
39
|
+
import "./chunk-IG3DYEIR.js";
|
|
40
40
|
import {
|
|
41
41
|
__toESM
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-YVGXGTD6.js";
|
|
43
43
|
|
|
44
44
|
// src/commands/sync/index.ts
|
|
45
45
|
var import_jszip = __toESM(require_lib(), 1);
|