@thinkingai/ae-cli 6.1.42 → 6.1.44
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 +3 -5
- package/dist/{ai-monitor-E62FT3TT.js → ai-monitor-4VPHXQTL.js} +7 -6
- package/dist/ai-monitor.js +10 -9
- package/dist/{auth-SDK5OAGP.js → auth-RDSS2LUT.js} +18 -16
- package/dist/{automation-IMDCJUML.js → automation-VLIWG2XY.js} +5 -4
- package/dist/{capability-F6YWGPZZ.js → capability-CUOEIB5F.js} +5 -4
- package/dist/{chunk-KE5WGBXS.js → chunk-3DTMWDJX.js} +1 -1
- package/dist/{chunk-KAZ5FWPB.js → chunk-3FSYICDW.js} +6 -5
- package/dist/{chunk-ZK6KEGUR.js → chunk-3TV24AVQ.js} +10 -10
- package/dist/{chunk-DTODOQ6T.js → chunk-3U75VLCP.js} +1 -1
- package/dist/{chunk-N2QILIGH.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-CDBW5RE6.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-GTENC5CO.js → chunk-IAZ4AMVY.js} +6 -4
- package/dist/{chunk-ZSKLELL7.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-DIYDOOBL.js → chunk-TFEGYB4X.js} +2 -2
- package/dist/{chunk-DZRQGI2Z.js → chunk-ZPAOEDK7.js} +5 -3
- package/dist/{compat-check-J5K3NO5G.js → compat-check-L3C7HCVG.js} +4 -3
- package/dist/{config-O3W6XLHO.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 +42 -34
- package/dist/{memory-VPOPSU52.js → memory-Y7LPCRP4.js} +5 -4
- package/dist/{metadata-3GA2N27I.js → metadata-T6HYAU7E.js} +7 -6
- package/dist/{model-2F2354QP.js → model-2BNN72MN.js} +7 -6
- package/dist/{personal-semantic-preference-T2HFF2V4.js → personal-semantic-preference-WCZBOA7V.js} +42 -16
- package/dist/{project-semantic-WJOP2HGJ.js → project-semantic-WW5AZST3.js} +266 -17
- package/dist/{sync-K65X7ODO.js → sync-6PL25V42.js} +13 -12
- package/dist/{te-agent-QWZC36YS.js → te-agent-KXLDW4NE.js} +6 -5
- package/dist/{te-analysis-7E2GVKOR.js → te-analysis-KKRECQ7F.js} +311 -52
- package/dist/{te-community-NQNSLNON.js → te-community-6RGX7IWH.js} +8 -6
- package/dist/{te-dataops-PMI7UX36.js → te-dataops-RSPBC6WJ.js} +726 -220
- package/dist/{te-engage-EZBV5IPQ.js → te-engage-FIPP5L2Z.js} +6 -5
- package/dist/{te-experiment-RDB3TYBG.js → te-experiment-KQ5CBYKI.js} +86 -10
- package/dist/{te-kb-OWPJB243.js → te-kb-XYSDXZUG.js} +32 -11
- package/dist/{te-system-Z4VEB6PL.js → te-system-QSOHAP7M.js} +7 -6
- package/dist/{te-team-NCMN34IL.js → te-team-R6MZ4RK2.js} +6 -5
- package/dist/{things-UBMLTY3S.js → things-DEONFUGS.js} +6 -5
- package/dist/{update-LYVYF3KJ.js → update-C6G4P3C7.js} +5 -4
- package/dist/{web-runtime-XJWDFVP3.js → web-runtime-UGKPTBOK.js} +12 -10
- 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-analysis-global/SKILL.md +2 -2
- package/skills/ae-capability/SKILL.md +5 -1
- package/skills/ae-community/SKILL.md +1 -1
- package/skills/ae-data-integration/SKILL.md +1 -1
- package/skills/ae-data-integration-helper/SKILL.md +1 -1
- package/skills/ae-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-generate-tracking-code/SKILL.md +1 -1
- package/skills/ae-generate-tracking-plan/SKILL.md +2 -2
- 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-migrate-tracking-code/SKILL.md +2 -2
- package/skills/ae-onboarding/SKILL.md +3 -3
- package/dist/context-WJQGJD6F.js +0 -139
- package/dist/{data-integration-KMJWYAKK.js → data-integration-SCYYZLWI.js} +4 -4
package/dist/index.js
CHANGED
|
@@ -18,9 +18,10 @@ import {
|
|
|
18
18
|
configureBusinessCommands,
|
|
19
19
|
parseProgram,
|
|
20
20
|
runCommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3TV24AVQ.js";
|
|
22
22
|
import "./chunk-GYODT7C4.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-PWG5IGCP.js";
|
|
24
|
+
import "./chunk-3DTMWDJX.js";
|
|
24
25
|
import {
|
|
25
26
|
readFileSync,
|
|
26
27
|
set_fs,
|
|
@@ -35,8 +36,7 @@ import {
|
|
|
35
36
|
import {
|
|
36
37
|
printError,
|
|
37
38
|
printOutput
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-KE5WGBXS.js";
|
|
39
|
+
} from "./chunk-4MOCV6HU.js";
|
|
40
40
|
import {
|
|
41
41
|
beginBusinessSkillRefresh,
|
|
42
42
|
failInstallation,
|
|
@@ -49,18 +49,20 @@ import {
|
|
|
49
49
|
runHostCompatCheck,
|
|
50
50
|
shouldSkipAutoSync,
|
|
51
51
|
syncRefreshedBusinessSkills
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-IAZ4AMVY.js";
|
|
53
53
|
import {
|
|
54
54
|
executeCapability,
|
|
55
55
|
getLocalCliPackageInfo,
|
|
56
56
|
uploadInputFileBytes
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-7KBENPQF.js";
|
|
58
58
|
import {
|
|
59
|
-
SecureStoreAuthError,
|
|
60
59
|
getCliToken,
|
|
61
60
|
internalCallSourceHeaders,
|
|
62
61
|
peekCliToken
|
|
63
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-FKTVD63C.js";
|
|
63
|
+
import {
|
|
64
|
+
SecureStoreAuthError
|
|
65
|
+
} from "./chunk-FEYZBUFQ.js";
|
|
64
66
|
import {
|
|
65
67
|
getActiveHost,
|
|
66
68
|
getConfigDir,
|
|
@@ -2165,117 +2167,117 @@ function warnLoadFailure(label, err) {
|
|
|
2165
2167
|
async function loadCommands() {
|
|
2166
2168
|
const commands = [];
|
|
2167
2169
|
try {
|
|
2168
|
-
const teAnalysis = await import("./te-analysis-
|
|
2170
|
+
const teAnalysis = await import("./te-analysis-KKRECQ7F.js");
|
|
2169
2171
|
commands.push(...teAnalysis.default);
|
|
2170
2172
|
} catch (err) {
|
|
2171
2173
|
warnLoadFailure("domain te-analysis", err);
|
|
2172
2174
|
}
|
|
2173
2175
|
try {
|
|
2174
|
-
const engage = await import("./te-engage-
|
|
2176
|
+
const engage = await import("./te-engage-FIPP5L2Z.js");
|
|
2175
2177
|
commands.push(...engage.default);
|
|
2176
2178
|
} catch (err) {
|
|
2177
2179
|
warnLoadFailure("domain te-engage", err);
|
|
2178
2180
|
}
|
|
2179
2181
|
try {
|
|
2180
|
-
const experiment = await import("./te-experiment-
|
|
2182
|
+
const experiment = await import("./te-experiment-KQ5CBYKI.js");
|
|
2181
2183
|
commands.push(...experiment.default);
|
|
2182
2184
|
} catch (err) {
|
|
2183
2185
|
warnLoadFailure("domain te-experiment", err);
|
|
2184
2186
|
}
|
|
2185
2187
|
try {
|
|
2186
|
-
const community = await import("./te-community-
|
|
2188
|
+
const community = await import("./te-community-6RGX7IWH.js");
|
|
2187
2189
|
commands.push(...community.default);
|
|
2188
2190
|
} catch (err) {
|
|
2189
2191
|
warnLoadFailure("domain te-community", err);
|
|
2190
2192
|
}
|
|
2191
2193
|
try {
|
|
2192
|
-
const dataops = await import("./te-dataops-
|
|
2194
|
+
const dataops = await import("./te-dataops-RSPBC6WJ.js");
|
|
2193
2195
|
commands.push(...dataops.default);
|
|
2194
2196
|
} catch (err) {
|
|
2195
2197
|
warnLoadFailure("domain te-dataops", err);
|
|
2196
2198
|
}
|
|
2197
2199
|
try {
|
|
2198
|
-
const teKb = await import("./te-kb-
|
|
2200
|
+
const teKb = await import("./te-kb-XYSDXZUG.js");
|
|
2199
2201
|
commands.push(...teKb.default);
|
|
2200
2202
|
} catch (err) {
|
|
2201
2203
|
warnLoadFailure("domain te-kb", err);
|
|
2202
2204
|
}
|
|
2203
2205
|
try {
|
|
2204
|
-
const teTeam = await import("./te-team-
|
|
2206
|
+
const teTeam = await import("./te-team-R6MZ4RK2.js");
|
|
2205
2207
|
commands.push(...teTeam.default);
|
|
2206
2208
|
} catch (err) {
|
|
2207
2209
|
warnLoadFailure("domain te-team", err);
|
|
2208
2210
|
}
|
|
2209
2211
|
try {
|
|
2210
|
-
const teAgent = await import("./te-agent-
|
|
2212
|
+
const teAgent = await import("./te-agent-KXLDW4NE.js");
|
|
2211
2213
|
commands.push(...teAgent.default);
|
|
2212
2214
|
} catch (err) {
|
|
2213
2215
|
warnLoadFailure("domain te-agent", err);
|
|
2214
2216
|
}
|
|
2215
2217
|
try {
|
|
2216
|
-
const memory = await import("./memory-
|
|
2218
|
+
const memory = await import("./memory-Y7LPCRP4.js");
|
|
2217
2219
|
commands.push(...memory.default);
|
|
2218
2220
|
} catch (err) {
|
|
2219
2221
|
warnLoadFailure("domain memory", err);
|
|
2220
2222
|
}
|
|
2221
|
-
const automation = await import("./automation-
|
|
2223
|
+
const automation = await import("./automation-VLIWG2XY.js");
|
|
2222
2224
|
commands.push(...automation.default);
|
|
2223
2225
|
try {
|
|
2224
|
-
const things = await import("./things-
|
|
2226
|
+
const things = await import("./things-DEONFUGS.js");
|
|
2225
2227
|
commands.push(...things.default);
|
|
2226
2228
|
} catch (err) {
|
|
2227
2229
|
warnLoadFailure("domain things", err);
|
|
2228
2230
|
}
|
|
2229
2231
|
try {
|
|
2230
|
-
const workspace = await import("./workspace-
|
|
2232
|
+
const workspace = await import("./workspace-OBIIE5FN.js");
|
|
2231
2233
|
commands.push(...workspace.default);
|
|
2232
2234
|
} catch (err) {
|
|
2233
2235
|
warnLoadFailure("domain workspace", err);
|
|
2234
2236
|
}
|
|
2235
2237
|
try {
|
|
2236
|
-
const teSystem = await import("./te-system-
|
|
2238
|
+
const teSystem = await import("./te-system-QSOHAP7M.js");
|
|
2237
2239
|
commands.push(...teSystem.default);
|
|
2238
2240
|
} catch (err) {
|
|
2239
2241
|
warnLoadFailure("domain te-system", err);
|
|
2240
2242
|
}
|
|
2241
2243
|
try {
|
|
2242
|
-
const metadata = await import("./metadata-
|
|
2244
|
+
const metadata = await import("./metadata-T6HYAU7E.js");
|
|
2243
2245
|
commands.push(...metadata.default);
|
|
2244
2246
|
} catch (err) {
|
|
2245
2247
|
warnLoadFailure("domain metadata", err);
|
|
2246
2248
|
}
|
|
2247
2249
|
try {
|
|
2248
|
-
const personalSemanticPreference = await import("./personal-semantic-preference-
|
|
2250
|
+
const personalSemanticPreference = await import("./personal-semantic-preference-WCZBOA7V.js");
|
|
2249
2251
|
commands.push(...personalSemanticPreference.default);
|
|
2250
2252
|
} catch (err) {
|
|
2251
2253
|
warnLoadFailure("domain personal-semantic-preference", err);
|
|
2252
2254
|
}
|
|
2253
2255
|
try {
|
|
2254
|
-
const projectSemantic = await import("./project-semantic-
|
|
2256
|
+
const projectSemantic = await import("./project-semantic-WW5AZST3.js");
|
|
2255
2257
|
commands.push(...projectSemantic.default);
|
|
2256
2258
|
} catch (err) {
|
|
2257
2259
|
warnLoadFailure("domain project-semantic", err);
|
|
2258
2260
|
}
|
|
2259
2261
|
try {
|
|
2260
|
-
const dataIntegration = await import("./data-integration-
|
|
2262
|
+
const dataIntegration = await import("./data-integration-SCYYZLWI.js");
|
|
2261
2263
|
commands.push(...dataIntegration.default);
|
|
2262
2264
|
} catch (err) {
|
|
2263
2265
|
warnLoadFailure("domain data-integration", err);
|
|
2264
2266
|
}
|
|
2265
2267
|
try {
|
|
2266
|
-
const context = await import("./context-
|
|
2268
|
+
const context = await import("./context-E4YKECC4.js");
|
|
2267
2269
|
commands.push(...context.default);
|
|
2268
2270
|
} catch (err) {
|
|
2269
2271
|
warnLoadFailure("domain context", err);
|
|
2270
2272
|
}
|
|
2271
2273
|
try {
|
|
2272
|
-
const aiMonitor = await import("./ai-monitor-
|
|
2274
|
+
const aiMonitor = await import("./ai-monitor-4VPHXQTL.js");
|
|
2273
2275
|
commands.push(...aiMonitor.default);
|
|
2274
2276
|
} catch (err) {
|
|
2275
2277
|
warnLoadFailure("domain ai-monitor", err);
|
|
2276
2278
|
}
|
|
2277
2279
|
try {
|
|
2278
|
-
const evaluation = await import("./evaluation-
|
|
2280
|
+
const evaluation = await import("./evaluation-I4IJ25CY.js");
|
|
2279
2281
|
commands.push(...evaluation.default);
|
|
2280
2282
|
} catch (err) {
|
|
2281
2283
|
warnLoadFailure("domain evaluation", err);
|
|
@@ -2284,7 +2286,7 @@ async function loadCommands() {
|
|
|
2284
2286
|
}
|
|
2285
2287
|
async function registerAuthCommands() {
|
|
2286
2288
|
try {
|
|
2287
|
-
const { registerAuth } = await import("./auth-
|
|
2289
|
+
const { registerAuth } = await import("./auth-RDSS2LUT.js");
|
|
2288
2290
|
registerAuth(program);
|
|
2289
2291
|
} catch (err) {
|
|
2290
2292
|
warnLoadFailure("auth commands", err);
|
|
@@ -2292,7 +2294,7 @@ async function registerAuthCommands() {
|
|
|
2292
2294
|
}
|
|
2293
2295
|
async function registerConfigCommands() {
|
|
2294
2296
|
try {
|
|
2295
|
-
const { registerConfig } = await import("./config-
|
|
2297
|
+
const { registerConfig } = await import("./config-LAF5MMYK.js");
|
|
2296
2298
|
registerConfig(program);
|
|
2297
2299
|
} catch (err) {
|
|
2298
2300
|
warnLoadFailure("config commands", err);
|
|
@@ -2300,7 +2302,7 @@ async function registerConfigCommands() {
|
|
|
2300
2302
|
}
|
|
2301
2303
|
async function registerCapabilityCommands() {
|
|
2302
2304
|
try {
|
|
2303
|
-
const { registerCapability } = await import("./capability-
|
|
2305
|
+
const { registerCapability } = await import("./capability-CUOEIB5F.js");
|
|
2304
2306
|
registerCapability(program);
|
|
2305
2307
|
} catch (err) {
|
|
2306
2308
|
warnLoadFailure("capability commands", err);
|
|
@@ -2308,7 +2310,7 @@ async function registerCapabilityCommands() {
|
|
|
2308
2310
|
}
|
|
2309
2311
|
async function registerSyncCommand() {
|
|
2310
2312
|
try {
|
|
2311
|
-
const { registerSync } = await import("./sync-
|
|
2313
|
+
const { registerSync } = await import("./sync-6PL25V42.js");
|
|
2312
2314
|
registerSync(program);
|
|
2313
2315
|
} catch (err) {
|
|
2314
2316
|
warnLoadFailure("sync commands", err);
|
|
@@ -2316,7 +2318,7 @@ async function registerSyncCommand() {
|
|
|
2316
2318
|
}
|
|
2317
2319
|
async function registerModelCommand() {
|
|
2318
2320
|
try {
|
|
2319
|
-
const { registerModel } = await import("./model-
|
|
2321
|
+
const { registerModel } = await import("./model-2BNN72MN.js");
|
|
2320
2322
|
registerModel(program);
|
|
2321
2323
|
} catch (err) {
|
|
2322
2324
|
warnLoadFailure("model commands", err);
|
|
@@ -2324,7 +2326,7 @@ async function registerModelCommand() {
|
|
|
2324
2326
|
}
|
|
2325
2327
|
async function registerUpdateCommand() {
|
|
2326
2328
|
try {
|
|
2327
|
-
const { registerUpdate } = await import("./update-
|
|
2329
|
+
const { registerUpdate } = await import("./update-C6G4P3C7.js");
|
|
2328
2330
|
registerUpdate(program);
|
|
2329
2331
|
} catch (err) {
|
|
2330
2332
|
warnLoadFailure("update commands", err);
|
|
@@ -2332,6 +2334,11 @@ async function registerUpdateCommand() {
|
|
|
2332
2334
|
}
|
|
2333
2335
|
async function main() {
|
|
2334
2336
|
const args = process.argv.slice(2);
|
|
2337
|
+
if (args[0] === "heari") {
|
|
2338
|
+
const { runHearI } = await import(new URL("../bin/heari.mjs", import.meta.url).href);
|
|
2339
|
+
process.exitCode = await runHearI(args.slice(1));
|
|
2340
|
+
return;
|
|
2341
|
+
}
|
|
2335
2342
|
if (args.length === 1 && args[0] === "--runtime-capabilities") {
|
|
2336
2343
|
process.stdout.write(JSON.stringify(require2("../bin/runtime-capabilities.json")) + "\n");
|
|
2337
2344
|
return;
|
|
@@ -2392,6 +2399,7 @@ async function main() {
|
|
|
2392
2399
|
await registerSyncCommand();
|
|
2393
2400
|
await registerModelCommand();
|
|
2394
2401
|
await registerUpdateCommand();
|
|
2402
|
+
program.command("heari").description("Run user research in a HearI workspace (Node.js 22+)");
|
|
2395
2403
|
registerInstall(program);
|
|
2396
2404
|
registerTracking(program);
|
|
2397
2405
|
if (!executionQuery) configureBusinessCommands(program, { hostOverride: globalOptionValue(process.argv.slice(2), "--host") });
|
|
@@ -4,13 +4,14 @@ import {
|
|
|
4
4
|
getMemoryCli,
|
|
5
5
|
patchMemoryCli,
|
|
6
6
|
postMemoryCli
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3U75VLCP.js";
|
|
8
8
|
import {
|
|
9
9
|
currentAgentSpaceId
|
|
10
10
|
} from "./chunk-RK6GLDGI.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-CBNE2S44.js";
|
|
12
|
+
import "./chunk-3DTMWDJX.js";
|
|
13
|
+
import "./chunk-FKTVD63C.js";
|
|
14
|
+
import "./chunk-FEYZBUFQ.js";
|
|
14
15
|
import "./chunk-IGU3R2JD.js";
|
|
15
16
|
import "./chunk-MTK4ZE7W.js";
|
|
16
17
|
import {
|
|
@@ -1,17 +1,18 @@
|
|
|
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-LSELMDKQ.js";
|
|
5
5
|
import {
|
|
6
6
|
createCapabilityCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3FSYICDW.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-
|
|
11
|
+
import "./chunk-4MOCV6HU.js";
|
|
12
|
+
import "./chunk-IAZ4AMVY.js";
|
|
13
|
+
import "./chunk-7KBENPQF.js";
|
|
14
|
+
import "./chunk-FKTVD63C.js";
|
|
15
|
+
import "./chunk-FEYZBUFQ.js";
|
|
15
16
|
import "./chunk-IGU3R2JD.js";
|
|
16
17
|
import "./chunk-MTK4ZE7W.js";
|
|
17
18
|
import "./chunk-3ZQY7SLZ.js";
|
|
@@ -5,18 +5,19 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
assertLegacyWorkspaceCommand
|
|
7
7
|
} from "./chunk-RK6GLDGI.js";
|
|
8
|
-
import {
|
|
9
|
-
MultiselectCancelled,
|
|
10
|
-
promptSingleCheckboxSelect
|
|
11
|
-
} from "./chunk-7K24F7T2.js";
|
|
12
8
|
import {
|
|
13
9
|
TeAgentApiError,
|
|
14
10
|
TeAgentCredentialsError,
|
|
15
11
|
getClaudeConfigDir,
|
|
16
12
|
getSandboxModels,
|
|
17
13
|
postSandboxModelSelection
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import
|
|
14
|
+
} from "./chunk-3DTMWDJX.js";
|
|
15
|
+
import {
|
|
16
|
+
MultiselectCancelled,
|
|
17
|
+
promptSingleCheckboxSelect
|
|
18
|
+
} from "./chunk-7K24F7T2.js";
|
|
19
|
+
import "./chunk-FKTVD63C.js";
|
|
20
|
+
import "./chunk-FEYZBUFQ.js";
|
|
20
21
|
import "./chunk-IGU3R2JD.js";
|
|
21
22
|
import "./chunk-MTK4ZE7W.js";
|
|
22
23
|
import "./chunk-3ZQY7SLZ.js";
|
package/dist/{personal-semantic-preference-T2HFF2V4.js → personal-semantic-preference-WCZBOA7V.js}
RENAMED
|
@@ -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 "./chunk-3ZQY7SLZ.js";
|
|
@@ -31,6 +32,9 @@ function createPersonalSemanticPreferenceCommand(config) {
|
|
|
31
32
|
return {
|
|
32
33
|
...projectCommand,
|
|
33
34
|
validate: (ctx) => {
|
|
35
|
+
if (config.command === "get" && ctx.bool("include-expired") && ctx.bool("mark-used")) {
|
|
36
|
+
throw new Error("--include-expired cannot be combined with --mark-used.");
|
|
37
|
+
}
|
|
34
38
|
const projectId = ctx.num("project-id");
|
|
35
39
|
if (!Number.isSafeInteger(projectId) || projectId !== -1 && projectId <= 0) {
|
|
36
40
|
throw new Error("--project-id must be a positive integer or -1 for global personal semantics.");
|
|
@@ -116,7 +120,7 @@ function optionalResourceRefs(ctx) {
|
|
|
116
120
|
}
|
|
117
121
|
function validateContextType(ctx) {
|
|
118
122
|
const value = ctx.str("context-type");
|
|
119
|
-
const supported = ["preference", "asset_context", "experience", "background"];
|
|
123
|
+
const supported = ["preference", "business_rule", "asset_context", "experience", "background"];
|
|
120
124
|
if (!supported.includes(value)) {
|
|
121
125
|
throw new Error(`--context-type must be one of: ${supported.join(", ")}.`);
|
|
122
126
|
}
|
|
@@ -135,6 +139,14 @@ function validatePersonalSemanticWrite(ctx) {
|
|
|
135
139
|
function compactInput(input) {
|
|
136
140
|
return Object.fromEntries(Object.entries(input).filter(([, value]) => value !== void 0));
|
|
137
141
|
}
|
|
142
|
+
function optionalSources(ctx) {
|
|
143
|
+
if (ctx.str("sources") === "") return void 0;
|
|
144
|
+
const value = ctx.json("sources");
|
|
145
|
+
if (!Array.isArray(value) || value.length > 200 || value.some((item) => !item || typeof item !== "object" || Array.isArray(item))) {
|
|
146
|
+
throw new Error("--sources must be a JSON array of at most 200 source objects.");
|
|
147
|
+
}
|
|
148
|
+
return value;
|
|
149
|
+
}
|
|
138
150
|
|
|
139
151
|
// src/commands/personal-semantic-preference/add.ts
|
|
140
152
|
var personalSemanticPreferenceAdd = createPersonalSemanticPreferenceCommand({
|
|
@@ -144,12 +156,15 @@ var personalSemanticPreferenceAdd = createPersonalSemanticPreferenceCommand({
|
|
|
144
156
|
description: "Add one personal semantic preference for the authenticated user.",
|
|
145
157
|
flags: [
|
|
146
158
|
{ name: "project-id", type: "number", required: true, desc: "Positive project ID, or -1 for current-user global personal semantics.", alias: "p" },
|
|
147
|
-
{ name: "context-type", type: "string", required: true, desc: "preference | asset_context | experience | background." },
|
|
148
|
-
{ name: "title", type: "string", required: true, desc: "
|
|
149
|
-
{ name: "summary", type: "string", required: true, desc: "Compact
|
|
159
|
+
{ name: "context-type", type: "string", required: true, desc: "preference | business_rule | asset_context | experience | background." },
|
|
160
|
+
{ name: "title", type: "string", required: true, desc: "Distinct business concept, adding only a necessary scope or condition.", maxLength: 255 },
|
|
161
|
+
{ name: "summary", type: "string", required: true, desc: "Compact selection summary with subject, applicability and key exclusions.", maxLength: 1e3 },
|
|
150
162
|
{ name: "content", type: "string", required: true, desc: "Full personal semantic preference content.", maxLength: 2e4 },
|
|
151
|
-
{ name: "keywords", type: "json", desc: "Optional JSON array of
|
|
163
|
+
{ name: "keywords", type: "json", desc: "Optional JSON array of distinctive business phrases or confirmed aliases; avoid generic fragments." },
|
|
152
164
|
{ name: "resource-refs", type: "json", desc: "Ordered JSON asset references; required only for asset_context." },
|
|
165
|
+
{ name: "applicable-question", type: "string", desc: "Questions and boundaries where this rule applies.", maxLength: 1e3 },
|
|
166
|
+
{ name: "dependency-ids", type: "json", desc: "Explicit dependency IDs, in the same scope/project." },
|
|
167
|
+
{ name: "sources", type: "json", desc: 'Source filenames as [{"name":"business-overview.docx"}]; optional input_file_id, or existing evidence_id. Keep paths and raw JSON local.' },
|
|
153
168
|
{ name: "fresh-until-at", type: "string", desc: "Optional freshness expiration timestamp: yyyy-MM-dd HH:mm:ss." },
|
|
154
169
|
{ name: "request-id", type: "string", desc: "Optional idempotency key; generated when omitted.", maxLength: 128 }
|
|
155
170
|
],
|
|
@@ -162,6 +177,9 @@ var personalSemanticPreferenceAdd = createPersonalSemanticPreferenceCommand({
|
|
|
162
177
|
summary: ctx.str("summary"),
|
|
163
178
|
content: ctx.str("content"),
|
|
164
179
|
keywords: optionalKeywords(ctx),
|
|
180
|
+
applicable_question: optionalString(ctx, "applicable-question"),
|
|
181
|
+
dependency_ids: optionalJsonStringArray(ctx, "dependency-ids", "--dependency-ids"),
|
|
182
|
+
sources: optionalSources(ctx),
|
|
165
183
|
resource_refs: optionalResourceRefs(ctx),
|
|
166
184
|
fresh_until_at: optionalString(ctx, "fresh-until-at"),
|
|
167
185
|
request_id: optionalString(ctx, "request-id")
|
|
@@ -199,6 +217,7 @@ var personalSemanticPreferenceGet = createPersonalSemanticPreferenceCommand({
|
|
|
199
217
|
{ name: "project-id", type: "number", required: true, desc: "Positive project ID, or -1 for current-user global personal semantics.", alias: "p" },
|
|
200
218
|
{ name: "id", type: "string", required: true, desc: "Preference ID returned by list/add." },
|
|
201
219
|
{ name: "title", type: "string", required: true, desc: "Preference title copied from list output for telemetry only.", minLength: 1, maxLength: 255 },
|
|
220
|
+
{ name: "include-expired", type: "boolean", desc: "Maintenance read of expired entries; cannot be combined with --mark-used." },
|
|
202
221
|
{ name: "mark-used", type: "boolean", desc: "Count this preference as adopted and update its usage heat." }
|
|
203
222
|
],
|
|
204
223
|
risk: "read",
|
|
@@ -206,7 +225,8 @@ var personalSemanticPreferenceGet = createPersonalSemanticPreferenceCommand({
|
|
|
206
225
|
project_id: ctx.num("project-id"),
|
|
207
226
|
id: ctx.str("id"),
|
|
208
227
|
title: ctx.str("title"),
|
|
209
|
-
mark_used: ctx.bool("mark-used")
|
|
228
|
+
mark_used: ctx.bool("mark-used"),
|
|
229
|
+
...ctx.bool("include-expired") ? { include_expired: true } : {}
|
|
210
230
|
})
|
|
211
231
|
});
|
|
212
232
|
|
|
@@ -216,7 +236,7 @@ var personalSemanticPreferenceList = createPersonalSemanticPreferenceCommand({
|
|
|
216
236
|
resource: "",
|
|
217
237
|
command: "list",
|
|
218
238
|
capabilityId: CAPABILITY_ID,
|
|
219
|
-
description: "List the current-user lightweight personal semantic preference catalog
|
|
239
|
+
description: "List the complete current-user lightweight personal semantic preference catalog for the selected scope.",
|
|
220
240
|
flags: [
|
|
221
241
|
{ name: "project-id", type: "number", required: true, desc: "Positive project ID, or -1 for current-user global personal semantics.", alias: "p" }
|
|
222
242
|
],
|
|
@@ -333,12 +353,15 @@ var personalSemanticPreferenceUpdate = createPersonalSemanticPreferenceCommand({
|
|
|
333
353
|
{ name: "project-id", type: "number", required: true, desc: "Positive project ID, or -1 for current-user global personal semantics.", alias: "p" },
|
|
334
354
|
{ name: "id", type: "string", required: true, desc: "Preference ID returned by list/add." },
|
|
335
355
|
{ name: "expected-revision", type: "number", required: true, desc: "Revision returned by the latest read.", min: 1 },
|
|
336
|
-
{ name: "context-type", type: "string", required: true, desc: "preference | asset_context | experience | background." },
|
|
337
|
-
{ name: "title", type: "string", required: true, desc: "
|
|
338
|
-
{ name: "summary", type: "string", required: true, desc: "Compact
|
|
356
|
+
{ name: "context-type", type: "string", required: true, desc: "preference | business_rule | asset_context | experience | background." },
|
|
357
|
+
{ name: "title", type: "string", required: true, desc: "Distinct business concept, adding only a necessary scope or condition.", maxLength: 255 },
|
|
358
|
+
{ name: "summary", type: "string", required: true, desc: "Compact selection summary with subject, applicability and key exclusions.", maxLength: 1e3 },
|
|
339
359
|
{ name: "content", type: "string", required: true, desc: "Full replacement content.", maxLength: 2e4 },
|
|
340
|
-
{ name: "keywords", type: "json", desc: "Optional JSON array of
|
|
360
|
+
{ name: "keywords", type: "json", desc: "Optional JSON array of distinctive business phrases or confirmed aliases; avoid generic fragments." },
|
|
341
361
|
{ name: "resource-refs", type: "json", desc: "Ordered JSON asset references; required only for asset_context." },
|
|
362
|
+
{ name: "applicable-question", type: "string", desc: "Questions and boundaries where this rule applies.", maxLength: 1e3 },
|
|
363
|
+
{ name: "dependency-ids", type: "json", desc: "Explicit dependency IDs, in the same scope/project." },
|
|
364
|
+
{ name: "sources", type: "json", desc: 'Source filenames as [{"name":"business-overview.docx"}]; optional input_file_id, or existing evidence_id. Keep paths and raw JSON local.' },
|
|
342
365
|
{ name: "fresh-until-at", type: "string", desc: "Optional freshness expiration timestamp: yyyy-MM-dd HH:mm:ss." },
|
|
343
366
|
{ name: "request-id", type: "string", desc: "Optional idempotency key; generated when omitted.", maxLength: 128 }
|
|
344
367
|
],
|
|
@@ -353,6 +376,9 @@ var personalSemanticPreferenceUpdate = createPersonalSemanticPreferenceCommand({
|
|
|
353
376
|
summary: ctx.str("summary"),
|
|
354
377
|
content: ctx.str("content"),
|
|
355
378
|
keywords: optionalKeywords(ctx),
|
|
379
|
+
applicable_question: optionalString(ctx, "applicable-question"),
|
|
380
|
+
dependency_ids: optionalJsonStringArray(ctx, "dependency-ids", "--dependency-ids"),
|
|
381
|
+
sources: optionalSources(ctx),
|
|
356
382
|
resource_refs: optionalResourceRefs(ctx),
|
|
357
383
|
fresh_until_at: optionalString(ctx, "fresh-until-at"),
|
|
358
384
|
request_id: optionalString(ctx, "request-id")
|