@thinkingai/ae-cli 6.1.23 → 6.1.25

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.
Files changed (142) hide show
  1. package/README.md +7 -1
  2. package/README.zh.md +7 -1
  3. package/dist/{auth-XZNXFRJS.js → auth-LHM7NQPR.js} +167 -7
  4. package/dist/{capability-FYTU3X6L.js → capability-SJI5KOCK.js} +11 -6
  5. package/dist/{chunk-CCS66K4K.js → chunk-2FJM4HRV.js} +3 -3
  6. package/dist/{chunk-57RRFUEZ.js → chunk-5XRQ3CZR.js} +4 -4
  7. package/dist/{chunk-EQ255HKO.js → chunk-7WZACOAI.js} +2 -2
  8. package/dist/{chunk-DX5CDO34.js → chunk-BW7JUDEI.js} +84 -19
  9. package/dist/{chunk-7XGFSUOM.js → chunk-DU72X2IO.js} +271 -76
  10. package/dist/{chunk-V2NUHPXF.js → chunk-GK7WDY7E.js} +1 -1
  11. package/dist/{chunk-7FTTULED.js → chunk-IG3DYEIR.js} +4 -1
  12. package/dist/{chunk-HBGADCKA.js → chunk-KJDOTPYU.js} +3 -3
  13. package/dist/{chunk-4NRCTUZJ.js → chunk-KS4DE3MX.js} +4 -4
  14. package/dist/{chunk-JOCDD4ON.js → chunk-N4BLPJC7.js} +1 -1
  15. package/dist/{chunk-HFGZGYCG.js → chunk-QYXDJOLA.js} +252 -6
  16. package/dist/{chunk-DVMLWQD4.js → chunk-SO5LKIWP.js} +2 -2
  17. package/dist/{chunk-VYXXOKYS.js → chunk-XKIW3QMF.js} +7 -4
  18. package/dist/{chunk-MAPZ7VB6.js → chunk-YVGXGTD6.js} +13 -0
  19. package/dist/{community-report-client-CU22W53K.js → community-report-client-6VJDDMJJ.js} +1 -1
  20. package/dist/{config-XO3LI3SA.js → config-XQWOPDHN.js} +25 -6
  21. package/dist/{context-IFJI3LIT.js → context-M3HDGEIR.js} +4 -4
  22. package/dist/{data-integration-HNGUKFIC.js → data-integration-XBTCGXQT.js} +6 -6
  23. package/dist/index.js +78 -41
  24. package/dist/{local-data-upload-client-GTRIT64F.js → local-data-upload-client-3P7NIVQ4.js} +1 -1
  25. package/dist/{memory-QGPSNCQS.js → memory-6APEB2JB.js} +4 -4
  26. package/dist/{metadata-DI5BMYFU.js → metadata-JRYKNUS5.js} +7 -7
  27. package/dist/{model-RNPQXIBI.js → model-ZS7HVGKN.js} +4 -4
  28. package/dist/{personal-semantic-preference-5C3WUXFI.js → personal-semantic-preference-IDE2GE5T.js} +8 -6
  29. package/dist/project-semantic-36KOCYN7.js +356 -0
  30. package/dist/{sync-O45NXEQY.js → sync-EQLSTUS7.js} +7 -7
  31. package/dist/{te-agent-K5MSPNHJ.js → te-agent-Z3HCTKR7.js} +348 -55
  32. package/dist/{te-analysis-AISWCOOZ.js → te-analysis-5ZZ6YHVH.js} +940 -144
  33. package/dist/{te-community-4OYU3BDA.js → te-community-Z7JACGF3.js} +3 -3
  34. package/dist/{te-dataops-NFIPB6FX.js → te-dataops-F7GQOIS6.js} +644 -276
  35. package/dist/{te-engage-BAM3GBFX.js → te-engage-RNRMYDO3.js} +6 -6
  36. package/dist/{te-experiment-GUTZXZ5Z.js → te-experiment-BTAC2UNK.js} +6 -6
  37. package/dist/{te-kb-3TS73NO6.js → te-kb-QJLJEX5K.js} +323 -181
  38. package/dist/{te-system-STMHLS5J.js → te-system-IXC43QHZ.js} +6 -6
  39. package/dist/{te-team-3I5AOX3N.js → te-team-BIZIKIHZ.js} +6 -6
  40. package/dist/{update-RZXLPCRH.js → update-W2SGQNKT.js} +4 -4
  41. package/package.json +11 -4
  42. package/skills/ae-agent/SKILL.md +9 -4
  43. package/skills/ae-agent/references/notification.md +40 -0
  44. package/skills/ae-analysis/SKILL.md +44 -21
  45. package/skills/ae-analysis/references/adhoc_export.md +1 -1
  46. package/skills/ae-analysis/references/adhoc_run.md +1 -1
  47. package/skills/ae-analysis/references/agent_review_submit_to_page.md +3 -1
  48. package/skills/ae-analysis/references/ai_models/event.md +6 -1
  49. package/skills/ae-analysis/references/ai_models/funnel.md +7 -1
  50. package/skills/ae-analysis/references/ai_models/heat_map.md +23 -0
  51. package/skills/ae-analysis/references/ai_models/interval.md +24 -0
  52. package/skills/ae-analysis/references/ai_models/path.md +20 -0
  53. package/skills/ae-analysis/references/ai_models/prop_analysis.md +2 -0
  54. package/skills/ae-analysis/references/ai_models/rank_list.md +30 -0
  55. package/skills/ae-analysis/references/ai_models/retention.md +45 -1
  56. package/skills/ae-analysis/references/ai_models/revenue.md +20 -2
  57. package/skills/ae-analysis/references/ai_models/session.md +76 -0
  58. package/skills/ae-analysis/references/ai_models/tag.md +2 -0
  59. package/skills/ae-analysis/references/ai_models.md +76 -6
  60. package/skills/ae-analysis/references/analysis_data_retrieval.md +4 -0
  61. package/skills/ae-analysis/references/analysis_drilldown_contract.md +4 -1
  62. package/skills/ae-analysis/references/asset_batch_info_export.md +10 -0
  63. package/skills/ae-analysis/references/asset_batch_sql_export.md +13 -1
  64. package/skills/ae-analysis/references/asset_export.md +12 -1
  65. package/skills/ae-analysis/references/asset_list.md +1 -0
  66. package/skills/ae-analysis/references/asset_search.md +11 -5
  67. package/skills/ae-analysis/references/bi_panel_list.md +1 -1
  68. package/skills/ae-analysis/references/catalog_list.md +1 -1
  69. package/skills/ae-analysis/references/collaboration.md +48 -0
  70. package/skills/ae-analysis/references/command_index.md +19 -17
  71. package/skills/ae-analysis/references/dashboard_list.md +4 -4
  72. package/skills/ae-analysis/references/dashboard_report_data_export.md +2 -0
  73. package/skills/ae-analysis/references/drilldown_session_details_run.md +41 -0
  74. package/skills/ae-analysis/references/event_export.md +3 -1
  75. package/skills/ae-analysis/references/governance_recommendation_auto_review.md +77 -0
  76. package/skills/ae-analysis/references/governance_recommendation_export.md +11 -0
  77. package/skills/ae-analysis/references/metadata_resolution.md +3 -3
  78. package/skills/ae-analysis/references/metric_export.md +3 -1
  79. package/skills/ae-analysis/references/metric_list.md +1 -1
  80. package/skills/ae-analysis/references/operation_record_export.md +10 -0
  81. package/skills/ae-analysis/references/personal_semantic_preference_add.md +2 -2
  82. package/skills/ae-analysis/references/personal_semantic_preference_get.md +4 -4
  83. package/skills/ae-analysis/references/personal_semantic_preference_list.md +4 -4
  84. package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +30 -12
  85. package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +59 -0
  86. package/skills/ae-analysis/references/property_export.md +3 -1
  87. package/skills/ae-analysis/references/report_create.md +5 -1
  88. package/skills/ae-analysis/references/report_data_export.md +6 -0
  89. package/skills/ae-analysis/references/report_get.md +2 -0
  90. package/skills/ae-analysis/references/report_list.md +5 -5
  91. package/skills/ae-analysis/references/report_update.md +7 -1
  92. package/skills/ae-analysis/references/sql_table_columns.md +4 -4
  93. package/skills/ae-analysis/references/sql_table_list.md +5 -5
  94. package/skills/ae-analysis/references/user_cluster_models.md +8 -0
  95. package/skills/ae-analysis/references/user_tag_create.md +7 -1
  96. package/skills/ae-analysis/references/user_tag_get.md +1 -1
  97. package/skills/ae-analysis/references/user_tag_models.md +18 -2
  98. package/skills/ae-analysis/references/user_tag_refresh.md +1 -1
  99. package/skills/ae-analysis/references/user_tag_update.md +2 -2
  100. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +337 -12
  101. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +8 -3
  102. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/generate-build-ir.mjs +284 -24
  103. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/package-wiki-source-zip.mjs +185 -22
  104. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/precompiled-source.mjs +46 -2
  105. package/skills/ae-capability/SKILL.md +63 -1
  106. package/skills/ae-capability/references/collaboration.md +48 -0
  107. package/skills/ae-community/SKILL.md +5 -1
  108. package/skills/ae-community/references/collaboration.md +48 -0
  109. package/skills/ae-data-integration/SKILL.md +4 -0
  110. package/skills/ae-data-integration/references/collaboration.md +48 -0
  111. package/skills/ae-data-integration-helper/references/cpp_server_sdk_faq.md +2 -2
  112. package/skills/ae-data-integration-helper/references/logbus2_parser_plugin.md +6 -6
  113. package/skills/ae-data-integration-helper/references/sdk_log_guide.md +4 -4
  114. package/skills/ae-dataops/SKILL.md +54 -74
  115. package/skills/ae-dataops/references/collaboration.md +48 -0
  116. package/skills/ae-dataops/references/dataops-backfill.md +23 -18
  117. package/skills/ae-dataops/references/dataops-flow-create.md +74 -23
  118. package/skills/ae-dataops/references/dataops-flow-monitor.md +45 -13
  119. package/skills/ae-dataops/references/dataops-integration.md +57 -30
  120. package/skills/ae-dataops/references/dataops-query.md +21 -4
  121. package/skills/ae-dataops/references/dataops-table.md +143 -11
  122. package/skills/ae-engage/SKILL.md +21 -6
  123. package/skills/ae-engage/references/add-channel.md +3 -3
  124. package/skills/ae-engage/references/channel-mgmt.md +3 -3
  125. package/skills/ae-engage/references/collaboration.md +48 -0
  126. package/skills/ae-engage/references/common-metric.md +2 -2
  127. package/skills/ae-engage/references/save-task.md +2 -2
  128. package/skills/ae-engage/references/scene-config-channel.md +4 -4
  129. package/skills/ae-generate-tracking-code/SKILL.md +1 -1
  130. package/skills/ae-generate-tracking-plan/SKILL.md +4 -0
  131. package/skills/ae-generate-tracking-plan/references/collaboration.md +48 -0
  132. package/skills/ae-kb/SKILL.md +9 -1
  133. package/skills/ae-kb/references/collaboration.md +48 -0
  134. package/skills/ae-kb/references/schema-import.md +30 -0
  135. package/skills/ae-kb-discovery/SKILL.md +7 -2
  136. package/skills/ae-kb-discovery/references/collaboration.md +48 -0
  137. package/skills/ae-metadata/SKILL.md +20 -12
  138. package/skills/ae-metadata/references/collaboration.md +48 -0
  139. package/dist/project-semantic-3LF6Q6JZ.js +0 -1119
  140. package/skills/ae-project-semantic/SKILL.md +0 -193
  141. package/skills/ae-project-semantic/references/query-routing-v5.md +0 -165
  142. package/skills/ae-project-semantic/references/recommendation-quality.md +0 -68
