@thinkingai/ae-cli 6.1.41 → 6.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -4
- package/README.zh.md +14 -4
- package/bin/ae-cli.js +3 -0
- package/bin/heari/commander-LICENSE +22 -0
- package/bin/heari/engine.mjs +6136 -0
- package/bin/heari/package.json +6 -0
- package/bin/heari.mjs +29 -0
- package/cli-installation-guide.md +6 -7
- package/dist/{ai-monitor-OOOD4QDK.js → ai-monitor-4VPHXQTL.js} +7 -6
- package/dist/ai-monitor.js +10 -9
- package/dist/{auth-6BUUY5XS.js → auth-RDSS2LUT.js} +18 -16
- package/dist/{automation-IMDCJUML.js → automation-VLIWG2XY.js} +5 -4
- package/dist/{capability-XXFCANX7.js → capability-CUOEIB5F.js} +5 -4
- package/dist/{chunk-KE5WGBXS.js → chunk-3DTMWDJX.js} +1 -1
- package/dist/{chunk-FPPCXG6K.js → chunk-3FSYICDW.js} +6 -5
- package/dist/{chunk-BEVWMPCZ.js → chunk-3TV24AVQ.js} +10 -10
- package/dist/{chunk-DTODOQ6T.js → chunk-3U75VLCP.js} +1 -1
- package/dist/{chunk-6W56UQPO.js → chunk-4MOCV6HU.js} +1 -1
- package/dist/{chunk-M2OCZRVX.js → chunk-6VLHJKDD.js} +2 -2
- package/dist/{chunk-WG27BD67.js → chunk-7KBENPQF.js} +8 -16
- package/dist/{chunk-5YQSCMGS.js → chunk-BFSWGXM2.js} +3 -3
- package/dist/{chunk-UK7HQ4IL.js → chunk-CBNE2S44.js} +2 -2
- package/dist/{chunk-UWQXGF44.js → chunk-FEYZBUFQ.js} +4 -353
- package/dist/chunk-FKTVD63C.js +369 -0
- package/dist/{chunk-2H3SFJE3.js → chunk-FKVG7LOP.js} +5 -3
- package/dist/{chunk-I7H72CMN.js → chunk-IAZ4AMVY.js} +109 -85
- package/dist/{chunk-KDRE7SWM.js → chunk-LSELMDKQ.js} +2 -2
- package/dist/{chunk-2RORKIF6.js → chunk-NJGB4YOH.js} +2 -2
- package/dist/{chunk-L7MT53VM.js → chunk-PWG5IGCP.js} +1 -1
- package/dist/{chunk-EHH3ZF7D.js → chunk-TFEGYB4X.js} +2 -2
- package/dist/{chunk-DZRQGI2Z.js → chunk-ZPAOEDK7.js} +5 -3
- package/dist/{compat-check-AO3BFA3N.js → compat-check-L3C7HCVG.js} +4 -3
- package/dist/{config-N5V4VNER.js → config-LAF5MMYK.js} +6 -5
- package/dist/context-E4YKECC4.js +350 -0
- package/dist/{evaluation-OZM54MES.js → evaluation-I4IJ25CY.js} +4 -3
- package/dist/heari-cli-login.js +83 -0
- package/dist/index.js +43 -34
- package/dist/{memory-VPOPSU52.js → memory-Y7LPCRP4.js} +5 -4
- package/dist/{metadata-OUJPEMLD.js → metadata-T6HYAU7E.js} +7 -6
- package/dist/{model-2F2354QP.js → model-2BNN72MN.js} +7 -6
- package/dist/{personal-semantic-preference-WEAIZQXM.js → personal-semantic-preference-WCZBOA7V.js} +42 -16
- package/dist/{project-semantic-6VXUYU4A.js → project-semantic-WW5AZST3.js} +266 -17
- package/dist/{sync-BAV3UY46.js → sync-6PL25V42.js} +13 -12
- package/dist/{te-agent-QWZC36YS.js → te-agent-KXLDW4NE.js} +6 -5
- package/dist/{te-analysis-43RCOPUA.js → te-analysis-KKRECQ7F.js} +311 -52
- package/dist/{te-community-ECNTP35Z.js → te-community-6RGX7IWH.js} +8 -6
- package/dist/{te-dataops-ISEKYRLZ.js → te-dataops-RSPBC6WJ.js} +726 -220
- package/dist/{te-engage-LBKIZXZO.js → te-engage-FIPP5L2Z.js} +6 -5
- package/dist/{te-experiment-5TPQKN6B.js → te-experiment-KQ5CBYKI.js} +86 -10
- package/dist/{te-kb-SHL56BJ5.js → te-kb-XYSDXZUG.js} +32 -11
- package/dist/{te-system-Z4VEB6PL.js → te-system-QSOHAP7M.js} +7 -6
- package/dist/{te-team-EZ3TZTLV.js → te-team-R6MZ4RK2.js} +6 -5
- package/dist/{things-UBMLTY3S.js → things-DEONFUGS.js} +6 -5
- package/dist/{update-WE7VNRKZ.js → update-C6G4P3C7.js} +5 -4
- package/dist/{web-runtime-H53QKJS2.js → web-runtime-UGKPTBOK.js} +18 -12
- package/dist/{workspace-W5ZPVWJS.js → workspace-OBIIE5FN.js} +5 -4
- package/package.json +7 -5
- package/skills/ae-analysis/SKILL.md +41 -16
- package/skills/ae-analysis/references/adhoc_export.md +1 -1
- package/skills/ae-analysis/references/adhoc_run.md +8 -2
- package/skills/ae-analysis/references/analysis_drilldown_contract.md +1 -1
- package/skills/ae-analysis/references/audience_scheduling.md +30 -0
- package/skills/ae-analysis/references/business_semantics_workspace.md +57 -0
- package/skills/ae-analysis/references/command_index.md +18 -13
- package/skills/ae-analysis/references/context_prepare.md +49 -0
- package/skills/ae-analysis/references/drilldown_entities_export.md +1 -1
- package/skills/ae-analysis/references/drilldown_entities_run.md +1 -1
- package/skills/ae-analysis/references/drilldown_user_events_export.md +3 -1
- package/skills/ae-analysis/references/drilldown_user_events_run.md +2 -1
- package/skills/ae-analysis/references/governance_recommendation_export.md +1 -1
- package/skills/ae-analysis/references/personal_semantic_preference_add.md +5 -1
- package/skills/ae-analysis/references/personal_semantic_preference_get.md +4 -2
- package/skills/ae-analysis/references/personal_semantic_preference_list.md +7 -6
- package/skills/ae-analysis/references/personal_semantic_preference_submit.md +1 -1
- package/skills/ae-analysis/references/personal_semantic_preference_update.md +5 -1
- package/skills/ae-analysis/references/project_info_get.md +4 -0
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +1 -1
- package/skills/ae-analysis/references/project_semantic_setup.md +60 -0
- package/skills/ae-analysis/references/report_get.md +2 -0
- package/skills/ae-analysis/references/report_presentation.md +55 -0
- package/skills/ae-analysis/references/report_update.md +4 -2
- package/skills/ae-analysis/references/system_openapi_token_batch_generate.md +20 -0
- package/skills/ae-analysis/references/system_openapi_token_get.md +14 -0
- package/skills/ae-analysis/references/user_cluster_create.md +3 -1
- package/skills/ae-analysis/references/user_cluster_models.md +2 -0
- package/skills/ae-analysis/references/user_cluster_update.md +5 -3
- package/skills/ae-analysis/references/user_tag_create.md +4 -22
- package/skills/ae-analysis/references/user_tag_models.md +8 -0
- package/skills/ae-analysis/references/user_tag_update.md +6 -14
- package/skills/ae-analysis/scripts/read-semantic-catalog.mjs +40 -0
- package/skills/ae-capability/SKILL.md +5 -1
- package/skills/ae-dataops/SKILL.md +9 -6
- package/skills/ae-dataops/references/dataops-flow-create.md +64 -47
- package/skills/ae-dataops/references/dataops-flow-monitor.md +4 -2
- package/skills/ae-dataops/references/dataops-flow-python.md +109 -0
- package/skills/ae-experiment/SKILL.md +9 -1
- package/skills/ae-experiment/references/manage_feature_fixed_value.md +73 -0
- package/skills/ae-experiment/references/save_feature.md +14 -1
- package/skills/ae-heari-research/SKILL.md +40 -0
- package/skills/ae-heari-research/references/design.md +35 -0
- package/skills/ae-heari-research/references/examples.md +46 -0
- package/skills/ae-heari-research/references/platform-auth.md +35 -0
- package/skills/ae-heari-research/references/platform-research.md +74 -0
- package/skills/ae-heari-research/references/platform-results.md +73 -0
- package/skills/ae-heari-research/references/platform.md +34 -0
- package/skills/ae-heari-research/references/probing-screening.md +31 -0
- package/skills/ae-heari-research/references/quality.md +44 -0
- package/skills/ae-kb/SKILL.md +10 -5
- package/skills/ae-kb/references/analysis-workflow.md +19 -10
- package/skills/ae-kb/references/query-workflow.md +34 -17
- package/skills/ae-kb-discovery/SKILL.md +4 -3
- package/skills/ae-onboarding/SKILL.md +4 -6
- package/skills/ae-onboarding/references/onboarding_run.md +5 -1
- package/dist/context-WJQGJD6F.js +0 -139
- package/dist/{data-integration-KMJWYAKK.js → data-integration-SCYYZLWI.js} +4 -4
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,
|
|
@@ -2109,6 +2111,7 @@ function registerInstall(program2) {
|
|
|
2109
2111
|
`CLI: ${report.cli.package}@${report.cli.version} (${report.cli.verified ? "verified" : "not verified"})`,
|
|
2110
2112
|
`Command: ${report.cli.path ?? "pending"}`,
|
|
2111
2113
|
`Global Skills: ${report.skills.installed_count}/${report.skills.expected_count} verified in ${report.skills.directory}`,
|
|
2114
|
+
...report.local_language ? [`Detected local language is ${report.local_language} (local_language).`] : [],
|
|
2112
2115
|
...report.skills.failures.map((failure) => `- ${failure.skill}: ${failure.reason}`),
|
|
2113
2116
|
...report.cli.warnings,
|
|
2114
2117
|
...report.auth.warnings,
|
|
@@ -2164,117 +2167,117 @@ function warnLoadFailure(label, err) {
|
|
|
2164
2167
|
async function loadCommands() {
|
|
2165
2168
|
const commands = [];
|
|
2166
2169
|
try {
|
|
2167
|
-
const teAnalysis = await import("./te-analysis-
|
|
2170
|
+
const teAnalysis = await import("./te-analysis-KKRECQ7F.js");
|
|
2168
2171
|
commands.push(...teAnalysis.default);
|
|
2169
2172
|
} catch (err) {
|
|
2170
2173
|
warnLoadFailure("domain te-analysis", err);
|
|
2171
2174
|
}
|
|
2172
2175
|
try {
|
|
2173
|
-
const engage = await import("./te-engage-
|
|
2176
|
+
const engage = await import("./te-engage-FIPP5L2Z.js");
|
|
2174
2177
|
commands.push(...engage.default);
|
|
2175
2178
|
} catch (err) {
|
|
2176
2179
|
warnLoadFailure("domain te-engage", err);
|
|
2177
2180
|
}
|
|
2178
2181
|
try {
|
|
2179
|
-
const experiment = await import("./te-experiment-
|
|
2182
|
+
const experiment = await import("./te-experiment-KQ5CBYKI.js");
|
|
2180
2183
|
commands.push(...experiment.default);
|
|
2181
2184
|
} catch (err) {
|
|
2182
2185
|
warnLoadFailure("domain te-experiment", err);
|
|
2183
2186
|
}
|
|
2184
2187
|
try {
|
|
2185
|
-
const community = await import("./te-community-
|
|
2188
|
+
const community = await import("./te-community-6RGX7IWH.js");
|
|
2186
2189
|
commands.push(...community.default);
|
|
2187
2190
|
} catch (err) {
|
|
2188
2191
|
warnLoadFailure("domain te-community", err);
|
|
2189
2192
|
}
|
|
2190
2193
|
try {
|
|
2191
|
-
const dataops = await import("./te-dataops-
|
|
2194
|
+
const dataops = await import("./te-dataops-RSPBC6WJ.js");
|
|
2192
2195
|
commands.push(...dataops.default);
|
|
2193
2196
|
} catch (err) {
|
|
2194
2197
|
warnLoadFailure("domain te-dataops", err);
|
|
2195
2198
|
}
|
|
2196
2199
|
try {
|
|
2197
|
-
const teKb = await import("./te-kb-
|
|
2200
|
+
const teKb = await import("./te-kb-XYSDXZUG.js");
|
|
2198
2201
|
commands.push(...teKb.default);
|
|
2199
2202
|
} catch (err) {
|
|
2200
2203
|
warnLoadFailure("domain te-kb", err);
|
|
2201
2204
|
}
|
|
2202
2205
|
try {
|
|
2203
|
-
const teTeam = await import("./te-team-
|
|
2206
|
+
const teTeam = await import("./te-team-R6MZ4RK2.js");
|
|
2204
2207
|
commands.push(...teTeam.default);
|
|
2205
2208
|
} catch (err) {
|
|
2206
2209
|
warnLoadFailure("domain te-team", err);
|
|
2207
2210
|
}
|
|
2208
2211
|
try {
|
|
2209
|
-
const teAgent = await import("./te-agent-
|
|
2212
|
+
const teAgent = await import("./te-agent-KXLDW4NE.js");
|
|
2210
2213
|
commands.push(...teAgent.default);
|
|
2211
2214
|
} catch (err) {
|
|
2212
2215
|
warnLoadFailure("domain te-agent", err);
|
|
2213
2216
|
}
|
|
2214
2217
|
try {
|
|
2215
|
-
const memory = await import("./memory-
|
|
2218
|
+
const memory = await import("./memory-Y7LPCRP4.js");
|
|
2216
2219
|
commands.push(...memory.default);
|
|
2217
2220
|
} catch (err) {
|
|
2218
2221
|
warnLoadFailure("domain memory", err);
|
|
2219
2222
|
}
|
|
2220
|
-
const automation = await import("./automation-
|
|
2223
|
+
const automation = await import("./automation-VLIWG2XY.js");
|
|
2221
2224
|
commands.push(...automation.default);
|
|
2222
2225
|
try {
|
|
2223
|
-
const things = await import("./things-
|
|
2226
|
+
const things = await import("./things-DEONFUGS.js");
|
|
2224
2227
|
commands.push(...things.default);
|
|
2225
2228
|
} catch (err) {
|
|
2226
2229
|
warnLoadFailure("domain things", err);
|
|
2227
2230
|
}
|
|
2228
2231
|
try {
|
|
2229
|
-
const workspace = await import("./workspace-
|
|
2232
|
+
const workspace = await import("./workspace-OBIIE5FN.js");
|
|
2230
2233
|
commands.push(...workspace.default);
|
|
2231
2234
|
} catch (err) {
|
|
2232
2235
|
warnLoadFailure("domain workspace", err);
|
|
2233
2236
|
}
|
|
2234
2237
|
try {
|
|
2235
|
-
const teSystem = await import("./te-system-
|
|
2238
|
+
const teSystem = await import("./te-system-QSOHAP7M.js");
|
|
2236
2239
|
commands.push(...teSystem.default);
|
|
2237
2240
|
} catch (err) {
|
|
2238
2241
|
warnLoadFailure("domain te-system", err);
|
|
2239
2242
|
}
|
|
2240
2243
|
try {
|
|
2241
|
-
const metadata = await import("./metadata-
|
|
2244
|
+
const metadata = await import("./metadata-T6HYAU7E.js");
|
|
2242
2245
|
commands.push(...metadata.default);
|
|
2243
2246
|
} catch (err) {
|
|
2244
2247
|
warnLoadFailure("domain metadata", err);
|
|
2245
2248
|
}
|
|
2246
2249
|
try {
|
|
2247
|
-
const personalSemanticPreference = await import("./personal-semantic-preference-
|
|
2250
|
+
const personalSemanticPreference = await import("./personal-semantic-preference-WCZBOA7V.js");
|
|
2248
2251
|
commands.push(...personalSemanticPreference.default);
|
|
2249
2252
|
} catch (err) {
|
|
2250
2253
|
warnLoadFailure("domain personal-semantic-preference", err);
|
|
2251
2254
|
}
|
|
2252
2255
|
try {
|
|
2253
|
-
const projectSemantic = await import("./project-semantic-
|
|
2256
|
+
const projectSemantic = await import("./project-semantic-WW5AZST3.js");
|
|
2254
2257
|
commands.push(...projectSemantic.default);
|
|
2255
2258
|
} catch (err) {
|
|
2256
2259
|
warnLoadFailure("domain project-semantic", err);
|
|
2257
2260
|
}
|
|
2258
2261
|
try {
|
|
2259
|
-
const dataIntegration = await import("./data-integration-
|
|
2262
|
+
const dataIntegration = await import("./data-integration-SCYYZLWI.js");
|
|
2260
2263
|
commands.push(...dataIntegration.default);
|
|
2261
2264
|
} catch (err) {
|
|
2262
2265
|
warnLoadFailure("domain data-integration", err);
|
|
2263
2266
|
}
|
|
2264
2267
|
try {
|
|
2265
|
-
const context = await import("./context-
|
|
2268
|
+
const context = await import("./context-E4YKECC4.js");
|
|
2266
2269
|
commands.push(...context.default);
|
|
2267
2270
|
} catch (err) {
|
|
2268
2271
|
warnLoadFailure("domain context", err);
|
|
2269
2272
|
}
|
|
2270
2273
|
try {
|
|
2271
|
-
const aiMonitor = await import("./ai-monitor-
|
|
2274
|
+
const aiMonitor = await import("./ai-monitor-4VPHXQTL.js");
|
|
2272
2275
|
commands.push(...aiMonitor.default);
|
|
2273
2276
|
} catch (err) {
|
|
2274
2277
|
warnLoadFailure("domain ai-monitor", err);
|
|
2275
2278
|
}
|
|
2276
2279
|
try {
|
|
2277
|
-
const evaluation = await import("./evaluation-
|
|
2280
|
+
const evaluation = await import("./evaluation-I4IJ25CY.js");
|
|
2278
2281
|
commands.push(...evaluation.default);
|
|
2279
2282
|
} catch (err) {
|
|
2280
2283
|
warnLoadFailure("domain evaluation", err);
|
|
@@ -2283,7 +2286,7 @@ async function loadCommands() {
|
|
|
2283
2286
|
}
|
|
2284
2287
|
async function registerAuthCommands() {
|
|
2285
2288
|
try {
|
|
2286
|
-
const { registerAuth } = await import("./auth-
|
|
2289
|
+
const { registerAuth } = await import("./auth-RDSS2LUT.js");
|
|
2287
2290
|
registerAuth(program);
|
|
2288
2291
|
} catch (err) {
|
|
2289
2292
|
warnLoadFailure("auth commands", err);
|
|
@@ -2291,7 +2294,7 @@ async function registerAuthCommands() {
|
|
|
2291
2294
|
}
|
|
2292
2295
|
async function registerConfigCommands() {
|
|
2293
2296
|
try {
|
|
2294
|
-
const { registerConfig } = await import("./config-
|
|
2297
|
+
const { registerConfig } = await import("./config-LAF5MMYK.js");
|
|
2295
2298
|
registerConfig(program);
|
|
2296
2299
|
} catch (err) {
|
|
2297
2300
|
warnLoadFailure("config commands", err);
|
|
@@ -2299,7 +2302,7 @@ async function registerConfigCommands() {
|
|
|
2299
2302
|
}
|
|
2300
2303
|
async function registerCapabilityCommands() {
|
|
2301
2304
|
try {
|
|
2302
|
-
const { registerCapability } = await import("./capability-
|
|
2305
|
+
const { registerCapability } = await import("./capability-CUOEIB5F.js");
|
|
2303
2306
|
registerCapability(program);
|
|
2304
2307
|
} catch (err) {
|
|
2305
2308
|
warnLoadFailure("capability commands", err);
|
|
@@ -2307,7 +2310,7 @@ async function registerCapabilityCommands() {
|
|
|
2307
2310
|
}
|
|
2308
2311
|
async function registerSyncCommand() {
|
|
2309
2312
|
try {
|
|
2310
|
-
const { registerSync } = await import("./sync-
|
|
2313
|
+
const { registerSync } = await import("./sync-6PL25V42.js");
|
|
2311
2314
|
registerSync(program);
|
|
2312
2315
|
} catch (err) {
|
|
2313
2316
|
warnLoadFailure("sync commands", err);
|
|
@@ -2315,7 +2318,7 @@ async function registerSyncCommand() {
|
|
|
2315
2318
|
}
|
|
2316
2319
|
async function registerModelCommand() {
|
|
2317
2320
|
try {
|
|
2318
|
-
const { registerModel } = await import("./model-
|
|
2321
|
+
const { registerModel } = await import("./model-2BNN72MN.js");
|
|
2319
2322
|
registerModel(program);
|
|
2320
2323
|
} catch (err) {
|
|
2321
2324
|
warnLoadFailure("model commands", err);
|
|
@@ -2323,7 +2326,7 @@ async function registerModelCommand() {
|
|
|
2323
2326
|
}
|
|
2324
2327
|
async function registerUpdateCommand() {
|
|
2325
2328
|
try {
|
|
2326
|
-
const { registerUpdate } = await import("./update-
|
|
2329
|
+
const { registerUpdate } = await import("./update-C6G4P3C7.js");
|
|
2327
2330
|
registerUpdate(program);
|
|
2328
2331
|
} catch (err) {
|
|
2329
2332
|
warnLoadFailure("update commands", err);
|
|
@@ -2331,6 +2334,11 @@ async function registerUpdateCommand() {
|
|
|
2331
2334
|
}
|
|
2332
2335
|
async function main() {
|
|
2333
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
|
+
}
|
|
2334
2342
|
if (args.length === 1 && args[0] === "--runtime-capabilities") {
|
|
2335
2343
|
process.stdout.write(JSON.stringify(require2("../bin/runtime-capabilities.json")) + "\n");
|
|
2336
2344
|
return;
|
|
@@ -2391,6 +2399,7 @@ async function main() {
|
|
|
2391
2399
|
await registerSyncCommand();
|
|
2392
2400
|
await registerModelCommand();
|
|
2393
2401
|
await registerUpdateCommand();
|
|
2402
|
+
program.command("heari").description("Run user research in a HearI workspace (Node.js 22+)");
|
|
2394
2403
|
registerInstall(program);
|
|
2395
2404
|
registerTracking(program);
|
|
2396
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-WEAIZQXM.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")
|