@thinkingai/ae-cli 6.1.17 → 6.1.18
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/dist/{auth-2WTQOP77.js → auth-GBMV6TEJ.js} +3 -3
- package/dist/{auth-77BUFLGC.js → auth-ROB2EDYV.js} +12 -13
- package/dist/{capability-72DTW5M2.js → capability-DKMYUTLC.js} +50 -13
- package/dist/{capability-PJHNI4GJ.js → capability-HYVVPG25.js} +49 -12
- package/dist/chunk-3FY3RJ26.js +293 -0
- package/dist/{chunk-PTE56QPL.js → chunk-3KWQYGYI.js} +4 -0
- package/dist/{chunk-UOUS37JQ.js → chunk-4XXOWOTA.js} +3 -3
- package/dist/{chunk-GT46FPXN.js → chunk-BYYS3ANB.js} +17 -8
- package/dist/{chunk-YA6SMTXG.js → chunk-EFH4XWYC.js} +3 -3
- package/dist/{chunk-4SGZG4XY.js → chunk-J2DEBMRF.js} +9 -7
- package/dist/{chunk-LYVNONC4.js → chunk-JHENBQ5B.js} +35 -0
- package/dist/{chunk-VR3LCBHW.js → chunk-JRJY5DMJ.js} +5 -5
- package/dist/{chunk-ILIU36SU.js → chunk-OMPRXM3V.js} +3 -3
- package/dist/{chunk-VPKZ7I72.js → chunk-QNOLN2LJ.js} +2 -2
- package/dist/{chunk-SAU3QFIQ.js → chunk-QZ3AS4KK.js} +3 -3
- package/dist/chunk-RJDU7NYP.js +1198 -0
- package/dist/{chunk-4KVPKXFX.js → chunk-RNAALWJK.js} +2 -2
- package/dist/{chunk-C4MGVGJW.js → chunk-SERWF6G5.js} +1 -1
- package/dist/{chunk-RGKJGKT7.js → chunk-Y3LOALAV.js} +5 -5
- package/dist/{chunk-P3FGXJTU.js → chunk-ZQ47LWTI.js} +4 -4
- package/dist/chunk-ZQKDZXDO.js +317 -0
- package/dist/{client-TKG4WBHN.js → client-L2YDMHQ6.js} +5 -4
- package/dist/{community-report-client-FI4LNVYS.js → community-report-client-C7WDGET3.js} +1 -2
- package/dist/{config-RE6CMGPK.js → config-BMYZX2UE.js} +7 -6
- package/dist/{data-integration-XQYB4X4F.js → data-integration-QEKDWQDY.js} +1601 -192
- package/dist/index.js +131 -1241
- package/dist/{local-data-upload-client-BWHSUQQK.js → local-data-upload-client-4YYHSYD6.js} +1 -2
- package/dist/{memory-CHRU2F7W.js → memory-3ORCR7JH.js} +6 -6
- package/dist/{memory-YK33G4T7.js → memory-I2WXDTV2.js} +5 -5
- package/dist/{metadata-XXR34N5P.js → metadata-I4C2EWUN.js} +10 -10
- package/dist/{metadata-UILXHBWF.js → metadata-VUOQJE26.js} +9 -9
- package/dist/{model-NR3JHFSJ.js → model-HLHIEFMU.js} +5 -5
- package/dist/{model-K3KLWIW6.js → model-UGRDX4MW.js} +6 -6
- package/dist/personal-semantic-preference-LIPACBDX.js +239 -0
- package/dist/personal-semantic-preference-OEISBRHM.js +239 -0
- package/dist/project-semantic-FFPWFPIW.js +1114 -0
- package/dist/project-semantic-RT3R2VQD.js +1114 -0
- package/dist/{sync-FCKOVWWS.js → sync-HKIOZXQE.js} +6 -6
- package/dist/{sync-DAVKYVMW.js → sync-TFHU2UTG.js} +7 -7
- package/dist/{te-agent-HLW4VTQK.js → te-agent-BR6VDBNX.js} +9 -8
- package/dist/{te-agent-4BKBODMF.js → te-agent-VLYOV7S4.js} +8 -7
- package/dist/{te-analysis-ZMNGOVNW.js → te-analysis-4YGQL5RC.js} +437 -38
- package/dist/{te-analysis-O6DCO6BS.js → te-analysis-7VUNUYWZ.js} +436 -37
- package/dist/{te-community-HLC43QKH.js → te-community-5DMNKJWY.js} +5 -5
- package/dist/{te-community-6HPBWJUZ.js → te-community-ISDQWJU7.js} +6 -6
- package/dist/{te-dataops-HDRUXY4K.js → te-dataops-6P5IKWNJ.js} +8 -7
- package/dist/{te-dataops-EJP56W3K.js → te-dataops-CVULXNVB.js} +7 -6
- package/dist/{te-engage-RAK5PESW.js → te-engage-KZPR5R22.js} +9 -9
- package/dist/{te-engage-FGBGQ4IY.js → te-engage-N5WI32H6.js} +8 -8
- package/dist/{te-experiment-SO5MPDMJ.js → te-experiment-6BITX4RD.js} +226 -8
- package/dist/{te-experiment-VZF7BT6G.js → te-experiment-UVR4HLND.js} +227 -9
- package/dist/{te-kb-SQCLHG6X.js → te-kb-RCLSSH2Q.js} +7 -7
- package/dist/{te-system-Z77IKZFN.js → te-system-FXITO2JG.js} +5 -5
- package/dist/{te-system-YARIK4S5.js → te-system-K2GYMCTB.js} +6 -6
- package/dist/{te-team-EFKWYKMK.js → te-team-ADOC2ROP.js} +6 -6
- package/dist/{update-OGPSZM5A.js → update-YCYCKJOO.js} +7 -6
- package/package.json +1 -1
- package/skills/ae-agent/SKILL.md +3 -4
- package/skills/ae-agent/references/edit-skill.md +3 -0
- package/skills/ae-agent/references/get-skill-content.md +1 -1
- package/skills/ae-agent/references/rescan-skills.md +15 -13
- package/skills/ae-agent/references/upload-skill.md +7 -4
- package/skills/ae-analysis/SKILL.md +45 -4
- package/skills/ae-analysis/metadata_resolution.md +38 -4
- package/skills/ae-analysis/references/analysis_data_retrieval.md +29 -0
- package/skills/ae-analysis/references/asset_authentication_export.md +22 -0
- package/skills/ae-analysis/references/asset_authentication_list.md +18 -14
- package/skills/ae-analysis/references/asset_authentication_update.md +29 -14
- package/skills/ae-analysis/references/command_index.md +17 -9
- package/skills/ae-analysis/references/dashboard_get.md +18 -1
- package/skills/ae-analysis/references/dashboard_update.md +3 -0
- package/skills/ae-analysis/references/personal_semantic_preference_add.md +23 -0
- package/skills/ae-analysis/references/personal_semantic_preference_delete.md +17 -0
- package/skills/ae-analysis/references/personal_semantic_preference_get.md +19 -0
- package/skills/ae-analysis/references/personal_semantic_preference_list.md +21 -0
- package/skills/ae-analysis/references/personal_semantic_preference_update.md +19 -0
- package/skills/ae-data-integration/SKILL.md +23 -4
- package/skills/ae-data-integration/references/custom-layer.md +93 -0
- package/skills/ae-data-integration/references/error-handling.md +92 -0
- package/skills/ae-data-integration/references/handoff.md +77 -18
- package/skills/ae-data-integration/references/local-analysis.md +1 -1
- package/skills/ae-data-integration/references/reuse.md +9 -5
- package/skills/ae-data-integration/references/sink-upload.md +1 -1
- package/skills/ae-data-integration/references/source-inspect.md +18 -12
- package/skills/ae-data-integration/references/tracking-plan.md +7 -5
- package/skills/ae-data-integration/references/transform.md +10 -10
- package/skills/ae-data-integration/references/ue-mapping.md +33 -11
- package/skills/ae-engage/references/build-task-save-guide.md +9 -0
- package/skills/ae-engage/references/save-task.md +82 -0
- package/skills/ae-experiment/SKILL.md +8 -2
- 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/save_experiment.md +1 -1
- package/skills/ae-kb/SKILL.md +1 -1
- 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/dist/chunk-QGM4M3NI.js +0 -37
- package/dist/chunk-ZZUOD757.js +0 -598
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
peekCliToken
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J2DEBMRF.js";
|
|
4
|
+
import {
|
|
5
|
+
getToken
|
|
6
|
+
} from "./chunk-ZQKDZXDO.js";
|
|
4
7
|
import {
|
|
5
8
|
getActiveHost,
|
|
6
9
|
getConfigDir,
|
|
7
|
-
getToken,
|
|
8
10
|
isAeSandboxRuntime,
|
|
9
11
|
normalizeUrl
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3FY3RJ26.js";
|
|
11
13
|
import {
|
|
12
14
|
logger
|
|
13
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JHENBQ5B.js";
|
|
14
16
|
|
|
15
17
|
// src/core/version-sync.ts
|
|
16
18
|
import { spawnSync } from "child_process";
|
|
@@ -84,6 +86,7 @@ var HISTORICAL_CLUSTER_TO_PUBLIC_PIN = {
|
|
|
84
86
|
|
|
85
87
|
// src/core/version-compat.ts
|
|
86
88
|
var OPEN_SOURCE_AE_CLI_PACKAGE = "@thinkingai/ae-cli";
|
|
89
|
+
var OPEN_SOURCE_NPM_REGISTRY = "https://registry.npmjs.org";
|
|
87
90
|
var AE_CLI_SKILLS_REPO = "ThinkingAIAgenticEngine/ae-cli";
|
|
88
91
|
var PUBLISHED_EXTERNAL_VERSIONS = /* @__PURE__ */ new Set([
|
|
89
92
|
"1.0.15",
|
|
@@ -182,7 +185,7 @@ function formatPinCommands(expectedVersion) {
|
|
|
182
185
|
const ver = resolvePinTarget(expectedVersion);
|
|
183
186
|
if (!ver) return [];
|
|
184
187
|
return [
|
|
185
|
-
`npm i -g ${OPEN_SOURCE_AE_CLI_PACKAGE}@${ver}`,
|
|
188
|
+
`npm i -g ${OPEN_SOURCE_AE_CLI_PACKAGE}@${ver} --registry=${OPEN_SOURCE_NPM_REGISTRY}`,
|
|
186
189
|
`npx skills add ${AE_CLI_SKILLS_REPO}#v${ver} -g -y`
|
|
187
190
|
];
|
|
188
191
|
}
|
|
@@ -190,7 +193,7 @@ function formatUpgradeCommands(expectedVersion) {
|
|
|
190
193
|
const ver = expectedVersion.trim().replace(/^v/i, "");
|
|
191
194
|
if (!/^\d+\.\d+\.\d+(?:[-+].*)?$/.test(ver)) return [];
|
|
192
195
|
return [
|
|
193
|
-
`npm i -g ${OPEN_SOURCE_AE_CLI_PACKAGE}@${ver}`,
|
|
196
|
+
`npm i -g ${OPEN_SOURCE_AE_CLI_PACKAGE}@${ver} --registry=${OPEN_SOURCE_NPM_REGISTRY}`,
|
|
194
197
|
`npx skills add ${AE_CLI_SKILLS_REPO}#v${ver} -g -y`
|
|
195
198
|
];
|
|
196
199
|
}
|
|
@@ -353,7 +356,7 @@ function buildVersionInstallPlan(targetRaw, globalRoot = "<npm-root>") {
|
|
|
353
356
|
return {
|
|
354
357
|
target,
|
|
355
358
|
commands: [
|
|
356
|
-
`npm install -g ${OPEN_SOURCE_AE_CLI_PACKAGE}@${target}`,
|
|
359
|
+
`npm install -g ${OPEN_SOURCE_AE_CLI_PACKAGE}@${target} --registry=${OPEN_SOURCE_NPM_REGISTRY}`,
|
|
357
360
|
`npx -y skills add ${localSkills} -g -y`,
|
|
358
361
|
`npx -y skills add ${AE_CLI_SKILLS_REPO}#v${target} -g -y`
|
|
359
362
|
],
|
|
@@ -503,7 +506,13 @@ function installVersion(targetRaw, options = {}) {
|
|
|
503
506
|
progress(`[ae-cli] [1/2] Installing ae-cli ${target}...`);
|
|
504
507
|
const npmResult = runner(
|
|
505
508
|
npm,
|
|
506
|
-
[
|
|
509
|
+
[
|
|
510
|
+
"install",
|
|
511
|
+
"-g",
|
|
512
|
+
`${OPEN_SOURCE_AE_CLI_PACKAGE}@${target}`,
|
|
513
|
+
"--registry",
|
|
514
|
+
OPEN_SOURCE_NPM_REGISTRY
|
|
515
|
+
],
|
|
507
516
|
COMMAND_TIMEOUT_MS
|
|
508
517
|
);
|
|
509
518
|
if (!commandSucceeded(npmResult)) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveGatewayDomain
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3KWQYGYI.js";
|
|
4
4
|
import {
|
|
5
5
|
readOutputMetadata,
|
|
6
6
|
unwrapOutputData,
|
|
7
7
|
withOutputMetadata
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BYYS3ANB.js";
|
|
9
9
|
import {
|
|
10
10
|
CapabilityGatewayError,
|
|
11
11
|
fetchCapabilityGateway,
|
|
12
12
|
requestCapabilityGateway
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZQ47LWTI.js";
|
|
14
14
|
import {
|
|
15
15
|
PermissionError
|
|
16
16
|
} from "./chunk-UW5UN47B.js";
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SecureStoreAuthError,
|
|
3
|
+
getToken,
|
|
4
|
+
load,
|
|
5
|
+
loadCliToken,
|
|
6
|
+
save
|
|
7
|
+
} from "./chunk-ZQKDZXDO.js";
|
|
8
|
+
import {
|
|
3
9
|
getActiveHost,
|
|
4
10
|
getConfigDir,
|
|
5
11
|
getFallbackCliToken,
|
|
6
|
-
getToken,
|
|
7
12
|
listHosts,
|
|
8
|
-
load,
|
|
9
|
-
loadCliToken,
|
|
10
13
|
normalizeUrl,
|
|
11
14
|
safeJsonParse,
|
|
12
|
-
safeReadJsonFile
|
|
13
|
-
|
|
14
|
-
} from "./chunk-ZZUOD757.js";
|
|
15
|
+
safeReadJsonFile
|
|
16
|
+
} from "./chunk-3FY3RJ26.js";
|
|
15
17
|
import {
|
|
16
18
|
PermissionError
|
|
17
19
|
} from "./chunk-UW5UN47B.js";
|
|
18
20
|
import {
|
|
19
21
|
logger
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JHENBQ5B.js";
|
|
21
23
|
|
|
22
24
|
// src/core/cli-token.ts
|
|
23
25
|
import fs from "fs";
|
|
@@ -1,3 +1,35 @@
|
|
|
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
|
+
|
|
1
33
|
// src/core/logger.ts
|
|
2
34
|
import fs from "fs";
|
|
3
35
|
import path from "path";
|
|
@@ -82,5 +114,8 @@ var Logger = class {
|
|
|
82
114
|
var logger = new Logger();
|
|
83
115
|
|
|
84
116
|
export {
|
|
117
|
+
__require,
|
|
118
|
+
__commonJS,
|
|
119
|
+
__toESM,
|
|
85
120
|
logger
|
|
86
121
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveGatewayDomain
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3KWQYGYI.js";
|
|
4
4
|
import {
|
|
5
5
|
withOutputMetadata
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BYYS3ANB.js";
|
|
7
7
|
import {
|
|
8
8
|
dryRunCapability,
|
|
9
9
|
executeCapabilityWithEnvelope,
|
|
10
10
|
validateCapability
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OMPRXM3V.js";
|
|
12
12
|
|
|
13
13
|
// src/core/capability-command.ts
|
|
14
14
|
import { randomBytes } from "crypto";
|
|
@@ -28,13 +28,13 @@ function createCapabilityCommand(config) {
|
|
|
28
28
|
validateInput: async (ctx) => {
|
|
29
29
|
const gatewayDomain = resolveGatewayDomain(config.cliService, config.gatewayDomain);
|
|
30
30
|
const requestHost = config.requestHost ?? ctx.host();
|
|
31
|
-
const input = config.buildInput(ctx);
|
|
31
|
+
const input = withLifecycleRequestId(config, config.buildInput(ctx));
|
|
32
32
|
return validateCapability(requestHost, gatewayDomain, config.capabilityId, input);
|
|
33
33
|
},
|
|
34
34
|
dryRun: async (ctx) => {
|
|
35
35
|
const gatewayDomain = resolveGatewayDomain(config.cliService, config.gatewayDomain);
|
|
36
36
|
const requestHost = config.requestHost ?? ctx.host();
|
|
37
|
-
const input = config.buildInput(ctx);
|
|
37
|
+
const input = withLifecycleRequestId(config, config.buildInput(ctx));
|
|
38
38
|
return dryRunCapability(requestHost, gatewayDomain, config.capabilityId, input);
|
|
39
39
|
},
|
|
40
40
|
execute: async (ctx) => {
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
clearCliToken,
|
|
6
6
|
getCliToken
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-J2DEBMRF.js";
|
|
8
8
|
import {
|
|
9
9
|
safeJsonParse
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3FY3RJ26.js";
|
|
11
11
|
import {
|
|
12
12
|
PermissionError
|
|
13
13
|
} from "./chunk-UW5UN47B.js";
|
|
14
14
|
import {
|
|
15
15
|
logger
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JHENBQ5B.js";
|
|
17
17
|
|
|
18
18
|
// src/core/capability-api.ts
|
|
19
19
|
import { readFile } from "fs/promises";
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
clearCliToken,
|
|
6
6
|
getCliToken
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-J2DEBMRF.js";
|
|
8
8
|
import {
|
|
9
9
|
getActiveHost,
|
|
10
10
|
getSandboxRuntimeRoot
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3FY3RJ26.js";
|
|
12
12
|
import {
|
|
13
13
|
PermissionError
|
|
14
14
|
} from "./chunk-UW5UN47B.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveGatewayDomain
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3KWQYGYI.js";
|
|
4
4
|
import {
|
|
5
5
|
readOutputMetadata,
|
|
6
6
|
unwrapOutputData,
|
|
7
7
|
withOutputMetadata
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BYYS3ANB.js";
|
|
9
9
|
import {
|
|
10
10
|
CapabilityGatewayError,
|
|
11
11
|
fetchCapabilityGateway,
|
|
12
12
|
requestCapabilityGateway
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OMPRXM3V.js";
|
|
14
14
|
import {
|
|
15
15
|
PermissionError
|
|
16
16
|
} from "./chunk-UW5UN47B.js";
|