@thinkingai/ae-cli 6.1.7 → 6.1.9

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 (80) hide show
  1. package/README.md +219 -150
  2. package/README.zh.md +227 -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 +79 -22
  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-experiment-KYRWAUZY.js → te-experiment-D32TB6ZB.js} +2 -2
  25. package/dist/{te-experiment-4JC7WUKW.js → te-experiment-N63WF7XA.js} +2 -2
  26. package/dist/te-system-AH7DMCAQ.js +1706 -0
  27. package/dist/{te-team-PDKKW7Q5.js → te-team-BQ3SKSZV.js} +1 -1
  28. package/dist/update-DKG6UXEM.js +123 -0
  29. package/package.json +8 -3
  30. package/skills/ae-agent/SKILL.md +2 -2
  31. package/skills/ae-agent/references/create-automation.md +12 -0
  32. package/skills/ae-agent/references/update-automation.md +11 -3
  33. package/skills/ae-analysis/SKILL.md +1 -1
  34. package/skills/ae-analysis/references/alert_create.md +2 -3
  35. package/skills/ae-analysis/references/alert_update.md +2 -3
  36. package/skills/ae-analysis/references/analysis_gateway_assets.md +6 -4
  37. package/skills/ae-analysis/references/bi_panel_create.md +12 -4
  38. package/skills/ae-analysis/references/bi_panel_update.md +11 -8
  39. package/skills/ae-analysis/references/bi_panel_version_publish.md +3 -1
  40. package/skills/ae-analysis/references/command_index.md +10 -7
  41. package/skills/ae-analysis/references/dashboard_daily_report_get.md +18 -0
  42. package/skills/ae-analysis/references/dashboard_daily_report_send.md +12 -9
  43. package/skills/ae-analysis/references/dashboard_daily_report_send_status.md +22 -0
  44. package/skills/ae-analysis/references/dashboard_daily_report_update.md +13 -6
  45. package/skills/ae-analysis/references/drilldown_user_events_export.md +5 -0
  46. package/skills/ae-analysis/references/drilldown_user_events_run.md +6 -0
  47. package/skills/ae-analysis/references/super_metadata_batch_create.md +29 -0
  48. package/skills/ae-analysis/references/super_metadata_batch_edit.md +24 -0
  49. package/skills/ae-engage/SKILL.md +32 -5
  50. package/skills/ae-engage/references/activity-topic.md +34 -1
  51. package/skills/ae-engage/references/add-channel.md +2 -3
  52. package/skills/ae-engage/references/build-task-save-guide.md +17 -3
  53. package/skills/ae-engage/references/channel-detail.md +2 -3
  54. package/skills/ae-engage/references/channel-list.md +2 -5
  55. package/skills/ae-engage/references/channel-mgmt.md +17 -2
  56. package/skills/ae-engage/references/channel-test-send.md +1 -1
  57. package/skills/ae-engage/references/channel-update-config.md +1 -1
  58. package/skills/ae-engage/references/delete-channel.md +2 -3
  59. package/skills/ae-engage/references/save-flow.md +6 -3
  60. package/skills/ae-engage/references/save-task.md +12 -15
  61. package/skills/ae-engage/references/scene-config-channel.md +28 -4
  62. package/skills/ae-engage/references/scene-config-group.md +1 -1
  63. package/skills/ae-engage/references/scene-config-item.md +1 -1
  64. package/skills/ae-engage/references/scene-config-metric.md +1 -1
  65. package/skills/ae-engage/references/scene-config-param.md +1 -1
  66. package/skills/ae-engage/references/scene-preset-metric.md +1 -1
  67. package/skills/ae-engage/references/scene-strategy-audience.md +680 -0
  68. package/skills/ae-engage/references/scene-strategy.md +16 -1
  69. package/skills/ae-engage/references/scene-template.md +1 -1
  70. package/skills/ae-engage/references/update-channel-status.md +2 -3
  71. package/skills/ae-generate-tracking-code/SKILL.md +5 -5
  72. package/skills/ae-generate-tracking-code/references/autotrack-enum.md +4 -4
  73. package/skills/ae-generate-tracking-code/references/client-sdk-insert.md +1 -1
  74. package/skills/ae-generate-tracking-code/references/debug-script.md +2 -2
  75. package/skills/ae-generate-tracking-code/references/logbus-config.md +1 -1
  76. package/skills/ae-generate-tracking-code/references/restful-call.md +1 -1
  77. package/skills/ae-generate-tracking-code/references/sdk-index.md +36 -36
  78. package/skills/ae-system/SKILL.md +357 -0
  79. package/dist/chunk-IMMGMU54.js +0 -674
  80. 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
