@thinkingai/ae-cli 6.1.10 → 6.1.11

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 (225) hide show
  1. package/README.md +25 -3
  2. package/README.zh.md +25 -3
  3. package/dist/{auth-56Z45UVR.js → auth-GDV3H5I4.js} +18 -8
  4. package/dist/{auth-ENM3FE6L.js → auth-NN55553T.js} +3 -3
  5. package/dist/{capability-2H6PAOA3.js → capability-TPORIKRQ.js} +19 -15
  6. package/dist/{capability-YPOQX6PL.js → capability-VQNC5CF7.js} +19 -15
  7. package/dist/chunk-4NN5IWVN.js +26 -0
  8. package/dist/{chunk-DB4Q3ANU.js → chunk-6A2FUCIS.js} +3 -3
  9. package/dist/{chunk-PVBYJWC2.js → chunk-7KQWSBSL.js} +4 -4
  10. package/dist/{chunk-24BAVOX3.js → chunk-AXDXJTPC.js} +3 -1
  11. package/dist/{chunk-CPVTECJ3.js → chunk-DT6Y3TD7.js} +5 -5
  12. package/dist/{chunk-EGEIXA2Z.js → chunk-DWO43OIB.js} +0 -248
  13. package/dist/{chunk-V6FR6WTW.js → chunk-GJJA4CQZ.js} +34 -2
  14. package/dist/{chunk-RGXCNC4N.js → chunk-GS2P7LFD.js} +50 -17
  15. package/dist/{chunk-LYVNONC4.js → chunk-JHENBQ5B.js} +35 -0
  16. package/dist/{chunk-3P3562ZX.js → chunk-MVDZ7DBQ.js} +5 -5
  17. package/dist/{chunk-LCXU3AAT.js → chunk-NBPKWKRA.js} +2 -2
  18. package/dist/{chunk-HQ2A7ITL.js → chunk-RBNKI5ZW.js} +50 -17
  19. package/dist/{chunk-LHVM35J4.js → chunk-TS6BUGUY.js} +4 -4
  20. package/dist/chunk-TUKQZTMI.js +250 -0
  21. package/dist/{chunk-J7MZHDHQ.js → chunk-VKD5WQKN.js} +5 -5
  22. package/dist/{chunk-3KI3RRXX.js → chunk-VTXHDCBW.js} +3 -3
  23. package/dist/{chunk-KTYR3U6D.js → chunk-YTG6Q75E.js} +10 -6
  24. package/dist/{chunk-IR4ZLVPW.js → chunk-YV52FB5G.js} +25 -3
  25. package/dist/{chunk-E7UXXHO3.js → chunk-Z3OXWCIA.js} +3 -3
  26. package/dist/{cli-token-4SBMXAUK.js → cli-token-GL5MS5FK.js} +4 -4
  27. package/dist/{client-PP5FETMW.js → client-DAIPF7XN.js} +4 -4
  28. package/dist/{community-report-client-KK2QBANO.js → community-report-client-M2RW4MXD.js} +2 -2
  29. package/dist/config-4VZNLBKF.js +489 -0
  30. package/dist/index.js +94 -35
  31. package/dist/memory-RWJW4XFO.js +892 -0
  32. package/dist/memory-VO2ZJCRT.js +892 -0
  33. package/dist/{metadata-JIQ77HFY.js → metadata-YGTHR2XJ.js} +8 -8
  34. package/dist/{metadata-AN3YFZEV.js → metadata-ZRN2GHPN.js} +8 -8
  35. package/dist/{model-JASQVOFD.js → model-CLUIK3K5.js} +7 -5
  36. package/dist/{raw-XJCAT3HX.js → raw-52B4UKO4.js} +8 -7
  37. package/dist/sync-3REDHGY6.js +10259 -0
  38. package/dist/{te-agent-JHUG6DVV.js → te-agent-XNPELAKX.js} +580 -84
  39. package/dist/{te-analysis-ITKTO6JS.js → te-analysis-GJI5FZUL.js} +1152 -13
  40. package/dist/{te-analysis-RAC67YYD.js → te-analysis-N2BRDJZ5.js} +1152 -13
  41. package/dist/{te-community-QOYIYEJI.js → te-community-SQXKE5OO.js} +7 -7
  42. package/dist/{te-community-UFKI6ONP.js → te-community-TYSNU3NQ.js} +7 -7
  43. package/dist/{te-dataops-PZQ5NQLY.js → te-dataops-5TM7WZDI.js} +370 -189
  44. package/dist/{te-dataops-XTWVTJCA.js → te-dataops-OWIADNSM.js} +370 -189
  45. package/dist/{te-engage-NLZUPSBK.js → te-engage-F7V55KVW.js} +333 -105
  46. package/dist/{te-engage-E7F4HTXU.js → te-engage-FMYAYCNV.js} +333 -105
  47. package/dist/{te-experiment-N63WF7XA.js → te-experiment-JWXOYJ3W.js} +83 -10
  48. package/dist/{te-experiment-D32TB6ZB.js → te-experiment-UPDMHCAJ.js} +83 -10
  49. package/dist/{te-kb-E7NSCBRB.js → te-kb-VRMEY3D4.js} +6 -6
  50. package/dist/{te-meta-GBDTMPEL.js → te-meta-53BVXPFI.js} +7 -7
  51. package/dist/{te-meta-ZTLTSHXC.js → te-meta-TOCBPBXI.js} +7 -7
  52. package/dist/{te-system-AH7DMCAQ.js → te-system-XGS5EQIQ.js} +4 -4
  53. package/dist/{te-team-BQ3SKSZV.js → te-team-BZRDV2CM.js} +7 -7
  54. package/dist/{update-DKG6UXEM.js → update-HEDXGOJH.js} +8 -6
  55. package/package.json +4 -1
  56. package/skills/ae-agent/SKILL.md +178 -16
  57. package/skills/ae-agent/references/add-skill.md +22 -10
  58. package/skills/ae-agent/references/edit-skill.md +24 -14
  59. package/skills/ae-agent/references/find-archived-conversations.md +82 -0
  60. package/skills/ae-agent/references/restore-conversation.md +54 -0
  61. package/skills/ae-agent/references/upload-skill.md +24 -14
  62. package/skills/ae-analysis/SKILL.md +1 -1
  63. package/skills/ae-analysis/references/command_index.md +104 -42
  64. package/skills/ae-analysis/references/entity_id_import_options.md +1 -1
  65. package/skills/ae-analysis/references/project_access_detail_get.md +3 -3
  66. package/skills/ae-analysis/references/project_data_power_delete.md +3 -3
  67. package/skills/ae-analysis/references/project_data_power_get.md +3 -3
  68. package/skills/ae-analysis/references/project_data_power_list.md +3 -3
  69. package/skills/ae-analysis/references/project_data_power_upsert.md +3 -3
  70. package/skills/ae-analysis/references/project_entity_create.md +3 -3
  71. package/skills/ae-analysis/references/project_entity_delete.md +3 -3
  72. package/skills/ae-analysis/references/project_entity_event_list.md +3 -3
  73. package/skills/ae-analysis/references/project_entity_get.md +3 -3
  74. package/skills/ae-analysis/references/project_entity_list.md +3 -3
  75. package/skills/ae-analysis/references/project_entity_update.md +3 -3
  76. package/skills/ae-analysis/references/project_function_list.md +3 -3
  77. package/skills/ae-analysis/references/project_info_create.md +25 -0
  78. package/skills/ae-analysis/references/project_info_delete.md +24 -0
  79. package/skills/ae-analysis/references/project_info_get.md +3 -3
  80. package/skills/ae-analysis/references/project_info_list.md +3 -3
  81. package/skills/ae-analysis/references/project_info_update.md +3 -3
  82. package/skills/ae-analysis/references/project_mark_time_create.md +3 -3
  83. package/skills/ae-analysis/references/project_mark_time_delete.md +3 -3
  84. package/skills/ae-analysis/references/project_mark_time_list.md +3 -3
  85. package/skills/ae-analysis/references/project_mark_time_update.md +3 -3
  86. package/skills/ae-analysis/references/project_member_add.md +3 -3
  87. package/skills/ae-analysis/references/project_member_batch_update.md +3 -3
  88. package/skills/ae-analysis/references/project_member_candidate_list.md +3 -3
  89. package/skills/ae-analysis/references/project_member_handover_export.md +3 -3
  90. package/skills/ae-analysis/references/project_member_handover_run.md +3 -3
  91. package/skills/ae-analysis/references/project_member_import.md +3 -3
  92. package/skills/ae-analysis/references/project_member_list.md +3 -3
  93. package/skills/ae-analysis/references/project_member_receiver_list.md +3 -3
  94. package/skills/ae-analysis/references/project_member_remove.md +3 -3
  95. package/skills/ae-analysis/references/project_member_update.md +3 -3
  96. package/skills/ae-analysis/references/project_owner_update.md +3 -3
  97. package/skills/ae-analysis/references/project_permission_binding_list.md +3 -3
  98. package/skills/ae-analysis/references/project_receive_status_update.md +3 -3
  99. package/skills/ae-analysis/references/project_role_delete.md +3 -3
  100. package/skills/ae-analysis/references/project_role_function_list.md +3 -3
  101. package/skills/ae-analysis/references/project_role_get.md +3 -3
  102. package/skills/ae-analysis/references/project_role_list.md +3 -3
  103. package/skills/ae-analysis/references/project_role_upsert.md +3 -3
  104. package/skills/ae-analysis/references/project_role_user_list.md +3 -3
  105. package/skills/ae-analysis/references/project_space_list.md +1 -1
  106. package/skills/ae-analysis/references/project_timezone_get.md +3 -3
  107. package/skills/ae-analysis/references/project_timezone_overview.md +3 -3
  108. package/skills/ae-analysis/references/project_timezone_update.md +3 -3
  109. package/skills/ae-analysis/references/project_user_id_items_update.md +3 -3
  110. package/skills/ae-analysis/references/system_admin_function_list.md +22 -0
  111. package/skills/ae-analysis/references/system_admin_function_update.md +26 -0
  112. package/skills/ae-analysis/references/system_admin_list.md +21 -0
  113. package/skills/ae-analysis/references/system_admin_remove.md +25 -0
  114. package/skills/ae-analysis/references/system_admin_upsert.md +25 -0
  115. package/skills/ae-analysis/references/system_function_list.md +21 -0
  116. package/skills/ae-analysis/references/system_member_add.md +25 -0
  117. package/skills/ae-analysis/references/system_member_candidate_list.md +22 -0
  118. package/skills/ae-analysis/references/system_member_delete.md +25 -0
  119. package/skills/ae-analysis/references/system_member_list.md +24 -0
  120. package/skills/ae-analysis/references/system_member_mfa_unbind.md +25 -0
  121. package/skills/ae-analysis/references/system_member_password_reset.md +32 -0
  122. package/skills/ae-analysis/references/system_member_project_batch_update.md +27 -0
  123. package/skills/ae-analysis/references/system_member_status_update.md +26 -0
  124. package/skills/ae-analysis/references/system_member_update.md +23 -0
  125. package/skills/ae-analysis/references/system_mfa_get.md +21 -0
  126. package/skills/ae-analysis/references/system_mfa_update.md +25 -0
  127. package/skills/ae-analysis/references/system_node_monitor_list.md +24 -0
  128. package/skills/ae-analysis/references/system_oauth2_update.md +22 -0
  129. package/skills/ae-analysis/references/system_ops_alert_contact_delete.md +25 -0
  130. package/skills/ae-analysis/references/system_ops_alert_contact_list.md +23 -0
  131. package/skills/ae-analysis/references/system_ops_alert_contact_test.md +29 -0
  132. package/skills/ae-analysis/references/system_ops_alert_contact_upsert.md +39 -0
  133. package/skills/ae-analysis/references/system_preference_get.md +21 -0
  134. package/skills/ae-analysis/references/system_preference_update.md +22 -0
  135. package/skills/ae-analysis/references/system_project_usage_list.md +28 -0
  136. package/skills/ae-analysis/references/system_query_alert_rule_list.md +21 -0
  137. package/skills/ae-analysis/references/system_query_alert_rule_update.md +26 -0
  138. package/skills/ae-analysis/references/system_query_monitor_overview.md +26 -0
  139. package/skills/ae-analysis/references/system_query_task_cancel.md +25 -0
  140. package/skills/ae-analysis/references/system_query_task_export.md +49 -0
  141. package/skills/ae-analysis/references/system_query_task_get.md +23 -0
  142. package/skills/ae-analysis/references/system_query_task_list.md +35 -0
  143. package/skills/ae-analysis/references/system_query_task_options.md +27 -0
  144. package/skills/ae-analysis/references/system_receiver_address_delete.md +26 -0
  145. package/skills/ae-analysis/references/system_receiver_address_overview.md +21 -0
  146. package/skills/ae-analysis/references/system_receiver_address_project_list.md +21 -0
  147. package/skills/ae-analysis/references/system_receiver_address_promote.md +24 -0
  148. package/skills/ae-analysis/references/system_receiver_address_upsert.md +27 -0
  149. package/skills/ae-analysis/references/system_receiver_detection_get.md +22 -0
  150. package/skills/ae-analysis/references/system_receiver_detection_run.md +22 -0
  151. package/skills/ae-analysis/references/system_receiver_detection_update.md +25 -0
  152. package/skills/ae-analysis/references/system_role_delete.md +26 -0
  153. package/skills/ae-analysis/references/system_role_function_list.md +22 -0
  154. package/skills/ae-analysis/references/system_role_get.md +22 -0
  155. package/skills/ae-analysis/references/system_role_list.md +24 -0
  156. package/skills/ae-analysis/references/system_role_upsert.md +27 -0
  157. package/skills/ae-analysis/references/system_role_user_list.md +22 -0
  158. package/skills/ae-analysis/references/system_seat_list.md +25 -0
  159. package/skills/ae-analysis/references/system_seat_update.md +26 -0
  160. package/skills/ae-analysis/references/system_smtp_delete.md +24 -0
  161. package/skills/ae-analysis/references/system_smtp_get.md +21 -0
  162. package/skills/ae-analysis/references/system_smtp_test.md +22 -0
  163. package/skills/ae-analysis/references/system_smtp_upsert.md +31 -0
  164. package/skills/ae-analysis/references/system_third_party_login_disable.md +25 -0
  165. package/skills/ae-analysis/references/system_third_party_login_list.md +21 -0
  166. package/skills/ae-analysis/references/system_third_party_login_upsert.md +33 -0
  167. package/skills/ae-analysis/references/system_usage_overview.md +21 -0
  168. package/skills/ae-analysis/references/system_usage_trend_export.md +44 -0
  169. package/skills/ae-analysis/references/system_usage_trend_query.md +28 -0
  170. package/skills/ae-dataops/SKILL.md +1 -1
  171. package/skills/ae-dataops/references/dataops-flow-create.md +51 -16
  172. package/skills/ae-engage/SKILL.md +56 -26
  173. package/skills/ae-engage/references/activity-activity.md +3 -0
  174. package/skills/ae-engage/references/activity-approval.md +12 -4
  175. package/skills/ae-engage/references/activity-task.md +21 -6
  176. package/skills/ae-engage/references/activity-topic.md +31 -13
  177. package/skills/ae-engage/references/add-channel.md +170 -41
  178. package/skills/ae-engage/references/build-task-save-guide.md +40 -27
  179. package/skills/ae-engage/references/channel-update-config.md +3 -2
  180. package/skills/ae-engage/references/common-metric.md +48 -120
  181. package/skills/ae-engage/references/flow-detail.md +13 -0
  182. package/skills/ae-engage/references/preset-event.md +12 -32
  183. package/skills/ae-engage/references/save-flow.md +127 -64
  184. package/skills/ae-engage/references/save-task.md +197 -59
  185. package/skills/ae-engage/references/scene-config-metric.md +3 -0
  186. package/skills/ae-engage/references/scene-preset-metric.md +8 -37
  187. package/skills/ae-engage/references/scene-strategy-audience.md +51 -643
  188. package/skills/ae-engage/references/scene-strategy.md +6 -6
  189. package/skills/ae-engage/references/task-detail.md +10 -0
  190. package/skills/ae-engage/references/task-submit-approval.md +45 -0
  191. package/skills/ae-engage/references/validate-flow-node-config.md +1 -1
  192. package/skills/ae-experiment/SKILL.md +21 -1
  193. package/skills/ae-experiment/references/check_experiment_ready.md +2 -0
  194. package/skills/ae-experiment/references/query_experiment_detail.md +6 -0
  195. package/skills/ae-experiment/references/query_experiment_list.md +4 -0
  196. package/skills/ae-experiment/references/query_experiment_list_archived.md +3 -0
  197. package/skills/ae-experiment/references/query_metric_detail.md +5 -0
  198. package/skills/ae-experiment/references/query_metric_list.md +3 -0
  199. package/skills/ae-experiment/references/save_experiment.md +46 -3
  200. package/skills/ae-experiment/references/save_metric.md +62 -0
  201. package/skills/ae-experiment/references/save_submit_experiment.md +3 -0
  202. package/skills/ae-experiment-design/SKILL.md +149 -0
  203. package/skills/ae-experiment-design/agents/openai.yaml +4 -0
  204. package/skills/ae-experiment-design/references/client-experiment-sdk.md +147 -0
  205. package/skills/ae-experiment-design/references/experiment-creation.md +108 -0
  206. package/skills/ae-experiment-design/references/experiment-sdk-contract.md +100 -0
  207. package/skills/ae-experiment-design/references/exposure-contract.md +91 -0
  208. package/skills/ae-experiment-design/references/hybrid-experiment-sdk.md +74 -0
  209. package/skills/ae-experiment-design/references/metric-readiness.md +143 -0
  210. package/skills/ae-experiment-design/references/platform-operations.md +99 -0
  211. package/skills/ae-experiment-design/references/sdk-index.md +76 -0
  212. package/skills/ae-experiment-design/references/sdk-integration.md +114 -0
  213. package/skills/ae-experiment-design/references/sdk-troubleshooting.md +139 -0
  214. package/skills/ae-experiment-design/references/server-experiment-sdk.md +78 -0
  215. package/skills/ae-experiment-design/scripts/calculate_experiment_plan.py +450 -0
  216. package/skills/ae-experiment-insight/SKILL.md +149 -0
  217. package/skills/ae-experiment-insight/agents/openai.yaml +4 -0
  218. package/skills/ae-experiment-insight/references/decision-framework.md +69 -0
  219. package/skills/ae-experiment-insight/references/diagnostic-playbook.md +225 -0
  220. package/skills/ae-experiment-insight/references/platform-operations.md +76 -0
  221. package/skills/ae-experiment-insight/scripts/analyze_experiment.py +478 -0
  222. package/skills/ae-generate-tracking-code/SKILL.md +2 -2
  223. package/skills/ae-metadata/SKILL.md +1 -1
  224. package/dist/config-BSSALXEN.js +0 -128
  225. package/dist/sync-QFP4XFN3.js +0 -485
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  printError
3
- } from "./chunk-KTYR3U6D.js";
3
+ } from "./chunk-YTG6Q75E.js";
4
4
  import {
5
5
  clearCliToken,
6
6
  getCliToken
7
- } from "./chunk-E7UXXHO3.js";
7
+ } from "./chunk-Z3OXWCIA.js";
8
8
  import {
9
9
  resolveHost
10
- } from "./chunk-IR4ZLVPW.js";
10
+ } from "./chunk-YV52FB5G.js";
11
11
  import {
12
12
  safeJsonParse
13
- } from "./chunk-V6FR6WTW.js";
13
+ } from "./chunk-GJJA4CQZ.js";
14
14
  import {
15
15
  PermissionError
16
- } from "./chunk-24BAVOX3.js";
16
+ } from "./chunk-AXDXJTPC.js";
17
17
  import {
18
18
  logger
19
- } from "./chunk-LYVNONC4.js";
19
+ } from "./chunk-JHENBQ5B.js";
20
20
 
