@thinkingai/ae-cli 6.0.48-customer.1 → 6.1.0-project-role-upsert.1
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 +96 -36
- package/README.zh.md +96 -36
- package/dist/{auth-QPEVVBKT.js → auth-FUM37MHF.js} +236 -127
- package/dist/{capability-RUSV77CO.js → capability-AXFQW5WM.js} +49 -33
- package/dist/{chunk-FR2EDAQM.js → chunk-4P355ZWB.js} +69 -1
- package/dist/chunk-6ZIQV5GW.js +26 -0
- package/dist/chunk-ATSM5XAW.js +623 -0
- package/dist/{chunk-6QK7SYYY.js → chunk-BBEFP4SB.js} +29 -37
- package/dist/{chunk-KEWVSO64.js → chunk-CZU3V3DQ.js} +4 -15
- package/dist/chunk-ECBLHAZO.js +15 -0
- package/dist/{chunk-B5HMQAOM.js → chunk-I4WQAEYB.js} +1 -1
- package/dist/{chunk-NSIVXKJH.js → chunk-JDPEVVHR.js} +5 -4
- package/dist/{chunk-BE73PUFX.js → chunk-LNZBEQXW.js} +2 -2
- package/dist/{chunk-GJXRF7Y6.js → chunk-QJQZH5GQ.js} +47 -78
- package/dist/{chunk-BVDST5YT.js → chunk-RSG4ONOI.js} +7 -7
- package/dist/{chunk-JYMGHGCE.js → chunk-VXNMYUXU.js} +24 -13
- package/dist/{chunk-KZ6ZHF5J.js → chunk-WZ6YVQSF.js} +14 -14
- package/dist/{community-report-client-6OL6GBQW.js → community-report-client-XXWGSBSD.js} +2 -4
- package/dist/{config-XNMACCKX.js → config-EXUGQN5T.js} +8 -9
- package/dist/{data-integration-FZQQC3KW.js → data-integration-4NZ53OMT.js} +7 -9
- package/dist/index.js +61 -78
- package/dist/{local-data-upload-client-EFHDLXFG.js → local-data-upload-client-KYOKVYZV.js} +2 -4
- package/dist/{memory-HBJQ2GC5.js → memory-ATNKZNW5.js} +4 -6
- package/dist/{metadata-PGDJE5RQ.js → metadata-SOALPEA7.js} +7 -9
- package/dist/{model-BHLJ2QMT.js → model-E4JMQ4V2.js} +4 -6
- package/dist/{personal-semantic-preference-E5NZ56DN.js → personal-semantic-preference-LOF33N5X.js} +6 -8
- package/dist/project-semantic-RV6NA5LN.js +1113 -0
- package/dist/{sync-MUWPRM5I.js → sync-YV3E66IF.js} +6 -8
- package/dist/{te-agent-WQZTMEK4.js → te-agent-JB5T3PO7.js} +393 -90
- package/dist/{te-analysis-YWCSSLYL.js → te-analysis-TV2YZ4IC.js} +112 -30
- package/dist/{te-community-BNE6KREL.js → te-community-UDBI672N.js} +9 -32
- package/dist/{te-dataops-TXLKM2W6.js → te-dataops-ZLYOCXZ4.js} +19 -20
- package/dist/{te-engage-VEW4CJHK.js → te-engage-EUVMTUDJ.js} +67 -11
- package/dist/te-experiment-ESEYE2SK.js +1059 -0
- package/dist/{te-kb-BUD6N3NI.js → te-kb-WYQWHFSC.js} +595 -85
- package/dist/{te-system-44LZJDTQ.js → te-system-7G6F2LJA.js} +6 -8
- package/dist/{te-team-XMP47YXE.js → te-team-E7FBBXMQ.js} +6 -8
- package/dist/{update-UODFOZ4P.js → update-D47BUG25.js} +7 -8
- package/package.json +13 -9
- package/skills/ae-agent/SKILL.md +30 -13
- package/skills/ae-agent/references/agent-distribution.md +94 -0
- package/skills/ae-agent/references/approval-request.md +4 -0
- package/skills/ae-agent/references/command_index.md +9 -2
- package/skills/ae-agent/references/create-automation.md +20 -2
- package/skills/ae-agent/references/get-agent-context.md +70 -0
- package/skills/ae-agent/references/list-automations.md +18 -3
- package/skills/ae-agent/references/list-mcp-credentials.md +1 -1
- package/skills/ae-agent/references/mcp-token.md +3 -3
- package/skills/ae-agent/references/set-mcp-credential.md +0 -1
- package/skills/ae-agent/references/update-automation.md +18 -0
- package/skills/ae-analysis/SKILL.md +28 -3
- package/skills/ae-analysis/references/adhoc_run.md +2 -0
- package/skills/ae-analysis/references/ai_models.md +23 -3
- package/skills/ae-analysis/references/analysis_gateway_assets.md +2 -2
- package/skills/ae-analysis/references/command_index.md +8 -8
- package/skills/ae-analysis/references/cross_source_config.md +84 -0
- package/skills/ae-analysis/references/dashboard_update.md +1 -1
- package/skills/ae-analysis/references/personal_semantic_preference_add.md +1 -1
- package/skills/ae-analysis/references/personal_semantic_preference_get.md +3 -1
- package/skills/ae-analysis/references/personal_semantic_preference_list.md +3 -1
- package/skills/ae-analysis/references/personal_semantic_preference_update.md +1 -1
- package/skills/ae-analysis/references/project_role_upsert.md +32 -2
- package/skills/ae-analysis/references/user_tag_create.md +23 -1
- package/skills/ae-analysis/references/user_tag_models.md +9 -1
- package/skills/ae-analysis/references/user_tag_update.md +14 -2
- package/skills/ae-data-integration/SKILL.md +2 -1
- package/skills/ae-data-integration/references/dimension-routing.md +36 -0
- package/skills/ae-data-integration/references/local-analysis.md +2 -0
- package/skills/ae-data-integration/references/source-inspect.md +1 -1
- package/skills/ae-data-integration/references/ue-routing.md +17 -1
- package/skills/ae-engage/SKILL.md +2 -0
- package/skills/ae-engage/references/save-flow.md +37 -1
- package/skills/ae-experiment/SKILL.md +117 -0
- package/skills/ae-experiment/references/batch_delete_experiment.md +11 -0
- package/skills/ae-experiment/references/batch_delete_feature.md +11 -0
- package/skills/ae-experiment/references/batch_delete_traffic_layer.md +11 -0
- package/skills/ae-experiment/references/cancel_experiment_query_by_request_id.md +11 -0
- package/skills/ae-experiment/references/check_experiment_ready.md +17 -0
- package/skills/ae-experiment/references/check_experiment_traffic_layer_conflict.md +37 -0
- package/skills/ae-experiment/references/delete_metric.md +13 -0
- package/skills/ae-experiment/references/manage_experiment.md +17 -0
- package/skills/ae-experiment/references/manage_feature_status.md +11 -0
- package/skills/ae-experiment/references/manage_feature_whitelist.md +66 -0
- package/skills/ae-experiment/references/manage_guardrail_metrics.md +26 -0
- package/skills/ae-experiment/references/query_bucket_list.md +12 -0
- package/skills/ae-experiment/references/query_experiment_detail.md +19 -0
- package/skills/ae-experiment/references/query_experiment_list.md +22 -0
- package/skills/ae-experiment/references/query_experiment_list_archived.md +18 -0
- package/skills/ae-experiment/references/query_experiment_metric_trend.md +12 -0
- package/skills/ae-experiment/references/query_experiment_operation_log.md +17 -0
- package/skills/ae-experiment/references/query_experiment_report_summary.md +12 -0
- package/skills/ae-experiment/references/query_experiment_sample_size_report.md +13 -0
- package/skills/ae-experiment/references/query_feature_detail.md +14 -0
- package/skills/ae-experiment/references/query_feature_list.md +12 -0
- package/skills/ae-experiment/references/query_feature_operation_log.md +19 -0
- package/skills/ae-experiment/references/query_feature_version_list.md +20 -0
- package/skills/ae-experiment/references/query_metric_detail.md +18 -0
- package/skills/ae-experiment/references/query_metric_list.md +15 -0
- package/skills/ae-experiment/references/query_traffic_layer_detail.md +13 -0
- package/skills/ae-experiment/references/query_traffic_layer_list.md +12 -0
- package/skills/ae-experiment/references/save_build_guide.md +39 -0
- package/skills/ae-experiment/references/save_experiment.md +210 -0
- package/skills/ae-experiment/references/save_feature.md +13 -0
- package/skills/ae-experiment/references/save_metric.md +91 -0
- package/skills/ae-experiment/references/save_submit_experiment.md +16 -0
- package/skills/ae-experiment/references/save_traffic_layer.md +13 -0
- package/skills/ae-experiment/references/save_validate.md +33 -0
- package/skills/ae-experiment/references/update_experiment_group.md +20 -0
- package/skills/ae-experiment-design/SKILL.md +149 -0
- package/skills/ae-experiment-design/agents/openai.yaml +4 -0
- package/skills/ae-experiment-design/references/client-experiment-sdk.md +147 -0
- package/skills/ae-experiment-design/references/experiment-creation.md +108 -0
- package/skills/ae-experiment-design/references/experiment-sdk-contract.md +100 -0
- package/skills/ae-experiment-design/references/exposure-contract.md +91 -0
- package/skills/ae-experiment-design/references/hybrid-experiment-sdk.md +74 -0
- package/skills/ae-experiment-design/references/metric-readiness.md +143 -0
- package/skills/ae-experiment-design/references/platform-operations.md +105 -0
- package/skills/ae-experiment-design/references/sdk-index.md +76 -0
- package/skills/ae-experiment-design/references/sdk-integration.md +114 -0
- package/skills/ae-experiment-design/references/sdk-troubleshooting.md +139 -0
- package/skills/ae-experiment-design/references/server-experiment-sdk.md +78 -0
- package/skills/ae-experiment-design/scripts/calculate_experiment_plan.py +450 -0
- package/skills/ae-experiment-insight/SKILL.md +149 -0
- package/skills/ae-experiment-insight/agents/openai.yaml +4 -0
- package/skills/ae-experiment-insight/references/decision-framework.md +69 -0
- package/skills/ae-experiment-insight/references/diagnostic-playbook.md +225 -0
- package/skills/ae-experiment-insight/references/platform-operations.md +82 -0
- package/skills/ae-experiment-insight/scripts/analyze_experiment.py +478 -0
- package/skills/ae-generate-tracking-plan/SKILL.md +16 -5
- package/skills/ae-kb/SKILL.md +107 -36
- package/skills/ae-kb/references/query-workflow.md +59 -29
- package/skills/ae-kb/references/versions.md +46 -0
- package/skills/ae-project-semantic/SKILL.md +193 -0
- package/skills/ae-project-semantic/references/query-routing-v5.md +165 -0
- package/skills/ae-project-semantic/references/recommendation-quality.md +68 -0
- package/skills/ae-system/SKILL.md +1 -1
- package/skills/ae-use-agent/SKILL.md +42 -0
- package/skills/ae-use-agent/references/local-agent.md +114 -0
- package/dist/auth-UMJAA72O.js +0 -15
- package/dist/chunk-533JK3YX.js +0 -72
- package/dist/chunk-O6K2ODUE.js +0 -318
- package/dist/chunk-RWXIXOZG.js +0 -326
- package/dist/client-N7NGZUNI.js +0 -204
- package/skills/ae-agent/references/auto-provision-mcp-credentials.md +0 -57
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
MultiselectCancelled,
|
|
4
4
|
promptSingleSelect
|
|
5
5
|
} from "./chunk-7K24F7T2.js";
|
|
6
|
-
import {
|
|
7
|
-
printError,
|
|
8
|
-
printOutput
|
|
9
|
-
} from "./chunk-KEWVSO64.js";
|
|
10
|
-
import "./chunk-RWXIXOZG.js";
|
|
11
6
|
import {
|
|
12
7
|
AE_TRIAL_URL,
|
|
13
8
|
missingAeHostHint
|
|
14
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6ZIQV5GW.js";
|
|
10
|
+
import {
|
|
11
|
+
printError,
|
|
12
|
+
printOutput
|
|
13
|
+
} from "./chunk-CZU3V3DQ.js";
|
|
14
|
+
import "./chunk-ATSM5XAW.js";
|
|
15
15
|
import {
|
|
16
16
|
addHost,
|
|
17
17
|
listHosts,
|
|
@@ -21,9 +21,8 @@ import {
|
|
|
21
21
|
resolveHostSelector,
|
|
22
22
|
setActiveHost,
|
|
23
23
|
updateHostLabel
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-FR2EDAQM.js";
|
|
24
|
+
} from "./chunk-WZ6YVQSF.js";
|
|
25
|
+
import "./chunk-4P355ZWB.js";
|
|
27
26
|
|
|
28
27
|
// src/commands/config.ts
|
|
29
28
|
import * as readline2 from "readline";
|
|
@@ -5,18 +5,16 @@ import {
|
|
|
5
5
|
require_worksheet_reader,
|
|
6
6
|
validateAndFix,
|
|
7
7
|
validateDraft
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-LNZBEQXW.js";
|
|
9
|
+
import "./chunk-I4WQAEYB.js";
|
|
10
10
|
import {
|
|
11
11
|
getConfigDir
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WZ6YVQSF.js";
|
|
13
13
|
import {
|
|
14
14
|
CliValidationError,
|
|
15
|
-
LocalDataUploadError
|
|
16
|
-
} from "./chunk-533JK3YX.js";
|
|
17
|
-
import {
|
|
15
|
+
LocalDataUploadError,
|
|
18
16
|
__toESM
|
|
19
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4P355ZWB.js";
|
|
20
18
|
|
|
21
19
|
// src/commands/data-integration/inspect.ts
|
|
22
20
|
import { basename as basename3 } from "path";
|
|
@@ -4444,13 +4442,13 @@ import { dirname as dirname2, join as join3, resolve as resolve3 } from "path";
|
|
|
4444
4442
|
import { tmpdir } from "os";
|
|
4445
4443
|
|
|
4446
4444
|
// src/commands/data-integration/archive.ts
|
|
4447
|
-
import
|
|
4445
|
+
import archiver from "archiver";
|
|
4448
4446
|
import { createWriteStream as createWriteStream2, readdirSync as readdirSync2, statSync as statSync4 } from "fs";
|
|
4449
4447
|
import { join as join2, relative, sep } from "path";
|
|
4450
4448
|
async function zipPackage(dir, zipPath) {
|
|
4451
4449
|
await new Promise((resolvePromise, rejectPromise) => {
|
|
4452
4450
|
const output = createWriteStream2(zipPath, { mode: 384 });
|
|
4453
|
-
const zip =
|
|
4451
|
+
const zip = archiver("zip", { zlib: { level: 9 } });
|
|
4454
4452
|
output.on("close", resolvePromise);
|
|
4455
4453
|
output.on("error", rejectPromise);
|
|
4456
4454
|
zip.on("error", rejectPromise);
|
package/dist/index.js
CHANGED
|
@@ -11,52 +11,49 @@ import {
|
|
|
11
11
|
validateAndFix,
|
|
12
12
|
validateDraft,
|
|
13
13
|
writeDraftXlsx
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LNZBEQXW.js";
|
|
15
15
|
import {
|
|
16
16
|
getLocalCliPackageInfo
|
|
17
17
|
} from "./chunk-E2JKXMVO.js";
|
|
18
18
|
import {
|
|
19
19
|
requiresConfirmation
|
|
20
20
|
} from "./chunk-AMBFK2K3.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-I4WQAEYB.js";
|
|
22
22
|
import {
|
|
23
23
|
TeAgentApiError,
|
|
24
24
|
TeAgentCredentialsError
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-BBEFP4SB.js";
|
|
26
|
+
import {
|
|
27
|
+
CapabilityGatewayError,
|
|
28
|
+
executeCapability,
|
|
29
|
+
uploadInputFileBytes
|
|
30
|
+
} from "./chunk-QJQZH5GQ.js";
|
|
31
|
+
import {
|
|
32
|
+
resolveHost
|
|
33
|
+
} from "./chunk-ECBLHAZO.js";
|
|
26
34
|
import {
|
|
27
35
|
formatCapabilityMissCompatHint,
|
|
28
36
|
printError,
|
|
29
37
|
printOutput,
|
|
30
38
|
runHostCompatCheck
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import {
|
|
33
|
-
CapabilityGatewayError,
|
|
34
|
-
executeCapability,
|
|
35
|
-
uploadInputFileBytes
|
|
36
|
-
} from "./chunk-GJXRF7Y6.js";
|
|
39
|
+
} from "./chunk-CZU3V3DQ.js";
|
|
37
40
|
import "./chunk-Y74WTIKJ.js";
|
|
38
|
-
import {
|
|
39
|
-
clearCliToken,
|
|
40
|
-
getCliToken
|
|
41
|
-
} from "./chunk-RWXIXOZG.js";
|
|
42
41
|
import {
|
|
43
42
|
SecureStoreAuthError,
|
|
44
|
-
|
|
45
|
-
} from "./chunk-
|
|
43
|
+
getCliToken
|
|
44
|
+
} from "./chunk-ATSM5XAW.js";
|
|
46
45
|
import {
|
|
47
46
|
getActiveHost,
|
|
48
47
|
getConfigDir,
|
|
49
48
|
safeJsonParse
|
|
50
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-WZ6YVQSF.js";
|
|
51
50
|
import {
|
|
52
51
|
CliValidationError,
|
|
53
52
|
CommunityReportError,
|
|
54
53
|
LocalDataUploadError,
|
|
55
|
-
PermissionError
|
|
56
|
-
} from "./chunk-533JK3YX.js";
|
|
57
|
-
import {
|
|
54
|
+
PermissionError,
|
|
58
55
|
logger
|
|
59
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-4P355ZWB.js";
|
|
60
57
|
|
|
61
58
|
// src/index.ts
|
|
62
59
|
import { Command as CommanderCommand } from "commander";
|
|
@@ -249,7 +246,7 @@ async function runCommand(cmd, opts, globalOpts) {
|
|
|
249
246
|
"api",
|
|
250
247
|
presentation.message ?? message,
|
|
251
248
|
presentation.hint,
|
|
252
|
-
presentation.code,
|
|
249
|
+
presentation.code ?? err.code,
|
|
253
250
|
presentation.meta
|
|
254
251
|
);
|
|
255
252
|
}
|
|
@@ -285,7 +282,7 @@ function capabilityGatewayHint(err) {
|
|
|
285
282
|
${compatExtra}` : base;
|
|
286
283
|
}
|
|
287
284
|
if (err.httpStatus === 404 && !err.code) {
|
|
288
|
-
const base = "The current host returned 404 for this capability route. Do not keep retrying the same command; verify the backend route/capability deployment.";
|
|
285
|
+
const base = "The current host returned 404 for this capability route. Do not keep retrying the same command; verify the backend route/capability deployment. If --host points directly to a local Common service instead of the deployed gateway, scope AE_CLI_CAPABILITY_GATEWAY_DOMAIN= to this command so it uses /api/cli/v1.";
|
|
289
286
|
return compatExtra ? `${base}
|
|
290
287
|
${compatExtra}` : base;
|
|
291
288
|
}
|
|
@@ -297,28 +294,24 @@ function looksLikeAuthFailure(message) {
|
|
|
297
294
|
return m.includes("401") || m.includes("unauthorized") || m.includes("session expired") || m.includes("invalid access token") || m.includes("-1001") || m.includes("\u767B\u5F55") || m.includes("ae-cli auth login");
|
|
298
295
|
}
|
|
299
296
|
function createRuntimeContext(cmd, opts, globalOpts) {
|
|
300
|
-
let _clientModule = null;
|
|
301
|
-
async function getClient() {
|
|
302
|
-
if (!_clientModule) {
|
|
303
|
-
_clientModule = await import("./client-N7NGZUNI.js");
|
|
304
|
-
}
|
|
305
|
-
return _clientModule;
|
|
306
|
-
}
|
|
307
297
|
let _communityReportModule = null;
|
|
308
298
|
async function getCommunityReportClient() {
|
|
309
299
|
if (!_communityReportModule) {
|
|
310
|
-
_communityReportModule = await import("./community-report-client-
|
|
300
|
+
_communityReportModule = await import("./community-report-client-XXWGSBSD.js");
|
|
311
301
|
}
|
|
312
302
|
return _communityReportModule;
|
|
313
303
|
}
|
|
314
304
|
let _localDataUploadModule = null;
|
|
315
305
|
async function getLocalDataUploadClient() {
|
|
316
306
|
if (!_localDataUploadModule) {
|
|
317
|
-
_localDataUploadModule = await import("./local-data-upload-client-
|
|
307
|
+
_localDataUploadModule = await import("./local-data-upload-client-KYOKVYZV.js");
|
|
318
308
|
}
|
|
319
309
|
return _localDataUploadModule;
|
|
320
310
|
}
|
|
321
311
|
const ctx = {
|
|
312
|
+
has(name) {
|
|
313
|
+
return Object.prototype.hasOwnProperty.call(opts, camelCase(name));
|
|
314
|
+
},
|
|
322
315
|
str(name) {
|
|
323
316
|
return String(opts[camelCase(name)] ?? "");
|
|
324
317
|
},
|
|
@@ -351,34 +344,14 @@ function createRuntimeContext(cmd, opts, globalOpts) {
|
|
|
351
344
|
if (val === void 0 || val === null || val === "") return [];
|
|
352
345
|
return [String(val)];
|
|
353
346
|
},
|
|
354
|
-
async api(method, path4, params, data) {
|
|
355
|
-
const client = await getClient();
|
|
356
|
-
if (method.toUpperCase() === "GET") {
|
|
357
|
-
return client.httpGet(path4, params, ctx.host());
|
|
358
|
-
} else {
|
|
359
|
-
return client.httpRequest(method, path4, params, data, ctx.host());
|
|
360
|
-
}
|
|
361
|
-
},
|
|
362
347
|
async communityReport(endpoint, rawBody) {
|
|
363
348
|
const client = await getCommunityReportClient();
|
|
364
349
|
return client.communityReport(endpoint, rawBody);
|
|
365
350
|
},
|
|
366
|
-
async querySql(projectId, sql) {
|
|
367
|
-
const client = await getClient();
|
|
368
|
-
return client.querySql(projectId, sql, ctx.host());
|
|
369
|
-
},
|
|
370
|
-
async queryReportData(projectId, reportId, qp, eventModel, options) {
|
|
371
|
-
const client = await getClient();
|
|
372
|
-
return client.queryReportData(projectId, reportId, qp, eventModel, options, ctx.host());
|
|
373
|
-
},
|
|
374
351
|
async localDataUpload(endpoint, rawBody, options) {
|
|
375
352
|
const client = await getLocalDataUploadClient();
|
|
376
353
|
return client.localDataUpload(endpoint, rawBody, options);
|
|
377
354
|
},
|
|
378
|
-
async token() {
|
|
379
|
-
const { getToken } = await import("./auth-UMJAA72O.js");
|
|
380
|
-
return getToken(ctx.host());
|
|
381
|
-
},
|
|
382
355
|
host() {
|
|
383
356
|
if (globalOpts.host) return globalOpts.host;
|
|
384
357
|
return getActiveHost();
|
|
@@ -630,7 +603,7 @@ var TrackingClient = class {
|
|
|
630
603
|
async resolveCliToken() {
|
|
631
604
|
return this.cliToken ?? getCliToken(this.host);
|
|
632
605
|
}
|
|
633
|
-
async requestJson(modulePath, params = {}, body, method = body === void 0 ? "GET" : "POST"
|
|
606
|
+
async requestJson(modulePath, params = {}, body, method = body === void 0 ? "GET" : "POST") {
|
|
634
607
|
const token = await this.resolveCliToken();
|
|
635
608
|
const url = buildUrl(this.host, modulePath, params);
|
|
636
609
|
const headers = {
|
|
@@ -645,10 +618,10 @@ var TrackingClient = class {
|
|
|
645
618
|
const resp = await fetch(url, init);
|
|
646
619
|
const env = safeJsonParse(await resp.text());
|
|
647
620
|
logger.api(method, url, resp.status, body, env);
|
|
648
|
-
if (resp.status === 401
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
621
|
+
if (resp.status === 401) {
|
|
622
|
+
throw new SecureStoreAuthError(
|
|
623
|
+
`The stored CLI token for ${this.host} is invalid or expired. Run: ae-cli auth login --host ${this.host}`
|
|
624
|
+
);
|
|
652
625
|
}
|
|
653
626
|
if (resp.status === 403) {
|
|
654
627
|
throw new Error(env?.return_message || "Permission denied");
|
|
@@ -656,10 +629,10 @@ var TrackingClient = class {
|
|
|
656
629
|
if (!resp.ok) {
|
|
657
630
|
throw new Error(`AE API HTTP error: ${resp.status} ${resp.statusText}`);
|
|
658
631
|
}
|
|
659
|
-
if (env?.return_code === -1001
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
632
|
+
if (env?.return_code === -1001) {
|
|
633
|
+
throw new SecureStoreAuthError(
|
|
634
|
+
`The stored CLI token for ${this.host} is invalid or expired. Run: ae-cli auth login --host ${this.host}`
|
|
635
|
+
);
|
|
663
636
|
}
|
|
664
637
|
if (env?.return_code !== 0 && env?.return_code !== void 0) {
|
|
665
638
|
throw new Error(env.return_message || `AE API error (code: ${env.return_code})`);
|
|
@@ -2353,62 +2326,72 @@ program.name("ae-cli").version(version).description("CLI tool for ThinkingAI (AE
|
|
|
2353
2326
|
async function loadCommands() {
|
|
2354
2327
|
const commands = [];
|
|
2355
2328
|
try {
|
|
2356
|
-
const teAnalysis = await import("./te-analysis-
|
|
2329
|
+
const teAnalysis = await import("./te-analysis-TV2YZ4IC.js");
|
|
2357
2330
|
commands.push(...teAnalysis.default);
|
|
2358
2331
|
} catch {
|
|
2359
2332
|
}
|
|
2360
2333
|
try {
|
|
2361
|
-
const engage = await import("./te-engage-
|
|
2334
|
+
const engage = await import("./te-engage-EUVMTUDJ.js");
|
|
2362
2335
|
commands.push(...engage.default);
|
|
2363
2336
|
} catch {
|
|
2364
2337
|
}
|
|
2365
2338
|
try {
|
|
2366
|
-
const
|
|
2339
|
+
const experiment = await import("./te-experiment-ESEYE2SK.js");
|
|
2340
|
+
commands.push(...experiment.default);
|
|
2341
|
+
} catch {
|
|
2342
|
+
}
|
|
2343
|
+
try {
|
|
2344
|
+
const community = await import("./te-community-UDBI672N.js");
|
|
2367
2345
|
commands.push(...community.default);
|
|
2368
2346
|
} catch {
|
|
2369
2347
|
}
|
|
2370
2348
|
try {
|
|
2371
|
-
const dataops = await import("./te-dataops-
|
|
2349
|
+
const dataops = await import("./te-dataops-ZLYOCXZ4.js");
|
|
2372
2350
|
commands.push(...dataops.default);
|
|
2373
2351
|
} catch {
|
|
2374
2352
|
}
|
|
2375
2353
|
try {
|
|
2376
|
-
const teKb = await import("./te-kb-
|
|
2354
|
+
const teKb = await import("./te-kb-WYQWHFSC.js");
|
|
2377
2355
|
commands.push(...teKb.default);
|
|
2378
2356
|
} catch {
|
|
2379
2357
|
}
|
|
2380
2358
|
try {
|
|
2381
|
-
const teTeam = await import("./te-team-
|
|
2359
|
+
const teTeam = await import("./te-team-E7FBBXMQ.js");
|
|
2382
2360
|
commands.push(...teTeam.default);
|
|
2383
2361
|
} catch {
|
|
2384
2362
|
}
|
|
2385
2363
|
try {
|
|
2386
|
-
const teAgent = await import("./te-agent-
|
|
2364
|
+
const teAgent = await import("./te-agent-JB5T3PO7.js");
|
|
2387
2365
|
commands.push(...teAgent.default);
|
|
2388
2366
|
} catch {
|
|
2389
2367
|
}
|
|
2390
2368
|
try {
|
|
2391
|
-
const memory = await import("./memory-
|
|
2369
|
+
const memory = await import("./memory-ATNKZNW5.js");
|
|
2392
2370
|
commands.push(...memory.default);
|
|
2393
2371
|
} catch {
|
|
2394
2372
|
}
|
|
2395
2373
|
try {
|
|
2396
|
-
const teSystem = await import("./te-system-
|
|
2374
|
+
const teSystem = await import("./te-system-7G6F2LJA.js");
|
|
2397
2375
|
commands.push(...teSystem.default);
|
|
2398
2376
|
} catch {
|
|
2399
2377
|
}
|
|
2400
2378
|
try {
|
|
2401
|
-
const metadata = await import("./metadata-
|
|
2379
|
+
const metadata = await import("./metadata-SOALPEA7.js");
|
|
2402
2380
|
commands.push(...metadata.default);
|
|
2403
2381
|
} catch {
|
|
2404
2382
|
}
|
|
2405
2383
|
try {
|
|
2406
|
-
const
|
|
2384
|
+
const projectSemantic = await import("./project-semantic-RV6NA5LN.js");
|
|
2385
|
+
commands.push(...projectSemantic.default);
|
|
2386
|
+
} catch {
|
|
2387
|
+
}
|
|
2388
|
+
try {
|
|
2389
|
+
const personalSemanticPreference = await import("./personal-semantic-preference-LOF33N5X.js");
|
|
2407
2390
|
commands.push(...personalSemanticPreference.default);
|
|
2408
2391
|
} catch {
|
|
2409
2392
|
}
|
|
2410
2393
|
try {
|
|
2411
|
-
const dataIntegration = await import("./data-integration-
|
|
2394
|
+
const dataIntegration = await import("./data-integration-4NZ53OMT.js");
|
|
2412
2395
|
commands.push(...dataIntegration.default);
|
|
2413
2396
|
} catch {
|
|
2414
2397
|
}
|
|
@@ -2416,42 +2399,42 @@ async function loadCommands() {
|
|
|
2416
2399
|
}
|
|
2417
2400
|
async function registerAuthCommands() {
|
|
2418
2401
|
try {
|
|
2419
|
-
const { registerAuth } = await import("./auth-
|
|
2402
|
+
const { registerAuth } = await import("./auth-FUM37MHF.js");
|
|
2420
2403
|
registerAuth(program);
|
|
2421
2404
|
} catch {
|
|
2422
2405
|
}
|
|
2423
2406
|
}
|
|
2424
2407
|
async function registerConfigCommands() {
|
|
2425
2408
|
try {
|
|
2426
|
-
const { registerConfig } = await import("./config-
|
|
2409
|
+
const { registerConfig } = await import("./config-EXUGQN5T.js");
|
|
2427
2410
|
registerConfig(program);
|
|
2428
2411
|
} catch {
|
|
2429
2412
|
}
|
|
2430
2413
|
}
|
|
2431
2414
|
async function registerCapabilityCommands() {
|
|
2432
2415
|
try {
|
|
2433
|
-
const { registerCapability } = await import("./capability-
|
|
2416
|
+
const { registerCapability } = await import("./capability-AXFQW5WM.js");
|
|
2434
2417
|
registerCapability(program);
|
|
2435
2418
|
} catch {
|
|
2436
2419
|
}
|
|
2437
2420
|
}
|
|
2438
2421
|
async function registerSyncCommand() {
|
|
2439
2422
|
try {
|
|
2440
|
-
const { registerSync } = await import("./sync-
|
|
2423
|
+
const { registerSync } = await import("./sync-YV3E66IF.js");
|
|
2441
2424
|
registerSync(program);
|
|
2442
2425
|
} catch {
|
|
2443
2426
|
}
|
|
2444
2427
|
}
|
|
2445
2428
|
async function registerModelCommand() {
|
|
2446
2429
|
try {
|
|
2447
|
-
const { registerModel } = await import("./model-
|
|
2430
|
+
const { registerModel } = await import("./model-E4JMQ4V2.js");
|
|
2448
2431
|
registerModel(program);
|
|
2449
2432
|
} catch {
|
|
2450
2433
|
}
|
|
2451
2434
|
}
|
|
2452
2435
|
async function registerUpdateCommand() {
|
|
2453
2436
|
try {
|
|
2454
|
-
const { registerUpdate } = await import("./update-
|
|
2437
|
+
const { registerUpdate } = await import("./update-D47BUG25.js");
|
|
2455
2438
|
registerUpdate(program);
|
|
2456
2439
|
} catch {
|
|
2457
2440
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
LocalDataUploadError
|
|
4
|
-
} from "./chunk-533JK3YX.js";
|
|
5
|
-
import {
|
|
3
|
+
LocalDataUploadError,
|
|
6
4
|
logger
|
|
7
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4P355ZWB.js";
|
|
8
6
|
|
|
9
7
|
// src/core/local-data-upload-client.ts
|
|
10
8
|
import { createHash } from "crypto";
|
|
@@ -2,13 +2,11 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
buildCapabilityGatewayUrl,
|
|
4
4
|
callCapabilityApi
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QJQZH5GQ.js";
|
|
6
6
|
import "./chunk-Y74WTIKJ.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-533JK3YX.js";
|
|
11
|
-
import "./chunk-FR2EDAQM.js";
|
|
7
|
+
import "./chunk-ATSM5XAW.js";
|
|
8
|
+
import "./chunk-WZ6YVQSF.js";
|
|
9
|
+
import "./chunk-4P355ZWB.js";
|
|
12
10
|
|
|
13
11
|
// src/commands/memory/index.ts
|
|
14
12
|
import fs from "fs/promises";
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
withAsyncArtifactLifecycle
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RSG4ONOI.js";
|
|
5
5
|
import {
|
|
6
6
|
createCapabilityCommand
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-GJXRF7Y6.js";
|
|
7
|
+
} from "./chunk-JDPEVVHR.js";
|
|
8
|
+
import "./chunk-QJQZH5GQ.js";
|
|
10
9
|
import {
|
|
11
10
|
registerCapabilityGatewayRoute
|
|
12
11
|
} from "./chunk-TKHSULJT.js";
|
|
12
|
+
import "./chunk-CZU3V3DQ.js";
|
|
13
13
|
import "./chunk-Y74WTIKJ.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-533JK3YX.js";
|
|
18
|
-
import "./chunk-FR2EDAQM.js";
|
|
14
|
+
import "./chunk-ATSM5XAW.js";
|
|
15
|
+
import "./chunk-WZ6YVQSF.js";
|
|
16
|
+
import "./chunk-4P355ZWB.js";
|
|
19
17
|
|
|
20
18
|
// src/commands/metadata/shared.ts
|
|
21
19
|
function createCapabilityCommand2(config) {
|
|
@@ -12,13 +12,11 @@ import {
|
|
|
12
12
|
getClaudeConfigDir,
|
|
13
13
|
getSandboxModels,
|
|
14
14
|
postSandboxModelSelection
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BBEFP4SB.js";
|
|
16
16
|
import "./chunk-Y74WTIKJ.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-533JK3YX.js";
|
|
21
|
-
import "./chunk-FR2EDAQM.js";
|
|
17
|
+
import "./chunk-ATSM5XAW.js";
|
|
18
|
+
import "./chunk-WZ6YVQSF.js";
|
|
19
|
+
import "./chunk-4P355ZWB.js";
|
|
22
20
|
|
|
23
21
|
// src/commands/model/index.ts
|
|
24
22
|
import { existsSync, readFileSync } from "fs";
|
package/dist/{personal-semantic-preference-E5NZ56DN.js → personal-semantic-preference-LOF33N5X.js}
RENAMED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createCapabilityCommand
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-GJXRF7Y6.js";
|
|
4
|
+
} from "./chunk-JDPEVVHR.js";
|
|
5
|
+
import "./chunk-QJQZH5GQ.js";
|
|
7
6
|
import {
|
|
8
7
|
registerCapabilityGatewayRoute
|
|
9
8
|
} from "./chunk-TKHSULJT.js";
|
|
9
|
+
import "./chunk-CZU3V3DQ.js";
|
|
10
10
|
import "./chunk-Y74WTIKJ.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-533JK3YX.js";
|
|
15
|
-
import "./chunk-FR2EDAQM.js";
|
|
11
|
+
import "./chunk-ATSM5XAW.js";
|
|
12
|
+
import "./chunk-WZ6YVQSF.js";
|
|
13
|
+
import "./chunk-4P355ZWB.js";
|
|
16
14
|
|
|
17
15
|
// src/commands/personal-semantic-preference/shared.ts
|
|
18
16
|
function createPersonalSemanticPreferenceCommand(config) {
|