@thinkingai/ae-cli 6.1.41 → 6.1.43
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 +14 -4
- package/README.zh.md +14 -4
- package/bin/ae-cli.js +3 -0
- package/bin/heari/commander-LICENSE +22 -0
- package/bin/heari/engine.mjs +6136 -0
- package/bin/heari/package.json +6 -0
- package/bin/heari.mjs +29 -0
- package/cli-installation-guide.md +6 -7
- package/dist/{ai-monitor-OOOD4QDK.js → ai-monitor-4VPHXQTL.js} +7 -6
- package/dist/ai-monitor.js +10 -9
- package/dist/{auth-6BUUY5XS.js → auth-RDSS2LUT.js} +18 -16
- package/dist/{automation-IMDCJUML.js → automation-VLIWG2XY.js} +5 -4
- package/dist/{capability-XXFCANX7.js → capability-CUOEIB5F.js} +5 -4
- package/dist/{chunk-KE5WGBXS.js → chunk-3DTMWDJX.js} +1 -1
- package/dist/{chunk-FPPCXG6K.js → chunk-3FSYICDW.js} +6 -5
- package/dist/{chunk-BEVWMPCZ.js → chunk-3TV24AVQ.js} +10 -10
- package/dist/{chunk-DTODOQ6T.js → chunk-3U75VLCP.js} +1 -1
- package/dist/{chunk-6W56UQPO.js → chunk-4MOCV6HU.js} +1 -1
- package/dist/{chunk-M2OCZRVX.js → chunk-6VLHJKDD.js} +2 -2
- package/dist/{chunk-WG27BD67.js → chunk-7KBENPQF.js} +8 -16
- package/dist/{chunk-5YQSCMGS.js → chunk-BFSWGXM2.js} +3 -3
- package/dist/{chunk-UK7HQ4IL.js → chunk-CBNE2S44.js} +2 -2
- package/dist/{chunk-UWQXGF44.js → chunk-FEYZBUFQ.js} +4 -353
- package/dist/chunk-FKTVD63C.js +369 -0
- package/dist/{chunk-2H3SFJE3.js → chunk-FKVG7LOP.js} +5 -3
- package/dist/{chunk-I7H72CMN.js → chunk-IAZ4AMVY.js} +109 -85
- package/dist/{chunk-KDRE7SWM.js → chunk-LSELMDKQ.js} +2 -2
- package/dist/{chunk-2RORKIF6.js → chunk-NJGB4YOH.js} +2 -2
- package/dist/{chunk-L7MT53VM.js → chunk-PWG5IGCP.js} +1 -1
- package/dist/{chunk-EHH3ZF7D.js → chunk-TFEGYB4X.js} +2 -2
- package/dist/{chunk-DZRQGI2Z.js → chunk-ZPAOEDK7.js} +5 -3
- package/dist/{compat-check-AO3BFA3N.js → compat-check-L3C7HCVG.js} +4 -3
- package/dist/{config-N5V4VNER.js → config-LAF5MMYK.js} +6 -5
- package/dist/context-E4YKECC4.js +350 -0
- package/dist/{evaluation-OZM54MES.js → evaluation-I4IJ25CY.js} +4 -3
- package/dist/heari-cli-login.js +83 -0
- package/dist/index.js +43 -34
- package/dist/{memory-VPOPSU52.js → memory-Y7LPCRP4.js} +5 -4
- package/dist/{metadata-OUJPEMLD.js → metadata-T6HYAU7E.js} +7 -6
- package/dist/{model-2F2354QP.js → model-2BNN72MN.js} +7 -6
- package/dist/{personal-semantic-preference-WEAIZQXM.js → personal-semantic-preference-WCZBOA7V.js} +42 -16
- package/dist/{project-semantic-6VXUYU4A.js → project-semantic-WW5AZST3.js} +266 -17
- package/dist/{sync-BAV3UY46.js → sync-6PL25V42.js} +13 -12
- package/dist/{te-agent-QWZC36YS.js → te-agent-KXLDW4NE.js} +6 -5
- package/dist/{te-analysis-43RCOPUA.js → te-analysis-KKRECQ7F.js} +311 -52
- package/dist/{te-community-ECNTP35Z.js → te-community-6RGX7IWH.js} +8 -6
- package/dist/{te-dataops-ISEKYRLZ.js → te-dataops-RSPBC6WJ.js} +726 -220
- package/dist/{te-engage-LBKIZXZO.js → te-engage-FIPP5L2Z.js} +6 -5
- package/dist/{te-experiment-5TPQKN6B.js → te-experiment-KQ5CBYKI.js} +86 -10
- package/dist/{te-kb-SHL56BJ5.js → te-kb-XYSDXZUG.js} +32 -11
- package/dist/{te-system-Z4VEB6PL.js → te-system-QSOHAP7M.js} +7 -6
- package/dist/{te-team-EZ3TZTLV.js → te-team-R6MZ4RK2.js} +6 -5
- package/dist/{things-UBMLTY3S.js → things-DEONFUGS.js} +6 -5
- package/dist/{update-WE7VNRKZ.js → update-C6G4P3C7.js} +5 -4
- package/dist/{web-runtime-H53QKJS2.js → web-runtime-UGKPTBOK.js} +18 -12
- package/dist/{workspace-W5ZPVWJS.js → workspace-OBIIE5FN.js} +5 -4
- package/package.json +7 -5
- package/skills/ae-analysis/SKILL.md +41 -16
- package/skills/ae-analysis/references/adhoc_export.md +1 -1
- package/skills/ae-analysis/references/adhoc_run.md +8 -2
- package/skills/ae-analysis/references/analysis_drilldown_contract.md +1 -1
- package/skills/ae-analysis/references/audience_scheduling.md +30 -0
- package/skills/ae-analysis/references/business_semantics_workspace.md +57 -0
- package/skills/ae-analysis/references/command_index.md +18 -13
- package/skills/ae-analysis/references/context_prepare.md +49 -0
- package/skills/ae-analysis/references/drilldown_entities_export.md +1 -1
- package/skills/ae-analysis/references/drilldown_entities_run.md +1 -1
- package/skills/ae-analysis/references/drilldown_user_events_export.md +3 -1
- package/skills/ae-analysis/references/drilldown_user_events_run.md +2 -1
- package/skills/ae-analysis/references/governance_recommendation_export.md +1 -1
- package/skills/ae-analysis/references/personal_semantic_preference_add.md +5 -1
- package/skills/ae-analysis/references/personal_semantic_preference_get.md +4 -2
- package/skills/ae-analysis/references/personal_semantic_preference_list.md +7 -6
- package/skills/ae-analysis/references/personal_semantic_preference_submit.md +1 -1
- package/skills/ae-analysis/references/personal_semantic_preference_update.md +5 -1
- package/skills/ae-analysis/references/project_info_get.md +4 -0
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +1 -1
- package/skills/ae-analysis/references/project_semantic_setup.md +60 -0
- package/skills/ae-analysis/references/report_get.md +2 -0
- package/skills/ae-analysis/references/report_presentation.md +55 -0
- package/skills/ae-analysis/references/report_update.md +4 -2
- package/skills/ae-analysis/references/system_openapi_token_batch_generate.md +20 -0
- package/skills/ae-analysis/references/system_openapi_token_get.md +14 -0
- package/skills/ae-analysis/references/user_cluster_create.md +3 -1
- package/skills/ae-analysis/references/user_cluster_models.md +2 -0
- package/skills/ae-analysis/references/user_cluster_update.md +5 -3
- package/skills/ae-analysis/references/user_tag_create.md +4 -22
- package/skills/ae-analysis/references/user_tag_models.md +8 -0
- package/skills/ae-analysis/references/user_tag_update.md +6 -14
- package/skills/ae-analysis/scripts/read-semantic-catalog.mjs +40 -0
- package/skills/ae-capability/SKILL.md +5 -1
- package/skills/ae-dataops/SKILL.md +9 -6
- package/skills/ae-dataops/references/dataops-flow-create.md +64 -47
- package/skills/ae-dataops/references/dataops-flow-monitor.md +4 -2
- package/skills/ae-dataops/references/dataops-flow-python.md +109 -0
- package/skills/ae-experiment/SKILL.md +9 -1
- package/skills/ae-experiment/references/manage_feature_fixed_value.md +73 -0
- package/skills/ae-experiment/references/save_feature.md +14 -1
- package/skills/ae-heari-research/SKILL.md +40 -0
- package/skills/ae-heari-research/references/design.md +35 -0
- package/skills/ae-heari-research/references/examples.md +46 -0
- package/skills/ae-heari-research/references/platform-auth.md +35 -0
- package/skills/ae-heari-research/references/platform-research.md +74 -0
- package/skills/ae-heari-research/references/platform-results.md +73 -0
- package/skills/ae-heari-research/references/platform.md +34 -0
- package/skills/ae-heari-research/references/probing-screening.md +31 -0
- package/skills/ae-heari-research/references/quality.md +44 -0
- package/skills/ae-kb/SKILL.md +10 -5
- package/skills/ae-kb/references/analysis-workflow.md +19 -10
- package/skills/ae-kb/references/query-workflow.md +34 -17
- package/skills/ae-kb-discovery/SKILL.md +4 -3
- package/skills/ae-onboarding/SKILL.md +4 -6
- package/skills/ae-onboarding/references/onboarding_run.md +5 -1
- package/dist/context-WJQGJD6F.js +0 -139
- package/dist/{data-integration-KMJWYAKK.js → data-integration-SCYYZLWI.js} +4 -4
|
@@ -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-3FSYICDW.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCapabilityGatewayRoute,
|
|
7
7
|
resolveGatewayDomain
|
|
@@ -9,16 +9,17 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
printError,
|
|
11
11
|
withOutputMetadata
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-4MOCV6HU.js";
|
|
13
|
+
import "./chunk-IAZ4AMVY.js";
|
|
14
14
|
import {
|
|
15
15
|
CapabilityGatewayError,
|
|
16
16
|
buildCapabilityGatewayUrl,
|
|
17
17
|
fetchCapabilityGateway,
|
|
18
18
|
requestCapabilityGateway,
|
|
19
19
|
requestCapabilityGatewayWithEnvelope
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-7KBENPQF.js";
|
|
21
|
+
import "./chunk-FKTVD63C.js";
|
|
22
|
+
import "./chunk-FEYZBUFQ.js";
|
|
22
23
|
import "./chunk-IGU3R2JD.js";
|
|
23
24
|
import "./chunk-MTK4ZE7W.js";
|
|
24
25
|
import {
|
|
@@ -1,14 +1,15 @@
|
|
|
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-3FSYICDW.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-
|
|
8
|
+
import "./chunk-4MOCV6HU.js";
|
|
9
|
+
import "./chunk-IAZ4AMVY.js";
|
|
10
|
+
import "./chunk-7KBENPQF.js";
|
|
11
|
+
import "./chunk-FKTVD63C.js";
|
|
12
|
+
import "./chunk-FEYZBUFQ.js";
|
|
12
13
|
import "./chunk-IGU3R2JD.js";
|
|
13
14
|
import "./chunk-MTK4ZE7W.js";
|
|
14
15
|
import {
|
|
@@ -775,6 +776,77 @@ var featureList = createExperimentCapabilityCommand({
|
|
|
775
776
|
buildInput: (ctx) => ({ project_id: ctx.num("project-id") })
|
|
776
777
|
});
|
|
777
778
|
|
|
779
|
+
// src/commands/te-experiment/feature/shared.ts
|
|
780
|
+
function fixedValueIdentity(ctx) {
|
|
781
|
+
const projectId = ctx.num("project-id");
|
|
782
|
+
const featureKey = ctx.str("feature-key");
|
|
783
|
+
if (!Number.isInteger(projectId) || projectId < 1 || projectId > 2147483647) {
|
|
784
|
+
throw new Error("Flag --project-id must be a positive 32-bit integer");
|
|
785
|
+
}
|
|
786
|
+
if (!featureKey.trim() || featureKey.length > 80) {
|
|
787
|
+
throw new Error("Flag --feature-key must contain 1 to 80 characters and cannot be blank");
|
|
788
|
+
}
|
|
789
|
+
return { project_id: projectId, feature_key: featureKey };
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
// src/commands/te-experiment/feature/update-fixed-value.ts
|
|
793
|
+
function buildInput15(ctx) {
|
|
794
|
+
const input = fixedValueIdentity(ctx);
|
|
795
|
+
if (!ctx.has("enabled")) throw new Error("Flag --enabled is required; use true or false");
|
|
796
|
+
return { ...input, fixed_value_enabled: ctx.bool("enabled") };
|
|
797
|
+
}
|
|
798
|
+
var featureUpdateFixedValue = createExperimentCapabilityCommand({
|
|
799
|
+
resource: "feature",
|
|
800
|
+
command: "update-fixed-value",
|
|
801
|
+
capabilityId: "experiment.feature.update_fixed_value",
|
|
802
|
+
description: "Enable or disable fixed Feature values. Disabling clears all users' fixed results.",
|
|
803
|
+
flags: [
|
|
804
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
|
|
805
|
+
{ name: "feature-key", type: "string", required: true, desc: "Feature key, up to 80 characters." },
|
|
806
|
+
{ name: "enabled", type: "boolean", required: true, desc: "true to fix the first valid result; false to clear fixed results and disable fixing." }
|
|
807
|
+
],
|
|
808
|
+
risk: "high-risk-write",
|
|
809
|
+
validate: (ctx) => {
|
|
810
|
+
buildInput15(ctx);
|
|
811
|
+
},
|
|
812
|
+
buildInput: buildInput15
|
|
813
|
+
});
|
|
814
|
+
|
|
815
|
+
// src/commands/te-experiment/feature/reset-fixed-value.ts
|
|
816
|
+
function buildInput16(ctx) {
|
|
817
|
+
const input = fixedValueIdentity(ctx);
|
|
818
|
+
if (ctx.has("request-id")) {
|
|
819
|
+
const requestId = ctx.str("request-id");
|
|
820
|
+
if (!requestId.trim() || requestId.length > 64) {
|
|
821
|
+
throw new Error("Flag --request-id must contain 1 to 64 characters and cannot be blank");
|
|
822
|
+
}
|
|
823
|
+
input.request_id = requestId;
|
|
824
|
+
}
|
|
825
|
+
if (ctx.has("reason")) {
|
|
826
|
+
const reason = ctx.str("reason");
|
|
827
|
+
if (reason.length > 500) throw new Error("Flag --reason must contain at most 500 characters");
|
|
828
|
+
input.reason = reason;
|
|
829
|
+
}
|
|
830
|
+
return input;
|
|
831
|
+
}
|
|
832
|
+
var featureResetFixedValue = createExperimentCapabilityCommand({
|
|
833
|
+
resource: "feature",
|
|
834
|
+
command: "reset-fixed-value",
|
|
835
|
+
capabilityId: "experiment.feature.reset_fixed_value",
|
|
836
|
+
description: "Clear all users' fixed Feature results while keeping fixing enabled; preserve experiment assignments.",
|
|
837
|
+
flags: [
|
|
838
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
|
|
839
|
+
{ name: "feature-key", type: "string", required: true, desc: "Feature key, up to 80 characters." },
|
|
840
|
+
{ name: "request-id", type: "string", desc: "Optional tracing ID, up to 64 characters; generated when omitted. Reusing it does not deduplicate resets." },
|
|
841
|
+
{ name: "reason", type: "string", desc: "Optional reset reason saved in the operation log, up to 500 characters." }
|
|
842
|
+
],
|
|
843
|
+
risk: "high-risk-write",
|
|
844
|
+
validate: (ctx) => {
|
|
845
|
+
buildInput16(ctx);
|
|
846
|
+
},
|
|
847
|
+
buildInput: buildInput16
|
|
848
|
+
});
|
|
849
|
+
|
|
778
850
|
// src/commands/te-experiment/feature/save.ts
|
|
779
851
|
var featureSave = createExperimentCapabilityCommand({
|
|
780
852
|
resource: "feature",
|
|
@@ -916,7 +988,7 @@ var featureWhitelistBatchDelete = createExperimentCapabilityCommand({
|
|
|
916
988
|
});
|
|
917
989
|
|
|
918
990
|
// src/commands/te-experiment/feature-whitelist/list.ts
|
|
919
|
-
function
|
|
991
|
+
function buildInput17(ctx) {
|
|
920
992
|
return {
|
|
921
993
|
project_id: ctx.num("project-id"),
|
|
922
994
|
feature_key: ctx.str("feature-key")
|
|
@@ -932,11 +1004,11 @@ var featureWhitelistList = createExperimentCapabilityCommand({
|
|
|
932
1004
|
{ name: "feature-key", type: "string", required: true, desc: "Existing Feature key." }
|
|
933
1005
|
],
|
|
934
1006
|
risk: "read",
|
|
935
|
-
buildInput:
|
|
1007
|
+
buildInput: buildInput17
|
|
936
1008
|
});
|
|
937
1009
|
|
|
938
1010
|
// src/commands/te-experiment/feature-whitelist/save.ts
|
|
939
|
-
function
|
|
1011
|
+
function buildInput18(ctx) {
|
|
940
1012
|
const ruleId = ctx.str("rule-id").trim();
|
|
941
1013
|
const status = ctx.str("status").trim() || "draft";
|
|
942
1014
|
if (!["draft", "enable", "disable"].includes(status)) {
|
|
@@ -973,9 +1045,9 @@ var featureWhitelistSave = createExperimentCapabilityCommand({
|
|
|
973
1045
|
],
|
|
974
1046
|
risk: "write",
|
|
975
1047
|
validate: (ctx) => {
|
|
976
|
-
|
|
1048
|
+
buildInput18(ctx);
|
|
977
1049
|
},
|
|
978
|
-
buildInput:
|
|
1050
|
+
buildInput: buildInput18
|
|
979
1051
|
});
|
|
980
1052
|
|
|
981
1053
|
// src/commands/te-experiment/feature-whitelist/update-status.ts
|
|
@@ -1576,6 +1648,8 @@ var commands = [
|
|
|
1576
1648
|
metricDelete,
|
|
1577
1649
|
featureSave,
|
|
1578
1650
|
featureUpdateStatus,
|
|
1651
|
+
featureUpdateFixedValue,
|
|
1652
|
+
featureResetFixedValue,
|
|
1579
1653
|
featureGet,
|
|
1580
1654
|
featureList,
|
|
1581
1655
|
featureVersionList,
|
|
@@ -1614,7 +1688,9 @@ export {
|
|
|
1614
1688
|
featureGet,
|
|
1615
1689
|
featureList,
|
|
1616
1690
|
featureOperationLogQuery,
|
|
1691
|
+
featureResetFixedValue,
|
|
1617
1692
|
featureSave,
|
|
1693
|
+
featureUpdateFixedValue,
|
|
1618
1694
|
featureUpdateStatus,
|
|
1619
1695
|
featureVersionList,
|
|
1620
1696
|
featureWhitelistBatchDelete,
|
|
@@ -2,18 +2,19 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
kbApi,
|
|
4
4
|
kbUpload
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import {
|
|
7
|
-
printError
|
|
8
|
-
} from "./chunk-6W56UQPO.js";
|
|
5
|
+
} from "./chunk-ZPAOEDK7.js";
|
|
9
6
|
import {
|
|
10
7
|
TeAgentApiError
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import
|
|
8
|
+
} from "./chunk-3DTMWDJX.js";
|
|
9
|
+
import {
|
|
10
|
+
printError
|
|
11
|
+
} from "./chunk-4MOCV6HU.js";
|
|
12
|
+
import "./chunk-IAZ4AMVY.js";
|
|
13
13
|
import {
|
|
14
14
|
CapabilityGatewayError
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-7KBENPQF.js";
|
|
16
|
+
import "./chunk-FKTVD63C.js";
|
|
17
|
+
import "./chunk-FEYZBUFQ.js";
|
|
17
18
|
import "./chunk-IGU3R2JD.js";
|
|
18
19
|
import {
|
|
19
20
|
kbExecutionContextRequired
|
|
@@ -1434,7 +1435,7 @@ function buildBody6(ctx) {
|
|
|
1434
1435
|
var status = {
|
|
1435
1436
|
service: "kb",
|
|
1436
1437
|
command: "+status",
|
|
1437
|
-
description: "Query knowledge base status.",
|
|
1438
|
+
description: "Query knowledge base and compilation guideline status, including failure details when available.",
|
|
1438
1439
|
flags: [
|
|
1439
1440
|
{ name: "name", type: "string", required: true, desc: "Knowledge base name" },
|
|
1440
1441
|
{ name: "scope", type: "string", required: false, desc: "Exact knowledge base scope: personal | company (omit for personal \u2192 company fallback)" },
|
|
@@ -1457,8 +1458,23 @@ var status = {
|
|
|
1457
1458
|
var API_PATH11 = "/agent/api/external/knowledge-bases/index";
|
|
1458
1459
|
function buildBody7(ctx) {
|
|
1459
1460
|
const body4 = {};
|
|
1461
|
+
const name = ctx.str("name").trim();
|
|
1462
|
+
const scope = ctx.str("scope").trim();
|
|
1460
1463
|
const sources = ctx.json("sources");
|
|
1461
|
-
if (
|
|
1464
|
+
if (ctx.has?.("name") || ctx.has?.("scope") || name || scope) {
|
|
1465
|
+
if (ctx.has?.("sources") || sources !== void 0) {
|
|
1466
|
+
throw new CliValidationError("Use either --name with --scope or --sources.");
|
|
1467
|
+
}
|
|
1468
|
+
if (!name || name.length > 200) {
|
|
1469
|
+
throw new CliValidationError("--name must be a knowledge base name of 1 to 200 characters.");
|
|
1470
|
+
}
|
|
1471
|
+
if (scope !== "personal" && scope !== "company" && scope !== "system") {
|
|
1472
|
+
throw new CliValidationError("--name requires --scope personal, company, or system.");
|
|
1473
|
+
}
|
|
1474
|
+
body4.sources = [{ scope, name }];
|
|
1475
|
+
} else if (sources) {
|
|
1476
|
+
body4.sources = sources;
|
|
1477
|
+
}
|
|
1462
1478
|
const locale = ctx.str("locale");
|
|
1463
1479
|
if (locale) body4.locale = locale;
|
|
1464
1480
|
return body4;
|
|
@@ -1469,15 +1485,20 @@ var kbIndex = {
|
|
|
1469
1485
|
description: "List accessible knowledge bases and their index.md navigation maps via POST /agent/api/external/knowledge-bases/index. Call this first to see the layout, then use +grep to locate and +read to open pages.",
|
|
1470
1486
|
flags: [
|
|
1471
1487
|
{ name: "read-context", type: "string", required: false, desc: "Pin reads to an existing read context" },
|
|
1488
|
+
{ name: "name", type: "string", required: false, desc: "Exact knowledge base name. Requires --scope and cannot be combined with --sources." },
|
|
1489
|
+
{ name: "scope", type: "string", required: false, desc: "Scope of --name: personal | company | system." },
|
|
1472
1490
|
{
|
|
1473
1491
|
name: "sources",
|
|
1474
1492
|
type: "json",
|
|
1475
1493
|
required: false,
|
|
1476
|
-
desc: 'Optional JSON array of knowledge base refs
|
|
1494
|
+
desc: 'Optional JSON array of knowledge base refs, e.g. [{"scope":"company","name":"engineering-handbook"}]. Omit both filters to list all accessible knowledge bases.'
|
|
1477
1495
|
},
|
|
1478
1496
|
{ name: "locale", type: "string", required: false, desc: "Optional locale: zh | en | ja | ko" }
|
|
1479
1497
|
],
|
|
1480
1498
|
risk: "read",
|
|
1499
|
+
validate: (ctx) => {
|
|
1500
|
+
buildBody7(ctx);
|
|
1501
|
+
},
|
|
1481
1502
|
dryRun: (ctx) => ({
|
|
1482
1503
|
method: "POST",
|
|
1483
1504
|
url: `${ctx.host().replace(/\/$/, "")}${API_PATH11}`,
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
require_archiver
|
|
4
|
-
} from "./chunk-GD5JSAGV.js";
|
|
5
|
-
import "./chunk-NPH5J65M.js";
|
|
6
2
|
import {
|
|
7
3
|
TeAgentApiError,
|
|
8
4
|
deleteFromMainApp,
|
|
@@ -12,8 +8,13 @@ import {
|
|
|
12
8
|
postToMainApp,
|
|
13
9
|
putToMainApp,
|
|
14
10
|
uploadToMainApp
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import
|
|
11
|
+
} from "./chunk-3DTMWDJX.js";
|
|
12
|
+
import {
|
|
13
|
+
require_archiver
|
|
14
|
+
} from "./chunk-GD5JSAGV.js";
|
|
15
|
+
import "./chunk-NPH5J65M.js";
|
|
16
|
+
import "./chunk-FKTVD63C.js";
|
|
17
|
+
import "./chunk-FEYZBUFQ.js";
|
|
17
18
|
import {
|
|
18
19
|
isAeSandboxRuntime,
|
|
19
20
|
readSandboxCliTokenEntry,
|
|
@@ -2,17 +2,18 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
getAuthHeaders,
|
|
4
4
|
kbApi
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZPAOEDK7.js";
|
|
6
6
|
import {
|
|
7
7
|
detectCliLocale
|
|
8
8
|
} from "./chunk-N2MAYIRU.js";
|
|
9
9
|
import {
|
|
10
10
|
printError,
|
|
11
11
|
printOutput
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-4MOCV6HU.js";
|
|
13
|
+
import "./chunk-IAZ4AMVY.js";
|
|
14
|
+
import "./chunk-7KBENPQF.js";
|
|
15
|
+
import "./chunk-FKTVD63C.js";
|
|
16
|
+
import "./chunk-FEYZBUFQ.js";
|
|
16
17
|
import "./chunk-IGU3R2JD.js";
|
|
17
18
|
import {
|
|
18
19
|
externalCliTokenRequestOptions,
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveMemoryApiBaseUrl
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-3U75VLCP.js";
|
|
5
|
+
import "./chunk-CBNE2S44.js";
|
|
6
|
+
import "./chunk-3DTMWDJX.js";
|
|
7
7
|
import {
|
|
8
8
|
CapabilityGatewayError,
|
|
9
9
|
buildCapabilityGatewayUrl,
|
|
10
10
|
callCapabilityApi
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-7KBENPQF.js";
|
|
12
|
+
import "./chunk-FKTVD63C.js";
|
|
13
|
+
import "./chunk-FEYZBUFQ.js";
|
|
13
14
|
import "./chunk-IGU3R2JD.js";
|
|
14
15
|
import "./chunk-MTK4ZE7W.js";
|
|
15
16
|
import {
|
|
@@ -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-4MOCV6HU.js";
|
|
6
6
|
import {
|
|
7
7
|
buildVersionInstallPlan,
|
|
8
8
|
exactVersion,
|
|
@@ -14,13 +14,14 @@ import {
|
|
|
14
14
|
missingAeHostHint,
|
|
15
15
|
recordVersionSyncResult,
|
|
16
16
|
rememberBusinessConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IAZ4AMVY.js";
|
|
18
18
|
import {
|
|
19
19
|
getLocalCliPackageInfo
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7KBENPQF.js";
|
|
21
21
|
import {
|
|
22
22
|
peekCliToken
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FKTVD63C.js";
|
|
24
|
+
import "./chunk-FEYZBUFQ.js";
|
|
24
25
|
import {
|
|
25
26
|
getActiveHost
|
|
26
27
|
} from "./chunk-IGU3R2JD.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
fetchSigned
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3DTMWDJX.js";
|
|
5
5
|
import {
|
|
6
6
|
assembleSyncJsonBody,
|
|
7
7
|
localDataUpload,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
openBrowser,
|
|
14
14
|
pollDeviceToken,
|
|
15
15
|
resolveDeviceSessionRoute
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FKVG7LOP.js";
|
|
17
17
|
import {
|
|
18
18
|
CHECKOUT_RECOVERY,
|
|
19
19
|
DEMO_CONTEXT,
|
|
@@ -35,6 +35,7 @@ import {
|
|
|
35
35
|
isOnboardingProgressHost,
|
|
36
36
|
isProductionWebsiteOrigin,
|
|
37
37
|
isWebsiteMarket,
|
|
38
|
+
localRegistrationLanguage,
|
|
38
39
|
normalizeRegistrationLanguage,
|
|
39
40
|
onboardingDemoCurrency,
|
|
40
41
|
onboardingDemoOverview,
|
|
@@ -57,21 +58,23 @@ import {
|
|
|
57
58
|
websiteEnvironment,
|
|
58
59
|
websiteOrigin,
|
|
59
60
|
writeProgress
|
|
60
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-IAZ4AMVY.js";
|
|
61
62
|
import {
|
|
62
63
|
CapabilityGatewayError,
|
|
63
64
|
executeCapability,
|
|
64
65
|
getLocalCliPackageInfo
|
|
65
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-7KBENPQF.js";
|
|
66
67
|
import {
|
|
67
|
-
SecureStoreAuthError,
|
|
68
|
-
assertCredentialsReadable,
|
|
69
|
-
getActiveCredential,
|
|
70
68
|
getCliToken,
|
|
71
|
-
loadCliToken,
|
|
72
69
|
peekCliToken,
|
|
73
70
|
validateCliTokenOnServer
|
|
74
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-FKTVD63C.js";
|
|
72
|
+
import {
|
|
73
|
+
SecureStoreAuthError,
|
|
74
|
+
assertCredentialsReadable,
|
|
75
|
+
getActiveCredential,
|
|
76
|
+
loadCliToken
|
|
77
|
+
} from "./chunk-FEYZBUFQ.js";
|
|
75
78
|
import {
|
|
76
79
|
getActiveHost,
|
|
77
80
|
getConfigDir,
|
|
@@ -1424,7 +1427,7 @@ var defaults = {
|
|
|
1424
1427
|
authorize: authorizeLoginDevice,
|
|
1425
1428
|
poll: (issuer, code, signal) => pollDeviceToken(issuer, code, code.startsWith("uba_") ? "uba" : "legacy", signal),
|
|
1426
1429
|
async persist(host, tokens, signal) {
|
|
1427
|
-
const { persistDeviceTokens, activateHostAfterLogin } = await import("./auth-
|
|
1430
|
+
const { persistDeviceTokens, activateHostAfterLogin } = await import("./auth-RDSS2LUT.js");
|
|
1428
1431
|
await persistDeviceTokens(host, tokens, { signal, checkCompatibility: false });
|
|
1429
1432
|
activateHostAfterLogin(host, host);
|
|
1430
1433
|
},
|
|
@@ -1509,7 +1512,9 @@ var OnboardingRuntime = class {
|
|
|
1509
1512
|
}
|
|
1510
1513
|
}
|
|
1511
1514
|
const source = cliEntrySource(input.source ?? session?.source);
|
|
1512
|
-
const
|
|
1515
|
+
const inspectLocalLanguage = !webConversation && !testHost && (action === "plan" || action === "run" && !host && !session);
|
|
1516
|
+
const localLanguage = inspectLocalLanguage ? localRegistrationLanguage() : void 0;
|
|
1517
|
+
const language = registrationLanguage(input.language ?? session?.language ?? localLanguage);
|
|
1513
1518
|
const markets = testHost ? OVERSEAS_TEST_MARKETS : WEBSITE_MARKETS;
|
|
1514
1519
|
const languageMarket = registrationMarket(language);
|
|
1515
1520
|
const defaultMarket = testHost && languageMarket === "cn" ? "us" : languageMarket;
|
|
@@ -1521,7 +1526,8 @@ var OnboardingRuntime = class {
|
|
|
1521
1526
|
market: input.region ?? session?.region ?? (useDefaultMarket ? defaultMarket : null),
|
|
1522
1527
|
language,
|
|
1523
1528
|
default_market: defaultMarket,
|
|
1524
|
-
|
|
1529
|
+
...localLanguage ? { local_language: localLanguage } : {},
|
|
1530
|
+
device_market: testHost ? "us" : onboardingDeviceMarket(webConversation ? registrationLanguage() : localLanguage),
|
|
1525
1531
|
markets,
|
|
1526
1532
|
selection_source: input.region ? "explicit" : session?.region_source ?? (session?.region ? "saved" : useDefaultMarket ? "language_default" : "existing_host"),
|
|
1527
1533
|
website_env: selectedWebsiteEnv,
|
|
@@ -13,13 +13,14 @@ import {
|
|
|
13
13
|
workspaceResourcePath,
|
|
14
14
|
workspaceTargetFlags,
|
|
15
15
|
workspaceTargetPath
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NJGB4YOH.js";
|
|
17
17
|
import "./chunk-RK6GLDGI.js";
|
|
18
18
|
import {
|
|
19
19
|
getAgentBuffer
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-CBNE2S44.js";
|
|
21
|
+
import "./chunk-3DTMWDJX.js";
|
|
22
|
+
import "./chunk-FKTVD63C.js";
|
|
23
|
+
import "./chunk-FEYZBUFQ.js";
|
|
23
24
|
import "./chunk-IGU3R2JD.js";
|
|
24
25
|
import "./chunk-MTK4ZE7W.js";
|
|
25
26
|
import {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thinkingai/ae-cli",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.43",
|
|
4
4
|
"description": "CLI tool for ThinkingAI (AE) analytics platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"verify:skill-collaboration": "node --test test/skill-collaboration.test.mjs",
|
|
27
27
|
"verify:skill-collaboration-install": "node test/skill-collaboration-install.mjs",
|
|
28
28
|
"verify:config": "node test/config-commands.test.mjs",
|
|
29
|
-
"verify:dataops-flow-params": "tsx --test tests/dataops-flow-params-contract.test.ts tests/dataops-flow-overview-contract.test.ts && tsx tests/dataops-integration.test.ts && tsx tests/dataops-flow-task-contract.test.ts && tsx tests/dataops-backfill-contract.test.ts && tsx tests/runner-variadic-flags.test.ts",
|
|
29
|
+
"verify:dataops-flow-params": "tsx --test tests/dataops-flow-params-contract.test.ts tests/dataops-flow-overview-contract.test.ts && tsx tests/dataops-integration.test.ts && tsx tests/dataops-flow-task-contract.test.ts && tsx tests/dataops-python-task-contract.test.ts && tsx tests/dataops-backfill-contract.test.ts && tsx tests/runner-variadic-flags.test.ts",
|
|
30
30
|
"verify:dataops-entity-lifecycle": "tsx --test tests/dataops-entity-lifecycle.test.ts tests/dataops-lifecycle-command-surface.test.ts && tsx tests/dataops-table-field-mutation.test.ts && tsx tests/dataops-integration.test.ts && node test/release-gate-skill-risk-examples.test.mjs",
|
|
31
31
|
"verify:json-utils": "npx tsx tests/json-utils.test.ts",
|
|
32
32
|
"verify:jq-output": "npx tsx test/jq-output.test.mjs",
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"verify:analysis-skill": "tsx scripts/generate-analysis-skill-index.mts --check",
|
|
36
36
|
"verify:analysis-four-modules": "tsx tests/dashboard-filter-transport.test.ts && tsx tests/analysis-report-capability-command.test.ts && npm run verify:analysis-presentation && tsx tests/analysis-export-flow-command.test.ts && tsx tests/analysis-dashboard-audience-contract.test.ts",
|
|
37
37
|
"verify:analysis-contract-regressions": "tsx test/analysis-contract-regressions.test.mjs && tsx tests/analysis-sql-special-identifiers.test.ts",
|
|
38
|
-
"verify:personal-semantic": "tsx tests/personal-semantic-preference-command.test.ts && tsx tests/personal-semantic-global-command.test.ts",
|
|
38
|
+
"verify:personal-semantic": "tsx tests/personal-semantic-preference-command.test.ts && tsx tests/personal-semantic-global-command.test.ts && tsx tests/business-semantic-command.test.ts && tsx tests/business-semantic-background-limit.test.ts && node --test tests/business-semantic-catalog.test.mjs",
|
|
39
|
+
"verify:analysis-context": "node --import tsx --test tests/analysis-context-prepare.test.ts",
|
|
39
40
|
"verify:analysis-agent-contract": "tsx tests/analysis-agent-skill-contract.test.ts",
|
|
40
41
|
"verify:analysis-presentation": "tsx --test tests/analysis-report-presentation.test.ts",
|
|
41
42
|
"verify:analysis-system": "tsx tests/analysis-system-capability-command.test.ts",
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
"verify:retired-analysis-commands": "node --test test/retired-analysis-commands.test.mjs",
|
|
52
53
|
"verify:retired-api-command": "node --test test/retired-api-command.test.mjs",
|
|
53
54
|
"verify:analysis-common-tools": "node scripts/verify-te-common-tools.mjs",
|
|
54
|
-
"verify:experiment-tools": "node scripts/verify-te-experiment-tools.mjs && node --import tsx test/experiment/experiment-capability-command.test.mjs && node --import tsx --test test/experiment/experiment-approval-command.test.mjs && node --import tsx test/experiment/traffic-domain-command.test.mjs",
|
|
55
|
+
"verify:experiment-tools": "node scripts/verify-te-experiment-tools.mjs && node --import tsx test/experiment/experiment-capability-command.test.mjs && node --import tsx --test test/experiment/experiment-approval-command.test.mjs && node --import tsx test/experiment/traffic-domain-command.test.mjs && node --import tsx test/experiment/feature-fixed-value-command.test.mjs",
|
|
55
56
|
"verify:team-tools": "node scripts/verify-te-team-tools.mjs && node --import tsx --test tests/team-run-watch.test.ts test/team-run-start-command.test.mjs test/team-scope-command.test.mjs",
|
|
56
57
|
"verify:evaluation-tools": "node scripts/verify-evaluation-tools.mjs && node --import tsx tests/evaluation-client.test.ts && node --import tsx tests/evaluation-sandbox-session.test.ts && node --import tsx tests/evaluation-security.test.ts && node --import tsx tests/evaluation-command-contract.test.ts && node --import tsx --test tests/evaluation-onboarding.test.ts",
|
|
57
58
|
"verify:a2a": "node --import tsx --test tests/a2a-client.test.ts",
|
|
@@ -82,6 +83,7 @@
|
|
|
82
83
|
"verify:version-sync": "npx tsx tests/version-sync.test.ts && node --import tsx --test tests/compat-check-autosync.test.ts tests/resume-command.test.ts",
|
|
83
84
|
"verify:auth-credentials": "npx tsx tests/secure-store.test.ts && npx tsx tests/secure-store-environment.test.ts && npx tsx tests/cli-token-validation.test.ts && npx tsx tests/auth-multi-account.test.ts && npx tsx tests/mcp-no-disk.test.ts && npx tsx tests/external-cli-token.test.ts && node --import tsx --test tests/secure-store-windows-lock.test.ts",
|
|
84
85
|
"verify:readme": "node --test test/readme-command-surface.test.mjs",
|
|
86
|
+
"verify:heari": "node --test test/heari-integration.test.mjs && node --import tsx --test tests/heari-cli-login.test.ts",
|
|
85
87
|
"verify:dependency-hygiene": "node --test test/dependency-hygiene.test.mjs",
|
|
86
88
|
"qa-changed": "node scripts/qa-changed.mjs",
|
|
87
89
|
"self-check": "node self-check/scan.mjs",
|
|
@@ -91,7 +93,7 @@
|
|
|
91
93
|
"check:agents-docs": "node scripts/check-agents-docs-sync.mjs",
|
|
92
94
|
"prepublishOnly": "npm run check:release && npm run build",
|
|
93
95
|
"start": "node dist/index.js",
|
|
94
|
-
"test": "npx tsx src/index.ts --help && npm run verify:retired-api-command && npm run verify:sandbox-tools && npm run verify:dependency-hygiene && npm run verify:readme && npm run verify:cli-agent-model-context && npm run verify:analysis-feedback && npm run verify:analysis-scenario",
|
|
96
|
+
"test": "npx tsx src/index.ts --help && npm run verify:heari && npm run verify:retired-api-command && npm run verify:sandbox-tools && npm run verify:dependency-hygiene && npm run verify:readme && npm run verify:cli-agent-model-context && npm run verify:analysis-feedback && npm run verify:analysis-scenario",
|
|
95
97
|
"verify:kb-versions": "tsx test/kb-version-management-command.test.mjs",
|
|
96
98
|
"verify:automation": "tsx tests/automation-command.test.ts",
|
|
97
99
|
"verify:project-kb-schema": "tsx --test test/kb-schema-import-command.test.mjs && node --test test/project-semantic-compile-schema.test.mjs test/project-semantic-empty-skeleton.test.mjs test/project-semantic-execution-contract.test.mjs test/project-semantic-fidelity.test.mjs && node test/project-semantic-knowledge-wiki-reference.test.mjs",
|