@thinkingai/ae-cli 6.1.12 → 6.1.14

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 (154) hide show
  1. package/README.md +0 -2
  2. package/README.zh.md +0 -2
  3. package/dist/{auth-NN55553T.js → auth-GBMV6TEJ.js} +2 -2
  4. package/dist/{auth-GDV3H5I4.js → auth-NDSXE54J.js} +4 -4
  5. package/dist/{capability-DRLGDVS4.js → capability-TAMDRZYV.js} +18 -8
  6. package/dist/{capability-P6GK3AQH.js → capability-U7TDEEEG.js} +18 -8
  7. package/dist/{chunk-GJJA4CQZ.js → chunk-3FY3RJ26.js} +0 -4
  8. package/dist/{chunk-GS2P7LFD.js → chunk-5XUSIK27.js} +2 -2
  9. package/dist/{chunk-7KQWSBSL.js → chunk-753BUTNZ.js} +3 -3
  10. package/dist/{chunk-VTXHDCBW.js → chunk-AFXA7BRK.js} +2 -2
  11. package/dist/chunk-IBH3LDAH.js +556 -0
  12. package/dist/{chunk-RBNKI5ZW.js → chunk-JUW4AJXN.js} +2 -2
  13. package/dist/{chunk-TS6BUGUY.js → chunk-QATA32VR.js} +3 -3
  14. package/dist/{chunk-Z3OXWCIA.js → chunk-S5NTSDBS.js} +2 -2
  15. package/dist/chunk-UIHQJK5E.js +556 -0
  16. package/dist/{chunk-VKD5WQKN.js → chunk-VLWOLBGZ.js} +142 -24
  17. package/dist/{chunk-YTG6Q75E.js → chunk-WZRX4KOH.js} +25 -3
  18. package/dist/{chunk-YV52FB5G.js → chunk-ZQKDZXDO.js} +1 -1
  19. package/dist/{cli-token-GL5MS5FK.js → cli-token-4UPER74P.js} +3 -3
  20. package/dist/{chunk-6A2FUCIS.js → client-L2YDMHQ6.js} +5 -6
  21. package/dist/{config-4VZNLBKF.js → config-OL2LWGBV.js} +4 -33
  22. package/dist/index.js +25 -38
  23. package/dist/{memory-RWJW4XFO.js → memory-MUP7PPL7.js} +4 -4
  24. package/dist/{memory-VO2ZJCRT.js → memory-U4O5PMXH.js} +4 -4
  25. package/dist/{metadata-ZRN2GHPN.js → metadata-5MIMNIMT.js} +33 -20
  26. package/dist/{metadata-YGTHR2XJ.js → metadata-LERKDJN6.js} +33 -20
  27. package/dist/{model-CLUIK3K5.js → model-JTUEO5M4.js} +2 -2
  28. package/dist/{sync-3REDHGY6.js → sync-MOSFNBVR.js} +5 -5
  29. package/dist/{te-agent-XNPELAKX.js → te-agent-IFKZDHZI.js} +25 -18
  30. package/dist/{te-analysis-GJI5FZUL.js → te-analysis-FCHRTNIY.js} +1267 -492
  31. package/dist/{te-analysis-N2BRDJZ5.js → te-analysis-QG7UKGDA.js} +1267 -492
  32. package/dist/{te-community-SQXKE5OO.js → te-community-HNKVTERD.js} +207 -12
  33. package/dist/{te-community-TYSNU3NQ.js → te-community-IWE5B7W6.js} +208 -12
  34. package/dist/{te-dataops-OWIADNSM.js → te-dataops-KQPYNAE3.js} +262 -145
  35. package/dist/{te-dataops-5TM7WZDI.js → te-dataops-KXCEB4CS.js} +262 -145
  36. package/dist/{te-engage-L72HWRGO.js → te-engage-D6EG3NOR.js} +951 -17
  37. package/dist/{te-engage-QWM4GFS7.js → te-engage-ZSMIJLUW.js} +951 -17
  38. package/dist/{te-experiment-2T2HEZML.js → te-experiment-K5US7RMG.js} +6 -6
  39. package/dist/{te-experiment-PVEY7AEZ.js → te-experiment-WA7TFMEL.js} +6 -6
  40. package/dist/{te-kb-VRMEY3D4.js → te-kb-OIH3T6CS.js} +4 -4
  41. package/dist/{te-system-XGS5EQIQ.js → te-system-AZ3URMUO.js} +515 -11
  42. package/dist/{te-team-BZRDV2CM.js → te-team-GZPU6UWA.js} +5 -5
  43. package/dist/{update-HEDXGOJH.js → update-TOBFXF2V.js} +4 -4
  44. package/package.json +5 -5
  45. package/skills/ae-agent/SKILL.md +3 -3
  46. package/skills/ae-agent/references/list-skill-references.md +4 -4
  47. package/skills/ae-agent/references/read-skill-reference.md +10 -7
  48. package/skills/ae-agent/references/upload-skill-reference.md +11 -9
  49. package/skills/ae-analysis/SKILL.md +15 -12
  50. package/skills/ae-analysis/metadata_resolution.md +150 -0
  51. package/skills/ae-analysis/references/adhoc_export.md +17 -2
  52. package/skills/ae-analysis/references/adhoc_run.md +12 -8
  53. package/skills/ae-analysis/references/ai_models.md +35 -6
  54. package/skills/ae-analysis/references/alert_list.md +2 -3
  55. package/skills/ae-analysis/references/analysis_data_retrieval.md +104 -16
  56. package/skills/ae-analysis/references/analysis_drilldown_contract.md +4 -4
  57. package/skills/ae-analysis/references/analysis_gateway_assets.md +17 -15
  58. package/skills/ae-analysis/references/artifact_download.md +4 -3
  59. package/skills/ae-analysis/references/asset_abnormal_list.md +5 -3
  60. package/skills/ae-analysis/references/asset_authentication_list.md +5 -3
  61. package/skills/ae-analysis/references/asset_search.md +5 -3
  62. package/skills/ae-analysis/references/bi_panel_list.md +2 -2
  63. package/skills/ae-analysis/references/bi_panel_page_data_export.md +1 -1
  64. package/skills/ae-analysis/references/bi_panel_page_data_run.md +4 -4
  65. package/skills/ae-analysis/references/catalog_export.md +28 -0
  66. package/skills/ae-analysis/references/catalog_list.md +44 -0
  67. package/skills/ae-analysis/references/command_index.md +78 -69
  68. package/skills/ae-analysis/references/dashboard_list.md +2 -2
  69. package/skills/ae-analysis/references/dashboard_report_data_run.md +11 -4
  70. package/skills/ae-analysis/references/datatable_version_list.md +5 -3
  71. package/skills/ae-analysis/references/drilldown_entities_run.md +4 -4
  72. package/skills/ae-analysis/references/drilldown_events_run.md +2 -2
  73. package/skills/ae-analysis/references/drilldown_user_events_export.md +1 -1
  74. package/skills/ae-analysis/references/drilldown_user_events_run.md +2 -2
  75. package/skills/ae-analysis/references/entity_detail_run.md +4 -4
  76. package/skills/ae-analysis/references/entity_id_import_options.md +1 -1
  77. package/skills/ae-analysis/references/event_detail_run.md +4 -4
  78. package/skills/ae-analysis/references/event_export.md +21 -0
  79. package/skills/ae-analysis/references/event_list.md +7 -6
  80. package/skills/ae-analysis/references/exchange_rule_list.md +5 -3
  81. package/skills/ae-analysis/references/favorite_add.md +2 -2
  82. package/skills/ae-analysis/references/favorite_remove.md +2 -2
  83. package/skills/ae-analysis/references/history_tag_data_drilldown_export.md +4 -2
  84. package/skills/ae-analysis/references/history_tag_data_drilldown_run.md +2 -2
  85. package/skills/ae-analysis/references/history_tag_data_run.md +2 -2
  86. package/skills/ae-analysis/references/metric_create.md +7 -8
  87. package/skills/ae-analysis/references/metric_export.md +21 -0
  88. package/skills/ae-analysis/references/metric_list.md +8 -7
  89. package/skills/ae-analysis/references/project_space_list.md +2 -2
  90. package/skills/ae-analysis/references/property_export.md +21 -0
  91. package/skills/ae-analysis/references/property_list.md +9 -8
  92. package/skills/ae-analysis/references/public_link_list.md +2 -2
  93. package/skills/ae-analysis/references/query_context_get.md +20 -0
  94. package/skills/ae-analysis/references/query_create_result_cluster.md +1 -1
  95. package/skills/ae-analysis/references/report_change_log_list.md +1 -1
  96. package/skills/ae-analysis/references/report_create.md +3 -3
  97. package/skills/ae-analysis/references/report_data_run.md +8 -8
  98. package/skills/ae-analysis/references/report_list.md +3 -3
  99. package/skills/ae-analysis/references/report_list_export.md +2 -2
  100. package/skills/ae-analysis/references/report_update.md +3 -3
  101. package/skills/ae-analysis/references/report_version_rollback.md +1 -1
  102. package/skills/ae-analysis/references/rule_list.md +6 -4
  103. package/skills/ae-analysis/references/run_inspect.md +8 -5
  104. package/skills/ae-analysis/references/run_wait.md +37 -0
  105. package/skills/ae-analysis/references/sql_table_list.md +3 -2
  106. package/skills/ae-analysis/references/user_cluster_export.md +13 -0
  107. package/skills/ae-analysis/references/user_cluster_list.md +6 -2
  108. package/skills/ae-analysis/references/user_cluster_member_export.md +5 -3
  109. package/skills/ae-analysis/references/user_cluster_member_list.md +4 -4
  110. package/skills/ae-analysis/references/user_cluster_update.md +4 -2
  111. package/skills/ae-analysis/references/user_tag_export.md +13 -0
  112. package/skills/ae-analysis/references/user_tag_list.md +6 -2
  113. package/skills/ae-analysis/references/user_tag_member_export.md +5 -3
  114. package/skills/ae-analysis/references/user_tag_member_list.md +4 -4
  115. package/skills/ae-analysis/references/user_tag_update.md +4 -2
  116. package/skills/ae-analysis/references/virtual_property_create.md +2 -2
  117. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +3 -3
  118. package/skills/ae-community/SKILL.md +2 -2
  119. package/skills/ae-dataops/SKILL.md +4 -3
  120. package/skills/ae-dataops/references/dataops-flow-create.md +47 -3
  121. package/skills/ae-engage/SKILL.md +55 -7
  122. package/skills/ae-engage/references/build-task-save-guide.md +12 -0
  123. package/skills/ae-engage/references/cancel-query-run.md +31 -0
  124. package/skills/ae-engage/references/config-item-analysis-report.md +14 -1
  125. package/skills/ae-engage/references/config-item-strategy-comparison.md +11 -1
  126. package/skills/ae-engage/references/config-item-trigger-report.md +15 -1
  127. package/skills/ae-engage/references/flow-metric-detail-report.md +134 -0
  128. package/skills/ae-engage/references/flow-metric-update.md +77 -0
  129. package/skills/ae-engage/references/flow-metric-user.md +119 -0
  130. package/skills/ae-engage/references/flow-node-metric-user.md +123 -0
  131. package/skills/ae-engage/references/flow-node-user.md +123 -0
  132. package/skills/ae-engage/references/push-record-query.md +32 -1
  133. package/skills/ae-engage/references/save-task.md +9 -0
  134. package/skills/ae-engage/references/task-data-detail.md +9 -2
  135. package/skills/ae-engage/references/task-indicator-user.md +104 -0
  136. package/skills/ae-engage/references/task-metric-detail.md +9 -2
  137. package/skills/ae-engage/references/task-submit-approval.md +3 -0
  138. package/skills/ae-engage/references/task-user-detail-export.md +31 -0
  139. package/skills/ae-experiment/references/save_experiment.md +4 -0
  140. package/skills/ae-experiment-design/SKILL.md +1 -1
  141. package/skills/ae-experiment-design/references/platform-operations.md +1 -1
  142. package/skills/ae-experiment-insight/references/platform-operations.md +1 -1
  143. package/skills/ae-metadata/SKILL.md +2 -1
  144. package/skills/ae-metadata/references/metadata_data_table_download.md +10 -2
  145. package/skills/ae-metadata/references/metadata_data_table_list.md +5 -2
  146. package/skills/ae-metadata/references/metadata_property_dimension_table_bind_existing.md +1 -1
  147. package/skills/ae-system/SKILL.md +66 -3
  148. package/dist/chunk-DT6Y3TD7.js +0 -232
  149. package/dist/chunk-MVDZ7DBQ.js +0 -231
  150. package/dist/chunk-NBPKWKRA.js +0 -51
  151. package/dist/client-DAIPF7XN.js +0 -23
  152. package/dist/raw-52B4UKO4.js +0 -71
  153. package/dist/te-meta-53BVXPFI.js +0 -95
  154. package/dist/te-meta-TOCBPBXI.js +0 -95
