@thinkingai/ae-cli 6.0.56 → 6.0.58
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 +12 -4
- package/README.zh.md +12 -4
- package/bin/ae-cli.js +5 -0
- package/bin/runtime-capabilities.json +5 -0
- package/cli-installation-guide.md +24 -3
- package/dist/{auth-U7MNUUEF.js → auth-A5OO4VS4.js} +30 -12
- package/dist/{automation-K32V2NKP.js → automation-FD2QZUP6.js} +6 -6
- package/dist/{capability-VV7RHB3B.js → capability-SKI4GHF4.js} +48 -20
- package/dist/{chunk-P6VFCH3P.js → chunk-2F64AZYH.js} +2 -2
- package/dist/{chunk-LMCYSVVA.js → chunk-4PSTYEG5.js} +50 -41
- package/dist/{chunk-KHS64JZQ.js → chunk-72NJKS7O.js} +4 -4
- package/dist/{chunk-GI5BMEZO.js → chunk-AWVZTN2B.js} +1 -1
- package/dist/{chunk-UUD5RB36.js → chunk-E25OSZLJ.js} +3 -3
- package/dist/{chunk-W2PTY5NN.js → chunk-EEARZNHE.js} +3 -3
- package/dist/chunk-GBSACKFB.js +2283 -0
- package/dist/{chunk-3TQA5RXE.js → chunk-HQCY3QCA.js} +6 -4
- package/dist/{chunk-T44M3PLZ.js → chunk-JEUXDY3B.js} +1 -1
- package/dist/{chunk-2UWS5CUP.js → chunk-JSBLCLFE.js} +3 -3
- package/dist/chunk-K2Z7QHDR.js +132 -0
- package/dist/{chunk-QSAR3GHY.js → chunk-OAWPT7VP.js} +2 -2
- package/dist/{chunk-2IYIYSUO.js → chunk-QVRIDN42.js} +2 -2
- package/dist/{chunk-F6NIPIT5.js → chunk-QWSA3EOD.js} +35 -14
- package/dist/{chunk-P7KL7IOH.js → chunk-SOSFRU3O.js} +2 -2
- package/dist/{chunk-MXV3PYC3.js → chunk-UYJMEHAF.js} +50 -12
- package/dist/{chunk-JJJIP2XQ.js → chunk-VDICGXCY.js} +2 -2
- package/dist/chunk-WMDO53YK.js +222 -0
- package/dist/{chunk-X7DRLE62.js → chunk-YVG6QD3V.js} +1 -1
- package/dist/{chunk-ZW4VMY5H.js → chunk-Z3Q2AEIN.js} +152 -98
- package/dist/{community-report-client-S2K3A3Q6.js → community-report-client-TJVCLZ3K.js} +1 -1
- package/dist/compat-check-WFEKVLTH.js +32 -0
- package/dist/{config-ASSAAIOI.js → config-U4I7X25P.js} +38 -6
- package/dist/{context-6RWLVOM5.js → context-CDB5H5PD.js} +4 -4
- package/dist/{data-integration-EXSUPUDZ.js → data-integration-QE37EQ3A.js} +207 -24
- package/dist/{evaluation-5YT4QLCL.js → evaluation-LR4YDYWL.js} +4 -4
- package/dist/index.js +291 -71
- package/dist/{local-data-upload-client-7HCPGIS3.js → local-data-upload-client-KCMG6J62.js} +1 -1
- package/dist/{memory-VCYLVPMI.js → memory-SNFR5M23.js} +6 -6
- package/dist/{metadata-TIWIOFTU.js → metadata-6QM6EED5.js} +16 -8
- package/dist/{model-DPJHSD73.js → model-KEVCEXWD.js} +4 -4
- package/dist/{personal-semantic-preference-SBKU2LOK.js → personal-semantic-preference-7VXQPP2N.js} +7 -6
- package/dist/{project-semantic-SKNWLH3I.js → project-semantic-PSEPYH2L.js} +7 -6
- package/dist/{sync-7PP6KQ75.js → sync-22ACDK5Z.js} +8 -7
- package/dist/{te-agent-L2BYNPHM.js → te-agent-BJ36B4QI.js} +11 -7
- package/dist/{te-analysis-RJB6VJC4.js → te-analysis-WQ6D6YG4.js} +179 -27
- package/dist/{te-community-QN3WMPNT.js → te-community-VRWMFGI6.js} +720 -228
- package/dist/{te-dataops-UKD2XN3E.js → te-dataops-YTLFTTW7.js} +6 -5
- package/dist/{te-engage-KPTN4N2U.js → te-engage-V2QW7TIC.js} +7 -6
- package/dist/{te-kb-SFZI3W5T.js → te-kb-4AQLISDR.js} +407 -83
- package/dist/{te-system-IE7NCKC3.js → te-system-CYWSK3UN.js} +6 -6
- package/dist/{te-team-4KHCFM2I.js → te-team-6ELNGBWT.js} +7 -6
- package/dist/{things-7JJUVAWL.js → things-HFWLGCUH.js} +7 -7
- package/dist/{update-AX66IFMJ.js → update-3CRVVHV5.js} +11 -7
- package/dist/{workspace-Q5NMEKEN.js → workspace-2CKQX2XL.js} +6 -6
- package/package.json +17 -7
- package/skills/ae-agent/SKILL.md +1 -1
- package/skills/ae-agent/references/resource-package.md +4 -0
- package/skills/ae-analysis/SKILL.md +14 -10
- package/skills/ae-analysis/references/agent_review_preflight.md +52 -11
- package/skills/ae-analysis/references/agent_review_priorities_comparisons.md +5 -3
- package/skills/ae-analysis/references/agent_review_submit_to_page.md +57 -25
- package/skills/ae-analysis/references/command_index.md +7 -3
- package/skills/ae-analysis/references/governance_recommendation_export.md +31 -17
- package/skills/ae-analysis/references/governance_recommendation_run_update.md +13 -0
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +9 -1
- package/skills/ae-analysis/references/scenario_append.md +6 -0
- package/skills/ae-analysis/references/scenario_begin.md +11 -0
- package/skills/ae-analysis/references/scenario_collect.md +10 -2
- package/skills/ae-analysis/references/scenario_evaluation.md +6 -18
- package/skills/ae-analysis/references/scenario_get.md +15 -0
- package/skills/ae-analysis/references/scenario_list.md +64 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +14 -1
- package/skills/ae-community/SKILL.md +77 -27
- package/skills/ae-community/references/community-analyzing-theme-comment.md +10 -8
- package/skills/ae-community/references/community-data-quality.md +68 -0
- package/skills/ae-community/references/community-query-evidence.md +85 -0
- package/skills/ae-community/references/community-scenario-capabilities.md +137 -0
- package/skills/ae-community/references/community-weekly-report.md +6 -3
- package/skills/ae-community/references/get_channel_info.md +7 -4
- package/skills/ae-community/references/get_comment_tag_analysis.md +3 -3
- package/skills/ae-community/references/get_comments_summary.md +4 -4
- package/skills/ae-community/references/get_corpus_tags.md +3 -3
- package/skills/ae-community/references/get_daily_summary.md +3 -3
- package/skills/ae-community/references/get_hot_topics.md +3 -3
- package/skills/ae-community/references/get_livestream_analysis.md +3 -3
- package/skills/ae-community/references/get_livestream_detail.md +4 -4
- package/skills/ae-community/references/get_livestream_list.md +3 -3
- package/skills/ae-community/references/get_livestream_overview.md +3 -3
- package/skills/ae-community/references/get_livestream_room_metrics.md +3 -3
- package/skills/ae-community/references/get_livestream_rooms.md +3 -3
- package/skills/ae-community/references/get_overview_metrics.md +3 -3
- package/skills/ae-community/references/get_post_detail.md +4 -4
- package/skills/ae-community/references/get_risk_content.md +5 -5
- package/skills/ae-community/references/get_sentiment_overview.md +4 -4
- package/skills/ae-community/references/get_tag_trends.md +3 -3
- package/skills/ae-community/references/get_topic_detail.md +3 -3
- package/skills/ae-community/references/list_sources.md +28 -0
- package/skills/ae-community/references/list_spaces.md +39 -0
- package/skills/ae-community/references/search_posts.md +21 -7
- package/skills/ae-data-integration/SKILL.md +6 -4
- package/skills/ae-data-integration/references/error-handling.md +1 -0
- package/skills/ae-data-integration/references/handoff.md +1 -1
- package/skills/ae-data-integration/references/sink-upload.md +11 -0
- package/skills/ae-data-integration/references/source-inspect.md +2 -1
- package/skills/ae-data-integration/references/transform.md +1 -1
- package/skills/ae-data-integration/references/ue-mapping.md +1 -1
- package/skills/ae-kb/SKILL.md +37 -8
- package/skills/ae-kb/references/publication.md +81 -0
- package/skills/ae-kb/references/query-workflow.md +20 -6
- package/skills/ae-kb-discovery/SKILL.md +15 -6
- package/skills/ae-metadata/SKILL.md +2 -2
- package/skills/ae-metadata/references/metadata_data_table_get.md +35 -0
- package/dist/chunk-ELCR235M.js +0 -1429
|
@@ -3,7 +3,43 @@ import {
|
|
|
3
3
|
logger,
|
|
4
4
|
normalizeUrl,
|
|
5
5
|
readExternalCliToken
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Z3Q2AEIN.js";
|
|
7
|
+
|
|
8
|
+
// src/core/sandbox-runtime.ts
|
|
9
|
+
import { homedir } from "os";
|
|
10
|
+
import { join } from "path";
|
|
11
|
+
import fs from "fs";
|
|
12
|
+
var LINUX_SANDBOX_RUNTIME_ROOT = "/home/ta/te_agent_ta";
|
|
13
|
+
function getDefaultSandboxRuntimeRoot() {
|
|
14
|
+
if (process.platform === "linux") {
|
|
15
|
+
return LINUX_SANDBOX_RUNTIME_ROOT;
|
|
16
|
+
}
|
|
17
|
+
return homedir();
|
|
18
|
+
}
|
|
19
|
+
function getSandboxRuntimeRoot() {
|
|
20
|
+
return process.env.SANDBOX_RUNTIME_ROOT || getDefaultSandboxRuntimeRoot();
|
|
21
|
+
}
|
|
22
|
+
function getSandboxAeConfigDir() {
|
|
23
|
+
return join(getSandboxRuntimeRoot(), ".ae-config");
|
|
24
|
+
}
|
|
25
|
+
function getSandboxCliTokenFilePath() {
|
|
26
|
+
return join(getSandboxAeConfigDir(), "cli-token.json");
|
|
27
|
+
}
|
|
28
|
+
function isAeSandboxRuntime() {
|
|
29
|
+
if (process.env.SANDBOX_RUNTIME_ROOT) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
if (process.platform !== "linux") {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
try {
|
|
36
|
+
if (fs.existsSync(getSandboxCliTokenFilePath())) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
} catch {
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
7
43
|
|
|
8
44
|
// src/core/config.ts
|
|
9
45
|
import fs3 from "fs";
|
|
@@ -11,28 +47,29 @@ import path from "path";
|
|
|
11
47
|
import os from "os";
|
|
12
48
|
|
|
13
49
|
// src/core/json-utils.ts
|
|
14
|
-
import
|
|
50
|
+
import fs2 from "fs";
|
|
15
51
|
import { createRequire } from "module";
|
|
16
52
|
var require2 = createRequire(import.meta.url);
|
|
17
53
|
var JSONbig = require2("json-bigint");
|
|
18
54
|
var jsonParser = JSONbig({ storeAsString: true });
|
|
55
|
+
var requestJsonStringifier = JSONbig({ useNativeBigInt: true });
|
|
19
56
|
var INTEGER_TOKEN = /^-?(?:0|[1-9]\d*)$/;
|
|
20
|
-
function normalizeParsedNumbers(lossless, native) {
|
|
57
|
+
function normalizeParsedNumbers(lossless, native, useBigInt = false) {
|
|
21
58
|
if (typeof lossless === "string" && typeof native === "number") {
|
|
22
59
|
if (INTEGER_TOKEN.test(lossless) && !Number.isSafeInteger(native)) {
|
|
23
|
-
return lossless;
|
|
60
|
+
return useBigInt ? BigInt(lossless) : lossless;
|
|
24
61
|
}
|
|
25
62
|
return native;
|
|
26
63
|
}
|
|
27
64
|
if (Array.isArray(lossless) && Array.isArray(native)) {
|
|
28
65
|
for (let index = 0; index < lossless.length; index++) {
|
|
29
|
-
lossless[index] = normalizeParsedNumbers(lossless[index], native[index]);
|
|
66
|
+
lossless[index] = normalizeParsedNumbers(lossless[index], native[index], useBigInt);
|
|
30
67
|
}
|
|
31
68
|
return lossless;
|
|
32
69
|
}
|
|
33
70
|
if (lossless !== null && native !== null && typeof lossless === "object" && typeof native === "object") {
|
|
34
71
|
for (const key of Object.keys(lossless)) {
|
|
35
|
-
lossless[key] = normalizeParsedNumbers(lossless[key], native[key]);
|
|
72
|
+
lossless[key] = normalizeParsedNumbers(lossless[key], native[key], useBigInt);
|
|
36
73
|
}
|
|
37
74
|
}
|
|
38
75
|
return lossless;
|
|
@@ -42,44 +79,14 @@ function safeJsonParse(text) {
|
|
|
42
79
|
return normalizeParsedNumbers(lossless, JSON.parse(text));
|
|
43
80
|
}
|
|
44
81
|
function safeReadJsonFile(filePath) {
|
|
45
|
-
const content =
|
|
82
|
+
const content = fs2.readFileSync(filePath, "utf-8");
|
|
46
83
|
return safeJsonParse(content);
|
|
47
84
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
import { homedir } from "os";
|
|
51
|
-
import { join } from "path";
|
|
52
|
-
import fs2 from "fs";
|
|
53
|
-
var LINUX_SANDBOX_RUNTIME_ROOT = "/home/ta/te_agent_ta";
|
|
54
|
-
function getDefaultSandboxRuntimeRoot() {
|
|
55
|
-
if (process.platform === "linux") {
|
|
56
|
-
return LINUX_SANDBOX_RUNTIME_ROOT;
|
|
57
|
-
}
|
|
58
|
-
return homedir();
|
|
59
|
-
}
|
|
60
|
-
function getSandboxRuntimeRoot() {
|
|
61
|
-
return process.env.SANDBOX_RUNTIME_ROOT || getDefaultSandboxRuntimeRoot();
|
|
85
|
+
function stringifyJsonRequest(obj) {
|
|
86
|
+
return requestJsonStringifier.stringify(obj);
|
|
62
87
|
}
|
|
63
|
-
function
|
|
64
|
-
return
|
|
65
|
-
}
|
|
66
|
-
function getSandboxCliTokenFilePath() {
|
|
67
|
-
return join(getSandboxAeConfigDir(), "cli-token.json");
|
|
68
|
-
}
|
|
69
|
-
function isAeSandboxRuntime() {
|
|
70
|
-
if (process.env.SANDBOX_RUNTIME_ROOT) {
|
|
71
|
-
return true;
|
|
72
|
-
}
|
|
73
|
-
if (process.platform !== "linux") {
|
|
74
|
-
return false;
|
|
75
|
-
}
|
|
76
|
-
try {
|
|
77
|
-
if (fs2.existsSync(getSandboxCliTokenFilePath())) {
|
|
78
|
-
return true;
|
|
79
|
-
}
|
|
80
|
-
} catch {
|
|
81
|
-
}
|
|
82
|
-
return false;
|
|
88
|
+
function parseJsonRequest(text) {
|
|
89
|
+
return normalizeParsedNumbers(jsonParser.parse(text), JSON.parse(text), true);
|
|
83
90
|
}
|
|
84
91
|
|
|
85
92
|
// src/core/config.ts
|
|
@@ -280,6 +287,8 @@ function getConfigDir() {
|
|
|
280
287
|
export {
|
|
281
288
|
safeJsonParse,
|
|
282
289
|
safeReadJsonFile,
|
|
290
|
+
stringifyJsonRequest,
|
|
291
|
+
parseJsonRequest,
|
|
283
292
|
getSandboxRuntimeRoot,
|
|
284
293
|
isAeSandboxRuntime,
|
|
285
294
|
readSandboxCliTokenEntry,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
require_lib
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QVRIDN42.js";
|
|
5
5
|
import {
|
|
6
6
|
require_archiver,
|
|
7
7
|
require_string_decoder
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OAWPT7VP.js";
|
|
9
9
|
import {
|
|
10
10
|
require_inherits,
|
|
11
11
|
require_node
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JEUXDY3B.js";
|
|
13
13
|
import {
|
|
14
14
|
__commonJS,
|
|
15
15
|
__require,
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-Z3Q2AEIN.js";
|
|
18
18
|
|
|
19
19
|
// node_modules/exceljs/lib/utils/under-dash.js
|
|
20
20
|
var require_under_dash = __commonJS({
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
postAgentApi,
|
|
10
10
|
putAgentApi,
|
|
11
11
|
uploadAgentApi
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VDICGXCY.js";
|
|
13
13
|
import {
|
|
14
14
|
TeAgentApiError,
|
|
15
15
|
createTeAgentApiError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JSBLCLFE.js";
|
|
17
17
|
import {
|
|
18
18
|
CliValidationError,
|
|
19
19
|
isApiErrorType
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-Z3Q2AEIN.js";
|
|
21
21
|
|
|
22
22
|
// src/commands/workspace/client.ts
|
|
23
23
|
var DEFAULT_TE_CLAUDE_BASE_PATH = "/agent";
|
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
CapabilityGatewayError,
|
|
7
7
|
fetchCapabilityGateway,
|
|
8
8
|
requestCapabilityGateway
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UYJMEHAF.js";
|
|
10
10
|
import {
|
|
11
11
|
readOutputMetadata,
|
|
12
12
|
unwrapOutputData,
|
|
13
13
|
withOutputMetadata
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WMDO53YK.js";
|
|
15
15
|
import {
|
|
16
16
|
PermissionError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-Z3Q2AEIN.js";
|
|
18
18
|
|
|
19
19
|
// src/core/analysis-async-artifact.ts
|
|
20
20
|
import { randomBytes } from "crypto";
|