@@ -1,13 +1,13 @@
1
+ import {
2
+ getLocalCliPackageInfo
3
+ } from "./chunk-VTWMIC5L.js";
1
4
  import {
2
5
  requiresConfirmation
3
6
  } from "./chunk-OO6XR6LK.js";
4
7
  import {
5
8
  TeAgentApiError,
6
9
  TeAgentCredentialsError
7
- } from "./chunk-4Q5TNP4Q.js";
8
- import {
9
- getLocalCliPackageInfo
10
- } from "./chunk-VTWMIC5L.js";
10
+ } from "./chunk-J7MZHDHQ.js";
11
11
  import {
12
12
  CapabilityGatewayError,
13
13
  executeCapability,
@@ -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,12 +3398,12 @@ 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
  }
3406
3405
  try {
3407
- const experiment = await import("./te-experiment-4JC7WUKW.js");
3406
+ const experiment = await import("./te-experiment-N63WF7XA.js");
3408
3407
  commands.push(...experiment.default);
3409
3408
  } catch {
3410
3409
  }
@@ -3414,7 +3413,7 @@ async function loadCommands() {
3414
3413
  } catch {
3415
3414
  }
3416
3415
  try {
3417
- const dataops = await import("./te-dataops-Y5QAPPPF.js");
3416
+ const dataops = await import("./te-dataops-XTWVTJCA.js");
3418
3417
  commands.push(...dataops.default);
3419
3418
  } catch {
3420
3419
  }
@@ -3424,17 +3423,22 @@ async function loadCommands() {
3424
3423
  } catch {
3425
3424
  }
3426
3425
  try {
3427
- const teTeam = await import("./te-team-PDKKW7Q5.js");
3426
+ const teTeam = await import("./te-team-BQ3SKSZV.js");
3428
3427
  commands.push(...teTeam.default);
3429
3428
  } catch {
3430
3429
  }
3431
3430
  try {
3432
- const teAgent = await import("./te-agent-BOQ7ZY56.js");
3431
+ const teAgent = await import("./te-agent-JHUG6DVV.js");
3433
3432
  commands.push(...teAgent.default);
3434
3433
  } catch {
3435
3434
  }
3436
3435
  try {
3437
- const metadata = await import("./metadata-P5GIVMZ6.js");
3436
+ const teSystem = await import("./te-system-AH7DMCAQ.js");
3437
+ commands.push(...teSystem.default);
3438
+ } catch {
3439
+ }
3440
+ try {
3441
+ const metadata = await import("./metadata-AN3YFZEV.js");
3438
3442
  commands.push(...metadata.default);
3439
3443
  } catch {
3440
3444
  }
@@ -3442,50 +3446,80 @@ async function loadCommands() {
3442
3446
  }
3443
3447
  async function registerAuthCommands() {
3444
3448
  try {
3445
- const { registerAuth } = await import("./auth-UPGUOKTW.js");
3449
+ const { registerAuth } = await import("./auth-56Z45UVR.js");
3446
3450
  registerAuth(program);
3447
3451
  } catch {
3448
3452
  }
3449
3453
  }
3450
3454
  async function registerConfigCommands() {
3451
3455
  try {
3452
- const { registerConfig } = await import("./config-PMPISN5Y.js");
3456
+ const { registerConfig } = await import("./config-BSSALXEN.js");
3453
3457
  registerConfig(program);
3454
3458
  } catch {
3455
3459
  }
3456
3460
  }
3457
3461
  async function registerApiCommand() {
3458
3462
  try {
3459
- const { registerApi } = await import("./raw-TPB7KSZO.js");
3463
+ const { registerApi } = await import("./raw-XJCAT3HX.js");
3460
3464
  registerApi(program);
3461
3465
  } catch {
3462
3466
  }
3463
3467
  }
