@thinkingai/ae-cli 6.1.11 → 6.1.13
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-TAMDRZYV.js} +23 -10
- package/dist/{capability-VQNC5CF7.js → capability-U7TDEEEG.js} +23 -10
- package/dist/{chunk-GJJA4CQZ.js → chunk-3FY3RJ26.js} +0 -4
- package/dist/{chunk-GS2P7LFD.js → chunk-5XUSIK27.js} +2 -2
- package/dist/{chunk-7KQWSBSL.js → chunk-753BUTNZ.js} +3 -3
- package/dist/{chunk-VTXHDCBW.js → chunk-AFXA7BRK.js} +2 -2
- package/dist/chunk-IBH3LDAH.js +556 -0
- package/dist/{chunk-RBNKI5ZW.js → chunk-JUW4AJXN.js} +2 -2
- package/dist/{chunk-TS6BUGUY.js → chunk-QATA32VR.js} +3 -3
- package/dist/{chunk-Z3OXWCIA.js → chunk-S5NTSDBS.js} +2 -2
- package/dist/chunk-UIHQJK5E.js +556 -0
- package/dist/{chunk-VKD5WQKN.js → chunk-VLWOLBGZ.js} +142 -24
- 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 +25 -38
- 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-UORZTW3T.js} +21 -11
- package/dist/{metadata-ZRN2GHPN.js → metadata-VVQ3AQT5.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-KOKHJJPE.js} +1225 -450
- package/dist/{te-analysis-N2BRDJZ5.js → te-analysis-LLOCCBJ4.js} +1225 -450
- 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-BRLSRVQT.js} +960 -41
- package/dist/{te-engage-FMYAYCNV.js → te-engage-HE4OPZIT.js} +960 -41
- package/dist/{te-experiment-JWXOYJ3W.js → te-experiment-K5US7RMG.js} +115 -9
- package/dist/{te-experiment-UPDMHCAJ.js → te-experiment-WA7TFMEL.js} +115 -9
- 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-experiment/SKILL.md +17 -4
- package/skills/ae-experiment/references/delete_metric.md +2 -0
- package/skills/ae-experiment/references/query_experiment_metric_trend.md +5 -5
- package/skills/ae-experiment/references/query_experiment_report_summary.md +4 -3
- package/skills/ae-experiment/references/query_experiment_sample_size_report.md +6 -5
- package/skills/ae-experiment/references/save_build_guide.md +39 -0
- package/skills/ae-experiment/references/save_experiment.md +11 -0
- package/skills/ae-experiment/references/save_metric.md +5 -1
- package/skills/ae-experiment/references/save_validate.md +33 -0
- package/skills/ae-experiment-design/SKILL.md +1 -1
- package/skills/ae-experiment-design/references/platform-operations.md +10 -4
- package/skills/ae-experiment-insight/references/platform-operations.md +10 -4
- 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
|
@@ -125,8 +125,6 @@ Run `ae-cli --help` or `ae-cli <command> --help` for the authoritative command l
|
|
|
125
125
|
| `model` | Switch the current workspace model inside an Agent sandbox |
|
|
126
126
|
| `update` | Synchronize CLI and Skills to the version required by the current host |
|
|
127
127
|
|
|
128
|
-
`analysis_meta` remains available for legacy curated metadata commands. Prefer the hyphenated Capability Gateway domains for new integrations.
|
|
129
|
-
|
|
130
128
|
## Capability Gateway
|
|
131
129
|
|
|
132
130
|
Capability Gateway is the preferred entry point for operations that do not need a dedicated curated command:
|
package/README.zh.md
CHANGED
|
@@ -125,8 +125,6 @@ ae-cli capability list --domain analysis --jq '.data.capabilities[] | .id'
|
|
|
125
125
|
| `model` | 在 Agent 沙盒中切换当前工作区模型 |
|
|
126
126
|
| `update` | 将 CLI 和 Skills 同步到当前 Host 要求的版本 |
|
|
127
127
|
|
|
128
|
-
`analysis_meta` 仍用于兼容旧的精选元数据命令。新接入优先使用带连字符的 Capability Gateway 业务域。
|
|
129
|
-
|
|
130
128
|
## Capability Gateway
|
|
131
129
|
|
|
132
130
|
不需要独立精选命令的能力,应优先通过 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";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
printError,
|
|
11
11
|
printOutput
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WZRX4KOH.js";
|
|
13
13
|
import {
|
|
14
14
|
CapabilityGatewayError,
|
|
15
15
|
dryRunCapability,
|
|
@@ -17,15 +17,15 @@ import {
|
|
|
17
17
|
inspectCapability,
|
|
18
18
|
listCapabilities,
|
|
19
19
|
validateCapability
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-JUW4AJXN.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
|
|
@@ -151,7 +161,10 @@ function registerCapability(program) {
|
|
|
151
161
|
"after",
|
|
152
162
|
"\nExamples:\n ae-cli capability list --domain analysis\n ae-cli capability list --domain analysis --project-id 1"
|
|
153
163
|
);
|
|
154
|
-
capability.command("search").description("Search capability IDs and descriptions in a domain").argument("<query>", "Case-insensitive search terms").requiredOption(
|
|
164
|
+
capability.command("search").description("Search capability IDs and descriptions in a domain").argument("<query>", "Case-insensitive search terms").requiredOption(
|
|
165
|
+
"--domain <domain>",
|
|
166
|
+
"Capability namespace. One of: analysis, project, system, tracking, metadata, experiment, engage-flow, engage-task, engage-setting, engage-scene, engage-activity, engage-workbench, community"
|
|
167
|
+
).option("--project-id <project-id>", "Filter by project membership, permissions, and enabled features").action(async (query, opts) => {
|
|
155
168
|
await executeAndPrint(program, async (host) => {
|
|
156
169
|
const gatewayDomain = resolveCapabilityListDomain(opts.domain);
|
|
157
170
|
const projectId = parseOptionalProjectId(opts.projectId);
|
|
@@ -161,7 +174,7 @@ function registerCapability(program) {
|
|
|
161
174
|
});
|
|
162
175
|
}).addHelpText(
|
|
163
176
|
"after",
|
|
164
|
-
'\nExamples:\n ae-cli capability search "dashboard list" --domain analysis\n ae-cli capability search "dashboard list" --domain analysis --project-id 1'
|
|
177
|
+
'\nDomains (--domain):\n analysis, project, system, tracking, metadata,\n experiment, engage-flow, engage-task, engage-setting,\n engage-scene, engage-activity, engage-workbench, community\n\nExamples:\n ae-cli capability search "dashboard list" --domain analysis\n ae-cli capability search "dashboard list" --domain analysis --project-id 1\n ae-cli capability search "info list" --domain project\n ae-cli capability search "usage" --domain system\n ae-cli capability search "plan" --domain tracking\n ae-cli capability search "data_table" --domain metadata\n ae-cli capability search "report" --domain experiment\n ae-cli capability search "flow" --domain engage-flow\n ae-cli capability search "task" --domain engage-task\n ae-cli capability search "channel" --domain engage-setting\n ae-cli capability search "strategy" --domain engage-scene\n ae-cli capability search "topic" --domain engage-activity\n ae-cli capability search "workbench" --domain engage-workbench\n ae-cli capability search "post" --domain community'
|
|
165
178
|
);
|
|
166
179
|
capability.command("inspect").description("Inspect one capability schema, risk, auth, and output metadata").argument("<capability-id>", "Capability ID, such as analysis.report.list").option("--domain <domain>", "Override the capability namespace used for gateway routing").option("--project-id <project-id>", "Check availability in a project before returning metadata").action(async (capabilityId, opts) => {
|
|
167
180
|
await executeAndPrint(program, async (host) => {
|
|
@@ -270,7 +283,7 @@ async function executeAndPrint(program, action) {
|
|
|
270
283
|
}
|
|
271
284
|
function printCapabilityError(error) {
|
|
272
285
|
if (error instanceof CapabilityCommandValidationError) {
|
|
273
|
-
printError("validation", error.message, error.hint);
|
|
286
|
+
printError("validation", error.message, error.hint, error.code);
|
|
274
287
|
return;
|
|
275
288
|
}
|
|
276
289
|
if (error instanceof SecureStoreAuthError) {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
printError,
|
|
11
11
|
printOutput
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WZRX4KOH.js";
|
|
13
13
|
import {
|
|
14
14
|
CapabilityGatewayError,
|
|
15
15
|
dryRunCapability,
|
|
@@ -17,15 +17,15 @@ import {
|
|
|
17
17
|
inspectCapability,
|
|
18
18
|
listCapabilities,
|
|
19
19
|
validateCapability
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-5XUSIK27.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
|
|
@@ -151,7 +161,10 @@ function registerCapability(program) {
|
|
|
151
161
|
"after",
|
|
152
162
|
"\nExamples:\n ae-cli capability list --domain analysis\n ae-cli capability list --domain analysis --project-id 1"
|
|
153
163
|
);
|
|
154
|
-
capability.command("search").description("Search capability IDs and descriptions in a domain").argument("<query>", "Case-insensitive search terms").requiredOption(
|
|
164
|
+
capability.command("search").description("Search capability IDs and descriptions in a domain").argument("<query>", "Case-insensitive search terms").requiredOption(
|
|
165
|
+
"--domain <domain>",
|
|
166
|
+
"Capability namespace. One of: analysis, project, system, tracking, metadata, experiment, engage-flow, engage-task, engage-setting, engage-scene, engage-activity, engage-workbench, community"
|
|
167
|
+
).option("--project-id <project-id>", "Filter by project membership, permissions, and enabled features").action(async (query, opts) => {
|
|
155
168
|
await executeAndPrint(program, async (host) => {
|
|
156
169
|
const gatewayDomain = resolveCapabilityListDomain(opts.domain);
|
|
157
170
|
const projectId = parseOptionalProjectId(opts.projectId);
|
|
@@ -161,7 +174,7 @@ function registerCapability(program) {
|
|
|
161
174
|
});
|
|
162
175
|
}).addHelpText(
|
|
163
176
|
"after",
|
|
164
|
-
'\nExamples:\n ae-cli capability search "dashboard list" --domain analysis\n ae-cli capability search "dashboard list" --domain analysis --project-id 1'
|
|
177
|
+
'\nDomains (--domain):\n analysis, project, system, tracking, metadata,\n experiment, engage-flow, engage-task, engage-setting,\n engage-scene, engage-activity, engage-workbench, community\n\nExamples:\n ae-cli capability search "dashboard list" --domain analysis\n ae-cli capability search "dashboard list" --domain analysis --project-id 1\n ae-cli capability search "info list" --domain project\n ae-cli capability search "usage" --domain system\n ae-cli capability search "plan" --domain tracking\n ae-cli capability search "data_table" --domain metadata\n ae-cli capability search "report" --domain experiment\n ae-cli capability search "flow" --domain engage-flow\n ae-cli capability search "task" --domain engage-task\n ae-cli capability search "channel" --domain engage-setting\n ae-cli capability search "strategy" --domain engage-scene\n ae-cli capability search "topic" --domain engage-activity\n ae-cli capability search "workbench" --domain engage-workbench\n ae-cli capability search "post" --domain community'
|
|
165
178
|
);
|
|
166
179
|
capability.command("inspect").description("Inspect one capability schema, risk, auth, and output metadata").argument("<capability-id>", "Capability ID, such as analysis.report.list").option("--domain <domain>", "Override the capability namespace used for gateway routing").option("--project-id <project-id>", "Check availability in a project before returning metadata").action(async (capabilityId, opts) => {
|
|
167
180
|
await executeAndPrint(program, async (host) => {
|
|
@@ -270,7 +283,7 @@ async function executeAndPrint(program, action) {
|
|
|
270
283
|
}
|
|
271
284
|
function printCapabilityError(error) {
|
|
272
285
|
if (error instanceof CapabilityCommandValidationError) {
|
|
273
|
-
printError("validation", error.message, error.hint);
|
|
286
|
+
printError("validation", error.message, error.hint, error.code);
|
|
274
287
|
return;
|
|
275
288
|
}
|
|
276
289
|
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,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearCliToken,
|
|
3
3
|
getCliToken
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-S5NTSDBS.js";
|
|
5
5
|
import {
|
|
6
6
|
safeJsonParse
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3FY3RJ26.js";
|
|
8
8
|
import {
|
|
9
9
|
PermissionError
|
|
10
10
|
} from "./chunk-AXDXJTPC.js";
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
} from "./chunk-PTE56QPL.js";
|
|
4
4
|
import {
|
|
5
5
|
withOutputMetadata
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WZRX4KOH.js";
|
|
7
7
|
import {
|
|
8
8
|
dryRunCapability,
|
|
9
9
|
executeCapabilityWithEnvelope,
|
|
10
10
|
validateCapability
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5XUSIK27.js";
|
|
12
12
|
|
|
13
13
|
// src/core/capability-command.ts
|
|
14
14
|
import { randomBytes } from "crypto";
|
|
@@ -43,7 +43,7 @@ function createCapabilityCommand(config) {
|
|
|
43
43
|
const input = withLifecycleRequestId(config, config.buildInput(ctx));
|
|
44
44
|
announceDispatch(config.capabilityId, input);
|
|
45
45
|
const result = await executeCapabilityWithEnvelope(requestHost, gatewayDomain, config.capabilityId, input);
|
|
46
|
-
const data = config.postProcess ? config.postProcess(result.data, input, ctx) : result.data;
|
|
46
|
+
const data = config.postProcess ? await config.postProcess(result.data, input, ctx) : result.data;
|
|
47
47
|
return withOutputMetadata(data, result.meta);
|
|
48
48
|
}
|
|
49
49
|
};
|