@thinkingai/ae-cli 6.1.32 → 6.1.33
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 +6 -3
- package/README.zh.md +8 -3
- package/bin/runtime-capabilities.json +1 -1
- package/dist/{ai-monitor-MKMHSSNI.js → ai-monitor-OHTSU6SV.js} +10 -9
- package/dist/ai-monitor.js +14 -13
- package/dist/{auth-CZHHPZOQ.js → auth-2MOK4OI6.js} +18 -9
- package/dist/{automation-FLCPFMN4.js → automation-6L6IAYRK.js} +6 -7
- package/dist/{capability-64KVJFIA.js → capability-EMIHQJA3.js} +10 -9
- package/dist/{chunk-OAWPT7VP.js → chunk-2I5SZ5DS.js} +2 -2
- package/dist/{chunk-4XKTRCRK.js → chunk-4IQYPWCX.js} +9 -8
- package/dist/{chunk-T7WF4HYW.js → chunk-7DHSB3FL.js} +3 -3
- 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-NLEXY2TM.js → chunk-DWAG2QJM.js} +7 -5
- package/dist/{chunk-DWBYNGSR.js → chunk-E3ONSFUN.js} +165 -186
- package/dist/{chunk-CF6JTT2U.js → chunk-EFGUBGA6.js} +1 -1
- package/dist/{chunk-BNBCMCYN.js → chunk-EWVEAERM.js} +11 -11
- package/dist/{chunk-F2VFZUGG.js → chunk-HIMOBNEY.js} +2 -2
- package/dist/{chunk-JEUXDY3B.js → chunk-HQED4YB4.js} +1 -1
- package/dist/{chunk-2F64AZYH.js → chunk-KA5WKR5P.js} +2 -2
- package/dist/{chunk-FCAA7I2D.js → chunk-KD5UC33N.js} +23 -9
- package/dist/{chunk-P7QDCWJ6.js → chunk-LFJ7N36I.js} +5 -1
- package/dist/chunk-NNK3JBH4.js +60 -0
- package/dist/{chunk-3ULDJJTZ.js → chunk-O45NOIWR.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-TMQGS4TO.js → chunk-RC3PPCYD.js} +3 -3
- 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-72NJKS7O.js → chunk-XZDKAR4N.js} +4 -4
- package/dist/{chunk-IDDWEZ7F.js → chunk-YE6MJB5V.js} +3 -3
- package/dist/{community-report-client-TJVCLZ3K.js → community-report-client-ULRNXLQV.js} +1 -1
- package/dist/{compat-check-ZJNCMNQV.js → compat-check-CADG7GND.js} +5 -4
- package/dist/{config-FSH2NMNZ.js → config-PFD3KWQG.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 +47 -43
- package/dist/{local-data-upload-client-KCMG6J62.js → local-data-upload-client-YTWMAAGE.js} +1 -1
- package/dist/{memory-VEZZVAAP.js → memory-HKNGUIPK.js} +6 -7
- package/dist/{metadata-3IWHX3V4.js → metadata-GFWR5ZHC.js} +10 -9
- package/dist/{model-T7H7Q6BG.js → model-NAKQWK4W.js} +4 -5
- package/dist/{personal-semantic-preference-YITU23SA.js → personal-semantic-preference-JCTKXLC3.js} +45 -14
- package/dist/{project-semantic-MHEXJF3C.js → project-semantic-B2NWQOKK.js} +9 -8
- package/dist/{sync-AQHVCSPI.js → sync-UQH4J4BD.js} +9 -9
- package/dist/{te-agent-RXI7WOH4.js → te-agent-L6EYFQCC.js} +303 -17
- package/dist/{te-analysis-CZY74HVF.js → te-analysis-U7NNOY66.js} +25 -20
- package/dist/{te-community-DKCYUBCM.js → te-community-3UQEW3KD.js} +13 -11
- package/dist/{te-dataops-QEH6VE56.js → te-dataops-SUNYXF5G.js} +13 -11
- package/dist/{te-engage-WK7WKDKF.js → te-engage-KMXZJ2KN.js} +9 -8
- package/dist/{te-experiment-LH3RPIOE.js → te-experiment-IEYKP6VC.js} +215 -28
- package/dist/{te-kb-UPORIOVN.js → te-kb-MT3V5ZMH.js} +68 -17
- package/dist/{te-system-AL4B4XZL.js → te-system-F4ZU2HRQ.js} +6 -7
- package/dist/{te-team-LLVTO2G4.js → te-team-M6E6XQ5H.js} +9 -8
- package/dist/{things-XLMLBYQR.js → things-FRLBZV2Z.js} +9 -8
- package/dist/{update-7J5UQHSK.js → update-NULYHVE6.js} +8 -6
- package/dist/{workspace-FF2HXJGR.js → workspace-Z7L33OBQ.js} +6 -7
- package/package.json +6 -3
- 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-experiment/SKILL.md +45 -16
- package/skills/ae-experiment/references/experiment_approval.md +87 -29
- package/skills/ae-experiment/references/manage_experiment.md +7 -3
- package/skills/ae-experiment/references/manage_traffic_domains.md +131 -0
- package/skills/ae-experiment/references/query_experiment_detail.md +8 -0
- package/skills/ae-experiment/references/query_experiment_list.md +6 -0
- package/skills/ae-experiment/references/save_experiment.md +39 -13
- package/skills/ae-experiment/references/save_metric.md +29 -2
- package/skills/ae-experiment/references/save_submit_experiment.md +11 -7
- package/skills/ae-experiment/references/save_submit_external_experiment.md +16 -14
- package/skills/ae-experiment/references/save_traffic_layer.md +17 -1
- package/skills/ae-kb/SKILL.md +4 -2
- package/skills/ae-kb/references/publication.md +45 -0
- package/dist/chunk-Y74WTIKJ.js +0 -10
|
@@ -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-EWVEAERM.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-O45NOIWR.js";
|
|
36
36
|
import {
|
|
37
37
|
executeCapability,
|
|
38
38
|
uploadInputFileBytes
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-4IQYPWCX.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-E3ONSFUN.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,117 +2143,117 @@ 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-U7NNOY66.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-KMXZJ2KN.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 experiment = await import("./te-experiment-
|
|
2158
|
+
const experiment = await import("./te-experiment-IEYKP6VC.js");
|
|
2155
2159
|
commands.push(...experiment.default);
|
|
2156
2160
|
} catch (err) {
|
|
2157
2161
|
warnLoadFailure("domain te-experiment", err);
|
|
2158
2162
|
}
|
|
2159
2163
|
try {
|
|
2160
|
-
const community = await import("./te-community-
|
|
2164
|
+
const community = await import("./te-community-3UQEW3KD.js");
|
|
2161
2165
|
commands.push(...community.default);
|
|
2162
2166
|
} catch (err) {
|
|
2163
2167
|
warnLoadFailure("domain te-community", err);
|
|
2164
2168
|
}
|
|
2165
2169
|
try {
|
|
2166
|
-
const dataops = await import("./te-dataops-
|
|
2170
|
+
const dataops = await import("./te-dataops-SUNYXF5G.js");
|
|
2167
2171
|
commands.push(...dataops.default);
|
|
2168
2172
|
} catch (err) {
|
|
2169
2173
|
warnLoadFailure("domain te-dataops", err);
|
|
2170
2174
|
}
|
|
2171
2175
|
try {
|
|
2172
|
-
const teKb = await import("./te-kb-
|
|
2176
|
+
const teKb = await import("./te-kb-MT3V5ZMH.js");
|
|
2173
2177
|
commands.push(...teKb.default);
|
|
2174
2178
|
} catch (err) {
|
|
2175
2179
|
warnLoadFailure("domain te-kb", err);
|
|
2176
2180
|
}
|
|
2177
2181
|
try {
|
|
2178
|
-
const teTeam = await import("./te-team-
|
|
2182
|
+
const teTeam = await import("./te-team-M6E6XQ5H.js");
|
|
2179
2183
|
commands.push(...teTeam.default);
|
|
2180
2184
|
} catch (err) {
|
|
2181
2185
|
warnLoadFailure("domain te-team", err);
|
|
2182
2186
|
}
|
|
2183
2187
|
try {
|
|
2184
|
-
const teAgent = await import("./te-agent-
|
|
2188
|
+
const teAgent = await import("./te-agent-L6EYFQCC.js");
|
|
2185
2189
|
commands.push(...teAgent.default);
|
|
2186
2190
|
} catch (err) {
|
|
2187
2191
|
warnLoadFailure("domain te-agent", err);
|
|
2188
2192
|
}
|
|
2189
2193
|
try {
|
|
2190
|
-
const memory = await import("./memory-
|
|
2194
|
+
const memory = await import("./memory-HKNGUIPK.js");
|
|
2191
2195
|
commands.push(...memory.default);
|
|
2192
2196
|
} catch (err) {
|
|
2193
2197
|
warnLoadFailure("domain memory", err);
|
|
2194
2198
|
}
|
|
2195
|
-
const automation = await import("./automation-
|
|
2199
|
+
const automation = await import("./automation-6L6IAYRK.js");
|
|
2196
2200
|
commands.push(...automation.default);
|
|
2197
2201
|
try {
|
|
2198
|
-
const things = await import("./things-
|
|
2202
|
+
const things = await import("./things-FRLBZV2Z.js");
|
|
2199
2203
|
commands.push(...things.default);
|
|
2200
2204
|
} catch (err) {
|
|
2201
2205
|
warnLoadFailure("domain things", err);
|
|
2202
2206
|
}
|
|
2203
2207
|
try {
|
|
2204
|
-
const workspace = await import("./workspace-
|
|
2208
|
+
const workspace = await import("./workspace-Z7L33OBQ.js");
|
|
2205
2209
|
commands.push(...workspace.default);
|
|
2206
2210
|
} catch (err) {
|
|
2207
2211
|
warnLoadFailure("domain workspace", err);
|
|
2208
2212
|
}
|
|
2209
2213
|
try {
|
|
2210
|
-
const teSystem = await import("./te-system-
|
|
2214
|
+
const teSystem = await import("./te-system-F4ZU2HRQ.js");
|
|
2211
2215
|
commands.push(...teSystem.default);
|
|
2212
2216
|
} catch (err) {
|
|
2213
2217
|
warnLoadFailure("domain te-system", err);
|
|
2214
2218
|
}
|
|
2215
2219
|
try {
|
|
2216
|
-
const metadata = await import("./metadata-
|
|
2220
|
+
const metadata = await import("./metadata-GFWR5ZHC.js");
|
|
2217
2221
|
commands.push(...metadata.default);
|
|
2218
2222
|
} catch (err) {
|
|
2219
2223
|
warnLoadFailure("domain metadata", err);
|
|
2220
2224
|
}
|
|
2221
2225
|
try {
|
|
2222
|
-
const personalSemanticPreference = await import("./personal-semantic-preference-
|
|
2226
|
+
const personalSemanticPreference = await import("./personal-semantic-preference-JCTKXLC3.js");
|
|
2223
2227
|
commands.push(...personalSemanticPreference.default);
|
|
2224
2228
|
} catch (err) {
|
|
2225
2229
|
warnLoadFailure("domain personal-semantic-preference", err);
|
|
2226
2230
|
}
|
|
2227
2231
|
try {
|
|
2228
|
-
const projectSemantic = await import("./project-semantic-
|
|
2232
|
+
const projectSemantic = await import("./project-semantic-B2NWQOKK.js");
|
|
2229
2233
|
commands.push(...projectSemantic.default);
|
|
2230
2234
|
} catch (err) {
|
|
2231
2235
|
warnLoadFailure("domain project-semantic", err);
|
|
2232
2236
|
}
|
|
2233
2237
|
try {
|
|
2234
|
-
const dataIntegration = await import("./data-integration-
|
|
2238
|
+
const dataIntegration = await import("./data-integration-UNJ7EPW2.js");
|
|
2235
2239
|
commands.push(...dataIntegration.default);
|
|
2236
2240
|
} catch (err) {
|
|
2237
2241
|
warnLoadFailure("domain data-integration", err);
|
|
2238
2242
|
}
|
|
2239
2243
|
try {
|
|
2240
|
-
const context = await import("./context-
|
|
2244
|
+
const context = await import("./context-SOQDFZIB.js");
|
|
2241
2245
|
commands.push(...context.default);
|
|
2242
2246
|
} catch (err) {
|
|
2243
2247
|
warnLoadFailure("domain context", err);
|
|
2244
2248
|
}
|
|
2245
2249
|
try {
|
|
2246
|
-
const aiMonitor = await import("./ai-monitor-
|
|
2250
|
+
const aiMonitor = await import("./ai-monitor-OHTSU6SV.js");
|
|
2247
2251
|
commands.push(...aiMonitor.default);
|
|
2248
2252
|
} catch (err) {
|
|
2249
2253
|
warnLoadFailure("domain ai-monitor", err);
|
|
2250
2254
|
}
|
|
2251
2255
|
try {
|
|
2252
|
-
const evaluation = await import("./evaluation-
|
|
2256
|
+
const evaluation = await import("./evaluation-Q3AIGFOG.js");
|
|
2253
2257
|
commands.push(...evaluation.default);
|
|
2254
2258
|
} catch (err) {
|
|
2255
2259
|
warnLoadFailure("domain evaluation", err);
|
|
@@ -2258,7 +2262,7 @@ async function loadCommands() {
|
|
|
2258
2262
|
}
|
|
2259
2263
|
async function registerAuthCommands() {
|
|
2260
2264
|
try {
|
|
2261
|
-
const { registerAuth } = await import("./auth-
|
|
2265
|
+
const { registerAuth } = await import("./auth-2MOK4OI6.js");
|
|
2262
2266
|
registerAuth(program);
|
|
2263
2267
|
} catch (err) {
|
|
2264
2268
|
warnLoadFailure("auth commands", err);
|
|
@@ -2266,7 +2270,7 @@ async function registerAuthCommands() {
|
|
|
2266
2270
|
}
|
|
2267
2271
|
async function registerConfigCommands() {
|
|
2268
2272
|
try {
|
|
2269
|
-
const { registerConfig } = await import("./config-
|
|
2273
|
+
const { registerConfig } = await import("./config-PFD3KWQG.js");
|
|
2270
2274
|
registerConfig(program);
|
|
2271
2275
|
} catch (err) {
|
|
2272
2276
|
warnLoadFailure("config commands", err);
|
|
@@ -2274,7 +2278,7 @@ async function registerConfigCommands() {
|
|
|
2274
2278
|
}
|
|
2275
2279
|
async function registerCapabilityCommands() {
|
|
2276
2280
|
try {
|
|
2277
|
-
const { registerCapability } = await import("./capability-
|
|
2281
|
+
const { registerCapability } = await import("./capability-EMIHQJA3.js");
|
|
2278
2282
|
registerCapability(program);
|
|
2279
2283
|
} catch (err) {
|
|
2280
2284
|
warnLoadFailure("capability commands", err);
|
|
@@ -2282,7 +2286,7 @@ async function registerCapabilityCommands() {
|
|
|
2282
2286
|
}
|
|
2283
2287
|
async function registerSyncCommand() {
|
|
2284
2288
|
try {
|
|
2285
|
-
const { registerSync } = await import("./sync-
|
|
2289
|
+
const { registerSync } = await import("./sync-UQH4J4BD.js");
|
|
2286
2290
|
registerSync(program);
|
|
2287
2291
|
} catch (err) {
|
|
2288
2292
|
warnLoadFailure("sync commands", err);
|
|
@@ -2290,7 +2294,7 @@ async function registerSyncCommand() {
|
|
|
2290
2294
|
}
|
|
2291
2295
|
async function registerModelCommand() {
|
|
2292
2296
|
try {
|
|
2293
|
-
const { registerModel } = await import("./model-
|
|
2297
|
+
const { registerModel } = await import("./model-NAKQWK4W.js");
|
|
2294
2298
|
registerModel(program);
|
|
2295
2299
|
} catch (err) {
|
|
2296
2300
|
warnLoadFailure("model commands", err);
|
|
@@ -2298,7 +2302,7 @@ async function registerModelCommand() {
|
|
|
2298
2302
|
}
|
|
2299
2303
|
async function registerUpdateCommand() {
|
|
2300
2304
|
try {
|
|
2301
|
-
const { registerUpdate } = await import("./update-
|
|
2305
|
+
const { registerUpdate } = await import("./update-NULYHVE6.js");
|
|
2302
2306
|
registerUpdate(program);
|
|
2303
2307
|
} catch (err) {
|
|
2304
2308
|
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";
|
|
@@ -4,18 +4,17 @@ import {
|
|
|
4
4
|
getMemoryCli,
|
|
5
5
|
patchMemoryCli,
|
|
6
6
|
postMemoryCli
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-THTROEGD.js";
|
|
8
8
|
import {
|
|
9
9
|
currentAgentSpaceId
|
|
10
10
|
} from "./chunk-RK6GLDGI.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-4PSTYEG5.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-7DHSB3FL.js";
|
|
5
5
|
import {
|
|
6
6
|
createCapabilityCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RC3PPCYD.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-O45NOIWR.js";
|
|
12
|
+
import "./chunk-4IQYPWCX.js";
|
|
13
|
+
import "./chunk-NNK3JBH4.js";
|
|
14
|
+
import "./chunk-E3ONSFUN.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-YITU23SA.js → personal-semantic-preference-JCTKXLC3.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-RC3PPCYD.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-O45NOIWR.js";
|
|
9
|
+
import "./chunk-4IQYPWCX.js";
|
|
10
|
+
import "./chunk-NNK3JBH4.js";
|
|
11
|
+
import "./chunk-E3ONSFUN.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." },
|
|
@@ -3,25 +3,26 @@ import {
|
|
|
3
3
|
assertOutputPathAvailable,
|
|
4
4
|
downloadAnalysisArtifact,
|
|
5
5
|
withAsyncArtifactLifecycle
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7DHSB3FL.js";
|
|
7
7
|
import {
|
|
8
8
|
registerCapabilityGatewayRoute,
|
|
9
9
|
resolveGatewayDomain
|
|
10
10
|
} from "./chunk-AWW2T2WL.js";
|
|
11
11
|
import {
|
|
12
12
|
withOutputMetadata
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-O45NOIWR.js";
|
|
14
14
|
import {
|
|
15
15
|
CapabilityGatewayError,
|
|
16
16
|
dryRunCapabilityWithEnvelope,
|
|
17
17
|
executeCapabilityWithEnvelope,
|
|
18
18
|
validateCapabilityWithEnvelope
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-4IQYPWCX.js";
|
|
20
|
+
import "./chunk-NNK3JBH4.js";
|
|
21
|
+
import "./chunk-E3ONSFUN.js";
|
|
22
|
+
import "./chunk-PUSFEC6B.js";
|
|
23
|
+
import "./chunk-PLNS5J33.js";
|
|
24
|
+
import "./chunk-AMURHMS3.js";
|
|
25
|
+
import "./chunk-R2SVAO4G.js";
|
|
25
26
|
|
|
26
27
|
// src/commands/project-semantic/asset-package/materializer.ts
|
|
27
28
|
import { createHash, randomBytes } from "crypto";
|
|
@@ -24,8 +24,8 @@ import {
|
|
|
24
24
|
} from "./chunk-RK6GLDGI.js";
|
|
25
25
|
import {
|
|
26
26
|
require_lib
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-UCMO4LKL.js";
|
|
28
|
+
import "./chunk-HQED4YB4.js";
|
|
29
29
|
import {
|
|
30
30
|
TeAgentApiError,
|
|
31
31
|
TeAgentCredentialsError,
|
|
@@ -33,17 +33,17 @@ import {
|
|
|
33
33
|
postSandboxSyncPull,
|
|
34
34
|
postToMainApp,
|
|
35
35
|
uploadToMainApp
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-VLOGOM7N.js";
|
|
37
37
|
import {
|
|
38
38
|
printError
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-O45NOIWR.js";
|
|
40
|
+
import "./chunk-E3ONSFUN.js";
|
|
41
|
+
import "./chunk-PUSFEC6B.js";
|
|
42
|
+
import "./chunk-PLNS5J33.js";
|
|
43
|
+
import "./chunk-AMURHMS3.js";
|
|
44
44
|
import {
|
|
45
45
|
__toESM
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-R2SVAO4G.js";
|
|
47
47
|
|
|
48
48
|
// src/commands/sync/index.ts
|
|
49
49
|
var import_jszip = __toESM(require_lib(), 1);
|