@@ -1,17 +1,18 @@
1
1
  import {
2
2
  printError
3
- } from "./chunk-YTG6Q75E.js";
3
+ } from "./chunk-WZRX4KOH.js";
4
4
  import {
5
5
  clearCliToken,
6
6
  getCliToken
7
- } from "./chunk-Z3OXWCIA.js";
7
+ } from "./chunk-S5NTSDBS.js";
8
8
  import {
9
9
  resolveHost
10
- } from "./chunk-YV52FB5G.js";
10
+ } from "./chunk-ZQKDZXDO.js";
11
11
  import {
12
12
  safeJsonParse
13
- } from "./chunk-GJJA4CQZ.js";
13
+ } from "./chunk-3FY3RJ26.js";
14
14
  import {
15
+ CliValidationError,
15
16
  PermissionError
16
17
  } from "./chunk-AXDXJTPC.js";
17
18
  import {
@@ -41,6 +42,9 @@ var TOOL_API_MAP = {
41
42
  flow_update_integration_task: { method: "POST", path: "/api/cli/dataops/v1/gaia/workflow/integration-task-definition" },
42
43
  flow_create_workflow_instance_check_task: { method: "POST", path: "/api/cli/dataops/v1/gaia/workflow/workflow-instance-check-tasks" },
43
44
  flow_update_workflow_instance_check_task: { method: "POST", path: "/api/cli/dataops/v1/gaia/workflow/workflow-instance-check-task-definition" },
45
+ flow_create_task_instance_check_task: { method: "POST", path: "/api/cli/dataops/v1/gaia/workflow/task-instance-check-tasks" },
46
+ flow_update_task_instance_check_task: { method: "POST", path: "/api/cli/dataops/v1/gaia/workflow/task-instance-check-task-definition" },
47
+ flow_delete_task: { method: "POST", path: "/api/cli/dataops/v1/gaia/workflow/task-deletion" },
44
48
  flow_add_task_relation: { method: "POST", path: "/api/cli/dataops/v1/gaia/workflow/task-relation" },
45
49
  flow_get_task_params: { method: "GET", path: "/api/cli/dataops/v1/gaia/workflow/task-params" },
46
50
  operations_search_flow_instances: { method: "POST", path: "/api/cli/dataops/v1/gaia/operations/flow-instances/search" },
@@ -76,10 +80,10 @@ var TOOL_API_MAP = {
76
80
  ide_get_sql_query_status: { method: "GET", path: "/api/cli/dataops/v1/gaia/ide/sql-query-status" },
77
81
  ide_cancel_sql_query: { method: "POST", path: "/api/cli/dataops/v1/gaia/ide/sql-query-cancel" }
78
82
  };
79
- async function callDataopsApi(ctx, toolName56, args = {}) {
80
- const spec = TOOL_API_MAP[toolName56];
83
+ async function callDataopsApi(ctx, toolName59, args = {}) {
84
+ const spec = TOOL_API_MAP[toolName59];
81
85
  if (!spec) {
82
- throw new Error(`DataOps API mapping not found for tool: ${toolName56}`);
86
+ throw new Error(`DataOps API mapping not found for tool: ${toolName59}`);
83
87
  }
84
88
  const params = compactArgs(args);
85
89
  if (spec.method === "GET") {
@@ -87,10 +91,10 @@ async function callDataopsApi(ctx, toolName56, args = {}) {
87
91
  }
88
92
  return dataopsRequest(ctx, spec.method, spec.path, {}, params);
89
93
  }
90
- function buildDataopsApiDryRun(ctx, toolName56, args = {}) {
91
- const spec = TOOL_API_MAP[toolName56];
94
+ function buildDataopsApiDryRun(ctx, toolName59, args = {}) {
95
+ const spec = TOOL_API_MAP[toolName59];
92
96
  if (!spec) {
93
- throw new Error(`DataOps API mapping not found for tool: ${toolName56}`);
97
+ throw new Error(`DataOps API mapping not found for tool: ${toolName59}`);
94
98
  }
95
99
  const params = compactArgs(args);
96
100
  if (spec.method === "GET") {
@@ -844,6 +848,7 @@ var updateIntegrationTask = {
844
848
 
845
849
  // src/commands/te-dataops/flow/workflow-instance-check-task-options.ts
846
850
  var ITEM_FIELDS = /* @__PURE__ */ new Set(["flowCode", "left", "right", "checkTimeUnit"]);
851
+ var TASK_ITEM_FIELDS = /* @__PURE__ */ new Set([...ITEM_FIELDS, "taskCode"]);
847
852
  var TIME_UNITS = /* @__PURE__ */ new Set(["DAY", "HOUR", "MINUTE"]);
848
853
  function buildCheckArgs(ctx) {
849
854
  return {
@@ -853,9 +858,10 @@ function buildCheckArgs(ctx) {
853
858
  checkTime: ctx.optionalNum("checkTime")
854
859
  };
855
860
  }
856
- function validateCheckArgs(ctx) {
861
+ function validateCheckArgs(ctx, requireTaskCode = false) {
857
862
  const items = ctx.json("checkItems");
858
863
  const currentFlowCode = ctx.num("flowCode");
864
+ const itemFields = requireTaskCode ? TASK_ITEM_FIELDS : ITEM_FIELDS;
859
865
  if (!Array.isArray(items) || items.length < 1 || items.length > 20) {
860
866
  throw new Error("checkItems must be a JSON array with between 1 and 20 items");
861
867
  }
@@ -864,13 +870,16 @@ function validateCheckArgs(ctx) {
864
870
  throw new Error(`checkItems[${index}] must be an object`);
865
871
  }
866
872
  for (const field of Object.keys(item)) {
867
- if (!ITEM_FIELDS.has(field)) {
873
+ if (!itemFields.has(field)) {
868
874
  throw new Error(`checkItems[${index}] contains unsupported field "${field}"`);
869
875
  }
870
876
  }
871
877
  if (!Number.isSafeInteger(item.flowCode) || item.flowCode <= 0) {
872
878
  throw new Error(`checkItems[${index}].flowCode must be a positive integer`);
873
879
  }
880
+ if (requireTaskCode && (!Number.isSafeInteger(item.taskCode) || item.taskCode <= 0)) {
881
+ throw new Error(`checkItems[${index}].taskCode must be a positive integer`);
882
+ }
874
883
  const minimum = item.flowCode === currentFlowCode ? 1 : 0;
875
884
  if (!Number.isInteger(item.left) || item.left < minimum) {
876
885
  throw new Error(`checkItems[${index}].left must be an integer greater than or equal to ${minimum}`);
@@ -968,9 +977,114 @@ var updateWorkflowInstanceCheckTask = {
968
977
  execute: async (ctx) => callDataopsApi(ctx, toolName21, buildArgs21(ctx))
969
978
  };
970
979
 
971
- // src/commands/te-dataops/flow/list-high-frequency-release-flows.ts
972
- var toolName22 = "flow_list_high_frequency_release_flows";
980
+ // src/commands/te-dataops/flow/create-task-instance-check-task.ts
981
+ var toolName22 = "flow_create_task_instance_check_task";
973
982
  function buildArgs22(ctx) {
983
+ return {
984
+ spaceCode: ctx.str("spaceCode"),
985
+ flowCode: ctx.num("flowCode"),
986
+ taskName: ctx.str("taskName"),
987
+ remark: ctx.str("remark"),
988
+ ...buildCheckArgs(ctx),
989
+ ...buildTaskWriteArgs(ctx)
990
+ };
991
+ }
992
+ var createTaskInstanceCheckTask = {
993
+ service: "dataops_flow",
994
+ command: "+create_task_instance_check_task",
995
+ description: "Create a DEV task instance check task. It waits for one or more target tasks using one flat AND/OR relation",
996
+ flags: [
997
+ { name: "spaceCode", type: "string", required: true, desc: "Space code" },
998
+ { name: "flowCode", type: "number", required: true, desc: "Flow code where the new TASK_CHECK node is created" },
999
+ { name: "taskName", type: "string", required: true, desc: "Task name" },
1000
+ { name: "checkItems", type: "json", required: true, desc: "JSON array of 1-20 target tasks. Each object allows only flowCode, taskCode, left, right, and checkTimeUnit (DAY, HOUR, or MINUTE); nested taskCode identifies the target task" },
1001
+ { name: "relation", type: "string", required: false, default: "AND", desc: "Flat relation across all check items: AND or OR. Default AND" },
1002
+ { name: "checkInterval", type: "number", required: false, default: 10, min: 1, max: 180, desc: "Check interval in minutes. Default 10" },
1003
+ { name: "checkTime", type: "number", required: false, default: 3, min: 1, max: 20, desc: "Number of checks. Default 3" },
1004
+ { name: "remark", type: "string", required: false, desc: "Description" },
1005
+ ...createTaskWriteFlags
1006
+ ],
1007
+ risk: "write",
1008
+ validate: (ctx) => {
1009
+ validateCheckArgs(ctx, true);
1010
+ validateTaskWriteArgs(ctx);
1011
+ },
1012
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName22, buildArgs22(ctx)),
1013
+ execute: async (ctx) => callDataopsApi(ctx, toolName22, buildArgs22(ctx))
1014
+ };
1015
+
1016
+ // src/commands/te-dataops/flow/update-task-instance-check-task.ts
1017
+ var toolName23 = "flow_update_task_instance_check_task";
1018
+ function buildArgs23(ctx) {
1019
+ return {
1020
+ spaceCode: ctx.str("spaceCode"),
1021
+ flowCode: ctx.num("flowCode"),
1022
+ taskCode: ctx.num("taskCode"),
1023
+ ...buildCheckArgs(ctx),
1024
+ ...buildTaskWriteArgs(ctx)
1025
+ };
1026
+ }
1027
+ var updateTaskInstanceCheckTask = {
1028
+ service: "dataops_flow",
1029
+ command: "+update_task_instance_check_task",
1030
+ description: "Replace the check configuration of an existing DEV task instance check node. Omitted dependencies, check scalars, and retry fields keep existing values",
1031
+ flags: [
1032
+ { name: "spaceCode", type: "string", required: true, desc: "Space code" },
1033
+ { name: "flowCode", type: "number", required: true, desc: "Flow code containing the TASK_CHECK node to update" },
1034
+ { name: "taskCode", type: "number", required: true, desc: "TASK_CHECK node code to update; this is not a target task code from checkItems" },
1035
+ { name: "checkItems", type: "json", required: true, desc: "Replacement JSON array of 1-20 target tasks. Each object allows only flowCode, taskCode, left, right, and checkTimeUnit (DAY, HOUR, or MINUTE); nested taskCode identifies the target task" },
1036
+ { name: "relation", type: "string", required: false, desc: "Flat relation across all check items: AND or OR. Omit to keep the existing relation" },
1037
+ { name: "checkInterval", type: "number", required: false, min: 1, max: 180, desc: "Check interval in minutes. Omit to keep the existing value" },
1038
+ { name: "checkTime", type: "number", required: false, min: 1, max: 20, desc: "Number of checks. Omit to keep the existing value" },
1039
+ ...updateTaskWriteFlags
1040
+ ],
1041
+ risk: "write",
1042
+ validate: (ctx) => {
1043
+ validateCheckArgs(ctx, true);
1044
+ validateTaskWriteArgs(ctx);
1045
+ },
1046
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName23, buildArgs23(ctx)),
1047
+ execute: async (ctx) => callDataopsApi(ctx, toolName23, buildArgs23(ctx))
1048
+ };
1049
+
1050
+ // src/commands/te-dataops/flow/delete-task.ts
1051
+ var toolName24 = "flow_delete_task";
1052
+ function validateIdentifier(ctx, name) {
1053
+ const raw = ctx.str(name).trim();
1054
+ if (!/^[1-9]\d*$/.test(raw) || !Number.isSafeInteger(Number(raw))) {
1055
+ throw new CliValidationError(`--${name} must be a positive safe integer`, {
1056
+ location: { field: name }
1057
+ });
1058
+ }
1059
+ }
1060
+ function buildArgs24(ctx) {
1061
+ return {
1062
+ spaceCode: ctx.str("spaceCode"),
1063
+ flowCode: ctx.num("flowCode"),
1064
+ taskCode: ctx.num("taskCode")
1065
+ };
1066
+ }
1067
+ var deleteTask = {
1068
+ service: "dataops_flow",
1069
+ command: "+delete_task",
1070
+ description: "Delete one task node from a DEV flow. This disconnects its dependencies, may stop running DEV debug executions, does not repair cross-flow task-check references, and requires a later flow release to remove an already published PROD node.",
1071
+ flags: [
1072
+ { name: "spaceCode", type: "string", required: true, desc: "Space code" },
1073
+ { name: "flowCode", type: "number", required: true, desc: "Task flow code containing the node" },
1074
+ { name: "taskCode", type: "number", required: true, desc: "Task node code to delete" }
1075
+ ],
1076
+ risk: "high-risk-write",
1077
+ validate: (ctx) => {
1078
+ validateIdentifier(ctx, "flowCode");
1079
+ validateIdentifier(ctx, "taskCode");
1080
+ },
1081
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName24, buildArgs24(ctx)),
1082
+ execute: async (ctx) => callDataopsApi(ctx, toolName24, buildArgs24(ctx))
1083
+ };
1084
+
1085
+ // src/commands/te-dataops/flow/list-high-frequency-release-flows.ts
1086
+ var toolName25 = "flow_list_high_frequency_release_flows";
1087
+ function buildArgs25(ctx) {
974
1088
  return {
975
1089
  spaceCode: ctx.str("spaceCode"),
976
1090
  days: ctx.optionalNum("days"),
@@ -991,9 +1105,9 @@ var listHighFrequencyReleaseFlows = {
991
1105
  { name: "status", type: "string", required: false, desc: "Optional release status: SUCCESS, FAIL, PART_SUCCESS, or ALL; default SUCCESS" }
992
1106
  ],
993
1107
  risk: "read",
994
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName22, buildArgs22(ctx)),
1108
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName25, buildArgs25(ctx)),
995
1109
  execute: async (ctx) => {
996
- return callDataopsApi(ctx, toolName22, buildArgs22(ctx));
1110
+ return callDataopsApi(ctx, toolName25, buildArgs25(ctx));
997
1111
  }
998
1112
  };
999
1113
 
@@ -1012,30 +1126,33 @@ var commands2 = [
1012
1126
  updateSqlTask,
1013
1127
  updateIntegrationTask,
1014
1128
  updateWorkflowInstanceCheckTask,
1129
+ updateTaskInstanceCheckTask,
1015
1130
  addTaskRelation,
1016
1131
  createSqlTask,
1017
1132
  createIntegrationTask,
1018
- createWorkflowInstanceCheckTask
1133
+ createWorkflowInstanceCheckTask,
1134
+ createTaskInstanceCheckTask,
1135
+ deleteTask
1019
1136
  ];
1020
1137
  var flow_default = commands2;
1021
1138
 
1022
1139
  // src/commands/te-dataops/integration/list-datasource-components.ts
1023
- var toolName23 = "integration_list_datasource_components";
1140
+ var toolName26 = "integration_list_datasource_components";
1024
1141
  var listDatasourceComponents = {
1025
1142
  service: "dataops_integration",
1026
1143
  command: "+list_datasource_components",
1027
1144
  description: "List supported datasource components. Requires no arguments. Returns componentName, componentType, and description. Use +get_datasource_component_template before creating a datasource.",
1028
1145
  flags: [],
1029
1146
  risk: "read",
1030
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName23, {}),
1147
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName26, {}),
1031
1148
  execute: async (ctx) => {
1032
- return callDataopsApi(ctx, toolName23, {});
1149
+ return callDataopsApi(ctx, toolName26, {});
1033
1150
  }
1034
1151
  };
1035
1152
 
1036
1153
  // src/commands/te-dataops/integration/get-datasource-component-template.ts
1037
- var toolName24 = "integration_get_datasource_component_template";
1038
- function buildArgs23(ctx) {
1154
+ var toolName27 = "integration_get_datasource_component_template";
1155
+ function buildArgs26(ctx) {
1039
1156
  return {
1040
1157
  componentName: ctx.str("componentName")
1041
1158
  };
@@ -1048,15 +1165,15 @@ var getDatasourceComponentTemplate = {
1048
1165
  { name: "componentName", type: "string", required: true, desc: "Exact componentName returned by +list_datasource_components, e.g. MySQL, ClickHouse, DatabricksJdbc, LarkBitable, OSS, S3, HDFS" }
1049
1166
  ],
1050
1167
  risk: "read",
1051
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName24, buildArgs23(ctx)),
1168
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName27, buildArgs26(ctx)),
1052
1169
  execute: async (ctx) => {
1053
- return callDataopsApi(ctx, toolName24, buildArgs23(ctx));
1170
+ return callDataopsApi(ctx, toolName27, buildArgs26(ctx));
1054
1171
  }
1055
1172
  };
1056
1173
 
1057
1174
  // src/commands/te-dataops/integration/list-space-datasources.ts
1058
- var toolName25 = "integration_list_space_datasources";
1059
- function buildArgs24(ctx) {
1175
+ var toolName28 = "integration_list_space_datasources";
1176
+ function buildArgs27(ctx) {
1060
1177
  return {
1061
1178
  spaceCode: ctx.str("spaceCode"),
1062
1179
  dataSourceName: ctx.str("datasourceName"),
@@ -1073,15 +1190,15 @@ var listSpaceDatasources = {
1073
1190
  { name: "componentName", type: "string", required: false, desc: "Optional component type filter, e.g. MySQL or ClickHouse" }
1074
1191
  ],
1075
1192
  risk: "read",
1076
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName25, buildArgs24(ctx)),
1193
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName28, buildArgs27(ctx)),
1077
1194
  execute: async (ctx) => {
1078
- return callDataopsApi(ctx, toolName25, buildArgs24(ctx));
1195
+ return callDataopsApi(ctx, toolName28, buildArgs27(ctx));
1079
1196
  }
1080
1197
  };
1081
1198
 
1082
1199
  // src/commands/te-dataops/integration/get-datasource-detail.ts
1083
- var toolName26 = "integration_get_datasource_detail";
1084
- function buildArgs25(ctx) {
1200
+ var toolName29 = "integration_get_datasource_detail";
1201
+ function buildArgs28(ctx) {
1085
1202
  return {
1086
1203
  spaceCode: ctx.str("spaceCode"),
1087
1204
  dataSourceName: ctx.str("datasourceName")
@@ -1096,14 +1213,14 @@ var getDatasourceDetail = {
1096
1213
  { name: "datasourceName", type: "string", required: true, desc: "Exact datasource name within the space" }
1097
1214
  ],
1098
1215
  risk: "read",
1099
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName26, buildArgs25(ctx)),
1216
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName29, buildArgs28(ctx)),
1100
1217
  execute: async (ctx) => {
1101
- return callDataopsApi(ctx, toolName26, buildArgs25(ctx));
1218
+ return callDataopsApi(ctx, toolName29, buildArgs28(ctx));
1102
1219
  }
1103
1220
  };
1104
1221
 
1105
1222
  // src/commands/te-dataops/integration/test-datasource-connect.ts
1106
- var toolName27 = "integration_test_datasource_connect";
1223
+ var toolName30 = "integration_test_datasource_connect";
1107
1224
  var testDatasourceConnect = {
1108
1225
  service: "dataops_integration",
1109
1226
  command: "+test_datasource_connect",
@@ -1113,12 +1230,12 @@ var testDatasourceConnect = {
1113
1230
  { name: "datasourceName", type: "string", required: true, desc: "Existing datasource name, exact match within the space" }
1114
1231
  ],
1115
1232
  risk: "read",
1116
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName27, {
1233
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName30, {
1117
1234
  spaceCode: ctx.str("spaceCode"),
1118
1235
  datasourceName: ctx.str("datasourceName")
1119
1236
  }),
1120
1237
  execute: async (ctx) => {
1121
- return callDataopsApi(ctx, toolName27, {
1238
+ return callDataopsApi(ctx, toolName30, {
1122
1239
  spaceCode: ctx.str("spaceCode"),
1123
1240
  datasourceName: ctx.str("datasourceName")
1124
1241
  });
@@ -1126,8 +1243,8 @@ var testDatasourceConnect = {
1126
1243
  };
1127
1244
 
1128
1245
  // src/commands/te-dataops/integration/list-datasource-tables.ts
1129
- var toolName28 = "integration_list_datasource_tables";
1130
- function buildArgs26(ctx) {
1246
+ var toolName31 = "integration_list_datasource_tables";
1247
+ function buildArgs29(ctx) {
1131
1248
  return {
1132
1249
  spaceCode: ctx.str("spaceCode"),
1133
1250
  datasourceId: ctx.str("datasourceId"),
@@ -1148,15 +1265,15 @@ var listDatasourceTables = {
1148
1265
  { name: "env", type: "string", required: false, desc: "Environment: DEV (default) or PROD" }
1149
1266
  ],
1150
1267
  risk: "read",
1151
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName28, buildArgs26(ctx)),
1268
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName31, buildArgs29(ctx)),
1152
1269
  execute: async (ctx) => {
1153
- return callDataopsApi(ctx, toolName28, buildArgs26(ctx));
1270
+ return callDataopsApi(ctx, toolName31, buildArgs29(ctx));
1154
1271
  }
1155
1272
  };
1156
1273
 
1157
1274
  // src/commands/te-dataops/integration/get-table-structure.ts
1158
- var toolName29 = "integration_get_table_structure";
1159
- function buildArgs27(ctx) {
1275
+ var toolName32 = "integration_get_table_structure";
1276
+ function buildArgs30(ctx) {
1160
1277
  return {
1161
1278
  spaceCode: ctx.str("spaceCode"),
1162
1279
  datasourceId: ctx.str("datasourceId"),
@@ -1179,15 +1296,15 @@ var getTableStructure = {
1179
1296
  { name: "env", type: "string", required: false, desc: "Environment: DEV (default) or PROD" }
1180
1297
  ],
1181
1298
  risk: "read",
1182
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName29, buildArgs27(ctx)),
1299
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName32, buildArgs30(ctx)),
1183
1300
  execute: async (ctx) => {
1184
- return callDataopsApi(ctx, toolName29, buildArgs27(ctx));
1301
+ return callDataopsApi(ctx, toolName32, buildArgs30(ctx));
1185
1302
  }
1186
1303
  };
1187
1304
 
1188
1305
  // src/commands/te-dataops/integration/list-sync-datasources.ts
1189
- var toolName30 = "integration_list_sync_datasources";
1190
- function buildArgs28(ctx) {
1306
+ var toolName33 = "integration_list_sync_datasources";
1307
+ function buildArgs31(ctx) {
1191
1308
  return {
1192
1309
  spaceCode: ctx.str("spaceCode"),
1193
1310
  env: ctx.str("env")
@@ -1202,15 +1319,15 @@ var listSyncDatasources = {
1202
1319
  { name: "env", type: "string", required: false, desc: "Environment: DEV (default) or PROD" }
1203
1320
  ],
1204
1321
  risk: "read",
1205
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName30, buildArgs28(ctx)),
1322
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName33, buildArgs31(ctx)),
1206
1323
  execute: async (ctx) => {
1207
- return callDataopsApi(ctx, toolName30, buildArgs28(ctx));
1324
+ return callDataopsApi(ctx, toolName33, buildArgs31(ctx));
1208
1325
  }
1209
1326
  };
1210
1327
 
1211
1328
  // src/commands/te-dataops/integration/list-datasource-databases.ts
1212
- var toolName31 = "integration_list_datasource_databases";
1213
- function buildArgs29(ctx) {
1329
+ var toolName34 = "integration_list_datasource_databases";
1330
+ function buildArgs32(ctx) {
1214
1331
  return {
1215
1332
  spaceCode: ctx.str("spaceCode"),
1216
1333
  datasourceId: ctx.str("datasourceId"),
@@ -1229,15 +1346,15 @@ var listDatasourceDatabases = {
1229
1346
  { name: "env", type: "string", required: false, desc: "Environment: DEV (default) or PROD" }
1230
1347
  ],
1231
1348
  risk: "read",
1232
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName31, buildArgs29(ctx)),
1349
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName34, buildArgs32(ctx)),
1233
1350
  execute: async (ctx) => {
1234
- return callDataopsApi(ctx, toolName31, buildArgs29(ctx));
1351
+ return callDataopsApi(ctx, toolName34, buildArgs32(ctx));
1235
1352
  }
1236
1353
  };
1237
1354
 
1238
1355
  // src/commands/te-dataops/integration/online-datasource.ts
1239
- var toolName32 = "integration_online_datasource";
1240
- function buildArgs30(ctx) {
1356
+ var toolName35 = "integration_online_datasource";
1357
+ function buildArgs33(ctx) {
1241
1358
  return {
1242
1359
  spaceCode: ctx.str("spaceCode"),
1243
1360
  dataSourceNames: ctx.str("dataSourceNames")
@@ -1252,15 +1369,15 @@ var onlineDatasource = {
1252
1369
  { name: "dataSourceNames", type: "string", required: true, desc: "Datasource name list (comma-separated)" }
1253
1370
  ],
1254
1371
  risk: "write",
1255
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName32, buildArgs30(ctx)),
1372
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName35, buildArgs33(ctx)),
1256
1373
  execute: async (ctx) => {
1257
- return callDataopsApi(ctx, toolName32, buildArgs30(ctx));
1374
+ return callDataopsApi(ctx, toolName35, buildArgs33(ctx));
1258
1375
  }
1259
1376
  };
1260
1377
 
1261
1378
  // src/commands/te-dataops/integration/add-datasource.ts
1262
- var toolName33 = "integration_add_datasource";
1263
- function buildArgs31(ctx) {
1379
+ var toolName36 = "integration_add_datasource";
1380
+ function buildArgs34(ctx) {
1264
1381
  return {
1265
1382
  spaceCode: ctx.str("spaceCode"),
1266
1383
  componentName: ctx.str("componentName"),
@@ -1283,14 +1400,14 @@ var addDatasource = {
1283
1400
  { name: "envJsonList", type: "string", required: true, desc: "JSON array string of component connection fields. Keys must match requiredFields from +get_datasource_component_template" }
1284
1401
  ],
1285
1402
  risk: "write",
1286
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName33, buildArgs31(ctx)),
1403
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName36, buildArgs34(ctx)),
1287
1404
  execute: async (ctx) => {
1288
- return callDataopsApi(ctx, toolName33, buildArgs31(ctx));
1405
+ return callDataopsApi(ctx, toolName36, buildArgs34(ctx));
1289
1406
  }
1290
1407
  };
1291
1408
 
1292
1409
  // src/commands/te-dataops/integration/modify-datasource.ts
1293
- var toolName34 = "integration_modify_datasource";
1410
+ var toolName37 = "integration_modify_datasource";
1294
1411
  function optionalBool(ctx, name) {
1295
1412
  const flagName = `--${name}`;
1296
1413
  const hasFlag = process.argv.some((arg) => arg === flagName || arg.startsWith(`${flagName}=`));
@@ -1298,7 +1415,7 @@ function optionalBool(ctx, name) {
1298
1415
  const raw = ctx.str(name);
1299
1416
  return raw === "true" || raw === "1" || raw === "yes";
1300
1417
  }
1301
- function buildArgs32(ctx) {
1418
+ function buildArgs35(ctx) {
1302
1419
  return {
1303
1420
  spaceCode: ctx.str("spaceCode"),
1304
1421
  dataSourceName: ctx.str("dataSourceName"),
@@ -1319,15 +1436,15 @@ var modifyDatasource = {
1319
1436
  { name: "envJsonList", type: "string", required: false, desc: "New environment config JSON array string (not passed means not modified)" }
1320
1437
  ],
1321
1438
  risk: "write",
1322
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName34, buildArgs32(ctx)),
1439
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName37, buildArgs35(ctx)),
1323
1440
  execute: async (ctx) => {
1324
- return callDataopsApi(ctx, toolName34, buildArgs32(ctx));
1441
+ return callDataopsApi(ctx, toolName37, buildArgs35(ctx));
1325
1442
  }
1326
1443
  };
1327
1444
 
1328
1445
  // src/commands/te-dataops/integration/list-sync-solutions.ts
1329
- var toolName35 = "integration_list_sync_solutions";
1330
- function buildArgs33(ctx) {
1446
+ var toolName38 = "integration_list_sync_solutions";
1447
+ function buildArgs36(ctx) {
1331
1448
  return {
1332
1449
  spaceCode: ctx.str("spaceCode")
1333
1450
  };
@@ -1340,15 +1457,15 @@ var listSyncSolutions = {
1340
1457
  { name: "spaceCode", type: "string", required: true, desc: "Space code" }
1341
1458
  ],
1342
1459
  risk: "read",
1343
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName35, buildArgs33(ctx)),
1460
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName38, buildArgs36(ctx)),
1344
1461
  execute: async (ctx) => {
1345
- return callDataopsApi(ctx, toolName35, buildArgs33(ctx));
1462
+ return callDataopsApi(ctx, toolName38, buildArgs36(ctx));
1346
1463
  }
1347
1464
  };
1348
1465
 
1349
1466
  // src/commands/te-dataops/integration/get-sync-detail.ts
1350
- var toolName36 = "integration_get_sync_detail";
1351
- function buildArgs34(ctx) {
1467
+ var toolName39 = "integration_get_sync_detail";
1468
+ function buildArgs37(ctx) {
1352
1469
  return {
1353
1470
  spaceCode: ctx.str("spaceCode"),
1354
1471
  syncId: ctx.str("syncId"),
@@ -1365,13 +1482,13 @@ var getSyncDetail = {
1365
1482
  { name: "withParams", type: "boolean", required: false, desc: "Also return usedParams; defaults to false" }
1366
1483
  ],
1367
1484
  risk: "read",
1368
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName36, buildArgs34(ctx)),
1369
- execute: async (ctx) => callDataopsApi(ctx, toolName36, buildArgs34(ctx))
1485
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName39, buildArgs37(ctx)),
1486
+ execute: async (ctx) => callDataopsApi(ctx, toolName39, buildArgs37(ctx))
1370
1487
  };
1371
1488
 
1372
1489
  // src/commands/te-dataops/integration/list-sync-runs.ts
1373
- var toolName37 = "integration_list_sync_runs";
1374
- function buildArgs35(ctx) {
1490
+ var toolName40 = "integration_list_sync_runs";
1491
+ function buildArgs38(ctx) {
1375
1492
  return {
1376
1493
  spaceCode: ctx.str("spaceCode"),
1377
1494
  syncId: ctx.str("syncId"),
@@ -1388,12 +1505,12 @@ var listSyncRuns = {
1388
1505
  { name: "limit", type: "number", required: false, desc: "Number of results to return, defaults to 20 if not provided" }
1389
1506
  ],
1390
1507
  risk: "read",
1391
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName37, buildArgs35(ctx)),
1392
- execute: async (ctx) => callDataopsApi(ctx, toolName37, buildArgs35(ctx))
1508
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName40, buildArgs38(ctx)),
1509
+ execute: async (ctx) => callDataopsApi(ctx, toolName40, buildArgs38(ctx))
1393
1510
  };
1394
1511
 
1395
1512
  // src/commands/te-dataops/integration/exec-sync-solution.ts
1396
- var toolName38 = "integration_exec_sync_solution";
1513
+ var toolName41 = "integration_exec_sync_solution";
1397
1514
  var execSyncSolution = {
1398
1515
  service: "dataops_integration",
1399
1516
  command: "+exec_sync_solution",
@@ -1405,14 +1522,14 @@ var execSyncSolution = {
1405
1522
  { name: "comment", type: "string", required: false, desc: "Optional execution remark" }
1406
1523
  ],
1407
1524
  risk: "write",
1408
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName38, {
1525
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName41, {
1409
1526
  spaceCode: ctx.str("spaceCode"),
1410
1527
  syncId: ctx.str("syncId"),
1411
1528
  baseDate: ctx.str("baseDate"),
1412
1529
  comment: ctx.str("comment")
1413
1530
  }),
1414
1531
  execute: async (ctx) => {
1415
- return callDataopsApi(ctx, toolName38, {
1532
+ return callDataopsApi(ctx, toolName41, {
1416
1533
  spaceCode: ctx.str("spaceCode"),
1417
1534
  syncId: ctx.str("syncId"),
1418
1535
  baseDate: ctx.str("baseDate"),
@@ -1422,8 +1539,8 @@ var execSyncSolution = {
1422
1539
  };
1423
1540
 
1424
1541
  // src/commands/te-dataops/integration/add-sync-solution.ts
1425
- var toolName39 = "integration_add_sync_solution";
1426
- function buildArgs36(ctx) {
1542
+ var toolName42 = "integration_add_sync_solution";
1543
+ function buildArgs39(ctx) {
1427
1544
  return {
1428
1545
  spaceCode: ctx.str("spaceCode"),
1429
1546
  syncName: ctx.str("syncName"),
@@ -1456,15 +1573,15 @@ var addSyncSolution = {
1456
1573
  { name: "remark", type: "string", required: false, desc: "Remark" }
1457
1574
  ],
1458
1575
  risk: "write",
1459
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName39, buildArgs36(ctx)),
1576
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName42, buildArgs39(ctx)),
1460
1577
  execute: async (ctx) => {
1461
- return callDataopsApi(ctx, toolName39, buildArgs36(ctx));
1578
+ return callDataopsApi(ctx, toolName42, buildArgs39(ctx));
1462
1579
  }
1463
1580
  };
1464
1581
 
1465
1582
  // src/commands/te-dataops/integration/save-sync-solution.ts
1466
- var toolName40 = "integration_save_sync_solution";
1467
- function buildArgs37(ctx) {
1583
+ var toolName43 = "integration_save_sync_solution";
1584
+ function buildArgs40(ctx) {
1468
1585
  return {
1469
1586
  spaceCode: ctx.str("spaceCode"),
1470
1587
  syncId: ctx.str("syncId"),
@@ -1491,13 +1608,13 @@ var saveSyncSolution = {
1491
1608
  { name: "remark", type: "string", required: false, desc: "Updated remark" }
1492
1609
  ],
1493
1610
  risk: "write",
1494
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName40, buildArgs37(ctx)),
1495
- execute: async (ctx) => callDataopsApi(ctx, toolName40, buildArgs37(ctx))
1611
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName43, buildArgs40(ctx)),
1612
+ execute: async (ctx) => callDataopsApi(ctx, toolName43, buildArgs40(ctx))
1496
1613
  };
1497
1614
 
1498
1615
  // src/commands/te-dataops/integration/stop-sync-solution.ts
1499
- var toolName41 = "integration_stop_sync_solution";
1500
- function buildArgs38(ctx) {
1616
+ var toolName44 = "integration_stop_sync_solution";
1617
+ function buildArgs41(ctx) {
1501
1618
  return {
1502
1619
  spaceCode: ctx.str("spaceCode"),
1503
1620
  syncId: ctx.str("syncId"),
@@ -1514,8 +1631,8 @@ var stopSyncSolution = {
1514
1631
  { name: "taskId", type: "string", required: true, desc: "Running execution task ID from +list_sync_runs" }
1515
1632
  ],
1516
1633
  risk: "write",
1517
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName41, buildArgs38(ctx)),
1518
- execute: async (ctx) => callDataopsApi(ctx, toolName41, buildArgs38(ctx))
1634
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName44, buildArgs41(ctx)),
1635
+ execute: async (ctx) => callDataopsApi(ctx, toolName44, buildArgs41(ctx))
1519
1636
  };
1520
1637
 
1521
1638
  // src/commands/te-dataops/integration/index.ts
@@ -1543,8 +1660,8 @@ var commands3 = [
1543
1660
  var integration_default = commands3;
1544
1661
 
1545
1662
  // src/commands/te-dataops/operations/get-flow-instance-detail.ts
1546
- var toolName42 = "operations_get_flow_instance_detail";
1547
- function buildArgs39(ctx) {
1663
+ var toolName45 = "operations_get_flow_instance_detail";
1664
+ function buildArgs42(ctx) {
1548
1665
  return {
1549
1666
  spaceCode: ctx.str("spaceCode"),
1550
1667
  flowCode: ctx.num("flowCode"),
@@ -1561,18 +1678,18 @@ var getFlowInstanceDetail = {
1561
1678
  { name: "flowInstanceId", type: "number", required: true, desc: "Workflow instance ID from +search_flow_instances" }
1562
1679
  ],
1563
1680
  risk: "read",
1564
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName42, buildArgs39(ctx)),
1681
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName45, buildArgs42(ctx)),
1565
1682
  execute: async (ctx) => {
1566
- return callDataopsApi(ctx, toolName42, buildArgs39(ctx));
1683
+ return callDataopsApi(ctx, toolName45, buildArgs42(ctx));
1567
1684
  }
1568
1685
  };
1569
1686
 
1570
1687
  // src/commands/te-dataops/operations/get-task-instance-detail.ts
1571
- var toolName43 = "operations_get_task_instance_detail";
1688
+ var toolName46 = "operations_get_task_instance_detail";
1572
1689
  function optionalBool2(ctx, name) {
1573
1690
  return ctx.str(name) === "" ? void 0 : ctx.bool(name);
1574
1691
  }
1575
- function buildArgs40(ctx) {
1692
+ function buildArgs43(ctx) {
1576
1693
  return {
1577
1694
  spaceCode: ctx.str("spaceCode"),
1578
1695
  flowCode: ctx.num("flowCode"),
@@ -1597,15 +1714,15 @@ var getTaskInstanceDetail = {
1597
1714
  { name: "includeLog", type: "boolean", required: false, desc: "Whether to include task logs. Default false" }
1598
1715
  ],
1599
1716
  risk: "read",
1600
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName43, buildArgs40(ctx)),
1717
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName46, buildArgs43(ctx)),
1601
1718
  execute: async (ctx) => {
1602
- return callDataopsApi(ctx, toolName43, buildArgs40(ctx));
1719
+ return callDataopsApi(ctx, toolName46, buildArgs43(ctx));
1603
1720
  }
1604
1721
  };
1605
1722
 
1606
1723
  // src/commands/te-dataops/operations/search-flow-instances.ts
1607
- var toolName44 = "operations_search_flow_instances";
1608
- function buildArgs41(ctx) {
1724
+ var toolName47 = "operations_search_flow_instances";
1725
+ function buildArgs44(ctx) {
1609
1726
  return {
1610
1727
  spaceCode: ctx.str("spaceCode"),
1611
1728
  keyword: ctx.str("keyword"),
@@ -1630,15 +1747,15 @@ var searchFlowInstances = {
1630
1747
  { name: "pageSize", type: "number", required: false, desc: "Optional page size; default 20, max 100" }
1631
1748
  ],
1632
1749
  risk: "read",
1633
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName44, buildArgs41(ctx)),
1750
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName47, buildArgs44(ctx)),
1634
1751
  execute: async (ctx) => {
1635
- return callDataopsApi(ctx, toolName44, buildArgs41(ctx));
1752
+ return callDataopsApi(ctx, toolName47, buildArgs44(ctx));
1636
1753
  }
1637
1754
  };
1638
1755
 
1639
1756
  // src/commands/te-dataops/operations/stop-flow-instance.ts
1640
- var toolName45 = "operations_stop_flow_instance";
1641
- function buildArgs42(ctx) {
1757
+ var toolName48 = "operations_stop_flow_instance";
1758
+ function buildArgs45(ctx) {
1642
1759
  const executeId = ctx.optionalNum("executeId");
1643
1760
  const flowInstanceId = ctx.optionalNum("flowInstanceId");
1644
1761
  if (executeId == null && flowInstanceId == null || executeId != null && flowInstanceId != null) {
@@ -1665,9 +1782,9 @@ var stopFlowInstance = {
1665
1782
  { name: "flowInstanceId", type: "number", required: false, desc: "Workflow instance ID returned by dataops_operations +search_flow_instances" }
1666
1783
  ],
1667
1784
  risk: "write",
1668
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName45, buildArgs42(ctx)),
1785
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName48, buildArgs45(ctx)),
1669
1786
  execute: async (ctx) => {
1670
- return callDataopsApi(ctx, toolName45, buildArgs42(ctx));
1787
+ return callDataopsApi(ctx, toolName48, buildArgs45(ctx));
1671
1788
  }
1672
1789
  };
1673
1790
 
@@ -1681,16 +1798,16 @@ var commands4 = [
1681
1798
  var operations_default = commands4;
1682
1799
 
1683
1800
  // src/commands/te-dataops/repo/list-spaces.ts
1684
- var toolName46 = "repo_list_spaces";
1801
+ var toolName49 = "repo_list_spaces";
1685
1802
  var listSpaces = {
1686
1803
  service: "dataops_repo",
1687
1804
  command: "+list_spaces",
1688
1805
  description: "List DataOps spaces accessible to the current user. Use this first when spaceCode is unknown. Returns createTime, spaceCode, and spaceDisplayName. No flags are required.",
1689
1806
  flags: [],
1690
1807
  risk: "read",
1691
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName46, {}),
1808
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName49, {}),
1692
1809
  execute: async (ctx) => {
1693
- return callDataopsApi(ctx, toolName46, {});
1810
+ return callDataopsApi(ctx, toolName49, {});
1694
1811
  }
1695
1812
  };
1696
1813
 
@@ -1701,12 +1818,12 @@ var commands5 = [
1701
1818
  var repo_default = commands5;
1702
1819
 
1703
1820
  // src/commands/te-dataops/ide/cancel-sql-query.ts
1704
- var toolName47 = "ide_cancel_sql_query";
1821
+ var toolName50 = "ide_cancel_sql_query";
1705
1822
  function optionalString4(ctx, name) {
1706
1823
  const value = ctx.str(name);
1707
1824
  return value === "" ? void 0 : value;
1708
1825
  }
1709
- function buildArgs43(ctx) {
1826
+ function buildArgs46(ctx) {
1710
1827
  return {
1711
1828
  spaceCode: ctx.str("spaceCode"),
1712
1829
  downloadTaskId: ctx.num("downloadTaskId"),
@@ -1723,20 +1840,20 @@ var cancelSqlQuery = {
1723
1840
  { name: "requestId", type: "string", required: false, desc: "Optional request ID returned by +submit_sql_query, used only for trace display" }
1724
1841
  ],
1725
1842
  risk: "write",
1726
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName47, buildArgs43(ctx)),
1727
- execute: async (ctx) => callDataopsApi(ctx, toolName47, buildArgs43(ctx))
1843
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName50, buildArgs46(ctx)),
1844
+ execute: async (ctx) => callDataopsApi(ctx, toolName50, buildArgs46(ctx))
1728
1845
  };
1729
1846
 
1730
1847
  // src/commands/te-dataops/ide/get-sql-query-status.ts
1731
1848
  import { mkdir, writeFile } from "fs/promises";
1732
1849
  import path from "path";
1733
- var toolName48 = "ide_get_sql_query_status";
1850
+ var toolName51 = "ide_get_sql_query_status";
1734
1851
  var downloadPath = "/api/cli/dataops/v1/gaia/ide/sql-query-download";
1735
1852
  function optionalString5(ctx, name) {
1736
1853
  const value = ctx.str(name);
1737
1854
  return value === "" ? void 0 : value;
1738
1855
  }
1739
- function buildArgs44(ctx) {
1856
+ function buildArgs47(ctx) {
1740
1857
  return {
1741
1858
  spaceCode: ctx.str("spaceCode"),
1742
1859
  downloadTaskId: ctx.num("downloadTaskId"),
@@ -1768,9 +1885,9 @@ var getSqlQueryStatus = {
1768
1885
  { name: "downloadTo", type: "string", required: false, desc: "Optional local file path. When downloadStatus=SUCCESS, save the result zip to this path; use a .zip suffix, for example ./result.zip." }
1769
1886
  ],
1770
1887
  risk: "read",
1771
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName48, buildArgs44(ctx)),
1888
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName51, buildArgs47(ctx)),
1772
1889
  execute: async (ctx) => {
1773
- const data = await callDataopsApi(ctx, toolName48, buildArgs44(ctx));
1890
+ const data = await callDataopsApi(ctx, toolName51, buildArgs47(ctx));
1774
1891
  const downloadTo = optionalString5(ctx, "downloadTo");
1775
1892
  if (downloadTo && isDownloadReady(data)) {
1776
1893
  return { ...data, localFile: await downloadResult(ctx, data, downloadTo) };
@@ -1780,12 +1897,12 @@ var getSqlQueryStatus = {
1780
1897
  };
1781
1898
 
1782
1899
  // src/commands/te-dataops/ide/list-catalogs.ts
1783
- var toolName49 = "ide_list_catalogs";
1900
+ var toolName52 = "ide_list_catalogs";
1784
1901
  function optionalString6(ctx, name) {
1785
1902
  const value = ctx.str(name);
1786
1903
  return value === "" ? void 0 : value;
1787
1904
  }
1788
- function buildArgs45(ctx) {
1905
+ function buildArgs48(ctx) {
1789
1906
  return {
1790
1907
  spaceCode: ctx.str("spaceCode"),
1791
1908
  connType: optionalString6(ctx, "connType"),
@@ -1802,19 +1919,19 @@ var listCatalogs = {
1802
1919
  { name: "repoCode", type: "string", required: false, desc: "Optional repository code. Default te_etl" }
1803
1920
  ],
1804
1921
  risk: "read",
1805
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName49, buildArgs45(ctx)),
1922
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName52, buildArgs48(ctx)),
1806
1923
  execute: async (ctx) => {
1807
- return callDataopsApi(ctx, toolName49, buildArgs45(ctx));
1924
+ return callDataopsApi(ctx, toolName52, buildArgs48(ctx));
1808
1925
  }
1809
1926
  };
1810
1927
 
1811
1928
  // src/commands/te-dataops/ide/get-schema-info.ts
1812
- var toolName50 = "ide_get_schema_info";
1929
+ var toolName53 = "ide_get_schema_info";
1813
1930
  function optionalString7(ctx, name) {
1814
1931
  const value = ctx.str(name);
1815
1932
  return value === "" ? void 0 : value;
1816
1933
  }
1817
- function buildArgs46(ctx) {
1934
+ function buildArgs49(ctx) {
1818
1935
  return {
1819
1936
  spaceCode: ctx.str("spaceCode"),
1820
1937
  connType: optionalString7(ctx, "connType"),
@@ -1846,14 +1963,14 @@ var getSchemaInfo = {
1846
1963
  { name: "schema", type: "string", required: true, desc: "Schema name" }
1847
1964
  ],
1848
1965
  risk: "read",
1849
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName50, buildArgs46(ctx)),
1966
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName53, buildArgs49(ctx)),
1850
1967
  execute: async (ctx) => {
1851
- return schemaStats(await callDataopsApi(ctx, toolName50, buildArgs46(ctx)));
1968
+ return schemaStats(await callDataopsApi(ctx, toolName53, buildArgs49(ctx)));
1852
1969
  }
1853
1970
  };
1854
1971
 
1855
1972
  // src/commands/te-dataops/ide/get-table-detail.ts
1856
- var toolName51 = "ide_get_table_detail";
1973
+ var toolName54 = "ide_get_table_detail";
1857
1974
  function optionalString8(ctx, name) {
1858
1975
  const value = ctx.str(name);
1859
1976
  return value === "" ? void 0 : value;
@@ -1866,7 +1983,7 @@ function optionalEntityType(ctx) {
1866
1983
  const value = optionalString8(ctx, "entityType");
1867
1984
  return value === void 0 ? void 0 : value.toUpperCase();
1868
1985
  }
1869
- function buildArgs47(ctx) {
1986
+ function buildArgs50(ctx) {
1870
1987
  return {
1871
1988
  spaceCode: ctx.str("spaceCode"),
1872
1989
  connType: optionalString8(ctx, "connType"),
@@ -1901,19 +2018,19 @@ var getTableDetail2 = {
1901
2018
  throw new Error("entityType must be TABLE or VIEW");
1902
2019
  }
1903
2020
  },
1904
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName51, buildArgs47(ctx)),
2021
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName54, buildArgs50(ctx)),
1905
2022
  execute: async (ctx) => {
1906
- return callDataopsApi(ctx, toolName51, buildArgs47(ctx));
2023
+ return callDataopsApi(ctx, toolName54, buildArgs50(ctx));
1907
2024
  }
1908
2025
  };
1909
2026
 
1910
2027
  // src/commands/te-dataops/ide/search-tables.ts
1911
- var toolName52 = "ide_search_tables";
2028
+ var toolName55 = "ide_search_tables";
1912
2029
  function optionalString9(ctx, name) {
1913
2030
  const value = ctx.str(name);
1914
2031
  return value === "" ? void 0 : value;
1915
2032
  }
1916
- function buildArgs48(ctx) {
2033
+ function buildArgs51(ctx) {
1917
2034
  return {
1918
2035
  spaceCode: ctx.str("spaceCode"),
1919
2036
  connType: optionalString9(ctx, "connType"),
@@ -1934,15 +2051,15 @@ var searchTables = {
1934
2051
  { name: "size", type: "number", required: false, desc: "Optional maximum results. Default 20" }
1935
2052
  ],
1936
2053
  risk: "read",
1937
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName52, buildArgs48(ctx)),
2054
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName55, buildArgs51(ctx)),
1938
2055
  execute: async (ctx) => {
1939
- return callDataopsApi(ctx, toolName52, buildArgs48(ctx));
2056
+ return callDataopsApi(ctx, toolName55, buildArgs51(ctx));
1940
2057
  }
1941
2058
  };
1942
2059
 
1943
2060
  // src/commands/te-dataops/ide/list-repos.ts
1944
- var toolName53 = "ide_list_repos";
1945
- function buildArgs49(ctx) {
2061
+ var toolName56 = "ide_list_repos";
2062
+ function buildArgs52(ctx) {
1946
2063
  return {
1947
2064
  spaceCode: ctx.str("spaceCode")
1948
2065
  };
@@ -1955,14 +2072,14 @@ var listRepos = {
1955
2072
  { name: "spaceCode", type: "string", required: true, desc: "Space code" }
1956
2073
  ],
1957
2074
  risk: "read",
1958
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName53, buildArgs49(ctx)),
2075
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName56, buildArgs52(ctx)),
1959
2076
  execute: async (ctx) => {
1960
- return callDataopsApi(ctx, toolName53, buildArgs49(ctx));
2077
+ return callDataopsApi(ctx, toolName56, buildArgs52(ctx));
1961
2078
  }
1962
2079
  };
1963
2080
 
1964
2081
  // src/commands/te-dataops/ide/list-tables.ts
1965
- var toolName54 = "ide_list_tables";
2082
+ var toolName57 = "ide_list_tables";
1966
2083
  function optionalString10(ctx, name) {
1967
2084
  const value = ctx.str(name);
1968
2085
  return value === "" ? void 0 : value;
@@ -1971,7 +2088,7 @@ function optionalEntityType2(ctx) {
1971
2088
  const value = optionalString10(ctx, "entityType");
1972
2089
  return value === void 0 ? void 0 : value.toUpperCase();
1973
2090
  }
1974
- function buildArgs50(ctx) {
2091
+ function buildArgs53(ctx) {
1975
2092
  return {
1976
2093
  spaceCode: ctx.str("spaceCode"),
1977
2094
  connType: optionalString10(ctx, "connType"),
@@ -2004,19 +2121,19 @@ var listTables = {
2004
2121
  throw new Error("entityType must be TABLE or VIEW");
2005
2122
  }
2006
2123
  },
2007
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName54, buildArgs50(ctx)),
2124
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName57, buildArgs53(ctx)),
2008
2125
  execute: async (ctx) => {
2009
- return callDataopsApi(ctx, toolName54, buildArgs50(ctx));
2126
+ return callDataopsApi(ctx, toolName57, buildArgs53(ctx));
2010
2127
  }
2011
2128
  };
2012
2129
 
2013
2130
  // src/commands/te-dataops/ide/submit-sql-query.ts
2014
- var toolName55 = "ide_submit_sql_query";
2131
+ var toolName58 = "ide_submit_sql_query";
2015
2132
  function optionalString11(ctx, name) {
2016
2133
  const value = ctx.str(name);
2017
2134
  return value === "" ? void 0 : value;
2018
2135
  }
2019
- function buildArgs51(ctx) {
2136
+ function buildArgs54(ctx) {
2020
2137
  return {
2021
2138
  spaceCode: ctx.str("spaceCode"),
2022
2139
  repoCode: optionalString11(ctx, "repoCode"),
@@ -2035,8 +2152,8 @@ var submitSqlQuery = {
2035
2152
  { name: "engineType", type: "string", required: false, desc: "SQL execution engine. Defaults to TASK_ENGINE_TRINO. Optional: TASK_ENGINE_STARROCKS." }
2036
2153
  ],
2037
2154
  risk: "read",
2038
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName55, buildArgs51(ctx)),
2039
- execute: async (ctx) => callDataopsApi(ctx, toolName55, buildArgs51(ctx))
2155
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName58, buildArgs54(ctx)),
2156
+ execute: async (ctx) => callDataopsApi(ctx, toolName58, buildArgs54(ctx))
2040
2157
  };
2041
2158
 
2042
2159
  // src/commands/te-dataops/ide/index.ts