@thinkingai/ae-cli 6.0.39 → 6.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/README.zh.md +0 -2
- package/dist/{auth-NN55553T.js → auth-GBMV6TEJ.js} +2 -2
- package/dist/{auth-GDV3H5I4.js → auth-NDSXE54J.js} +4 -4
- package/dist/{capability-TPORIKRQ.js → capability-CETVHGXF.js} +25 -15
- package/dist/{capability-VQNC5CF7.js → capability-ZSQBMNOE.js} +25 -15
- package/dist/{chunk-GJJA4CQZ.js → chunk-3FY3RJ26.js} +0 -4
- package/dist/chunk-4E3DB4MM.js +556 -0
- package/dist/{chunk-GS2P7LFD.js → chunk-5XUSIK27.js} +2 -2
- package/dist/{chunk-VTXHDCBW.js → chunk-AFXA7BRK.js} +2 -2
- package/dist/{chunk-7KQWSBSL.js → chunk-FNZA5RZA.js} +8 -8
- package/dist/{chunk-TS6BUGUY.js → chunk-J2N4PB56.js} +8 -8
- package/dist/{chunk-RBNKI5ZW.js → chunk-JUW4AJXN.js} +2 -2
- package/dist/{chunk-Z3OXWCIA.js → chunk-S5NTSDBS.js} +2 -2
- package/dist/{chunk-VKD5WQKN.js → chunk-VLWOLBGZ.js} +142 -24
- package/dist/chunk-WANVG6SY.js +556 -0
- package/dist/{chunk-YTG6Q75E.js → chunk-WZRX4KOH.js} +25 -3
- package/dist/{chunk-YV52FB5G.js → chunk-ZQKDZXDO.js} +1 -1
- package/dist/{cli-token-GL5MS5FK.js → cli-token-4UPER74P.js} +3 -3
- package/dist/{chunk-6A2FUCIS.js → client-L2YDMHQ6.js} +5 -6
- package/dist/{config-4VZNLBKF.js → config-OL2LWGBV.js} +4 -33
- package/dist/index.js +31 -44
- package/dist/{memory-RWJW4XFO.js → memory-MUP7PPL7.js} +4 -4
- package/dist/{memory-VO2ZJCRT.js → memory-U4O5PMXH.js} +4 -4
- package/dist/{metadata-YGTHR2XJ.js → metadata-UKZDNLLQ.js} +21 -11
- package/dist/{metadata-ZRN2GHPN.js → metadata-XXMJFN2M.js} +21 -11
- package/dist/{model-CLUIK3K5.js → model-JTUEO5M4.js} +2 -2
- package/dist/{sync-3REDHGY6.js → sync-MOSFNBVR.js} +5 -5
- package/dist/{te-agent-XNPELAKX.js → te-agent-IFKZDHZI.js} +25 -18
- package/dist/{te-analysis-GJI5FZUL.js → te-analysis-3QLLS35K.js} +1231 -456
- package/dist/{te-analysis-N2BRDJZ5.js → te-analysis-YSK2DBVL.js} +1231 -456
- package/dist/{te-community-SQXKE5OO.js → te-community-HNKVTERD.js} +207 -12
- package/dist/{te-community-TYSNU3NQ.js → te-community-IWE5B7W6.js} +208 -12
- package/dist/{te-dataops-OWIADNSM.js → te-dataops-KQPYNAE3.js} +262 -145
- package/dist/{te-dataops-5TM7WZDI.js → te-dataops-KXCEB4CS.js} +262 -145
- package/dist/{te-engage-F7V55KVW.js → te-engage-6RNGK5GH.js} +961 -42
- package/dist/{te-engage-FMYAYCNV.js → te-engage-IRMHTSQK.js} +961 -42
- package/dist/{te-kb-VRMEY3D4.js → te-kb-OIH3T6CS.js} +4 -4
- package/dist/{te-system-XGS5EQIQ.js → te-system-AZ3URMUO.js} +515 -11
- package/dist/{te-team-BZRDV2CM.js → te-team-GZPU6UWA.js} +5 -5
- package/dist/{update-HEDXGOJH.js → update-TOBFXF2V.js} +4 -4
- package/package.json +6 -6
- package/skills/ae-agent/SKILL.md +3 -3
- package/skills/ae-agent/references/list-skill-references.md +4 -4
- package/skills/ae-agent/references/read-skill-reference.md +10 -7
- package/skills/ae-agent/references/upload-skill-reference.md +11 -9
- package/skills/ae-analysis/SKILL.md +15 -12
- package/skills/ae-analysis/metadata_resolution.md +150 -0
- package/skills/ae-analysis/references/adhoc_export.md +17 -2
- package/skills/ae-analysis/references/adhoc_run.md +12 -8
- package/skills/ae-analysis/references/ai_models.md +31 -5
- package/skills/ae-analysis/references/analysis_data_retrieval.md +104 -16
- package/skills/ae-analysis/references/analysis_drilldown_contract.md +4 -4
- package/skills/ae-analysis/references/analysis_gateway_assets.md +12 -10
- package/skills/ae-analysis/references/artifact_download.md +4 -3
- package/skills/ae-analysis/references/asset_abnormal_list.md +5 -3
- package/skills/ae-analysis/references/asset_authentication_list.md +5 -3
- package/skills/ae-analysis/references/asset_search.md +5 -3
- package/skills/ae-analysis/references/bi_panel_page_data_export.md +1 -1
- package/skills/ae-analysis/references/bi_panel_page_data_run.md +4 -4
- package/skills/ae-analysis/references/catalog_export.md +28 -0
- package/skills/ae-analysis/references/catalog_list.md +44 -0
- package/skills/ae-analysis/references/command_index.md +72 -63
- package/skills/ae-analysis/references/dashboard_report_data_run.md +11 -4
- package/skills/ae-analysis/references/datatable_version_list.md +5 -3
- package/skills/ae-analysis/references/drilldown_entities_run.md +4 -4
- package/skills/ae-analysis/references/drilldown_events_run.md +2 -2
- package/skills/ae-analysis/references/drilldown_user_events_export.md +1 -1
- package/skills/ae-analysis/references/drilldown_user_events_run.md +2 -2
- package/skills/ae-analysis/references/entity_detail_run.md +4 -4
- package/skills/ae-analysis/references/entity_id_import_options.md +1 -1
- package/skills/ae-analysis/references/event_detail_run.md +4 -4
- package/skills/ae-analysis/references/event_export.md +21 -0
- package/skills/ae-analysis/references/event_list.md +7 -6
- package/skills/ae-analysis/references/exchange_rule_list.md +5 -3
- package/skills/ae-analysis/references/history_tag_data_drilldown_export.md +4 -2
- package/skills/ae-analysis/references/history_tag_data_drilldown_run.md +2 -2
- package/skills/ae-analysis/references/history_tag_data_run.md +2 -2
- package/skills/ae-analysis/references/metric_export.md +21 -0
- package/skills/ae-analysis/references/metric_list.md +8 -7
- package/skills/ae-analysis/references/property_export.md +21 -0
- package/skills/ae-analysis/references/property_list.md +9 -8
- package/skills/ae-analysis/references/query_context_get.md +20 -0
- package/skills/ae-analysis/references/query_create_result_cluster.md +1 -1
- package/skills/ae-analysis/references/report_change_log_list.md +1 -1
- package/skills/ae-analysis/references/report_create.md +3 -3
- package/skills/ae-analysis/references/report_data_run.md +8 -8
- package/skills/ae-analysis/references/report_update.md +3 -3
- package/skills/ae-analysis/references/report_version_rollback.md +1 -1
- package/skills/ae-analysis/references/rule_list.md +6 -4
- package/skills/ae-analysis/references/run_inspect.md +8 -5
- package/skills/ae-analysis/references/run_wait.md +37 -0
- package/skills/ae-analysis/references/user_cluster_export.md +13 -0
- package/skills/ae-analysis/references/user_cluster_list.md +6 -2
- package/skills/ae-analysis/references/user_cluster_member_export.md +5 -3
- package/skills/ae-analysis/references/user_cluster_member_list.md +4 -4
- package/skills/ae-analysis/references/user_tag_export.md +13 -0
- package/skills/ae-analysis/references/user_tag_list.md +6 -2
- package/skills/ae-analysis/references/user_tag_member_export.md +5 -3
- package/skills/ae-analysis/references/user_tag_member_list.md +4 -4
- package/skills/ae-analysis/references/virtual_property_create.md +2 -2
- package/skills/ae-community/SKILL.md +2 -2
- package/skills/ae-dataops/SKILL.md +4 -3
- package/skills/ae-dataops/references/dataops-flow-create.md +47 -3
- package/skills/ae-engage/SKILL.md +57 -7
- package/skills/ae-engage/references/activity-data-detail.md +61 -0
- package/skills/ae-engage/references/build-task-save-guide.md +37 -1
- package/skills/ae-engage/references/cancel-query-run.md +31 -0
- package/skills/ae-engage/references/common-metric.md +45 -0
- package/skills/ae-engage/references/config-item-analysis-report.md +14 -1
- package/skills/ae-engage/references/config-item-strategy-comparison.md +11 -1
- package/skills/ae-engage/references/config-item-trigger-report.md +15 -1
- package/skills/ae-engage/references/flow-metric-detail-report.md +134 -0
- package/skills/ae-engage/references/flow-metric-update.md +77 -0
- package/skills/ae-engage/references/flow-metric-user.md +118 -0
- package/skills/ae-engage/references/flow-node-metric-user.md +122 -0
- package/skills/ae-engage/references/flow-node-user.md +122 -0
- package/skills/ae-engage/references/preset-event.md +2 -0
- package/skills/ae-engage/references/push-record-query.md +32 -1
- package/skills/ae-engage/references/save-flow.md +14 -0
- package/skills/ae-engage/references/save-task.md +44 -0
- package/skills/ae-engage/references/scene-strategy-audience.md +12 -7
- package/skills/ae-engage/references/task-data-detail.md +9 -2
- package/skills/ae-engage/references/task-metric-detail.md +9 -2
- package/skills/ae-engage/references/task-submit-approval.md +3 -0
- package/skills/ae-metadata/SKILL.md +2 -1
- package/skills/ae-metadata/references/metadata_data_table_download.md +10 -2
- package/skills/ae-metadata/references/metadata_data_table_list.md +5 -2
- package/skills/ae-system/SKILL.md +66 -3
- package/dist/chunk-DT6Y3TD7.js +0 -232
- package/dist/chunk-MVDZ7DBQ.js +0 -231
- package/dist/chunk-NBPKWKRA.js +0 -51
- package/dist/client-DAIPF7XN.js +0 -23
- package/dist/raw-52B4UKO4.js +0 -71
- package/dist/te-meta-53BVXPFI.js +0 -95
- package/dist/te-meta-TOCBPBXI.js +0 -95
package/README.md
CHANGED
|
@@ -124,8 +124,6 @@ Run `ae-cli --help` or `ae-cli <command> --help` for the authoritative command l
|
|
|
124
124
|
| `model` | Switch the current workspace model inside an Agent sandbox |
|
|
125
125
|
| `update` | Synchronize CLI and Skills to the version required by the current host |
|
|
126
126
|
|
|
127
|
-
`analysis_meta` remains available for legacy curated metadata commands. Prefer the hyphenated Capability Gateway domains for new integrations.
|
|
128
|
-
|
|
129
127
|
## Capability Gateway
|
|
130
128
|
|
|
131
129
|
Capability Gateway is the preferred entry point for operations that do not need a dedicated curated command:
|
package/README.zh.md
CHANGED
|
@@ -124,8 +124,6 @@ ae-cli capability list --domain analysis --jq '.data.capabilities[] | .id'
|
|
|
124
124
|
| `model` | 在 Agent 沙盒中切换当前工作区模型 |
|
|
125
125
|
| `update` | 将 CLI 和 Skills 同步到当前 Host 要求的版本 |
|
|
126
126
|
|
|
127
|
-
`analysis_meta` 仍用于兼容旧的精选元数据命令。新接入优先使用带连字符的 Capability Gateway 业务域。
|
|
128
|
-
|
|
129
127
|
## Capability Gateway
|
|
130
128
|
|
|
131
129
|
不需要独立精选命令的能力,应优先通过 Capability Gateway 调用:
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
printError,
|
|
6
6
|
printOutput,
|
|
7
7
|
runHostCompatCheck
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WZRX4KOH.js";
|
|
9
9
|
import {
|
|
10
10
|
clearCliToken,
|
|
11
11
|
mintCliToken
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-S5NTSDBS.js";
|
|
13
13
|
import {
|
|
14
14
|
clear,
|
|
15
15
|
load,
|
|
@@ -17,14 +17,14 @@ import {
|
|
|
17
17
|
missingAeHostHint,
|
|
18
18
|
resolveHost,
|
|
19
19
|
save
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZQKDZXDO.js";
|
|
21
21
|
import {
|
|
22
22
|
getFallbackCliToken,
|
|
23
23
|
loadConfig,
|
|
24
24
|
normalizeUrl,
|
|
25
25
|
removeHost,
|
|
26
26
|
saveConfig
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-3FY3RJ26.js";
|
|
28
28
|
import {
|
|
29
29
|
logger
|
|
30
30
|
} from "./chunk-JHENBQ5B.js";
|
|
@@ -2,14 +2,6 @@ import {
|
|
|
2
2
|
normalizeRiskLevel,
|
|
3
3
|
requiresConfirmation
|
|
4
4
|
} from "./chunk-OO6XR6LK.js";
|
|
5
|
-
import {
|
|
6
|
-
findGatewayDomain,
|
|
7
|
-
resolveGatewayDomain
|
|
8
|
-
} from "./chunk-PTE56QPL.js";
|
|
9
|
-
import {
|
|
10
|
-
printError,
|
|
11
|
-
printOutput
|
|
12
|
-
} from "./chunk-YTG6Q75E.js";
|
|
13
5
|
import {
|
|
14
6
|
CapabilityGatewayError,
|
|
15
7
|
dryRunCapability,
|
|
@@ -17,15 +9,23 @@ import {
|
|
|
17
9
|
inspectCapability,
|
|
18
10
|
listCapabilities,
|
|
19
11
|
validateCapability
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import
|
|
12
|
+
} from "./chunk-JUW4AJXN.js";
|
|
13
|
+
import {
|
|
14
|
+
printError,
|
|
15
|
+
printOutput
|
|
16
|
+
} from "./chunk-WZRX4KOH.js";
|
|
17
|
+
import {
|
|
18
|
+
findGatewayDomain,
|
|
19
|
+
resolveGatewayDomain
|
|
20
|
+
} from "./chunk-PTE56QPL.js";
|
|
21
|
+
import "./chunk-S5NTSDBS.js";
|
|
22
22
|
import {
|
|
23
23
|
SecureStoreAuthError,
|
|
24
24
|
resolveHost
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZQKDZXDO.js";
|
|
26
26
|
import {
|
|
27
27
|
safeJsonParse
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3FY3RJ26.js";
|
|
29
29
|
import {
|
|
30
30
|
PermissionError
|
|
31
31
|
} from "./chunk-AXDXJTPC.js";
|
|
@@ -37,12 +37,14 @@ import * as readline from "readline";
|
|
|
37
37
|
// src/commands/capability/helpers.ts
|
|
38
38
|
import { readFileSync } from "fs";
|
|
39
39
|
var CapabilityCommandValidationError = class extends Error {
|
|
40
|
-
constructor(message, hint) {
|
|
40
|
+
constructor(message, hint, code) {
|
|
41
41
|
super(message);
|
|
42
42
|
this.hint = hint;
|
|
43
|
+
this.code = code;
|
|
43
44
|
this.name = "CapabilityCommandValidationError";
|
|
44
45
|
}
|
|
45
46
|
hint;
|
|
47
|
+
code;
|
|
46
48
|
};
|
|
47
49
|
function capabilityNamespace(capabilityId) {
|
|
48
50
|
return capabilityId.split(".")[0] ?? "";
|
|
@@ -130,7 +132,15 @@ function parseCapabilityInput(raw) {
|
|
|
130
132
|
`Example: --input '{"project_id":1}'`
|
|
131
133
|
);
|
|
132
134
|
}
|
|
133
|
-
|
|
135
|
+
const input = parsed;
|
|
136
|
+
if (Object.prototype.hasOwnProperty.call(input, "projectId")) {
|
|
137
|
+
throw new CapabilityCommandValidationError(
|
|
138
|
+
"Unsupported capability input field: projectId.",
|
|
139
|
+
"Use the canonical snake_case field project_id.",
|
|
140
|
+
"UNSUPPORTED_INPUT_FIELDS"
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
return input;
|
|
134
144
|
}
|
|
135
145
|
|
|
136
146
|
// src/commands/capability/index.ts
|
|
@@ -270,7 +280,7 @@ async function executeAndPrint(program, action) {
|
|
|
270
280
|
}
|
|
271
281
|
function printCapabilityError(error) {
|
|
272
282
|
if (error instanceof CapabilityCommandValidationError) {
|
|
273
|
-
printError("validation", error.message, error.hint);
|
|
283
|
+
printError("validation", error.message, error.hint, error.code);
|
|
274
284
|
return;
|
|
275
285
|
}
|
|
276
286
|
if (error instanceof SecureStoreAuthError) {
|
|
@@ -2,14 +2,6 @@ import {
|
|
|
2
2
|
normalizeRiskLevel,
|
|
3
3
|
requiresConfirmation
|
|
4
4
|
} from "./chunk-OO6XR6LK.js";
|
|
5
|
-
import {
|
|
6
|
-
findGatewayDomain,
|
|
7
|
-
resolveGatewayDomain
|
|
8
|
-
} from "./chunk-PTE56QPL.js";
|
|
9
|
-
import {
|
|
10
|
-
printError,
|
|
11
|
-
printOutput
|
|
12
|
-
} from "./chunk-YTG6Q75E.js";
|
|
13
5
|
import {
|
|
14
6
|
CapabilityGatewayError,
|
|
15
7
|
dryRunCapability,
|
|
@@ -17,15 +9,23 @@ import {
|
|
|
17
9
|
inspectCapability,
|
|
18
10
|
listCapabilities,
|
|
19
11
|
validateCapability
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import
|
|
12
|
+
} from "./chunk-5XUSIK27.js";
|
|
13
|
+
import {
|
|
14
|
+
printError,
|
|
15
|
+
printOutput
|
|
16
|
+
} from "./chunk-WZRX4KOH.js";
|
|
17
|
+
import {
|
|
18
|
+
findGatewayDomain,
|
|
19
|
+
resolveGatewayDomain
|
|
20
|
+
} from "./chunk-PTE56QPL.js";
|
|
21
|
+
import "./chunk-S5NTSDBS.js";
|
|
22
22
|
import {
|
|
23
23
|
SecureStoreAuthError,
|
|
24
24
|
resolveHost
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZQKDZXDO.js";
|
|
26
26
|
import {
|
|
27
27
|
safeJsonParse
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3FY3RJ26.js";
|
|
29
29
|
import {
|
|
30
30
|
PermissionError
|
|
31
31
|
} from "./chunk-AXDXJTPC.js";
|
|
@@ -37,12 +37,14 @@ import * as readline from "readline";
|
|
|
37
37
|
// src/commands/capability/helpers.ts
|
|
38
38
|
import { readFileSync } from "fs";
|
|
39
39
|
var CapabilityCommandValidationError = class extends Error {
|
|
40
|
-
constructor(message, hint) {
|
|
40
|
+
constructor(message, hint, code) {
|
|
41
41
|
super(message);
|
|
42
42
|
this.hint = hint;
|
|
43
|
+
this.code = code;
|
|
43
44
|
this.name = "CapabilityCommandValidationError";
|
|
44
45
|
}
|
|
45
46
|
hint;
|
|
47
|
+
code;
|
|
46
48
|
};
|
|
47
49
|
function capabilityNamespace(capabilityId) {
|
|
48
50
|
return capabilityId.split(".")[0] ?? "";
|
|
@@ -130,7 +132,15 @@ function parseCapabilityInput(raw) {
|
|
|
130
132
|
`Example: --input '{"project_id":1}'`
|
|
131
133
|
);
|
|
132
134
|
}
|
|
133
|
-
|
|
135
|
+
const input = parsed;
|
|
136
|
+
if (Object.prototype.hasOwnProperty.call(input, "projectId")) {
|
|
137
|
+
throw new CapabilityCommandValidationError(
|
|
138
|
+
"Unsupported capability input field: projectId.",
|
|
139
|
+
"Use the canonical snake_case field project_id.",
|
|
140
|
+
"UNSUPPORTED_INPUT_FIELDS"
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
return input;
|
|
134
144
|
}
|
|
135
145
|
|
|
136
146
|
// src/commands/capability/index.ts
|
|
@@ -270,7 +280,7 @@ async function executeAndPrint(program, action) {
|
|
|
270
280
|
}
|
|
271
281
|
function printCapabilityError(error) {
|
|
272
282
|
if (error instanceof CapabilityCommandValidationError) {
|
|
273
|
-
printError("validation", error.message, error.hint);
|
|
283
|
+
printError("validation", error.message, error.hint, error.code);
|
|
274
284
|
return;
|
|
275
285
|
}
|
|
276
286
|
if (error instanceof SecureStoreAuthError) {
|
|
@@ -71,9 +71,6 @@ function getSandboxAeConfigDir() {
|
|
|
71
71
|
function getSandboxCliTokenFilePath() {
|
|
72
72
|
return join(getSandboxAeConfigDir(), "cli-token.json");
|
|
73
73
|
}
|
|
74
|
-
function getSandboxClusterInfoFilePath() {
|
|
75
|
-
return join(getSandboxAeConfigDir(), "cluster-info.json");
|
|
76
|
-
}
|
|
77
74
|
function isAeSandboxRuntime() {
|
|
78
75
|
if (process.env.SANDBOX_RUNTIME_ROOT) {
|
|
79
76
|
return true;
|
|
@@ -281,7 +278,6 @@ export {
|
|
|
281
278
|
safeReadJsonFile,
|
|
282
279
|
normalizeUrl,
|
|
283
280
|
getSandboxRuntimeRoot,
|
|
284
|
-
getSandboxClusterInfoFilePath,
|
|
285
281
|
isAeSandboxRuntime,
|
|
286
282
|
getFallbackCliToken,
|
|
287
283
|
loadConfig,
|