@thinkingai/ae-cli 6.0.35 → 6.0.37

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 (78) hide show
  1. package/README.md +216 -150
  2. package/README.zh.md +224 -159
  3. package/dist/{auth-UPGUOKTW.js → auth-56Z45UVR.js} +1 -1
  4. package/dist/{capability-TQ5KU5Q6.js → capability-2H6PAOA3.js} +1 -1
  5. package/dist/{capability-AJC5CBRT.js → capability-YPOQX6PL.js} +1 -1
  6. package/dist/{chunk-4Q5TNP4Q.js → chunk-J7MZHDHQ.js} +48 -24
  7. package/dist/chunk-KTYR3U6D.js +1012 -0
  8. package/dist/{chunk-6CHYBI64.js → chunk-LHVM35J4.js} +1 -1
  9. package/dist/{chunk-ISY6HMHM.js → chunk-PVBYJWC2.js} +1 -1
  10. package/dist/{config-PMPISN5Y.js → config-BSSALXEN.js} +1 -1
  11. package/dist/index.js +75 -18
  12. package/dist/{metadata-P5GIVMZ6.js → metadata-AN3YFZEV.js} +2 -2
  13. package/dist/{metadata-ELUAR3EJ.js → metadata-JIQ77HFY.js} +2 -2
  14. package/dist/{model-OYQLXCQY.js → model-JASQVOFD.js} +1 -1
  15. package/dist/{raw-TPB7KSZO.js → raw-XJCAT3HX.js} +1 -1
  16. package/dist/{sync-EFJKFZK2.js → sync-QFP4XFN3.js} +2 -2
  17. package/dist/{te-agent-BOQ7ZY56.js → te-agent-JHUG6DVV.js} +28 -1
  18. package/dist/{te-analysis-HZIP6SYW.js → te-analysis-IWQZO423.js} +213 -129
  19. package/dist/{te-analysis-ZT2MYAHL.js → te-analysis-X222IRYR.js} +213 -129
  20. package/dist/{te-dataops-VYN3IOKO.js → te-dataops-PZQ5NQLY.js} +1 -1
  21. package/dist/{te-dataops-Y5QAPPPF.js → te-dataops-XTWVTJCA.js} +1 -1
  22. package/dist/{te-engage-2FSDUOIZ.js → te-engage-E7F4HTXU.js} +87 -4
  23. package/dist/{te-engage-BMJ6UOUU.js → te-engage-NLZUPSBK.js} +87 -4
  24. package/dist/te-system-AH7DMCAQ.js +1706 -0
  25. package/dist/{te-team-PDKKW7Q5.js → te-team-BQ3SKSZV.js} +1 -1
  26. package/dist/update-DKG6UXEM.js +123 -0
  27. package/package.json +8 -3
  28. package/skills/ae-agent/SKILL.md +2 -2
  29. package/skills/ae-agent/references/create-automation.md +12 -0
  30. package/skills/ae-agent/references/update-automation.md +11 -3
  31. package/skills/ae-analysis/SKILL.md +1 -1
  32. package/skills/ae-analysis/references/alert_create.md +2 -3
  33. package/skills/ae-analysis/references/alert_update.md +2 -3
  34. package/skills/ae-analysis/references/analysis_gateway_assets.md +6 -4
  35. package/skills/ae-analysis/references/bi_panel_create.md +12 -4
  36. package/skills/ae-analysis/references/bi_panel_update.md +11 -8
  37. package/skills/ae-analysis/references/bi_panel_version_publish.md +3 -1
  38. package/skills/ae-analysis/references/command_index.md +10 -7
  39. package/skills/ae-analysis/references/dashboard_daily_report_get.md +18 -0
  40. package/skills/ae-analysis/references/dashboard_daily_report_send.md +12 -9
  41. package/skills/ae-analysis/references/dashboard_daily_report_send_status.md +22 -0
  42. package/skills/ae-analysis/references/dashboard_daily_report_update.md +13 -6
  43. package/skills/ae-analysis/references/drilldown_user_events_export.md +5 -0
  44. package/skills/ae-analysis/references/drilldown_user_events_run.md +6 -0
  45. package/skills/ae-analysis/references/super_metadata_batch_create.md +29 -0
  46. package/skills/ae-analysis/references/super_metadata_batch_edit.md +24 -0
  47. package/skills/ae-engage/SKILL.md +32 -5
  48. package/skills/ae-engage/references/activity-topic.md +34 -1
  49. package/skills/ae-engage/references/add-channel.md +2 -3
  50. package/skills/ae-engage/references/build-task-save-guide.md +17 -3
  51. package/skills/ae-engage/references/channel-detail.md +2 -3
  52. package/skills/ae-engage/references/channel-list.md +2 -5
  53. package/skills/ae-engage/references/channel-mgmt.md +17 -2
  54. package/skills/ae-engage/references/channel-test-send.md +1 -1
  55. package/skills/ae-engage/references/channel-update-config.md +1 -1
  56. package/skills/ae-engage/references/delete-channel.md +2 -3
  57. package/skills/ae-engage/references/save-flow.md +6 -3
  58. package/skills/ae-engage/references/save-task.md +12 -15
  59. package/skills/ae-engage/references/scene-config-channel.md +28 -4
  60. package/skills/ae-engage/references/scene-config-group.md +1 -1
  61. package/skills/ae-engage/references/scene-config-item.md +1 -1
  62. package/skills/ae-engage/references/scene-config-metric.md +1 -1
  63. package/skills/ae-engage/references/scene-config-param.md +1 -1
  64. package/skills/ae-engage/references/scene-preset-metric.md +1 -1
  65. package/skills/ae-engage/references/scene-strategy-audience.md +680 -0
  66. package/skills/ae-engage/references/scene-strategy.md +16 -1
  67. package/skills/ae-engage/references/scene-template.md +1 -1
  68. package/skills/ae-engage/references/update-channel-status.md +2 -3
  69. package/skills/ae-generate-tracking-code/SKILL.md +5 -5
  70. package/skills/ae-generate-tracking-code/references/autotrack-enum.md +4 -4
  71. package/skills/ae-generate-tracking-code/references/client-sdk-insert.md +1 -1
  72. package/skills/ae-generate-tracking-code/references/debug-script.md +2 -2
  73. package/skills/ae-generate-tracking-code/references/logbus-config.md +1 -1
  74. package/skills/ae-generate-tracking-code/references/restful-call.md +1 -1
  75. package/skills/ae-generate-tracking-code/references/sdk-index.md +36 -36
  76. package/skills/ae-system/SKILL.md +357 -0
  77. package/dist/chunk-IMMGMU54.js +0 -674
  78. package/skills/ae-analysis/references/alert_definition_schema_get.md +0 -24
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-RGXCNC4N.js";
9
9
  import {
10
10
  withOutputMetadata
11
- } from "./chunk-IMMGMU54.js";
11
+ } from "./chunk-KTYR3U6D.js";
12
12
 
