@thinkingai/ae-cli 6.1.28 → 6.1.29
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 +24 -4
- package/README.zh.md +24 -4
- package/bin/ae-cli.js +5 -0
- package/bin/runtime-capabilities.json +5 -0
- package/cli-installation-guide.md +24 -3
- package/dist/{auth-NKD5Z5BQ.js → auth-OBQ5KVQM.js} +30 -12
- package/dist/{automation-K32V2NKP.js → automation-NAR5DDGL.js} +6 -6
- package/dist/{capability-4CGSL7PK.js → capability-LFSVNI5B.js} +54 -26
- package/dist/chunk-2UW3Y463.js +2289 -0
- package/dist/{chunk-QW3R6O7L.js → chunk-3SDHJOCR.js} +57 -15
- package/dist/chunk-6HAUVWOQ.js +132 -0
- package/dist/{chunk-KHS64JZQ.js → chunk-72NJKS7O.js} +4 -4
- package/dist/{chunk-UUD5RB36.js → chunk-7JAVT5TK.js} +3 -3
- package/dist/{chunk-GTPWDLTE.js → chunk-CVCTFLSO.js} +35 -14
- package/dist/{chunk-P7KL7IOH.js → chunk-H3K5UGYC.js} +2 -2
- package/dist/{chunk-P6VFCH3P.js → chunk-IN7KKL6K.js} +2 -2
- package/dist/{chunk-T44M3PLZ.js → chunk-JEUXDY3B.js} +1 -1
- package/dist/{chunk-LMCYSVVA.js → chunk-JNVVJ273.js} +51 -37
- package/dist/{chunk-JJJIP2XQ.js → chunk-N6XBLRB7.js} +2 -2
- package/dist/{chunk-QSAR3GHY.js → chunk-OAWPT7VP.js} +2 -2
- package/dist/{chunk-UF244C5C.js → chunk-PWXDWMCW.js} +7 -7
- package/dist/{chunk-2IYIYSUO.js → chunk-QVRIDN42.js} +2 -2
- package/dist/chunk-QZLRHGVH.js +222 -0
- package/dist/{chunk-GI5BMEZO.js → chunk-QZUVLFNR.js} +1 -1
- package/dist/{chunk-2UWS5CUP.js → chunk-RJHGDWSC.js} +3 -3
- package/dist/{chunk-UJ7UPRXK.js → chunk-VCZE3IWO.js} +10 -8
- package/dist/{chunk-X7DRLE62.js → chunk-YVG6QD3V.js} +1 -1
- package/dist/{chunk-ZW4VMY5H.js → chunk-Z3Q2AEIN.js} +152 -98
- package/dist/{community-report-client-S2K3A3Q6.js → community-report-client-TJVCLZ3K.js} +1 -1
- package/dist/compat-check-CII6B74E.js +32 -0
- package/dist/{config-ASSAAIOI.js → config-YZ6O2UQ2.js} +38 -6
- package/dist/{context-6RWLVOM5.js → context-F6FCGTF3.js} +4 -4
- package/dist/{data-integration-EXSUPUDZ.js → data-integration-6UAZO4GG.js} +207 -24
- package/dist/{evaluation-5YT4QLCL.js → evaluation-4LO2O4AF.js} +4 -4
- package/dist/index.js +297 -70
- package/dist/{local-data-upload-client-7HCPGIS3.js → local-data-upload-client-KCMG6J62.js} +1 -1
- package/dist/{memory-VCYLVPMI.js → memory-HHPX3NF2.js} +6 -6
- package/dist/{metadata-YGI5M6OF.js → metadata-TIFY24LW.js} +16 -8
- package/dist/{model-DPJHSD73.js → model-7UHGWYVR.js} +4 -4
- package/dist/{personal-semantic-preference-76TBKAPY.js → personal-semantic-preference-WKJEGPTM.js} +7 -6
- package/dist/{project-semantic-XOEBO2Q5.js → project-semantic-EIQVZNHW.js} +11 -10
- package/dist/{sync-7PP6KQ75.js → sync-RV3OPCTI.js} +8 -7
- package/dist/{te-agent-PJVAPKBD.js → te-agent-5ENVZJUH.js} +11 -7
- package/dist/{te-analysis-OX62G5VD.js → te-analysis-USIK6ZZG.js} +185 -33
- package/dist/{te-community-QN3WMPNT.js → te-community-WE2UU4XV.js} +720 -228
- package/dist/{te-dataops-UKD2XN3E.js → te-dataops-XNMO7MBF.js} +6 -5
- package/dist/{te-engage-X3DIXPRA.js → te-engage-6C3HCFQR.js} +13 -12
- package/dist/{te-experiment-MEIIK3DP.js → te-experiment-LVTRI3QK.js} +55 -21
- package/dist/{te-kb-73EWDFDF.js → te-kb-TUPGMVBY.js} +409 -85
- package/dist/{te-system-IE7NCKC3.js → te-system-YM657FKO.js} +6 -6
- package/dist/{te-team-MGQ5CNRW.js → te-team-G4VEJJNL.js} +7 -6
- package/dist/{things-4JIBCA55.js → things-22KQWC23.js} +7 -7
- package/dist/{update-AX66IFMJ.js → update-XX4ILU7X.js} +11 -7
- package/dist/{workspace-Q5NMEKEN.js → workspace-LYDAP647.js} +6 -6
- package/package.json +17 -7
- package/skills/ae-agent/references/resource-package.md +4 -0
- package/skills/ae-analysis/SKILL.md +14 -10
- package/skills/ae-analysis/references/agent_review_preflight.md +52 -11
- package/skills/ae-analysis/references/agent_review_priorities_comparisons.md +5 -3
- package/skills/ae-analysis/references/agent_review_submit_to_page.md +57 -25
- package/skills/ae-analysis/references/command_index.md +7 -3
- package/skills/ae-analysis/references/governance_recommendation_export.md +31 -17
- package/skills/ae-analysis/references/governance_recommendation_run_update.md +13 -0
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +9 -1
- package/skills/ae-analysis/references/scenario_append.md +6 -0
- package/skills/ae-analysis/references/scenario_begin.md +11 -0
- package/skills/ae-analysis/references/scenario_collect.md +10 -2
- package/skills/ae-analysis/references/scenario_evaluation.md +6 -18
- package/skills/ae-analysis/references/scenario_get.md +15 -0
- package/skills/ae-analysis/references/scenario_list.md +64 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +14 -1
- package/skills/ae-community/SKILL.md +77 -27
- package/skills/ae-community/references/community-analyzing-theme-comment.md +10 -8
- package/skills/ae-community/references/community-data-quality.md +68 -0
- package/skills/ae-community/references/community-query-evidence.md +85 -0
- package/skills/ae-community/references/community-scenario-capabilities.md +137 -0
- package/skills/ae-community/references/community-weekly-report.md +6 -3
- package/skills/ae-community/references/get_channel_info.md +7 -4
- package/skills/ae-community/references/get_comment_tag_analysis.md +3 -3
- package/skills/ae-community/references/get_comments_summary.md +4 -4
- package/skills/ae-community/references/get_corpus_tags.md +3 -3
- package/skills/ae-community/references/get_daily_summary.md +3 -3
- package/skills/ae-community/references/get_hot_topics.md +3 -3
- package/skills/ae-community/references/get_livestream_analysis.md +3 -3
- package/skills/ae-community/references/get_livestream_detail.md +4 -4
- package/skills/ae-community/references/get_livestream_list.md +3 -3
- package/skills/ae-community/references/get_livestream_overview.md +3 -3
- package/skills/ae-community/references/get_livestream_room_metrics.md +3 -3
- package/skills/ae-community/references/get_livestream_rooms.md +3 -3
- package/skills/ae-community/references/get_overview_metrics.md +3 -3
- package/skills/ae-community/references/get_post_detail.md +4 -4
- package/skills/ae-community/references/get_risk_content.md +5 -5
- package/skills/ae-community/references/get_sentiment_overview.md +4 -4
- package/skills/ae-community/references/get_tag_trends.md +3 -3
- package/skills/ae-community/references/get_topic_detail.md +3 -3
- package/skills/ae-community/references/list_sources.md +28 -0
- package/skills/ae-community/references/list_spaces.md +39 -0
- package/skills/ae-community/references/search_posts.md +21 -7
- package/skills/ae-data-integration/SKILL.md +6 -4
- package/skills/ae-data-integration/references/error-handling.md +1 -0
- package/skills/ae-data-integration/references/handoff.md +1 -1
- package/skills/ae-data-integration/references/sink-upload.md +11 -0
- package/skills/ae-data-integration/references/source-inspect.md +2 -1
- package/skills/ae-data-integration/references/transform.md +1 -1
- package/skills/ae-data-integration/references/ue-mapping.md +1 -1
- package/skills/ae-experiment/SKILL.md +7 -1
- package/skills/ae-experiment/references/manage_experiment.md +18 -1
- package/skills/ae-experiment/references/query_experiment_detail.md +7 -0
- package/skills/ae-experiment/references/save_experiment.md +76 -2
- package/skills/ae-experiment/references/save_submit_experiment.md +7 -0
- package/skills/ae-kb/SKILL.md +33 -6
- package/skills/ae-kb/references/publication.md +81 -0
- package/skills/ae-kb/references/query-workflow.md +14 -1
- package/skills/ae-metadata/SKILL.md +2 -2
- package/skills/ae-metadata/references/metadata_data_table_get.md +35 -0
- package/dist/chunk-ELCR235M.js +0 -1429
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveHost
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IN7KKL6K.js";
|
|
5
5
|
import {
|
|
6
6
|
printError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QZLRHGVH.js";
|
|
8
8
|
import {
|
|
9
9
|
internalCallSourceHeaders
|
|
10
10
|
} from "./chunk-Y74WTIKJ.js";
|
|
11
|
+
import "./chunk-2UW3Y463.js";
|
|
11
12
|
import {
|
|
12
13
|
SecureStoreAuthError,
|
|
13
14
|
getCliToken
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-H3K5UGYC.js";
|
|
15
16
|
import {
|
|
16
17
|
safeJsonParse
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JNVVJ273.js";
|
|
18
19
|
import {
|
|
19
20
|
CliApiError,
|
|
20
21
|
CliValidationError,
|
|
21
22
|
PermissionError,
|
|
22
23
|
externalCliTokenRequestOptions,
|
|
23
24
|
logger
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-Z3Q2AEIN.js";
|
|
25
26
|
|
|
26
27
|
// src/commands/te-dataops/shared.ts
|
|
27
28
|
import { randomBytes } from "crypto";
|
|
@@ -1,14 +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-
|
|
5
|
-
import {
|
|
6
|
-
CapabilityGatewayError,
|
|
7
|
-
buildCapabilityGatewayUrl,
|
|
8
|
-
fetchCapabilityGateway,
|
|
9
|
-
requestCapabilityGateway,
|
|
10
|
-
requestCapabilityGatewayWithEnvelope
|
|
11
|
-
} from "./chunk-QW3R6O7L.js";
|
|
4
|
+
} from "./chunk-VCZE3IWO.js";
|
|
12
5
|
import {
|
|
13
6
|
registerCapabilityGatewayRoute,
|
|
14
7
|
resolveGatewayDomain
|
|
@@ -16,13 +9,21 @@ import {
|
|
|
16
9
|
import {
|
|
17
10
|
printError,
|
|
18
11
|
withOutputMetadata
|
|
19
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QZLRHGVH.js";
|
|
13
|
+
import {
|
|
14
|
+
CapabilityGatewayError,
|
|
15
|
+
buildCapabilityGatewayUrl,
|
|
16
|
+
fetchCapabilityGateway,
|
|
17
|
+
requestCapabilityGateway,
|
|
18
|
+
requestCapabilityGatewayWithEnvelope
|
|
19
|
+
} from "./chunk-3SDHJOCR.js";
|
|
20
20
|
import "./chunk-Y74WTIKJ.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-2UW3Y463.js";
|
|
22
|
+
import "./chunk-H3K5UGYC.js";
|
|
23
|
+
import "./chunk-JNVVJ273.js";
|
|
23
24
|
import {
|
|
24
25
|
CliValidationError
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-Z3Q2AEIN.js";
|
|
26
27
|
|
|
27
28
|
// src/commands/te-engage/shared.ts
|
|
28
29
|
function createEngageCapabilityCommand(cliService, config) {
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createCapabilityCommand
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-QW3R6O7L.js";
|
|
4
|
+
} from "./chunk-VCZE3IWO.js";
|
|
6
5
|
import {
|
|
7
6
|
registerCapabilityGatewayRoute
|
|
8
7
|
} from "./chunk-KPQY44JQ.js";
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-QZLRHGVH.js";
|
|
9
|
+
import "./chunk-3SDHJOCR.js";
|
|
10
10
|
import "./chunk-Y74WTIKJ.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-2UW3Y463.js";
|
|
12
|
+
import "./chunk-H3K5UGYC.js";
|
|
13
|
+
import "./chunk-JNVVJ273.js";
|
|
14
|
+
import {
|
|
15
|
+
CliValidationError
|
|
16
|
+
} from "./chunk-Z3Q2AEIN.js";
|
|
14
17
|
|
|
15
18
|
// src/commands/te-experiment/capability-shared.ts
|
|
16
19
|
function createExperimentCapabilityCommand(config) {
|
|
@@ -206,6 +209,7 @@ var experimentManage = createExperimentCapabilityCommand({
|
|
|
206
209
|
command: "manage",
|
|
207
210
|
capabilityId: "experiment.experiment.manage",
|
|
208
211
|
description: "Update an experiment status.",
|
|
212
|
+
helpText: "For scheduled Feature starts, submit with --target-status pending after saving startTime.\nUsing --target-status running starts immediately. Read experiment detail first: when\nstart_time_adjustment_required is true, an early start uses the current server time.",
|
|
209
213
|
flags: [
|
|
210
214
|
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
|
|
211
215
|
{ name: "exp-id", type: "string", required: true, desc: "Experiment ID." },
|
|
@@ -237,11 +241,38 @@ var experimentReadyCheck = createExperimentCapabilityCommand({
|
|
|
237
241
|
});
|
|
238
242
|
|
|
239
243
|
// src/commands/te-experiment/experiment/save.ts
|
|
244
|
+
function readTimestamp(ctx, name) {
|
|
245
|
+
const value = ctx.str(name);
|
|
246
|
+
if (!(ctx.has?.(name) ?? value !== "")) return void 0;
|
|
247
|
+
if (!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?(?:Z|[+-]\d{2}:\d{2})$/.test(value) || !Number.isFinite(Date.parse(value))) {
|
|
248
|
+
throw new CliValidationError(`Flag --${name} must be an ISO-8601 timestamp with a timezone offset`);
|
|
249
|
+
}
|
|
250
|
+
return value;
|
|
251
|
+
}
|
|
252
|
+
function buildInput4(ctx) {
|
|
253
|
+
const req = { ...readRequiredObject(ctx, "req") };
|
|
254
|
+
const startTime = readTimestamp(ctx, "start-time");
|
|
255
|
+
const fixedEndTime = readTimestamp(ctx, "fixed-end-time");
|
|
256
|
+
if (startTime !== void 0 || fixedEndTime !== void 0) {
|
|
257
|
+
if (req.expType && req.expType !== "feature") {
|
|
258
|
+
throw new CliValidationError("Flags --start-time and --fixed-end-time only support Feature experiments");
|
|
259
|
+
}
|
|
260
|
+
if (startTime !== void 0) req.startTime = startTime;
|
|
261
|
+
if (fixedEndTime !== void 0) {
|
|
262
|
+
if (req.expCycle != null && (typeof req.expCycle !== "object" || Array.isArray(req.expCycle))) {
|
|
263
|
+
throw new CliValidationError("Field req.expCycle must be a JSON object when --fixed-end-time is provided");
|
|
264
|
+
}
|
|
265
|
+
req.expCycle = { ...req.expCycle, cycleType: "time", fixedEndTime };
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return { project_id: ctx.num("project-id"), req };
|
|
269
|
+
}
|
|
240
270
|
var experimentSave = createExperimentCapabilityCommand({
|
|
241
271
|
resource: "experiment",
|
|
242
272
|
command: "save",
|
|
243
273
|
capabilityId: "experiment.experiment.save",
|
|
244
|
-
description: "Create or update an experiment
|
|
274
|
+
description: "Create or update an experiment, including Feature start and end times.",
|
|
275
|
+
helpText: "Timing flags override matching fields in --req. Saving does not submit or start an experiment.\nAfter readiness checks, use experiment experiment manage --target-status pending to submit.\nSubmitted Feature experiments with a start time are checked every half hour by the server.\nUse timestamps with minutes 00 or 30 to align with scheduling checks.",
|
|
245
276
|
flags: [
|
|
246
277
|
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
|
|
247
278
|
{
|
|
@@ -249,13 +280,15 @@ var experimentSave = createExperimentCapabilityCommand({
|
|
|
249
280
|
type: "json",
|
|
250
281
|
required: true,
|
|
251
282
|
desc: "Native camelCase request; custom audiences use targeting.definitionRequest, never targetConfig."
|
|
252
|
-
}
|
|
283
|
+
},
|
|
284
|
+
{ name: "start-time", type: "string", desc: "Optional Feature start timestamp with timezone offset; overrides req.startTime. The server clears seconds and milliseconds." },
|
|
285
|
+
{ name: "fixed-end-time", type: "string", desc: "Optional Feature deadline with timezone offset; sets req.expCycle.cycleType=time and overrides fixedEndTime." }
|
|
253
286
|
],
|
|
254
287
|
risk: "write",
|
|
255
288
|
validate: (ctx) => {
|
|
256
|
-
|
|
289
|
+
buildInput4(ctx);
|
|
257
290
|
},
|
|
258
|
-
buildInput:
|
|
291
|
+
buildInput: buildInput4
|
|
259
292
|
});
|
|
260
293
|
|
|
261
294
|
// src/commands/te-experiment/experiment/update-group.ts
|
|
@@ -382,12 +415,13 @@ function readMetrics(ctx) {
|
|
|
382
415
|
}
|
|
383
416
|
return value;
|
|
384
417
|
}
|
|
385
|
-
function
|
|
418
|
+
function buildInput5(ctx) {
|
|
386
419
|
const expId = ctx.str("exp-id").trim();
|
|
387
420
|
const groups = readGroups(ctx);
|
|
388
421
|
if (expId) {
|
|
389
422
|
for (let index = 0; index < groups.length; index += 1) {
|
|
390
|
-
|
|
423
|
+
const expGroupId = groups[index].expGroupId;
|
|
424
|
+
if (typeof expGroupId !== "string" || expGroupId.trim() === "") {
|
|
391
425
|
throw new Error(`Flag --groups[${index}].expGroupId is required when --exp-id is provided`);
|
|
392
426
|
}
|
|
393
427
|
}
|
|
@@ -441,9 +475,9 @@ var externalExperimentSaveSubmit = createExperimentCapabilityCommand({
|
|
|
441
475
|
],
|
|
442
476
|
risk: "write",
|
|
443
477
|
validate: (ctx) => {
|
|
444
|
-
|
|
478
|
+
buildInput5(ctx);
|
|
445
479
|
},
|
|
446
|
-
buildInput:
|
|
480
|
+
buildInput: buildInput5
|
|
447
481
|
});
|
|
448
482
|
|
|
449
483
|
// src/commands/te-experiment/feature/batch-delete.ts
|
|
@@ -464,7 +498,7 @@ var featureBatchDelete = createExperimentCapabilityCommand({
|
|
|
464
498
|
});
|
|
465
499
|
|
|
466
500
|
// src/commands/te-experiment/feature/get.ts
|
|
467
|
-
function
|
|
501
|
+
function buildInput6(ctx) {
|
|
468
502
|
const input = {
|
|
469
503
|
project_id: ctx.num("project-id"),
|
|
470
504
|
feature_key: ctx.str("feature-key")
|
|
@@ -483,7 +517,7 @@ var featureGet = createExperimentCapabilityCommand({
|
|
|
483
517
|
{ name: "version", type: "string", required: false, desc: "Feature version ID." }
|
|
484
518
|
],
|
|
485
519
|
risk: "read",
|
|
486
|
-
buildInput:
|
|
520
|
+
buildInput: buildInput6
|
|
487
521
|
});
|
|
488
522
|
|
|
489
523
|
// src/commands/te-experiment/feature/list.ts
|
|
@@ -638,7 +672,7 @@ var featureWhitelistBatchDelete = createExperimentCapabilityCommand({
|
|
|
638
672
|
});
|
|
639
673
|
|
|
640
674
|
// src/commands/te-experiment/feature-whitelist/list.ts
|
|
641
|
-
function
|
|
675
|
+
function buildInput7(ctx) {
|
|
642
676
|
return {
|
|
643
677
|
project_id: ctx.num("project-id"),
|
|
644
678
|
feature_key: ctx.str("feature-key")
|
|
@@ -654,11 +688,11 @@ var featureWhitelistList = createExperimentCapabilityCommand({
|
|
|
654
688
|
{ name: "feature-key", type: "string", required: true, desc: "Existing Feature key." }
|
|
655
689
|
],
|
|
656
690
|
risk: "read",
|
|
657
|
-
buildInput:
|
|
691
|
+
buildInput: buildInput7
|
|
658
692
|
});
|
|
659
693
|
|
|
660
694
|
// src/commands/te-experiment/feature-whitelist/save.ts
|
|
661
|
-
function
|
|
695
|
+
function buildInput8(ctx) {
|
|
662
696
|
const ruleId = ctx.str("rule-id").trim();
|
|
663
697
|
const status = ctx.str("status").trim() || "draft";
|
|
664
698
|
if (!["draft", "enable", "disable"].includes(status)) {
|
|
@@ -695,9 +729,9 @@ var featureWhitelistSave = createExperimentCapabilityCommand({
|
|
|
695
729
|
],
|
|
696
730
|
risk: "write",
|
|
697
731
|
validate: (ctx) => {
|
|
698
|
-
|
|
732
|
+
buildInput8(ctx);
|
|
699
733
|
},
|
|
700
|
-
buildInput:
|
|
734
|
+
buildInput: buildInput8
|
|
701
735
|
});
|
|
702
736
|
|
|
703
737
|
// src/commands/te-experiment/feature-whitelist/update-status.ts
|