@thinkingai/ae-cli 6.0.40 → 6.0.41

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