@thinkingai/ae-cli 6.1.39 → 6.1.41
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 +1 -1
- package/README.zh.md +1 -1
- package/cli-installation-guide.md +17 -10
- package/dist/{ai-monitor-DST4NDOK.js → ai-monitor-OOOD4QDK.js} +5 -7
- package/dist/ai-monitor.js +6 -8
- package/dist/{auth-BD3NIY3T.js → auth-6BUUY5XS.js} +4 -4
- package/dist/{capability-3NJOQHZQ.js → capability-XXFCANX7.js} +8 -10
- package/dist/{chunk-FRJUB66C.js → chunk-5YQSCMGS.js} +2 -2
- package/dist/{chunk-KBJHBVO7.js → chunk-6W56UQPO.js} +1 -1
- package/dist/{chunk-TVSGS5QB.js → chunk-BEVWMPCZ.js} +6 -6
- package/dist/{chunk-WRYXVIJP.js → chunk-DZRQGI2Z.js} +1 -1
- package/dist/{chunk-VXKKTUU2.js → chunk-EHH3ZF7D.js} +2 -2
- package/dist/{chunk-IY5G42YY.js → chunk-FPPCXG6K.js} +2 -2
- package/dist/{chunk-SQEK6S4X.js → chunk-I7H72CMN.js} +1182 -178
- package/dist/{chunk-24DCOJBJ.js → chunk-KDRE7SWM.js} +2 -2
- package/dist/{chunk-STHIGWWC.js → chunk-WG27BD67.js} +75 -4
- package/dist/{compat-check-7VBBE7KO.js → compat-check-AO3BFA3N.js} +2 -2
- package/dist/{config-LFRZBPH5.js → config-N5V4VNER.js} +4 -4
- package/dist/index.js +28 -31
- package/dist/{metadata-AR64J76Z.js → metadata-OUJPEMLD.js} +5 -7
- package/dist/{personal-semantic-preference-BCOSI4DO.js → personal-semantic-preference-WEAIZQXM.js} +4 -6
- package/dist/{project-semantic-DJLXAXLD.js → project-semantic-6VXUYU4A.js} +4 -6
- package/dist/{sync-4TUIQ2PZ.js → sync-BAV3UY46.js} +3 -3
- package/dist/{te-agent-EMDWA3M6.js → te-agent-QWZC36YS.js} +1 -3
- package/dist/{te-analysis-XHAMRMTQ.js → te-analysis-43RCOPUA.js} +32 -15
- package/dist/{te-community-JSUSZEYH.js → te-community-ECNTP35Z.js} +5 -8
- package/dist/{te-dataops-I264BUTI.js → te-dataops-ISEKYRLZ.js} +3 -4
- package/dist/{te-engage-XNMQYO5N.js → te-engage-LBKIZXZO.js} +4 -6
- package/dist/{te-experiment-5SCHMYVO.js → te-experiment-5TPQKN6B.js} +4 -6
- package/dist/{te-kb-QQ53TNRZ.js → te-kb-SHL56BJ5.js} +4 -6
- package/dist/{te-team-V6BBI52R.js → te-team-EZ3TZTLV.js} +4 -6
- package/dist/{things-THHGDSEC.js → things-UBMLTY3S.js} +1 -3
- package/dist/{update-53ZUXWV5.js → update-WE7VNRKZ.js} +3 -3
- package/dist/{web-runtime-ZJHOIPKX.js → web-runtime-H53QKJS2.js} +367 -612
- package/package.json +1 -1
- package/skills/ae-onboarding/SKILL.md +44 -23
- package/skills/ae-onboarding/references/about-ae.md +68 -0
- package/skills/ae-onboarding/references/business-data.md +46 -0
- package/skills/ae-onboarding/references/business-sdk.md +1 -1
- package/skills/ae-onboarding/references/demo-journey.md +58 -0
- package/skills/ae-onboarding/references/demo-operations.md +45 -20
- package/skills/ae-onboarding/references/onboarding_experiment_launch.md +7 -4
- package/skills/ae-onboarding/references/onboarding_experiment_plan.md +9 -2
- package/skills/ae-onboarding/references/onboarding_growth.md +37 -5
- package/skills/ae-onboarding/references/onboarding_run.md +16 -2
- package/skills/ae-onboarding/references/onboarding_status.md +2 -0
- package/skills/ae-onboarding/references/presentation.md +79 -0
- package/skills/ae-onboarding/scripts/experiment-requests.mjs +9 -4
- package/skills/ae-onboarding/scripts/generate.mjs +5 -5
- package/skills/ae-onboarding/scripts/resolve-experiment-preset.mjs +5 -2
- package/skills/ae-onboarding/scripts/web-journey.mjs +39 -27
- package/dist/chunk-6E6HCTP2.js +0 -60
- package/dist/chunk-PUSFEC6B.js +0 -29
- package/dist/chunk-QOJXLXDJ.js +0 -55
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
readOutputMetadata,
|
|
7
7
|
unwrapOutputData,
|
|
8
8
|
withOutputMetadata
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6W56UQPO.js";
|
|
10
10
|
import {
|
|
11
11
|
CapabilityGatewayError,
|
|
12
12
|
fetchCapabilityGateway,
|
|
13
13
|
requestCapabilityGateway
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WG27BD67.js";
|
|
15
15
|
import {
|
|
16
16
|
PermissionError
|
|
17
17
|
} from "./chunk-3ZQY7SLZ.js";
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
sourceLoggedFetch
|
|
4
|
-
} from "./chunk-6E6HCTP2.js";
|
|
5
2
|
import {
|
|
6
3
|
SecureStoreAuthError,
|
|
7
4
|
clearCliTokenCache,
|
|
@@ -9,16 +6,88 @@ import {
|
|
|
9
6
|
internalCallSourceHeaders
|
|
10
7
|
} from "./chunk-UWQXGF44.js";
|
|
11
8
|
import {
|
|
9
|
+
getAeSandboxDetectionReason,
|
|
12
10
|
safeJsonParse,
|
|
13
11
|
stringifyJsonRequest
|
|
14
12
|
} from "./chunk-IGU3R2JD.js";
|
|
15
13
|
import {
|
|
16
|
-
externalCliTokenRequestOptions
|
|
14
|
+
externalCliTokenRequestOptions,
|
|
15
|
+
logger
|
|
17
16
|
} from "./chunk-MTK4ZE7W.js";
|
|
18
17
|
import {
|
|
19
18
|
PermissionError
|
|
20
19
|
} from "./chunk-3ZQY7SLZ.js";
|
|
21
20
|
|
|
21
|
+
// src/core/package-info.ts
|
|
22
|
+
import fs from "fs";
|
|
23
|
+
import path from "path";
|
|
24
|
+
import { fileURLToPath } from "url";
|
|
25
|
+
function getLocalCliPackageInfo() {
|
|
26
|
+
let dir = path.dirname(fileURLToPath(import.meta.url));
|
|
27
|
+
for (let i = 0; i < 8; i += 1) {
|
|
28
|
+
const candidate = path.join(dir, "package.json");
|
|
29
|
+
try {
|
|
30
|
+
if (fs.existsSync(candidate)) {
|
|
31
|
+
const pkg = JSON.parse(fs.readFileSync(candidate, "utf8"));
|
|
32
|
+
if (pkg.name && pkg.version && String(pkg.name).includes("ae-cli")) {
|
|
33
|
+
return { name: pkg.name, version: pkg.version, root: dir };
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
} catch {
|
|
37
|
+
}
|
|
38
|
+
const parent = path.dirname(dir);
|
|
39
|
+
if (parent === dir) break;
|
|
40
|
+
dir = parent;
|
|
41
|
+
}
|
|
42
|
+
return { name: "@tant/ae-cli", version: "0.0.0", root: "" };
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// src/core/source-logged-fetch.ts
|
|
46
|
+
import { randomUUID } from "crypto";
|
|
47
|
+
var CLI_REQUEST_ID_HEADER = "X-TA-CLI-Request-Id";
|
|
48
|
+
var localPackage = getLocalCliPackageInfo();
|
|
49
|
+
var MAX_LOG_VALUE_LENGTH = 256;
|
|
50
|
+
function bounded(value) {
|
|
51
|
+
return value.length > MAX_LOG_VALUE_LENGTH ? `${value.slice(0, MAX_LOG_VALUE_LENGTH)}...[truncated]` : value;
|
|
52
|
+
}
|
|
53
|
+
function sourceLoggedFetch(url, init) {
|
|
54
|
+
const requestId = randomUUID();
|
|
55
|
+
let headers;
|
|
56
|
+
if (init.headers instanceof Headers) {
|
|
57
|
+
headers = new Headers(init.headers);
|
|
58
|
+
headers.set(CLI_REQUEST_ID_HEADER, requestId);
|
|
59
|
+
} else if (Array.isArray(init.headers)) {
|
|
60
|
+
headers = [
|
|
61
|
+
...init.headers.filter(([name]) => name.toLowerCase() !== CLI_REQUEST_ID_HEADER.toLowerCase()),
|
|
62
|
+
[CLI_REQUEST_ID_HEADER, requestId]
|
|
63
|
+
];
|
|
64
|
+
} else {
|
|
65
|
+
headers = Object.fromEntries(Object.entries(init.headers ?? {}).filter(([name]) => name.toLowerCase() !== CLI_REQUEST_ID_HEADER.toLowerCase()));
|
|
66
|
+
headers[CLI_REQUEST_ID_HEADER] = requestId;
|
|
67
|
+
}
|
|
68
|
+
const request = { ...init, headers };
|
|
69
|
+
try {
|
|
70
|
+
const target = new URL(url);
|
|
71
|
+
const actualHeaders = new Headers(headers);
|
|
72
|
+
const source = actualHeaders.get("X-Source");
|
|
73
|
+
const sandboxDetection = getAeSandboxDetectionReason();
|
|
74
|
+
logger.info(`CLI_SOURCE_SEND ${JSON.stringify({
|
|
75
|
+
request_id: requestId,
|
|
76
|
+
method: init.method ?? "GET",
|
|
77
|
+
host: bounded(target.host),
|
|
78
|
+
path: bounded(target.pathname),
|
|
79
|
+
source: source === null ? null : bounded(source),
|
|
80
|
+
source_state: source === null ? "missing" : source === "" ? "empty" : source.includes(",") ? "multiple" : "present",
|
|
81
|
+
cli_package: localPackage.name,
|
|
82
|
+
cli_version: localPackage.version,
|
|
83
|
+
sandbox_detected: sandboxDetection !== "not_detected",
|
|
84
|
+
sandbox_detection: sandboxDetection
|
|
85
|
+
})}`);
|
|
86
|
+
} catch {
|
|
87
|
+
}
|
|
88
|
+
return fetch(url, request);
|
|
89
|
+
}
|
|
90
|
+
|
|
22
91
|
// src/core/cli-agent-context.ts
|
|
23
92
|
import { readFileSync, statSync } from "fs";
|
|
24
93
|
import { dirname, join, parse, resolve } from "path";
|
|
@@ -623,6 +692,8 @@ async function callCapabilityApi(host, domain, action, method = "POST", params =
|
|
|
623
692
|
}
|
|
624
693
|
|
|
625
694
|
export {
|
|
695
|
+
getLocalCliPackageInfo,
|
|
696
|
+
sourceLoggedFetch,
|
|
626
697
|
runWithCliAgentContext,
|
|
627
698
|
readCliAgentContext,
|
|
628
699
|
CapabilityGatewayError,
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
shouldNotifyCompat,
|
|
13
13
|
shouldSkipAutoSync,
|
|
14
14
|
shouldSkipCompatCheck
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-I7H72CMN.js";
|
|
16
|
+
import "./chunk-WG27BD67.js";
|
|
17
17
|
import "./chunk-UWQXGF44.js";
|
|
18
18
|
import "./chunk-IGU3R2JD.js";
|
|
19
19
|
import "./chunk-MTK4ZE7W.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
invalidateBusinessSkillSynchronization,
|
|
5
5
|
refreshEnvironmentAfterLogin,
|
|
6
6
|
refreshEnvironmentConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5YQSCMGS.js";
|
|
8
8
|
import {
|
|
9
9
|
MultiselectCancelled,
|
|
10
10
|
promptSingleSelect
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
printError,
|
|
14
14
|
printOutput
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6W56UQPO.js";
|
|
16
16
|
import {
|
|
17
17
|
aeRegistrationUrl,
|
|
18
18
|
fetchCliConfig,
|
|
19
19
|
missingAeHostHint,
|
|
20
20
|
readCurrentBusinessConfig,
|
|
21
21
|
resolveKbAutoDiscoveryFeature
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-I7H72CMN.js";
|
|
23
|
+
import "./chunk-WG27BD67.js";
|
|
24
24
|
import {
|
|
25
25
|
peekCliToken
|
|
26
26
|
} from "./chunk-UWQXGF44.js";
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
configureBusinessCommands,
|
|
19
19
|
parseProgram,
|
|
20
20
|
runCommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BEVWMPCZ.js";
|
|
22
22
|
import "./chunk-GYODT7C4.js";
|
|
23
23
|
import "./chunk-L7MT53VM.js";
|
|
24
24
|
import {
|
|
@@ -35,13 +35,8 @@ import {
|
|
|
35
35
|
import {
|
|
36
36
|
printError,
|
|
37
37
|
printOutput
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-6W56UQPO.js";
|
|
39
39
|
import "./chunk-KE5WGBXS.js";
|
|
40
|
-
import {
|
|
41
|
-
executeCapability,
|
|
42
|
-
uploadInputFileBytes
|
|
43
|
-
} from "./chunk-STHIGWWC.js";
|
|
44
|
-
import "./chunk-6E6HCTP2.js";
|
|
45
40
|
import {
|
|
46
41
|
beginBusinessSkillRefresh,
|
|
47
42
|
failInstallation,
|
|
@@ -54,10 +49,12 @@ import {
|
|
|
54
49
|
runHostCompatCheck,
|
|
55
50
|
shouldSkipAutoSync,
|
|
56
51
|
syncRefreshedBusinessSkills
|
|
57
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-I7H72CMN.js";
|
|
58
53
|
import {
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
executeCapability,
|
|
55
|
+
getLocalCliPackageInfo,
|
|
56
|
+
uploadInputFileBytes
|
|
57
|
+
} from "./chunk-WG27BD67.js";
|
|
61
58
|
import {
|
|
62
59
|
SecureStoreAuthError,
|
|
63
60
|
getCliToken,
|
|
@@ -2128,18 +2125,18 @@ function registerInstall(program2) {
|
|
|
2128
2125
|
// src/core/onboarding/entrypoint.ts
|
|
2129
2126
|
function isOnboardingInvocation(args) {
|
|
2130
2127
|
const positional = [];
|
|
2131
|
-
const values = /* @__PURE__ */ new Set(["--host", "--cli-token-file", "--mcp-url", "--format", "--jq", "--agent-context", "--source", "--region", "--language", "--website-env", "--session-id", "--run-id", "--choice", "--sample", "--confirm-business-project-id", "--browser", "--scenario"]);
|
|
2128
|
+
const values = /* @__PURE__ */ new Set(["--host", "--cli-token-file", "--mcp-url", "--format", "--jq", "--agent-context", "--source", "--region", "--language", "--website-env", "--session-id", "--run-id", "--answered-question", "--choice", "--sample", "--confirm-business-project-id", "--browser", "--scenario"]);
|
|
2132
2129
|
for (let i = 0; i < args.length; i++) {
|
|
2133
2130
|
const argument = args[i];
|
|
2134
2131
|
if (argument === "--") break;
|
|
2135
2132
|
if (argument.startsWith("-")) {
|
|
2136
2133
|
if (!argument.includes("=") && values.has(argument)) i++;
|
|
2137
|
-
else if (["--sdk-complete", "--upload-metric-event", "--prepare-approver", "--start-only"].includes(argument) && ["true", "false", "0", "1", "yes", "no", "y", "n", "on", "off"].includes((args[i + 1] ?? "").toLowerCase())) i++;
|
|
2134
|
+
else if (["--sdk-complete", "--upload-metric-event", "--prepare-approver", "--draft-only", "--start-only", "--wait-report"].includes(argument) && ["true", "false", "0", "1", "yes", "no", "y", "n", "on", "off"].includes((args[i + 1] ?? "").toLowerCase())) i++;
|
|
2138
2135
|
continue;
|
|
2139
2136
|
}
|
|
2140
2137
|
positional.push(argument);
|
|
2141
2138
|
}
|
|
2142
|
-
return positional.length === 3 && positional[0] === "analysis" && positional[1] === "onboarding" && ["run", "status", "growth", "experiment-plan", "experiment-launch"].includes(positional[2]);
|
|
2139
|
+
return positional.length === 3 && positional[0] === "analysis" && positional[1] === "onboarding" && ["run", "status", "progress", "growth", "experiment-plan", "experiment-launch"].includes(positional[2]);
|
|
2143
2140
|
}
|
|
2144
2141
|
|
|
2145
2142
|
// src/index.ts
|
|
@@ -2167,49 +2164,49 @@ function warnLoadFailure(label, err) {
|
|
|
2167
2164
|
async function loadCommands() {
|
|
2168
2165
|
const commands = [];
|
|
2169
2166
|
try {
|
|
2170
|
-
const teAnalysis = await import("./te-analysis-
|
|
2167
|
+
const teAnalysis = await import("./te-analysis-43RCOPUA.js");
|
|
2171
2168
|
commands.push(...teAnalysis.default);
|
|
2172
2169
|
} catch (err) {
|
|
2173
2170
|
warnLoadFailure("domain te-analysis", err);
|
|
2174
2171
|
}
|
|
2175
2172
|
try {
|
|
2176
|
-
const engage = await import("./te-engage-
|
|
2173
|
+
const engage = await import("./te-engage-LBKIZXZO.js");
|
|
2177
2174
|
commands.push(...engage.default);
|
|
2178
2175
|
} catch (err) {
|
|
2179
2176
|
warnLoadFailure("domain te-engage", err);
|
|
2180
2177
|
}
|
|
2181
2178
|
try {
|
|
2182
|
-
const experiment = await import("./te-experiment-
|
|
2179
|
+
const experiment = await import("./te-experiment-5TPQKN6B.js");
|
|
2183
2180
|
commands.push(...experiment.default);
|
|
2184
2181
|
} catch (err) {
|
|
2185
2182
|
warnLoadFailure("domain te-experiment", err);
|
|
2186
2183
|
}
|
|
2187
2184
|
try {
|
|
2188
|
-
const community = await import("./te-community-
|
|
2185
|
+
const community = await import("./te-community-ECNTP35Z.js");
|
|
2189
2186
|
commands.push(...community.default);
|
|
2190
2187
|
} catch (err) {
|
|
2191
2188
|
warnLoadFailure("domain te-community", err);
|
|
2192
2189
|
}
|
|
2193
2190
|
try {
|
|
2194
|
-
const dataops = await import("./te-dataops-
|
|
2191
|
+
const dataops = await import("./te-dataops-ISEKYRLZ.js");
|
|
2195
2192
|
commands.push(...dataops.default);
|
|
2196
2193
|
} catch (err) {
|
|
2197
2194
|
warnLoadFailure("domain te-dataops", err);
|
|
2198
2195
|
}
|
|
2199
2196
|
try {
|
|
2200
|
-
const teKb = await import("./te-kb-
|
|
2197
|
+
const teKb = await import("./te-kb-SHL56BJ5.js");
|
|
2201
2198
|
commands.push(...teKb.default);
|
|
2202
2199
|
} catch (err) {
|
|
2203
2200
|
warnLoadFailure("domain te-kb", err);
|
|
2204
2201
|
}
|
|
2205
2202
|
try {
|
|
2206
|
-
const teTeam = await import("./te-team-
|
|
2203
|
+
const teTeam = await import("./te-team-EZ3TZTLV.js");
|
|
2207
2204
|
commands.push(...teTeam.default);
|
|
2208
2205
|
} catch (err) {
|
|
2209
2206
|
warnLoadFailure("domain te-team", err);
|
|
2210
2207
|
}
|
|
2211
2208
|
try {
|
|
2212
|
-
const teAgent = await import("./te-agent-
|
|
2209
|
+
const teAgent = await import("./te-agent-QWZC36YS.js");
|
|
2213
2210
|
commands.push(...teAgent.default);
|
|
2214
2211
|
} catch (err) {
|
|
2215
2212
|
warnLoadFailure("domain te-agent", err);
|
|
@@ -2223,7 +2220,7 @@ async function loadCommands() {
|
|
|
2223
2220
|
const automation = await import("./automation-IMDCJUML.js");
|
|
2224
2221
|
commands.push(...automation.default);
|
|
2225
2222
|
try {
|
|
2226
|
-
const things = await import("./things-
|
|
2223
|
+
const things = await import("./things-UBMLTY3S.js");
|
|
2227
2224
|
commands.push(...things.default);
|
|
2228
2225
|
} catch (err) {
|
|
2229
2226
|
warnLoadFailure("domain things", err);
|
|
@@ -2241,19 +2238,19 @@ async function loadCommands() {
|
|
|
2241
2238
|
warnLoadFailure("domain te-system", err);
|
|
2242
2239
|
}
|
|
2243
2240
|
try {
|
|
2244
|
-
const metadata = await import("./metadata-
|
|
2241
|
+
const metadata = await import("./metadata-OUJPEMLD.js");
|
|
2245
2242
|
commands.push(...metadata.default);
|
|
2246
2243
|
} catch (err) {
|
|
2247
2244
|
warnLoadFailure("domain metadata", err);
|
|
2248
2245
|
}
|
|
2249
2246
|
try {
|
|
2250
|
-
const personalSemanticPreference = await import("./personal-semantic-preference-
|
|
2247
|
+
const personalSemanticPreference = await import("./personal-semantic-preference-WEAIZQXM.js");
|
|
2251
2248
|
commands.push(...personalSemanticPreference.default);
|
|
2252
2249
|
} catch (err) {
|
|
2253
2250
|
warnLoadFailure("domain personal-semantic-preference", err);
|
|
2254
2251
|
}
|
|
2255
2252
|
try {
|
|
2256
|
-
const projectSemantic = await import("./project-semantic-
|
|
2253
|
+
const projectSemantic = await import("./project-semantic-6VXUYU4A.js");
|
|
2257
2254
|
commands.push(...projectSemantic.default);
|
|
2258
2255
|
} catch (err) {
|
|
2259
2256
|
warnLoadFailure("domain project-semantic", err);
|
|
@@ -2271,7 +2268,7 @@ async function loadCommands() {
|
|
|
2271
2268
|
warnLoadFailure("domain context", err);
|
|
2272
2269
|
}
|
|
2273
2270
|
try {
|
|
2274
|
-
const aiMonitor = await import("./ai-monitor-
|
|
2271
|
+
const aiMonitor = await import("./ai-monitor-OOOD4QDK.js");
|
|
2275
2272
|
commands.push(...aiMonitor.default);
|
|
2276
2273
|
} catch (err) {
|
|
2277
2274
|
warnLoadFailure("domain ai-monitor", err);
|
|
@@ -2286,7 +2283,7 @@ async function loadCommands() {
|
|
|
2286
2283
|
}
|
|
2287
2284
|
async function registerAuthCommands() {
|
|
2288
2285
|
try {
|
|
2289
|
-
const { registerAuth } = await import("./auth-
|
|
2286
|
+
const { registerAuth } = await import("./auth-6BUUY5XS.js");
|
|
2290
2287
|
registerAuth(program);
|
|
2291
2288
|
} catch (err) {
|
|
2292
2289
|
warnLoadFailure("auth commands", err);
|
|
@@ -2294,7 +2291,7 @@ async function registerAuthCommands() {
|
|
|
2294
2291
|
}
|
|
2295
2292
|
async function registerConfigCommands() {
|
|
2296
2293
|
try {
|
|
2297
|
-
const { registerConfig } = await import("./config-
|
|
2294
|
+
const { registerConfig } = await import("./config-N5V4VNER.js");
|
|
2298
2295
|
registerConfig(program);
|
|
2299
2296
|
} catch (err) {
|
|
2300
2297
|
warnLoadFailure("config commands", err);
|
|
@@ -2302,7 +2299,7 @@ async function registerConfigCommands() {
|
|
|
2302
2299
|
}
|
|
2303
2300
|
async function registerCapabilityCommands() {
|
|
2304
2301
|
try {
|
|
2305
|
-
const { registerCapability } = await import("./capability-
|
|
2302
|
+
const { registerCapability } = await import("./capability-XXFCANX7.js");
|
|
2306
2303
|
registerCapability(program);
|
|
2307
2304
|
} catch (err) {
|
|
2308
2305
|
warnLoadFailure("capability commands", err);
|
|
@@ -2310,7 +2307,7 @@ async function registerCapabilityCommands() {
|
|
|
2310
2307
|
}
|
|
2311
2308
|
async function registerSyncCommand() {
|
|
2312
2309
|
try {
|
|
2313
|
-
const { registerSync } = await import("./sync-
|
|
2310
|
+
const { registerSync } = await import("./sync-BAV3UY46.js");
|
|
2314
2311
|
registerSync(program);
|
|
2315
2312
|
} catch (err) {
|
|
2316
2313
|
warnLoadFailure("sync commands", err);
|
|
@@ -2326,7 +2323,7 @@ async function registerModelCommand() {
|
|
|
2326
2323
|
}
|
|
2327
2324
|
async function registerUpdateCommand() {
|
|
2328
2325
|
try {
|
|
2329
|
-
const { registerUpdate } = await import("./update-
|
|
2326
|
+
const { registerUpdate } = await import("./update-WE7VNRKZ.js");
|
|
2330
2327
|
registerUpdate(program);
|
|
2331
2328
|
} catch (err) {
|
|
2332
2329
|
warnLoadFailure("update commands", err);
|
|
@@ -1,18 +1,16 @@
|
|
|
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-KDRE7SWM.js";
|
|
5
5
|
import {
|
|
6
6
|
createCapabilityCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FPPCXG6K.js";
|
|
8
8
|
import {
|
|
9
9
|
registerCapabilityGatewayRoute
|
|
10
10
|
} from "./chunk-AWW2T2WL.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-SQEK6S4X.js";
|
|
15
|
-
import "./chunk-PUSFEC6B.js";
|
|
11
|
+
import "./chunk-6W56UQPO.js";
|
|
12
|
+
import "./chunk-I7H72CMN.js";
|
|
13
|
+
import "./chunk-WG27BD67.js";
|
|
16
14
|
import "./chunk-UWQXGF44.js";
|
|
17
15
|
import "./chunk-IGU3R2JD.js";
|
|
18
16
|
import "./chunk-MTK4ZE7W.js";
|
package/dist/{personal-semantic-preference-BCOSI4DO.js → personal-semantic-preference-WEAIZQXM.js}
RENAMED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createCapabilityCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FPPCXG6K.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCapabilityGatewayRoute
|
|
7
7
|
} from "./chunk-AWW2T2WL.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-SQEK6S4X.js";
|
|
12
|
-
import "./chunk-PUSFEC6B.js";
|
|
8
|
+
import "./chunk-6W56UQPO.js";
|
|
9
|
+
import "./chunk-I7H72CMN.js";
|
|
10
|
+
import "./chunk-WG27BD67.js";
|
|
13
11
|
import "./chunk-UWQXGF44.js";
|
|
14
12
|
import "./chunk-IGU3R2JD.js";
|
|
15
13
|
import "./chunk-MTK4ZE7W.js";
|
|
@@ -3,23 +3,21 @@ import {
|
|
|
3
3
|
assertOutputPathAvailable,
|
|
4
4
|
downloadAnalysisArtifact,
|
|
5
5
|
withAsyncArtifactLifecycle
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KDRE7SWM.js";
|
|
7
7
|
import {
|
|
8
8
|
registerCapabilityGatewayRoute,
|
|
9
9
|
resolveGatewayDomain
|
|
10
10
|
} from "./chunk-AWW2T2WL.js";
|
|
11
11
|
import {
|
|
12
12
|
withOutputMetadata
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6W56UQPO.js";
|
|
14
|
+
import "./chunk-I7H72CMN.js";
|
|
14
15
|
import {
|
|
15
16
|
CapabilityGatewayError,
|
|
16
17
|
dryRunCapabilityWithEnvelope,
|
|
17
18
|
executeCapabilityWithEnvelope,
|
|
18
19
|
validateCapabilityWithEnvelope
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-6E6HCTP2.js";
|
|
21
|
-
import "./chunk-SQEK6S4X.js";
|
|
22
|
-
import "./chunk-PUSFEC6B.js";
|
|
20
|
+
} from "./chunk-WG27BD67.js";
|
|
23
21
|
import "./chunk-UWQXGF44.js";
|
|
24
22
|
import "./chunk-IGU3R2JD.js";
|
|
25
23
|
import "./chunk-MTK4ZE7W.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-7K24F7T2.js";
|
|
29
29
|
import {
|
|
30
30
|
printError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-6W56UQPO.js";
|
|
32
32
|
import {
|
|
33
33
|
TeAgentApiError,
|
|
34
34
|
TeAgentCredentialsError,
|
|
@@ -37,8 +37,8 @@ import {
|
|
|
37
37
|
postToMainApp,
|
|
38
38
|
uploadToMainApp
|
|
39
39
|
} from "./chunk-KE5WGBXS.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-I7H72CMN.js";
|
|
41
|
+
import "./chunk-WG27BD67.js";
|
|
42
42
|
import "./chunk-UWQXGF44.js";
|
|
43
43
|
import "./chunk-IGU3R2JD.js";
|
|
44
44
|
import "./chunk-MTK4ZE7W.js";
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
waitForAnalysisRun,
|
|
11
11
|
withAsyncArtifactLifecycle,
|
|
12
12
|
withInterruptSignal
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KDRE7SWM.js";
|
|
14
14
|
import {
|
|
15
15
|
createCapabilityCommand,
|
|
16
16
|
definitionIntentSnapshotFlag,
|
|
17
17
|
modelDefinitionIntentSnapshotFlag
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FPPCXG6K.js";
|
|
19
19
|
import {
|
|
20
20
|
registerCapabilityGatewayRoute,
|
|
21
21
|
resolveGatewayDomain
|
|
@@ -26,12 +26,12 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
unwrapOutputData,
|
|
28
28
|
withOutputMetadata
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-6W56UQPO.js";
|
|
30
30
|
import {
|
|
31
31
|
normalizeResourceUrlFields,
|
|
32
32
|
normalizeResourceUrls,
|
|
33
33
|
resolvePublicWebHost
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-I7H72CMN.js";
|
|
35
35
|
import {
|
|
36
36
|
CapabilityGatewayError,
|
|
37
37
|
buildCapabilityGatewayUrl,
|
|
@@ -45,10 +45,7 @@ import {
|
|
|
45
45
|
uploadInputFile,
|
|
46
46
|
validateCapability,
|
|
47
47
|
validateCapabilityWithEnvelope
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-6E6HCTP2.js";
|
|
50
|
-
import "./chunk-SQEK6S4X.js";
|
|
51
|
-
import "./chunk-PUSFEC6B.js";
|
|
48
|
+
} from "./chunk-WG27BD67.js";
|
|
52
49
|
import {
|
|
53
50
|
getCliToken
|
|
54
51
|
} from "./chunk-UWQXGF44.js";
|
|
@@ -11912,8 +11909,11 @@ function input(ctx) {
|
|
|
11912
11909
|
sdk_complete: ctx.bool("sdk-complete"),
|
|
11913
11910
|
upload_metric_event: ctx.bool("upload-metric-event"),
|
|
11914
11911
|
prepare_approver: ctx.bool("prepare-approver"),
|
|
11912
|
+
draft_only: ctx.bool("draft-only"),
|
|
11915
11913
|
run_id: ctx.str("run-id") || void 0,
|
|
11916
|
-
|
|
11914
|
+
answered_question: ctx.str("answered-question") || void 0,
|
|
11915
|
+
start_only: ctx.bool("start-only"),
|
|
11916
|
+
wait_report: ctx.bool("wait-report")
|
|
11917
11917
|
};
|
|
11918
11918
|
}
|
|
11919
11919
|
function invoke(ctx, action) {
|
|
@@ -11937,9 +11937,9 @@ var onboardingRun = {
|
|
|
11937
11937
|
flags: [
|
|
11938
11938
|
...sharedFlags,
|
|
11939
11939
|
{ name: "source", type: "string", required: false, desc: "Local AI tool: codex, claude-code, cursor, or other. This is not an authorization credential." },
|
|
11940
|
-
{ name: "region", type: "string", required: false, desc: "
|
|
11940
|
+
{ name: "region", type: "string", required: false, desc: "Website market: cn, jp, kr, or us. Test signup supports jp, kr, and us." },
|
|
11941
11941
|
{ name: "language", type: "string", required: false, desc: "Conversation language: zh-CN, en-US, ja-JP, or ko-KR. Use --region for the market when it differs from the language default." },
|
|
11942
|
-
{ name: "website-env", type: "string", required: false, desc: "
|
|
11942
|
+
{ name: "website-env", type: "string", required: false, desc: "Website signup environment: production (default) or test (overseas)." },
|
|
11943
11943
|
{ name: "choice", type: "string", required: false, desc: "Select demo or business after the user chooses an experience." },
|
|
11944
11944
|
{ name: "sample", type: "string", required: false, desc: "Select a sample after the user chooses it: star-island or season-pass." },
|
|
11945
11945
|
{ name: "confirm-business-project-id", type: "number", required: false, desc: "Confirm the eligible business project for a legacy account." },
|
|
@@ -11955,7 +11955,10 @@ var onboardingStatus = {
|
|
|
11955
11955
|
command: "status",
|
|
11956
11956
|
risk: "read",
|
|
11957
11957
|
description: "Read PLG onboarding progress, authorization continuation and sample preparation without advancing.",
|
|
11958
|
-
flags:
|
|
11958
|
+
flags: [
|
|
11959
|
+
...sharedFlags,
|
|
11960
|
+
{ name: "run-id", type: "string", desc: "Read the existing experiment draft and review choices for this session." }
|
|
11961
|
+
],
|
|
11959
11962
|
dryRun: (ctx) => invoke(ctx, "plan"),
|
|
11960
11963
|
execute: (ctx) => invoke(ctx, "status")
|
|
11961
11964
|
};
|
|
@@ -11974,11 +11977,14 @@ var onboardingExperimentPlan = {
|
|
|
11974
11977
|
resource: "onboarding",
|
|
11975
11978
|
command: "experiment-plan",
|
|
11976
11979
|
risk: "write",
|
|
11977
|
-
description: "Generate
|
|
11980
|
+
description: "Generate a PLG Demo A/B plan or record an answered question on its saved draft.",
|
|
11978
11981
|
flags: [
|
|
11979
11982
|
{ ...sharedFlags[0], required: true },
|
|
11980
11983
|
scenarioFlag,
|
|
11981
|
-
{ name: "prepare-approver", type: "boolean", desc: "Compatibility flag.
|
|
11984
|
+
{ name: "prepare-approver", type: "boolean", desc: "Compatibility flag. By default planning prepares the signed-in Demo approver." },
|
|
11985
|
+
{ name: "draft-only", type: "boolean", desc: "Save a reviewable plan. The launch command will prepare the approver after confirmation." },
|
|
11986
|
+
{ name: "answered-question", type: "string", desc: "Record a completed draft question: review_audience, review_pilot, or review_no_reward. Requires --run-id." },
|
|
11987
|
+
{ name: "run-id", type: "string", desc: "Use with --answered-question to continue review of this saved draft." },
|
|
11982
11988
|
{ name: "upload-metric-event", type: "boolean", desc: "Submit exactly one synthetic payment_success event to the current Demo project." }
|
|
11983
11989
|
],
|
|
11984
11990
|
dryRun: (ctx) => invoke(ctx, "experiment-plan-preview"),
|
|
@@ -11993,12 +11999,23 @@ var onboardingExperimentLaunch = {
|
|
|
11993
11999
|
flags: [
|
|
11994
12000
|
{ ...sharedFlags[0], required: true },
|
|
11995
12001
|
{ name: "run-id", type: "string", required: true, desc: "Run ID returned by experiment-plan for the confirmed Demo proposal." },
|
|
12002
|
+
{ name: "wait-report", type: "boolean", desc: "Wait up to 25 seconds for the replay sample-size query. Resume the same run on wait_experiment_report." },
|
|
11996
12003
|
{ name: "start-only", type: "boolean", desc: "Return the link when the experiment is running. Resume with the same run ID to send the replay." }
|
|
11997
12004
|
],
|
|
11998
12005
|
dryRun: (ctx) => invoke(ctx, "experiment-launch-preview"),
|
|
11999
12006
|
execute: (ctx) => invoke(ctx, "experiment-launch")
|
|
12000
12007
|
};
|
|
12001
|
-
var
|
|
12008
|
+
var onboardingProgress = {
|
|
12009
|
+
service: "analysis",
|
|
12010
|
+
resource: "onboarding",
|
|
12011
|
+
command: "progress",
|
|
12012
|
+
risk: "write",
|
|
12013
|
+
description: "Read this account\u2019s versioned PLG Demo progress, or verify a saved replay and complete the round.",
|
|
12014
|
+
flags: [{ name: "run-id", type: "string", desc: "Verify and complete this saved Demo run. Omit to read progress." }],
|
|
12015
|
+
execute: (ctx) => invoke(ctx, "progress"),
|
|
12016
|
+
dryRun: (ctx) => invoke(ctx, "progress-preview")
|
|
12017
|
+
};
|
|
12018
|
+
var onboarding_default = [onboardingRun, onboardingStatus, onboardingProgress, onboardingGrowth, onboardingExperimentPlan, onboardingExperimentLaunch];
|
|
12002
12019
|
|
|
12003
12020
|
// src/commands/te-analysis/index.ts
|
|
12004
12021
|
registerCapabilityGatewayRoute("analysis", { gatewayDomain: "analysis" });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createCapabilityCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FPPCXG6K.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCapabilityGatewayRoute,
|
|
7
7
|
resolveGatewayDomain
|
|
@@ -9,17 +9,14 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
unwrapOutputData,
|
|
11
11
|
withOutputMetadata
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6W56UQPO.js";
|
|
13
|
+
import "./chunk-I7H72CMN.js";
|
|
13
14
|
import {
|
|
14
15
|
CapabilityGatewayError,
|
|
15
16
|
buildCapabilityGatewayUrl,
|
|
16
|
-
requestCapabilityGatewayWithEnvelope
|
|
17
|
-
} from "./chunk-STHIGWWC.js";
|
|
18
|
-
import {
|
|
17
|
+
requestCapabilityGatewayWithEnvelope,
|
|
19
18
|
sourceLoggedFetch
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-SQEK6S4X.js";
|
|
22
|
-
import "./chunk-PUSFEC6B.js";
|
|
19
|
+
} from "./chunk-WG27BD67.js";
|
|
23
20
|
import {
|
|
24
21
|
SecureStoreAuthError,
|
|
25
22
|
getCliToken,
|
|
@@ -4,12 +4,11 @@ import {
|
|
|
4
4
|
} from "./chunk-Z6WSCIHM.js";
|
|
5
5
|
import {
|
|
6
6
|
printError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6W56UQPO.js";
|
|
8
|
+
import "./chunk-I7H72CMN.js";
|
|
8
9
|
import {
|
|
9
10
|
sourceLoggedFetch
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-SQEK6S4X.js";
|
|
12
|
-
import "./chunk-PUSFEC6B.js";
|
|
11
|
+
} from "./chunk-WG27BD67.js";
|
|
13
12
|
import {
|
|
14
13
|
SecureStoreAuthError,
|
|
15
14
|
getCliToken,
|