3464
3468
  async function registerCapabilityCommands() {
3465
3469
  try {
3466
- const { registerCapability } = await import("./capability-AJC5CBRT.js");
3470
+ const { registerCapability } = await import("./capability-YPOQX6PL.js");
3467
3471
  registerCapability(program);
3468
3472
  } catch {
3469
3473
  }
3470
3474
  }
3471
3475
  async function registerSyncCommand() {
3472
3476
  try {
3473
- const { registerSync } = await import("./sync-EFJKFZK2.js");
3477
+ const { registerSync } = await import("./sync-QFP4XFN3.js");
3474
3478
  registerSync(program);
3475
3479
  } catch {
3476
3480
  }
3477
3481
  }
3478
3482
  async function registerModelCommand() {
3479
3483
  try {
3480
- const { registerModel } = await import("./model-OYQLXCQY.js");
3484
+ const { registerModel } = await import("./model-JASQVOFD.js");
3481
3485
  registerModel(program);
3482
3486
  } catch {
3483
3487
  }
3484
3488
  }
3489
+ async function registerUpdateCommand() {
3490
+ try {
3491
+ const { registerUpdate } = await import("./update-DKG6UXEM.js");
3492
+ registerUpdate(program);
3493
+ } catch {
3494
+ }
3495
+ }
3485
3496
  async function main() {
3486
3497
  const pkgInfo = getLocalCliPackageInfo();
3487
- notifyIfUpdateAvailable({ name: pkg.name, version: pkg.version });
3488
- await runHostCompatCheck(pkgInfo);
3498
+ if (!isRootUpdateCommand(process.argv.slice(2))) {
3499
+ const compat = await runHostCompatCheck(
3500
+ pkgInfo,
3501
+ globalOptionValue(process.argv.slice(2), "--host")
3502
+ );
3503
+ if (compat.status === "synced") {
3504
+ 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.`;
3505
+ printError(
3506
+ "config",
3507
+ message,
3508
+ "Re-run the previous command to use the synchronized CLI and Skills.",
3509
+ "AE_CLI_VERSION_SYNCED",
3510
+ {
3511
+ current: compat.current,
3512
+ expected: compat.expected,
3513
+ cluster: compat.cluster,
3514
+ direction: compat.direction,
3515
+ retryOriginalCommand: true
3516
+ },
3517
+ { log: false }
3518
+ );
3519
+ process.exitCode = 1;
3520
+ return;
3521
+ }
3522
+ }
3489
3523
  const commands = await loadCommands();
3490
3524
  registerCommands(program, commands);
3491
3525
  await registerAuthCommands();
@@ -3494,6 +3528,7 @@ async function main() {
3494
3528
  await registerCapabilityCommands();
3495
3529
  await registerSyncCommand();
3496
3530
  await registerModelCommand();
3531
+ await registerUpdateCommand();
3497
3532
  registerTracking(program);
3498
3533
  rejectUnknownHelpCommandPath(program, process.argv.slice(2));
3499
3534
  await parseProgram(program);
@@ -3533,3 +3568,25 @@ function optionConsumesValue(token) {
3533
3568
  }
3534
3569
  return token === "--host" || token === "--mcp-url" || token === "--format" || token === "--jq";
3535
3570
  }
3571
+ function globalOptionValue(args, option) {
3572
+ for (let i = 0; i < args.length; i += 1) {
3573
+ const token = args[i];
3574
+ if (token === option) return args[i + 1];
3575
+ if (token.startsWith(`${option}=`)) return token.slice(option.length + 1);
3576
+ }
3577
+ return void 0;
3578
+ }
3579
+ function isRootUpdateCommand(args) {
3580
+ for (let i = 0; i < args.length; i += 1) {
3581
+ const token = args[i];
3582
+ if (token === "--") return false;
3583
+ if (token.startsWith("-")) {
3584
+ if (optionConsumesValue(token)) {
3585
+ i += 1;
3586
+ }
3587
+ continue;
3588
+ }
3589
+ return token === "update";
3590
+ }
3591
+ return false;
3592
+ }
@@ -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",