@thinkingai/ae-cli 6.0.22 → 6.0.24
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-RDN6D5HU.js → auth-A2XXG5K4.js} +7 -11
- package/dist/auth-IDPKDFSY.js +13 -0
- package/dist/{chunk-4EUZRJPO.js → chunk-2OW2RENH.js} +40 -10
- package/dist/{chunk-H52CSLJW.js → chunk-4FQ36OGO.js} +4 -4
- package/dist/chunk-AKORWVHJ.js +59 -0
- package/dist/{chunk-E34XH4GW.js → chunk-F3ZDMC2W.js} +8 -8
- package/dist/chunk-FIT4CFIN.js +59 -0
- package/dist/{chunk-2W7HULUD.js → chunk-IDXW6MEJ.js} +2 -2
- package/dist/{chunk-5FBLRSMU.js → chunk-NGJDCOYA.js} +3 -3
- package/dist/chunk-NXJP4CES.js +209 -0
- package/dist/{chunk-FPE5LGVU.js → chunk-OCQPQYHZ.js} +2 -2
- package/dist/{chunk-YACCPUNQ.js → chunk-ONOA6DYB.js} +1 -1
- package/dist/{chunk-U6QPKCN3.js → chunk-PFJFZVCK.js} +8 -115
- package/dist/chunk-V5R5UIRM.js +195 -0
- package/dist/{chunk-XE2PI5DS.js → chunk-WXBCP6SD.js} +1 -1
- package/dist/{cli-token-6AGEDJF4.js → cli-token-OZXHC3U2.js} +3 -3
- package/dist/{client-VTJMUZ4O.js → client-7L735LVY.js} +3 -3
- package/dist/{config-2SDTLGOC.js → config-SXD2JKSL.js} +3 -3
- package/dist/index.js +27 -24
- package/dist/{metadata-JZ2OTWBK.js → metadata-QWUAX625.js} +56 -65
- package/dist/metadata-XWTEGEN2.js +411 -0
- package/dist/{model-ZYMRN4VS.js → model-3OVX42DA.js} +2 -2
- package/dist/{raw-NGYHAL3F.js → raw-IANB4AV5.js} +4 -4
- package/dist/{sync-JVLX6TGW.js → sync-4HQ3CXSK.js} +3 -3
- package/dist/{te-agent-QPZTLHPH.js → te-agent-OYNNTJDU.js} +2 -2
- package/dist/{te-analysis-WWX3Z6RP.js → te-analysis-CRPFK3LX.js} +1074 -340
- package/dist/te-analysis-JX3V76OI.js +2281 -0
- package/dist/{te-audience-UXGHUVBB.js → te-audience-77FGNG5E.js} +5 -5
- package/dist/te-audience-RO2IZOUC.js +599 -0
- package/dist/{te-common-7XXH73MF.js → te-common-4TRJPRC5.js} +5 -5
- package/dist/te-common-PUXBUPOL.js +130 -0
- package/dist/{te-community-QKE67HR2.js → te-community-NPDZQKMY.js} +5 -5
- package/dist/te-community-XKE526DS.js +687 -0
- package/dist/{te-dataops-6W7NNYST.js → te-dataops-6KWLFNV4.js} +5 -5
- package/dist/te-dataops-PW74WP76.js +1842 -0
- package/dist/{te-engage-NCFAQFX3.js → te-engage-HTLMUN7G.js} +5 -5
- package/dist/te-engage-YPQIVF5H.js +1510 -0
- package/dist/{te-kb-K5BQYUCM.js → te-kb-DOGDQIU4.js} +4 -4
- package/dist/{te-meta-LJZBOSMO.js → te-meta-5ESSQ5B3.js} +5 -5
- package/dist/te-meta-Z47X4VT3.js +595 -0
- package/dist/{te-team-DHK5R7MV.js → te-team-SOVKZIDD.js} +5 -5
- package/package.json +1 -1
- package/skills/ae-analysis/SKILL.md +51 -25
- package/skills/ae-analysis/references/analysis_gateway_assets.md +114 -0
- package/skills/ae-analysis/references/bi_panel_copy.md +15 -0
- package/skills/ae-analysis/references/bi_panel_create.md +15 -0
- package/skills/ae-analysis/references/bi_panel_delete.md +15 -0
- package/skills/ae-analysis/references/bi_panel_get.md +18 -0
- package/skills/ae-analysis/references/bi_panel_list.md +15 -0
- package/skills/ae-analysis/references/bi_panel_page_data_export.md +15 -0
- package/skills/ae-analysis/references/bi_panel_page_data_run.md +15 -0
- package/skills/ae-analysis/references/bi_panel_share.md +15 -0
- package/skills/ae-analysis/references/bi_panel_update.md +15 -0
- package/skills/ae-analysis/references/dashboard_abnormal_get.md +15 -0
- package/skills/ae-analysis/references/dashboard_copy.md +15 -0
- package/skills/ae-analysis/references/dashboard_create.md +15 -0
- package/skills/ae-analysis/references/dashboard_daily_report_send.md +15 -0
- package/skills/ae-analysis/references/dashboard_daily_report_update.md +15 -0
- package/skills/ae-analysis/references/dashboard_definition_export.md +15 -0
- package/skills/ae-analysis/references/dashboard_definition_import.md +15 -0
- package/skills/ae-analysis/references/dashboard_delete.md +15 -0
- package/skills/ae-analysis/references/dashboard_freeze.md +15 -0
- package/skills/ae-analysis/references/dashboard_get.md +15 -0
- package/skills/ae-analysis/references/dashboard_handover.md +15 -0
- package/skills/ae-analysis/references/dashboard_list.md +15 -0
- package/skills/ae-analysis/references/dashboard_report_data_export.md +15 -0
- package/skills/ae-analysis/references/dashboard_report_data_run.md +15 -0
- package/skills/ae-analysis/references/dashboard_share.md +15 -0
- package/skills/ae-analysis/references/dashboard_share_info.md +15 -0
- package/skills/ae-analysis/references/dashboard_task_status.md +15 -0
- package/skills/ae-analysis/references/dashboard_update.md +16 -0
- package/skills/ae-analysis/references/favorite_add.md +15 -0
- package/skills/ae-analysis/references/favorite_remove.md +15 -0
- package/skills/ae-analysis/references/folder_create.md +15 -0
- package/skills/ae-analysis/references/folder_delete.md +15 -0
- package/skills/ae-analysis/references/folder_members.md +15 -0
- package/skills/ae-analysis/references/folder_share.md +15 -0
- package/skills/ae-analysis/references/project_space_create.md +15 -0
- package/skills/ae-analysis/references/project_space_delete.md +15 -0
- package/skills/ae-analysis/references/project_space_get.md +18 -0
- package/skills/ae-analysis/references/project_space_list.md +15 -0
- package/skills/ae-analysis/references/project_space_members.md +15 -0
- package/skills/ae-analysis/references/project_space_share.md +15 -0
- package/skills/ae-analysis/references/public_link_create.md +15 -0
- package/skills/ae-analysis/references/public_link_delete.md +15 -0
- package/skills/ae-analysis/references/public_link_list.md +15 -0
- package/skills/ae-analysis/references/public_link_offline.md +15 -0
- package/skills/ae-analysis/references/public_link_update.md +15 -0
- package/skills/ae-analysis/references/query_cancel.md +15 -0
- package/skills/ae-metadata/references/metadata_data_table_csv_write.md +5 -3
- package/skills/ae-metadata/references/metadata_data_table_sql_write.md +5 -4
- package/skills/ae-metadata/references/metadata_property_dimension_table_create_and_bind_csv.md +5 -3
- package/dist/auth-I2G7OAU2.js +0 -19
- package/dist/{chunk-WPXHCP4A.js → chunk-65DKFJZB.js} +3 -3
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import {
|
|
2
|
+
callMcpTool,
|
|
3
|
+
parseMcpResult,
|
|
4
|
+
resolveMcpUrl
|
|
5
|
+
} from "./chunk-NGJDCOYA.js";
|
|
6
|
+
import "./chunk-WXBCP6SD.js";
|
|
7
|
+
import "./chunk-NOO24N7W.js";
|
|
8
|
+
import "./chunk-OCQPQYHZ.js";
|
|
9
|
+
import "./chunk-PFJFZVCK.js";
|
|
10
|
+
import "./chunk-65DKFJZB.js";
|
|
11
|
+
|
|
12
|
+
// src/commands/te-common/shared.ts
|
|
13
|
+
function createMcpCommand(config) {
|
|
14
|
+
const toolName = config.command.slice(1);
|
|
15
|
+
const mcpService = config.mcpService || "analysis";
|
|
16
|
+
return {
|
|
17
|
+
service: "analysis_common",
|
|
18
|
+
command: config.command,
|
|
19
|
+
description: config.description,
|
|
20
|
+
flags: config.flags,
|
|
21
|
+
risk: config.risk,
|
|
22
|
+
dryRun: (ctx) => ({
|
|
23
|
+
method: "tools/call",
|
|
24
|
+
url: resolveMcpUrl(ctx.mcpUrl(), ctx.host(), mcpService),
|
|
25
|
+
body: {
|
|
26
|
+
name: toolName,
|
|
27
|
+
arguments: config.buildArgs(ctx)
|
|
28
|
+
}
|
|
29
|
+
}),
|
|
30
|
+
execute: async (ctx) => {
|
|
31
|
+
const url = resolveMcpUrl(ctx.mcpUrl(), ctx.host(), mcpService);
|
|
32
|
+
const result = await callMcpTool(url, toolName, config.buildArgs(ctx), ctx.host());
|
|
33
|
+
return parseMcpResult(result);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// src/commands/te-common/project/list-projects.ts
|
|
39
|
+
var listProjects = createMcpCommand({
|
|
40
|
+
command: "+list_projects",
|
|
41
|
+
description: "List all projects accessible to the current user. No parameters are required. Returns project IDs, names, company IDs, project types, remarks, app IDs, and the user's current role in each project.",
|
|
42
|
+
flags: [],
|
|
43
|
+
risk: "read",
|
|
44
|
+
buildArgs: () => ({})
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
// src/commands/te-common/project/index.ts
|
|
48
|
+
var commands = [
|
|
49
|
+
listProjects
|
|
50
|
+
];
|
|
51
|
+
var project_default = commands;
|
|
52
|
+
|
|
53
|
+
// src/commands/te-common/resource/get-resource-url.ts
|
|
54
|
+
function normalizeResourceUrlFields(node, host) {
|
|
55
|
+
if (!node || typeof node !== "object") return;
|
|
56
|
+
const obj = node;
|
|
57
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
58
|
+
if (typeof value === "string") {
|
|
59
|
+
if (/url|link/i.test(key) || value.includes("/#/")) {
|
|
60
|
+
obj[key] = absolutizeRelativeUrls(value, host);
|
|
61
|
+
}
|
|
62
|
+
} else if (value && typeof value === "object") {
|
|
63
|
+
normalizeResourceUrlFields(value, host);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function absolutizeRelativeUrls(s, host) {
|
|
68
|
+
const base = host.replace(/\/+$/, "");
|
|
69
|
+
s = s.replace(/\]\((\/(?!\/)[^)]*)\)/g, `](${base}$1)`);
|
|
70
|
+
if (/^\/(?!\/)/.test(s)) s = base + s;
|
|
71
|
+
return s;
|
|
72
|
+
}
|
|
73
|
+
var getResourceUrl = {
|
|
74
|
+
service: "analysis_common",
|
|
75
|
+
command: "+get_resource_url",
|
|
76
|
+
description: "Generate a clickable Markdown link for a resource by ID and type (absolute URL)",
|
|
77
|
+
flags: [
|
|
78
|
+
{ name: "project_id", type: "number", required: true, desc: "Project ID", alias: "p" },
|
|
79
|
+
{ name: "resource_type", type: "string", required: true, desc: "Resource type: dashboard/report/metric/alert/tag/cluster/data_table/super_event/super_prop_user/super_prop_event/virtual_event/user_virtual_prop/event_virtual_prop" },
|
|
80
|
+
{ name: "resource_id", type: "number", required: true, desc: "Numeric resource ID" }
|
|
81
|
+
],
|
|
82
|
+
risk: "read",
|
|
83
|
+
dryRun: (ctx) => ({
|
|
84
|
+
method: "tools/call",
|
|
85
|
+
url: resolveMcpUrl(ctx.mcpUrl(), ctx.host(), "analysis"),
|
|
86
|
+
body: {
|
|
87
|
+
name: "get_resource_url",
|
|
88
|
+
arguments: {
|
|
89
|
+
projectId: ctx.num("project_id"),
|
|
90
|
+
resourceType: ctx.str("resource_type"),
|
|
91
|
+
resourceId: ctx.num("resource_id")
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}),
|
|
95
|
+
execute: async (ctx) => {
|
|
96
|
+
const url = resolveMcpUrl(ctx.mcpUrl(), ctx.host(), "analysis");
|
|
97
|
+
const result = await callMcpTool(
|
|
98
|
+
url,
|
|
99
|
+
"get_resource_url",
|
|
100
|
+
{
|
|
101
|
+
projectId: ctx.num("project_id"),
|
|
102
|
+
resourceType: ctx.str("resource_type"),
|
|
103
|
+
resourceId: ctx.num("resource_id")
|
|
104
|
+
},
|
|
105
|
+
ctx.host()
|
|
106
|
+
);
|
|
107
|
+
const parsed = parseMcpResult(result);
|
|
108
|
+
if (typeof parsed !== "object" || parsed === null) {
|
|
109
|
+
return parsed;
|
|
110
|
+
}
|
|
111
|
+
normalizeResourceUrlFields(parsed, ctx.host());
|
|
112
|
+
return parsed;
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
// src/commands/te-common/resource/index.ts
|
|
117
|
+
var commands2 = [
|
|
118
|
+
getResourceUrl
|
|
119
|
+
];
|
|
120
|
+
var resource_default = commands2;
|
|
121
|
+
|
|
122
|
+
// src/commands/te-common/index.ts
|
|
123
|
+
var commands3 = [
|
|
124
|
+
...project_default,
|
|
125
|
+
...resource_default
|
|
126
|
+
];
|
|
127
|
+
var te_common_default = commands3;
|
|
128
|
+
export {
|
|
129
|
+
te_common_default as default
|
|
130
|
+
};
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
parseMcpResult,
|
|
4
4
|
registerMcpMappings,
|
|
5
5
|
resolveMcpUrl
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-NGJDCOYA.js";
|
|
7
|
+
import "./chunk-WXBCP6SD.js";
|
|
8
8
|
import "./chunk-NOO24N7W.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-OCQPQYHZ.js";
|
|
10
|
+
import "./chunk-PFJFZVCK.js";
|
|
11
|
+
import "./chunk-65DKFJZB.js";
|
|
12
12
|
|
|
13
13
|
// src/commands/te-community/get_channel_info.ts
|
|
14
14
|
var getChannelInfo = {
|