package/dist/index.js CHANGED
@@ -14,54 +14,60 @@ import {
14
14
  validateAndFix,
15
15
  validateDraft,
16
16
  writeDraftXlsx
17
- } from "./chunk-4NRCTUZJ.js";
17
+ } from "./chunk-KS4DE3MX.js";
18
18
  import {
19
19
  getLocalCliPackageInfo
20
20
  } from "./chunk-E2JKXMVO.js";
21
21
  import {
22
22
  requiresConfirmation
23
23
  } from "./chunk-AMBFK2K3.js";
24
- import "./chunk-DVMLWQD4.js";
25
- import "./chunk-EQ255HKO.js";
26
- import "./chunk-V2NUHPXF.js";
24
+ import "./chunk-SO5LKIWP.js";
25
+ import "./chunk-7WZACOAI.js";
26
+ import "./chunk-GK7WDY7E.js";
27
27
  import {
28
28
  TeAgentApiError,
29
29
  TeAgentCredentialsError
30
- } from "./chunk-HBGADCKA.js";
30
+ } from "./chunk-KJDOTPYU.js";
31
31
  import {
32
32
  CapabilityGatewayError,
33
33
  executeCapability,
34
34
  uploadInputFileBytes
35
- } from "./chunk-HFGZGYCG.js";
35
+ } from "./chunk-QYXDJOLA.js";
36
36
  import {
37
37
  resolveHost
38
- } from "./chunk-JOCDD4ON.js";
38
+ } from "./chunk-N4BLPJC7.js";
39
39
  import {
40
+ fetchCliConfig,
40
41
  formatCapabilityMissCompatHint,
41
42
  printError,
42
43
  printOutput,
43
- runHostCompatCheck
44
- } from "./chunk-DX5CDO34.js";
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
- } from "./chunk-7XGFSUOM.js";
52
+ getCliToken,
53
+ peekCliToken
54
+ } from "./chunk-DU72X2IO.js";
50
55
  import {
51
56
  getActiveHost,
52
57
  getConfigDir,
53
58
  safeJsonParse
54
- } from "./chunk-7FTTULED.js";
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-MAPZ7VB6.js";
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-CU22W53K.js");
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-GTRIT64F.js");
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 || val === "") return [];
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(nodeFs);
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
- await program2.parseAsync(normalizeSubcommandVersionOption(program2, argv));
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,91 +2373,91 @@ function warnLoadFailure(label, err) {
2337
2373
  async function loadCommands() {
2338
2374
  const commands = [];
2339
2375
  try {
2340
- const teAnalysis = await import("./te-analysis-AISWCOOZ.js");
2376
+ const teAnalysis = await import("./te-analysis-5ZZ6YHVH.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-BAM3GBFX.js");
2382
+ const engage = await import("./te-engage-RNRMYDO3.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 experiment = await import("./te-experiment-GUTZXZ5Z.js");
2388
+ const experiment = await import("./te-experiment-BTAC2UNK.js");
2353
2389
  commands.push(...experiment.default);
2354
2390
  } catch (err) {
2355
2391
  warnLoadFailure("domain te-experiment", err);
2356
2392
  }
2357
2393
  try {
2358
- const community = await import("./te-community-4OYU3BDA.js");
2394
+ const community = await import("./te-community-Z7JACGF3.js");
2359
2395
  commands.push(...community.default);
2360
2396
  } catch (err) {
2361
2397
  warnLoadFailure("domain te-community", err);
2362
2398
  }
2363
2399
  try {
2364
- const dataops = await import("./te-dataops-NFIPB6FX.js");
2400
+ const dataops = await import("./te-dataops-F7GQOIS6.js");
2365
2401
  commands.push(...dataops.default);
2366
2402
  } catch (err) {
2367
2403
  warnLoadFailure("domain te-dataops", err);
2368
2404
  }
2369
2405
  try {
2370
- const teKb = await import("./te-kb-3TS73NO6.js");
2406
+ const teKb = await import("./te-kb-QJLJEX5K.js");
2371
2407
  commands.push(...teKb.default);
2372
2408
  } catch (err) {
2373
2409
  warnLoadFailure("domain te-kb", err);
2374
2410
  }
2375
2411
  try {
2376
- const teTeam = await import("./te-team-3I5AOX3N.js");
2412
+ const teTeam = await import("./te-team-BIZIKIHZ.js");
2377
2413
  commands.push(...teTeam.default);
2378
2414
  } catch (err) {
2379
2415
  warnLoadFailure("domain te-team", err);
2380
2416
  }
2381
2417
  try {
2382
- const teAgent = await import("./te-agent-K5MSPNHJ.js");
2418
+ const teAgent = await import("./te-agent-Z3HCTKR7.js");
2383
2419
  commands.push(...teAgent.default);
2384
2420
  } catch (err) {
2385
2421
  warnLoadFailure("domain te-agent", err);
2386
2422
  }
2387
2423
  try {
2388
- const memory = await import("./memory-QGPSNCQS.js");
2424
+ const memory = await import("./memory-6APEB2JB.js");
2389
2425
  commands.push(...memory.default);
2390
2426
  } catch (err) {
2391
2427
  warnLoadFailure("domain memory", err);
2392
2428
  }
2393
2429
  try {
2394
- const teSystem = await import("./te-system-STMHLS5J.js");
2430
+ const teSystem = await import("./te-system-IXC43QHZ.js");
2395
2431
  commands.push(...teSystem.default);
2396
2432
  } catch (err) {
2397
2433
  warnLoadFailure("domain te-system", err);
2398
2434
  }
2399
2435
  try {
2400
- const metadata = await import("./metadata-DI5BMYFU.js");
2436
+ const metadata = await import("./metadata-JRYKNUS5.js");
2401
2437
  commands.push(...metadata.default);
2402
2438
  } catch (err) {
2403
2439
  warnLoadFailure("domain metadata", err);
2404
2440
  }
2405
2441
  try {
2406
- const personalSemanticPreference = await import("./personal-semantic-preference-5C3WUXFI.js");
2442
+ const personalSemanticPreference = await import("./personal-semantic-preference-IDE2GE5T.js");
2407
2443
  commands.push(...personalSemanticPreference.default);
2408
2444
  } catch (err) {
2409
2445
  warnLoadFailure("domain personal-semantic-preference", err);
2410
2446
  }
2411
2447
  try {
2412
- const projectSemantic = await import("./project-semantic-3LF6Q6JZ.js");
2448
+ const projectSemantic = await import("./project-semantic-36KOCYN7.js");
2413
2449
  commands.push(...projectSemantic.default);
2414
2450
  } catch (err) {
2415
2451
  warnLoadFailure("domain project-semantic", err);
2416
2452
  }
2417
2453
  try {
2418
- const dataIntegration = await import("./data-integration-HNGUKFIC.js");
2454
+ const dataIntegration = await import("./data-integration-XBTCGXQT.js");
2419
2455
  commands.push(...dataIntegration.default);
2420
2456
  } catch (err) {
2421
2457
  warnLoadFailure("domain data-integration", err);
2422
2458
  }
2423
2459
  try {
2424
- const context = await import("./context-IFJI3LIT.js");
2460
+ const context = await import("./context-M3HDGEIR.js");
2425
2461
  commands.push(...context.default);
2426
2462
  } catch (err) {
2427
2463
  warnLoadFailure("domain context", err);
@@ -2430,7 +2466,7 @@ async function loadCommands() {
2430
2466
  }
2431
2467
  async function registerAuthCommands() {
2432
2468
  try {
2433
- const { registerAuth } = await import("./auth-XZNXFRJS.js");
2469
+ const { registerAuth } = await import("./auth-LHM7NQPR.js");
2434
2470
  registerAuth(program);
2435
2471
  } catch (err) {
2436
2472
  warnLoadFailure("auth commands", err);
@@ -2438,7 +2474,7 @@ async function registerAuthCommands() {
2438
2474
  }
2439
2475
  async function registerConfigCommands() {
2440
2476
  try {
2441
- const { registerConfig } = await import("./config-XO3LI3SA.js");
2477
+ const { registerConfig } = await import("./config-XQWOPDHN.js");
2442
2478
  registerConfig(program);
2443
2479
  } catch (err) {
2444
2480
  warnLoadFailure("config commands", err);
@@ -2446,7 +2482,7 @@ async function registerConfigCommands() {
2446
2482
  }
2447
2483
  async function registerCapabilityCommands() {
2448
2484
  try {
2449
- const { registerCapability } = await import("./capability-FYTU3X6L.js");
2485
+ const { registerCapability } = await import("./capability-SJI5KOCK.js");
2450
2486
  registerCapability(program);
2451
2487
  } catch (err) {
2452
2488
  warnLoadFailure("capability commands", err);
@@ -2454,7 +2490,7 @@ async function registerCapabilityCommands() {
2454
2490
  }
2455
2491
  async function registerSyncCommand() {
2456
2492
  try {
2457
- const { registerSync } = await import("./sync-O45NXEQY.js");
2493
+ const { registerSync } = await import("./sync-EQLSTUS7.js");
2458
2494
  registerSync(program);
2459
2495
  } catch (err) {
2460
2496
  warnLoadFailure("sync commands", err);
@@ -2462,7 +2498,7 @@ async function registerSyncCommand() {
2462
2498
  }
2463
2499
  async function registerModelCommand() {
2464
2500
  try {
2465
- const { registerModel } = await import("./model-RNPQXIBI.js");
2501
+ const { registerModel } = await import("./model-ZS7HVGKN.js");
2466
2502
  registerModel(program);
2467
2503
  } catch (err) {
2468
2504
  warnLoadFailure("model commands", err);
@@ -2470,7 +2506,7 @@ async function registerModelCommand() {
2470
2506
  }
2471
2507
  async function registerUpdateCommand() {
2472
2508
  try {
2473
- const { registerUpdate } = await import("./update-RZXLPCRH.js");
2509
+ const { registerUpdate } = await import("./update-W2SGQNKT.js");
2474
2510
  registerUpdate(program);
2475
2511
  } catch (err) {
2476
2512
  warnLoadFailure("update commands", err);
@@ -2503,6 +2539,7 @@ async function main() {
2503
2539
  return;
2504
2540
  }
2505
2541
  }
2542
+ await runFeatureConfigCheck(globalOptionValue(process.argv.slice(2), "--host"));
2506
2543
  const commands = await loadCommands();
2507
2544
  registerCommands(program, commands);
2508
2545
  await registerAuthCommands();
@@ -2548,7 +2585,7 @@ function optionConsumesValue(token) {
2548
2585
  if (token.includes("=")) {
2549
2586
  return false;
2550
2587
  }
2551
- return token === "--host" || token === "--mcp-url" || token === "--format" || token === "--jq";
2588
+ return token === "--host" || token === "--mcp-url" || token === "--format" || token === "--jq" || token === "--agent-context";
2552
2589
  }
2553
2590
  function globalOptionValue(args, option) {
2554
2591
  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-MAPZ7VB6.js";
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-HFGZGYCG.js";
5
+ } from "./chunk-QYXDJOLA.js";
6
6
  import "./chunk-Y74WTIKJ.js";
7
- import "./chunk-7XGFSUOM.js";
8
- import "./chunk-7FTTULED.js";
9
- import "./chunk-MAPZ7VB6.js";
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-VYXXOKYS.js";
4
+ } from "./chunk-XKIW3QMF.js";
5
5
  import {
6
6
  createCapabilityCommand
7
- } from "./chunk-CCS66K4K.js";
8
- import "./chunk-HFGZGYCG.js";
7
+ } from "./chunk-2FJM4HRV.js";
8
+ import "./chunk-QYXDJOLA.js";
9
9
  import {
10
10
  registerCapabilityGatewayRoute
11
11
  } from "./chunk-KPQY44JQ.js";
12
- import "./chunk-DX5CDO34.js";
12
+ import "./chunk-BW7JUDEI.js";
13
13
  import "./chunk-Y74WTIKJ.js";
14
- import "./chunk-7XGFSUOM.js";
15
- import "./chunk-7FTTULED.js";
16
- import "./chunk-MAPZ7VB6.js";
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-HBGADCKA.js";
15
+ } from "./chunk-KJDOTPYU.js";
16
16
  import "./chunk-Y74WTIKJ.js";
17
- import "./chunk-7XGFSUOM.js";
18
- import "./chunk-7FTTULED.js";
19
- import "./chunk-MAPZ7VB6.js";
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";
@@ -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-CCS66K4K.js";
5
- import "./chunk-HFGZGYCG.js";
4
+ } from "./chunk-2FJM4HRV.js";
5
+ import "./chunk-QYXDJOLA.js";
6
6
  import {
7
7
  registerCapabilityGatewayRoute
8
8
  } from "./chunk-KPQY44JQ.js";
9
- import "./chunk-DX5CDO34.js";
9
+ import "./chunk-BW7JUDEI.js";
10
10
  import "./chunk-Y74WTIKJ.js";
11
- import "./chunk-7XGFSUOM.js";
12
- import "./chunk-7FTTULED.js";
13
- import "./chunk-MAPZ7VB6.js";
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
  });