13
13
  // src/core/capability-command.ts
14
14
  import { randomBytes } from "crypto";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-HQ2A7ITL.js";
9
9
  import {
10
10
  withOutputMetadata
11
- } from "./chunk-IMMGMU54.js";
11
+ } from "./chunk-KTYR3U6D.js";
12
12
 
13
13
  // src/core/capability-command.ts
14
14
  import { randomBytes } from "crypto";
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  printError,
10
10
  printOutput
11
- } from "./chunk-IMMGMU54.js";
11
+ } from "./chunk-KTYR3U6D.js";
12
12
  import "./chunk-E7UXXHO3.js";
13
13
  import "./chunk-IR4ZLVPW.js";
14
14
  import {
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  TeAgentApiError,
6
6
  TeAgentCredentialsError
7
- } from "./chunk-4Q5TNP4Q.js";
7
+ } from "./chunk-J7MZHDHQ.js";
8
8
  import {
9
9
  getLocalCliPackageInfo
10
10
  } from "./chunk-VTWMIC5L.js";
@@ -15,11 +15,10 @@ import {
15
15
  } from "./chunk-HQ2A7ITL.js";
16
16
  import {
17
17
  formatCapabilityMissCompatHint,
18
- notifyIfUpdateAvailable,
19
18
  printError,
20
19
  printOutput,
21
20
  runHostCompatCheck
22
- } from "./chunk-IMMGMU54.js";
21
+ } from "./chunk-KTYR3U6D.js";
23
22
  import {
24
23
  clearCliToken,
25
24
  getCliToken
@@ -3385,11 +3384,11 @@ program.name("ae-cli").version(version).description("CLI tool for ThinkingAI (AE
3385
3384
  "--dry-run",
3386
3385
  "Optional: pre-execution preview without business logic (gateway /dry-run; other transports preview). Use alone to confirm a run; do not stack with --validate",
3387
3386
  false
3388
- ).option("--yes", "Skip confirmation for high-risk write operations", false).option("--no-update-check", "Skip checking for newer ae-cli versions", false);
3387
+ ).option("--yes", "Skip confirmation for high-risk write operations", false).option("--no-update-check", "Skip host compatibility checks", false);
3389
3388
  async function loadCommands() {
3390
3389
  const commands = [];
3391
3390
  try {
3392
- const teAnalysis = await import("./te-analysis-HZIP6SYW.js");
3391
+ const teAnalysis = await import("./te-analysis-IWQZO423.js");
3393
3392
  commands.push(...teAnalysis.default);
3394
3393
  } catch {
3395
3394
  }
@@ -3399,7 +3398,7 @@ async function loadCommands() {
3399
3398
  } catch {
3400
3399
  }
3401
3400
  try {
3402
- const engage = await import("./te-engage-BMJ6UOUU.js");
3401
+ const engage = await import("./te-engage-NLZUPSBK.js");
3403
3402
  commands.push(...engage.default);
3404
3403
  } catch {
3405
3404
  }
@@ -3409,7 +3408,7 @@ async function loadCommands() {
3409
3408
  } catch {
3410
3409
  }
3411
3410
  try {
3412
- const dataops = await import("./te-dataops-Y5QAPPPF.js");
3411
+ const dataops = await import("./te-dataops-XTWVTJCA.js");
3413
3412
  commands.push(...dataops.default);
3414
3413
  } catch {
3415
3414
  }
@@ -3419,17 +3418,22 @@ async function loadCommands() {
3419
3418
  } catch {
3420
3419
  }
3421
3420
  try {
3422
- const teTeam = await import("./te-team-PDKKW7Q5.js");
3421
+ const teTeam = await import("./te-team-BQ3SKSZV.js");
3423
3422
  commands.push(...teTeam.default);
3424
3423
  } catch {
3425
3424
  }
3426
3425
  try {
3427
- const teAgent = await import("./te-agent-BOQ7ZY56.js");
3426
+ const teAgent = await import("./te-agent-JHUG6DVV.js");
3428
3427
  commands.push(...teAgent.default);
3429
3428
  } catch {
3430
3429
  }
3431
3430
  try {
3432
- const metadata = await import("./metadata-P5GIVMZ6.js");
3431
+ const teSystem = await import("./te-system-AH7DMCAQ.js");
3432
+ commands.push(...teSystem.default);
3433
+ } catch {
3434
+ }
3435
+ try {
3436
+ const metadata = await import("./metadata-AN3YFZEV.js");
3433
3437
  commands.push(...metadata.default);
3434
3438
  } catch {
3435
3439
  }
@@ -3437,50 +3441,80 @@ async function loadCommands() {
3437
3441
  }
3438
3442
  async function registerAuthCommands() {
3439
3443
  try {
3440
- const { registerAuth } = await import("./auth-UPGUOKTW.js");
3444
+ const { registerAuth } = await import("./auth-56Z45UVR.js");
3441
3445
  registerAuth(program);
3442
3446
  } catch {
3443
3447
  }
3444
3448
  }
3445
3449
  async function registerConfigCommands() {
3446
3450
  try {
3447
- const { registerConfig } = await import("./config-PMPISN5Y.js");
3451
+ const { registerConfig } = await import("./config-BSSALXEN.js");
3448
3452
  registerConfig(program);
3449
3453
  } catch {
3450
3454
  }
3451
3455
  }
3452
3456
  async function registerApiCommand() {
3453
3457
  try {
3454
- const { registerApi } = await import("./raw-TPB7KSZO.js");
3458
+ const { registerApi } = await import("./raw-XJCAT3HX.js");
3455
3459
  registerApi(program);
3456
3460
  } catch {
3457
3461
  }
3458
3462
  }
3459
3463
  async function registerCapabilityCommands() {
3460
3464
  try {
3461
- const { registerCapability } = await import("./capability-AJC5CBRT.js");
3465
+ const { registerCapability } = await import("./capability-YPOQX6PL.js");
3462
3466
  registerCapability(program);
3463
3467
  } catch {
3464
3468
  }
3465
3469
  }
3466
3470
  async function registerSyncCommand() {
3467
3471
  try {
3468
- const { registerSync } = await import("./sync-EFJKFZK2.js");
3472
+ const { registerSync } = await import("./sync-QFP4XFN3.js");
3469
3473
  registerSync(program);
3470
3474
  } catch {
3471
3475
  }
3472
3476
  }
3473
3477
  async function registerModelCommand() {
3474
3478
  try {
3475
- const { registerModel } = await import("./model-OYQLXCQY.js");
3479
+ const { registerModel } = await import("./model-JASQVOFD.js");
3476
3480
  registerModel(program);
3477
3481
  } catch {
3478
3482
  }
3479
3483
  }
3484
+ async function registerUpdateCommand() {
3485
+ try {
3486
+ const { registerUpdate } = await import("./update-DKG6UXEM.js");
3487
+ registerUpdate(program);
3488
+ } catch {
3489
+ }
3490
+ }
3480
3491
  async function main() {
3481
3492
  const pkgInfo = getLocalCliPackageInfo();
3482
- notifyIfUpdateAvailable({ name: pkg.name, version: pkg.version });
3483
- await runHostCompatCheck(pkgInfo);
3493
+ if (!isRootUpdateCommand(process.argv.slice(2))) {
3494
+ const compat = await runHostCompatCheck(
3495
+ pkgInfo,
3496
+ globalOptionValue(process.argv.slice(2), "--host")
3497
+ );
3498
+ if (compat.status === "synced") {
3499
+ const message = compat.direction === "skills" ? `Skills were synchronized for ae-cli ${compat.expected}.` : `ae-cli changed from ${compat.current} to ${compat.expected} for this host.`;
3500
+ printError(
3501
+ "config",
3502
+ message,
3503
+ "Re-run the previous command to use the synchronized CLI and Skills.",
3504
+ "AE_CLI_VERSION_SYNCED",
3505
+ {
3506
+ current: compat.current,
3507
+ expected: compat.expected,
3508
+ cluster: compat.cluster,
3509
+ direction: compat.direction,
3510
+ retryOriginalCommand: true
3511
+ },
3512
+ { log: false }
3513
+ );
3514
+ process.exitCode = 1;
3515
+ return;
3516
+ }
3517
+ }
3484
3518
  const commands = await loadCommands();
3485
3519
  registerCommands(program, commands);
3486
3520
  await registerAuthCommands();
@@ -3489,6 +3523,7 @@ async function main() {
3489
3523
  await registerCapabilityCommands();
3490
3524
  await registerSyncCommand();
3491
3525
  await registerModelCommand();
3526
+ await registerUpdateCommand();
3492
3527
  registerTracking(program);
3493
3528
  rejectUnknownHelpCommandPath(program, process.argv.slice(2));
3494
3529
  await parseProgram(program);
@@ -3528,3 +3563,25 @@ function optionConsumesValue(token) {
3528
3563
  }
3529
3564
  return token === "--host" || token === "--mcp-url" || token === "--format" || token === "--jq";
3530
3565
  }
3566
+ function globalOptionValue(args, option) {
3567
+ for (let i = 0; i < args.length; i += 1) {
3568
+ const token = args[i];
3569
+ if (token === option) return args[i + 1];
3570
+ if (token.startsWith(`${option}=`)) return token.slice(option.length + 1);
3571
+ }
3572
+ return void 0;
3573
+ }
3574
+ function isRootUpdateCommand(args) {
3575
+ for (let i = 0; i < args.length; i += 1) {
3576
+ const token = args[i];
3577
+ if (token === "--") return false;
3578
+ if (token.startsWith("-")) {
3579
+ if (optionConsumesValue(token)) {
3580
+ i += 1;
3581
+ }
3582
+ continue;
3583
+ }
3584
+ return token === "update";
3585
+ }
3586
+ return false;
3587
+ }
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  createCapabilityCommand
3
- } from "./chunk-ISY6HMHM.js";
3
+ } from "./chunk-PVBYJWC2.js";
4
4
  import {
5
5
  registerCapabilityGatewayRoute
6
6
  } from "./chunk-PTE56QPL.js";
