@thinkingai/ae-cli 6.0.24 → 6.0.28
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/dist/{auth-A2XXG5K4.js → auth-7TQRGLBC.js} +10 -8
- package/dist/{auth-IDPKDFSY.js → auth-MEJ642P4.js} +2 -2
- package/dist/chunk-2NDGFQHW.js +190 -0
- package/dist/{chunk-NGJDCOYA.js → chunk-7QQ4233A.js} +3 -3
- package/dist/{chunk-PFJFZVCK.js → chunk-AJTH7LT3.js} +3 -2
- package/dist/{chunk-V5R5UIRM.js → chunk-BXMXMUD7.js} +65 -6
- package/dist/{chunk-AKORWVHJ.js → chunk-C4DH76LX.js} +1 -1
- package/dist/{chunk-NXJP4CES.js → chunk-GWZ5MYWE.js} +3 -3
- package/dist/{chunk-F3ZDMC2W.js → chunk-KCA6BA5D.js} +2 -2
- package/dist/{chunk-WXBCP6SD.js → chunk-KGJQCYVC.js} +1 -1
- package/dist/{chunk-FIT4CFIN.js → chunk-LG5YT7P7.js} +1 -1
- package/dist/{chunk-IDXW6MEJ.js → chunk-MDJGDI6K.js} +2 -2
- package/dist/{chunk-4FQ36OGO.js → chunk-R77JT7XD.js} +53 -6
- package/dist/{chunk-65DKFJZB.js → chunk-YCLVYFK7.js} +49 -6
- package/dist/{chunk-2OW2RENH.js → chunk-YNQFYBDB.js} +64 -6
- package/dist/{chunk-ONOA6DYB.js → chunk-ZAOL36CG.js} +1 -1
- package/dist/cli-token-TVQRSE46.js +18 -0
- package/dist/{client-7L735LVY.js → client-2643Z5AG.js} +3 -3
- package/dist/{config-SXD2JKSL.js → config-ZVPARN4R.js} +4 -9
- package/dist/index.js +24 -24
- package/dist/{metadata-QWUAX625.js → metadata-IPSPQBX3.js} +5 -5
- package/dist/{metadata-XWTEGEN2.js → metadata-N5REJ7R7.js} +5 -5
- package/dist/{model-3OVX42DA.js → model-T3KZJWLW.js} +2 -2
- package/dist/{raw-IANB4AV5.js → raw-OHSUK42D.js} +4 -4
- package/dist/{sync-4HQ3CXSK.js → sync-ULT5SECP.js} +3 -3
- package/dist/{te-agent-OYNNTJDU.js → te-agent-QLIVKRUN.js} +1146 -61
- package/dist/{te-analysis-JX3V76OI.js → te-analysis-5WZKVFHI.js} +1332 -338
- package/dist/{te-analysis-CRPFK3LX.js → te-analysis-KAEZXLNS.js} +1332 -338
- package/dist/{te-audience-RO2IZOUC.js → te-audience-PVMKQAFH.js} +5 -5
- package/dist/{te-audience-77FGNG5E.js → te-audience-XMRMVD2V.js} +5 -5
- package/dist/{te-common-4TRJPRC5.js → te-common-CFGQXTFV.js} +5 -5
- package/dist/{te-common-PUXBUPOL.js → te-common-SDB3O2QG.js} +5 -5
- package/dist/{te-community-XKE526DS.js → te-community-6A7LKYUH.js} +5 -5
- package/dist/{te-community-NPDZQKMY.js → te-community-GMWFGILT.js} +5 -5
- package/dist/{te-dataops-PW74WP76.js → te-dataops-6LIPYNGH.js} +90 -68
- package/dist/{te-dataops-6KWLFNV4.js → te-dataops-Z53CTG2U.js} +90 -68
- package/dist/{te-engage-HTLMUN7G.js → te-engage-AGREUOW7.js} +30 -15
- package/dist/{te-engage-YPQIVF5H.js → te-engage-MIIUKY6M.js} +30 -15
- package/dist/{te-kb-DOGDQIU4.js → te-kb-KQJ53M3A.js} +4 -4
- package/dist/{te-meta-5ESSQ5B3.js → te-meta-QLANJ4B4.js} +5 -5
- package/dist/{te-meta-Z47X4VT3.js → te-meta-TOA6FWDE.js} +5 -5
- package/dist/{te-team-SOVKZIDD.js → te-team-TQGMNHQQ.js} +5 -5
- package/package.json +3 -1
- package/skills/ae-agent/SKILL.md +158 -189
- package/skills/ae-agent/references/accept-skill-share.md +39 -0
- package/skills/ae-agent/references/add-attachment.md +57 -0
- package/skills/ae-agent/references/add-mcp.md +75 -0
- package/skills/ae-agent/references/add-model.md +70 -0
- package/skills/ae-agent/references/add-skill.md +71 -0
- package/skills/ae-agent/references/approve-skill.md +41 -0
- package/skills/ae-agent/references/attachment-stats.md +50 -0
- package/skills/ae-agent/references/auto-provision-mcp-credentials.md +57 -0
- package/skills/ae-agent/references/cancel-skill-submission.md +39 -0
- package/skills/ae-agent/references/copy-skill.md +53 -0
- package/skills/ae-agent/references/create-agent.md +71 -0
- package/skills/ae-agent/references/create-automation.md +99 -0
- package/skills/ae-agent/references/del-agent.md +38 -0
- package/skills/ae-agent/references/del-attachment.md +35 -0
- package/skills/ae-agent/references/del-mcp.md +35 -0
- package/skills/ae-agent/references/del-model.md +37 -0
- package/skills/ae-agent/references/del-skill-asset.md +41 -0
- package/skills/ae-agent/references/del-skill-reference.md +41 -0
- package/skills/ae-agent/references/del-skill-script.md +41 -0
- package/skills/ae-agent/references/del-skill.md +36 -0
- package/skills/ae-agent/references/edit-skill.md +64 -0
- package/skills/ae-agent/references/get-agent.md +37 -0
- package/skills/ae-agent/references/get-skill-content.md +36 -0
- package/skills/ae-agent/references/list-agents.md +40 -0
- package/skills/ae-agent/references/list-attachments.md +42 -0
- package/skills/ae-agent/references/list-automations.md +41 -0
- package/skills/ae-agent/references/list-mcp-credentials.md +65 -0
- package/skills/ae-agent/references/list-mcp-market.md +58 -0
- package/skills/ae-agent/references/list-mcps.md +37 -0
- package/skills/ae-agent/references/list-models.md +38 -0
- package/skills/ae-agent/references/list-skill-assets.md +35 -0
- package/skills/ae-agent/references/list-skill-market.md +59 -0
- package/skills/ae-agent/references/list-skill-references.md +36 -0
- package/skills/ae-agent/references/list-skill-scripts.md +35 -0
- package/skills/ae-agent/references/list-skill-shares.md +49 -0
- package/skills/ae-agent/references/list-skill-submissions.md +45 -0
- package/skills/ae-agent/references/list-skills.md +37 -0
- package/skills/ae-agent/references/mcp-auth-disconnect.md +50 -0
- package/skills/ae-agent/references/mcp-auth-start.md +61 -0
- package/skills/ae-agent/references/mcp-auth-status.md +56 -0
- package/skills/ae-agent/references/mcp-stats.md +68 -0
- package/skills/ae-agent/references/mcp-token.md +63 -0
- package/skills/ae-agent/references/mcp-tools.md +55 -0
- package/skills/ae-agent/references/read-skill-asset.md +51 -0
- package/skills/ae-agent/references/read-skill-reference.md +50 -0
- package/skills/ae-agent/references/read-skill-script.md +51 -0
- package/skills/ae-agent/references/reject-skill-share.md +37 -0
- package/skills/ae-agent/references/reject-skill.md +42 -0
- package/skills/ae-agent/references/rescan-skills.md +44 -0
- package/skills/ae-agent/references/set-mcp-credential.md +67 -0
- package/skills/ae-agent/references/set-mcp-meta.md +52 -0
- package/skills/ae-agent/references/set-skill-meta.md +51 -0
- package/skills/ae-agent/references/share-skill.md +50 -0
- package/skills/ae-agent/references/submit-skill.md +51 -0
- package/skills/ae-agent/references/test-model.md +61 -0
- package/skills/ae-agent/references/toggle-mcp.md +39 -0
- package/skills/ae-agent/references/toggle-model.md +37 -0
- package/skills/ae-agent/references/toggle-skill.md +37 -0
- package/skills/ae-agent/references/update-agent.md +71 -0
- package/skills/ae-agent/references/update-automation.md +83 -0
- package/skills/ae-agent/references/update-mcp.md +79 -0
- package/skills/ae-agent/references/update-model.md +77 -0
- package/skills/ae-agent/references/upload-skill-asset.md +49 -0
- package/skills/ae-agent/references/upload-skill-reference.md +51 -0
- package/skills/ae-agent/references/upload-skill-script.md +49 -0
- package/skills/ae-agent/references/upload-skill.md +89 -0
- package/skills/ae-analysis/SKILL.md +60 -6
- package/skills/ae-analysis/references/analysis_gateway_assets.md +27 -10
- package/skills/ae-analysis/references/artifact_download.md +17 -0
- package/skills/ae-analysis/references/asset_abnormal_get.md +27 -0
- package/skills/ae-analysis/references/asset_abnormal_list.md +24 -0
- package/skills/ae-analysis/references/asset_authentication_list.md +23 -0
- package/skills/ae-analysis/references/asset_authentication_update.md +24 -0
- package/skills/ae-analysis/references/asset_recent_list.md +24 -0
- package/skills/ae-analysis/references/asset_search.md +24 -0
- package/skills/ae-analysis/references/bi_panel_get.md +5 -0
- package/skills/ae-analysis/references/bi_panel_page_data_export.md +11 -1
- package/skills/ae-analysis/references/bi_panel_share.md +6 -0
- package/skills/ae-analysis/references/bi_panel_update.md +4 -1
- package/skills/ae-analysis/references/bi_panel_version_get.md +23 -0
- package/skills/ae-analysis/references/bi_panel_version_publish.md +20 -0
- package/skills/ae-analysis/references/dashboard_copy.md +3 -1
- package/skills/ae-analysis/references/dashboard_daily_report_send.md +9 -2
- package/skills/ae-analysis/references/dashboard_daily_report_update.md +3 -1
- package/skills/ae-analysis/references/dashboard_definition_export.md +21 -3
- package/skills/ae-analysis/references/dashboard_report_data_export.md +17 -1
- package/skills/ae-analysis/references/dashboard_report_data_run.md +6 -0
- package/skills/ae-analysis/references/datatable_columns_get.md +24 -0
- package/skills/ae-analysis/references/datatable_influence_list.md +24 -0
- package/skills/ae-analysis/references/datatable_version_get.md +24 -0
- package/skills/ae-analysis/references/datatable_version_list.md +24 -0
- package/skills/ae-analysis/references/event_changelog_list.md +24 -0
- package/skills/ae-analysis/references/event_create.md +24 -0
- package/skills/ae-analysis/references/event_delete.md +24 -0
- package/skills/ae-analysis/references/event_get.md +24 -0
- package/skills/ae-analysis/references/event_hide_update.md +25 -0
- package/skills/ae-analysis/references/event_influence_list.md +24 -0
- package/skills/ae-analysis/references/event_list.md +23 -0
- package/skills/ae-analysis/references/event_relation_update.md +24 -0
- package/skills/ae-analysis/references/event_update.md +26 -0
- package/skills/ae-analysis/references/exchange_config_update.md +24 -0
- package/skills/ae-analysis/references/exchange_rate_refresh.md +23 -0
- package/skills/ae-analysis/references/exchange_rule_list.md +23 -0
- package/skills/ae-analysis/references/exchange_rule_update.md +24 -0
- package/skills/ae-analysis/references/exchange_rule_validate.md +24 -0
- package/skills/ae-analysis/references/metric_create.md +24 -0
- package/skills/ae-analysis/references/metric_delete.md +24 -0
- package/skills/ae-analysis/references/metric_get.md +24 -0
- package/skills/ae-analysis/references/metric_list.md +24 -0
- package/skills/ae-analysis/references/metric_update.md +24 -0
- package/skills/ae-analysis/references/project_space_create.md +1 -1
- package/skills/ae-analysis/references/property_changelog_list.md +25 -0
- package/skills/ae-analysis/references/property_create.md +25 -0
- package/skills/ae-analysis/references/property_delete.md +25 -0
- package/skills/ae-analysis/references/property_get.md +25 -0
- package/skills/ae-analysis/references/property_hide_update.md +26 -0
- package/skills/ae-analysis/references/property_influence_list.md +25 -0
- package/skills/ae-analysis/references/property_list.md +24 -0
- package/skills/ae-analysis/references/property_related_events.md +24 -0
- package/skills/ae-analysis/references/property_relation_update.md +25 -0
- package/skills/ae-analysis/references/property_update.md +27 -0
- package/skills/ae-analysis/references/run_inspect.md +22 -0
- package/skills/ae-analysis/references/super_metadata_export.md +36 -0
- package/skills/ae-analysis/references/super_metadata_import.md +24 -0
- package/skills/ae-analysis/references/virtual_event_create.md +25 -0
- package/skills/ae-analysis/references/virtual_event_delete.md +24 -0
- package/skills/ae-analysis/references/virtual_event_get.md +24 -0
- package/skills/ae-analysis/references/virtual_property_create.md +24 -0
- package/skills/ae-analysis/references/virtual_property_sql_rule_delete.md +25 -0
- package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +24 -0
- package/skills/ae-dataops/references/dataops-flow-create.md +2 -2
- package/skills/ae-dataops/references/dataops-flow-monitor.md +3 -3
- package/skills/ae-dataops/references/dataops-integration.md +1 -0
- package/skills/ae-engage/references/flow-node-config-schema.md +32 -8
- package/skills/ae-engage/references/save-flow.md +65 -29
- package/skills/ae-engage/references/validate-flow-node-config.md +28 -10
- package/skills/ae-generate-tracking-code/SKILL.md +16 -1
- package/skills/ae-generate-tracking-code/references/snippet-delivery.md +17 -1
- package/skills/ae-generate-tracking-plan/SKILL.md +36 -12
- package/dist/chunk-OCQPQYHZ.js +0 -105
- package/dist/cli-token-OZXHC3U2.js +0 -14
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
parseMcpResult,
|
|
4
4
|
registerMcpMappings,
|
|
5
5
|
resolveMcpUrl
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-7QQ4233A.js";
|
|
7
|
+
import "./chunk-KGJQCYVC.js";
|
|
8
8
|
import "./chunk-NOO24N7W.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-2NDGFQHW.js";
|
|
10
|
+
import "./chunk-AJTH7LT3.js";
|
|
11
|
+
import "./chunk-YCLVYFK7.js";
|
|
12
12
|
|
|
13
13
|
// src/commands/te-engage/utils.ts
|
|
14
14
|
function buildMcpDryRun(ctx, serviceName46, toolName46, args) {
|
|
@@ -532,8 +532,8 @@ function buildArgs15(ctx) {
|
|
|
532
532
|
var flowNodeConfigSchema = {
|
|
533
533
|
service: "engage",
|
|
534
534
|
command: "+flow_node_config_schema",
|
|
535
|
-
description: "Query
|
|
536
|
-
flags: [{ name: "node_type", type: "string", required: true, desc: "
|
|
535
|
+
description: "Query one type-specific node config schema before constructing save_flow nodes or nodeConfigs.",
|
|
536
|
+
flags: [{ name: "node_type", type: "string", required: true, desc: "Flow node type, for example single_trigger, event_trigger, event_split_flow, or message_push" }],
|
|
537
537
|
risk: "read",
|
|
538
538
|
dryRun: (ctx) => buildMcpDryRun(ctx, serviceName15, toolName15, buildArgs15(ctx)),
|
|
539
539
|
execute: async (ctx) => executeMcpCommand(ctx, serviceName15, toolName15, buildArgs15(ctx))
|
|
@@ -779,26 +779,41 @@ var modifyFlowBaseInfo = {
|
|
|
779
779
|
// src/commands/te-engage/flow/save-flow.ts
|
|
780
780
|
var serviceName21 = "engage_flow";
|
|
781
781
|
var toolName21 = "save_flow";
|
|
782
|
+
var allowedOperations = ["build", "preview", "commit"];
|
|
783
|
+
function readAndValidateReq(ctx) {
|
|
784
|
+
const req = readRequiredJsonObject(ctx, "req");
|
|
785
|
+
const operation = typeof req.operation === "string" ? req.operation.trim().toLowerCase() : "";
|
|
786
|
+
if (!allowedOperations.includes(operation)) {
|
|
787
|
+
throw new Error(`Flag --req.operation must be one of: ${allowedOperations.join(", ")}`);
|
|
788
|
+
}
|
|
789
|
+
if ("nodeList" in req || "edgeList" in req) {
|
|
790
|
+
throw new Error("Flag --req must use nodes/edges instead of legacy nodeList/edgeList");
|
|
791
|
+
}
|
|
792
|
+
if ("sourceFlowUuid" in req) {
|
|
793
|
+
throw new Error("Flag --req.sourceFlowUuid is no longer supported; call +flow_detail and build nodes/edges instead");
|
|
794
|
+
}
|
|
795
|
+
return req;
|
|
796
|
+
}
|
|
782
797
|
function buildArgs21(ctx) {
|
|
783
798
|
return {
|
|
784
799
|
projectId: ctx.num("project_id"),
|
|
785
800
|
req: {
|
|
786
801
|
projectId: ctx.num("project_id"),
|
|
787
|
-
...
|
|
802
|
+
...readAndValidateReq(ctx)
|
|
788
803
|
}
|
|
789
804
|
};
|
|
790
805
|
}
|
|
791
806
|
var saveFlow = {
|
|
792
807
|
service: "engage",
|
|
793
808
|
command: "+save_flow",
|
|
794
|
-
description: "Create or
|
|
809
|
+
description: "Create, preview, or commit an operation-based flow draft with req.operation=build, preview, or commit. Copy existing flows by querying detail first, then building nodes/edges.",
|
|
795
810
|
flags: [
|
|
796
811
|
{ name: "project_id", type: "number", required: true, alias: "p", desc: "Project ID" },
|
|
797
|
-
{ name: "req", type: "json", required: true, desc: "
|
|
812
|
+
{ name: "req", type: "json", required: true, desc: "Operation-based flow save request JSON object. Use operation=build with nodes/edges, operation=preview with draftId, or operation=commit with draftVersion and confirmToken. Do not use sourceFlowUuid clone mode." }
|
|
798
813
|
],
|
|
799
814
|
risk: "write",
|
|
800
815
|
validate: (ctx) => {
|
|
801
|
-
|
|
816
|
+
readAndValidateReq(ctx);
|
|
802
817
|
},
|
|
803
818
|
dryRun: (ctx) => buildMcpDryRun(ctx, serviceName21, toolName21, buildArgs21(ctx)),
|
|
804
819
|
execute: async (ctx) => executeMcpCommand(ctx, serviceName21, toolName21, buildArgs21(ctx))
|
|
@@ -817,11 +832,11 @@ function buildArgs22(ctx) {
|
|
|
817
832
|
var validateFlowNodeConfig = {
|
|
818
833
|
service: "engage",
|
|
819
834
|
command: "+validate_flow_node_config",
|
|
820
|
-
description: "Validate one node config before save_flow.",
|
|
835
|
+
description: "Validate and normalize one candidate node config before placing it into save_flow.",
|
|
821
836
|
flags: [
|
|
822
|
-
{ name: "node_type", type: "string", required: true, desc: "
|
|
823
|
-
{ name: "config", type: "string", required: true, desc: "Node config JSON string" },
|
|
824
|
-
{ name: "operation_mode", type: "string", required: true, desc: "Validation mode" }
|
|
837
|
+
{ name: "node_type", type: "string", required: true, desc: "Flow node type, for example single_trigger, event_trigger, event_split_flow, or message_push" },
|
|
838
|
+
{ name: "config", type: "string", required: true, desc: "Node config JSON object encoded as a string" },
|
|
839
|
+
{ name: "operation_mode", type: "string", required: true, desc: "Validation mode. Use save_flow for the current exposed MCP protocol; save_submit_flow applies stricter submit-time checks" }
|
|
825
840
|
],
|
|
826
841
|
risk: "read",
|
|
827
842
|
dryRun: (ctx) => buildMcpDryRun(ctx, serviceName22, toolName22, buildArgs22(ctx)),
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
parseMcpResult,
|
|
4
4
|
registerMcpMappings,
|
|
5
5
|
resolveMcpUrl
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-GWZ5MYWE.js";
|
|
7
|
+
import "./chunk-KGJQCYVC.js";
|
|
8
8
|
import "./chunk-NOO24N7W.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-2NDGFQHW.js";
|
|
10
|
+
import "./chunk-AJTH7LT3.js";
|
|
11
|
+
import "./chunk-YCLVYFK7.js";
|
|
12
12
|
|
|
13
13
|
// src/commands/te-engage/utils.ts
|
|
14
14
|
function buildMcpDryRun(ctx, serviceName46, toolName46, args) {
|
|
@@ -532,8 +532,8 @@ function buildArgs15(ctx) {
|
|
|
532
532
|
var flowNodeConfigSchema = {
|
|
533
533
|
service: "engage",
|
|
534
534
|
command: "+flow_node_config_schema",
|
|
535
|
-
description: "Query
|
|
536
|
-
flags: [{ name: "node_type", type: "string", required: true, desc: "
|
|
535
|
+
description: "Query one type-specific node config schema before constructing save_flow nodes or nodeConfigs.",
|
|
536
|
+
flags: [{ name: "node_type", type: "string", required: true, desc: "Flow node type, for example single_trigger, event_trigger, event_split_flow, or message_push" }],
|
|
537
537
|
risk: "read",
|
|
538
538
|
dryRun: (ctx) => buildMcpDryRun(ctx, serviceName15, toolName15, buildArgs15(ctx)),
|
|
539
539
|
execute: async (ctx) => executeMcpCommand(ctx, serviceName15, toolName15, buildArgs15(ctx))
|
|
@@ -779,26 +779,41 @@ var modifyFlowBaseInfo = {
|
|
|
779
779
|
// src/commands/te-engage/flow/save-flow.ts
|
|
780
780
|
var serviceName21 = "engage_flow";
|
|
781
781
|
var toolName21 = "save_flow";
|
|
782
|
+
var allowedOperations = ["build", "preview", "commit"];
|
|
783
|
+
function readAndValidateReq(ctx) {
|
|
784
|
+
const req = readRequiredJsonObject(ctx, "req");
|
|
785
|
+
const operation = typeof req.operation === "string" ? req.operation.trim().toLowerCase() : "";
|
|
786
|
+
if (!allowedOperations.includes(operation)) {
|
|
787
|
+
throw new Error(`Flag --req.operation must be one of: ${allowedOperations.join(", ")}`);
|
|
788
|
+
}
|
|
789
|
+
if ("nodeList" in req || "edgeList" in req) {
|
|
790
|
+
throw new Error("Flag --req must use nodes/edges instead of legacy nodeList/edgeList");
|
|
791
|
+
}
|
|
792
|
+
if ("sourceFlowUuid" in req) {
|
|
793
|
+
throw new Error("Flag --req.sourceFlowUuid is no longer supported; call +flow_detail and build nodes/edges instead");
|
|
794
|
+
}
|
|
795
|
+
return req;
|
|
796
|
+
}
|
|
782
797
|
function buildArgs21(ctx) {
|
|
783
798
|
return {
|
|
784
799
|
projectId: ctx.num("project_id"),
|
|
785
800
|
req: {
|
|
786
801
|
projectId: ctx.num("project_id"),
|
|
787
|
-
...
|
|
802
|
+
...readAndValidateReq(ctx)
|
|
788
803
|
}
|
|
789
804
|
};
|
|
790
805
|
}
|
|
791
806
|
var saveFlow = {
|
|
792
807
|
service: "engage",
|
|
793
808
|
command: "+save_flow",
|
|
794
|
-
description: "Create or
|
|
809
|
+
description: "Create, preview, or commit an operation-based flow draft with req.operation=build, preview, or commit. Copy existing flows by querying detail first, then building nodes/edges.",
|
|
795
810
|
flags: [
|
|
796
811
|
{ name: "project_id", type: "number", required: true, alias: "p", desc: "Project ID" },
|
|
797
|
-
{ name: "req", type: "json", required: true, desc: "
|
|
812
|
+
{ name: "req", type: "json", required: true, desc: "Operation-based flow save request JSON object. Use operation=build with nodes/edges, operation=preview with draftId, or operation=commit with draftVersion and confirmToken. Do not use sourceFlowUuid clone mode." }
|
|
798
813
|
],
|
|
799
814
|
risk: "write",
|
|
800
815
|
validate: (ctx) => {
|
|
801
|
-
|
|
816
|
+
readAndValidateReq(ctx);
|
|
802
817
|
},
|
|
803
818
|
dryRun: (ctx) => buildMcpDryRun(ctx, serviceName21, toolName21, buildArgs21(ctx)),
|
|
804
819
|
execute: async (ctx) => executeMcpCommand(ctx, serviceName21, toolName21, buildArgs21(ctx))
|
|
@@ -817,11 +832,11 @@ function buildArgs22(ctx) {
|
|
|
817
832
|
var validateFlowNodeConfig = {
|
|
818
833
|
service: "engage",
|
|
819
834
|
command: "+validate_flow_node_config",
|
|
820
|
-
description: "Validate one node config before save_flow.",
|
|
835
|
+
description: "Validate and normalize one candidate node config before placing it into save_flow.",
|
|
821
836
|
flags: [
|
|
822
|
-
{ name: "node_type", type: "string", required: true, desc: "
|
|
823
|
-
{ name: "config", type: "string", required: true, desc: "Node config JSON string" },
|
|
824
|
-
{ name: "operation_mode", type: "string", required: true, desc: "Validation mode" }
|
|
837
|
+
{ name: "node_type", type: "string", required: true, desc: "Flow node type, for example single_trigger, event_trigger, event_split_flow, or message_push" },
|
|
838
|
+
{ name: "config", type: "string", required: true, desc: "Node config JSON object encoded as a string" },
|
|
839
|
+
{ name: "operation_mode", type: "string", required: true, desc: "Validation mode. Use save_flow for the current exposed MCP protocol; save_submit_flow applies stricter submit-time checks" }
|
|
825
840
|
],
|
|
826
841
|
risk: "read",
|
|
827
842
|
dryRun: (ctx) => buildMcpDryRun(ctx, serviceName22, toolName22, buildArgs22(ctx)),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
kbApi,
|
|
3
3
|
kbUpload
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MDJGDI6K.js";
|
|
5
5
|
import "./chunk-NOO24N7W.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-2NDGFQHW.js";
|
|
7
|
+
import "./chunk-AJTH7LT3.js";
|
|
8
|
+
import "./chunk-YCLVYFK7.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/te-kb/query.ts
|
|
11
11
|
var API_PATH = "/agent/api/external/knowledge-bases/query";
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
callMcpTool,
|
|
3
3
|
parseMcpResult,
|
|
4
4
|
resolveMcpUrl
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-GWZ5MYWE.js";
|
|
6
|
+
import "./chunk-KGJQCYVC.js";
|
|
7
7
|
import "./chunk-NOO24N7W.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-2NDGFQHW.js";
|
|
9
|
+
import "./chunk-AJTH7LT3.js";
|
|
10
|
+
import "./chunk-YCLVYFK7.js";
|
|
11
11
|
|
|
12
12
|
// src/commands/te-meta/shared.ts
|
|
13
13
|
function createMcpCommand(config) {
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
callMcpTool,
|
|
3
3
|
parseMcpResult,
|
|
4
4
|
resolveMcpUrl
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-7QQ4233A.js";
|
|
6
|
+
import "./chunk-KGJQCYVC.js";
|
|
7
7
|
import "./chunk-NOO24N7W.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-2NDGFQHW.js";
|
|
9
|
+
import "./chunk-AJTH7LT3.js";
|
|
10
|
+
import "./chunk-YCLVYFK7.js";
|
|
11
11
|
|
|
12
12
|
// src/commands/te-meta/shared.ts
|
|
13
13
|
function createMcpCommand(config) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthHeaders,
|
|
3
3
|
kbApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MDJGDI6K.js";
|
|
5
5
|
import {
|
|
6
6
|
printError,
|
|
7
7
|
printOutput
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZAOL36CG.js";
|
|
9
9
|
import "./chunk-NOO24N7W.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-2NDGFQHW.js";
|
|
11
|
+
import "./chunk-AJTH7LT3.js";
|
|
12
|
+
import "./chunk-YCLVYFK7.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/te-team/shared.ts
|
|
15
15
|
var API_PREFIX = process.env.AE_API_PREFIX ?? "/agent";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thinkingai/ae-cli",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.28",
|
|
4
4
|
"description": "CLI tool for ThinkingAI (AE) analytics platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"verify:self-check-overlay": "node test/self-check-overlay.test.mjs",
|
|
34
34
|
"verify:update-check": "npx tsx test/update-check.test.mjs",
|
|
35
35
|
"self-check": "node self-check/scan.mjs",
|
|
36
|
+
"sync:skills-to-db": "node scripts/sync-skills-to-db.mjs",
|
|
36
37
|
"check:agents-docs": "node scripts/check-agents-docs-sync.mjs",
|
|
37
38
|
"prepublishOnly": "npm run build",
|
|
38
39
|
"start": "node dist/index.js",
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
"@types/node": "^22.0.0",
|
|
68
69
|
"@types/turndown": "^5.0.6",
|
|
69
70
|
"@types/ws": "^8.5.0",
|
|
71
|
+
"mysql2": "^3.22.6",
|
|
70
72
|
"tsup": "^8.0.0",
|
|
71
73
|
"tsx": "^4.0.0",
|
|
72
74
|
"typescript": "^5.5.0"
|