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