7
7
  import "./chunk-HQ2A7ITL.js";
8
- import "./chunk-IMMGMU54.js";
8
+ import "./chunk-KTYR3U6D.js";
9
9
  import "./chunk-E7UXXHO3.js";
10
10
  import "./chunk-IR4ZLVPW.js";
11
11
  import "./chunk-V6FR6WTW.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  createCapabilityCommand
3
- } from "./chunk-6CHYBI64.js";
3
+ } from "./chunk-LHVM35J4.js";
4
4
  import {
5
5
  registerCapabilityGatewayRoute
6
6
  } from "./chunk-PTE56QPL.js";
7
7
  import "./chunk-RGXCNC4N.js";
8
- import "./chunk-IMMGMU54.js";
8
+ import "./chunk-KTYR3U6D.js";
9
9
  import "./chunk-E7UXXHO3.js";
10
10
  import "./chunk-IR4ZLVPW.js";
11
11
  import "./chunk-V6FR6WTW.js";
@@ -9,7 +9,7 @@ import {
9
9
  getClaudeConfigDir,
10
10
  getSandboxModels,
11
11
  postSandboxModelSelection
12
- } from "./chunk-4Q5TNP4Q.js";
12
+ } from "./chunk-J7MZHDHQ.js";
13
13
  import "./chunk-V6FR6WTW.js";
