@thinkingai/ae-cli 6.0.47 → 6.0.48-workbuddy
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 +93 -36
- package/README.zh.md +93 -36
- package/assets/workbuddy-host-page/thinkingai.png +0 -0
- package/assets/workbuddy-host-page/workbuddy.png +0 -0
- package/bin/ae-cli-workbuddy.js +7 -0
- package/dist/auth-HJG2L6DR.js +910 -0
- package/dist/{capability-RUSV77CO.js → capability-JHYVQNQ4.js} +47 -34
- package/dist/chunk-2BDQB42E.js +15 -0
- package/dist/{chunk-GJXRF7Y6.js → chunk-6MXFJVNP.js} +47 -78
- package/dist/chunk-6ZIQV5GW.js +26 -0
- package/dist/{chunk-KZ6ZHF5J.js → chunk-ARTIHWVD.js} +27 -25
- package/dist/{chunk-6QK7SYYY.js → chunk-DU5MZQFQ.js} +29 -37
- package/dist/{chunk-BVDST5YT.js → chunk-JFOGWBAT.js} +8 -8
- package/dist/{chunk-JYMGHGCE.js → chunk-KSQGGXGA.js} +24 -13
- package/dist/{chunk-FR2EDAQM.js → chunk-NXRKDG6E.js} +89 -3
- package/dist/{chunk-NSIVXKJH.js → chunk-QSO4SA6C.js} +5 -5
- package/dist/{chunk-QL6R6TSK.js → chunk-QYJ252CT.js} +6 -5
- package/dist/{chunk-B5HMQAOM.js → chunk-UL6SJDYE.js} +1 -1
- package/dist/chunk-Y3S2KNNR.js +623 -0
- package/dist/{chunk-KEWVSO64.js → chunk-ZCM47ROU.js} +5 -16
- package/dist/{community-report-client-6OL6GBQW.js → community-report-client-QE4RC2XG.js} +2 -4
- package/dist/{config-XNMACCKX.js → config-XMRP5NDA.js} +8 -9
- package/dist/{data-integration-4NZGZ45E.js → data-integration-SGRITHJS.js} +19 -18
- package/dist/index.js +53 -80
- package/dist/{local-data-upload-client-EFHDLXFG.js → local-data-upload-client-LMVS7YAR.js} +2 -4
- package/dist/{memory-HBJQ2GC5.js → memory-5ZC73XBC.js} +4 -6
- package/dist/{metadata-PGDJE5RQ.js → metadata-LBX6O24P.js} +7 -9
- package/dist/{model-BHLJ2QMT.js → model-CRDIVYN5.js} +4 -6
- package/dist/{personal-semantic-preference-E5NZ56DN.js → personal-semantic-preference-7FVUTJZF.js} +6 -8
- package/dist/{sync-MUWPRM5I.js → sync-VVNDHU7R.js} +9 -11
- package/dist/{te-agent-WQZTMEK4.js → te-agent-4T5TFHD6.js} +393 -90
- package/dist/{te-analysis-YWCSSLYL.js → te-analysis-TPYFOIFD.js} +97 -31
- package/dist/{te-community-BNE6KREL.js → te-community-PWOTHSEC.js} +9 -32
- package/dist/{te-dataops-TXLKM2W6.js → te-dataops-ZJV5QVJU.js} +19 -20
- package/dist/{te-engage-VEW4CJHK.js → te-engage-WVHBZAXH.js} +11 -13
- package/dist/{te-kb-BUD6N3NI.js → te-kb-PNM2ZKBP.js} +595 -85
- package/dist/{te-system-44LZJDTQ.js → te-system-MRCMLAWW.js} +6 -8
- package/dist/{te-team-XMP47YXE.js → te-team-Y36TG6AQ.js} +6 -8
- package/dist/{update-UODFOZ4P.js → update-UNKCZ5U5.js} +7 -8
- package/package.json +15 -10
- 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 +11 -2
- 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 +7 -7
- 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/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/tracking-plan.md +1 -1
- package/skills/ae-data-integration/references/transform.md +1 -1
- package/skills/ae-data-integration/references/ue-mapping.md +5 -2
- package/skills/ae-data-integration/references/ue-routing.md +17 -1
- package/skills/ae-generate-tracking-plan/SKILL.md +25 -13
- package/skills/ae-generate-tracking-plan/references/business-dimension-mapping.md +1 -1
- 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-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-QPEVVBKT.js +0 -465
- 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-ZCM47ROU.js";
|
|
14
|
+
import "./chunk-Y3S2KNNR.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-ARTIHWVD.js";
|
|
25
|
+
import "./chunk-NXRKDG6E.js";
|
|
27
26
|
|
|
28
27
|
// src/commands/config.ts
|
|
29
28
|
import * as readline2 from "readline";
|
|
@@ -5,18 +5,15 @@ import {
|
|
|
5
5
|
require_worksheet_reader,
|
|
6
6
|
validateAndFix,
|
|
7
7
|
validateDraft
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import
|
|
11
|
-
getConfigDir
|
|
12
|
-
} from "./chunk-KZ6ZHF5J.js";
|
|
8
|
+
} from "./chunk-QYJ252CT.js";
|
|
9
|
+
import "./chunk-UL6SJDYE.js";
|
|
10
|
+
import "./chunk-ARTIHWVD.js";
|
|
13
11
|
import {
|
|
14
12
|
CliValidationError,
|
|
15
|
-
LocalDataUploadError
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./chunk-FR2EDAQM.js";
|
|
13
|
+
LocalDataUploadError,
|
|
14
|
+
__toESM,
|
|
15
|
+
getConfigDir
|
|
16
|
+
} from "./chunk-NXRKDG6E.js";
|
|
20
17
|
|
|
21
18
|
// src/commands/data-integration/inspect.ts
|
|
22
19
|
import { basename as basename3 } from "path";
|
|
@@ -1686,6 +1683,7 @@ var MAPPING_VERSION = "ae-data-integration-mapping/v1";
|
|
|
1686
1683
|
// src/commands/data-integration/mapping.ts
|
|
1687
1684
|
var VALID_PROPERTY_NAME = /^[a-z][a-z0-9_]{0,49}$/;
|
|
1688
1685
|
var VALID_CHILD_PROPERTY_NAME = /^[a-z][a-z0-9_]{0,49}(\.[a-z][a-z0-9_]{0,49})+$/;
|
|
1686
|
+
var VALID_EVENT_NAME = /^[A-Za-z][A-Za-z0-9_]{0,49}$/;
|
|
1689
1687
|
var FLATTEN_SUPPORTED_FORMATS = ["csv", "tsv", "json", "jsonl", "xls", "xlsx"];
|
|
1690
1688
|
var SKIP_ROWS_SUPPORTED_FORMATS = ["csv", "tsv", "xls", "xlsx"];
|
|
1691
1689
|
var XLSX_STRUCTURE_SUPPORTED_FORMATS = ["xlsx"];
|
|
@@ -1745,7 +1743,7 @@ function validateMapping(value, options) {
|
|
|
1745
1743
|
if (value.mode !== "user_set" && !value.event_name_field && !value.default_event_name) {
|
|
1746
1744
|
throw mappingError("Track mappings require an event field or default event name.");
|
|
1747
1745
|
}
|
|
1748
|
-
if (value.default_event_name && !
|
|
1746
|
+
if (value.default_event_name && !VALID_EVENT_NAME.test(value.default_event_name)) {
|
|
1749
1747
|
throw mappingError("The default event name is not a legal AE event name.");
|
|
1750
1748
|
}
|
|
1751
1749
|
if (!Array.isArray(value.properties)) throw mappingError("Mapping properties must be an array.");
|
|
@@ -1779,7 +1777,7 @@ function validateMapping(value, options) {
|
|
|
1779
1777
|
if (value.event_meta !== void 0) {
|
|
1780
1778
|
if (!isRecord(value.event_meta)) throw mappingError("event_meta must be an object keyed by AE event name.");
|
|
1781
1779
|
for (const [name, meta] of Object.entries(value.event_meta)) {
|
|
1782
|
-
if (!
|
|
1780
|
+
if (!VALID_EVENT_NAME.test(name) || !isRecord(meta) || meta.desc !== void 0 && (typeof meta.desc !== "string" || !meta.desc.trim() || meta.desc.length > 200) || meta.tag !== void 0 && (typeof meta.tag !== "string" || !meta.tag.trim() || meta.tag.length > 64)) {
|
|
1783
1781
|
throw mappingError("event_meta entries need a legal AE event name and non-empty desc/tag strings.");
|
|
1784
1782
|
}
|
|
1785
1783
|
}
|
|
@@ -1792,7 +1790,7 @@ function validateMapping(value, options) {
|
|
|
1792
1790
|
if (!isStringMap(map)) throw mappingError(`value_mapping.${key} must map strings to strings.`);
|
|
1793
1791
|
if (key === "event_name") {
|
|
1794
1792
|
for (const target of Object.values(map)) {
|
|
1795
|
-
if (!
|
|
1793
|
+
if (!VALID_EVENT_NAME.test(target)) {
|
|
1796
1794
|
throw mappingError("value_mapping.event_name values must be legal AE event names.");
|
|
1797
1795
|
}
|
|
1798
1796
|
}
|
|
@@ -1876,6 +1874,9 @@ function validateMapping(value, options) {
|
|
|
1876
1874
|
function isValidAeName(value) {
|
|
1877
1875
|
return VALID_PROPERTY_NAME.test(value);
|
|
1878
1876
|
}
|
|
1877
|
+
function isValidEventName(value) {
|
|
1878
|
+
return VALID_EVENT_NAME.test(value);
|
|
1879
|
+
}
|
|
1879
1880
|
function sourceColumns(mapping) {
|
|
1880
1881
|
const columns = /* @__PURE__ */ new Set();
|
|
1881
1882
|
const flattenOut = new Set(Object.keys(mapping.flatten_rules ?? {}));
|
|
@@ -3145,7 +3146,7 @@ function splitHeaders(raw) {
|
|
|
3145
3146
|
// src/commands/data-integration/plan.ts
|
|
3146
3147
|
import { writeFile } from "fs/promises";
|
|
3147
3148
|
var VALID_LOCALES = /* @__PURE__ */ new Set(["zh", "en", "ja", "ko"]);
|
|
3148
|
-
var EVENT_NAME_RE = /^[
|
|
3149
|
+
var EVENT_NAME_RE = /^[A-Za-z][A-Za-z0-9_]*$/;
|
|
3149
3150
|
function toPropType(type) {
|
|
3150
3151
|
switch (type) {
|
|
3151
3152
|
case "number":
|
|
@@ -3222,7 +3223,7 @@ function resolveEventNames(options) {
|
|
|
3222
3223
|
if (!EVENT_NAME_RE.test(name)) {
|
|
3223
3224
|
throw new CliValidationError(`The event name "${name}" is not a legal AE event name.`, {
|
|
3224
3225
|
code: "LOCAL_DATA_PLAN_INVALID_EVENT_NAME",
|
|
3225
|
-
hint: "Event names must match ^[
|
|
3226
|
+
hint: "Event names must match ^[A-Za-z][A-Za-z0-9_]*$.",
|
|
3226
3227
|
location: { field: "event-name" }
|
|
3227
3228
|
});
|
|
3228
3229
|
}
|
|
@@ -3593,7 +3594,7 @@ function convertRow(row, rowNumber, mapping, now) {
|
|
|
3593
3594
|
if (recordType === "track") {
|
|
3594
3595
|
const rawEvent = String(stripQuotes(mapping.event_name_field ? row[mapping.event_name_field] ?? "" : mapping.default_event_name ?? ""));
|
|
3595
3596
|
eventName = mapping.value_mapping?.event_name && mapping.value_mapping.event_name[rawEvent] !== void 0 ? mapping.value_mapping.event_name[rawEvent] : rawEvent;
|
|
3596
|
-
if (!
|
|
3597
|
+
if (!isValidEventName(eventName)) {
|
|
3597
3598
|
errors.push({ code: "INVALID_EVENT_NAME", field: mapping.event_name_field });
|
|
3598
3599
|
}
|
|
3599
3600
|
}
|
|
@@ -4440,13 +4441,13 @@ import { dirname as dirname2, join as join3, resolve as resolve3 } from "path";
|
|
|
4440
4441
|
import { tmpdir } from "os";
|
|
4441
4442
|
|
|
4442
4443
|
// src/commands/data-integration/archive.ts
|
|
4443
|
-
import
|
|
4444
|
+
import archiver from "archiver";
|
|
4444
4445
|
import { createWriteStream as createWriteStream2, readdirSync as readdirSync2, statSync as statSync4 } from "fs";
|
|
4445
4446
|
import { join as join2, relative, sep } from "path";
|
|
4446
4447
|
async function zipPackage(dir, zipPath) {
|
|
4447
4448
|
await new Promise((resolvePromise, rejectPromise) => {
|
|
4448
4449
|
const output = createWriteStream2(zipPath, { mode: 384 });
|
|
4449
|
-
const zip =
|
|
4450
|
+
const zip = archiver("zip", { zlib: { level: 9 } });
|
|
4450
4451
|
output.on("close", resolvePromise);
|
|
4451
4452
|
output.on("error", rejectPromise);
|
|
4452
4453
|
zip.on("error", rejectPromise);
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
requiresConfirmation
|
|
4
|
+
} from "./chunk-AMBFK2K3.js";
|
|
2
5
|
import {
|
|
3
6
|
allHeaderNames,
|
|
4
7
|
allSheetNames,
|
|
@@ -11,52 +14,46 @@ import {
|
|
|
11
14
|
validateAndFix,
|
|
12
15
|
validateDraft,
|
|
13
16
|
writeDraftXlsx
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QYJ252CT.js";
|
|
18
|
+
import "./chunk-UL6SJDYE.js";
|
|
15
19
|
import {
|
|
16
20
|
getLocalCliPackageInfo
|
|
17
21
|
} from "./chunk-E2JKXMVO.js";
|
|
18
22
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-B5HMQAOM.js";
|
|
23
|
+
resolveHost
|
|
24
|
+
} from "./chunk-2BDQB42E.js";
|
|
22
25
|
import {
|
|
23
26
|
TeAgentApiError,
|
|
24
27
|
TeAgentCredentialsError
|
|
25
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-DU5MZQFQ.js";
|
|
29
|
+
import {
|
|
30
|
+
CapabilityGatewayError,
|
|
31
|
+
executeCapability,
|
|
32
|
+
uploadInputFileBytes
|
|
33
|
+
} from "./chunk-6MXFJVNP.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-ZCM47ROU.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-Y3S2KNNR.js";
|
|
46
45
|
import {
|
|
47
46
|
getActiveHost,
|
|
48
|
-
getConfigDir,
|
|
49
47
|
safeJsonParse
|
|
50
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-ARTIHWVD.js";
|
|
51
49
|
import {
|
|
52
50
|
CliValidationError,
|
|
53
51
|
CommunityReportError,
|
|
54
52
|
LocalDataUploadError,
|
|
55
|
-
PermissionError
|
|
56
|
-
|
|
57
|
-
import {
|
|
53
|
+
PermissionError,
|
|
54
|
+
getConfigDir,
|
|
58
55
|
logger
|
|
59
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-NXRKDG6E.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
|
}
|
|
@@ -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-QE4RC2XG.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-LMVS7YAR.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,62 @@ 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-TPYFOIFD.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-WVHBZAXH.js");
|
|
2362
2335
|
commands.push(...engage.default);
|
|
2363
2336
|
} catch {
|
|
2364
2337
|
}
|
|
2365
2338
|
try {
|
|
2366
|
-
const community = await import("./te-community-
|
|
2339
|
+
const community = await import("./te-community-PWOTHSEC.js");
|
|
2367
2340
|
commands.push(...community.default);
|
|
2368
2341
|
} catch {
|
|
2369
2342
|
}
|
|
2370
2343
|
try {
|
|
2371
|
-
const dataops = await import("./te-dataops-
|
|
2344
|
+
const dataops = await import("./te-dataops-ZJV5QVJU.js");
|
|
2372
2345
|
commands.push(...dataops.default);
|
|
2373
2346
|
} catch {
|
|
2374
2347
|
}
|
|
2375
2348
|
try {
|
|
2376
|
-
const teKb = await import("./te-kb-
|
|
2349
|
+
const teKb = await import("./te-kb-PNM2ZKBP.js");
|
|
2377
2350
|
commands.push(...teKb.default);
|
|
2378
2351
|
} catch {
|
|
2379
2352
|
}
|
|
2380
2353
|
try {
|
|
2381
|
-
const teTeam = await import("./te-team-
|
|
2354
|
+
const teTeam = await import("./te-team-Y36TG6AQ.js");
|
|
2382
2355
|
commands.push(...teTeam.default);
|
|
2383
2356
|
} catch {
|
|
2384
2357
|
}
|
|
2385
2358
|
try {
|
|
2386
|
-
const teAgent = await import("./te-agent-
|
|
2359
|
+
const teAgent = await import("./te-agent-4T5TFHD6.js");
|
|
2387
2360
|
commands.push(...teAgent.default);
|
|
2388
2361
|
} catch {
|
|
2389
2362
|
}
|
|
2390
2363
|
try {
|
|
2391
|
-
const memory = await import("./memory-
|
|
2364
|
+
const memory = await import("./memory-5ZC73XBC.js");
|
|
2392
2365
|
commands.push(...memory.default);
|
|
2393
2366
|
} catch {
|
|
2394
2367
|
}
|
|
2395
2368
|
try {
|
|
2396
|
-
const teSystem = await import("./te-system-
|
|
2369
|
+
const teSystem = await import("./te-system-MRCMLAWW.js");
|
|
2397
2370
|
commands.push(...teSystem.default);
|
|
2398
2371
|
} catch {
|
|
2399
2372
|
}
|
|
2400
2373
|
try {
|
|
2401
|
-
const metadata = await import("./metadata-
|
|
2374
|
+
const metadata = await import("./metadata-LBX6O24P.js");
|
|
2402
2375
|
commands.push(...metadata.default);
|
|
2403
2376
|
} catch {
|
|
2404
2377
|
}
|
|
2405
2378
|
try {
|
|
2406
|
-
const personalSemanticPreference = await import("./personal-semantic-preference-
|
|
2379
|
+
const personalSemanticPreference = await import("./personal-semantic-preference-7FVUTJZF.js");
|
|
2407
2380
|
commands.push(...personalSemanticPreference.default);
|
|
2408
2381
|
} catch {
|
|
2409
2382
|
}
|
|
2410
2383
|
try {
|
|
2411
|
-
const dataIntegration = await import("./data-integration-
|
|
2384
|
+
const dataIntegration = await import("./data-integration-SGRITHJS.js");
|
|
2412
2385
|
commands.push(...dataIntegration.default);
|
|
2413
2386
|
} catch {
|
|
2414
2387
|
}
|
|
@@ -2416,42 +2389,42 @@ async function loadCommands() {
|
|
|
2416
2389
|
}
|
|
2417
2390
|
async function registerAuthCommands() {
|
|
2418
2391
|
try {
|
|
2419
|
-
const { registerAuth } = await import("./auth-
|
|
2392
|
+
const { registerAuth } = await import("./auth-HJG2L6DR.js");
|
|
2420
2393
|
registerAuth(program);
|
|
2421
2394
|
} catch {
|
|
2422
2395
|
}
|
|
2423
2396
|
}
|
|
2424
2397
|
async function registerConfigCommands() {
|
|
2425
2398
|
try {
|
|
2426
|
-
const { registerConfig } = await import("./config-
|
|
2399
|
+
const { registerConfig } = await import("./config-XMRP5NDA.js");
|
|
2427
2400
|
registerConfig(program);
|
|
2428
2401
|
} catch {
|
|
2429
2402
|
}
|
|
2430
2403
|
}
|
|
2431
2404
|
async function registerCapabilityCommands() {
|
|
2432
2405
|
try {
|
|
2433
|
-
const { registerCapability } = await import("./capability-
|
|
2406
|
+
const { registerCapability } = await import("./capability-JHYVQNQ4.js");
|
|
2434
2407
|
registerCapability(program);
|
|
2435
2408
|
} catch {
|
|
2436
2409
|
}
|
|
2437
2410
|
}
|
|
2438
2411
|
async function registerSyncCommand() {
|
|
2439
2412
|
try {
|
|
2440
|
-
const { registerSync } = await import("./sync-
|
|
2413
|
+
const { registerSync } = await import("./sync-VVNDHU7R.js");
|
|
2441
2414
|
registerSync(program);
|
|
2442
2415
|
} catch {
|
|
2443
2416
|
}
|
|
2444
2417
|
}
|
|
2445
2418
|
async function registerModelCommand() {
|
|
2446
2419
|
try {
|
|
2447
|
-
const { registerModel } = await import("./model-
|
|
2420
|
+
const { registerModel } = await import("./model-CRDIVYN5.js");
|
|
2448
2421
|
registerModel(program);
|
|
2449
2422
|
} catch {
|
|
2450
2423
|
}
|
|
2451
2424
|
}
|
|
2452
2425
|
async function registerUpdateCommand() {
|
|
2453
2426
|
try {
|
|
2454
|
-
const { registerUpdate } = await import("./update-
|
|
2427
|
+
const { registerUpdate } = await import("./update-UNKCZ5U5.js");
|
|
2455
2428
|
registerUpdate(program);
|
|
2456
2429
|
} catch {
|
|
2457
2430
|
}
|
|
@@ -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-NXRKDG6E.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-6MXFJVNP.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-Y3S2KNNR.js";
|
|
8
|
+
import "./chunk-ARTIHWVD.js";
|
|
9
|
+
import "./chunk-NXRKDG6E.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-JFOGWBAT.js";
|
|
5
5
|
import {
|
|
6
6
|
createCapabilityCommand
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-KEWVSO64.js";
|
|
9
|
-
import "./chunk-GJXRF7Y6.js";
|
|
7
|
+
} from "./chunk-QSO4SA6C.js";
|
|
10
8
|
import {
|
|
11
9
|
registerCapabilityGatewayRoute
|
|
12
10
|
} from "./chunk-TKHSULJT.js";
|
|
11
|
+
import "./chunk-6MXFJVNP.js";
|
|
12
|
+
import "./chunk-ZCM47ROU.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-Y3S2KNNR.js";
|
|
15
|
+
import "./chunk-ARTIHWVD.js";
|
|
16
|
+
import "./chunk-NXRKDG6E.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-DU5MZQFQ.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-Y3S2KNNR.js";
|
|
18
|
+
import "./chunk-ARTIHWVD.js";
|
|
19
|
+
import "./chunk-NXRKDG6E.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-7FVUTJZF.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-KEWVSO64.js";
|
|
6
|
-
import "./chunk-GJXRF7Y6.js";
|
|
4
|
+
} from "./chunk-QSO4SA6C.js";
|
|
7
5
|
import {
|
|
8
6
|
registerCapabilityGatewayRoute
|
|
9
7
|
} from "./chunk-TKHSULJT.js";
|
|
8
|
+
import "./chunk-6MXFJVNP.js";
|
|
9
|
+
import "./chunk-ZCM47ROU.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-Y3S2KNNR.js";
|
|
12
|
+
import "./chunk-ARTIHWVD.js";
|
|
13
|
+
import "./chunk-NXRKDG6E.js";
|
|
16
14
|
|
|
17
15
|
// src/commands/personal-semantic-preference/shared.ts
|
|
18
16
|
function createPersonalSemanticPreferenceCommand(config) {
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
splitPushableMcps,
|
|
12
12
|
writeSkillManifestEntries
|
|
13
13
|
} from "./chunk-JQ3ENZZH.js";
|
|
14
|
+
import {
|
|
15
|
+
assertSkillDocumentSize
|
|
16
|
+
} from "./chunk-T6OSFQZD.js";
|
|
14
17
|
import {
|
|
15
18
|
MultiselectCancelled,
|
|
16
19
|
promptMultiselect,
|
|
17
20
|
promptSingleSelect
|
|
18
21
|
} from "./chunk-7K24F7T2.js";
|
|
19
|
-
import {
|
|
20
|
-
assertSkillDocumentSize
|
|
21
|
-
} from "./chunk-T6OSFQZD.js";
|
|
22
22
|
import {
|
|
23
23
|
require_lib
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-UL6SJDYE.js";
|
|
25
25
|
import {
|
|
26
26
|
TeAgentApiError,
|
|
27
27
|
TeAgentCredentialsError,
|
|
@@ -29,18 +29,16 @@ import {
|
|
|
29
29
|
postSandboxSyncPull,
|
|
30
30
|
postToMainApp,
|
|
31
31
|
uploadToMainApp
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-DU5MZQFQ.js";
|
|
33
33
|
import {
|
|
34
34
|
printError
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ZCM47ROU.js";
|
|
36
36
|
import "./chunk-Y74WTIKJ.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-KZ6ZHF5J.js";
|
|
40
|
-
import "./chunk-533JK3YX.js";
|
|
37
|
+
import "./chunk-Y3S2KNNR.js";
|
|
38
|
+
import "./chunk-ARTIHWVD.js";
|
|
41
39
|
import {
|
|
42
40
|
__toESM
|
|
43
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-NXRKDG6E.js";
|
|
44
42
|
|
|
45
43
|
// src/commands/sync/index.ts
|
|
46
44
|
var import_jszip = __toESM(require_lib(), 1);
|