@thinkingai/ae-cli 6.1.40 → 6.1.42
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 +18 -10
- package/dist/{ai-monitor-DST4NDOK.js → ai-monitor-E62FT3TT.js} +5 -7
- package/dist/ai-monitor.js +6 -8
- package/dist/{auth-BD3NIY3T.js → auth-SDK5OAGP.js} +4 -4
- package/dist/{capability-3NJOQHZQ.js → capability-F6YWGPZZ.js} +8 -10
- package/dist/{chunk-FRJUB66C.js → chunk-CDBW5RE6.js} +2 -2
- package/dist/{chunk-VXKKTUU2.js → chunk-DIYDOOBL.js} +2 -2
- package/dist/{chunk-WRYXVIJP.js → chunk-DZRQGI2Z.js} +1 -1
- package/dist/{chunk-SQEK6S4X.js → chunk-GTENC5CO.js} +1209 -183
- package/dist/{chunk-IY5G42YY.js → chunk-KAZ5FWPB.js} +2 -2
- package/dist/{chunk-KBJHBVO7.js → chunk-N2QILIGH.js} +1 -1
- package/dist/{chunk-STHIGWWC.js → chunk-WG27BD67.js} +75 -4
- package/dist/{chunk-RW6Z2NN3.js → chunk-ZK6KEGUR.js} +6 -6
- package/dist/{chunk-24DCOJBJ.js → chunk-ZSKLELL7.js} +2 -2
- package/dist/{compat-check-7VBBE7KO.js → compat-check-J5K3NO5G.js} +2 -2
- package/dist/{config-LFRZBPH5.js → config-O3W6XLHO.js} +4 -4
- package/dist/index.js +29 -31
- package/dist/{metadata-AR64J76Z.js → metadata-3GA2N27I.js} +5 -7
- package/dist/{personal-semantic-preference-BCOSI4DO.js → personal-semantic-preference-T2HFF2V4.js} +4 -6
- package/dist/{project-semantic-DJLXAXLD.js → project-semantic-WJOP2HGJ.js} +4 -6
- package/dist/{sync-4TUIQ2PZ.js → sync-K65X7ODO.js} +3 -3
- package/dist/{te-agent-EMDWA3M6.js → te-agent-QWZC36YS.js} +1 -3
- package/dist/{te-analysis-NJHSEKGW.js → te-analysis-7E2GVKOR.js} +29 -14
- package/dist/{te-community-JSUSZEYH.js → te-community-NQNSLNON.js} +5 -8
- package/dist/{te-dataops-I264BUTI.js → te-dataops-PMI7UX36.js} +3 -4
- package/dist/{te-engage-XNMQYO5N.js → te-engage-EZBV5IPQ.js} +4 -6
- package/dist/{te-experiment-5SCHMYVO.js → te-experiment-RDB3TYBG.js} +4 -6
- package/dist/{te-kb-QQ53TNRZ.js → te-kb-OWPJB243.js} +4 -6
- package/dist/{te-team-V6BBI52R.js → te-team-NCMN34IL.js} +4 -6
- package/dist/{things-THHGDSEC.js → things-UBMLTY3S.js} +1 -3
- package/dist/{update-53ZUXWV5.js → update-LYVYF3KJ.js} +3 -3
- package/dist/{web-runtime-HIXOSNJ6.js → web-runtime-XJWDFVP3.js} +343 -664
- package/package.json +1 -1
- package/skills/ae-onboarding/SKILL.md +42 -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 -21
- package/skills/ae-onboarding/references/onboarding_experiment_launch.md +5 -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 +20 -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
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "./chunk-AWW2T2WL.js";
|
|
5
5
|
import {
|
|
6
6
|
withOutputMetadata
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-N2QILIGH.js";
|
|
8
8
|
import {
|
|
9
9
|
dryRunCapabilityWithEnvelope,
|
|
10
10
|
executeCapabilityWithEnvelope,
|
|
11
11
|
validateCapabilityWithEnvelope
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WG27BD67.js";
|
|
13
13
|
import {
|
|
14
14
|
CliValidationError
|
|
15
15
|
} 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,
|
|
@@ -9,21 +9,21 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
printError,
|
|
11
11
|
printOutput
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-N2QILIGH.js";
|
|
13
13
|
import {
|
|
14
14
|
TeAgentApiError,
|
|
15
15
|
TeAgentCredentialsError
|
|
16
16
|
} from "./chunk-KE5WGBXS.js";
|
|
17
|
-
import {
|
|
18
|
-
CapabilityGatewayError
|
|
19
|
-
} from "./chunk-STHIGWWC.js";
|
|
20
17
|
import {
|
|
21
18
|
BusinessDisabledError,
|
|
22
19
|
assertBusinessEnabled,
|
|
23
20
|
businessForCommand,
|
|
24
21
|
formatCapabilityMissCompatHint,
|
|
25
22
|
readCurrentBusinessConfig
|
|
26
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-GTENC5CO.js";
|
|
24
|
+
import {
|
|
25
|
+
CapabilityGatewayError
|
|
26
|
+
} from "./chunk-WG27BD67.js";
|
|
27
27
|
import {
|
|
28
28
|
CredentialStoreUnreadableError,
|
|
29
29
|
SecureStoreAuthError
|
|
@@ -470,7 +470,7 @@ function createRuntimeContext(cmd, opts, globalOpts) {
|
|
|
470
470
|
}
|
|
471
471
|
const ctx = {
|
|
472
472
|
async onboarding(action, input) {
|
|
473
|
-
const { invokeOnboarding } = await import("./web-runtime-
|
|
473
|
+
const { invokeOnboarding } = await import("./web-runtime-XJWDFVP3.js");
|
|
474
474
|
return invokeOnboarding(action, input);
|
|
475
475
|
},
|
|
476
476
|
has(name) {
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
readOutputMetadata,
|
|
7
7
|
unwrapOutputData,
|
|
8
8
|
withOutputMetadata
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-N2QILIGH.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";
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
shouldNotifyCompat,
|
|
13
13
|
shouldSkipAutoSync,
|
|
14
14
|
shouldSkipCompatCheck
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-GTENC5CO.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-CDBW5RE6.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-N2QILIGH.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-GTENC5CO.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-ZK6KEGUR.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-N2QILIGH.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-GTENC5CO.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,
|
|
@@ -2112,6 +2109,7 @@ function registerInstall(program2) {
|
|
|
2112
2109
|
`CLI: ${report.cli.package}@${report.cli.version} (${report.cli.verified ? "verified" : "not verified"})`,
|
|
2113
2110
|
`Command: ${report.cli.path ?? "pending"}`,
|
|
2114
2111
|
`Global Skills: ${report.skills.installed_count}/${report.skills.expected_count} verified in ${report.skills.directory}`,
|
|
2112
|
+
...report.local_language ? [`Detected local language is ${report.local_language} (local_language).`] : [],
|
|
2115
2113
|
...report.skills.failures.map((failure) => `- ${failure.skill}: ${failure.reason}`),
|
|
2116
2114
|
...report.cli.warnings,
|
|
2117
2115
|
...report.auth.warnings,
|
|
@@ -2128,18 +2126,18 @@ function registerInstall(program2) {
|
|
|
2128
2126
|
// src/core/onboarding/entrypoint.ts
|
|
2129
2127
|
function isOnboardingInvocation(args) {
|
|
2130
2128
|
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"]);
|
|
2129
|
+
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
2130
|
for (let i = 0; i < args.length; i++) {
|
|
2133
2131
|
const argument = args[i];
|
|
2134
2132
|
if (argument === "--") break;
|
|
2135
2133
|
if (argument.startsWith("-")) {
|
|
2136
2134
|
if (!argument.includes("=") && values.has(argument)) i++;
|
|
2137
|
-
else if (["--sdk-complete", "--upload-metric-event", "--prepare-approver", "--start-only", "--wait-report"].includes(argument) && ["true", "false", "0", "1", "yes", "no", "y", "n", "on", "off"].includes((args[i + 1] ?? "").toLowerCase())) i++;
|
|
2135
|
+
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
2136
|
continue;
|
|
2139
2137
|
}
|
|
2140
2138
|
positional.push(argument);
|
|
2141
2139
|
}
|
|
2142
|
-
return positional.length === 3 && positional[0] === "analysis" && positional[1] === "onboarding" && ["run", "status", "growth", "experiment-plan", "experiment-launch"].includes(positional[2]);
|
|
2140
|
+
return positional.length === 3 && positional[0] === "analysis" && positional[1] === "onboarding" && ["run", "status", "progress", "growth", "experiment-plan", "experiment-launch"].includes(positional[2]);
|
|
2143
2141
|
}
|
|
2144
2142
|
|
|
2145
2143
|
// src/index.ts
|
|
@@ -2167,49 +2165,49 @@ function warnLoadFailure(label, err) {
|
|
|
2167
2165
|
async function loadCommands() {
|
|
2168
2166
|
const commands = [];
|
|
2169
2167
|
try {
|
|
2170
|
-
const teAnalysis = await import("./te-analysis-
|
|
2168
|
+
const teAnalysis = await import("./te-analysis-7E2GVKOR.js");
|
|
2171
2169
|
commands.push(...teAnalysis.default);
|
|
2172
2170
|
} catch (err) {
|
|
2173
2171
|
warnLoadFailure("domain te-analysis", err);
|
|
2174
2172
|
}
|
|
2175
2173
|
try {
|
|
2176
|
-
const engage = await import("./te-engage-
|
|
2174
|
+
const engage = await import("./te-engage-EZBV5IPQ.js");
|
|
2177
2175
|
commands.push(...engage.default);
|
|
2178
2176
|
} catch (err) {
|
|
2179
2177
|
warnLoadFailure("domain te-engage", err);
|
|
2180
2178
|
}
|
|
2181
2179
|
try {
|
|
2182
|
-
const experiment = await import("./te-experiment-
|
|
2180
|
+
const experiment = await import("./te-experiment-RDB3TYBG.js");
|
|
2183
2181
|
commands.push(...experiment.default);
|
|
2184
2182
|
} catch (err) {
|
|
2185
2183
|
warnLoadFailure("domain te-experiment", err);
|
|
2186
2184
|
}
|
|
2187
2185
|
try {
|
|
2188
|
-
const community = await import("./te-community-
|
|
2186
|
+
const community = await import("./te-community-NQNSLNON.js");
|
|
2189
2187
|
commands.push(...community.default);
|
|
2190
2188
|
} catch (err) {
|
|
2191
2189
|
warnLoadFailure("domain te-community", err);
|
|
2192
2190
|
}
|
|
2193
2191
|
try {
|
|
2194
|
-
const dataops = await import("./te-dataops-
|
|
2192
|
+
const dataops = await import("./te-dataops-PMI7UX36.js");
|
|
2195
2193
|
commands.push(...dataops.default);
|
|
2196
2194
|
} catch (err) {
|
|
2197
2195
|
warnLoadFailure("domain te-dataops", err);
|
|
2198
2196
|
}
|
|
2199
2197
|
try {
|
|
2200
|
-
const teKb = await import("./te-kb-
|
|
2198
|
+
const teKb = await import("./te-kb-OWPJB243.js");
|
|
2201
2199
|
commands.push(...teKb.default);
|
|
2202
2200
|
} catch (err) {
|
|
2203
2201
|
warnLoadFailure("domain te-kb", err);
|
|
2204
2202
|
}
|
|
2205
2203
|
try {
|
|
2206
|
-
const teTeam = await import("./te-team-
|
|
2204
|
+
const teTeam = await import("./te-team-NCMN34IL.js");
|
|
2207
2205
|
commands.push(...teTeam.default);
|
|
2208
2206
|
} catch (err) {
|
|
2209
2207
|
warnLoadFailure("domain te-team", err);
|
|
2210
2208
|
}
|
|
2211
2209
|
try {
|
|
2212
|
-
const teAgent = await import("./te-agent-
|
|
2210
|
+
const teAgent = await import("./te-agent-QWZC36YS.js");
|
|
2213
2211
|
commands.push(...teAgent.default);
|
|
2214
2212
|
} catch (err) {
|
|
2215
2213
|
warnLoadFailure("domain te-agent", err);
|
|
@@ -2223,7 +2221,7 @@ async function loadCommands() {
|
|
|
2223
2221
|
const automation = await import("./automation-IMDCJUML.js");
|
|
2224
2222
|
commands.push(...automation.default);
|
|
2225
2223
|
try {
|
|
2226
|
-
const things = await import("./things-
|
|
2224
|
+
const things = await import("./things-UBMLTY3S.js");
|
|
2227
2225
|
commands.push(...things.default);
|
|
2228
2226
|
} catch (err) {
|
|
2229
2227
|
warnLoadFailure("domain things", err);
|
|
@@ -2241,19 +2239,19 @@ async function loadCommands() {
|
|
|
2241
2239
|
warnLoadFailure("domain te-system", err);
|
|
2242
2240
|
}
|
|
2243
2241
|
try {
|
|
2244
|
-
const metadata = await import("./metadata-
|
|
2242
|
+
const metadata = await import("./metadata-3GA2N27I.js");
|
|
2245
2243
|
commands.push(...metadata.default);
|
|
2246
2244
|
} catch (err) {
|
|
2247
2245
|
warnLoadFailure("domain metadata", err);
|
|
2248
2246
|
}
|
|
2249
2247
|
try {
|
|
2250
|
-
const personalSemanticPreference = await import("./personal-semantic-preference-
|
|
2248
|
+
const personalSemanticPreference = await import("./personal-semantic-preference-T2HFF2V4.js");
|
|
2251
2249
|
commands.push(...personalSemanticPreference.default);
|
|
2252
2250
|
} catch (err) {
|
|
2253
2251
|
warnLoadFailure("domain personal-semantic-preference", err);
|
|
2254
2252
|
}
|
|
2255
2253
|
try {
|
|
2256
|
-
const projectSemantic = await import("./project-semantic-
|
|
2254
|
+
const projectSemantic = await import("./project-semantic-WJOP2HGJ.js");
|
|
2257
2255
|
commands.push(...projectSemantic.default);
|
|
2258
2256
|
} catch (err) {
|
|
2259
2257
|
warnLoadFailure("domain project-semantic", err);
|
|
@@ -2271,7 +2269,7 @@ async function loadCommands() {
|
|
|
2271
2269
|
warnLoadFailure("domain context", err);
|
|
2272
2270
|
}
|
|
2273
2271
|
try {
|
|
2274
|
-
const aiMonitor = await import("./ai-monitor-
|
|
2272
|
+
const aiMonitor = await import("./ai-monitor-E62FT3TT.js");
|
|
2275
2273
|
commands.push(...aiMonitor.default);
|
|
2276
2274
|
} catch (err) {
|
|
2277
2275
|
warnLoadFailure("domain ai-monitor", err);
|
|
@@ -2286,7 +2284,7 @@ async function loadCommands() {
|
|
|
2286
2284
|
}
|
|
2287
2285
|
async function registerAuthCommands() {
|
|
2288
2286
|
try {
|
|
2289
|
-
const { registerAuth } = await import("./auth-
|
|
2287
|
+
const { registerAuth } = await import("./auth-SDK5OAGP.js");
|
|
2290
2288
|
registerAuth(program);
|
|
2291
2289
|
} catch (err) {
|
|
2292
2290
|
warnLoadFailure("auth commands", err);
|
|
@@ -2294,7 +2292,7 @@ async function registerAuthCommands() {
|
|
|
2294
2292
|
}
|
|
2295
2293
|
async function registerConfigCommands() {
|
|
2296
2294
|
try {
|
|
2297
|
-
const { registerConfig } = await import("./config-
|
|
2295
|
+
const { registerConfig } = await import("./config-O3W6XLHO.js");
|
|
2298
2296
|
registerConfig(program);
|
|
2299
2297
|
} catch (err) {
|
|
2300
2298
|
warnLoadFailure("config commands", err);
|
|
@@ -2302,7 +2300,7 @@ async function registerConfigCommands() {
|
|
|
2302
2300
|
}
|
|
2303
2301
|
async function registerCapabilityCommands() {
|
|
2304
2302
|
try {
|
|
2305
|
-
const { registerCapability } = await import("./capability-
|
|
2303
|
+
const { registerCapability } = await import("./capability-F6YWGPZZ.js");
|
|
2306
2304
|
registerCapability(program);
|
|
2307
2305
|
} catch (err) {
|
|
2308
2306
|
warnLoadFailure("capability commands", err);
|
|
@@ -2310,7 +2308,7 @@ async function registerCapabilityCommands() {
|
|
|
2310
2308
|
}
|
|
2311
2309
|
async function registerSyncCommand() {
|
|
2312
2310
|
try {
|
|
2313
|
-
const { registerSync } = await import("./sync-
|
|
2311
|
+
const { registerSync } = await import("./sync-K65X7ODO.js");
|
|
2314
2312
|
registerSync(program);
|
|
2315
2313
|
} catch (err) {
|
|
2316
2314
|
warnLoadFailure("sync commands", err);
|
|
@@ -2326,7 +2324,7 @@ async function registerModelCommand() {
|
|
|
2326
2324
|
}
|
|
2327
2325
|
async function registerUpdateCommand() {
|
|
2328
2326
|
try {
|
|
2329
|
-
const { registerUpdate } = await import("./update-
|
|
2327
|
+
const { registerUpdate } = await import("./update-LYVYF3KJ.js");
|
|
2330
2328
|
registerUpdate(program);
|
|
2331
2329
|
} catch (err) {
|
|
2332
2330
|
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-ZSKLELL7.js";
|
|
5
5
|
import {
|
|
6
6
|
createCapabilityCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KAZ5FWPB.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-N2QILIGH.js";
|
|
12
|
+
import "./chunk-GTENC5CO.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-T2HFF2V4.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-KAZ5FWPB.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-N2QILIGH.js";
|
|
9
|
+
import "./chunk-GTENC5CO.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-ZSKLELL7.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-N2QILIGH.js";
|
|
14
|
+
import "./chunk-GTENC5CO.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-N2QILIGH.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-GTENC5CO.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-ZSKLELL7.js";
|
|
14
14
|
import {
|
|
15
15
|
createCapabilityCommand,
|
|
16
16
|
definitionIntentSnapshotFlag,
|
|
17
17
|
modelDefinitionIntentSnapshotFlag
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KAZ5FWPB.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-N2QILIGH.js";
|
|
30
30
|
import {
|
|
31
31
|
normalizeResourceUrlFields,
|
|
32
32
|
normalizeResourceUrls,
|
|
33
33
|
resolvePublicWebHost
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-GTENC5CO.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,7 +11909,9 @@ 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,
|
|
11914
|
+
answered_question: ctx.str("answered-question") || void 0,
|
|
11916
11915
|
start_only: ctx.bool("start-only"),
|
|
11917
11916
|
wait_report: ctx.bool("wait-report")
|
|
11918
11917
|
};
|
|
@@ -11938,9 +11937,9 @@ var onboardingRun = {
|
|
|
11938
11937
|
flags: [
|
|
11939
11938
|
...sharedFlags,
|
|
11940
11939
|
{ name: "source", type: "string", required: false, desc: "Local AI tool: codex, claude-code, cursor, or other. This is not an authorization credential." },
|
|
11941
|
-
{ 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." },
|
|
11942
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." },
|
|
11943
|
-
{ 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)." },
|
|
11944
11943
|
{ name: "choice", type: "string", required: false, desc: "Select demo or business after the user chooses an experience." },
|
|
11945
11944
|
{ name: "sample", type: "string", required: false, desc: "Select a sample after the user chooses it: star-island or season-pass." },
|
|
11946
11945
|
{ name: "confirm-business-project-id", type: "number", required: false, desc: "Confirm the eligible business project for a legacy account." },
|
|
@@ -11956,7 +11955,10 @@ var onboardingStatus = {
|
|
|
11956
11955
|
command: "status",
|
|
11957
11956
|
risk: "read",
|
|
11958
11957
|
description: "Read PLG onboarding progress, authorization continuation and sample preparation without advancing.",
|
|
11959
|
-
flags:
|
|
11958
|
+
flags: [
|
|
11959
|
+
...sharedFlags,
|
|
11960
|
+
{ name: "run-id", type: "string", desc: "Read the existing experiment draft and review choices for this session." }
|
|
11961
|
+
],
|
|
11960
11962
|
dryRun: (ctx) => invoke(ctx, "plan"),
|
|
11961
11963
|
execute: (ctx) => invoke(ctx, "status")
|
|
11962
11964
|
};
|
|
@@ -11975,11 +11977,14 @@ var onboardingExperimentPlan = {
|
|
|
11975
11977
|
resource: "onboarding",
|
|
11976
11978
|
command: "experiment-plan",
|
|
11977
11979
|
risk: "write",
|
|
11978
|
-
description: "Generate
|
|
11980
|
+
description: "Generate a PLG Demo A/B plan or record an answered question on its saved draft.",
|
|
11979
11981
|
flags: [
|
|
11980
11982
|
{ ...sharedFlags[0], required: true },
|
|
11981
11983
|
scenarioFlag,
|
|
11982
|
-
{ 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." },
|
|
11983
11988
|
{ name: "upload-metric-event", type: "boolean", desc: "Submit exactly one synthetic payment_success event to the current Demo project." }
|
|
11984
11989
|
],
|
|
11985
11990
|
dryRun: (ctx) => invoke(ctx, "experiment-plan-preview"),
|
|
@@ -12000,7 +12005,17 @@ var onboardingExperimentLaunch = {
|
|
|
12000
12005
|
dryRun: (ctx) => invoke(ctx, "experiment-launch-preview"),
|
|
12001
12006
|
execute: (ctx) => invoke(ctx, "experiment-launch")
|
|
12002
12007
|
};
|
|
12003
|
-
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];
|
|
12004
12019
|
|
|
12005
12020
|
// src/commands/te-analysis/index.ts
|
|
12006
12021
|
registerCapabilityGatewayRoute("analysis", { gatewayDomain: "analysis" });
|