14
14
  import "./chunk-LYVNONC4.js";
15
15
 
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  printError,
7
7
  printOutput
8
- } from "./chunk-IMMGMU54.js";
8
+ } from "./chunk-KTYR3U6D.js";
9
9
  import "./chunk-E7UXXHO3.js";
10
10
  import {
11
11
  SecureStoreAuthError,
@@ -19,10 +19,10 @@ import {
19
19
  getSandboxSyncPullCandidates,
20
20
  postSandboxSyncPull,
21
21
  postToMainApp
22
- } from "./chunk-4Q5TNP4Q.js";
22
+ } from "./chunk-J7MZHDHQ.js";
23
23
  import {
24
24
  printError
25
- } from "./chunk-IMMGMU54.js";
25
+ } from "./chunk-KTYR3U6D.js";
26
26
  import "./chunk-E7UXXHO3.js";
27
27
  import "./chunk-IR4ZLVPW.js";
28
28
  import "./chunk-V6FR6WTW.js";
@@ -6,7 +6,7 @@ import {
6
6
  postToMainApp,
7
7
  putToMainApp,
8
8
  uploadToMainApp
9
- } from "./chunk-4Q5TNP4Q.js";
9
+ } from "./chunk-J7MZHDHQ.js";
10
10
  import "./chunk-V6FR6WTW.js";
