@thinkingai/ae-cli 6.0.60 → 6.0.61
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 +4 -1
- package/README.zh.md +6 -1
- package/bin/runtime-capabilities.json +1 -1
- package/dist/{ai-monitor-FCXSLHAP.js → ai-monitor-NUKSJPLE.js} +10 -9
- package/dist/ai-monitor.js +14 -13
- package/dist/{auth-ATK2SLEV.js → auth-MVAEBGBP.js} +18 -10
- package/dist/{automation-FLCPFMN4.js → automation-6L6IAYRK.js} +6 -7
- package/dist/{capability-6KTSOI7L.js → capability-74N7AN5X.js} +10 -9
- package/dist/{chunk-OAWPT7VP.js → chunk-2I5SZ5DS.js} +2 -2
- package/dist/{chunk-5E7MTTFN.js → chunk-7WBCSJL6.js} +23 -9
- package/dist/{chunk-4PSTYEG5.js → chunk-AMURHMS3.js} +11 -7
- package/dist/{chunk-6M7ZEDT2.js → chunk-BQFLABJQ.js} +11 -7
- package/dist/{chunk-KTJXD27G.js → chunk-COOMXFUG.js} +3 -3
- package/dist/{chunk-CF6JTT2U.js → chunk-EFGUBGA6.js} +1 -1
- package/dist/{chunk-BEYLCUZX.js → chunk-H35VDOAE.js} +3 -3
- package/dist/{chunk-F2VFZUGG.js → chunk-HIMOBNEY.js} +2 -2
- package/dist/{chunk-JEUXDY3B.js → chunk-HQED4YB4.js} +1 -1
- package/dist/{chunk-AXTO4FTM.js → chunk-HRFYYEXR.js} +3 -3
- package/dist/{chunk-2ETRY2CU.js → chunk-JZY6WWAP.js} +9 -8
- package/dist/{chunk-2F64AZYH.js → chunk-KA5WKR5P.js} +2 -2
- package/dist/{chunk-P7QDCWJ6.js → chunk-LFJ7N36I.js} +5 -1
- package/dist/{chunk-SDKW6LYE.js → chunk-LPKIMGIU.js} +3 -3
- package/dist/chunk-NNK3JBH4.js +60 -0
- package/dist/{chunk-VJUXKVRE.js → chunk-OTZ4JQDU.js} +2 -2
- package/dist/{chunk-HTZ2MLYA.js → chunk-PLNS5J33.js} +11 -5
- package/dist/chunk-PUSFEC6B.js +29 -0
- package/dist/{chunk-Z3Q2AEIN.js → chunk-R2SVAO4G.js} +14 -2
- package/dist/{chunk-HSZAIPUX.js → chunk-RB26WNLM.js} +7 -5
- package/dist/{chunk-VRMGHQKE.js → chunk-SVNED423.js} +11 -11
- package/dist/{chunk-HVMCPKOZ.js → chunk-THTROEGD.js} +1 -1
- package/dist/{chunk-QVRIDN42.js → chunk-UCMO4LKL.js} +2 -2
- package/dist/{chunk-5M5LBRR3.js → chunk-VLOGOM7N.js} +13 -7
- package/dist/{chunk-LOR4IA26.js → chunk-XPARQSYS.js} +165 -186
- package/dist/{chunk-72NJKS7O.js → chunk-XZDKAR4N.js} +4 -4
- package/dist/{community-report-client-TJVCLZ3K.js → community-report-client-ULRNXLQV.js} +1 -1
- package/dist/{compat-check-XD2U7PZ2.js → compat-check-W4XC27RG.js} +5 -4
- package/dist/{config-U3GDWU6E.js → config-264GB6C7.js} +7 -6
- package/dist/{context-YAQG6YQC.js → context-SOQDFZIB.js} +8 -6
- package/dist/{data-integration-QE37EQ3A.js → data-integration-UNJ7EPW2.js} +6 -6
- package/dist/{evaluation-2JSF4V47.js → evaluation-Q3AIGFOG.js} +5 -5
- package/dist/index.js +46 -42
- package/dist/{local-data-upload-client-KCMG6J62.js → local-data-upload-client-YTWMAAGE.js} +1 -1
- package/dist/{memory-WEB27VI6.js → memory-ZLTTULZK.js} +6 -7
- package/dist/{metadata-7FYE4234.js → metadata-EN2IWCDI.js} +10 -9
- package/dist/{model-T7H7Q6BG.js → model-NAKQWK4W.js} +4 -5
- package/dist/{personal-semantic-preference-O6VXM74A.js → personal-semantic-preference-UGN67KTN.js} +45 -14
- package/dist/{project-semantic-2GGFJWW6.js → project-semantic-5OP3YPZD.js} +9 -8
- package/dist/{sync-ULBB7WO5.js → sync-LDJQZRQH.js} +9 -9
- package/dist/{te-agent-6RMF7LUV.js → te-agent-WNNAD4AJ.js} +303 -17
- package/dist/{te-analysis-HSYC7GNV.js → te-analysis-KIMH6AGU.js} +25 -20
- package/dist/{te-community-FLKZGQKB.js → te-community-P7NNBVCS.js} +13 -11
- package/dist/{te-dataops-OQQGTCUA.js → te-dataops-ZRKSG4R7.js} +13 -11
- package/dist/{te-engage-RIEBHL5T.js → te-engage-PVBVNRSU.js} +9 -8
- package/dist/{te-kb-4HG2FMHJ.js → te-kb-W7PRC7QN.js} +68 -17
- package/dist/{te-system-AL4B4XZL.js → te-system-F4ZU2HRQ.js} +6 -7
- package/dist/{te-team-5O4UVUWE.js → te-team-5ONMRGKF.js} +9 -8
- package/dist/{things-TSJ64GBT.js → things-PFENSIF4.js} +9 -8
- package/dist/{update-Q5LURAWV.js → update-EUZ4GNND.js} +8 -6
- package/dist/{workspace-FF2HXJGR.js → workspace-Z7L33OBQ.js} +6 -7
- package/package.json +5 -2
- package/skills/ae-agent/SKILL.md +19 -5
- package/skills/ae-agent/references/a2a.md +103 -0
- package/skills/ae-agent/references/command_index.md +11 -0
- package/skills/ae-analysis/SKILL.md +35 -23
- package/skills/ae-analysis/references/analysis_data_retrieval.md +1 -1
- package/skills/ae-analysis/references/asset_authentication_export.md +1 -1
- package/skills/ae-analysis/references/asset_authentication_update.md +6 -2
- package/skills/ae-analysis/references/bad_case_review.md +4 -4
- package/skills/ae-analysis/references/command_index.md +7 -7
- package/skills/ae-analysis/references/governance_recommendation_export.md +2 -2
- package/skills/ae-analysis/references/personal_semantic_preference_add.md +9 -1
- package/skills/ae-analysis/references/personal_semantic_preference_delete.md +2 -0
- package/skills/ae-analysis/references/personal_semantic_preference_get.md +2 -0
- package/skills/ae-analysis/references/personal_semantic_preference_list.md +10 -2
- package/skills/ae-analysis/references/personal_semantic_preference_update.md +8 -0
- package/skills/ae-analysis/references/project_owner_update.md +5 -1
- package/skills/ae-analysis/references/scenario_evaluation.md +17 -1
- package/skills/ae-analysis/references/scenario_list.md +5 -6
- package/skills/ae-capability/SKILL.md +8 -4
- package/skills/ae-kb/SKILL.md +4 -2
- package/skills/ae-kb/references/publication.md +45 -0
- package/dist/chunk-Y74WTIKJ.js +0 -10
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
require_lib
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UCMO4LKL.js";
|
|
5
5
|
import {
|
|
6
6
|
require_archiver,
|
|
7
7
|
require_string_decoder
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2I5SZ5DS.js";
|
|
9
9
|
import {
|
|
10
10
|
require_inherits,
|
|
11
11
|
require_node
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HQED4YB4.js";
|
|
13
13
|
import {
|
|
14
14
|
__commonJS,
|
|
15
15
|
__require,
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-R2SVAO4G.js";
|
|
18
18
|
|
|
19
19
|
// node_modules/exceljs/lib/utils/under-dash.js
|
|
20
20
|
var require_under_dash = __commonJS({
|
|
@@ -12,10 +12,11 @@ import {
|
|
|
12
12
|
shouldNotifyCompat,
|
|
13
13
|
shouldSkipAutoSync,
|
|
14
14
|
shouldSkipCompatCheck
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-XPARQSYS.js";
|
|
16
|
+
import "./chunk-PUSFEC6B.js";
|
|
17
|
+
import "./chunk-PLNS5J33.js";
|
|
18
|
+
import "./chunk-AMURHMS3.js";
|
|
19
|
+
import "./chunk-R2SVAO4G.js";
|
|
19
20
|
export {
|
|
20
21
|
fetchCliConfig,
|
|
21
22
|
formatCapabilityMissCompatHint,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
invalidateBusinessSkillSynchronization,
|
|
5
5
|
refreshEnvironmentAfterLogin,
|
|
6
6
|
refreshEnvironmentConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RB26WNLM.js";
|
|
8
8
|
import {
|
|
9
9
|
MultiselectCancelled,
|
|
10
10
|
promptSingleSelect
|
|
@@ -16,15 +16,16 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
printError,
|
|
18
18
|
printOutput
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OTZ4JQDU.js";
|
|
20
20
|
import {
|
|
21
21
|
fetchCliConfig,
|
|
22
22
|
readCurrentBusinessConfig,
|
|
23
23
|
resolveKbAutoDiscoveryFeature
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XPARQSYS.js";
|
|
25
|
+
import "./chunk-PUSFEC6B.js";
|
|
25
26
|
import {
|
|
26
27
|
peekCliToken
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PLNS5J33.js";
|
|
28
29
|
import {
|
|
29
30
|
addHost,
|
|
30
31
|
getActiveHost,
|
|
@@ -34,10 +35,10 @@ import {
|
|
|
34
35
|
resolveHostSelector,
|
|
35
36
|
setActiveHost,
|
|
36
37
|
updateHostLabel
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-AMURHMS3.js";
|
|
38
39
|
import {
|
|
39
40
|
normalizeUrl
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-R2SVAO4G.js";
|
|
41
42
|
|
|
42
43
|
// src/commands/config.ts
|
|
43
44
|
import * as readline2 from "readline";
|
|
@@ -2,15 +2,16 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
TeAgentApiError,
|
|
4
4
|
getFromMainApp
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import
|
|
7
|
-
|
|
5
|
+
} from "./chunk-VLOGOM7N.js";
|
|
6
|
+
import {
|
|
7
|
+
internalCallSourceHeaders
|
|
8
|
+
} from "./chunk-PLNS5J33.js";
|
|
8
9
|
import {
|
|
9
10
|
safeJsonParse
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AMURHMS3.js";
|
|
11
12
|
import {
|
|
12
13
|
CliValidationError
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-R2SVAO4G.js";
|
|
14
15
|
|
|
15
16
|
// src/core/current-page-context-client.ts
|
|
16
17
|
async function readCurrentPageContext(path) {
|
|
@@ -34,7 +35,8 @@ async function readCurrentPageContext(path) {
|
|
|
34
35
|
"Content-Type": "application/json",
|
|
35
36
|
Accept: "application/json, text/event-stream",
|
|
36
37
|
"MCP-Protocol-Version": "2025-03-26",
|
|
37
|
-
"X-TE-Page-Context-Token": grant
|
|
38
|
+
"X-TE-Page-Context-Token": grant,
|
|
39
|
+
...internalCallSourceHeaders()
|
|
38
40
|
},
|
|
39
41
|
body: JSON.stringify({
|
|
40
42
|
jsonrpc: "2.0",
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
utils,
|
|
9
9
|
validateAndFix,
|
|
10
10
|
validateDraft
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-XZDKAR4N.js";
|
|
12
|
+
import "./chunk-UCMO4LKL.js";
|
|
13
13
|
import {
|
|
14
14
|
require_archiver
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-2I5SZ5DS.js";
|
|
16
|
+
import "./chunk-HQED4YB4.js";
|
|
17
17
|
import {
|
|
18
18
|
getConfigDir
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-AMURHMS3.js";
|
|
20
20
|
import {
|
|
21
21
|
CliValidationError,
|
|
22
22
|
LocalDataUploadError,
|
|
23
23
|
__toESM
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-R2SVAO4G.js";
|
|
25
25
|
|
|
26
26
|
// src/commands/data-integration/inspect.ts
|
|
27
27
|
import { basename as basename3 } from "path";
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
idAndLockFlags,
|
|
9
9
|
idFlag,
|
|
10
10
|
lockVersionFlag
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-BQFLABJQ.js";
|
|
12
|
+
import "./chunk-LFJ7N36I.js";
|
|
13
|
+
import "./chunk-PLNS5J33.js";
|
|
14
|
+
import "./chunk-AMURHMS3.js";
|
|
15
15
|
import {
|
|
16
16
|
CliValidationError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-R2SVAO4G.js";
|
|
18
18
|
|
|
19
19
|
// src/commands/evaluation/list-datasets.ts
|
|
20
20
|
var PATH = "/datasets";
|
package/dist/index.js
CHANGED
|
@@ -14,35 +14,34 @@ import {
|
|
|
14
14
|
validateAndFix,
|
|
15
15
|
validateDraft,
|
|
16
16
|
writeDraftXlsx
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-XZDKAR4N.js";
|
|
18
|
+
import "./chunk-UCMO4LKL.js";
|
|
19
|
+
import "./chunk-2I5SZ5DS.js";
|
|
20
|
+
import "./chunk-HQED4YB4.js";
|
|
21
21
|
import {
|
|
22
22
|
resolveHost
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KA5WKR5P.js";
|
|
24
24
|
import {
|
|
25
25
|
configureBusinessCommands,
|
|
26
26
|
parseProgram,
|
|
27
27
|
runCommand
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-SVNED423.js";
|
|
29
|
+
import "./chunk-EFGUBGA6.js";
|
|
30
|
+
import "./chunk-VLOGOM7N.js";
|
|
31
|
+
import "./chunk-LFJ7N36I.js";
|
|
32
32
|
import {
|
|
33
33
|
printError,
|
|
34
34
|
printOutput
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-OTZ4JQDU.js";
|
|
36
36
|
import {
|
|
37
37
|
executeCapability,
|
|
38
38
|
uploadInputFileBytes
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-JZY6WWAP.js";
|
|
40
|
+
import "./chunk-NNK3JBH4.js";
|
|
41
41
|
import {
|
|
42
42
|
beginBusinessSkillRefresh,
|
|
43
43
|
failInstallation,
|
|
44
44
|
fetchCliConfig,
|
|
45
|
-
getLocalCliPackageInfo,
|
|
46
45
|
installVersion,
|
|
47
46
|
isBusinessSkillRefreshCurrent,
|
|
48
47
|
newInstallationReport,
|
|
@@ -51,17 +50,21 @@ import {
|
|
|
51
50
|
runHostCompatCheck,
|
|
52
51
|
shouldSkipAutoSync,
|
|
53
52
|
syncRefreshedBusinessSkills
|
|
54
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-XPARQSYS.js";
|
|
54
|
+
import {
|
|
55
|
+
getLocalCliPackageInfo
|
|
56
|
+
} from "./chunk-PUSFEC6B.js";
|
|
55
57
|
import {
|
|
56
58
|
SecureStoreAuthError,
|
|
57
59
|
getCliToken,
|
|
60
|
+
internalCallSourceHeaders,
|
|
58
61
|
peekCliToken
|
|
59
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-PLNS5J33.js";
|
|
60
63
|
import {
|
|
61
64
|
getActiveHost,
|
|
62
65
|
getConfigDir,
|
|
63
66
|
safeJsonParse
|
|
64
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-AMURHMS3.js";
|
|
65
68
|
import {
|
|
66
69
|
CliValidationError,
|
|
67
70
|
ExternalCliTokenError,
|
|
@@ -71,7 +74,7 @@ import {
|
|
|
71
74
|
readExternalCliToken,
|
|
72
75
|
readKbExecutionContext,
|
|
73
76
|
setExternalCliTokenFile
|
|
74
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-R2SVAO4G.js";
|
|
75
78
|
|
|
76
79
|
// src/index.ts
|
|
77
80
|
import { Command as CommanderCommand, Option } from "commander";
|
|
@@ -402,6 +405,7 @@ var TrackingClient = class {
|
|
|
402
405
|
const url = buildUrl(this.host, modulePath, params);
|
|
403
406
|
const headers = {
|
|
404
407
|
"cli-token": token,
|
|
408
|
+
...internalCallSourceHeaders(),
|
|
405
409
|
accept: "application/json"
|
|
406
410
|
};
|
|
407
411
|
const init = { method, headers };
|
|
@@ -2139,111 +2143,111 @@ function warnLoadFailure(label, err) {
|
|
|
2139
2143
|
async function loadCommands() {
|
|
2140
2144
|
const commands = [];
|
|
2141
2145
|
try {
|
|
2142
|
-
const teAnalysis = await import("./te-analysis-
|
|
2146
|
+
const teAnalysis = await import("./te-analysis-KIMH6AGU.js");
|
|
2143
2147
|
commands.push(...teAnalysis.default);
|
|
2144
2148
|
} catch (err) {
|
|
2145
2149
|
warnLoadFailure("domain te-analysis", err);
|
|
2146
2150
|
}
|
|
2147
2151
|
try {
|
|
2148
|
-
const engage = await import("./te-engage-
|
|
2152
|
+
const engage = await import("./te-engage-PVBVNRSU.js");
|
|
2149
2153
|
commands.push(...engage.default);
|
|
2150
2154
|
} catch (err) {
|
|
2151
2155
|
warnLoadFailure("domain te-engage", err);
|
|
2152
2156
|
}
|
|
2153
2157
|
try {
|
|
2154
|
-
const community = await import("./te-community-
|
|
2158
|
+
const community = await import("./te-community-P7NNBVCS.js");
|
|
2155
2159
|
commands.push(...community.default);
|
|
2156
2160
|
} catch (err) {
|
|
2157
2161
|
warnLoadFailure("domain te-community", err);
|
|
2158
2162
|
}
|
|
2159
2163
|
try {
|
|
2160
|
-
const dataops = await import("./te-dataops-
|
|
2164
|
+
const dataops = await import("./te-dataops-ZRKSG4R7.js");
|
|
2161
2165
|
commands.push(...dataops.default);
|
|
2162
2166
|
} catch (err) {
|
|
2163
2167
|
warnLoadFailure("domain te-dataops", err);
|
|
2164
2168
|
}
|
|
2165
2169
|
try {
|
|
2166
|
-
const teKb = await import("./te-kb-
|
|
2170
|
+
const teKb = await import("./te-kb-W7PRC7QN.js");
|
|
2167
2171
|
commands.push(...teKb.default);
|
|
2168
2172
|
} catch (err) {
|
|
2169
2173
|
warnLoadFailure("domain te-kb", err);
|
|
2170
2174
|
}
|
|
2171
2175
|
try {
|
|
2172
|
-
const teTeam = await import("./te-team-
|
|
2176
|
+
const teTeam = await import("./te-team-5ONMRGKF.js");
|
|
2173
2177
|
commands.push(...teTeam.default);
|
|
2174
2178
|
} catch (err) {
|
|
2175
2179
|
warnLoadFailure("domain te-team", err);
|
|
2176
2180
|
}
|
|
2177
2181
|
try {
|
|
2178
|
-
const teAgent = await import("./te-agent-
|
|
2182
|
+
const teAgent = await import("./te-agent-WNNAD4AJ.js");
|
|
2179
2183
|
commands.push(...teAgent.default);
|
|
2180
2184
|
} catch (err) {
|
|
2181
2185
|
warnLoadFailure("domain te-agent", err);
|
|
2182
2186
|
}
|
|
2183
2187
|
try {
|
|
2184
|
-
const memory = await import("./memory-
|
|
2188
|
+
const memory = await import("./memory-ZLTTULZK.js");
|
|
2185
2189
|
commands.push(...memory.default);
|
|
2186
2190
|
} catch (err) {
|
|
2187
2191
|
warnLoadFailure("domain memory", err);
|
|
2188
2192
|
}
|
|
2189
|
-
const automation = await import("./automation-
|
|
2193
|
+
const automation = await import("./automation-6L6IAYRK.js");
|
|
2190
2194
|
commands.push(...automation.default);
|
|
2191
2195
|
try {
|
|
2192
|
-
const things = await import("./things-
|
|
2196
|
+
const things = await import("./things-PFENSIF4.js");
|
|
2193
2197
|
commands.push(...things.default);
|
|
2194
2198
|
} catch (err) {
|
|
2195
2199
|
warnLoadFailure("domain things", err);
|
|
2196
2200
|
}
|
|
2197
2201
|
try {
|
|
2198
|
-
const workspace = await import("./workspace-
|
|
2202
|
+
const workspace = await import("./workspace-Z7L33OBQ.js");
|
|
2199
2203
|
commands.push(...workspace.default);
|
|
2200
2204
|
} catch (err) {
|
|
2201
2205
|
warnLoadFailure("domain workspace", err);
|
|
2202
2206
|
}
|
|
2203
2207
|
try {
|
|
2204
|
-
const teSystem = await import("./te-system-
|
|
2208
|
+
const teSystem = await import("./te-system-F4ZU2HRQ.js");
|
|
2205
2209
|
commands.push(...teSystem.default);
|
|
2206
2210
|
} catch (err) {
|
|
2207
2211
|
warnLoadFailure("domain te-system", err);
|
|
2208
2212
|
}
|
|
2209
2213
|
try {
|
|
2210
|
-
const metadata = await import("./metadata-
|
|
2214
|
+
const metadata = await import("./metadata-EN2IWCDI.js");
|
|
2211
2215
|
commands.push(...metadata.default);
|
|
2212
2216
|
} catch (err) {
|
|
2213
2217
|
warnLoadFailure("domain metadata", err);
|
|
2214
2218
|
}
|
|
2215
2219
|
try {
|
|
2216
|
-
const personalSemanticPreference = await import("./personal-semantic-preference-
|
|
2220
|
+
const personalSemanticPreference = await import("./personal-semantic-preference-UGN67KTN.js");
|
|
2217
2221
|
commands.push(...personalSemanticPreference.default);
|
|
2218
2222
|
} catch (err) {
|
|
2219
2223
|
warnLoadFailure("domain personal-semantic-preference", err);
|
|
2220
2224
|
}
|
|
2221
2225
|
try {
|
|
2222
|
-
const projectSemantic = await import("./project-semantic-
|
|
2226
|
+
const projectSemantic = await import("./project-semantic-5OP3YPZD.js");
|
|
2223
2227
|
commands.push(...projectSemantic.default);
|
|
2224
2228
|
} catch (err) {
|
|
2225
2229
|
warnLoadFailure("domain project-semantic", err);
|
|
2226
2230
|
}
|
|
2227
2231
|
try {
|
|
2228
|
-
const dataIntegration = await import("./data-integration-
|
|
2232
|
+
const dataIntegration = await import("./data-integration-UNJ7EPW2.js");
|
|
2229
2233
|
commands.push(...dataIntegration.default);
|
|
2230
2234
|
} catch (err) {
|
|
2231
2235
|
warnLoadFailure("domain data-integration", err);
|
|
2232
2236
|
}
|
|
2233
2237
|
try {
|
|
2234
|
-
const context = await import("./context-
|
|
2238
|
+
const context = await import("./context-SOQDFZIB.js");
|
|
2235
2239
|
commands.push(...context.default);
|
|
2236
2240
|
} catch (err) {
|
|
2237
2241
|
warnLoadFailure("domain context", err);
|
|
2238
2242
|
}
|
|
2239
2243
|
try {
|
|
2240
|
-
const aiMonitor = await import("./ai-monitor-
|
|
2244
|
+
const aiMonitor = await import("./ai-monitor-NUKSJPLE.js");
|
|
2241
2245
|
commands.push(...aiMonitor.default);
|
|
2242
2246
|
} catch (err) {
|
|
2243
2247
|
warnLoadFailure("domain ai-monitor", err);
|
|
2244
2248
|
}
|
|
2245
2249
|
try {
|
|
2246
|
-
const evaluation = await import("./evaluation-
|
|
2250
|
+
const evaluation = await import("./evaluation-Q3AIGFOG.js");
|
|
2247
2251
|
commands.push(...evaluation.default);
|
|
2248
2252
|
} catch (err) {
|
|
2249
2253
|
warnLoadFailure("domain evaluation", err);
|
|
@@ -2252,7 +2256,7 @@ async function loadCommands() {
|
|
|
2252
2256
|
}
|
|
2253
2257
|
async function registerAuthCommands() {
|
|
2254
2258
|
try {
|
|
2255
|
-
const { registerAuth } = await import("./auth-
|
|
2259
|
+
const { registerAuth } = await import("./auth-MVAEBGBP.js");
|
|
2256
2260
|
registerAuth(program);
|
|
2257
2261
|
} catch (err) {
|
|
2258
2262
|
warnLoadFailure("auth commands", err);
|
|
@@ -2260,7 +2264,7 @@ async function registerAuthCommands() {
|
|
|
2260
2264
|
}
|
|
2261
2265
|
async function registerConfigCommands() {
|
|
2262
2266
|
try {
|
|
2263
|
-
const { registerConfig } = await import("./config-
|
|
2267
|
+
const { registerConfig } = await import("./config-264GB6C7.js");
|
|
2264
2268
|
registerConfig(program);
|
|
2265
2269
|
} catch (err) {
|
|
2266
2270
|
warnLoadFailure("config commands", err);
|
|
@@ -2268,7 +2272,7 @@ async function registerConfigCommands() {
|
|
|
2268
2272
|
}
|
|
2269
2273
|
async function registerCapabilityCommands() {
|
|
2270
2274
|
try {
|
|
2271
|
-
const { registerCapability } = await import("./capability-
|
|
2275
|
+
const { registerCapability } = await import("./capability-74N7AN5X.js");
|
|
2272
2276
|
registerCapability(program);
|
|
2273
2277
|
} catch (err) {
|
|
2274
2278
|
warnLoadFailure("capability commands", err);
|
|
@@ -2276,7 +2280,7 @@ async function registerCapabilityCommands() {
|
|
|
2276
2280
|
}
|
|
2277
2281
|
async function registerSyncCommand() {
|
|
2278
2282
|
try {
|
|
2279
|
-
const { registerSync } = await import("./sync-
|
|
2283
|
+
const { registerSync } = await import("./sync-LDJQZRQH.js");
|
|
2280
2284
|
registerSync(program);
|
|
2281
2285
|
} catch (err) {
|
|
2282
2286
|
warnLoadFailure("sync commands", err);
|
|
@@ -2284,7 +2288,7 @@ async function registerSyncCommand() {
|
|
|
2284
2288
|
}
|
|
2285
2289
|
async function registerModelCommand() {
|
|
2286
2290
|
try {
|
|
2287
|
-
const { registerModel } = await import("./model-
|
|
2291
|
+
const { registerModel } = await import("./model-NAKQWK4W.js");
|
|
2288
2292
|
registerModel(program);
|
|
2289
2293
|
} catch (err) {
|
|
2290
2294
|
warnLoadFailure("model commands", err);
|
|
@@ -2292,7 +2296,7 @@ async function registerModelCommand() {
|
|
|
2292
2296
|
}
|
|
2293
2297
|
async function registerUpdateCommand() {
|
|
2294
2298
|
try {
|
|
2295
|
-
const { registerUpdate } = await import("./update-
|
|
2299
|
+
const { registerUpdate } = await import("./update-EUZ4GNND.js");
|
|
2296
2300
|
registerUpdate(program);
|
|
2297
2301
|
} catch (err) {
|
|
2298
2302
|
warnLoadFailure("update commands", err);
|
|
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
LocalDataUploadError,
|
|
4
4
|
logger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-R2SVAO4G.js";
|
|
6
6
|
|
|
7
7
|
// src/core/local-data-upload-client.ts
|
|
8
8
|
import { createHash } from "crypto";
|
|
@@ -7,15 +7,14 @@ import {
|
|
|
7
7
|
getMemoryCli,
|
|
8
8
|
patchMemoryCli,
|
|
9
9
|
postMemoryCli
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-4PSTYEG5.js";
|
|
10
|
+
} from "./chunk-THTROEGD.js";
|
|
11
|
+
import "./chunk-HIMOBNEY.js";
|
|
12
|
+
import "./chunk-VLOGOM7N.js";
|
|
13
|
+
import "./chunk-PLNS5J33.js";
|
|
14
|
+
import "./chunk-AMURHMS3.js";
|
|
16
15
|
import {
|
|
17
16
|
CliValidationError
|
|
18
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-R2SVAO4G.js";
|
|
19
18
|
|
|
20
19
|
// src/commands/memory/shared.ts
|
|
21
20
|
var MEMORY_SERVICE = "memory";
|
|
@@ -1,20 +1,21 @@
|
|
|
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-LPKIMGIU.js";
|
|
5
5
|
import {
|
|
6
6
|
createCapabilityCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-H35VDOAE.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-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-OTZ4JQDU.js";
|
|
12
|
+
import "./chunk-JZY6WWAP.js";
|
|
13
|
+
import "./chunk-NNK3JBH4.js";
|
|
14
|
+
import "./chunk-XPARQSYS.js";
|
|
15
|
+
import "./chunk-PUSFEC6B.js";
|
|
16
|
+
import "./chunk-PLNS5J33.js";
|
|
17
|
+
import "./chunk-AMURHMS3.js";
|
|
18
|
+
import "./chunk-R2SVAO4G.js";
|
|
18
19
|
|
|
19
20
|
// src/commands/metadata/shared.ts
|
|
20
21
|
function createCapabilityCommand2(config) {
|
|
@@ -15,11 +15,10 @@ import {
|
|
|
15
15
|
getClaudeConfigDir,
|
|
16
16
|
getSandboxModels,
|
|
17
17
|
postSandboxModelSelection
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-Z3Q2AEIN.js";
|
|
18
|
+
} from "./chunk-VLOGOM7N.js";
|
|
19
|
+
import "./chunk-PLNS5J33.js";
|
|
20
|
+
import "./chunk-AMURHMS3.js";
|
|
21
|
+
import "./chunk-R2SVAO4G.js";
|
|
23
22
|
|
|
24
23
|
// src/commands/model/index.ts
|
|
25
24
|
import { existsSync, readFileSync } from "fs";
|
package/dist/{personal-semantic-preference-O6VXM74A.js → personal-semantic-preference-UGN67KTN.js}
RENAMED
|
@@ -1,25 +1,53 @@
|
|
|
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-H35VDOAE.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-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-OTZ4JQDU.js";
|
|
9
|
+
import "./chunk-JZY6WWAP.js";
|
|
10
|
+
import "./chunk-NNK3JBH4.js";
|
|
11
|
+
import "./chunk-XPARQSYS.js";
|
|
12
|
+
import "./chunk-PUSFEC6B.js";
|
|
13
|
+
import "./chunk-PLNS5J33.js";
|
|
14
|
+
import "./chunk-AMURHMS3.js";
|
|
15
|
+
import "./chunk-R2SVAO4G.js";
|
|
15
16
|
|
|
16
17
|
// src/commands/personal-semantic-preference/shared.ts
|
|
17
18
|
function createPersonalSemanticPreferenceCommand(config) {
|
|
18
|
-
|
|
19
|
+
const projectCommand = createCapabilityCommand({
|
|
19
20
|
...config,
|
|
20
21
|
cliService: "personal-semantic-preference",
|
|
21
22
|
gatewayDomain: "analysis"
|
|
22
23
|
});
|
|
24
|
+
if (!["list", "get", "add", "update", "delete"].includes(config.command)) return projectCommand;
|
|
25
|
+
const globalCommand = createCapabilityCommand({
|
|
26
|
+
...config,
|
|
27
|
+
capabilityId: config.capabilityId.replace(".personal_context.", ".global_personal_context."),
|
|
28
|
+
cliService: "personal-semantic-preference",
|
|
29
|
+
gatewayDomain: "analysis"
|
|
30
|
+
});
|
|
31
|
+
const scoped = (ctx) => ctx.num("project-id") === -1 ? globalCommand : projectCommand;
|
|
32
|
+
return {
|
|
33
|
+
...projectCommand,
|
|
34
|
+
validate: (ctx) => {
|
|
35
|
+
const projectId = ctx.num("project-id");
|
|
36
|
+
if (!Number.isSafeInteger(projectId) || projectId !== -1 && projectId <= 0) {
|
|
37
|
+
throw new Error("--project-id must be a positive integer or -1 for global personal semantics.");
|
|
38
|
+
}
|
|
39
|
+
projectCommand.validate?.(ctx);
|
|
40
|
+
if (projectId === -1 && ["add", "update"].includes(config.command)) {
|
|
41
|
+
const refs = optionalResourceRefs(ctx);
|
|
42
|
+
if (refs?.some((ref) => ref.resource_type !== "project")) {
|
|
43
|
+
throw new Error("Global asset_context references must use resource_type=project and an authorized project ID.");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
validateInput: (ctx) => scoped(ctx).validateInput(ctx),
|
|
48
|
+
dryRun: (ctx) => scoped(ctx).dryRun(ctx),
|
|
49
|
+
execute: (ctx) => scoped(ctx).execute(ctx)
|
|
50
|
+
};
|
|
23
51
|
}
|
|
24
52
|
function optionalString(ctx, name) {
|
|
25
53
|
const value = ctx.str(name);
|
|
@@ -62,6 +90,9 @@ function optionalResourceRefs(ctx) {
|
|
|
62
90
|
throw new Error("--resource-refs items must contain only resource_type, resource_key, and display_name.");
|
|
63
91
|
}
|
|
64
92
|
const ref = item;
|
|
93
|
+
if (typeof ref.resource_type === "string" && ref.resource_type.trim().toLowerCase() === "virtual_property") {
|
|
94
|
+
throw new Error("Virtual properties use resource_type=event_property or user_property and the canonical property name. Copy resource_type/resource_key from analysis-meta catalog list; do not use a virtual property ID.");
|
|
95
|
+
}
|
|
65
96
|
if (typeof ref.resource_type !== "string" || !/^[a-z][a-z0-9_]{0,63}$/i.test(ref.resource_type.trim())) {
|
|
66
97
|
throw new Error("resource_type must use lower snake_case.");
|
|
67
98
|
}
|
|
@@ -113,7 +144,7 @@ var personalSemanticPreferenceAdd = createPersonalSemanticPreferenceCommand({
|
|
|
113
144
|
capabilityId: "business_semantics.personal_context.add",
|
|
114
145
|
description: "Add one personal semantic preference for the authenticated user.",
|
|
115
146
|
flags: [
|
|
116
|
-
{ name: "project-id", type: "number", required: true, desc: "
|
|
147
|
+
{ name: "project-id", type: "number", required: true, desc: "Positive project ID, or -1 for current-user global personal semantics.", alias: "p" },
|
|
117
148
|
{ name: "context-type", type: "string", required: true, desc: "preference | asset_context | experience | background." },
|
|
118
149
|
{ name: "title", type: "string", required: true, desc: "Short preference title.", maxLength: 255 },
|
|
119
150
|
{ name: "summary", type: "string", required: true, desc: "Compact preference summary.", maxLength: 1e3 },
|
|
@@ -145,7 +176,7 @@ var personalSemanticPreferenceDelete = createPersonalSemanticPreferenceCommand({
|
|
|
145
176
|
capabilityId: "business_semantics.personal_context.delete",
|
|
146
177
|
description: "Soft-delete one personal semantic preference using optimistic locking.",
|
|
147
178
|
flags: [
|
|
148
|
-
{ name: "project-id", type: "number", required: true, desc: "
|
|
179
|
+
{ name: "project-id", type: "number", required: true, desc: "Positive project ID, or -1 for current-user global personal semantics.", alias: "p" },
|
|
149
180
|
{ name: "id", type: "string", required: true, desc: "Preference ID returned by list/add." },
|
|
150
181
|
{ name: "expected-revision", type: "number", required: true, desc: "Revision returned by the latest read.", min: 1 },
|
|
151
182
|
{ name: "request-id", type: "string", desc: "Optional idempotency key; generated when omitted.", maxLength: 128 }
|
|
@@ -166,7 +197,7 @@ var personalSemanticPreferenceGet = createPersonalSemanticPreferenceCommand({
|
|
|
166
197
|
capabilityId: "business_semantics.personal_context.get",
|
|
167
198
|
description: "Get one personal semantic preference; use --mark-used only after adopting it.",
|
|
168
199
|
flags: [
|
|
169
|
-
{ name: "project-id", type: "number", required: true, desc: "
|
|
200
|
+
{ name: "project-id", type: "number", required: true, desc: "Positive project ID, or -1 for current-user global personal semantics.", alias: "p" },
|
|
170
201
|
{ name: "id", type: "string", required: true, desc: "Preference ID returned by list/add." },
|
|
171
202
|
{ name: "title", type: "string", required: true, desc: "Preference title copied from list output for telemetry only.", minLength: 1, maxLength: 255 },
|
|
172
203
|
{ name: "mark-used", type: "boolean", desc: "Count this preference as adopted and update its usage heat." }
|
|
@@ -188,7 +219,7 @@ var personalSemanticPreferenceList = createPersonalSemanticPreferenceCommand({
|
|
|
188
219
|
capabilityId: CAPABILITY_ID,
|
|
189
220
|
description: "List the current-user lightweight personal semantic preference catalog in one project.",
|
|
190
221
|
flags: [
|
|
191
|
-
{ name: "project-id", type: "number", required: true, desc: "
|
|
222
|
+
{ name: "project-id", type: "number", required: true, desc: "Positive project ID, or -1 for current-user global personal semantics.", alias: "p" }
|
|
192
223
|
],
|
|
193
224
|
risk: "read",
|
|
194
225
|
buildInput: (ctx) => ({
|
|
@@ -300,7 +331,7 @@ var personalSemanticPreferenceUpdate = createPersonalSemanticPreferenceCommand({
|
|
|
300
331
|
capabilityId: "business_semantics.personal_context.update",
|
|
301
332
|
description: "Update one personal semantic preference using optimistic locking.",
|
|
302
333
|
flags: [
|
|
303
|
-
{ name: "project-id", type: "number", required: true, desc: "
|
|
334
|
+
{ name: "project-id", type: "number", required: true, desc: "Positive project ID, or -1 for current-user global personal semantics.", alias: "p" },
|
|
304
335
|
{ name: "id", type: "string", required: true, desc: "Preference ID returned by list/add." },
|
|
305
336
|
{ name: "expected-revision", type: "number", required: true, desc: "Revision returned by the latest read.", min: 1 },
|
|
306
337
|
{ name: "context-type", type: "string", required: true, desc: "preference | asset_context | experience | background." },
|