21
21
  // src/commands/te-dataops/shared.ts
22
22
  var TOOL_API_MAP = {
@@ -39,6 +39,8 @@ var TOOL_API_MAP = {
39
39
  flow_update_sql_task: { method: "POST", path: "/api/cli/dataops/v1/gaia/workflow/sql-task-definition" },
40
40
  flow_create_integration_task: { method: "POST", path: "/api/cli/dataops/v1/gaia/workflow/integration-tasks" },
41
41
  flow_update_integration_task: { method: "POST", path: "/api/cli/dataops/v1/gaia/workflow/integration-task-definition" },
42
+ flow_create_workflow_instance_check_task: { method: "POST", path: "/api/cli/dataops/v1/gaia/workflow/workflow-instance-check-tasks" },
43
+ flow_update_workflow_instance_check_task: { method: "POST", path: "/api/cli/dataops/v1/gaia/workflow/workflow-instance-check-task-definition" },
42
44
  flow_add_task_relation: { method: "POST", path: "/api/cli/dataops/v1/gaia/workflow/task-relation" },
43
45
  flow_get_task_params: { method: "GET", path: "/api/cli/dataops/v1/gaia/workflow/task-params" },
44
46
  operations_search_flow_instances: { method: "POST", path: "/api/cli/dataops/v1/gaia/operations/flow-instances/search" },
@@ -74,10 +76,10 @@ var TOOL_API_MAP = {
74
76
  ide_get_sql_query_status: { method: "GET", path: "/api/cli/dataops/v1/gaia/ide/sql-query-status" },
75
77
  ide_cancel_sql_query: { method: "POST", path: "/api/cli/dataops/v1/gaia/ide/sql-query-cancel" }
76
78
  };
77
- async function callDataopsApi(ctx, toolName54, args = {}) {
78
- const spec = TOOL_API_MAP[toolName54];
79
+ async function callDataopsApi(ctx, toolName56, args = {}) {
80
+ const spec = TOOL_API_MAP[toolName56];
79
81
  if (!spec) {
80
- throw new Error(`DataOps API mapping not found for tool: ${toolName54}`);
82
+ throw new Error(`DataOps API mapping not found for tool: ${toolName56}`);
81
83
  }
82
84
  const params = compactArgs(args);
83
85
  if (spec.method === "GET") {
@@ -85,10 +87,10 @@ async function callDataopsApi(ctx, toolName54, args = {}) {
85
87
  }
86
88
  return dataopsRequest(ctx, spec.method, spec.path, {}, params);
87
89
  }
88
- function buildDataopsApiDryRun(ctx, toolName54, args = {}) {
89
- const spec = TOOL_API_MAP[toolName54];
90
+ function buildDataopsApiDryRun(ctx, toolName56, args = {}) {
91
+ const spec = TOOL_API_MAP[toolName56];
90
92
  if (!spec) {
91
- throw new Error(`DataOps API mapping not found for tool: ${toolName54}`);
93
+ throw new Error(`DataOps API mapping not found for tool: ${toolName56}`);
92
94
  }
93
95
  const params = compactArgs(args);
94
96
  if (spec.method === "GET") {
@@ -646,6 +648,51 @@ var addTaskRelation = {
646
648
  }
647
649
  };
648
650
 
651
+ // src/commands/te-dataops/flow/task-write-options.ts
652
+ var createTaskWriteFlags = [
653
+ { name: "preTasks", type: "json", required: false, desc: "Upstream task codes as a JSON array. Omit for no dependencies" },
654
+ { name: "failRetryTimes", type: "number", required: false, default: 3, min: 0, max: 24, desc: "Failure retry count. Default 3; use 0 to disable retries" },
655
+ { name: "failRetryInterval", type: "number", required: false, default: 5, min: 1, max: 60, desc: "Failure retry interval in minutes. Default 5" },
656
+ { name: "failRetryUnit", type: "string", required: false, default: "MINUTE", desc: "Failure retry unit. Only MINUTE is supported" }
657
+ ];
658
+ var updateTaskWriteFlags = [
659
+ { name: "preTasks", type: "json", required: false, desc: "Upstream task codes as a JSON array. Omit to keep existing dependencies; [] clears them; a non-empty array replaces them" },
660
+ { name: "failRetryTimes", type: "number", required: false, min: 0, max: 24, desc: "Failure retry count. Omit to keep the existing value; use 0 to disable retries" },
661
+ { name: "failRetryInterval", type: "number", required: false, min: 1, max: 60, desc: "Failure retry interval in minutes. Omit to keep the existing value" },
662
+ { name: "failRetryUnit", type: "string", required: false, desc: "Failure retry unit. Only MINUTE is supported; omit to keep the existing value" }
663
+ ];
664
+ function buildTaskWriteArgs(ctx) {
665
+ return {
666
+ preTasks: ctx.json("preTasks"),
667
+ failRetryTimes: ctx.optionalNum("failRetryTimes"),
668
+ failRetryInterval: ctx.optionalNum("failRetryInterval"),
669
+ failRetryUnit: optionalString2(ctx, "failRetryUnit")
670
+ };
671
+ }
672
+ function validateTaskWriteArgs(ctx) {
673
+ const preTasks = ctx.json("preTasks");
674
+ if (preTasks !== void 0 && (!Array.isArray(preTasks) || preTasks.some((taskCode) => !Number.isSafeInteger(taskCode) || taskCode <= 0))) {
675
+ throw new Error("preTasks must be a JSON array of positive integer task codes");
676
+ }
677
+ if (preTasks !== void 0 && new Set(preTasks).size !== preTasks.length) {
678
+ throw new Error("preTasks must not contain duplicate task codes");
679
+ }
680
+ for (const name of ["failRetryTimes", "failRetryInterval"]) {
681
+ const value = ctx.optionalNum(name);
682
+ if (value !== void 0 && !Number.isInteger(value)) {
683
+ throw new Error(`${name} must be an integer`);
684
+ }
685
+ }
686
+ const failRetryUnit = optionalString2(ctx, "failRetryUnit");
687
+ if (failRetryUnit !== void 0 && failRetryUnit !== "MINUTE") {
688
+ throw new Error("failRetryUnit must be MINUTE");
689
+ }
690
+ }
691
+ function optionalString2(ctx, name) {
692
+ const value = ctx.str(name);
693
+ return value === "" ? void 0 : value;
694
+ }
695
+
649
696
  // src/commands/te-dataops/flow/create-sql-task.ts
650
697
  var toolName16 = "flow_create_sql_task";
651
698
  function buildArgs16(ctx) {
@@ -656,14 +703,14 @@ function buildArgs16(ctx) {
656
703
  sql: ctx.str("sql"),
657
704
  preSql: ctx.str("preSql"),
658
705
  postSql: ctx.str("postSql"),
659
- preTaskCode: ctx.optionalNum("preTaskCode"),
660
- remark: ctx.str("remark")
706
+ remark: ctx.str("remark"),
707
+ ...buildTaskWriteArgs(ctx)
661
708
  };
662
709
  }
663
710
  var createSqlTask = {
664
711
  service: "dataops_flow",
665
712
  command: "+create_sql_task",
666
- description: "Create a DEV Trino SQL task and save its SQL. Requires spaceCode, flowCode, taskName, and sql; preSql, postSql, preTaskCode, and remark are optional. Returns action/result/status; result includes flowCode, taskCode, taskName, taskType=TRINO_SQL, and sqlSaved=true",
713
+ description: "Create a DEV Trino SQL task and save its SQL. Requires spaceCode, flowCode, taskName, and sql; SQL hooks, dependencies, retry policy, and remark are optional. Returns action/result/status; result includes flowCode, taskCode, taskName, taskType=TRINO_SQL, and sqlSaved=true",
667
714
  flags: [
668
715
  { name: "spaceCode", type: "string", required: true, desc: "Space code" },
669
716
  { name: "flowCode", type: "number", required: true, desc: "Task flow code" },
@@ -671,10 +718,11 @@ var createSqlTask = {
671
718
  { name: "sql", type: "string", required: true, desc: "Trino SQL content for the task" },
672
719
  { name: "preSql", type: "string", required: false, desc: "Optional SQL to run before the main SQL" },
673
720
  { name: "postSql", type: "string", required: false, desc: "Optional SQL to run after the main SQL" },
674
- { name: "preTaskCode", type: "number", required: false, desc: "Pre-task code (upstream dependency)" },
675
- { name: "remark", type: "string", required: false, desc: "Description" }
721
+ { name: "remark", type: "string", required: false, desc: "Description" },
722
+ ...createTaskWriteFlags
676
723
  ],
677
724
  risk: "write",
725
+ validate: validateTaskWriteArgs,
678
726
  dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName16, buildArgs16(ctx)),
679
727
  execute: async (ctx) => {
680
728
  return callDataopsApi(ctx, toolName16, buildArgs16(ctx));
@@ -690,22 +738,25 @@ function buildArgs17(ctx) {
690
738
  taskCode: ctx.num("taskCode"),
691
739
  sql: ctx.str("sql"),
692
740
  preSql: ctx.str("preSql"),
693
- postSql: ctx.str("postSql")
741
+ postSql: ctx.str("postSql"),
742
+ ...buildTaskWriteArgs(ctx)
694
743
  };
695
744
  }
696
745
  var updateSqlTask = {
697
746
  service: "dataops_flow",
698
747
  command: "+update_sql_task",
699
- description: "Update an existing DEV Trino SQL task. Requires spaceCode, flowCode, taskCode, and sql; preSql and postSql are optional and keep existing values when omitted. Returns action/result/status; result includes sqlSaved, flowCode, taskCode, taskType=TRINO_SQL, and task",
748
+ description: "Update an existing DEV Trino SQL task. Requires spaceCode, flowCode, taskCode, and sql; omitted SQL hooks, dependencies, and retry fields keep existing values. Returns action/result/status; result includes sqlSaved, flowCode, taskCode, taskType=TRINO_SQL, and task",
700
749
  flags: [
701
750
  { name: "spaceCode", type: "string", required: true, desc: "Space code" },
702
751
  { name: "flowCode", type: "number", required: true, desc: "Task flow code" },
703
752
  { name: "taskCode", type: "number", required: true, desc: "Trino SQL task code" },
704
753
  { name: "sql", type: "string", required: true, desc: "Main Trino SQL content" },
705
754
  { name: "preSql", type: "string", required: false, desc: "Optional SQL to run before the main SQL. Omit to keep existing preSql" },
706
- { name: "postSql", type: "string", required: false, desc: "Optional SQL to run after the main SQL. Omit to keep existing postSql" }
755
+ { name: "postSql", type: "string", required: false, desc: "Optional SQL to run after the main SQL. Omit to keep existing postSql" },
756
+ ...updateTaskWriteFlags
707
757
  ],
708
758
  risk: "write",
759
+ validate: validateTaskWriteArgs,
709
760
  dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName17, buildArgs17(ctx)),
710
761
  execute: async (ctx) => {
711
762
  return callDataopsApi(ctx, toolName17, buildArgs17(ctx));
@@ -714,9 +765,8 @@ var updateSqlTask = {
714
765
 
715
766
  // src/commands/te-dataops/flow/create-integration-task.ts
716
767
  var toolName18 = "flow_create_integration_task";
717
- function validateInteger(ctx, name, required = true) {
768
+ function validateInteger(ctx, name) {
718
769
  const value = ctx.str(name).trim();
719
- if (!value && !required) return;
720
770
  if (!/^\d+$/.test(value)) {
721
771
  throw new Error(`Invalid --${name}: expected an integer, got "${value}"`);
722
772
  }
@@ -727,8 +777,8 @@ function buildArgs18(ctx) {
727
777
  flowCode: ctx.num("flowCode"),
728
778
  taskName: ctx.str("taskName"),
729
779
  syncId: ctx.str("syncId"),
730
- preTaskCode: ctx.optionalNum("preTaskCode"),
731
- remark: ctx.str("remark")
780
+ remark: ctx.str("remark"),
781
+ ...buildTaskWriteArgs(ctx)
732
782
  };
733
783
  }
734
784
  var createIntegrationTask = {
@@ -740,13 +790,13 @@ var createIntegrationTask = {
740
790
  { name: "flowCode", type: "number", required: true, desc: "Task flow code" },
741
791
  { name: "taskName", type: "string", required: true, desc: "Task name" },
742
792
  { name: "syncId", type: "string", required: true, desc: "DataOps sync solution ID to bind" },
743
- { name: "preTaskCode", type: "number", required: false, desc: "Pre-task code (upstream dependency)" },
744
- { name: "remark", type: "string", required: false, desc: "Description" }
793
+ { name: "remark", type: "string", required: false, desc: "Description" },
794
+ ...createTaskWriteFlags
745
795
  ],
746
796
  risk: "write",
747
797
  validate: (ctx) => {
748
798
  validateInteger(ctx, "flowCode");
749
- validateInteger(ctx, "preTaskCode", false);
799
+ validateTaskWriteArgs(ctx);
750
800
  },
751
801
  dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName18, buildArgs18(ctx)),
752
802
  execute: async (ctx) => callDataopsApi(ctx, toolName18, buildArgs18(ctx))
@@ -765,31 +815,160 @@ function buildArgs19(ctx) {
765
815
  spaceCode: ctx.str("spaceCode"),
766
816
  flowCode: ctx.num("flowCode"),
767
817
  taskCode: ctx.num("taskCode"),
768
- syncId: ctx.str("syncId")
818
+ syncId: ctx.str("syncId"),
819
+ ...buildTaskWriteArgs(ctx)
769
820
  };
770
821
  }
771
822
  var updateIntegrationTask = {
772
823
  service: "dataops_flow",
773
824
  command: "+update_integration_task",
774
- description: "Update an existing DEV integration sync task to bind a DataOps sync solution. The task must be taskType=OFFLINE_SYNC. Preserves task name, dependencies, retry policy, timeout, and other task configuration",
825
+ description: "Update an existing DEV integration sync task to bind a DataOps sync solution. The task must be taskType=OFFLINE_SYNC. Omitted dependencies and retry fields keep existing values",
775
826
  flags: [
776
827
  { name: "spaceCode", type: "string", required: true, desc: "Space code" },
777
828
  { name: "flowCode", type: "number", required: true, desc: "Task flow code" },
778
829
  { name: "taskCode", type: "number", required: true, desc: "Integration task code" },
779
- { name: "syncId", type: "string", required: true, desc: "DataOps sync solution ID to bind" }
830
+ { name: "syncId", type: "string", required: true, desc: "DataOps sync solution ID to bind" },
831
+ ...updateTaskWriteFlags
780
832
  ],
781
833
  risk: "write",
782
834
  validate: (ctx) => {
783
835
  validateInteger2(ctx, "flowCode");
784
836
  validateInteger2(ctx, "taskCode");
837
+ validateTaskWriteArgs(ctx);
785
838
  },
786
839
  dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName19, buildArgs19(ctx)),
787
840
  execute: async (ctx) => callDataopsApi(ctx, toolName19, buildArgs19(ctx))
788
841
  };
789
842
 
790
- // src/commands/te-dataops/flow/list-high-frequency-release-flows.ts
791
- var toolName20 = "flow_list_high_frequency_release_flows";
843
+ // src/commands/te-dataops/flow/workflow-instance-check-task-options.ts
844
+ var ITEM_FIELDS = /* @__PURE__ */ new Set(["flowCode", "left", "right", "checkTimeUnit"]);
845
+ var TIME_UNITS = /* @__PURE__ */ new Set(["DAY", "HOUR", "MINUTE"]);
846
+ function buildCheckArgs(ctx) {
847
+ return {
848
+ checkItems: ctx.json("checkItems"),
849
+ relation: optionalString3(ctx, "relation"),
850
+ checkInterval: ctx.optionalNum("checkInterval"),
851
+ checkTime: ctx.optionalNum("checkTime")
852
+ };
853
+ }
854
+ function validateCheckArgs(ctx) {
855
+ const items = ctx.json("checkItems");
856
+ const currentFlowCode = ctx.num("flowCode");
857
+ if (!Array.isArray(items) || items.length < 1 || items.length > 20) {
858
+ throw new Error("checkItems must be a JSON array with between 1 and 20 items");
859
+ }
860
+ items.forEach((item, index) => {
861
+ if (item === null || typeof item !== "object" || Array.isArray(item)) {
862
+ throw new Error(`checkItems[${index}] must be an object`);
863
+ }
864
+ for (const field of Object.keys(item)) {
865
+ if (!ITEM_FIELDS.has(field)) {
866
+ throw new Error(`checkItems[${index}] contains unsupported field "${field}"`);
867
+ }
868
+ }
869
+ if (!Number.isSafeInteger(item.flowCode) || item.flowCode <= 0) {
870
+ throw new Error(`checkItems[${index}].flowCode must be a positive integer`);
871
+ }
872
+ const minimum = item.flowCode === currentFlowCode ? 1 : 0;
873
+ if (!Number.isInteger(item.left) || item.left < minimum) {
874
+ throw new Error(`checkItems[${index}].left must be an integer greater than or equal to ${minimum}`);
875
+ }
876
+ if (!Number.isInteger(item.right) || item.right < minimum || item.right > item.left) {
877
+ throw new Error(`checkItems[${index}].right must be an integer between ${minimum} and left`);
878
+ }
879
+ if (!TIME_UNITS.has(item.checkTimeUnit)) {
880
+ throw new Error(`checkItems[${index}].checkTimeUnit must be DAY, HOUR, or MINUTE`);
881
+ }
882
+ });
883
+ const relation = optionalString3(ctx, "relation");
884
+ if (relation !== void 0 && relation !== "AND" && relation !== "OR") {
885
+ throw new Error("relation must be AND or OR");
886
+ }
887
+ for (const name of ["checkInterval", "checkTime"]) {
888
+ const value = ctx.optionalNum(name);
889
+ if (value !== void 0 && !Number.isInteger(value)) {
890
+ throw new Error(`${name} must be an integer`);
891
+ }
892
+ }
893
+ }
894
+ function optionalString3(ctx, name) {
895
+ const value = ctx.str(name);
896
+ return value === "" ? void 0 : value;
897
+ }
898
+
899
+ // src/commands/te-dataops/flow/create-workflow-instance-check-task.ts
900
+ var toolName20 = "flow_create_workflow_instance_check_task";
792
901
  function buildArgs20(ctx) {
902
+ return {
903
+ spaceCode: ctx.str("spaceCode"),
904
+ flowCode: ctx.num("flowCode"),
905
+ taskName: ctx.str("taskName"),
906
+ remark: ctx.str("remark"),
907
+ ...buildCheckArgs(ctx),
908
+ ...buildTaskWriteArgs(ctx)
909
+ };
910
+ }
911
+ var createWorkflowInstanceCheckTask = {
912
+ service: "dataops_flow",
913
+ command: "+create_workflow_instance_check_task",
914
+ description: "Create a DEV workflow instance check task. It waits for one or more target workflows using one flat AND/OR relation",
915
+ flags: [
916
+ { name: "spaceCode", type: "string", required: true, desc: "Space code" },
917
+ { name: "flowCode", type: "number", required: true, desc: "Task flow code" },
918
+ { name: "taskName", type: "string", required: true, desc: "Task name" },
919
+ { name: "checkItems", type: "json", required: true, desc: "JSON array of 1-20 objects with only flowCode, left, right, and checkTimeUnit (DAY, HOUR, or MINUTE)" },
920
+ { name: "relation", type: "string", required: false, default: "AND", desc: "Flat relation across all check items: AND or OR. Default AND" },
921
+ { name: "checkInterval", type: "number", required: false, default: 5, min: 1, max: 180, desc: "Check interval in minutes. Default 5" },
922
+ { name: "checkTime", type: "number", required: false, default: 3, min: 1, max: 20, desc: "Number of checks. Default 3" },
923
+ { name: "remark", type: "string", required: false, desc: "Description" },
924
+ ...createTaskWriteFlags
925
+ ],
926
+ risk: "write",
927
+ validate: (ctx) => {
928
+ validateCheckArgs(ctx);
929
+ validateTaskWriteArgs(ctx);
930
+ },
931
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName20, buildArgs20(ctx)),
932
+ execute: async (ctx) => callDataopsApi(ctx, toolName20, buildArgs20(ctx))
933
+ };
934
+
935
+ // src/commands/te-dataops/flow/update-workflow-instance-check-task.ts
936
+ var toolName21 = "flow_update_workflow_instance_check_task";
937
+ function buildArgs21(ctx) {
938
+ return {
939
+ spaceCode: ctx.str("spaceCode"),
940
+ flowCode: ctx.num("flowCode"),
941
+ taskCode: ctx.num("taskCode"),
942
+ ...buildCheckArgs(ctx),
943
+ ...buildTaskWriteArgs(ctx)
944
+ };
945
+ }
946
+ var updateWorkflowInstanceCheckTask = {
947
+ service: "dataops_flow",
948
+ command: "+update_workflow_instance_check_task",
949
+ description: "Replace the check configuration of an existing DEV workflow instance check task. Omitted dependencies and retry fields keep existing values",
950
+ flags: [
951
+ { name: "spaceCode", type: "string", required: true, desc: "Space code" },
952
+ { name: "flowCode", type: "number", required: true, desc: "Task flow code" },
953
+ { name: "taskCode", type: "number", required: true, desc: "Workflow instance check task code" },
954
+ { name: "checkItems", type: "json", required: true, desc: "JSON array of 1-20 objects with only flowCode, left, right, and checkTimeUnit (DAY, HOUR, or MINUTE)" },
955
+ { name: "relation", type: "string", required: false, desc: "Flat relation across all check items: AND or OR. Omit to keep the existing relation" },
956
+ { name: "checkInterval", type: "number", required: false, min: 1, max: 180, desc: "Check interval in minutes. Omit to keep the existing value" },
957
+ { name: "checkTime", type: "number", required: false, min: 1, max: 20, desc: "Number of checks. Omit to keep the existing value" },
958
+ ...updateTaskWriteFlags
959
+ ],
960
+ risk: "write",
961
+ validate: (ctx) => {
962
+ validateCheckArgs(ctx);
963
+ validateTaskWriteArgs(ctx);
964
+ },
965
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName21, buildArgs21(ctx)),
966
+ execute: async (ctx) => callDataopsApi(ctx, toolName21, buildArgs21(ctx))
967
+ };
968
+
969
+ // src/commands/te-dataops/flow/list-high-frequency-release-flows.ts
970
+ var toolName22 = "flow_list_high_frequency_release_flows";
971
+ function buildArgs22(ctx) {
793
972
  return {
794
973
  spaceCode: ctx.str("spaceCode"),
795
974
  days: ctx.optionalNum("days"),
@@ -810,9 +989,9 @@ var listHighFrequencyReleaseFlows = {
810
989
  { name: "status", type: "string", required: false, desc: "Optional release status: SUCCESS, FAIL, PART_SUCCESS, or ALL; default SUCCESS" }
811
990
  ],
812
991
  risk: "read",
813
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName20, buildArgs20(ctx)),
992
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName22, buildArgs22(ctx)),
814
993
  execute: async (ctx) => {
815
- return callDataopsApi(ctx, toolName20, buildArgs20(ctx));
994
+ return callDataopsApi(ctx, toolName22, buildArgs22(ctx));
816
995
  }
817
996
  };
818
997
 
@@ -830,29 +1009,31 @@ var commands2 = [
830
1009
  getTaskParams,
831
1010
  updateSqlTask,
832
1011
  updateIntegrationTask,
1012
+ updateWorkflowInstanceCheckTask,
833
1013
  addTaskRelation,
834
1014
  createSqlTask,
835
- createIntegrationTask
1015
+ createIntegrationTask,
1016
+ createWorkflowInstanceCheckTask
836
1017
  ];
837
1018
  var flow_default = commands2;
838
1019
 
839
1020
  // src/commands/te-dataops/integration/list-datasource-components.ts
840
- var toolName21 = "integration_list_datasource_components";
1021
+ var toolName23 = "integration_list_datasource_components";
841
1022
  var listDatasourceComponents = {
842
1023
  service: "dataops_integration",
843
1024
  command: "+list_datasource_components",
844
1025
  description: "List supported datasource components. Requires no arguments. Returns componentName, componentType, and description. Use +get_datasource_component_template before creating a datasource.",
845
1026
  flags: [],
846
1027
  risk: "read",
847
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName21, {}),
1028
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName23, {}),
848
1029
  execute: async (ctx) => {
849
- return callDataopsApi(ctx, toolName21, {});
1030
+ return callDataopsApi(ctx, toolName23, {});
850
1031
  }
851
1032
  };
852
1033
 
853
1034
  // src/commands/te-dataops/integration/get-datasource-component-template.ts
854
- var toolName22 = "integration_get_datasource_component_template";
855
- function buildArgs21(ctx) {
1035
+ var toolName24 = "integration_get_datasource_component_template";
1036
+ function buildArgs23(ctx) {
856
1037
  return {
857
1038
  componentName: ctx.str("componentName")
858
1039
  };
@@ -865,15 +1046,15 @@ var getDatasourceComponentTemplate = {
865
1046
  { name: "componentName", type: "string", required: true, desc: "Exact componentName returned by +list_datasource_components, e.g. MySQL, ClickHouse, DatabricksJdbc, LarkBitable, OSS, S3, HDFS" }
866
1047
  ],
867
1048
  risk: "read",
868
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName22, buildArgs21(ctx)),
1049
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName24, buildArgs23(ctx)),
869
1050
  execute: async (ctx) => {
870
- return callDataopsApi(ctx, toolName22, buildArgs21(ctx));
1051
+ return callDataopsApi(ctx, toolName24, buildArgs23(ctx));
871
1052
  }
872
1053
  };
873
1054
 
874
1055
  // src/commands/te-dataops/integration/list-space-datasources.ts
875
- var toolName23 = "integration_list_space_datasources";
876
- function buildArgs22(ctx) {
1056
+ var toolName25 = "integration_list_space_datasources";
1057
+ function buildArgs24(ctx) {
877
1058
  return {
878
1059
  spaceCode: ctx.str("spaceCode"),
879
1060
  dataSourceName: ctx.str("datasourceName"),
@@ -890,15 +1071,15 @@ var listSpaceDatasources = {
890
1071
  { name: "componentName", type: "string", required: false, desc: "Optional component type filter, e.g. MySQL or ClickHouse" }
891
1072
  ],
892
1073
  risk: "read",
893
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName23, buildArgs22(ctx)),
1074
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName25, buildArgs24(ctx)),
894
1075
  execute: async (ctx) => {
895
- return callDataopsApi(ctx, toolName23, buildArgs22(ctx));
1076
+ return callDataopsApi(ctx, toolName25, buildArgs24(ctx));
896
1077
  }
897
1078
  };
898
1079
 
899
1080
  // src/commands/te-dataops/integration/get-datasource-detail.ts
900
- var toolName24 = "integration_get_datasource_detail";
901
- function buildArgs23(ctx) {
1081
+ var toolName26 = "integration_get_datasource_detail";
1082
+ function buildArgs25(ctx) {
902
1083
  return {
903
1084
  spaceCode: ctx.str("spaceCode"),
904
1085
  dataSourceName: ctx.str("datasourceName")
@@ -913,14 +1094,14 @@ var getDatasourceDetail = {
913
1094
  { name: "datasourceName", type: "string", required: true, desc: "Exact datasource name within the space" }
914
1095
  ],
915
1096
  risk: "read",
916
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName24, buildArgs23(ctx)),
1097
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName26, buildArgs25(ctx)),
917
1098
  execute: async (ctx) => {
918
- return callDataopsApi(ctx, toolName24, buildArgs23(ctx));
1099
+ return callDataopsApi(ctx, toolName26, buildArgs25(ctx));
919
1100
  }
920
1101
  };
921
1102
 
922
1103
  // src/commands/te-dataops/integration/test-datasource-connect.ts
923
- var toolName25 = "integration_test_datasource_connect";
1104
+ var toolName27 = "integration_test_datasource_connect";
924
1105
  var testDatasourceConnect = {
925
1106
  service: "dataops_integration",
926
1107
  command: "+test_datasource_connect",
@@ -930,12 +1111,12 @@ var testDatasourceConnect = {
930
1111
  { name: "datasourceName", type: "string", required: true, desc: "Existing datasource name, exact match within the space" }
931
1112
  ],
932
1113
  risk: "read",
933
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName25, {
1114
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName27, {
934
1115
  spaceCode: ctx.str("spaceCode"),
935
1116
  datasourceName: ctx.str("datasourceName")
936
1117
  }),
937
1118
  execute: async (ctx) => {
938
- return callDataopsApi(ctx, toolName25, {
1119
+ return callDataopsApi(ctx, toolName27, {
939
1120
  spaceCode: ctx.str("spaceCode"),
940
1121
  datasourceName: ctx.str("datasourceName")
941
1122
  });
@@ -943,8 +1124,8 @@ var testDatasourceConnect = {
943
1124
  };
944
1125
 
945
1126
  // src/commands/te-dataops/integration/list-datasource-tables.ts
946
- var toolName26 = "integration_list_datasource_tables";
947
- function buildArgs24(ctx) {
1127
+ var toolName28 = "integration_list_datasource_tables";
1128
+ function buildArgs26(ctx) {
948
1129
  return {
949
1130
  spaceCode: ctx.str("spaceCode"),
950
1131
  datasourceId: ctx.str("datasourceId"),
@@ -965,15 +1146,15 @@ var listDatasourceTables = {
965
1146
  { name: "env", type: "string", required: false, desc: "Environment: DEV (default) or PROD" }
966
1147
  ],
967
1148
  risk: "read",
968
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName26, buildArgs24(ctx)),
1149
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName28, buildArgs26(ctx)),
969
1150
  execute: async (ctx) => {
970
- return callDataopsApi(ctx, toolName26, buildArgs24(ctx));
1151
+ return callDataopsApi(ctx, toolName28, buildArgs26(ctx));
971
1152
  }
972
1153
  };
973
1154
 
974
1155
  // src/commands/te-dataops/integration/get-table-structure.ts
975
- var toolName27 = "integration_get_table_structure";
976
- function buildArgs25(ctx) {
1156
+ var toolName29 = "integration_get_table_structure";
1157
+ function buildArgs27(ctx) {
977
1158
  return {
978
1159
  spaceCode: ctx.str("spaceCode"),
979
1160
  datasourceId: ctx.str("datasourceId"),
@@ -996,15 +1177,15 @@ var getTableStructure = {
996
1177
  { name: "env", type: "string", required: false, desc: "Environment: DEV (default) or PROD" }
997
1178
  ],
998
1179
  risk: "read",
999
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName27, buildArgs25(ctx)),
1180
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName29, buildArgs27(ctx)),
1000
1181
  execute: async (ctx) => {
1001
- return callDataopsApi(ctx, toolName27, buildArgs25(ctx));
1182
+ return callDataopsApi(ctx, toolName29, buildArgs27(ctx));
1002
1183
  }
1003
1184
  };
1004
1185
 
1005
1186
  // src/commands/te-dataops/integration/list-sync-datasources.ts
1006
- var toolName28 = "integration_list_sync_datasources";
1007
- function buildArgs26(ctx) {
1187
+ var toolName30 = "integration_list_sync_datasources";
1188
+ function buildArgs28(ctx) {
1008
1189
  return {
1009
1190
  spaceCode: ctx.str("spaceCode"),
1010
1191
  env: ctx.str("env")
@@ -1019,15 +1200,15 @@ var listSyncDatasources = {
1019
1200
  { name: "env", type: "string", required: false, desc: "Environment: DEV (default) or PROD" }
1020
1201
  ],
1021
1202
  risk: "read",
1022
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName28, buildArgs26(ctx)),
1203
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName30, buildArgs28(ctx)),
1023
1204
  execute: async (ctx) => {
1024
- return callDataopsApi(ctx, toolName28, buildArgs26(ctx));
1205
+ return callDataopsApi(ctx, toolName30, buildArgs28(ctx));
1025
1206
  }
1026
1207
  };
1027
1208
 
1028
1209
  // src/commands/te-dataops/integration/list-datasource-databases.ts
1029
- var toolName29 = "integration_list_datasource_databases";
1030
- function buildArgs27(ctx) {
1210
+ var toolName31 = "integration_list_datasource_databases";
1211
+ function buildArgs29(ctx) {
1031
1212
  return {
1032
1213
  spaceCode: ctx.str("spaceCode"),
1033
1214
  datasourceId: ctx.str("datasourceId"),
@@ -1046,15 +1227,15 @@ var listDatasourceDatabases = {
1046
1227
  { name: "env", type: "string", required: false, desc: "Environment: DEV (default) or PROD" }
1047
1228
  ],
1048
1229
  risk: "read",
1049
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName29, buildArgs27(ctx)),
1230
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName31, buildArgs29(ctx)),
1050
1231
  execute: async (ctx) => {
1051
- return callDataopsApi(ctx, toolName29, buildArgs27(ctx));
1232
+ return callDataopsApi(ctx, toolName31, buildArgs29(ctx));
1052
1233
  }
1053
1234
  };
1054
1235
 
1055
1236
  // src/commands/te-dataops/integration/online-datasource.ts
1056
- var toolName30 = "integration_online_datasource";
1057
- function buildArgs28(ctx) {
1237
+ var toolName32 = "integration_online_datasource";
1238
+ function buildArgs30(ctx) {
1058
1239
  return {
1059
1240
  spaceCode: ctx.str("spaceCode"),
1060
1241
  dataSourceNames: ctx.str("dataSourceNames")
@@ -1069,15 +1250,15 @@ var onlineDatasource = {
1069
1250
  { name: "dataSourceNames", type: "string", required: true, desc: "Datasource name list (comma-separated)" }
1070
1251
  ],
1071
1252
  risk: "write",
1072
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName30, buildArgs28(ctx)),
1253
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName32, buildArgs30(ctx)),
1073
1254
  execute: async (ctx) => {
1074
- return callDataopsApi(ctx, toolName30, buildArgs28(ctx));
1255
+ return callDataopsApi(ctx, toolName32, buildArgs30(ctx));
1075
1256
  }
1076
1257
  };
1077
1258
 
1078
1259
  // src/commands/te-dataops/integration/add-datasource.ts
1079
- var toolName31 = "integration_add_datasource";
1080
- function buildArgs29(ctx) {
1260
+ var toolName33 = "integration_add_datasource";
1261
+ function buildArgs31(ctx) {
1081
1262
  return {
1082
1263
  spaceCode: ctx.str("spaceCode"),
1083
1264
  componentName: ctx.str("componentName"),
@@ -1100,14 +1281,14 @@ var addDatasource = {
1100
1281
  { name: "envJsonList", type: "string", required: true, desc: "JSON array string of component connection fields. Keys must match requiredFields from +get_datasource_component_template" }
1101
1282
  ],
1102
1283
  risk: "write",
1103
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName31, buildArgs29(ctx)),
1284
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName33, buildArgs31(ctx)),
1104
1285
  execute: async (ctx) => {
1105
- return callDataopsApi(ctx, toolName31, buildArgs29(ctx));
1286
+ return callDataopsApi(ctx, toolName33, buildArgs31(ctx));
1106
1287
  }
1107
1288
  };
1108
1289
 
1109
1290
  // src/commands/te-dataops/integration/modify-datasource.ts
1110
- var toolName32 = "integration_modify_datasource";
1291
+ var toolName34 = "integration_modify_datasource";
1111
1292
  function optionalBool(ctx, name) {
1112
1293
  const flagName = `--${name}`;
1113
1294
  const hasFlag = process.argv.some((arg) => arg === flagName || arg.startsWith(`${flagName}=`));
@@ -1115,7 +1296,7 @@ function optionalBool(ctx, name) {
1115
1296
  const raw = ctx.str(name);
1116
1297
  return raw === "true" || raw === "1" || raw === "yes";
1117
1298
  }
1118
- function buildArgs30(ctx) {
1299
+ function buildArgs32(ctx) {
1119
1300
  return {
1120
1301
  spaceCode: ctx.str("spaceCode"),
1121
1302
  dataSourceName: ctx.str("dataSourceName"),
@@ -1136,15 +1317,15 @@ var modifyDatasource = {
1136
1317
  { name: "envJsonList", type: "string", required: false, desc: "New environment config JSON array string (not passed means not modified)" }
1137
1318
  ],
1138
1319
  risk: "write",
1139
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName32, buildArgs30(ctx)),
1320
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName34, buildArgs32(ctx)),
1140
1321
  execute: async (ctx) => {
1141
- return callDataopsApi(ctx, toolName32, buildArgs30(ctx));
1322
+ return callDataopsApi(ctx, toolName34, buildArgs32(ctx));
1142
1323
  }
1143
1324
  };
1144
1325
 
1145
1326
  // src/commands/te-dataops/integration/list-sync-solutions.ts
1146
- var toolName33 = "integration_list_sync_solutions";
1147
- function buildArgs31(ctx) {
1327
+ var toolName35 = "integration_list_sync_solutions";
1328
+ function buildArgs33(ctx) {
1148
1329
  return {
1149
1330
  spaceCode: ctx.str("spaceCode")
1150
1331
  };
@@ -1157,15 +1338,15 @@ var listSyncSolutions = {
1157
1338
  { name: "spaceCode", type: "string", required: true, desc: "Space code" }
1158
1339
  ],
1159
1340
  risk: "read",
1160
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName33, buildArgs31(ctx)),
1341
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName35, buildArgs33(ctx)),
1161
1342
  execute: async (ctx) => {
1162
- return callDataopsApi(ctx, toolName33, buildArgs31(ctx));
1343
+ return callDataopsApi(ctx, toolName35, buildArgs33(ctx));
1163
1344
  }
1164
1345
  };
1165
1346
 
1166
1347
  // src/commands/te-dataops/integration/get-sync-detail.ts
1167
- var toolName34 = "integration_get_sync_detail";
1168
- function buildArgs32(ctx) {
1348
+ var toolName36 = "integration_get_sync_detail";
1349
+ function buildArgs34(ctx) {
1169
1350
  return {
1170
1351
  spaceCode: ctx.str("spaceCode"),
1171
1352
  syncId: ctx.str("syncId"),
@@ -1182,13 +1363,13 @@ var getSyncDetail = {
1182
1363
  { name: "withParams", type: "boolean", required: false, desc: "Also return usedParams; defaults to false" }
1183
1364
  ],
1184
1365
  risk: "read",
1185
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName34, buildArgs32(ctx)),
1186
- execute: async (ctx) => callDataopsApi(ctx, toolName34, buildArgs32(ctx))
1366
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName36, buildArgs34(ctx)),
1367
+ execute: async (ctx) => callDataopsApi(ctx, toolName36, buildArgs34(ctx))
1187
1368
  };
1188
1369
 
1189
1370
  // src/commands/te-dataops/integration/list-sync-runs.ts
1190
- var toolName35 = "integration_list_sync_runs";
1191
- function buildArgs33(ctx) {
1371
+ var toolName37 = "integration_list_sync_runs";
1372
+ function buildArgs35(ctx) {
1192
1373
  return {
1193
1374
  spaceCode: ctx.str("spaceCode"),
1194
1375
  syncId: ctx.str("syncId"),
@@ -1205,12 +1386,12 @@ var listSyncRuns = {
1205
1386
  { name: "limit", type: "number", required: false, desc: "Number of results to return, defaults to 20 if not provided" }
1206
1387
  ],
1207
1388
  risk: "read",
1208
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName35, buildArgs33(ctx)),
1209
- execute: async (ctx) => callDataopsApi(ctx, toolName35, buildArgs33(ctx))
1389
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName37, buildArgs35(ctx)),
1390
+ execute: async (ctx) => callDataopsApi(ctx, toolName37, buildArgs35(ctx))
1210
1391
  };
1211
1392
 
1212
1393
  // src/commands/te-dataops/integration/exec-sync-solution.ts
1213
- var toolName36 = "integration_exec_sync_solution";
1394
+ var toolName38 = "integration_exec_sync_solution";
1214
1395
  var execSyncSolution = {
1215
1396
  service: "dataops_integration",
1216
1397
  command: "+exec_sync_solution",
@@ -1222,14 +1403,14 @@ var execSyncSolution = {
1222
1403
  { name: "comment", type: "string", required: false, desc: "Optional execution remark" }
1223
1404
  ],
1224
1405
  risk: "write",
1225
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName36, {
1406
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName38, {
1226
1407
  spaceCode: ctx.str("spaceCode"),
1227
1408
  syncId: ctx.str("syncId"),
1228
1409
  baseDate: ctx.str("baseDate"),
1229
1410
  comment: ctx.str("comment")
1230
1411
  }),
1231
1412
  execute: async (ctx) => {
1232
- return callDataopsApi(ctx, toolName36, {
1413
+ return callDataopsApi(ctx, toolName38, {
1233
1414
  spaceCode: ctx.str("spaceCode"),
1234
1415
  syncId: ctx.str("syncId"),
1235
1416
  baseDate: ctx.str("baseDate"),
@@ -1239,8 +1420,8 @@ var execSyncSolution = {
1239
1420
  };
1240
1421
 
1241
1422
  // src/commands/te-dataops/integration/add-sync-solution.ts
1242
- var toolName37 = "integration_add_sync_solution";
1243
- function buildArgs34(ctx) {
1423
+ var toolName39 = "integration_add_sync_solution";
1424
+ function buildArgs36(ctx) {
1244
1425
  return {
1245
1426
  spaceCode: ctx.str("spaceCode"),
1246
1427
  syncName: ctx.str("syncName"),
@@ -1273,15 +1454,15 @@ var addSyncSolution = {
1273
1454
  { name: "remark", type: "string", required: false, desc: "Remark" }
1274
1455
  ],
1275
1456
  risk: "write",
1276
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName37, buildArgs34(ctx)),
1457
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName39, buildArgs36(ctx)),
1277
1458
  execute: async (ctx) => {
1278
- return callDataopsApi(ctx, toolName37, buildArgs34(ctx));
1459
+ return callDataopsApi(ctx, toolName39, buildArgs36(ctx));
1279
1460
  }
1280
1461
  };
1281
1462
 
1282
1463
  // src/commands/te-dataops/integration/save-sync-solution.ts
1283
- var toolName38 = "integration_save_sync_solution";
1284
- function buildArgs35(ctx) {
1464
+ var toolName40 = "integration_save_sync_solution";
1465
+ function buildArgs37(ctx) {
1285
1466
  return {
1286
1467
  spaceCode: ctx.str("spaceCode"),
1287
1468
  syncId: ctx.str("syncId"),
@@ -1308,13 +1489,13 @@ var saveSyncSolution = {
1308
1489
  { name: "remark", type: "string", required: false, desc: "Updated remark" }
1309
1490
  ],
1310
1491
  risk: "write",
1311
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName38, buildArgs35(ctx)),
1312
- execute: async (ctx) => callDataopsApi(ctx, toolName38, buildArgs35(ctx))
1492
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName40, buildArgs37(ctx)),
1493
+ execute: async (ctx) => callDataopsApi(ctx, toolName40, buildArgs37(ctx))
1313
1494
  };
1314
1495
 
1315
1496
  // src/commands/te-dataops/integration/stop-sync-solution.ts
1316
- var toolName39 = "integration_stop_sync_solution";
1317
- function buildArgs36(ctx) {
1497
+ var toolName41 = "integration_stop_sync_solution";
1498
+ function buildArgs38(ctx) {
1318
1499
  return {
1319
1500
  spaceCode: ctx.str("spaceCode"),
1320
1501
  syncId: ctx.str("syncId"),
@@ -1331,8 +1512,8 @@ var stopSyncSolution = {
1331
1512
  { name: "taskId", type: "string", required: true, desc: "Running execution task ID from +list_sync_runs" }
1332
1513
  ],
1333
1514
  risk: "write",
1334
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName39, buildArgs36(ctx)),
1335
- execute: async (ctx) => callDataopsApi(ctx, toolName39, buildArgs36(ctx))
1515
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName41, buildArgs38(ctx)),
1516
+ execute: async (ctx) => callDataopsApi(ctx, toolName41, buildArgs38(ctx))
1336
1517
  };
1337
1518
 
1338
1519
  // src/commands/te-dataops/integration/index.ts
@@ -1360,8 +1541,8 @@ var commands3 = [
1360
1541
  var integration_default = commands3;
1361
1542
 
1362
1543
  // src/commands/te-dataops/operations/get-flow-instance-detail.ts
1363
- var toolName40 = "operations_get_flow_instance_detail";
1364
- function buildArgs37(ctx) {
1544
+ var toolName42 = "operations_get_flow_instance_detail";
1545
+ function buildArgs39(ctx) {
1365
1546
  return {
1366
1547
  spaceCode: ctx.str("spaceCode"),
1367
1548
  flowCode: ctx.num("flowCode"),
@@ -1378,18 +1559,18 @@ var getFlowInstanceDetail = {
1378
1559
  { name: "flowInstanceId", type: "number", required: true, desc: "Workflow instance ID from +search_flow_instances" }
1379
1560
  ],
1380
1561
  risk: "read",
1381
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName40, buildArgs37(ctx)),
1562
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName42, buildArgs39(ctx)),
1382
1563
  execute: async (ctx) => {
1383
- return callDataopsApi(ctx, toolName40, buildArgs37(ctx));
1564
+ return callDataopsApi(ctx, toolName42, buildArgs39(ctx));
1384
1565
  }
1385
1566
  };
1386
1567
 
1387
1568
  // src/commands/te-dataops/operations/get-task-instance-detail.ts
1388
- var toolName41 = "operations_get_task_instance_detail";
1569
+ var toolName43 = "operations_get_task_instance_detail";
1389
1570
  function optionalBool2(ctx, name) {
1390
1571
  return ctx.str(name) === "" ? void 0 : ctx.bool(name);
1391
1572
  }
1392
- function buildArgs38(ctx) {
1573
+ function buildArgs40(ctx) {
1393
1574
  return {
1394
1575
  spaceCode: ctx.str("spaceCode"),
1395
1576
  flowCode: ctx.num("flowCode"),
@@ -1414,15 +1595,15 @@ var getTaskInstanceDetail = {
1414
1595
  { name: "includeLog", type: "boolean", required: false, desc: "Whether to include task logs. Default false" }
1415
1596
  ],
1416
1597
  risk: "read",
1417
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName41, buildArgs38(ctx)),
1598
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName43, buildArgs40(ctx)),
1418
1599
  execute: async (ctx) => {
1419
- return callDataopsApi(ctx, toolName41, buildArgs38(ctx));
1600
+ return callDataopsApi(ctx, toolName43, buildArgs40(ctx));
1420
1601
  }
1421
1602
  };
1422
1603
 
1423
1604
  // src/commands/te-dataops/operations/search-flow-instances.ts
1424
- var toolName42 = "operations_search_flow_instances";
1425
- function buildArgs39(ctx) {
1605
+ var toolName44 = "operations_search_flow_instances";
1606
+ function buildArgs41(ctx) {
1426
1607
  return {
1427
1608
  spaceCode: ctx.str("spaceCode"),
1428
1609
  keyword: ctx.str("keyword"),
@@ -1447,15 +1628,15 @@ var searchFlowInstances = {
1447
1628
  { name: "pageSize", type: "number", required: false, desc: "Optional page size; default 20, max 100" }
1448
1629
  ],
1449
1630
  risk: "read",
1450
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName42, buildArgs39(ctx)),
1631
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName44, buildArgs41(ctx)),
1451
1632
  execute: async (ctx) => {
1452
- return callDataopsApi(ctx, toolName42, buildArgs39(ctx));
1633
+ return callDataopsApi(ctx, toolName44, buildArgs41(ctx));
1453
1634
  }
1454
1635
  };
1455
1636
 
1456
1637
  // src/commands/te-dataops/operations/stop-flow-instance.ts
1457
- var toolName43 = "operations_stop_flow_instance";
1458
- function buildArgs40(ctx) {
1638
+ var toolName45 = "operations_stop_flow_instance";
1639
+ function buildArgs42(ctx) {
1459
1640
  const executeId = ctx.optionalNum("executeId");
1460
1641
  const flowInstanceId = ctx.optionalNum("flowInstanceId");
1461
1642
  if (executeId == null && flowInstanceId == null || executeId != null && flowInstanceId != null) {
@@ -1482,9 +1663,9 @@ var stopFlowInstance = {
1482
1663
  { name: "flowInstanceId", type: "number", required: false, desc: "Workflow instance ID returned by dataops_operations +search_flow_instances" }
1483
1664
  ],
1484
1665
  risk: "write",
1485
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName43, buildArgs40(ctx)),
1666
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName45, buildArgs42(ctx)),
1486
1667
  execute: async (ctx) => {
1487
- return callDataopsApi(ctx, toolName43, buildArgs40(ctx));
1668
+ return callDataopsApi(ctx, toolName45, buildArgs42(ctx));
1488
1669
  }
1489
1670
  };
1490
1671
 
@@ -1498,16 +1679,16 @@ var commands4 = [
1498
1679
  var operations_default = commands4;
1499
1680
 
1500
1681
  // src/commands/te-dataops/repo/list-spaces.ts
1501
- var toolName44 = "repo_list_spaces";
1682
+ var toolName46 = "repo_list_spaces";
1502
1683
  var listSpaces = {
1503
1684
  service: "dataops_repo",
1504
1685
  command: "+list_spaces",
1505
1686
  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.",
1506
1687
  flags: [],
1507
1688
  risk: "read",
1508
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName44, {}),
1689
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName46, {}),
1509
1690
  execute: async (ctx) => {
1510
- return callDataopsApi(ctx, toolName44, {});
1691
+ return callDataopsApi(ctx, toolName46, {});
1511
1692
  }
1512
1693
  };
1513
1694
 
@@ -1518,16 +1699,16 @@ var commands5 = [
1518
1699
  var repo_default = commands5;
1519
1700
 
1520
1701
  // src/commands/te-dataops/ide/cancel-sql-query.ts
1521
- var toolName45 = "ide_cancel_sql_query";
1522
- function optionalString2(ctx, name) {
1702
+ var toolName47 = "ide_cancel_sql_query";
1703
+ function optionalString4(ctx, name) {
1523
1704
  const value = ctx.str(name);
1524
1705
  return value === "" ? void 0 : value;
1525
1706
  }
1526
- function buildArgs41(ctx) {
1707
+ function buildArgs43(ctx) {
1527
1708
  return {
1528
1709
  spaceCode: ctx.str("spaceCode"),
1529
1710
  downloadTaskId: ctx.num("downloadTaskId"),
1530
- requestId: optionalString2(ctx, "requestId")
1711
+ requestId: optionalString4(ctx, "requestId")
1531
1712
  };
1532
1713
  }
1533
1714
  var cancelSqlQuery = {
@@ -1540,24 +1721,24 @@ var cancelSqlQuery = {
1540
1721
  { name: "requestId", type: "string", required: false, desc: "Optional request ID returned by +submit_sql_query, used only for trace display" }
1541
1722
  ],
1542
1723
  risk: "write",
1543
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName45, buildArgs41(ctx)),
1544
- execute: async (ctx) => callDataopsApi(ctx, toolName45, buildArgs41(ctx))
1724
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName47, buildArgs43(ctx)),
1725
+ execute: async (ctx) => callDataopsApi(ctx, toolName47, buildArgs43(ctx))
1545
1726
  };
1546
1727
 
1547
1728
  // src/commands/te-dataops/ide/get-sql-query-status.ts
1548
1729
  import { mkdir, writeFile } from "fs/promises";
1549
1730
  import path from "path";
1550
- var toolName46 = "ide_get_sql_query_status";
1731
+ var toolName48 = "ide_get_sql_query_status";
1551
1732
  var downloadPath = "/api/cli/dataops/v1/gaia/ide/sql-query-download";
1552
- function optionalString3(ctx, name) {
1733
+ function optionalString5(ctx, name) {
1553
1734
  const value = ctx.str(name);
1554
1735
  return value === "" ? void 0 : value;
1555
1736
  }
1556
- function buildArgs42(ctx) {
1737
+ function buildArgs44(ctx) {
1557
1738
  return {
1558
1739
  spaceCode: ctx.str("spaceCode"),
1559
1740
  downloadTaskId: ctx.num("downloadTaskId"),
1560
- requestId: optionalString3(ctx, "requestId")
1741
+ requestId: optionalString5(ctx, "requestId")
1561
1742
  };
1562
1743
  }
1563
1744
  function isDownloadReady(data) {
@@ -1585,10 +1766,10 @@ var getSqlQueryStatus = {
1585
1766
  { 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." }
1586
1767
  ],
1587
1768
  risk: "read",
1588
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName46, buildArgs42(ctx)),
1769
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName48, buildArgs44(ctx)),
1589
1770
  execute: async (ctx) => {
1590
- const data = await callDataopsApi(ctx, toolName46, buildArgs42(ctx));
1591
- const downloadTo = optionalString3(ctx, "downloadTo");
1771
+ const data = await callDataopsApi(ctx, toolName48, buildArgs44(ctx));
1772
+ const downloadTo = optionalString5(ctx, "downloadTo");
1592
1773
  if (downloadTo && isDownloadReady(data)) {
1593
1774
  return { ...data, localFile: await downloadResult(ctx, data, downloadTo) };
1594
1775
  }
@@ -1597,16 +1778,16 @@ var getSqlQueryStatus = {
1597
1778
  };
1598
1779
 
1599
1780
  // src/commands/te-dataops/ide/list-catalogs.ts
1600
- var toolName47 = "ide_list_catalogs";
1601
- function optionalString4(ctx, name) {
1781
+ var toolName49 = "ide_list_catalogs";
1782
+ function optionalString6(ctx, name) {
1602
1783
  const value = ctx.str(name);
1603
1784
  return value === "" ? void 0 : value;
1604
1785
  }
1605
- function buildArgs43(ctx) {
1786
+ function buildArgs45(ctx) {
1606
1787
  return {
1607
1788
  spaceCode: ctx.str("spaceCode"),
1608
- connType: optionalString4(ctx, "connType"),
1609
- repoCode: optionalString4(ctx, "repoCode")
1789
+ connType: optionalString6(ctx, "connType"),
1790
+ repoCode: optionalString6(ctx, "repoCode")
1610
1791
  };
1611
1792
  }
1612
1793
  var listCatalogs = {
@@ -1619,23 +1800,23 @@ var listCatalogs = {
1619
1800
  { name: "repoCode", type: "string", required: false, desc: "Optional repository code. Default te_etl" }
1620
1801
  ],
1621
1802
  risk: "read",
1622
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName47, buildArgs43(ctx)),
1803
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName49, buildArgs45(ctx)),
1623
1804
  execute: async (ctx) => {
1624
- return callDataopsApi(ctx, toolName47, buildArgs43(ctx));
1805
+ return callDataopsApi(ctx, toolName49, buildArgs45(ctx));
1625
1806
  }
1626
1807
  };
1627
1808
 
1628
1809
  // src/commands/te-dataops/ide/get-schema-info.ts
1629
- var toolName48 = "ide_get_schema_info";
1630
- function optionalString5(ctx, name) {
1810
+ var toolName50 = "ide_get_schema_info";
1811
+ function optionalString7(ctx, name) {
1631
1812
  const value = ctx.str(name);
1632
1813
  return value === "" ? void 0 : value;
1633
1814
  }
1634
- function buildArgs44(ctx) {
1815
+ function buildArgs46(ctx) {
1635
1816
  return {
1636
1817
  spaceCode: ctx.str("spaceCode"),
1637
- connType: optionalString5(ctx, "connType"),
1638
- repoCode: optionalString5(ctx, "repoCode"),
1818
+ connType: optionalString7(ctx, "connType"),
1819
+ repoCode: optionalString7(ctx, "repoCode"),
1639
1820
  catalog: ctx.str("catalog"),
1640
1821
  schema: ctx.str("schema")
1641
1822
  };
@@ -1663,15 +1844,15 @@ var getSchemaInfo = {
1663
1844
  { name: "schema", type: "string", required: true, desc: "Schema name" }
1664
1845
  ],
1665
1846
  risk: "read",
1666
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName48, buildArgs44(ctx)),
1847
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName50, buildArgs46(ctx)),
1667
1848
  execute: async (ctx) => {
1668
- return schemaStats(await callDataopsApi(ctx, toolName48, buildArgs44(ctx)));
1849
+ return schemaStats(await callDataopsApi(ctx, toolName50, buildArgs46(ctx)));
1669
1850
  }
1670
1851
  };
1671
1852
 
1672
1853
  // src/commands/te-dataops/ide/get-table-detail.ts
1673
- var toolName49 = "ide_get_table_detail";
1674
- function optionalString6(ctx, name) {
1854
+ var toolName51 = "ide_get_table_detail";
1855
+ function optionalString8(ctx, name) {
1675
1856
  const value = ctx.str(name);
1676
1857
  return value === "" ? void 0 : value;
1677
1858
  }
@@ -1680,18 +1861,18 @@ function optionalBool3(ctx, name) {
1680
1861
  return value === void 0 ? void 0 : Boolean(value);
1681
1862
  }
1682
1863
  function optionalEntityType(ctx) {
1683
- const value = optionalString6(ctx, "entityType");
1864
+ const value = optionalString8(ctx, "entityType");
1684
1865
  return value === void 0 ? void 0 : value.toUpperCase();
1685
1866
  }
1686
- function buildArgs45(ctx) {
1867
+ function buildArgs47(ctx) {
1687
1868
  return {
1688
1869
  spaceCode: ctx.str("spaceCode"),
1689
- connType: optionalString6(ctx, "connType"),
1690
- repoCode: optionalString6(ctx, "repoCode"),
1870
+ connType: optionalString8(ctx, "connType"),
1871
+ repoCode: optionalString8(ctx, "repoCode"),
1691
1872
  catalog: ctx.str("catalog"),
1692
1873
  schema: ctx.str("schema"),
1693
1874
  tableName: ctx.str("tableName"),
1694
- engineType: optionalString6(ctx, "engineType"),
1875
+ engineType: optionalString8(ctx, "engineType"),
1695
1876
  entityType: optionalEntityType(ctx),
1696
1877
  includeDdl: optionalBool3(ctx, "includeDdl")
1697
1878
  };
@@ -1718,23 +1899,23 @@ var getTableDetail2 = {
1718
1899
  throw new Error("entityType must be TABLE or VIEW");
1719
1900
  }
1720
1901
  },
1721
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName49, buildArgs45(ctx)),
1902
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName51, buildArgs47(ctx)),
1722
1903
  execute: async (ctx) => {
1723
- return callDataopsApi(ctx, toolName49, buildArgs45(ctx));
1904
+ return callDataopsApi(ctx, toolName51, buildArgs47(ctx));
1724
1905
  }
1725
1906
  };
1726
1907
 
1727
1908
  // src/commands/te-dataops/ide/search-tables.ts
1728
- var toolName50 = "ide_search_tables";
1729
- function optionalString7(ctx, name) {
1909
+ var toolName52 = "ide_search_tables";
1910
+ function optionalString9(ctx, name) {
1730
1911
  const value = ctx.str(name);
1731
1912
  return value === "" ? void 0 : value;
1732
1913
  }
1733
- function buildArgs46(ctx) {
1914
+ function buildArgs48(ctx) {
1734
1915
  return {
1735
1916
  spaceCode: ctx.str("spaceCode"),
1736
- connType: optionalString7(ctx, "connType"),
1737
- repoCode: optionalString7(ctx, "repoCode"),
1917
+ connType: optionalString9(ctx, "connType"),
1918
+ repoCode: optionalString9(ctx, "repoCode"),
1738
1919
  searchKey: ctx.str("searchKey"),
1739
1920
  size: ctx.optionalNum("size")
1740
1921
  };
@@ -1751,15 +1932,15 @@ var searchTables = {
1751
1932
  { name: "size", type: "number", required: false, desc: "Optional maximum results. Default 20" }
1752
1933
  ],
1753
1934
  risk: "read",
1754
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName50, buildArgs46(ctx)),
1935
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName52, buildArgs48(ctx)),
1755
1936
  execute: async (ctx) => {
1756
- return callDataopsApi(ctx, toolName50, buildArgs46(ctx));
1937
+ return callDataopsApi(ctx, toolName52, buildArgs48(ctx));
1757
1938
  }
1758
1939
  };
1759
1940
 
1760
1941
  // src/commands/te-dataops/ide/list-repos.ts
1761
- var toolName51 = "ide_list_repos";
1762
- function buildArgs47(ctx) {
1942
+ var toolName53 = "ide_list_repos";
1943
+ function buildArgs49(ctx) {
1763
1944
  return {
1764
1945
  spaceCode: ctx.str("spaceCode")
1765
1946
  };
@@ -1772,27 +1953,27 @@ var listRepos = {
1772
1953
  { name: "spaceCode", type: "string", required: true, desc: "Space code" }
1773
1954
  ],
1774
1955
  risk: "read",
1775
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName51, buildArgs47(ctx)),
1956
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName53, buildArgs49(ctx)),
1776
1957
  execute: async (ctx) => {
1777
- return callDataopsApi(ctx, toolName51, buildArgs47(ctx));
1958
+ return callDataopsApi(ctx, toolName53, buildArgs49(ctx));
1778
1959
  }
1779
1960
  };
1780
1961
 
1781
1962
  // src/commands/te-dataops/ide/list-tables.ts
1782
- var toolName52 = "ide_list_tables";
1783
- function optionalString8(ctx, name) {
1963
+ var toolName54 = "ide_list_tables";
1964
+ function optionalString10(ctx, name) {
1784
1965
  const value = ctx.str(name);
1785
1966
  return value === "" ? void 0 : value;
1786
1967
  }
1787
1968
  function optionalEntityType2(ctx) {
1788
- const value = optionalString8(ctx, "entityType");
1969
+ const value = optionalString10(ctx, "entityType");
1789
1970
  return value === void 0 ? void 0 : value.toUpperCase();
1790
1971
  }
1791
- function buildArgs48(ctx) {
1972
+ function buildArgs50(ctx) {
1792
1973
  return {
1793
1974
  spaceCode: ctx.str("spaceCode"),
1794
- connType: optionalString8(ctx, "connType"),
1795
- repoCode: optionalString8(ctx, "repoCode"),
1975
+ connType: optionalString10(ctx, "connType"),
1976
+ repoCode: optionalString10(ctx, "repoCode"),
1796
1977
  catalog: ctx.str("catalog"),
1797
1978
  schema: ctx.str("schema"),
1798
1979
  entityType: optionalEntityType2(ctx),
@@ -1821,24 +2002,24 @@ var listTables = {
1821
2002
  throw new Error("entityType must be TABLE or VIEW");
1822
2003
  }
1823
2004
  },
1824
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName52, buildArgs48(ctx)),
2005
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName54, buildArgs50(ctx)),
1825
2006
  execute: async (ctx) => {
1826
- return callDataopsApi(ctx, toolName52, buildArgs48(ctx));
2007
+ return callDataopsApi(ctx, toolName54, buildArgs50(ctx));
1827
2008
  }
1828
2009
  };
1829
2010
 
1830
2011
  // src/commands/te-dataops/ide/submit-sql-query.ts
1831
- var toolName53 = "ide_submit_sql_query";
1832
- function optionalString9(ctx, name) {
2012
+ var toolName55 = "ide_submit_sql_query";
2013
+ function optionalString11(ctx, name) {
1833
2014
  const value = ctx.str(name);
1834
2015
  return value === "" ? void 0 : value;
1835
2016
  }
1836
- function buildArgs49(ctx) {
2017
+ function buildArgs51(ctx) {
1837
2018
  return {
1838
2019
  spaceCode: ctx.str("spaceCode"),
1839
- repoCode: optionalString9(ctx, "repoCode"),
2020
+ repoCode: optionalString11(ctx, "repoCode"),
1840
2021
  sql: ctx.str("sql"),
1841
- engineType: optionalString9(ctx, "engineType")
2022
+ engineType: optionalString11(ctx, "engineType")
1842
2023
  };
1843
2024
  }
1844
2025
  var submitSqlQuery = {
@@ -1852,8 +2033,8 @@ var submitSqlQuery = {
1852
2033
  { name: "engineType", type: "string", required: false, desc: "SQL execution engine. Defaults to TASK_ENGINE_TRINO. Optional: TASK_ENGINE_STARROCKS." }
1853
2034
  ],
1854
2035
  risk: "read",
1855
- dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName53, buildArgs49(ctx)),
1856
- execute: async (ctx) => callDataopsApi(ctx, toolName53, buildArgs49(ctx))
2036
+ dryRun: (ctx) => buildDataopsApiDryRun(ctx, toolName55, buildArgs51(ctx)),
2037
+ execute: async (ctx) => callDataopsApi(ctx, toolName55, buildArgs51(ctx))
1857
2038
  };
1858
2039
 
1859
2040
  // src/commands/te-dataops/ide/index.ts