@thinkingai/ae-cli 6.0.60 → 6.0.62
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 -1
- package/README.zh.md +8 -1
- package/bin/runtime-capabilities.json +1 -1
- package/dist/{ai-monitor-FCXSLHAP.js → ai-monitor-X5GL44JT.js} +10 -9
- package/dist/ai-monitor.js +14 -13
- package/dist/{auth-ATK2SLEV.js → auth-SPQ46XQ3.js} +18 -10
- package/dist/{automation-FLCPFMN4.js → automation-7XC3VBZI.js} +87 -12
- package/dist/{capability-6KTSOI7L.js → capability-JZP4KXZC.js} +10 -9
- package/dist/{chunk-OAWPT7VP.js → chunk-2I5SZ5DS.js} +2 -2
- package/dist/{chunk-VRMGHQKE.js → chunk-2VKMHNUU.js} +11 -11
- package/dist/{chunk-2ETRY2CU.js → chunk-6HOM2FOJ.js} +19 -9
- package/dist/{chunk-KTJXD27G.js → chunk-AAN6KBUK.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-BEYLCUZX.js → chunk-E457FREE.js} +3 -3
- package/dist/{chunk-CF6JTT2U.js → chunk-EFGUBGA6.js} +1 -1
- package/dist/{chunk-5M5LBRR3.js → chunk-ETQXIZFP.js} +15 -8
- package/dist/{chunk-72NJKS7O.js → chunk-F36ORPI6.js} +7 -32
- package/dist/{chunk-5E7MTTFN.js → chunk-F7TCQPQX.js} +23 -9
- package/dist/{chunk-AXTO4FTM.js → chunk-FGGEF7MI.js} +3 -3
- package/dist/{chunk-JEUXDY3B.js → chunk-HQED4YB4.js} +1 -1
- package/dist/{chunk-2F64AZYH.js → chunk-KA5WKR5P.js} +2 -2
- package/dist/{chunk-P7QDCWJ6.js → chunk-LFJ7N36I.js} +5 -1
- package/dist/chunk-N2MAYIRU.js +32 -0
- package/dist/chunk-NNK3JBH4.js +60 -0
- package/dist/{chunk-HTZ2MLYA.js → chunk-PLNS5J33.js} +11 -5
- package/dist/{chunk-HSZAIPUX.js → chunk-PRCHMOWT.js} +7 -5
- package/dist/chunk-PUSFEC6B.js +29 -0
- package/dist/{chunk-Z3Q2AEIN.js → chunk-R2SVAO4G.js} +14 -2
- package/dist/{chunk-SDKW6LYE.js → chunk-RYY5NJK3.js} +3 -3
- package/dist/{chunk-QVRIDN42.js → chunk-UCMO4LKL.js} +2 -2
- package/dist/{chunk-VJUXKVRE.js → chunk-VR2D54AA.js} +2 -2
- package/dist/{chunk-HVMCPKOZ.js → chunk-YIG3L4RC.js} +1 -1
- package/dist/{chunk-LOR4IA26.js → chunk-YJYC5PLL.js} +166 -188
- package/dist/{chunk-F2VFZUGG.js → chunk-ZVUXAHEV.js} +2 -2
- package/dist/{community-report-client-TJVCLZ3K.js → community-report-client-ULRNXLQV.js} +1 -1
- package/dist/{compat-check-XD2U7PZ2.js → compat-check-JD5D77ET.js} +5 -4
- package/dist/{config-U3GDWU6E.js → config-IIMRATTP.js} +7 -6
- package/dist/{context-YAQG6YQC.js → context-BXHIPIIX.js} +8 -6
- package/dist/{data-integration-QE37EQ3A.js → data-integration-VRJQ3HVK.js} +7 -6
- package/dist/{evaluation-2JSF4V47.js → evaluation-Q3AIGFOG.js} +5 -5
- package/dist/index.js +49 -43
- package/dist/{local-data-upload-client-KCMG6J62.js → local-data-upload-client-YTWMAAGE.js} +1 -1
- package/dist/{memory-WEB27VI6.js → memory-B44LY27L.js} +6 -7
- package/dist/{metadata-7FYE4234.js → metadata-ZVPG2MIA.js} +10 -9
- package/dist/{model-T7H7Q6BG.js → model-ANZBYVST.js} +4 -5
- package/dist/{personal-semantic-preference-O6VXM74A.js → personal-semantic-preference-YNCV4QG3.js} +45 -14
- package/dist/{project-semantic-2GGFJWW6.js → project-semantic-E7ZAQL5S.js} +9 -8
- package/dist/{sync-ULBB7WO5.js → sync-Y4OZRQAY.js} +9 -9
- package/dist/{te-agent-6RMF7LUV.js → te-agent-RKAUTYJZ.js} +303 -17
- package/dist/{te-analysis-HSYC7GNV.js → te-analysis-7N5VC4JB.js} +25 -20
- package/dist/{te-community-FLKZGQKB.js → te-community-SIA2UHTS.js} +13 -11
- package/dist/{te-dataops-OQQGTCUA.js → te-dataops-5MJQCODU.js} +13 -11
- package/dist/{te-engage-RIEBHL5T.js → te-engage-ZTLOMKO3.js} +73 -20
- package/dist/{te-kb-4HG2FMHJ.js → te-kb-LDL3MF2Y.js} +107 -25
- package/dist/{te-system-AL4B4XZL.js → te-system-473I5O53.js} +6 -7
- package/dist/{te-team-5O4UVUWE.js → te-team-JOWHCMZA.js} +92 -10
- package/dist/{things-TSJ64GBT.js → things-DOQ2L3O2.js} +9 -8
- package/dist/{update-Q5LURAWV.js → update-KUS6TCPB.js} +8 -6
- package/dist/{workspace-FF2HXJGR.js → workspace-MJFPIV7C.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-automation/SKILL.md +6 -2
- package/skills/ae-automation/references/cli.md +9 -3
- package/skills/ae-capability/SKILL.md +8 -4
- package/skills/ae-engage/SKILL.md +6 -1
- package/skills/ae-engage/references/common-metric.md +47 -1
- package/skills/ae-engage/references/flow-metric-update.md +1 -1
- package/skills/ae-engage/references/task-metric-update.md +1 -1
- package/skills/ae-kb/SKILL.md +11 -7
- package/skills/ae-kb/references/publication.md +45 -0
- package/skills/ae-kb/references/query-workflow.md +5 -1
- package/skills/ae-team/SKILL.md +7 -3
- package/skills/ae-team/references/copy-to-personal.md +7 -0
- package/skills/ae-team/references/promote.md +7 -0
- package/skills/ae-team/references/update.md +3 -3
- package/dist/chunk-Y74WTIKJ.js +0 -10
- package/skills/ae-tracking-matrix/SKILL.md +0 -170
- package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
- package/skills/ae-tracking-matrix/i18n.yaml +0 -12
- package/skills/ae-tracking-matrix/references/ae-capabilities.md +0 -93
- package/skills/ae-tracking-matrix/references/business-semantic-checks.md +0 -30
- package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +0 -256
- package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +0 -213
- package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +0 -407
- package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +0 -218
- package/skills/ae-tracking-matrix/references/categories/casual_music.md +0 -112
- package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +0 -301
- package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +0 -356
- package/skills/ae-tracking-matrix/references/categories/fishing.md +0 -775
- package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +0 -89
- package/skills/ae-tracking-matrix/references/categories/idle_card.md +0 -27
- package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +0 -415
- package/skills/ae-tracking-matrix/references/categories/interactive_video.md +0 -133
- package/skills/ae-tracking-matrix/references/categories/merge.md +0 -639
- package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +0 -406
- package/skills/ae-tracking-matrix/references/categories/mmo_web.md +0 -230
- package/skills/ae-tracking-matrix/references/categories/music.md +0 -137
- package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +0 -414
- package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +0 -199
- package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +0 -158
- package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +0 -546
- package/skills/ae-tracking-matrix/references/categories/rpg.md +0 -195
- package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +0 -115
- package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +0 -151
- package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +0 -260
- package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +0 -232
- package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +0 -359
- package/skills/ae-tracking-matrix/references/categories/tower_defense.md +0 -365
- package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +0 -211
- package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +0 -132
- package/skills/ae-tracking-matrix/references/category-registry.md +0 -77
- package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +0 -230
- package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +0 -406
- package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +0 -128
- package/skills/ae-tracking-matrix/references/eval-cases.md +0 -74
- package/skills/ae-tracking-matrix/references/naming-dict.md +0 -238
- package/skills/ae-tracking-matrix/references/optimization-checklist.md +0 -85
- package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +0 -142
- package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +0 -47
- package/skills/ae-tracking-matrix/references/plan-generation/reference.md +0 -794
- package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +0 -94
- package/skills/ae-tracking-matrix/references/scene-routing.md +0 -80
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +0 -3787
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +0 -827
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +0 -655
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +0 -953
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +0 -1128
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +0 -714
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +0 -1268
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +0 -776
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +0 -182
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +0 -2755
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +0 -1182
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +0 -1300
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +0 -1369
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +0 -1692
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +0 -902
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +0 -763
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +0 -1107
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +0 -1532
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +0 -845
- package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +0 -228
- package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +0 -149
- package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +0 -407
- package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +0 -163
- package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +0 -149
- package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +0 -153
- package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +0 -232
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +0 -314
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +0 -117
- package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +0 -148
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +0 -645
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +0 -307
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +0 -347
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +0 -72
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +0 -264
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +0 -566
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +0 -409
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +0 -446
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +0 -557
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +0 -457
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +0 -490
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +0 -523
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +0 -484
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +0 -442
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +0 -391
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +0 -91
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +0 -635
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +0 -113
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +0 -466
- package/skills/ae-tracking-matrix/references/standard-base/README.md +0 -22
- package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +0 -174
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +0 -20
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +0 -7
- package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +0 -14
- package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +0 -370
- package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +0 -47
- package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +0 -37
- package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +0 -27
- package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +0 -23
- package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +0 -14
- package/skills/ae-tracking-matrix/references/standard-base/user_data.md +0 -46
- package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +0 -13
- package/skills/ae-tracking-matrix/references/system-fields.md +0 -297
- package/skills/ae-tracking-matrix/references/te-field-translations.md +0 -1791
- package/skills/ae-tracking-matrix/references/workflows/data-verification.md +0 -232
- package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +0 -829
- package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +0 -355
- package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +0 -283
- package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +0 -168
- package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +0 -205
- package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +0 -75
- package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +0 -36
- package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +0 -107
- package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +0 -114
- package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +0 -53
- package/skills/ae-tracking-matrix/scripts/finalize_plan.py +0 -166
- package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +0 -674
- package/skills/ae-tracking-matrix/scripts/plan_contract.py +0 -200
- package/skills/ae-tracking-matrix/scripts/plan_types.py +0 -60
- package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +0 -169
- package/skills/ae-tracking-matrix/scripts/sync_plan.py +0 -296
- package/skills/ae-tracking-matrix/scripts/upload_plan.py +0 -340
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
postToMainApp,
|
|
11
11
|
putToMainApp,
|
|
12
12
|
uploadToMainApp
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ETQXIZFP.js";
|
|
14
14
|
import {
|
|
15
15
|
clearCliTokenCache
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PLNS5J33.js";
|
|
17
17
|
|
|
18
18
|
// src/core/resource-package-client.ts
|
|
19
19
|
function checkPath(path) {
|
|
@@ -12,10 +12,11 @@ import {
|
|
|
12
12
|
shouldNotifyCompat,
|
|
13
13
|
shouldSkipAutoSync,
|
|
14
14
|
shouldSkipCompatCheck
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-YJYC5PLL.js";
|
|
16
|
+
import "./chunk-PUSFEC6B.js";
|
|
17
|
+
import "./chunk-PLNS5J33.js";
|
|
18
|
+
import "./chunk-AMURHMS3.js";
|
|
19
|
+
import "./chunk-R2SVAO4G.js";
|
|
19
20
|
export {
|
|
20
21
|
fetchCliConfig,
|
|
21
22
|
formatCapabilityMissCompatHint,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
invalidateBusinessSkillSynchronization,
|
|
5
5
|
refreshEnvironmentAfterLogin,
|
|
6
6
|
refreshEnvironmentConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PRCHMOWT.js";
|
|
8
8
|
import {
|
|
9
9
|
MultiselectCancelled,
|
|
10
10
|
promptSingleSelect
|
|
@@ -16,15 +16,16 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
printError,
|
|
18
18
|
printOutput
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VR2D54AA.js";
|
|
20
20
|
import {
|
|
21
21
|
fetchCliConfig,
|
|
22
22
|
readCurrentBusinessConfig,
|
|
23
23
|
resolveKbAutoDiscoveryFeature
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YJYC5PLL.js";
|
|
25
|
+
import "./chunk-PUSFEC6B.js";
|
|
25
26
|
import {
|
|
26
27
|
peekCliToken
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PLNS5J33.js";
|
|
28
29
|
import {
|
|
29
30
|
addHost,
|
|
30
31
|
getActiveHost,
|
|
@@ -34,10 +35,10 @@ import {
|
|
|
34
35
|
resolveHostSelector,
|
|
35
36
|
setActiveHost,
|
|
36
37
|
updateHostLabel
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-AMURHMS3.js";
|
|
38
39
|
import {
|
|
39
40
|
normalizeUrl
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-R2SVAO4G.js";
|
|
41
42
|
|
|
42
43
|
// src/commands/config.ts
|
|
43
44
|
import * as readline2 from "readline";
|
|
@@ -2,15 +2,16 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
TeAgentApiError,
|
|
4
4
|
getFromMainApp
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import
|
|
7
|
-
|
|
5
|
+
} from "./chunk-ETQXIZFP.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,21 @@ import {
|
|
|
8
8
|
utils,
|
|
9
9
|
validateAndFix,
|
|
10
10
|
validateDraft
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-F36ORPI6.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
|
+
import "./chunk-N2MAYIRU.js";
|
|
17
18
|
import {
|
|
18
19
|
getConfigDir
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AMURHMS3.js";
|
|
20
21
|
import {
|
|
21
22
|
CliValidationError,
|
|
22
23
|
LocalDataUploadError,
|
|
23
24
|
__toESM
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-R2SVAO4G.js";
|
|
25
26
|
|
|
26
27
|
// src/commands/data-integration/inspect.ts
|
|
27
28
|
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
|
@@ -2,7 +2,6 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
allHeaderNames,
|
|
4
4
|
allSheetNames,
|
|
5
|
-
detectCliLocale,
|
|
6
5
|
displayToType,
|
|
7
6
|
extractErrors,
|
|
8
7
|
fixDraft,
|
|
@@ -14,35 +13,37 @@ import {
|
|
|
14
13
|
validateAndFix,
|
|
15
14
|
validateDraft,
|
|
16
15
|
writeDraftXlsx
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-F36ORPI6.js";
|
|
17
|
+
import "./chunk-UCMO4LKL.js";
|
|
18
|
+
import "./chunk-2I5SZ5DS.js";
|
|
19
|
+
import "./chunk-HQED4YB4.js";
|
|
21
20
|
import {
|
|
22
21
|
resolveHost
|
|
23
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KA5WKR5P.js";
|
|
23
|
+
import {
|
|
24
|
+
detectCliLocale
|
|
25
|
+
} from "./chunk-N2MAYIRU.js";
|
|
24
26
|
import {
|
|
25
27
|
configureBusinessCommands,
|
|
26
28
|
parseProgram,
|
|
27
29
|
runCommand
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-2VKMHNUU.js";
|
|
31
|
+
import "./chunk-EFGUBGA6.js";
|
|
32
|
+
import "./chunk-ETQXIZFP.js";
|
|
33
|
+
import "./chunk-LFJ7N36I.js";
|
|
32
34
|
import {
|
|
33
35
|
printError,
|
|
34
36
|
printOutput
|
|
35
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-VR2D54AA.js";
|
|
36
38
|
import {
|
|
37
39
|
executeCapability,
|
|
38
40
|
uploadInputFileBytes
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-6HOM2FOJ.js";
|
|
42
|
+
import "./chunk-NNK3JBH4.js";
|
|
41
43
|
import {
|
|
42
44
|
beginBusinessSkillRefresh,
|
|
43
45
|
failInstallation,
|
|
44
46
|
fetchCliConfig,
|
|
45
|
-
getLocalCliPackageInfo,
|
|
46
47
|
installVersion,
|
|
47
48
|
isBusinessSkillRefreshCurrent,
|
|
48
49
|
newInstallationReport,
|
|
@@ -51,17 +52,21 @@ import {
|
|
|
51
52
|
runHostCompatCheck,
|
|
52
53
|
shouldSkipAutoSync,
|
|
53
54
|
syncRefreshedBusinessSkills
|
|
54
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-YJYC5PLL.js";
|
|
56
|
+
import {
|
|
57
|
+
getLocalCliPackageInfo
|
|
58
|
+
} from "./chunk-PUSFEC6B.js";
|
|
55
59
|
import {
|
|
56
60
|
SecureStoreAuthError,
|
|
57
61
|
getCliToken,
|
|
62
|
+
internalCallSourceHeaders,
|
|
58
63
|
peekCliToken
|
|
59
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-PLNS5J33.js";
|
|
60
65
|
import {
|
|
61
66
|
getActiveHost,
|
|
62
67
|
getConfigDir,
|
|
63
68
|
safeJsonParse
|
|
64
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-AMURHMS3.js";
|
|
65
70
|
import {
|
|
66
71
|
CliValidationError,
|
|
67
72
|
ExternalCliTokenError,
|
|
@@ -71,7 +76,7 @@ import {
|
|
|
71
76
|
readExternalCliToken,
|
|
72
77
|
readKbExecutionContext,
|
|
73
78
|
setExternalCliTokenFile
|
|
74
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-R2SVAO4G.js";
|
|
75
80
|
|
|
76
81
|
// src/index.ts
|
|
77
82
|
import { Command as CommanderCommand, Option } from "commander";
|
|
@@ -402,6 +407,7 @@ var TrackingClient = class {
|
|
|
402
407
|
const url = buildUrl(this.host, modulePath, params);
|
|
403
408
|
const headers = {
|
|
404
409
|
"cli-token": token,
|
|
410
|
+
...internalCallSourceHeaders(),
|
|
405
411
|
accept: "application/json"
|
|
406
412
|
};
|
|
407
413
|
const init = { method, headers };
|
|
@@ -2139,111 +2145,111 @@ function warnLoadFailure(label, err) {
|
|
|
2139
2145
|
async function loadCommands() {
|
|
2140
2146
|
const commands = [];
|
|
2141
2147
|
try {
|
|
2142
|
-
const teAnalysis = await import("./te-analysis-
|
|
2148
|
+
const teAnalysis = await import("./te-analysis-7N5VC4JB.js");
|
|
2143
2149
|
commands.push(...teAnalysis.default);
|
|
2144
2150
|
} catch (err) {
|
|
2145
2151
|
warnLoadFailure("domain te-analysis", err);
|
|
2146
2152
|
}
|
|
2147
2153
|
try {
|
|
2148
|
-
const engage = await import("./te-engage-
|
|
2154
|
+
const engage = await import("./te-engage-ZTLOMKO3.js");
|
|
2149
2155
|
commands.push(...engage.default);
|
|
2150
2156
|
} catch (err) {
|
|
2151
2157
|
warnLoadFailure("domain te-engage", err);
|
|
2152
2158
|
}
|
|
2153
2159
|
try {
|
|
2154
|
-
const community = await import("./te-community-
|
|
2160
|
+
const community = await import("./te-community-SIA2UHTS.js");
|
|
2155
2161
|
commands.push(...community.default);
|
|
2156
2162
|
} catch (err) {
|
|
2157
2163
|
warnLoadFailure("domain te-community", err);
|
|
2158
2164
|
}
|
|
2159
2165
|
try {
|
|
2160
|
-
const dataops = await import("./te-dataops-
|
|
2166
|
+
const dataops = await import("./te-dataops-5MJQCODU.js");
|
|
2161
2167
|
commands.push(...dataops.default);
|
|
2162
2168
|
} catch (err) {
|
|
2163
2169
|
warnLoadFailure("domain te-dataops", err);
|
|
2164
2170
|
}
|
|
2165
2171
|
try {
|
|
2166
|
-
const teKb = await import("./te-kb-
|
|
2172
|
+
const teKb = await import("./te-kb-LDL3MF2Y.js");
|
|
2167
2173
|
commands.push(...teKb.default);
|
|
2168
2174
|
} catch (err) {
|
|
2169
2175
|
warnLoadFailure("domain te-kb", err);
|
|
2170
2176
|
}
|
|
2171
2177
|
try {
|
|
2172
|
-
const teTeam = await import("./te-team-
|
|
2178
|
+
const teTeam = await import("./te-team-JOWHCMZA.js");
|
|
2173
2179
|
commands.push(...teTeam.default);
|
|
2174
2180
|
} catch (err) {
|
|
2175
2181
|
warnLoadFailure("domain te-team", err);
|
|
2176
2182
|
}
|
|
2177
2183
|
try {
|
|
2178
|
-
const teAgent = await import("./te-agent-
|
|
2184
|
+
const teAgent = await import("./te-agent-RKAUTYJZ.js");
|
|
2179
2185
|
commands.push(...teAgent.default);
|
|
2180
2186
|
} catch (err) {
|
|
2181
2187
|
warnLoadFailure("domain te-agent", err);
|
|
2182
2188
|
}
|
|
2183
2189
|
try {
|
|
2184
|
-
const memory = await import("./memory-
|
|
2190
|
+
const memory = await import("./memory-B44LY27L.js");
|
|
2185
2191
|
commands.push(...memory.default);
|
|
2186
2192
|
} catch (err) {
|
|
2187
2193
|
warnLoadFailure("domain memory", err);
|
|
2188
2194
|
}
|
|
2189
|
-
const automation = await import("./automation-
|
|
2195
|
+
const automation = await import("./automation-7XC3VBZI.js");
|
|
2190
2196
|
commands.push(...automation.default);
|
|
2191
2197
|
try {
|
|
2192
|
-
const things = await import("./things-
|
|
2198
|
+
const things = await import("./things-DOQ2L3O2.js");
|
|
2193
2199
|
commands.push(...things.default);
|
|
2194
2200
|
} catch (err) {
|
|
2195
2201
|
warnLoadFailure("domain things", err);
|
|
2196
2202
|
}
|
|
2197
2203
|
try {
|
|
2198
|
-
const workspace = await import("./workspace-
|
|
2204
|
+
const workspace = await import("./workspace-MJFPIV7C.js");
|
|
2199
2205
|
commands.push(...workspace.default);
|
|
2200
2206
|
} catch (err) {
|
|
2201
2207
|
warnLoadFailure("domain workspace", err);
|
|
2202
2208
|
}
|
|
2203
2209
|
try {
|
|
2204
|
-
const teSystem = await import("./te-system-
|
|
2210
|
+
const teSystem = await import("./te-system-473I5O53.js");
|
|
2205
2211
|
commands.push(...teSystem.default);
|
|
2206
2212
|
} catch (err) {
|
|
2207
2213
|
warnLoadFailure("domain te-system", err);
|
|
2208
2214
|
}
|
|
2209
2215
|
try {
|
|
2210
|
-
const metadata = await import("./metadata-
|
|
2216
|
+
const metadata = await import("./metadata-ZVPG2MIA.js");
|
|
2211
2217
|
commands.push(...metadata.default);
|
|
2212
2218
|
} catch (err) {
|
|
2213
2219
|
warnLoadFailure("domain metadata", err);
|
|
2214
2220
|
}
|
|
2215
2221
|
try {
|
|
2216
|
-
const personalSemanticPreference = await import("./personal-semantic-preference-
|
|
2222
|
+
const personalSemanticPreference = await import("./personal-semantic-preference-YNCV4QG3.js");
|
|
2217
2223
|
commands.push(...personalSemanticPreference.default);
|
|
2218
2224
|
} catch (err) {
|
|
2219
2225
|
warnLoadFailure("domain personal-semantic-preference", err);
|
|
2220
2226
|
}
|
|
2221
2227
|
try {
|
|
2222
|
-
const projectSemantic = await import("./project-semantic-
|
|
2228
|
+
const projectSemantic = await import("./project-semantic-E7ZAQL5S.js");
|
|
2223
2229
|
commands.push(...projectSemantic.default);
|
|
2224
2230
|
} catch (err) {
|
|
2225
2231
|
warnLoadFailure("domain project-semantic", err);
|
|
2226
2232
|
}
|
|
2227
2233
|
try {
|
|
2228
|
-
const dataIntegration = await import("./data-integration-
|
|
2234
|
+
const dataIntegration = await import("./data-integration-VRJQ3HVK.js");
|
|
2229
2235
|
commands.push(...dataIntegration.default);
|
|
2230
2236
|
} catch (err) {
|
|
2231
2237
|
warnLoadFailure("domain data-integration", err);
|
|
2232
2238
|
}
|
|
2233
2239
|
try {
|
|
2234
|
-
const context = await import("./context-
|
|
2240
|
+
const context = await import("./context-BXHIPIIX.js");
|
|
2235
2241
|
commands.push(...context.default);
|
|
2236
2242
|
} catch (err) {
|
|
2237
2243
|
warnLoadFailure("domain context", err);
|
|
2238
2244
|
}
|
|
2239
2245
|
try {
|
|
2240
|
-
const aiMonitor = await import("./ai-monitor-
|
|
2246
|
+
const aiMonitor = await import("./ai-monitor-X5GL44JT.js");
|
|
2241
2247
|
commands.push(...aiMonitor.default);
|
|
2242
2248
|
} catch (err) {
|
|
2243
2249
|
warnLoadFailure("domain ai-monitor", err);
|
|
2244
2250
|
}
|
|
2245
2251
|
try {
|
|
2246
|
-
const evaluation = await import("./evaluation-
|
|
2252
|
+
const evaluation = await import("./evaluation-Q3AIGFOG.js");
|
|
2247
2253
|
commands.push(...evaluation.default);
|
|
2248
2254
|
} catch (err) {
|
|
2249
2255
|
warnLoadFailure("domain evaluation", err);
|
|
@@ -2252,7 +2258,7 @@ async function loadCommands() {
|
|
|
2252
2258
|
}
|
|
2253
2259
|
async function registerAuthCommands() {
|
|
2254
2260
|
try {
|
|
2255
|
-
const { registerAuth } = await import("./auth-
|
|
2261
|
+
const { registerAuth } = await import("./auth-SPQ46XQ3.js");
|
|
2256
2262
|
registerAuth(program);
|
|
2257
2263
|
} catch (err) {
|
|
2258
2264
|
warnLoadFailure("auth commands", err);
|
|
@@ -2260,7 +2266,7 @@ async function registerAuthCommands() {
|
|
|
2260
2266
|
}
|
|
2261
2267
|
async function registerConfigCommands() {
|
|
2262
2268
|
try {
|
|
2263
|
-
const { registerConfig } = await import("./config-
|
|
2269
|
+
const { registerConfig } = await import("./config-IIMRATTP.js");
|
|
2264
2270
|
registerConfig(program);
|
|
2265
2271
|
} catch (err) {
|
|
2266
2272
|
warnLoadFailure("config commands", err);
|
|
@@ -2268,7 +2274,7 @@ async function registerConfigCommands() {
|
|
|
2268
2274
|
}
|
|
2269
2275
|
async function registerCapabilityCommands() {
|
|
2270
2276
|
try {
|
|
2271
|
-
const { registerCapability } = await import("./capability-
|
|
2277
|
+
const { registerCapability } = await import("./capability-JZP4KXZC.js");
|
|
2272
2278
|
registerCapability(program);
|
|
2273
2279
|
} catch (err) {
|
|
2274
2280
|
warnLoadFailure("capability commands", err);
|
|
@@ -2276,7 +2282,7 @@ async function registerCapabilityCommands() {
|
|
|
2276
2282
|
}
|
|
2277
2283
|
async function registerSyncCommand() {
|
|
2278
2284
|
try {
|
|
2279
|
-
const { registerSync } = await import("./sync-
|
|
2285
|
+
const { registerSync } = await import("./sync-Y4OZRQAY.js");
|
|
2280
2286
|
registerSync(program);
|
|
2281
2287
|
} catch (err) {
|
|
2282
2288
|
warnLoadFailure("sync commands", err);
|
|
@@ -2284,7 +2290,7 @@ async function registerSyncCommand() {
|
|
|
2284
2290
|
}
|
|
2285
2291
|
async function registerModelCommand() {
|
|
2286
2292
|
try {
|
|
2287
|
-
const { registerModel } = await import("./model-
|
|
2293
|
+
const { registerModel } = await import("./model-ANZBYVST.js");
|
|
2288
2294
|
registerModel(program);
|
|
2289
2295
|
} catch (err) {
|
|
2290
2296
|
warnLoadFailure("model commands", err);
|
|
@@ -2292,7 +2298,7 @@ async function registerModelCommand() {
|
|
|
2292
2298
|
}
|
|
2293
2299
|
async function registerUpdateCommand() {
|
|
2294
2300
|
try {
|
|
2295
|
-
const { registerUpdate } = await import("./update-
|
|
2301
|
+
const { registerUpdate } = await import("./update-KUS6TCPB.js");
|
|
2296
2302
|
registerUpdate(program);
|
|
2297
2303
|
} catch (err) {
|
|
2298
2304
|
warnLoadFailure("update commands", err);
|
|
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
LocalDataUploadError,
|
|
4
4
|
logger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-R2SVAO4G.js";
|
|
6
6
|
|
|
7
7
|
// src/core/local-data-upload-client.ts
|
|
8
8
|
import { createHash } from "crypto";
|
|
@@ -7,15 +7,14 @@ import {
|
|
|
7
7
|
getMemoryCli,
|
|
8
8
|
patchMemoryCli,
|
|
9
9
|
postMemoryCli
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-4PSTYEG5.js";
|
|
10
|
+
} from "./chunk-YIG3L4RC.js";
|
|
11
|
+
import "./chunk-ZVUXAHEV.js";
|
|
12
|
+
import "./chunk-ETQXIZFP.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-RYY5NJK3.js";
|
|
5
5
|
import {
|
|
6
6
|
createCapabilityCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-E457FREE.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-VR2D54AA.js";
|
|
12
|
+
import "./chunk-6HOM2FOJ.js";
|
|
13
|
+
import "./chunk-NNK3JBH4.js";
|
|
14
|
+
import "./chunk-YJYC5PLL.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-ETQXIZFP.js";
|
|
19
|
+
import "./chunk-PLNS5J33.js";
|
|
20
|
+
import "./chunk-AMURHMS3.js";
|
|
21
|
+
import "./chunk-R2SVAO4G.js";
|
|
23
22
|
|
|
24
23
|
// src/commands/model/index.ts
|
|
25
24
|
import { existsSync, readFileSync } from "fs";
|
package/dist/{personal-semantic-preference-O6VXM74A.js → personal-semantic-preference-YNCV4QG3.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-E457FREE.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-VR2D54AA.js";
|
|
9
|
+
import "./chunk-6HOM2FOJ.js";
|
|
10
|
+
import "./chunk-NNK3JBH4.js";
|
|
11
|
+
import "./chunk-YJYC5PLL.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." },
|