@thinkingai/ae-cli 6.1.6 → 6.1.8

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/dist/{auth-UPGUOKTW.js → auth-B2BRSYMS.js} +1 -1
  2. package/dist/{capability-TQ5KU5Q6.js → capability-6KPXYNO7.js} +1 -1
  3. package/dist/{capability-AJC5CBRT.js → capability-ROKYESAP.js} +1 -1
  4. package/dist/{chunk-6CHYBI64.js → chunk-EBPXT3TN.js} +1 -1
  5. package/dist/{chunk-4Q5TNP4Q.js → chunk-J7MZHDHQ.js} +48 -24
  6. package/dist/{chunk-IMMGMU54.js → chunk-JTKMDN4A.js} +64 -166
  7. package/dist/{chunk-ISY6HMHM.js → chunk-RRFK2W7I.js} +1 -1
  8. package/dist/{config-RCCGHHYA.js → config-DDYJPJX3.js} +4 -4
  9. package/dist/index.js +63 -28
  10. package/dist/{metadata-3M5F2AED.js → metadata-2ZFRMVOL.js} +2 -55
  11. package/dist/{metadata-W2MEOI4Z.js → metadata-ABQCKU5P.js} +2 -55
  12. package/dist/{model-OYQLXCQY.js → model-JASQVOFD.js} +1 -1
  13. package/dist/{raw-TPB7KSZO.js → raw-6HXFFHLV.js} +1 -1
  14. package/dist/{sync-EFJKFZK2.js → sync-BF3IWYFC.js} +2 -2
  15. package/dist/{te-agent-K2OWMZXT.js → te-agent-3GJ5H2XF.js} +195 -2
  16. package/dist/{te-analysis-I73ZS4NK.js → te-analysis-DJ6KELTU.js} +636 -668
  17. package/dist/{te-analysis-Q7AZCDU4.js → te-analysis-PCGESPLW.js} +636 -668
  18. package/dist/{te-dataops-OA7I6HBG.js → te-dataops-LXL5YULV.js} +7 -7
  19. package/dist/{te-dataops-MJV54MNY.js → te-dataops-ROHUJOX5.js} +7 -7
  20. package/dist/{te-engage-2FSDUOIZ.js → te-engage-2YDCA552.js} +87 -4
  21. package/dist/{te-engage-BMJ6UOUU.js → te-engage-VW6NJZ5V.js} +87 -4
  22. package/dist/{te-experiment-4JC7WUKW.js → te-experiment-7JGJNDXO.js} +2 -2
  23. package/dist/{te-experiment-KYRWAUZY.js → te-experiment-OYK54B72.js} +2 -2
  24. package/dist/te-meta-GBDTMPEL.js +95 -0
  25. package/dist/te-meta-ZTLTSHXC.js +95 -0
  26. package/dist/te-system-AH7DMCAQ.js +1706 -0
  27. package/dist/{te-team-PDKKW7Q5.js → te-team-RRZI4WRI.js} +1 -1
  28. package/dist/update-ER7VFU55.js +101 -0
  29. package/package.json +9 -4
  30. package/skills/ae-agent/SKILL.md +5 -1
  31. package/skills/ae-agent/references/create-automation.md +1 -0
  32. package/skills/ae-agent/references/list-sandbox-tools.md +79 -0
  33. package/skills/ae-analysis/SKILL.md +8 -9
  34. package/skills/ae-analysis/references/adhoc_export.md +8 -0
  35. package/skills/ae-analysis/references/adhoc_run.md +9 -0
  36. package/skills/ae-analysis/references/ai_models.md +3 -1
  37. package/skills/ae-analysis/references/alert_create.md +2 -3
  38. package/skills/ae-analysis/references/alert_update.md +2 -3
  39. package/skills/ae-analysis/references/analysis_data_retrieval.md +2 -0
  40. package/skills/ae-analysis/references/analysis_drilldown_contract.md +2 -0
  41. package/skills/ae-analysis/references/analysis_gateway_assets.md +15 -11
  42. package/skills/ae-analysis/references/bi_panel_create.md +12 -4
  43. package/skills/ae-analysis/references/bi_panel_update.md +11 -8
  44. package/skills/ae-analysis/references/bi_panel_version_publish.md +3 -1
  45. package/skills/ae-analysis/references/command_index.md +28 -47
  46. package/skills/ae-analysis/references/dashboard_daily_report_get.md +18 -0
  47. package/skills/ae-analysis/references/dashboard_daily_report_send.md +12 -9
  48. package/skills/ae-analysis/references/dashboard_daily_report_send_status.md +22 -0
  49. package/skills/ae-analysis/references/dashboard_daily_report_update.md +13 -6
  50. package/skills/ae-analysis/references/dashboard_report_data_export.md +4 -2
  51. package/skills/ae-analysis/references/dashboard_report_data_run.md +5 -3
  52. package/skills/ae-analysis/references/drilldown_entities_export.md +3 -0
  53. package/skills/ae-analysis/references/drilldown_entities_run.md +2 -1
  54. package/skills/ae-analysis/references/drilldown_events_export.md +3 -0
  55. package/skills/ae-analysis/references/drilldown_events_run.md +2 -1
  56. package/skills/ae-analysis/references/drilldown_user_events_export.md +8 -0
  57. package/skills/ae-analysis/references/drilldown_user_events_run.md +8 -0
  58. package/skills/ae-analysis/references/entity_id_import_options.md +1 -1
  59. package/skills/ae-analysis/references/filter_value_list.md +47 -0
  60. package/skills/ae-analysis/references/project_space_get.md +3 -3
  61. package/skills/ae-analysis/references/project_space_list.md +6 -2
  62. package/skills/ae-analysis/references/query_cancel.md +3 -1
  63. package/skills/ae-analysis/references/query_cluster_list.md +34 -0
  64. package/skills/ae-analysis/references/query_create_result_cluster.md +2 -0
  65. package/skills/ae-analysis/references/report_create.md +5 -1
  66. package/skills/ae-analysis/references/report_data_export.md +9 -2
  67. package/skills/ae-analysis/references/report_data_run.md +8 -3
  68. package/skills/ae-analysis/references/report_get.md +3 -1
  69. package/skills/ae-analysis/references/report_update.md +4 -0
  70. package/skills/ae-analysis/references/super_metadata_batch_create.md +29 -0
  71. package/skills/ae-analysis/references/super_metadata_batch_edit.md +24 -0
  72. package/skills/ae-analysis/references/virtual_event_create.md +7 -6
  73. package/skills/ae-analysis-global/SKILL.md +15 -32
  74. package/skills/ae-community/SKILL.md +1 -1
  75. package/skills/ae-data-integration-helper/SKILL.md +3 -2
  76. package/skills/ae-data-integration-helper/references/sdk_usage_notes.md +1 -1
  77. package/skills/ae-dataops/SKILL.md +2 -1
  78. package/skills/ae-dataops/references/dataops-integration.md +75 -6
  79. package/skills/ae-engage/SKILL.md +32 -5
  80. package/skills/ae-engage/references/activity-topic.md +34 -1
  81. package/skills/ae-engage/references/add-channel.md +2 -3
  82. package/skills/ae-engage/references/build-task-save-guide.md +17 -3
  83. package/skills/ae-engage/references/channel-detail.md +2 -3
  84. package/skills/ae-engage/references/channel-list.md +2 -5
  85. package/skills/ae-engage/references/channel-mgmt.md +17 -2
  86. package/skills/ae-engage/references/channel-test-send.md +1 -1
  87. package/skills/ae-engage/references/channel-update-config.md +1 -1
  88. package/skills/ae-engage/references/delete-channel.md +2 -3
  89. package/skills/ae-engage/references/save-flow.md +6 -3
  90. package/skills/ae-engage/references/save-task.md +12 -15
  91. package/skills/ae-engage/references/scene-config-channel.md +28 -4
  92. package/skills/ae-engage/references/scene-config-group.md +1 -1
  93. package/skills/ae-engage/references/scene-config-item.md +1 -1
  94. package/skills/ae-engage/references/scene-config-metric.md +1 -1
  95. package/skills/ae-engage/references/scene-config-param.md +1 -1
  96. package/skills/ae-engage/references/scene-preset-metric.md +1 -1
  97. package/skills/ae-engage/references/scene-strategy-audience.md +680 -0
  98. package/skills/ae-engage/references/scene-strategy.md +16 -1
  99. package/skills/ae-engage/references/scene-template.md +1 -1
  100. package/skills/ae-engage/references/update-channel-status.md +2 -3
  101. package/skills/ae-generate-tracking-code/SKILL.md +4 -3
  102. package/skills/ae-generate-tracking-code/references/client-sdk-insert.md +1 -1
  103. package/skills/ae-generate-tracking-code/references/server-sdk-insert.md +1 -1
  104. package/skills/ae-generate-tracking-code/references/snippet-delivery.md +1 -1
  105. package/skills/ae-generate-tracking-plan/SKILL.md +6 -2
  106. package/skills/ae-metadata/SKILL.md +8 -15
  107. package/skills/ae-metadata/references/metadata_property_dimension_table_bind_existing.md +1 -1
  108. package/skills/ae-system/SKILL.md +357 -0
  109. package/dist/te-common-ST3QPSXJ.js +0 -61
  110. package/dist/te-common-WSLIKKPC.js +0 -61
  111. package/dist/te-meta-Q4L6EE3Q.js +0 -363
  112. package/dist/te-meta-VHCN4Q62.js +0 -363
  113. package/skills/ae-analysis/references/alert_definition_schema_get.md +0 -24
  114. package/skills/ae-analysis/references/batch_create_metadata.md +0 -41
  115. package/skills/ae-analysis/references/batch_edit_metadata.md +0 -39
  116. package/skills/ae-analysis/references/cancel_query.md +0 -38
  117. package/skills/ae-analysis/references/create_alert.md +0 -47
  118. package/skills/ae-analysis/references/create_entity.md +0 -39
  119. package/skills/ae-analysis/references/create_project_mark_time.md +0 -39
  120. package/skills/ae-analysis/references/delete_alert.md +0 -32
  121. package/skills/ae-analysis/references/delete_project_mark_times.md +0 -36
  122. package/skills/ae-analysis/references/delete_track_items.md +0 -36
  123. package/skills/ae-analysis/references/generate_track_program.md +0 -52
  124. package/skills/ae-analysis/references/generate_track_sdk_sample.md +0 -44
  125. package/skills/ae-analysis/references/get_alert.md +0 -35
  126. package/skills/ae-analysis/references/get_alert_definition_schema.md +0 -33
  127. package/skills/ae-analysis/references/get_project_config.md +0 -33
  128. package/skills/ae-analysis/references/get_track_program.md +0 -34
  129. package/skills/ae-analysis/references/list_alerts.md +0 -41
  130. package/skills/ae-analysis/references/list_entities.md +0 -42
  131. package/skills/ae-analysis/references/list_project_mark_times.md +0 -43
  132. package/skills/ae-analysis/references/list_project_users.md +0 -33
  133. package/skills/ae-analysis/references/list_projects.md +0 -39
  134. package/skills/ae-analysis/references/load_filters.md +0 -47
  135. package/skills/ae-analysis/references/save_track_items.md +0 -37
  136. package/skills/ae-analysis/references/update_alert.md +0 -49
  137. package/skills/ae-analysis/references/update_project_mark_time.md +0 -40
  138. package/skills/ae-analysis-global/references/list_query_clusters.md +0 -68
  139. package/skills/ae-metadata/references/metadata_event_get.md +0 -52
  140. package/skills/ae-metadata/references/metadata_property_get.md +0 -54
  141. package/dist/{te-community-WXGB6IOX.js → te-community-QOYIYEJI.js} +3 -3
  142. package/dist/{te-community-X2AHXGCA.js → te-community-UFKI6ONP.js} +3 -3
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  printError
3
- } from "./chunk-IMMGMU54.js";
3
+ } from "./chunk-JTKMDN4A.js";
4
4
  import {
5
5
  clearCliToken,
6
6
  getCliToken
@@ -1266,8 +1266,8 @@ var addSyncSolution = {
1266
1266
  { name: "srcDatasourceId", type: "string", required: true, desc: "Source datasource ID" },
1267
1267
  { name: "sinkComponent", type: "string", required: true, desc: "Sink component name from +list_sync_datasources, e.g. te_etl, ClickHouse, MySQL" },
1268
1268
  { name: "sinkDatasourceId", type: "string", required: true, desc: "Sink datasource ID" },
1269
- { name: "sourceConfig", type: "string", required: true, desc: "Source configuration JSON string. Preset warehouse source requires tableType, bizClassify, dbBizType, authedSpace, partitionKeys, and successOnEmpty" },
1270
- { name: "sinkConfig", type: "string", required: true, desc: "Sink configuration JSON string. Preset warehouse sink requires tableType, bizClassify, dbBizType, authedSpace, and partitionKeys" },
1269
+ { name: "sourceConfig", type: "string", required: true, desc: "Source configuration JSON. Include component and follow the source-specific template in the ae-dataops integration skill" },
1270
+ { name: "sinkConfig", type: "string", required: true, desc: "Sink configuration JSON. Include component and follow the sink-specific template in the ae-dataops integration skill" },
1271
1271
  { name: "channelConfig", type: "string", required: false, desc: "Channel configuration JSON string. Include gatewayConfig when source or sink uses the preset warehouse" },
1272
1272
  { name: "fieldsMapping", type: "string", required: false, desc: "Field mapping JSON string" },
1273
1273
  { name: "remark", type: "string", required: false, desc: "Remark" }
@@ -1296,13 +1296,13 @@ function buildArgs35(ctx) {
1296
1296
  var saveSyncSolution = {
1297
1297
  service: "dataops_integration",
1298
1298
  command: "+save_sync_solution",
1299
- description: "Update a sync solution. Requires complete sourceConfig and sinkConfig JSON; not a partial patch. Call +get_sync_detail --withParams true first",
1299
+ description: "Update a sync solution. Requires complete sourceConfig and sinkConfig JSON; not a partial patch. Call +get_sync_detail --withParams true first. syncName is accepted for compatibility but ignored",
1300
1300
  flags: [
1301
1301
  { name: "spaceCode", type: "string", required: true, desc: "Space code" },
1302
1302
  { name: "syncId", type: "string", required: true, desc: "Sync solution ID" },
1303
- { name: "syncName", type: "string", required: false, desc: "New sync solution name" },
1304
- { name: "sourceConfig", type: "string", required: true, desc: "Complete source configuration JSON" },
1305
- { name: "sinkConfig", type: "string", required: true, desc: "Complete sink configuration JSON" },
1303
+ { name: "syncName", type: "string", required: false, desc: "Ignored on update; the current name is preserved" },
1304
+ { name: "sourceConfig", type: "string", required: true, desc: "Complete source configuration JSON. Include component and follow the source-specific template in the ae-dataops integration skill" },
1305
+ { name: "sinkConfig", type: "string", required: true, desc: "Complete sink configuration JSON. Include component and follow the sink-specific template in the ae-dataops integration skill" },
1306
1306
  { name: "channelConfig", type: "string", required: false, desc: "Complete channel configuration JSON; pass it to keep or update custom channel settings" },
1307
1307
  { name: "fieldsMapping", type: "string", required: false, desc: "Complete field mapping JSON; pass it to keep or update field mappings" },
1308
1308
  { name: "remark", type: "string", required: false, desc: "Updated remark" }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  printError
3
- } from "./chunk-IMMGMU54.js";
3
+ } from "./chunk-JTKMDN4A.js";
4
4
  import {
5
5
  clearCliToken,
6
6
  getCliToken
@@ -1268,8 +1268,8 @@ var addSyncSolution = {
1268
1268
  { name: "srcDatasourceId", type: "string", required: true, desc: "Source datasource ID" },
1269
1269
  { name: "sinkComponent", type: "string", required: true, desc: "Sink component name from +list_sync_datasources, e.g. te_etl, ClickHouse, MySQL" },
1270
1270
  { name: "sinkDatasourceId", type: "string", required: true, desc: "Sink datasource ID" },
1271
- { name: "sourceConfig", type: "string", required: true, desc: "Source configuration JSON string. Preset warehouse source requires tableType, bizClassify, dbBizType, authedSpace, partitionKeys, and successOnEmpty" },
1272
- { name: "sinkConfig", type: "string", required: true, desc: "Sink configuration JSON string. Preset warehouse sink requires tableType, bizClassify, dbBizType, authedSpace, and partitionKeys" },
1271
+ { name: "sourceConfig", type: "string", required: true, desc: "Source configuration JSON. Include component and follow the source-specific template in the ae-dataops integration skill" },
1272
+ { name: "sinkConfig", type: "string", required: true, desc: "Sink configuration JSON. Include component and follow the sink-specific template in the ae-dataops integration skill" },
1273
1273
  { name: "channelConfig", type: "string", required: false, desc: "Channel configuration JSON string. Include gatewayConfig when source or sink uses the preset warehouse" },
1274
1274
  { name: "fieldsMapping", type: "string", required: false, desc: "Field mapping JSON string" },
1275
1275
  { name: "remark", type: "string", required: false, desc: "Remark" }
@@ -1298,13 +1298,13 @@ function buildArgs35(ctx) {
1298
1298
  var saveSyncSolution = {
1299
1299
  service: "dataops_integration",
1300
1300
  command: "+save_sync_solution",
1301
- description: "Update a sync solution. Requires complete sourceConfig and sinkConfig JSON; not a partial patch. Call +get_sync_detail --withParams true first",
1301
+ description: "Update a sync solution. Requires complete sourceConfig and sinkConfig JSON; not a partial patch. Call +get_sync_detail --withParams true first. syncName is accepted for compatibility but ignored",
1302
1302
  flags: [
1303
1303
  { name: "spaceCode", type: "string", required: true, desc: "Space code" },
1304
1304
  { name: "syncId", type: "string", required: true, desc: "Sync solution ID" },
1305
- { name: "syncName", type: "string", required: false, desc: "New sync solution name" },
1306
- { name: "sourceConfig", type: "string", required: true, desc: "Complete source configuration JSON" },
1307
- { name: "sinkConfig", type: "string", required: true, desc: "Complete sink configuration JSON" },
1305
+ { name: "syncName", type: "string", required: false, desc: "Ignored on update; the current name is preserved" },
1306
+ { name: "sourceConfig", type: "string", required: true, desc: "Complete source configuration JSON. Include component and follow the source-specific template in the ae-dataops integration skill" },
1307
+ { name: "sinkConfig", type: "string", required: true, desc: "Complete sink configuration JSON. Include component and follow the sink-specific template in the ae-dataops integration skill" },
1308
1308
  { name: "channelConfig", type: "string", required: false, desc: "Complete channel configuration JSON; pass it to keep or update custom channel settings" },
1309
1309
  { name: "fieldsMapping", type: "string", required: false, desc: "Complete field mapping JSON; pass it to keep or update field mappings" },
1310
1310
  { name: "remark", type: "string", required: false, desc: "Updated remark" }
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createCapabilityCommand
3
- } from "./chunk-6CHYBI64.js";
3
+ } from "./chunk-EBPXT3TN.js";
4
4
  import {
5
5
  registerCapabilityGatewayRoute
6
6
  } from "./chunk-PTE56QPL.js";
7
7
  import "./chunk-RGXCNC4N.js";
8
8
  import {
9
9
  printError
10
- } from "./chunk-IMMGMU54.js";
10
+ } from "./chunk-JTKMDN4A.js";
11
11
  import "./chunk-E7UXXHO3.js";
12
12
  import "./chunk-IR4ZLVPW.js";
13
13
  import "./chunk-V6FR6WTW.js";
@@ -1249,6 +1249,44 @@ var commonMetricDelete = createEngageSettingCapabilityCommand({
1249
1249
  })
1250
1250
  });
1251
1251
 
1252
+ // src/commands/te-engage/engage-setting/query/cluster-qp-skill.ts
1253
+ var queryClusterQpSkill = createEngageSettingCapabilityCommand({
1254
+ resource: "query",
1255
+ command: "cluster-qp-skill",
1256
+ capabilityId: "engage-setting.query.cluster-qp-skill",
1257
+ description: "Query the mix-cluster QP skill definition for audience, trigger, and completion event objects. Returns skill text (not final QP JSON). Use it before save when build-save-guide requires targetConfig.qp, triggerConfig.triggerRule, clientConfig.clientQp, or completionIndicatorDef.event.",
1258
+ flags: [
1259
+ { name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
1260
+ {
1261
+ name: "response-mode",
1262
+ type: "string",
1263
+ required: false,
1264
+ desc: "Skill content mode: base, examples, or full. Default: full."
1265
+ },
1266
+ {
1267
+ name: "condition-subtype",
1268
+ type: "string",
1269
+ required: false,
1270
+ desc: "Condition subtype selector: core, behavior_seq, or all. Default: all."
1271
+ }
1272
+ ],
1273
+ risk: "read",
1274
+ buildInput: (ctx) => {
1275
+ const input = {
1276
+ project_id: ctx.num("project-id")
1277
+ };
1278
+ const responseMode = ctx.str("response-mode");
1279
+ const conditionSubtype = ctx.str("condition-subtype");
1280
+ if (responseMode) {
1281
+ input.response_mode = responseMode;
1282
+ }
1283
+ if (conditionSubtype) {
1284
+ input.condition_subtype = conditionSubtype;
1285
+ }
1286
+ return input;
1287
+ }
1288
+ });
1289
+
1252
1290
  // src/commands/te-engage/engage-setting/index.ts
1253
1291
  var commands2 = [
1254
1292
  channelTouchLimitsList,
@@ -1288,7 +1326,8 @@ var commands2 = [
1288
1326
  commonMetricGet,
1289
1327
  commonMetricCreate,
1290
1328
  commonMetricUpdate,
1291
- commonMetricDelete
1329
+ commonMetricDelete,
1330
+ queryClusterQpSkill
1292
1331
  ];
1293
1332
  var engage_setting_default = commands2;
1294
1333
 
@@ -1990,6 +2029,49 @@ var strategyLog = createEngageSceneCapabilityCommand({
1990
2029
  })
1991
2030
  });
1992
2031
 
2032
+ // src/commands/te-engage/engage-scene/strategy/predict.ts
2033
+ var strategyPredict = createEngageSceneCapabilityCommand({
2034
+ resource: "strategy",
2035
+ command: "predict",
2036
+ capabilityId: "engage-scene.strategy.predict",
2037
+ description: "Predict custom-audience size for a config strategy (maps to POST /v1/hermes/config/strategy/predictEntityCount).",
2038
+ flags: [
2039
+ { name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
2040
+ {
2041
+ name: "qp",
2042
+ type: "string",
2043
+ required: true,
2044
+ desc: "Mix QP JSON string (same as targetClusterQp on the strategy)."
2045
+ },
2046
+ {
2047
+ name: "zone-offset",
2048
+ type: "number",
2049
+ required: true,
2050
+ desc: "Strategy timezone offset in hours (e.g. 8)."
2051
+ },
2052
+ {
2053
+ name: "strategy-uuid",
2054
+ type: "string",
2055
+ required: false,
2056
+ desc: "Optional strategy UUID; when set, persists clusterUserNum on the strategy."
2057
+ },
2058
+ {
2059
+ name: "request-id",
2060
+ type: "string",
2061
+ required: false,
2062
+ desc: "Optional client request id; auto-generated when omitted."
2063
+ }
2064
+ ],
2065
+ risk: "read",
2066
+ buildInput: (ctx) => ({
2067
+ project_id: ctx.num("project-id"),
2068
+ qp: ctx.str("qp"),
2069
+ zone_offset: ctx.num("zone-offset"),
2070
+ ...ctx.str("strategy-uuid") ? { strategy_uuid: ctx.str("strategy-uuid") } : {},
2071
+ ...ctx.str("request-id") ? { request_id: ctx.str("request-id") } : {}
2072
+ })
2073
+ });
2074
+
1993
2075
  // src/commands/te-engage/engage-scene/strategy/batch-copy.ts
1994
2076
  var strategyBatchCopy = createEngageSceneCapabilityCommand({
1995
2077
  resource: "strategy",
@@ -2189,6 +2271,7 @@ var commands3 = [
2189
2271
  strategyManage,
2190
2272
  strategyUpdate,
2191
2273
  strategyLog,
2274
+ strategyPredict,
2192
2275
  strategyBatchCopy,
2193
2276
  // strategySaveSubmit,
2194
2277
  // strategyTestSend,
@@ -3204,7 +3287,7 @@ var taskSave = createEngageTaskCapabilityCommand({
3204
3287
  resource: "task",
3205
3288
  command: "save",
3206
3289
  capabilityId: "engage-task.task.save",
3207
- description: "Create or update a task draft.",
3290
+ description: "Create a task draft, or update an existing draft/paused task.",
3208
3291
  flags: [
3209
3292
  { name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
3210
3293
  { name: "req", type: "json", required: true, desc: "Task save request JSON object." }
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createCapabilityCommand
3
- } from "./chunk-ISY6HMHM.js";
3
+ } from "./chunk-RRFK2W7I.js";
4
4
  import {
5
5
  registerCapabilityGatewayRoute
6
6
  } from "./chunk-PTE56QPL.js";
7
7
  import "./chunk-HQ2A7ITL.js";
8
8
  import {
9
9
  printError
10
- } from "./chunk-IMMGMU54.js";
10
+ } from "./chunk-JTKMDN4A.js";
11
11
  import "./chunk-E7UXXHO3.js";
12
12
  import "./chunk-IR4ZLVPW.js";
13
13
  import "./chunk-V6FR6WTW.js";
@@ -1249,6 +1249,44 @@ var commonMetricDelete = createEngageSettingCapabilityCommand({
1249
1249
  })
1250
1250
  });
1251
1251
 
1252
+ // src/commands/te-engage/engage-setting/query/cluster-qp-skill.ts
1253
+ var queryClusterQpSkill = createEngageSettingCapabilityCommand({
1254
+ resource: "query",
1255
+ command: "cluster-qp-skill",
1256
+ capabilityId: "engage-setting.query.cluster-qp-skill",
1257
+ description: "Query the mix-cluster QP skill definition for audience, trigger, and completion event objects. Returns skill text (not final QP JSON). Use it before save when build-save-guide requires targetConfig.qp, triggerConfig.triggerRule, clientConfig.clientQp, or completionIndicatorDef.event.",
1258
+ flags: [
1259
+ { name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
1260
+ {
1261
+ name: "response-mode",
1262
+ type: "string",
1263
+ required: false,
1264
+ desc: "Skill content mode: base, examples, or full. Default: full."
1265
+ },
1266
+ {
1267
+ name: "condition-subtype",
1268
+ type: "string",
1269
+ required: false,
1270
+ desc: "Condition subtype selector: core, behavior_seq, or all. Default: all."
1271
+ }
1272
+ ],
1273
+ risk: "read",
1274
+ buildInput: (ctx) => {
1275
+ const input = {
1276
+ project_id: ctx.num("project-id")
1277
+ };
1278
+ const responseMode = ctx.str("response-mode");
1279
+ const conditionSubtype = ctx.str("condition-subtype");
1280
+ if (responseMode) {
1281
+ input.response_mode = responseMode;
1282
+ }
1283
+ if (conditionSubtype) {
1284
+ input.condition_subtype = conditionSubtype;
1285
+ }
1286
+ return input;
1287
+ }
1288
+ });
1289
+
1252
1290
  // src/commands/te-engage/engage-setting/index.ts
1253
1291
  var commands2 = [
1254
1292
  channelTouchLimitsList,
@@ -1288,7 +1326,8 @@ var commands2 = [
1288
1326
  commonMetricGet,
1289
1327
  commonMetricCreate,
1290
1328
  commonMetricUpdate,
1291
- commonMetricDelete
1329
+ commonMetricDelete,
1330
+ queryClusterQpSkill
1292
1331
  ];
1293
1332
  var engage_setting_default = commands2;
1294
1333
 
@@ -1990,6 +2029,49 @@ var strategyLog = createEngageSceneCapabilityCommand({
1990
2029
  })
1991
2030
  });
1992
2031
 
2032
+ // src/commands/te-engage/engage-scene/strategy/predict.ts
2033
+ var strategyPredict = createEngageSceneCapabilityCommand({
2034
+ resource: "strategy",
2035
+ command: "predict",
2036
+ capabilityId: "engage-scene.strategy.predict",
2037
+ description: "Predict custom-audience size for a config strategy (maps to POST /v1/hermes/config/strategy/predictEntityCount).",
2038
+ flags: [
2039
+ { name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
2040
+ {
2041
+ name: "qp",
2042
+ type: "string",
2043
+ required: true,
2044
+ desc: "Mix QP JSON string (same as targetClusterQp on the strategy)."
2045
+ },
2046
+ {
2047
+ name: "zone-offset",
2048
+ type: "number",
2049
+ required: true,
2050
+ desc: "Strategy timezone offset in hours (e.g. 8)."
2051
+ },
2052
+ {
2053
+ name: "strategy-uuid",
2054
+ type: "string",
2055
+ required: false,
2056
+ desc: "Optional strategy UUID; when set, persists clusterUserNum on the strategy."
2057
+ },
2058
+ {
2059
+ name: "request-id",
2060
+ type: "string",
2061
+ required: false,
2062
+ desc: "Optional client request id; auto-generated when omitted."
2063
+ }
2064
+ ],
2065
+ risk: "read",
2066
+ buildInput: (ctx) => ({
2067
+ project_id: ctx.num("project-id"),
2068
+ qp: ctx.str("qp"),
2069
+ zone_offset: ctx.num("zone-offset"),
2070
+ ...ctx.str("strategy-uuid") ? { strategy_uuid: ctx.str("strategy-uuid") } : {},
2071
+ ...ctx.str("request-id") ? { request_id: ctx.str("request-id") } : {}
2072
+ })
2073
+ });
2074
+
1993
2075
  // src/commands/te-engage/engage-scene/strategy/batch-copy.ts
1994
2076
  var strategyBatchCopy = createEngageSceneCapabilityCommand({
1995
2077
  resource: "strategy",
@@ -2189,6 +2271,7 @@ var commands3 = [
2189
2271
  strategyManage,
2190
2272
  strategyUpdate,
2191
2273
  strategyLog,
2274
+ strategyPredict,
2192
2275
  strategyBatchCopy,
2193
2276
  // strategySaveSubmit,
2194
2277
  // strategyTestSend,
@@ -3204,7 +3287,7 @@ var taskSave = createEngageTaskCapabilityCommand({
3204
3287
  resource: "task",
3205
3288
  command: "save",
3206
3289
  capabilityId: "engage-task.task.save",
3207
- description: "Create or update a task draft.",
3290
+ description: "Create a task draft, or update an existing draft/paused task.",
3208
3291
  flags: [
3209
3292
  { name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
3210
3293
  { name: "req", type: "json", required: true, desc: "Task save request JSON object." }
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  createCapabilityCommand
3
- } from "./chunk-ISY6HMHM.js";
3
+ } from "./chunk-RRFK2W7I.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-JTKMDN4A.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-EBPXT3TN.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-JTKMDN4A.js";
9
9
  import "./chunk-E7UXXHO3.js";
10
10
  import "./chunk-IR4ZLVPW.js";
11
11
  import "./chunk-V6FR6WTW.js";
@@ -0,0 +1,95 @@
1
+ import {
2
+ callMcpTool,
3
+ parseMcpResult,
4
+ resolveMcpUrl
5
+ } from "./chunk-CPVTECJ3.js";
6
+ import "./chunk-LCXU3AAT.js";
7
+ import "./chunk-E7UXXHO3.js";
8
+ import "./chunk-IR4ZLVPW.js";
9
+ import "./chunk-V6FR6WTW.js";
10
+ import "./chunk-24BAVOX3.js";
11
+ import "./chunk-LYVNONC4.js";
12
+
13
+ // src/commands/te-meta/shared.ts
14
+ function createMcpCommand(config) {
15
+ const toolName = config.command.slice(1);
16
+ const mcpService = config.mcpService || "analysis";
17
+ return {
18
+ service: "analysis_meta",
19
+ command: config.command,
20
+ description: config.description,
21
+ flags: config.flags,
22
+ risk: config.risk,
23
+ dryRun: (ctx) => ({
24
+ method: "tools/call",
25
+ url: resolveMcpUrl(ctx.mcpUrl(), ctx.host(), mcpService),
26
+ body: {
27
+ name: toolName,
28
+ arguments: config.buildArgs(ctx)
29
+ }
30
+ }),
31
+ execute: async (ctx) => {
32
+ const url = resolveMcpUrl(ctx.mcpUrl(), ctx.host(), mcpService);
33
+ const result = await callMcpTool(url, toolName, config.buildArgs(ctx), ctx.host());
34
+ return parseMcpResult(result);
35
+ }
36
+ };
37
+ }
38
+ function optionalJson(ctx, name) {
39
+ const value = ctx.str(name);
40
+ return value === "" ? void 0 : ctx.json(name);
41
+ }
42
+
43
+ // src/commands/te-meta/meta/batch-edit-metadata.ts
44
+ var batchEditMetadata = createMcpCommand({
45
+ command: "+batch_edit_metadata",
46
+ description: "Batch edit effective system metadata only",
47
+ flags: [
48
+ { name: "project_id", type: "number", required: true, alias: "p", desc: "Project ID" },
49
+ { name: "type", type: "string", required: true, desc: "Metadata type: event, event_property, or user_property" },
50
+ { name: "items", type: "json", required: true, desc: "Batch edit item list JSON array" }
51
+ ],
52
+ risk: "write",
53
+ mcpService: "te_analysis_extend",
54
+ buildArgs: (ctx) => ({
55
+ projectId: ctx.num("project_id"),
56
+ type: ctx.str("type"),
57
+ items: ctx.json("items")
58
+ })
59
+ });
60
+
61
+ // src/commands/te-meta/meta/batch-create-metadata.ts
62
+ var batchCreateMetadata = createMcpCommand({
63
+ command: "+batch_create_metadata",
64
+ description: "Batch create effective system metadata only",
65
+ flags: [
66
+ { name: "project_id", type: "number", required: true, alias: "p", desc: "Project ID" },
67
+ { name: "events", type: "json", required: false, desc: "Event creation list JSON array" },
68
+ { name: "event_properties", type: "json", required: false, desc: "Event property creation list JSON array" },
69
+ { name: "user_properties", type: "json", required: false, desc: "User property creation list JSON array" }
70
+ ],
71
+ risk: "write",
72
+ mcpService: "te_analysis_extend",
73
+ buildArgs: (ctx) => ({
74
+ projectId: ctx.num("project_id"),
75
+ events: optionalJson(ctx, "events"),
76
+ eventProperties: optionalJson(ctx, "event_properties"),
77
+ userProperties: optionalJson(ctx, "user_properties")
78
+ })
79
+ });
80
+
81
+ // src/commands/te-meta/meta/index.ts
82
+ var commands = [
83
+ batchEditMetadata,
84
+ batchCreateMetadata
85
+ ];
86
+ var meta_default = commands;
87
+
88
+ // src/commands/te-meta/index.ts
89
+ var commands2 = [
90
+ ...meta_default
91
+ ];
92
+ var te_meta_default = commands2;
93
+ export {
94
+ te_meta_default as default
95
+ };
@@ -0,0 +1,95 @@
1
+ import {
2
+ callMcpTool,
3
+ parseMcpResult,
4
+ resolveMcpUrl
5
+ } from "./chunk-3P3562ZX.js";
6
+ import "./chunk-LCXU3AAT.js";
7
+ import "./chunk-E7UXXHO3.js";
8
+ import "./chunk-IR4ZLVPW.js";
9
+ import "./chunk-V6FR6WTW.js";
10
+ import "./chunk-24BAVOX3.js";
11
+ import "./chunk-LYVNONC4.js";
12
+
13
+ // src/commands/te-meta/shared.ts
14
+ function createMcpCommand(config) {
15
+ const toolName = config.command.slice(1);
16
+ const mcpService = config.mcpService || "analysis";
17
+ return {
18
+ service: "analysis_meta",
19
+ command: config.command,
20
+ description: config.description,
21
+ flags: config.flags,
22
+ risk: config.risk,
23
+ dryRun: (ctx) => ({
24
+ method: "tools/call",
25
+ url: resolveMcpUrl(ctx.mcpUrl(), ctx.host(), mcpService),
26
+ body: {
27
+ name: toolName,
28
+ arguments: config.buildArgs(ctx)
29
+ }
30
+ }),
31
+ execute: async (ctx) => {
32
+ const url = resolveMcpUrl(ctx.mcpUrl(), ctx.host(), mcpService);
33
+ const result = await callMcpTool(url, toolName, config.buildArgs(ctx), ctx.host());
34
+ return parseMcpResult(result);
35
+ }
36
+ };
37
+ }
38
+ function optionalJson(ctx, name) {
39
+ const value = ctx.str(name);
40
+ return value === "" ? void 0 : ctx.json(name);
41
+ }
42
+
43
+ // src/commands/te-meta/meta/batch-edit-metadata.ts
44
+ var batchEditMetadata = createMcpCommand({
45
+ command: "+batch_edit_metadata",
46
+ description: "Batch edit effective system metadata only",
47
+ flags: [
48
+ { name: "project_id", type: "number", required: true, alias: "p", desc: "Project ID" },
49
+ { name: "type", type: "string", required: true, desc: "Metadata type: event, event_property, or user_property" },
50
+ { name: "items", type: "json", required: true, desc: "Batch edit item list JSON array" }
51
+ ],
52
+ risk: "write",
53
+ mcpService: "te_analysis_extend",
54
+ buildArgs: (ctx) => ({
55
+ projectId: ctx.num("project_id"),
56
+ type: ctx.str("type"),
57
+ items: ctx.json("items")
58
+ })
59
+ });
60
+
61
+ // src/commands/te-meta/meta/batch-create-metadata.ts
62
+ var batchCreateMetadata = createMcpCommand({
63
+ command: "+batch_create_metadata",
64
+ description: "Batch create effective system metadata only",
65
+ flags: [
66
+ { name: "project_id", type: "number", required: true, alias: "p", desc: "Project ID" },
67
+ { name: "events", type: "json", required: false, desc: "Event creation list JSON array" },
68
+ { name: "event_properties", type: "json", required: false, desc: "Event property creation list JSON array" },
69
+ { name: "user_properties", type: "json", required: false, desc: "User property creation list JSON array" }
70
+ ],
71
+ risk: "write",
72
+ mcpService: "te_analysis_extend",
73
+ buildArgs: (ctx) => ({
74
+ projectId: ctx.num("project_id"),
75
+ events: optionalJson(ctx, "events"),
76
+ eventProperties: optionalJson(ctx, "event_properties"),
77
+ userProperties: optionalJson(ctx, "user_properties")
78
+ })
79
+ });
80
+
81
+ // src/commands/te-meta/meta/index.ts
82
+ var commands = [
83
+ batchEditMetadata,
84
+ batchCreateMetadata
85
+ ];
86
+ var meta_default = commands;
87
+
88
+ // src/commands/te-meta/index.ts
89
+ var commands2 = [
90
+ ...meta_default
91
+ ];
92
+ var te_meta_default = commands2;
93
+ export {
94
+ te_meta_default as default
95
+ };