@thinkingai/ae-cli 6.1.43 → 6.1.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 +2 -0
- package/README.zh.md +2 -0
- package/cli-installation-guide.md +13 -9
- package/dist/{ai-monitor-4VPHXQTL.js → ai-monitor-CAK6LX3J.js} +4 -4
- package/dist/ai-monitor.js +5 -5
- package/dist/{auth-RDSS2LUT.js → auth-CARBYPT2.js} +3 -3
- package/dist/{capability-CUOEIB5F.js → capability-CD2TODQN.js} +2 -2
- package/dist/{chunk-3FSYICDW.js → chunk-6SXMN2HQ.js} +1 -1
- package/dist/{chunk-TFEGYB4X.js → chunk-DR6IAQLM.js} +1 -1
- package/dist/{chunk-3TV24AVQ.js → chunk-FN4Y4XQG.js} +3 -3
- package/dist/{chunk-IAZ4AMVY.js → chunk-GXHCY75L.js} +145 -84
- package/dist/{chunk-LSELMDKQ.js → chunk-P56F3AO6.js} +1 -1
- package/dist/{chunk-BFSWGXM2.js → chunk-PHQHSCUW.js} +1 -1
- package/dist/{chunk-4MOCV6HU.js → chunk-PIZBBGBC.js} +1 -1
- package/dist/{compat-check-L3C7HCVG.js → compat-check-YXTLKMRM.js} +1 -1
- package/dist/{config-LAF5MMYK.js → config-5LO3IDS5.js} +3 -3
- package/dist/index.js +22 -21
- package/dist/{metadata-T6HYAU7E.js → metadata-JAN6NDRD.js} +4 -4
- package/dist/{personal-semantic-preference-WCZBOA7V.js → personal-semantic-preference-5FWTTPZW.js} +3 -3
- package/dist/{project-semantic-WW5AZST3.js → project-semantic-ZWDZ6RUS.js} +3 -3
- package/dist/{sync-6PL25V42.js → sync-WCN2LED5.js} +2 -2
- package/dist/{te-analysis-KKRECQ7F.js → te-analysis-OU3EUF3U.js} +106 -7
- package/dist/{te-community-6RGX7IWH.js → te-community-RWUUPHQJ.js} +3 -3
- package/dist/{te-dataops-RSPBC6WJ.js → te-dataops-RPKBT3JE.js} +2 -2
- package/dist/{te-engage-FIPP5L2Z.js → te-engage-4NZ26PAP.js} +3 -3
- package/dist/{te-experiment-KQ5CBYKI.js → te-experiment-PQD3SIKN.js} +3 -3
- package/dist/{te-kb-XYSDXZUG.js → te-kb-NX7E4CTY.js} +2 -2
- package/dist/{te-team-R6MZ4RK2.js → te-team-GMEOSXKP.js} +2 -2
- package/dist/{update-C6G4P3C7.js → update-273NPGJJ.js} +2 -2
- package/dist/{web-runtime-UGKPTBOK.js → web-runtime-ULVLVEJ4.js} +90 -38
- package/package.json +2 -2
- package/skills/ae-analysis-global/SKILL.md +2 -2
- package/skills/ae-community/SKILL.md +1 -1
- package/skills/ae-data-integration/SKILL.md +1 -1
- package/skills/ae-data-integration-helper/SKILL.md +1 -1
- package/skills/ae-generate-tracking-code/SKILL.md +1 -1
- package/skills/ae-generate-tracking-plan/SKILL.md +2 -2
- package/skills/ae-migrate-tracking-code/SKILL.md +2 -2
- package/skills/ae-onboarding/SKILL.md +26 -14
- package/skills/ae-onboarding/references/about-ae.md +28 -6
- package/skills/ae-onboarding/references/business-data.md +3 -3
- package/skills/ae-onboarding/references/demo-journey.md +4 -2
- package/skills/ae-onboarding/references/demo-operations.md +14 -5
- package/skills/ae-onboarding/references/member_invitation_send.md +21 -0
- package/skills/ae-onboarding/references/onboarding_growth.md +3 -5
- package/skills/ae-onboarding/references/onboarding_run.md +31 -5
- package/skills/ae-onboarding/references/presentation.md +18 -18
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-FN4Y4XQG.js";
|
|
22
22
|
import "./chunk-GYODT7C4.js";
|
|
23
23
|
import "./chunk-PWG5IGCP.js";
|
|
24
24
|
import "./chunk-3DTMWDJX.js";
|
|
@@ -36,8 +36,9 @@ import {
|
|
|
36
36
|
import {
|
|
37
37
|
printError,
|
|
38
38
|
printOutput
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-PIZBBGBC.js";
|
|
40
40
|
import {
|
|
41
|
+
AE_CLI_SUPPORT_HELP,
|
|
41
42
|
beginBusinessSkillRefresh,
|
|
42
43
|
failInstallation,
|
|
43
44
|
fetchCliConfig,
|
|
@@ -49,7 +50,7 @@ import {
|
|
|
49
50
|
runHostCompatCheck,
|
|
50
51
|
shouldSkipAutoSync,
|
|
51
52
|
syncRefreshedBusinessSkills
|
|
52
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-GXHCY75L.js";
|
|
53
54
|
import {
|
|
54
55
|
executeCapability,
|
|
55
56
|
getLocalCliPackageInfo,
|
|
@@ -2080,7 +2081,7 @@ function getOrCreateCommand(parent, name, description) {
|
|
|
2080
2081
|
|
|
2081
2082
|
// src/commands/install.ts
|
|
2082
2083
|
function registerInstall(program2) {
|
|
2083
|
-
program2.command("install").description("Install and verify this CLI distribution and its matching global Skills").option("--host <url>", "Check authentication for this AE host after installation").addHelpText("after", "\nExamples:\n npx @thinkingai/ae-cli@latest install\n ae-cli install --dry-run --format json\n ae-cli install --host https://your-ae-host.example.com\n\nSkills are installed globally in ~/.agents/skills with client adaptation handled automatically.\nGlobal options: --dry-run, --format json|table. Supports macOS, Linux, and native Windows.\n").action(async (opts) => {
|
|
2084
|
+
program2.command("install").description("Install and verify this CLI distribution and its matching global Skills").option("--host <url>", "Check authentication for this AE host after installation").addHelpText("after", "\nExamples:\n npx @thinkingai/ae-cli@latest install\n ae-cli install --dry-run --format json\n ae-cli install --host https://your-ae-host.example.com\n\nSkills are installed globally in ~/.agents/skills with client adaptation handled automatically.\nGlobal options: --dry-run, --format json|table. Supports macOS, Linux, and native Windows.\n").addHelpText("after", AE_CLI_SUPPORT_HELP).action(async (opts) => {
|
|
2084
2085
|
const pkg2 = getLocalCliPackageInfo();
|
|
2085
2086
|
const global = program2.opts();
|
|
2086
2087
|
const format = program2.getOptionValueSource("format") === "default" && process.stdout.isTTY ? "table" : global.format;
|
|
@@ -2155,7 +2156,7 @@ program.name("ae-cli").version(version).description("CLI tool for ThinkingAI (AE
|
|
|
2155
2156
|
"--dry-run",
|
|
2156
2157
|
"Optional: pre-execution preview without business logic (gateway /dry-run; other transports preview). Use alone to confirm a run; do not stack with --validate",
|
|
2157
2158
|
false
|
|
2158
|
-
).option("--yes", "Skip confirmation for high-risk write operations", false).option("--no-update-check", "Skip host compatibility checks", false);
|
|
2159
|
+
).option("--yes", "Skip confirmation for high-risk write operations", false).option("--no-update-check", "Skip host compatibility checks", false).addHelpText("after", AE_CLI_SUPPORT_HELP);
|
|
2159
2160
|
program.addOption(
|
|
2160
2161
|
new Option("--agent-context <base64url-json>", "Internal agent context payload for gateway telemetry").hideHelp()
|
|
2161
2162
|
);
|
|
@@ -2167,43 +2168,43 @@ function warnLoadFailure(label, err) {
|
|
|
2167
2168
|
async function loadCommands() {
|
|
2168
2169
|
const commands = [];
|
|
2169
2170
|
try {
|
|
2170
|
-
const teAnalysis = await import("./te-analysis-
|
|
2171
|
+
const teAnalysis = await import("./te-analysis-OU3EUF3U.js");
|
|
2171
2172
|
commands.push(...teAnalysis.default);
|
|
2172
2173
|
} catch (err) {
|
|
2173
2174
|
warnLoadFailure("domain te-analysis", err);
|
|
2174
2175
|
}
|
|
2175
2176
|
try {
|
|
2176
|
-
const engage = await import("./te-engage-
|
|
2177
|
+
const engage = await import("./te-engage-4NZ26PAP.js");
|
|
2177
2178
|
commands.push(...engage.default);
|
|
2178
2179
|
} catch (err) {
|
|
2179
2180
|
warnLoadFailure("domain te-engage", err);
|
|
2180
2181
|
}
|
|
2181
2182
|
try {
|
|
2182
|
-
const experiment = await import("./te-experiment-
|
|
2183
|
+
const experiment = await import("./te-experiment-PQD3SIKN.js");
|
|
2183
2184
|
commands.push(...experiment.default);
|
|
2184
2185
|
} catch (err) {
|
|
2185
2186
|
warnLoadFailure("domain te-experiment", err);
|
|
2186
2187
|
}
|
|
2187
2188
|
try {
|
|
2188
|
-
const community = await import("./te-community-
|
|
2189
|
+
const community = await import("./te-community-RWUUPHQJ.js");
|
|
2189
2190
|
commands.push(...community.default);
|
|
2190
2191
|
} catch (err) {
|
|
2191
2192
|
warnLoadFailure("domain te-community", err);
|
|
2192
2193
|
}
|
|
2193
2194
|
try {
|
|
2194
|
-
const dataops = await import("./te-dataops-
|
|
2195
|
+
const dataops = await import("./te-dataops-RPKBT3JE.js");
|
|
2195
2196
|
commands.push(...dataops.default);
|
|
2196
2197
|
} catch (err) {
|
|
2197
2198
|
warnLoadFailure("domain te-dataops", err);
|
|
2198
2199
|
}
|
|
2199
2200
|
try {
|
|
2200
|
-
const teKb = await import("./te-kb-
|
|
2201
|
+
const teKb = await import("./te-kb-NX7E4CTY.js");
|
|
2201
2202
|
commands.push(...teKb.default);
|
|
2202
2203
|
} catch (err) {
|
|
2203
2204
|
warnLoadFailure("domain te-kb", err);
|
|
2204
2205
|
}
|
|
2205
2206
|
try {
|
|
2206
|
-
const teTeam = await import("./te-team-
|
|
2207
|
+
const teTeam = await import("./te-team-GMEOSXKP.js");
|
|
2207
2208
|
commands.push(...teTeam.default);
|
|
2208
2209
|
} catch (err) {
|
|
2209
2210
|
warnLoadFailure("domain te-team", err);
|
|
@@ -2241,19 +2242,19 @@ async function loadCommands() {
|
|
|
2241
2242
|
warnLoadFailure("domain te-system", err);
|
|
2242
2243
|
}
|
|
2243
2244
|
try {
|
|
2244
|
-
const metadata = await import("./metadata-
|
|
2245
|
+
const metadata = await import("./metadata-JAN6NDRD.js");
|
|
2245
2246
|
commands.push(...metadata.default);
|
|
2246
2247
|
} catch (err) {
|
|
2247
2248
|
warnLoadFailure("domain metadata", err);
|
|
2248
2249
|
}
|
|
2249
2250
|
try {
|
|
2250
|
-
const personalSemanticPreference = await import("./personal-semantic-preference-
|
|
2251
|
+
const personalSemanticPreference = await import("./personal-semantic-preference-5FWTTPZW.js");
|
|
2251
2252
|
commands.push(...personalSemanticPreference.default);
|
|
2252
2253
|
} catch (err) {
|
|
2253
2254
|
warnLoadFailure("domain personal-semantic-preference", err);
|
|
2254
2255
|
}
|
|
2255
2256
|
try {
|
|
2256
|
-
const projectSemantic = await import("./project-semantic-
|
|
2257
|
+
const projectSemantic = await import("./project-semantic-ZWDZ6RUS.js");
|
|
2257
2258
|
commands.push(...projectSemantic.default);
|
|
2258
2259
|
} catch (err) {
|
|
2259
2260
|
warnLoadFailure("domain project-semantic", err);
|
|
@@ -2271,7 +2272,7 @@ async function loadCommands() {
|
|
|
2271
2272
|
warnLoadFailure("domain context", err);
|
|
2272
2273
|
}
|
|
2273
2274
|
try {
|
|
2274
|
-
const aiMonitor = await import("./ai-monitor-
|
|
2275
|
+
const aiMonitor = await import("./ai-monitor-CAK6LX3J.js");
|
|
2275
2276
|
commands.push(...aiMonitor.default);
|
|
2276
2277
|
} catch (err) {
|
|
2277
2278
|
warnLoadFailure("domain ai-monitor", err);
|
|
@@ -2286,7 +2287,7 @@ async function loadCommands() {
|
|
|
2286
2287
|
}
|
|
2287
2288
|
async function registerAuthCommands() {
|
|
2288
2289
|
try {
|
|
2289
|
-
const { registerAuth } = await import("./auth-
|
|
2290
|
+
const { registerAuth } = await import("./auth-CARBYPT2.js");
|
|
2290
2291
|
registerAuth(program);
|
|
2291
2292
|
} catch (err) {
|
|
2292
2293
|
warnLoadFailure("auth commands", err);
|
|
@@ -2294,7 +2295,7 @@ async function registerAuthCommands() {
|
|
|
2294
2295
|
}
|
|
2295
2296
|
async function registerConfigCommands() {
|
|
2296
2297
|
try {
|
|
2297
|
-
const { registerConfig } = await import("./config-
|
|
2298
|
+
const { registerConfig } = await import("./config-5LO3IDS5.js");
|
|
2298
2299
|
registerConfig(program);
|
|
2299
2300
|
} catch (err) {
|
|
2300
2301
|
warnLoadFailure("config commands", err);
|
|
@@ -2302,7 +2303,7 @@ async function registerConfigCommands() {
|
|
|
2302
2303
|
}
|
|
2303
2304
|
async function registerCapabilityCommands() {
|
|
2304
2305
|
try {
|
|
2305
|
-
const { registerCapability } = await import("./capability-
|
|
2306
|
+
const { registerCapability } = await import("./capability-CD2TODQN.js");
|
|
2306
2307
|
registerCapability(program);
|
|
2307
2308
|
} catch (err) {
|
|
2308
2309
|
warnLoadFailure("capability commands", err);
|
|
@@ -2310,7 +2311,7 @@ async function registerCapabilityCommands() {
|
|
|
2310
2311
|
}
|
|
2311
2312
|
async function registerSyncCommand() {
|
|
2312
2313
|
try {
|
|
2313
|
-
const { registerSync } = await import("./sync-
|
|
2314
|
+
const { registerSync } = await import("./sync-WCN2LED5.js");
|
|
2314
2315
|
registerSync(program);
|
|
2315
2316
|
} catch (err) {
|
|
2316
2317
|
warnLoadFailure("sync commands", err);
|
|
@@ -2326,7 +2327,7 @@ async function registerModelCommand() {
|
|
|
2326
2327
|
}
|
|
2327
2328
|
async function registerUpdateCommand() {
|
|
2328
2329
|
try {
|
|
2329
|
-
const { registerUpdate } = await import("./update-
|
|
2330
|
+
const { registerUpdate } = await import("./update-273NPGJJ.js");
|
|
2330
2331
|
registerUpdate(program);
|
|
2331
2332
|
} catch (err) {
|
|
2332
2333
|
warnLoadFailure("update commands", err);
|
|
@@ -1,15 +1,15 @@
|
|
|
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-P56F3AO6.js";
|
|
5
5
|
import {
|
|
6
6
|
createCapabilityCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6SXMN2HQ.js";
|
|
8
8
|
import {
|
|
9
9
|
registerCapabilityGatewayRoute
|
|
10
10
|
} from "./chunk-AWW2T2WL.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-PIZBBGBC.js";
|
|
12
|
+
import "./chunk-GXHCY75L.js";
|
|
13
13
|
import "./chunk-7KBENPQF.js";
|
|
14
14
|
import "./chunk-FKTVD63C.js";
|
|
15
15
|
import "./chunk-FEYZBUFQ.js";
|
package/dist/{personal-semantic-preference-WCZBOA7V.js → personal-semantic-preference-5FWTTPZW.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
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-6SXMN2HQ.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCapabilityGatewayRoute
|
|
7
7
|
} from "./chunk-AWW2T2WL.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-PIZBBGBC.js";
|
|
9
|
+
import "./chunk-GXHCY75L.js";
|
|
10
10
|
import "./chunk-7KBENPQF.js";
|
|
11
11
|
import "./chunk-FKTVD63C.js";
|
|
12
12
|
import "./chunk-FEYZBUFQ.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
assertOutputPathAvailable,
|
|
4
4
|
downloadAnalysisArtifact,
|
|
5
5
|
withAsyncArtifactLifecycle
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-P56F3AO6.js";
|
|
7
7
|
import {
|
|
8
8
|
registerCapabilityGatewayRoute,
|
|
9
9
|
resolveGatewayDomain
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
unwrapOutputData,
|
|
13
13
|
withOutputMetadata
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-PIZBBGBC.js";
|
|
15
|
+
import "./chunk-GXHCY75L.js";
|
|
16
16
|
import {
|
|
17
17
|
CapabilityGatewayError,
|
|
18
18
|
dryRunCapabilityWithEnvelope,
|
|
@@ -36,8 +36,8 @@ import {
|
|
|
36
36
|
} from "./chunk-7K24F7T2.js";
|
|
37
37
|
import {
|
|
38
38
|
printError
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-PIZBBGBC.js";
|
|
40
|
+
import "./chunk-GXHCY75L.js";
|
|
41
41
|
import "./chunk-7KBENPQF.js";
|
|
42
42
|
import "./chunk-FKTVD63C.js";
|
|
43
43
|
import "./chunk-FEYZBUFQ.js";
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
waitForAnalysisRun,
|
|
11
11
|
withAsyncArtifactLifecycle,
|
|
12
12
|
withInterruptSignal
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-P56F3AO6.js";
|
|
14
14
|
import {
|
|
15
15
|
createCapabilityCommand,
|
|
16
16
|
definitionIntentSnapshotFlag,
|
|
17
17
|
modelDefinitionIntentSnapshotFlag
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6SXMN2HQ.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-PIZBBGBC.js";
|
|
30
30
|
import {
|
|
31
31
|
normalizeResourceUrlFields,
|
|
32
32
|
normalizeResourceUrls,
|
|
33
33
|
resolvePublicWebHost
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-GXHCY75L.js";
|
|
35
35
|
import {
|
|
36
36
|
CapabilityGatewayError,
|
|
37
37
|
buildCapabilityGatewayUrl,
|
|
@@ -12197,7 +12197,7 @@ var onboardingRun = {
|
|
|
12197
12197
|
...sharedFlags,
|
|
12198
12198
|
{ name: "source", type: "string", required: false, desc: "Local AI tool: codex, claude-code, cursor, or other. This is not an authorization credential." },
|
|
12199
12199
|
{ name: "region", type: "string", required: false, desc: "Website market: cn, jp, kr, or us. Test signup supports jp, kr, and us." },
|
|
12200
|
-
{ name: "language", type: "string", required: false, desc: "
|
|
12200
|
+
{ name: "language", type: "string", required: false, desc: "Display language: zh-CN, en-US, ja-JP, or ko-KR. US onboarding always uses en-US. Use --region to select the market." },
|
|
12201
12201
|
{ name: "website-env", type: "string", required: false, desc: "Website signup environment: production (default) or test (overseas)." },
|
|
12202
12202
|
{ name: "choice", type: "string", required: false, desc: "Select demo or business after the user chooses an experience." },
|
|
12203
12203
|
{ name: "sample", type: "string", required: false, desc: "Select a sample after the user chooses it: star-island or season-pass." },
|
|
@@ -12276,6 +12276,104 @@ var onboardingProgress = {
|
|
|
12276
12276
|
};
|
|
12277
12277
|
var onboarding_default = [onboardingRun, onboardingStatus, onboardingProgress, onboardingGrowth, onboardingExperimentPlan, onboardingExperimentLaunch];
|
|
12278
12278
|
|
|
12279
|
+
// src/commands/te-analysis/member-invitation/send.ts
|
|
12280
|
+
import { randomUUID as randomUUID3 } from "crypto";
|
|
12281
|
+
var capability2 = "analysis.member_invitation.send";
|
|
12282
|
+
var uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
12283
|
+
function invitationInput(ctx) {
|
|
12284
|
+
const email = ctx.str("email").trim().toLowerCase();
|
|
12285
|
+
const projectId = ctx.str("project-id");
|
|
12286
|
+
const projectRole = ctx.str("project-role").trim();
|
|
12287
|
+
const requestId = ctx.str("request-id");
|
|
12288
|
+
if (email.length > 100 || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) {
|
|
12289
|
+
throw new CliValidationError("--email must be a valid email address of at most 100 characters");
|
|
12290
|
+
}
|
|
12291
|
+
if (!/^[1-9]\d{0,9}$/.test(projectId) || Number(projectId) > 2147483647) {
|
|
12292
|
+
throw new CliValidationError("--project-id must be a positive decimal integer at most 2147483647");
|
|
12293
|
+
}
|
|
12294
|
+
if (!projectRole || projectRole.length > 128 || /[\r\n]/.test(projectRole)) {
|
|
12295
|
+
throw new CliValidationError("--project-role must be a non-empty role name of at most 128 characters");
|
|
12296
|
+
}
|
|
12297
|
+
if ((requestId || ctx.has?.("request-id")) && !uuidPattern.test(requestId)) {
|
|
12298
|
+
throw new CliValidationError("--request-id must be a UUID");
|
|
12299
|
+
}
|
|
12300
|
+
return { email, project_id: projectId, project_role: projectRole, request_id: requestId.toLowerCase() || void 0 };
|
|
12301
|
+
}
|
|
12302
|
+
var sendMemberInvitation = {
|
|
12303
|
+
service: "analysis",
|
|
12304
|
+
resource: "member-invitation",
|
|
12305
|
+
command: "send",
|
|
12306
|
+
capabilityId: capability2,
|
|
12307
|
+
description: "Email an invitation to join the current AE company with the selected project role",
|
|
12308
|
+
flags: [
|
|
12309
|
+
{ name: "email", type: "string", required: true, sensitive: true, desc: "Recipient email address" },
|
|
12310
|
+
{ name: "project-id", type: "string", required: true, desc: "Business project ID in the current company" },
|
|
12311
|
+
{ name: "project-role", type: "string", required: true, desc: "Assignable project role name from project role list" },
|
|
12312
|
+
{ name: "request-id", type: "string", desc: "Optional UUID. Reuse the same ID to retry an identical invitation." }
|
|
12313
|
+
],
|
|
12314
|
+
risk: "write",
|
|
12315
|
+
dryRun: (ctx) => ({
|
|
12316
|
+
method: "POST",
|
|
12317
|
+
url: buildCapabilityGatewayUrl(ctx.host(), "analysis", `capabilities/${capability2}/execute`),
|
|
12318
|
+
body: { input: { ...invitationInput(ctx), email: "[REDACTED]" } }
|
|
12319
|
+
}),
|
|
12320
|
+
execute: async (ctx) => {
|
|
12321
|
+
const input2 = invitationInput(ctx);
|
|
12322
|
+
const requestId = input2.request_id ?? randomUUID3();
|
|
12323
|
+
const retryHint = `If you retry the same invitation, pass --request-id ${requestId}.`;
|
|
12324
|
+
try {
|
|
12325
|
+
const result = await executeCapability(ctx.host(), "analysis", capability2, {
|
|
12326
|
+
...input2,
|
|
12327
|
+
request_id: requestId
|
|
12328
|
+
}, {
|
|
12329
|
+
includeClientContextInBody: false,
|
|
12330
|
+
signal: AbortSignal.timeout(5e4)
|
|
12331
|
+
});
|
|
12332
|
+
if (result?.sent !== true) {
|
|
12333
|
+
throw new CapabilityGatewayError(
|
|
12334
|
+
"The invitation service did not confirm sending.",
|
|
12335
|
+
"INVITATION_INVALID_RESPONSE",
|
|
12336
|
+
void 0,
|
|
12337
|
+
retryHint
|
|
12338
|
+
);
|
|
12339
|
+
}
|
|
12340
|
+
return { sent: true, request_id: requestId };
|
|
12341
|
+
} catch (error) {
|
|
12342
|
+
if (error instanceof CapabilityGatewayError) {
|
|
12343
|
+
if (error.httpStatus === 404 || error.code === "CAPABILITY_NOT_FOUND") {
|
|
12344
|
+
throw new CapabilityGatewayError(
|
|
12345
|
+
"Member invitations are unavailable on this AE host.",
|
|
12346
|
+
"MEMBER_INVITATION_UNAVAILABLE",
|
|
12347
|
+
404,
|
|
12348
|
+
error.hint,
|
|
12349
|
+
error.meta
|
|
12350
|
+
);
|
|
12351
|
+
}
|
|
12352
|
+
if ((error.httpStatus ?? 0) >= 500 || error.code === "MEMBER_INVITATION_UNAVAILABLE") {
|
|
12353
|
+
throw new CapabilityGatewayError(
|
|
12354
|
+
error.message,
|
|
12355
|
+
error.code,
|
|
12356
|
+
error.httpStatus,
|
|
12357
|
+
[error.hint, retryHint].filter(Boolean).join(" "),
|
|
12358
|
+
error.meta,
|
|
12359
|
+
error.type,
|
|
12360
|
+
error.details
|
|
12361
|
+
);
|
|
12362
|
+
}
|
|
12363
|
+
}
|
|
12364
|
+
if (error instanceof TypeError || error instanceof DOMException && error.name === "TimeoutError") {
|
|
12365
|
+
throw new CapabilityGatewayError(
|
|
12366
|
+
"The invitation send result could not be confirmed.",
|
|
12367
|
+
"MEMBER_INVITATION_UNAVAILABLE",
|
|
12368
|
+
void 0,
|
|
12369
|
+
retryHint
|
|
12370
|
+
);
|
|
12371
|
+
}
|
|
12372
|
+
throw error;
|
|
12373
|
+
}
|
|
12374
|
+
}
|
|
12375
|
+
};
|
|
12376
|
+
|
|
12279
12377
|
// src/commands/te-analysis/index.ts
|
|
12280
12378
|
registerCapabilityGatewayRoute("analysis", { gatewayDomain: "analysis" });
|
|
12281
12379
|
registerCapabilityGatewayRoute("project", { gatewayDomain: "analysis" });
|
|
@@ -12328,9 +12426,10 @@ var baseCommands = [
|
|
|
12328
12426
|
...scenario_default,
|
|
12329
12427
|
...bad_case_default
|
|
12330
12428
|
];
|
|
12331
|
-
var commands84 = [...baseCommands, ...onboarding_default];
|
|
12429
|
+
var commands84 = [...baseCommands, ...onboarding_default, sendMemberInvitation];
|
|
12332
12430
|
var te_analysis_default = commands84;
|
|
12333
12431
|
export {
|
|
12334
12432
|
baseCommands,
|
|
12335
|
-
te_analysis_default as default
|
|
12433
|
+
te_analysis_default as default,
|
|
12434
|
+
sendMemberInvitation
|
|
12336
12435
|
};
|
|
@@ -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-6SXMN2HQ.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCapabilityGatewayRoute,
|
|
7
7
|
resolveGatewayDomain
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
unwrapOutputData,
|
|
11
11
|
withOutputMetadata
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-PIZBBGBC.js";
|
|
13
|
+
import "./chunk-GXHCY75L.js";
|
|
14
14
|
import {
|
|
15
15
|
CapabilityGatewayError,
|
|
16
16
|
buildCapabilityGatewayUrl,
|
|
@@ -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-6SXMN2HQ.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCapabilityGatewayRoute,
|
|
7
7
|
resolveGatewayDomain
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
printError,
|
|
11
11
|
withOutputMetadata
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-PIZBBGBC.js";
|
|
13
|
+
import "./chunk-GXHCY75L.js";
|
|
14
14
|
import {
|
|
15
15
|
CapabilityGatewayError,
|
|
16
16
|
buildCapabilityGatewayUrl,
|
|
@@ -1,12 +1,12 @@
|
|
|
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-6SXMN2HQ.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCapabilityGatewayRoute
|
|
7
7
|
} from "./chunk-AWW2T2WL.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-PIZBBGBC.js";
|
|
9
|
+
import "./chunk-GXHCY75L.js";
|
|
10
10
|
import "./chunk-7KBENPQF.js";
|
|
11
11
|
import "./chunk-FKTVD63C.js";
|
|
12
12
|
import "./chunk-FEYZBUFQ.js";
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
} from "./chunk-3DTMWDJX.js";
|
|
9
9
|
import {
|
|
10
10
|
printError
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-PIZBBGBC.js";
|
|
12
|
+
import "./chunk-GXHCY75L.js";
|
|
13
13
|
import {
|
|
14
14
|
CapabilityGatewayError
|
|
15
15
|
} from "./chunk-7KBENPQF.js";
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
printError,
|
|
11
11
|
printOutput
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-PIZBBGBC.js";
|
|
13
|
+
import "./chunk-GXHCY75L.js";
|
|
14
14
|
import "./chunk-7KBENPQF.js";
|
|
15
15
|
import "./chunk-FKTVD63C.js";
|
|
16
16
|
import "./chunk-FEYZBUFQ.js";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
printError,
|
|
4
4
|
printOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PIZBBGBC.js";
|
|
6
6
|
import {
|
|
7
7
|
buildVersionInstallPlan,
|
|
8
8
|
exactVersion,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
missingAeHostHint,
|
|
15
15
|
recordVersionSyncResult,
|
|
16
16
|
rememberBusinessConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GXHCY75L.js";
|
|
18
18
|
import {
|
|
19
19
|
getLocalCliPackageInfo
|
|
20
20
|
} from "./chunk-7KBENPQF.js";
|