11
11
  import "./chunk-LYVNONC4.js";
12
12
 
@@ -2169,6 +2169,17 @@ function readEnabledOptional(ctx) {
2169
2169
  }
2170
2170
  return enabled;
2171
2171
  }
2172
+ function readReuseConversation(ctx) {
2173
+ return readReuseConversationOptional(ctx) ?? false;
2174
+ }
2175
+ function readReuseConversationOptional(ctx) {
2176
+ const reuseConversation = ctx.json("reuseConversation");
2177
+ if (reuseConversation === void 0) return void 0;
2178
+ if (typeof reuseConversation !== "boolean") {
2179
+ throw new Error("--reuse-conversation must be true or false");
2180
+ }
2181
+ return reuseConversation;
2182
+ }
2172
2183
  function buildSchedule(ctx) {
2173
2184
  const kind = optional(ctx.str("scheduleKind"));
2174
2185
  if (!kind) return void 0;
@@ -2248,6 +2259,7 @@ function buildCreateBody(ctx) {
2248
2259
  schedule: buildSchedule(ctx),
2249
2260
  triggerType: "scheduled",
2250
2261
  model,
2262
+ reuseConversation: readReuseConversation(ctx),
2251
2263
  status: enabled ? "active" : "paused"
2252
2264
  };
2253
2265
  }
@@ -2276,6 +2288,7 @@ function validateList(ctx) {
2276
2288
  }
2277
2289
  function buildUpdateBody2(ctx) {
2278
2290
  const enabled = readEnabledOptional(ctx);
2291
+ const reuseConversation = readReuseConversationOptional(ctx);
2279
2292
  const body = {};
2280
2293
  const name = optional(ctx.str("name"));
2281
2294
  const message = optional(ctx.str("message"));
@@ -2284,6 +2297,8 @@ function buildUpdateBody2(ctx) {
2284
2297
  if (name) body.name = name;
2285
2298
  if (message !== void 0) body.message = message;
2286
2299
  if (enabled !== void 0) body.status = enabled ? "active" : "paused";
2300
+ if (reuseConversation !== void 0)
2301
+ body.reuseConversation = reuseConversation;
2287
2302
  if (cron) body.cronExpression = cron;
2288
2303
  if (schedule) body.schedule = schedule;
2289
2304
  return body;
@@ -2405,6 +2420,12 @@ var createAutomation = {
2405
2420
  required: false,
2406
2421
  desc: "Whether to enable the automation immediately; defaults to true"
2407
2422
  },
2423
+ {
2424
+ name: "reuse-conversation",
2425
+ type: "boolean",
2426
+ required: false,
2427
+ desc: "Continue future runs in the same conversation; defaults to false"
2428
+ },
2408
2429
  {
2409
2430
  name: "conversation-id",
2410
2431
  type: "string",
@@ -2456,6 +2477,12 @@ var updateAutomation = {
2456
2477
  required: false,
2457
2478
  desc: "true to enable, false to pause"
2458
2479
  },
2480
+ {
2481
+ name: "reuse-conversation",
2482
+ type: "boolean",
2483
+ required: false,
2484
+ desc: "true to reuse one conversation, false to create one per run"
2485
+ },
2459
2486
  ...scheduleFlags
2460
2487
  ],
2461
2488
  risk: "write",