@thinkingai/ae-cli 6.0.42 → 6.0.45
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 +5 -2
- package/README.zh.md +5 -2
- package/dist/{auth-GBMV6TEJ.js → auth-2WTQOP77.js} +3 -3
- package/dist/{auth-NDSXE54J.js → auth-77BUFLGC.js} +57 -13
- package/dist/{capability-CETVHGXF.js → capability-ENHWPMTG.js} +12 -12
- package/dist/{capability-ZSQBMNOE.js → capability-WA37LSIR.js} +12 -12
- package/dist/{chunk-AFXA7BRK.js → chunk-4KVPKXFX.js} +5 -5
- package/dist/chunk-4SGZG4XY.js +311 -0
- package/dist/chunk-6EIJSNBD.js +8 -0
- package/dist/chunk-C4MGVGJW.js +13 -0
- package/dist/{chunk-4E3DB4MM.js → chunk-EE45RGOO.js} +7 -7
- package/dist/{chunk-WZRX4KOH.js → chunk-GT46FPXN.js} +4 -6
- package/dist/{chunk-5XUSIK27.js → chunk-ILIU36SU.js} +10 -7
- package/dist/{chunk-JHENBQ5B.js → chunk-LYVNONC4.js} +0 -35
- package/dist/{chunk-WANVG6SY.js → chunk-MGU2N3HW.js} +7 -7
- package/dist/{chunk-JUW4AJXN.js → chunk-P3FGXJTU.js} +12 -7
- package/dist/{chunk-FNZA5RZA.js → chunk-QEFCIRNJ.js} +4 -4
- package/dist/chunk-QGM4M3NI.js +37 -0
- package/dist/{chunk-J2N4PB56.js → chunk-QI524WPY.js} +4 -4
- package/dist/{chunk-VLWOLBGZ.js → chunk-UOUS37JQ.js} +149 -161
- package/dist/{chunk-AXDXJTPC.js → chunk-UW5UN47B.js} +19 -2
- package/dist/chunk-VPKZ7I72.js +509 -0
- package/dist/chunk-ZZUOD757.js +598 -0
- package/dist/{client-L2YDMHQ6.js → client-TKG4WBHN.js} +4 -5
- package/dist/{community-report-client-M2RW4MXD.js → community-report-client-FI4LNVYS.js} +3 -2
- package/dist/{config-OL2LWGBV.js → config-RE6CMGPK.js} +7 -7
- package/dist/data-integration-XQYB4X4F.js +3503 -0
- package/dist/index.js +74 -40
- package/dist/local-data-upload-client-BWHSUQQK.js +167 -0
- package/dist/{memory-MUP7PPL7.js → memory-CHRU2F7W.js} +7 -6
- package/dist/{memory-U4O5PMXH.js → memory-YK33G4T7.js} +7 -6
- package/dist/{metadata-BD6BXAYE.js → metadata-AXVHAAZG.js} +10 -9
- package/dist/{metadata-HXOFACDE.js → metadata-GGEHHPBE.js} +10 -9
- package/dist/{model-JTUEO5M4.js → model-K3KLWIW6.js} +7 -3
- package/dist/model-NR3JHFSJ.js +139 -0
- package/dist/{sync-MOSFNBVR.js → sync-DAVKYVMW.js} +8 -6
- package/dist/sync-FCKOVWWS.js +10261 -0
- package/dist/{te-agent-IFKZDHZI.js → te-agent-4BKBODMF.js} +686 -71
- package/dist/te-agent-HLW4VTQK.js +3893 -0
- package/dist/{te-analysis-PXNF7ZJT.js → te-analysis-WX7LRVAV.js} +38 -15
- package/dist/{te-analysis-T7C7WSAH.js → te-analysis-YKFDBMA6.js} +38 -15
- package/dist/{te-community-HNKVTERD.js → te-community-6HPBWJUZ.js} +24 -19
- package/dist/{te-community-IWE5B7W6.js → te-community-HLC43QKH.js} +24 -20
- package/dist/{te-dataops-KXCEB4CS.js → te-dataops-EJP56W3K.js} +57 -34
- package/dist/{te-dataops-KQPYNAE3.js → te-dataops-HDRUXY4K.js} +59 -34
- package/dist/{te-engage-BVB7RGEO.js → te-engage-UBHPAJCO.js} +12 -11
- package/dist/{te-engage-LCEGC7G4.js → te-engage-WLDTS5J5.js} +12 -11
- package/dist/{te-kb-OIH3T6CS.js → te-kb-SQCLHG6X.js} +250 -126
- package/dist/{te-system-AZ3URMUO.js → te-system-YARIK4S5.js} +7 -4
- package/dist/te-system-Z77IKZFN.js +2213 -0
- package/dist/{te-team-GZPU6UWA.js → te-team-EFKWYKMK.js} +7 -7
- package/dist/{update-TOBFXF2V.js → update-OGPSZM5A.js} +7 -7
- package/package.json +14 -3
- package/skills/ae-agent/SKILL.md +21 -11
- package/skills/ae-agent/references/approval-effect.md +44 -0
- package/skills/ae-agent/references/approval-request.md +46 -0
- package/skills/ae-agent/references/approval-task.md +45 -0
- package/skills/ae-agent/references/approval-type.md +32 -0
- package/skills/ae-agent/references/command_index.md +19 -0
- package/skills/ae-analysis/SKILL.md +11 -7
- package/skills/ae-analysis/references/adhoc_run.md +2 -0
- package/skills/ae-analysis/references/ai_models.md +27 -0
- package/skills/ae-analysis/references/analysis_gateway_assets.md +3 -2
- package/skills/ae-analysis/references/command_index.md +4 -1
- package/skills/ae-analysis/references/dashboard_get.md +8 -2
- package/skills/ae-analysis/references/dashboard_report_data_run.md +3 -1
- package/skills/ae-analysis/references/dashboard_update.md +4 -1
- package/skills/ae-analysis/references/project_space_business_filter_upsert.md +17 -0
- package/skills/ae-analysis/references/user_tag_models.md +4 -4
- package/skills/ae-data-integration/SKILL.md +54 -0
- package/skills/ae-data-integration/references/handoff.md +43 -0
- package/skills/ae-data-integration/references/local-analysis.md +27 -0
- package/skills/ae-data-integration/references/reuse.md +41 -0
- package/skills/ae-data-integration/references/sink-upload.md +58 -0
- package/skills/ae-data-integration/references/source-inspect.md +68 -0
- package/skills/ae-data-integration/references/sync-json-upload.md +60 -0
- package/skills/ae-data-integration/references/tracking-plan.md +35 -0
- package/skills/ae-data-integration/references/transform.md +65 -0
- package/skills/ae-data-integration/references/ue-mapping.md +142 -0
- package/skills/ae-data-integration/references/ue-routing.md +35 -0
- package/skills/ae-data-integration-helper/SKILL.md +1 -1
- package/skills/ae-dataops/SKILL.md +1 -1
- package/skills/ae-dataops/references/dataops-query.md +4 -4
- package/skills/ae-generate-tracking-plan/SKILL.md +54 -3
- package/skills/ae-kb/SKILL.md +55 -50
- package/skills/ae-kb/references/query-workflow.md +112 -0
- package/skills/ae-kb-discovery/SKILL.md +105 -0
- package/skills/ae-metadata/SKILL.md +0 -1
- package/dist/chunk-3FY3RJ26.js +0 -293
- package/dist/chunk-S5NTSDBS.js +0 -198
- package/dist/chunk-ZQKDZXDO.js +0 -317
- package/dist/cli-token-4UPER74P.js +0 -21
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
peekCliToken
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
getToken
|
|
6
|
-
} from "./chunk-ZQKDZXDO.js";
|
|
3
|
+
} from "./chunk-4SGZG4XY.js";
|
|
7
4
|
import {
|
|
8
5
|
getActiveHost,
|
|
9
6
|
getConfigDir,
|
|
7
|
+
getToken,
|
|
10
8
|
isAeSandboxRuntime,
|
|
11
9
|
normalizeUrl
|
|
12
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZZUOD757.js";
|
|
13
11
|
import {
|
|
14
12
|
logger
|
|
15
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LYVNONC4.js";
|
|
16
14
|
|
|
17
15
|
// src/core/version-sync.ts
|
|
18
16
|
import { spawnSync } from "child_process";
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
internalCallSourceHeaders
|
|
3
|
+
} from "./chunk-6EIJSNBD.js";
|
|
1
4
|
import {
|
|
2
5
|
clearCliToken,
|
|
3
6
|
getCliToken
|
|
4
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4SGZG4XY.js";
|
|
5
8
|
import {
|
|
6
9
|
safeJsonParse
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZZUOD757.js";
|
|
8
11
|
import {
|
|
9
12
|
PermissionError
|
|
10
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UW5UN47B.js";
|
|
11
14
|
import {
|
|
12
15
|
logger
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LYVNONC4.js";
|
|
14
17
|
|
|
15
18
|
// src/core/capability-api.ts
|
|
16
19
|
import { readFile } from "fs/promises";
|
|
@@ -137,7 +140,7 @@ async function requestOnce(url, method, token, body, accept = "application/json"
|
|
|
137
140
|
const headers = {
|
|
138
141
|
"cli-token": token,
|
|
139
142
|
"Accept": accept,
|
|
140
|
-
|
|
143
|
+
...internalCallSourceHeaders()
|
|
141
144
|
};
|
|
142
145
|
const init = { method, headers };
|
|
143
146
|
if (body !== void 0 && method !== "GET") {
|
|
@@ -152,7 +155,7 @@ async function requestMultipartOnce(url, token, form) {
|
|
|
152
155
|
headers: {
|
|
153
156
|
"cli-token": token,
|
|
154
157
|
"Accept": "application/json",
|
|
155
|
-
|
|
158
|
+
...internalCallSourceHeaders()
|
|
156
159
|
},
|
|
157
160
|
body: form
|
|
158
161
|
});
|
|
@@ -168,7 +171,7 @@ async function callGatewayWithEnvelope(host, domain, pathAfterV1, method, body,
|
|
|
168
171
|
if (resp.status === 403) {
|
|
169
172
|
const error = await permissionError(resp);
|
|
170
173
|
permissionMsg = error.message;
|
|
171
|
-
if (!isInvalidCliTokenMessage(permissionMsg)) {
|
|
174
|
+
if (options.retryOnInvalidTokenForbidden === false || !isInvalidCliTokenMessage(permissionMsg)) {
|
|
172
175
|
throw error;
|
|
173
176
|
}
|
|
174
177
|
}
|
|
@@ -1,35 +1,3 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
-
}) : x)(function(x) {
|
|
10
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
-
});
|
|
13
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
14
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
|
-
};
|
|
16
|
-
var __copyProps = (to, from, except, desc) => {
|
|
17
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
-
for (let key of __getOwnPropNames(from))
|
|
19
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
20
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
|
-
}
|
|
22
|
-
return to;
|
|
23
|
-
};
|
|
24
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
|
-
mod
|
|
31
|
-
));
|
|
32
|
-
|
|
33
1
|
// src/core/logger.ts
|
|
34
2
|
import fs from "fs";
|
|
35
3
|
import path from "path";
|
|
@@ -114,8 +82,5 @@ var Logger = class {
|
|
|
114
82
|
var logger = new Logger();
|
|
115
83
|
|
|
116
84
|
export {
|
|
117
|
-
__require,
|
|
118
|
-
__commonJS,
|
|
119
|
-
__toESM,
|
|
120
85
|
logger
|
|
121
86
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CapabilityGatewayError,
|
|
3
|
-
fetchCapabilityGateway,
|
|
4
|
-
requestCapabilityGateway
|
|
5
|
-
} from "./chunk-JUW4AJXN.js";
|
|
6
1
|
import {
|
|
7
2
|
readOutputMetadata,
|
|
8
3
|
unwrapOutputData,
|
|
9
4
|
withOutputMetadata
|
|
10
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GT46FPXN.js";
|
|
6
|
+
import {
|
|
7
|
+
CapabilityGatewayError,
|
|
8
|
+
fetchCapabilityGateway,
|
|
9
|
+
requestCapabilityGateway
|
|
10
|
+
} from "./chunk-P3FGXJTU.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveGatewayDomain
|
|
13
13
|
} from "./chunk-PTE56QPL.js";
|
|
14
14
|
import {
|
|
15
15
|
PermissionError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UW5UN47B.js";
|
|
17
17
|
|
|
18
18
|
// src/core/analysis-async-artifact.ts
|
|
19
19
|
import { randomBytes } from "crypto";
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
internalCallSourceHeaders
|
|
3
|
+
} from "./chunk-C4MGVGJW.js";
|
|
1
4
|
import {
|
|
2
5
|
clearCliToken,
|
|
3
6
|
getCliToken
|
|
4
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4SGZG4XY.js";
|
|
5
8
|
import {
|
|
6
9
|
safeJsonParse
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZZUOD757.js";
|
|
8
11
|
import {
|
|
9
12
|
PermissionError
|
|
10
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UW5UN47B.js";
|
|
11
14
|
import {
|
|
12
15
|
logger
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LYVNONC4.js";
|
|
14
17
|
|
|
15
18
|
// src/core/capability-api.ts
|
|
16
19
|
import { readFile } from "fs/promises";
|
|
@@ -136,7 +139,8 @@ async function throwCapabilityHttpError(resp) {
|
|
|
136
139
|
async function requestOnce(url, method, token, body, accept = "application/json") {
|
|
137
140
|
const headers = {
|
|
138
141
|
"cli-token": token,
|
|
139
|
-
"Accept": accept
|
|
142
|
+
"Accept": accept,
|
|
143
|
+
...internalCallSourceHeaders()
|
|
140
144
|
};
|
|
141
145
|
const init = { method, headers };
|
|
142
146
|
if (body !== void 0 && method !== "GET") {
|
|
@@ -150,7 +154,8 @@ async function requestMultipartOnce(url, token, form) {
|
|
|
150
154
|
method: "POST",
|
|
151
155
|
headers: {
|
|
152
156
|
"cli-token": token,
|
|
153
|
-
"Accept": "application/json"
|
|
157
|
+
"Accept": "application/json",
|
|
158
|
+
...internalCallSourceHeaders()
|
|
154
159
|
},
|
|
155
160
|
body: form
|
|
156
161
|
});
|
|
@@ -166,7 +171,7 @@ async function callGatewayWithEnvelope(host, domain, pathAfterV1, method, body,
|
|
|
166
171
|
if (resp.status === 403) {
|
|
167
172
|
const error = await permissionError(resp);
|
|
168
173
|
permissionMsg = error.message;
|
|
169
|
-
if (!isInvalidCliTokenMessage(permissionMsg)) {
|
|
174
|
+
if (options.retryOnInvalidTokenForbidden === false || !isInvalidCliTokenMessage(permissionMsg)) {
|
|
170
175
|
throw error;
|
|
171
176
|
}
|
|
172
177
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withOutputMetadata
|
|
3
|
+
} from "./chunk-GT46FPXN.js";
|
|
1
4
|
import {
|
|
2
5
|
dryRunCapability,
|
|
3
6
|
executeCapabilityWithEnvelope,
|
|
4
7
|
validateCapability
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import {
|
|
7
|
-
withOutputMetadata
|
|
8
|
-
} from "./chunk-WZRX4KOH.js";
|
|
8
|
+
} from "./chunk-ILIU36SU.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveGatewayDomain
|
|
11
11
|
} from "./chunk-PTE56QPL.js";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
+
});
|
|
13
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
14
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
|
+
};
|
|
16
|
+
var __copyProps = (to, from, except, desc) => {
|
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
+
for (let key of __getOwnPropNames(from))
|
|
19
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
20
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
24
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
|
+
mod
|
|
31
|
+
));
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
__require,
|
|
35
|
+
__commonJS,
|
|
36
|
+
__toESM
|
|
37
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withOutputMetadata
|
|
3
|
+
} from "./chunk-GT46FPXN.js";
|
|
1
4
|
import {
|
|
2
5
|
dryRunCapability,
|
|
3
6
|
executeCapabilityWithEnvelope,
|
|
4
7
|
validateCapability
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import {
|
|
7
|
-
withOutputMetadata
|
|
8
|
-
} from "./chunk-WZRX4KOH.js";
|
|
8
|
+
} from "./chunk-P3FGXJTU.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveGatewayDomain
|
|
11
11
|
} from "./chunk-PTE56QPL.js";
|