@thinkingai/ae-cli 6.0.58 → 6.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -6
- package/README.zh.md +16 -6
- package/bin/ai-monitor.js +2 -0
- package/bin/runtime-capabilities.json +1 -1
- package/dist/ai-monitor-NUKSJPLE.js +33 -0
- package/dist/ai-monitor.js +136 -0
- package/dist/{auth-A5OO4VS4.js → auth-MVAEBGBP.js} +24 -15
- package/dist/{automation-FD2QZUP6.js → automation-6L6IAYRK.js} +6 -7
- package/dist/{capability-SKI4GHF4.js → capability-74N7AN5X.js} +35 -38
- package/dist/{chunk-OAWPT7VP.js → chunk-2I5SZ5DS.js} +2 -2
- package/dist/{chunk-QWSA3EOD.js → chunk-7WBCSJL6.js} +23 -9
- package/dist/{chunk-4PSTYEG5.js → chunk-AMURHMS3.js} +11 -7
- package/dist/{chunk-KPQY44JQ.js → chunk-AWW2T2WL.js} +3 -0
- package/dist/chunk-BQFLABJQ.js +186 -0
- package/dist/{chunk-E25OSZLJ.js → chunk-COOMXFUG.js} +3 -3
- package/dist/chunk-EFGUBGA6.js +64 -0
- package/dist/{chunk-HQCY3QCA.js → chunk-H35VDOAE.js} +18 -13
- package/dist/{chunk-VDICGXCY.js → chunk-HIMOBNEY.js} +2 -2
- package/dist/{chunk-JEUXDY3B.js → chunk-HQED4YB4.js} +1 -1
- package/dist/chunk-HRFYYEXR.js +1285 -0
- package/dist/{chunk-UYJMEHAF.js → chunk-JZY6WWAP.js} +22 -21
- package/dist/{chunk-2F64AZYH.js → chunk-KA5WKR5P.js} +2 -2
- package/dist/{chunk-YVG6QD3V.js → chunk-LFJ7N36I.js} +103 -8
- package/dist/{chunk-EEARZNHE.js → chunk-LPKIMGIU.js} +89 -37
- package/dist/chunk-NNK3JBH4.js +60 -0
- package/dist/{chunk-WMDO53YK.js → chunk-OTZ4JQDU.js} +2 -2
- package/dist/{chunk-SOSFRU3O.js → chunk-PLNS5J33.js} +58 -26
- package/dist/chunk-PUSFEC6B.js +29 -0
- package/dist/{chunk-Z3Q2AEIN.js → chunk-R2SVAO4G.js} +14 -2
- package/dist/{chunk-K2Z7QHDR.js → chunk-RB26WNLM.js} +52 -15
- package/dist/chunk-SVNED423.js +556 -0
- package/dist/{chunk-AWVZTN2B.js → chunk-THTROEGD.js} +1 -1
- package/dist/{chunk-QVRIDN42.js → chunk-UCMO4LKL.js} +2 -2
- package/dist/{chunk-JSBLCLFE.js → chunk-VLOGOM7N.js} +13 -7
- package/dist/{chunk-GBSACKFB.js → chunk-XPARQSYS.js} +528 -299
- package/dist/{chunk-72NJKS7O.js → chunk-XZDKAR4N.js} +4 -4
- package/dist/{community-report-client-TJVCLZ3K.js → community-report-client-ULRNXLQV.js} +1 -1
- package/dist/{compat-check-WFEKVLTH.js → compat-check-W4XC27RG.js} +5 -4
- package/dist/{config-U4I7X25P.js → config-264GB6C7.js} +28 -14
- package/dist/{context-CDB5H5PD.js → context-SOQDFZIB.js} +8 -6
- package/dist/{data-integration-QE37EQ3A.js → data-integration-UNJ7EPW2.js} +6 -6
- package/dist/{evaluation-LR4YDYWL.js → evaluation-Q3AIGFOG.js} +14 -159
- package/dist/index.js +98 -589
- package/dist/{local-data-upload-client-KCMG6J62.js → local-data-upload-client-YTWMAAGE.js} +1 -1
- package/dist/{memory-SNFR5M23.js → memory-ZLTTULZK.js} +9 -10
- package/dist/{metadata-6QM6EED5.js → metadata-EN2IWCDI.js} +11 -10
- package/dist/{model-KEVCEXWD.js → model-NAKQWK4W.js} +4 -5
- package/dist/{personal-semantic-preference-7VXQPP2N.js → personal-semantic-preference-UGN67KTN.js} +46 -15
- package/dist/{project-semantic-PSEPYH2L.js → project-semantic-5OP3YPZD.js} +19 -16
- package/dist/{sync-22ACDK5Z.js → sync-LDJQZRQH.js} +9 -9
- package/dist/{te-agent-BJ36B4QI.js → te-agent-WNNAD4AJ.js} +303 -17
- package/dist/{te-analysis-WQ6D6YG4.js → te-analysis-KIMH6AGU.js} +399 -205
- package/dist/{te-community-VRWMFGI6.js → te-community-P7NNBVCS.js} +17 -15
- package/dist/{te-dataops-YTLFTTW7.js → te-dataops-ZRKSG4R7.js} +13 -11
- package/dist/{te-engage-V2QW7TIC.js → te-engage-PVBVNRSU.js} +13 -12
- package/dist/{te-kb-4AQLISDR.js → te-kb-W7PRC7QN.js} +80 -20
- package/dist/{te-system-CYWSK3UN.js → te-system-F4ZU2HRQ.js} +6 -7
- package/dist/{te-team-6ELNGBWT.js → te-team-5ONMRGKF.js} +9 -8
- package/dist/{things-HFWLGCUH.js → things-PFENSIF4.js} +9 -8
- package/dist/{update-3CRVVHV5.js → update-EUZ4GNND.js} +8 -6
- package/dist/{workspace-2CKQX2XL.js → workspace-Z7L33OBQ.js} +6 -7
- package/package.json +12 -7
- 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-ai-monitor/SKILL.md +179 -0
- package/skills/ae-ai-monitor/references/read-commands.md +866 -0
- package/skills/ae-analysis/SKILL.md +43 -25
- package/skills/ae-analysis/references/adhoc_export.md +3 -1
- package/skills/ae-analysis/references/ai_models.md +1 -0
- package/skills/ae-analysis/references/analysis_data_retrieval.md +1 -1
- package/skills/ae-analysis/references/analysis_gateway_assets.md +2 -0
- 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/asset_search.md +1 -1
- package/skills/ae-analysis/references/bad_case_begin.md +12 -0
- package/skills/ae-analysis/references/bad_case_get.md +12 -0
- package/skills/ae-analysis/references/bad_case_history.md +12 -0
- package/skills/ae-analysis/references/bad_case_list.md +12 -0
- package/skills/ae-analysis/references/bad_case_review.md +51 -0
- package/skills/ae-analysis/references/bad_case_run.md +12 -0
- package/skills/ae-analysis/references/bad_case_submit.md +12 -0
- package/skills/ae-analysis/references/bad_case_submit_to_page.md +12 -0
- package/skills/ae-analysis/references/bad_case_sync_evaluation.md +11 -0
- package/skills/ae-analysis/references/bi_panel_list.md +1 -1
- package/skills/ae-analysis/references/bi_panel_share.md +3 -1
- package/skills/ae-analysis/references/catalog_list.md +2 -0
- package/skills/ae-analysis/references/command_index.md +44 -35
- package/skills/ae-analysis/references/dashboard_daily_report_update.md +2 -0
- package/skills/ae-analysis/references/dashboard_handover.md +3 -1
- package/skills/ae-analysis/references/dashboard_list.md +3 -3
- package/skills/ae-analysis/references/dashboard_report_data_export.md +1 -1
- package/skills/ae-analysis/references/dashboard_share.md +3 -1
- package/skills/ae-analysis/references/dashboard_update.md +3 -2
- package/skills/ae-analysis/references/filter_value_list.md +2 -0
- package/skills/ae-analysis/references/folder_share.md +8 -2
- package/skills/ae-analysis/references/governance_recommendation_export.md +2 -2
- package/skills/ae-analysis/references/governance_recommendation_run_update.md +3 -1
- 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_data_power_upsert.md +3 -1
- package/skills/ae-analysis/references/project_mark_time_create.md +2 -0
- package/skills/ae-analysis/references/project_mark_time_update.md +2 -0
- package/skills/ae-analysis/references/project_member_add.md +3 -1
- package/skills/ae-analysis/references/project_member_batch_update.md +3 -1
- package/skills/ae-analysis/references/project_member_handover_run.md +3 -1
- package/skills/ae-analysis/references/project_member_update.md +3 -1
- package/skills/ae-analysis/references/project_owner_update.md +8 -2
- package/skills/ae-analysis/references/project_role_upsert.md +5 -3
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +16 -1
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +14 -1
- package/skills/ae-analysis/references/project_space_share.md +8 -2
- package/skills/ae-analysis/references/property_get.md +2 -0
- package/skills/ae-analysis/references/public_link_list.md +3 -1
- package/skills/ae-analysis/references/query_cancel.md +4 -1
- package/skills/ae-analysis/references/report_data_run.md +1 -1
- package/skills/ae-analysis/references/report_list.md +3 -3
- package/skills/ae-analysis/references/scenario_append.md +2 -2
- package/skills/ae-analysis/references/scenario_collect.md +15 -4
- package/skills/ae-analysis/references/scenario_evaluation.md +17 -1
- package/skills/ae-analysis/references/scenario_list.md +7 -7
- package/skills/ae-analysis/references/system_oauth2_update.md +3 -1
- package/skills/ae-analysis/references/system_third_party_login_upsert.md +4 -2
- package/skills/ae-analysis/references/user_tag_create.md +4 -1
- package/skills/ae-analysis/references/user_tag_get.md +2 -0
- package/skills/ae-analysis/references/user_tag_models.md +8 -2
- package/skills/ae-analysis/references/user_tag_update.md +5 -2
- package/skills/ae-analysis/references/virtual_property_create.md +12 -1
- package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +10 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +55 -13
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +2 -2
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +2 -2
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-schema.md +7 -1
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/wait-compile-run.mjs +79 -0
- package/skills/ae-automation/SKILL.md +4 -2
- package/skills/ae-capability/SKILL.md +16 -8
- package/skills/ae-community/SKILL.md +1 -0
- package/skills/ae-dataops/SKILL.md +1 -0
- package/skills/ae-engage/SKILL.md +1 -0
- package/skills/ae-evaluation/SKILL.md +17 -2
- package/skills/ae-generate-tracking-plan/SKILL.md +5 -0
- package/skills/ae-kb/SKILL.md +8 -4
- package/skills/ae-kb/references/analysis-workflow.md +11 -2
- package/skills/ae-kb/references/publication.md +45 -0
- package/skills/ae-kb/references/query-workflow.md +3 -1
- package/skills/ae-kb/references/versions.md +1 -1
- package/skills/ae-metadata/SKILL.md +1 -0
- package/skills/ae-migrate-tracking-code/SKILL.md +2 -1
- package/skills/ae-team/SKILL.md +1 -1
- package/skills/ae-tracking-matrix/SKILL.md +170 -0
- 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 +12 -0
- package/skills/ae-tracking-matrix/references/ae-capabilities.md +93 -0
- package/skills/ae-tracking-matrix/references/business-semantic-checks.md +30 -0
- package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +256 -0
- package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +213 -0
- package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +407 -0
- package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +218 -0
- package/skills/ae-tracking-matrix/references/categories/casual_music.md +112 -0
- package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +301 -0
- package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +356 -0
- package/skills/ae-tracking-matrix/references/categories/fishing.md +775 -0
- package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +89 -0
- package/skills/ae-tracking-matrix/references/categories/idle_card.md +27 -0
- package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +415 -0
- package/skills/ae-tracking-matrix/references/categories/interactive_video.md +133 -0
- package/skills/ae-tracking-matrix/references/categories/merge.md +639 -0
- package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +406 -0
- package/skills/ae-tracking-matrix/references/categories/mmo_web.md +230 -0
- package/skills/ae-tracking-matrix/references/categories/music.md +137 -0
- package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +414 -0
- package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +199 -0
- package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +158 -0
- package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +546 -0
- package/skills/ae-tracking-matrix/references/categories/rpg.md +195 -0
- package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +115 -0
- package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +151 -0
- package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +260 -0
- package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +232 -0
- package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +359 -0
- package/skills/ae-tracking-matrix/references/categories/tower_defense.md +365 -0
- package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +211 -0
- package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +132 -0
- package/skills/ae-tracking-matrix/references/category-registry.md +77 -0
- package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +230 -0
- package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +406 -0
- package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +128 -0
- package/skills/ae-tracking-matrix/references/eval-cases.md +74 -0
- package/skills/ae-tracking-matrix/references/naming-dict.md +238 -0
- package/skills/ae-tracking-matrix/references/optimization-checklist.md +85 -0
- package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +142 -0
- package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +47 -0
- package/skills/ae-tracking-matrix/references/plan-generation/reference.md +794 -0
- package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +94 -0
- package/skills/ae-tracking-matrix/references/scene-routing.md +80 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +3787 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +827 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +655 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +953 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +1128 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +714 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +1268 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +776 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +182 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +2755 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +1182 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +1300 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +1369 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +1692 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +902 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +763 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +1107 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +1532 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +845 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +228 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +149 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +407 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +163 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +149 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +153 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +232 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +314 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +117 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +148 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +645 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +307 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +347 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +72 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +264 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +566 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +409 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +446 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +557 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +457 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +490 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +523 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +484 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +442 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +391 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +91 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +635 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +113 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +466 -0
- package/skills/ae-tracking-matrix/references/standard-base/README.md +22 -0
- package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +174 -0
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +20 -0
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +7 -0
- package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +14 -0
- package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +370 -0
- package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +47 -0
- package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +37 -0
- package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +27 -0
- package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +23 -0
- package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +14 -0
- package/skills/ae-tracking-matrix/references/standard-base/user_data.md +46 -0
- package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +13 -0
- package/skills/ae-tracking-matrix/references/system-fields.md +297 -0
- package/skills/ae-tracking-matrix/references/te-field-translations.md +1791 -0
- package/skills/ae-tracking-matrix/references/workflows/data-verification.md +232 -0
- package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +829 -0
- package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +355 -0
- package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +283 -0
- package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +168 -0
- package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +205 -0
- package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +75 -0
- package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +36 -0
- package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +107 -0
- package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +114 -0
- package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +53 -0
- package/skills/ae-tracking-matrix/scripts/finalize_plan.py +166 -0
- package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +674 -0
- package/skills/ae-tracking-matrix/scripts/plan_contract.py +200 -0
- package/skills/ae-tracking-matrix/scripts/plan_types.py +60 -0
- package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +169 -0
- package/skills/ae-tracking-matrix/scripts/sync_plan.py +296 -0
- package/skills/ae-tracking-matrix/scripts/upload_plan.py +340 -0
- package/dist/chunk-AMBFK2K3.js +0 -28
- package/dist/chunk-Y74WTIKJ.js +0 -10
package/dist/index.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
requiresConfirmation
|
|
4
|
-
} from "./chunk-AMBFK2K3.js";
|
|
5
2
|
import {
|
|
6
3
|
allHeaderNames,
|
|
7
4
|
allSheetNames,
|
|
@@ -17,478 +14,73 @@ import {
|
|
|
17
14
|
validateAndFix,
|
|
18
15
|
validateDraft,
|
|
19
16
|
writeDraftXlsx
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import
|
|
23
|
-
|
|
24
|
-
} from "./chunk-YVG6QD3V.js";
|
|
25
|
-
import "./chunk-OAWPT7VP.js";
|
|
26
|
-
import "./chunk-JEUXDY3B.js";
|
|
27
|
-
import {
|
|
28
|
-
TeAgentApiError,
|
|
29
|
-
TeAgentCredentialsError
|
|
30
|
-
} from "./chunk-JSBLCLFE.js";
|
|
31
|
-
import {
|
|
32
|
-
CapabilityGatewayError,
|
|
33
|
-
executeCapability,
|
|
34
|
-
uploadInputFileBytes
|
|
35
|
-
} from "./chunk-UYJMEHAF.js";
|
|
17
|
+
} from "./chunk-XZDKAR4N.js";
|
|
18
|
+
import "./chunk-UCMO4LKL.js";
|
|
19
|
+
import "./chunk-2I5SZ5DS.js";
|
|
20
|
+
import "./chunk-HQED4YB4.js";
|
|
36
21
|
import {
|
|
37
22
|
resolveHost
|
|
38
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KA5WKR5P.js";
|
|
24
|
+
import {
|
|
25
|
+
configureBusinessCommands,
|
|
26
|
+
parseProgram,
|
|
27
|
+
runCommand
|
|
28
|
+
} from "./chunk-SVNED423.js";
|
|
29
|
+
import "./chunk-EFGUBGA6.js";
|
|
30
|
+
import "./chunk-VLOGOM7N.js";
|
|
31
|
+
import "./chunk-LFJ7N36I.js";
|
|
39
32
|
import {
|
|
40
33
|
printError,
|
|
41
34
|
printOutput
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-Y74WTIKJ.js";
|
|
35
|
+
} from "./chunk-OTZ4JQDU.js";
|
|
44
36
|
import {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
37
|
+
executeCapability,
|
|
38
|
+
uploadInputFileBytes
|
|
39
|
+
} from "./chunk-JZY6WWAP.js";
|
|
40
|
+
import "./chunk-NNK3JBH4.js";
|
|
41
|
+
import {
|
|
42
|
+
beginBusinessSkillRefresh,
|
|
48
43
|
failInstallation,
|
|
49
44
|
fetchCliConfig,
|
|
50
|
-
formatCapabilityMissCompatHint,
|
|
51
|
-
getLocalCliPackageInfo,
|
|
52
45
|
installVersion,
|
|
46
|
+
isBusinessSkillRefreshCurrent,
|
|
53
47
|
newInstallationReport,
|
|
54
|
-
|
|
48
|
+
rememberBusinessConfig,
|
|
55
49
|
resolveKbAutoDiscoveryFeature,
|
|
56
50
|
runHostCompatCheck,
|
|
57
|
-
shouldSkipAutoSync
|
|
58
|
-
|
|
51
|
+
shouldSkipAutoSync,
|
|
52
|
+
syncRefreshedBusinessSkills
|
|
53
|
+
} from "./chunk-XPARQSYS.js";
|
|
54
|
+
import {
|
|
55
|
+
getLocalCliPackageInfo
|
|
56
|
+
} from "./chunk-PUSFEC6B.js";
|
|
59
57
|
import {
|
|
60
|
-
CredentialStoreUnreadableError,
|
|
61
58
|
SecureStoreAuthError,
|
|
62
59
|
getCliToken,
|
|
60
|
+
internalCallSourceHeaders,
|
|
63
61
|
peekCliToken
|
|
64
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-PLNS5J33.js";
|
|
65
63
|
import {
|
|
66
64
|
getActiveHost,
|
|
67
65
|
getConfigDir,
|
|
68
66
|
safeJsonParse
|
|
69
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-AMURHMS3.js";
|
|
70
68
|
import {
|
|
71
|
-
CliApiError,
|
|
72
69
|
CliValidationError,
|
|
73
|
-
CommunityReportError,
|
|
74
70
|
ExternalCliTokenError,
|
|
75
|
-
LocalDataUploadError,
|
|
76
|
-
PermissionError,
|
|
77
71
|
externalCliTokenRequestOptions,
|
|
78
72
|
kbExecutionContextRequired,
|
|
79
73
|
logger,
|
|
80
74
|
readExternalCliToken,
|
|
81
75
|
readKbExecutionContext,
|
|
82
76
|
setExternalCliTokenFile
|
|
83
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-R2SVAO4G.js";
|
|
84
78
|
|
|
85
79
|
// src/index.ts
|
|
86
80
|
import { Command as CommanderCommand, Option } from "commander";
|
|
87
81
|
import { createRequire } from "module";
|
|
88
82
|
import { constants as osConstants } from "os";
|
|
89
83
|
|
|
90
|
-
// src/framework/runner.ts
|
|
91
|
-
import * as readline from "readline";
|
|
92
|
-
function missingRequiredFlagsError(cmdName, missing) {
|
|
93
|
-
const names = missing.map((flag) => `--${flag.name}`);
|
|
94
|
-
const message = missing.length === 1 ? `Missing required flag: ${names[0]}` : `Missing required flags: ${names.join(", ")}`;
|
|
95
|
-
const hintParts = missing.map((flag) => flag.hint?.trim()).filter((hint2) => Boolean(hint2));
|
|
96
|
-
const hint = hintParts.length > 0 ? hintParts.join(" ") : `Usage: ae-cli ${cmdName} ${names.map((name) => `${name} <value>`).join(" ")}`;
|
|
97
|
-
return { message, hint };
|
|
98
|
-
}
|
|
99
|
-
function canPromptForConfirmation(input = process.stdin, output = process.stderr) {
|
|
100
|
-
return input.isTTY === true && output.isTTY === true;
|
|
101
|
-
}
|
|
102
|
-
function readSkillCurrentVersion(body) {
|
|
103
|
-
if (!body || typeof body !== "object" || Array.isArray(body)) return void 0;
|
|
104
|
-
const currentVersion = body.currentVersion;
|
|
105
|
-
if (typeof currentVersion !== "string") return void 0;
|
|
106
|
-
return /^(0|[1-9]\d*)\.(0|[1-9]\d*)$/.test(currentVersion) ? currentVersion : void 0;
|
|
107
|
-
}
|
|
108
|
-
function teAgentApiErrorPresentation(err) {
|
|
109
|
-
if (err.code === "SKILL_VERSION_CONFLICT") {
|
|
110
|
-
const currentVersion = readSkillCurrentVersion(err.body);
|
|
111
|
-
return {
|
|
112
|
-
message: "The Skill content changed, and the new version must be greater than the current version.",
|
|
113
|
-
code: err.code,
|
|
114
|
-
hint: currentVersion ? `Retry with --version set to a major.minor version greater than ${currentVersion}.` : "Retry with --version set to a major.minor version greater than the current Skill version.",
|
|
115
|
-
...currentVersion ? { meta: { currentVersion } } : {}
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
if (err.code === "SKILL_HISTORY_CONFLICT") {
|
|
119
|
-
return {
|
|
120
|
-
message: "The Skill cannot be safely updated right now.",
|
|
121
|
-
code: err.code,
|
|
122
|
-
hint: "The Skill cannot be safely updated right now. Please contact your administrator."
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
return {};
|
|
126
|
-
}
|
|
127
|
-
async function runCommand(cmd, opts, globalOpts) {
|
|
128
|
-
try {
|
|
129
|
-
const ctx = createRuntimeContext(cmd, opts, globalOpts);
|
|
130
|
-
const cmdName = cmd.resource ? `${cmd.service} ${cmd.resource} ${cmd.command}` : `${cmd.service} ${cmd.command}`;
|
|
131
|
-
logger.command(
|
|
132
|
-
cmdName,
|
|
133
|
-
opts,
|
|
134
|
-
cmd.flags.filter((flag) => flag.sensitive).map((flag) => flag.name)
|
|
135
|
-
);
|
|
136
|
-
const missingRequired = cmd.flags.filter((flag) => {
|
|
137
|
-
if (!flag.required) return false;
|
|
138
|
-
const val = opts[camelCase(flag.name)];
|
|
139
|
-
if (flag.variadic) return !Array.isArray(val) || val.length === 0;
|
|
140
|
-
return val === void 0 || val === null || val === "";
|
|
141
|
-
});
|
|
142
|
-
if (missingRequired.length > 0) {
|
|
143
|
-
const { message, hint } = missingRequiredFlagsError(cmdName, missingRequired);
|
|
144
|
-
printError("validation", message, hint);
|
|
145
|
-
process.exit(1);
|
|
146
|
-
}
|
|
147
|
-
if (cmd.validate && cmd.service !== "community") {
|
|
148
|
-
cmd.validate(ctx);
|
|
149
|
-
}
|
|
150
|
-
const LIMIT_FLAG_PATTERNS = [/limit/i, /page_size/i, /pagesize/i, /row_limit/i, /block_limit/i, /top[-_]?k/i];
|
|
151
|
-
for (const flag of cmd.flags) {
|
|
152
|
-
const val = opts[camelCase(flag.name)];
|
|
153
|
-
if (flag.variadic) continue;
|
|
154
|
-
if (flag.type === "boolean") {
|
|
155
|
-
if (val !== void 0 && typeof val !== "boolean") {
|
|
156
|
-
printError("validation", `Invalid boolean for --${flag.name}: ${val}. Use true/false.`);
|
|
157
|
-
process.exit(1);
|
|
158
|
-
}
|
|
159
|
-
continue;
|
|
160
|
-
}
|
|
161
|
-
if (flag.type === "int64") {
|
|
162
|
-
if (val === void 0 || val === null || val === "") continue;
|
|
163
|
-
const raw = String(val);
|
|
164
|
-
if (!/^-?(?:0|[1-9]\d*)$/.test(raw)) {
|
|
165
|
-
printError("validation", `--${flag.name} must be a base-10 integer (got: ${val})`);
|
|
166
|
-
process.exit(1);
|
|
167
|
-
}
|
|
168
|
-
const parsed = BigInt(raw);
|
|
169
|
-
const minInt64 = -(1n << 63n);
|
|
170
|
-
const maxInt64 = (1n << 63n) - 1n;
|
|
171
|
-
if (parsed < minInt64 || parsed > maxInt64) {
|
|
172
|
-
printError("validation", `--${flag.name} must fit in a signed 64-bit integer (got: ${val})`);
|
|
173
|
-
process.exit(1);
|
|
174
|
-
}
|
|
175
|
-
if (flag.min !== void 0 && parsed < BigInt(flag.min)) {
|
|
176
|
-
printError("validation", `--${flag.name} must be at least ${flag.min} (got: ${val})`);
|
|
177
|
-
process.exit(1);
|
|
178
|
-
}
|
|
179
|
-
if (flag.max !== void 0 && parsed > BigInt(flag.max)) {
|
|
180
|
-
printError("validation", `--${flag.name} must be at most ${flag.max} (got: ${val})`);
|
|
181
|
-
process.exit(1);
|
|
182
|
-
}
|
|
183
|
-
continue;
|
|
184
|
-
}
|
|
185
|
-
if (flag.type !== "number") continue;
|
|
186
|
-
if (flag.variadic) continue;
|
|
187
|
-
if (val === void 0 || val === null || val === "") continue;
|
|
188
|
-
const num = Number(val);
|
|
189
|
-
if (!Number.isFinite(num)) {
|
|
190
|
-
printError("validation", `--${flag.name} must be a number (got: ${val})`);
|
|
191
|
-
process.exit(1);
|
|
192
|
-
}
|
|
193
|
-
const isLimitFlag = LIMIT_FLAG_PATTERNS.some((p) => p.test(flag.name)) || cmd.service === "community" && /page[-_]?(?:size|num)|row[-_]?limit/i.test(flag.name);
|
|
194
|
-
if (isLimitFlag) {
|
|
195
|
-
const min = flag.min ?? 1;
|
|
196
|
-
const max = flag.max ?? 1e4;
|
|
197
|
-
if (!Number.isInteger(num) || num < min || num > max) {
|
|
198
|
-
printError("validation", `--${flag.name} must be an integer between ${min} and ${max} (got: ${val})`);
|
|
199
|
-
process.exit(1);
|
|
200
|
-
}
|
|
201
|
-
} else if (flag.min !== void 0 || flag.max !== void 0) {
|
|
202
|
-
const min = flag.min ?? Number.NEGATIVE_INFINITY;
|
|
203
|
-
const max = flag.max ?? Number.POSITIVE_INFINITY;
|
|
204
|
-
if (num < min || num > max) {
|
|
205
|
-
const lower = flag.min === void 0 ? "-Infinity" : String(min);
|
|
206
|
-
const upper = flag.max === void 0 ? "Infinity" : String(max);
|
|
207
|
-
printError("validation", `--${flag.name} must be a number between ${lower} and ${upper} (got: ${val})`);
|
|
208
|
-
process.exit(1);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
for (const flag of cmd.flags) {
|
|
213
|
-
if (flag.type !== "string") continue;
|
|
214
|
-
if (flag.variadic) continue;
|
|
215
|
-
const val = opts[camelCase(flag.name)];
|
|
216
|
-
if (val === void 0 || val === null || val === "") continue;
|
|
217
|
-
const error = stringFlagValidationError(flag, String(val));
|
|
218
|
-
if (error) {
|
|
219
|
-
printError("validation", error.message, error.hint);
|
|
220
|
-
process.exit(1);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
if (cmd.validate && cmd.service === "community") {
|
|
224
|
-
cmd.validate(ctx);
|
|
225
|
-
}
|
|
226
|
-
if (globalOpts.validate && globalOpts.dryRun) {
|
|
227
|
-
printError(
|
|
228
|
-
"validation",
|
|
229
|
-
"Cannot combine --validate and --dry-run.",
|
|
230
|
-
"Use --validate to fix parameters; use --dry-run as the pre-execution confirmation."
|
|
231
|
-
);
|
|
232
|
-
process.exit(1);
|
|
233
|
-
}
|
|
234
|
-
if (globalOpts.validate) {
|
|
235
|
-
if (cmd.validateInput) {
|
|
236
|
-
const validateResult = await cmd.validateInput(ctx);
|
|
237
|
-
await printOutput(validateResult, globalOpts.format, globalOpts.jq);
|
|
238
|
-
} else if (cmd.service === "community") {
|
|
239
|
-
throw new CliValidationError(`--validate is not supported for ${cmdName}`, {
|
|
240
|
-
hint: "Run without --validate, or inspect the underlying capability for server validation."
|
|
241
|
-
});
|
|
242
|
-
} else {
|
|
243
|
-
await printOutput(
|
|
244
|
-
{ message: "No --validate implementation for this command (capability gateway commands only)" },
|
|
245
|
-
globalOpts.format
|
|
246
|
-
);
|
|
247
|
-
}
|
|
248
|
-
return;
|
|
249
|
-
}
|
|
250
|
-
if (globalOpts.dryRun) {
|
|
251
|
-
if (cmd.dryRun) {
|
|
252
|
-
const dryResult = await cmd.dryRun(ctx);
|
|
253
|
-
await printOutput(dryResult, globalOpts.format, globalOpts.jq);
|
|
254
|
-
} else if (cmd.service === "community") {
|
|
255
|
-
throw new CliValidationError(`--dry-run is not supported for ${cmdName}`, {
|
|
256
|
-
hint: "Run the read-only command without --dry-run; this command has no request preview."
|
|
257
|
-
});
|
|
258
|
-
} else {
|
|
259
|
-
await printOutput({ message: "No dry-run implementation for this command" }, globalOpts.format);
|
|
260
|
-
}
|
|
261
|
-
return;
|
|
262
|
-
}
|
|
263
|
-
if (requiresConfirmation(cmd.risk)) {
|
|
264
|
-
cmd.preflight?.(ctx);
|
|
265
|
-
if (!globalOpts.yes) {
|
|
266
|
-
if (!canPromptForConfirmation()) {
|
|
267
|
-
throw new CliValidationError(
|
|
268
|
-
"Non-interactive high-risk writes require global --yes.",
|
|
269
|
-
{
|
|
270
|
-
code: "CONFIRMATION_REQUIRED",
|
|
271
|
-
hint: "After explicit authorization, retry with the global --yes flag."
|
|
272
|
-
}
|
|
273
|
-
);
|
|
274
|
-
}
|
|
275
|
-
const confirmed = await confirm(`This is a high-risk-write operation (${cmdName}). Continue?`);
|
|
276
|
-
if (!confirmed) {
|
|
277
|
-
process.stderr.write("Aborted.\n");
|
|
278
|
-
process.exit(0);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
const result = await cmd.execute(ctx);
|
|
283
|
-
await ctx.out(result);
|
|
284
|
-
} catch (err) {
|
|
285
|
-
if (err?.type === "validation" && typeof err?.hint === "string" && String(err.message || "").includes("--jq")) {
|
|
286
|
-
printError("validation", err.message, err.hint, err.code);
|
|
287
|
-
process.exit(1);
|
|
288
|
-
}
|
|
289
|
-
const message = err.message || String(err);
|
|
290
|
-
if (!(err instanceof CommunityReportError) && !(err instanceof EvalApiError)) {
|
|
291
|
-
if (!(err instanceof LocalDataUploadError)) logger.error(`Command failed: ${message}`);
|
|
292
|
-
}
|
|
293
|
-
if (err instanceof CliValidationError) {
|
|
294
|
-
printError(
|
|
295
|
-
"validation",
|
|
296
|
-
message,
|
|
297
|
-
err.hint,
|
|
298
|
-
err.code,
|
|
299
|
-
err.location ? { location: err.location } : void 0
|
|
300
|
-
);
|
|
301
|
-
} else if (err instanceof TeAgentCredentialsError) {
|
|
302
|
-
printError("config", message, err.hint);
|
|
303
|
-
} else if (err instanceof PermissionError) {
|
|
304
|
-
printError("permission", message, err.hint, err.code, err.meta, { details: err.details });
|
|
305
|
-
} else if (err instanceof CliApiError) {
|
|
306
|
-
printError("api", message, err.hint, err.code, err.meta);
|
|
307
|
-
} else if (err instanceof CapabilityGatewayError) {
|
|
308
|
-
printError(err.type, message, err.hint ?? capabilityGatewayHint(err), err.code, err.meta);
|
|
309
|
-
} else if (err instanceof CommunityReportError) {
|
|
310
|
-
printError("api", message, err.hint, err.code, err.meta, { log: false });
|
|
311
|
-
} else if (err instanceof LocalDataUploadError) {
|
|
312
|
-
printError("api", message, err.hint, err.code, err.meta, { log: false });
|
|
313
|
-
} else if (err instanceof CredentialStoreUnreadableError || err instanceof ExternalCliTokenError) {
|
|
314
|
-
printError("config", message, err.hint, err.code);
|
|
315
|
-
} else if (err instanceof EvalApiError) {
|
|
316
|
-
printError("api", message, err.hint, err.code, void 0, { log: false });
|
|
317
|
-
} else if (err instanceof SecureStoreAuthError) {
|
|
318
|
-
printError("auth", message, "Run: ae-cli auth login", err.code);
|
|
319
|
-
} else if (err instanceof TeAgentApiError) {
|
|
320
|
-
if (err.status === 403) {
|
|
321
|
-
printError("permission", message, err.hint, err.code, void 0, { details: err.details });
|
|
322
|
-
} else if (err.status === 401) {
|
|
323
|
-
printError("auth", message, err.hint ?? "Run: ae-cli auth login", err.code, void 0, { details: err.details });
|
|
324
|
-
} else {
|
|
325
|
-
const presentation = teAgentApiErrorPresentation(err);
|
|
326
|
-
printError(
|
|
327
|
-
err.errorType,
|
|
328
|
-
presentation.message ?? message,
|
|
329
|
-
presentation.hint ?? err.hint,
|
|
330
|
-
presentation.code ?? err.code,
|
|
331
|
-
presentation.meta,
|
|
332
|
-
{ details: err.details }
|
|
333
|
-
);
|
|
334
|
-
}
|
|
335
|
-
} else if (looksLikeAuthFailure(message)) {
|
|
336
|
-
printError("auth", message, "Run: ae-cli auth login");
|
|
337
|
-
} else {
|
|
338
|
-
printError("api", message);
|
|
339
|
-
}
|
|
340
|
-
process.exit(1);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
function stringFlagValidationError(flag, value) {
|
|
344
|
-
if (flag.type !== "string") return void 0;
|
|
345
|
-
if (flag.minLength !== void 0 && value.length < flag.minLength) {
|
|
346
|
-
return { message: `--${flag.name} must contain at least ${flag.minLength} characters` };
|
|
347
|
-
}
|
|
348
|
-
if (flag.maxLength !== void 0 && value.length > flag.maxLength) {
|
|
349
|
-
return { message: `--${flag.name} must not exceed ${flag.maxLength} characters (got: ${value.length})` };
|
|
350
|
-
}
|
|
351
|
-
if (flag.pattern !== void 0 && !new RegExp(flag.pattern).test(value)) {
|
|
352
|
-
return { message: `--${flag.name} has an invalid format`, hint: `Expected pattern: ${flag.pattern}` };
|
|
353
|
-
}
|
|
354
|
-
return void 0;
|
|
355
|
-
}
|
|
356
|
-
function capabilityGatewayHint(err) {
|
|
357
|
-
if (err.code === "UPLOAD_NOT_EXIST" && (err.meta?.capability_id === "engage-setting.config-table.save" || err.meta?.capability_id === "engage-setting.config-table.update-data")) {
|
|
358
|
-
return "Run config-table upload first with the same --project-id and --request-id, then retry this command within 10 minutes. The upload cache is consumed after a successful save/update.";
|
|
359
|
-
}
|
|
360
|
-
const compatExtra = formatCapabilityMissCompatHint();
|
|
361
|
-
if (err.code === "CAPABILITY_NOT_FOUND") {
|
|
362
|
-
const base = "The current host does not expose this capability. Do not retry with different parameters; use a supported command path or ask the platform/backend owner to enable the capability.";
|
|
363
|
-
return compatExtra ? `${base}
|
|
364
|
-
${compatExtra}` : base;
|
|
365
|
-
}
|
|
366
|
-
if (err.httpStatus === 404 && !err.code) {
|
|
367
|
-
const base = "The current host returned 404 for this capability route. Do not keep retrying the same command; verify the backend route/capability deployment.";
|
|
368
|
-
return compatExtra ? `${base}
|
|
369
|
-
${compatExtra}` : base;
|
|
370
|
-
}
|
|
371
|
-
return void 0;
|
|
372
|
-
}
|
|
373
|
-
function looksLikeAuthFailure(message) {
|
|
374
|
-
const m = message.toLowerCase();
|
|
375
|
-
if (m.includes("403") || m.includes("forbidden") || m.includes("permission")) return false;
|
|
376
|
-
return m.includes("401") || m.includes("unauthorized") || m.includes("session expired") || m.includes("invalid access token") || m.includes("-1001") || m.includes("\u767B\u5F55") || m.includes("ae-cli auth login");
|
|
377
|
-
}
|
|
378
|
-
function createRuntimeContext(cmd, opts, globalOpts) {
|
|
379
|
-
let _communityReportModule = null;
|
|
380
|
-
async function getCommunityReportClient() {
|
|
381
|
-
if (!_communityReportModule) {
|
|
382
|
-
_communityReportModule = await import("./community-report-client-TJVCLZ3K.js");
|
|
383
|
-
}
|
|
384
|
-
return _communityReportModule;
|
|
385
|
-
}
|
|
386
|
-
let _localDataUploadModule = null;
|
|
387
|
-
async function getLocalDataUploadClient() {
|
|
388
|
-
if (!_localDataUploadModule) {
|
|
389
|
-
_localDataUploadModule = await import("./local-data-upload-client-KCMG6J62.js");
|
|
390
|
-
}
|
|
391
|
-
return _localDataUploadModule;
|
|
392
|
-
}
|
|
393
|
-
const ctx = {
|
|
394
|
-
has(name) {
|
|
395
|
-
return Object.prototype.hasOwnProperty.call(opts, camelCase(name));
|
|
396
|
-
},
|
|
397
|
-
str(name) {
|
|
398
|
-
return String(opts[camelCase(name)] ?? "");
|
|
399
|
-
},
|
|
400
|
-
num(name) {
|
|
401
|
-
const val = opts[camelCase(name)];
|
|
402
|
-
return val !== void 0 ? Number(val) : 0;
|
|
403
|
-
},
|
|
404
|
-
optionalNum(name) {
|
|
405
|
-
const val = opts[camelCase(name)];
|
|
406
|
-
if (val === void 0 || val === null || val === "") return void 0;
|
|
407
|
-
return Number(val);
|
|
408
|
-
},
|
|
409
|
-
int64(name) {
|
|
410
|
-
const val = opts[camelCase(name)];
|
|
411
|
-
if (val === void 0 || val === null || val === "") return 0n;
|
|
412
|
-
return BigInt(String(val));
|
|
413
|
-
},
|
|
414
|
-
optionalInt64(name) {
|
|
415
|
-
const val = opts[camelCase(name)];
|
|
416
|
-
if (val === void 0 || val === null || val === "") return void 0;
|
|
417
|
-
return BigInt(String(val));
|
|
418
|
-
},
|
|
419
|
-
bool(name) {
|
|
420
|
-
return Boolean(opts[camelCase(name)]);
|
|
421
|
-
},
|
|
422
|
-
optionalBool(name) {
|
|
423
|
-
const val = opts[camelCase(name)];
|
|
424
|
-
return typeof val === "boolean" ? val : void 0;
|
|
425
|
-
},
|
|
426
|
-
json(name) {
|
|
427
|
-
const val = opts[camelCase(name)];
|
|
428
|
-
if (val === void 0 || val === null) return void 0;
|
|
429
|
-
if (typeof val === "object") return val;
|
|
430
|
-
try {
|
|
431
|
-
return safeJsonParse(String(val));
|
|
432
|
-
} catch {
|
|
433
|
-
if (cmd.flags.some((flag) => flag.name === name && flag.sensitive)) {
|
|
434
|
-
throw new CliValidationError(`Invalid JSON for --${name}.`, {
|
|
435
|
-
hint: "Provide valid JSON with quoted keys and strings. Sensitive input is omitted from diagnostics."
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
printError("validation", `Invalid JSON for --${name}: ${val}`);
|
|
439
|
-
process.exit(1);
|
|
440
|
-
}
|
|
441
|
-
},
|
|
442
|
-
list(name) {
|
|
443
|
-
const val = opts[camelCase(name)];
|
|
444
|
-
if (Array.isArray(val)) return val.map(String);
|
|
445
|
-
if (val === void 0 || val === null) return [];
|
|
446
|
-
return [String(val)];
|
|
447
|
-
},
|
|
448
|
-
async communityReport(endpoint, rawBody) {
|
|
449
|
-
const client = await getCommunityReportClient();
|
|
450
|
-
return client.communityReport(endpoint, rawBody);
|
|
451
|
-
},
|
|
452
|
-
async localDataUpload(endpoint, rawBody, options) {
|
|
453
|
-
const client = await getLocalDataUploadClient();
|
|
454
|
-
return client.localDataUpload(endpoint, rawBody, options);
|
|
455
|
-
},
|
|
456
|
-
hostOverride() {
|
|
457
|
-
return globalOpts.host;
|
|
458
|
-
},
|
|
459
|
-
host() {
|
|
460
|
-
if (cmd.service === "kb" && ["+list", "+index", "+grep", "+read"].includes(cmd.command)) {
|
|
461
|
-
const context = readKbExecutionContext();
|
|
462
|
-
if (context) return globalOpts.host || context.origin;
|
|
463
|
-
}
|
|
464
|
-
if (globalOpts.host) return globalOpts.host;
|
|
465
|
-
return getActiveHost();
|
|
466
|
-
},
|
|
467
|
-
mcpUrl() {
|
|
468
|
-
return globalOpts.mcpUrl;
|
|
469
|
-
},
|
|
470
|
-
service() {
|
|
471
|
-
return cmd.service;
|
|
472
|
-
},
|
|
473
|
-
async out(data) {
|
|
474
|
-
await printOutput(data, globalOpts.format, globalOpts.jq, { redactErrors: cmd.sensitiveOutput });
|
|
475
|
-
}
|
|
476
|
-
};
|
|
477
|
-
return ctx;
|
|
478
|
-
}
|
|
479
|
-
function camelCase(str) {
|
|
480
|
-
return str.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
|
|
481
|
-
}
|
|
482
|
-
async function confirm(message) {
|
|
483
|
-
const rl = readline.createInterface({ input: process.stdin, output: process.stderr });
|
|
484
|
-
return new Promise((resolve3) => {
|
|
485
|
-
rl.question(`${message} [y/N] `, (answer) => {
|
|
486
|
-
rl.close();
|
|
487
|
-
resolve3(answer.toLowerCase() === "y" || answer.toLowerCase() === "yes");
|
|
488
|
-
});
|
|
489
|
-
});
|
|
490
|
-
}
|
|
491
|
-
|
|
492
84
|
// src/framework/register.ts
|
|
493
85
|
function registerCommands(program2, commands) {
|
|
494
86
|
const byService = /* @__PURE__ */ new Map();
|
|
@@ -666,7 +258,17 @@ async function runFeatureConfigCheck(hostOverride, argv = process.argv) {
|
|
|
666
258
|
if (!host) return void 0;
|
|
667
259
|
const token = peekCliToken(host);
|
|
668
260
|
if (!token) return void 0;
|
|
669
|
-
|
|
261
|
+
let refresh;
|
|
262
|
+
return await resolveKbAutoDiscoveryFeature(host, token, async () => {
|
|
263
|
+
refresh = beginBusinessSkillRefresh(host, token, !hostOverride);
|
|
264
|
+
const remote = await fetchCliConfig(host, token);
|
|
265
|
+
if (!isBusinessSkillRefreshCurrent(refresh)) return null;
|
|
266
|
+
if (remote) {
|
|
267
|
+
rememberBusinessConfig(host, token, remote.businesses);
|
|
268
|
+
syncRefreshedBusinessSkills(refresh, remote.businesses);
|
|
269
|
+
}
|
|
270
|
+
return remote;
|
|
271
|
+
}, () => isBusinessSkillRefreshCurrent(refresh));
|
|
670
272
|
} catch {
|
|
671
273
|
return void 0;
|
|
672
274
|
}
|
|
@@ -803,6 +405,7 @@ var TrackingClient = class {
|
|
|
803
405
|
const url = buildUrl(this.host, modulePath, params);
|
|
804
406
|
const headers = {
|
|
805
407
|
"cli-token": token,
|
|
408
|
+
...internalCallSourceHeaders(),
|
|
806
409
|
accept: "application/json"
|
|
807
410
|
};
|
|
808
411
|
const init = { method, headers };
|
|
@@ -1348,6 +951,25 @@ function assertInputFilePath(path5, optionName = "--in") {
|
|
|
1348
951
|
|
|
1349
952
|
// src/commands/tracking/plan.ts
|
|
1350
953
|
var MAX_FIX_RETRIES = 3;
|
|
954
|
+
var PLAN_PREVIEW_HELP = "Local --dry-run preview: show the target and operations without changing the plan.";
|
|
955
|
+
async function previewPlanWrite(program2, host, projectId, upload) {
|
|
956
|
+
const { dryRun, validate, format, jq } = program2.opts();
|
|
957
|
+
if (validate) {
|
|
958
|
+
throw new CliValidationError(dryRun ? "Cannot combine --validate and --dry-run." : "--validate is not supported for plan writes. Use --dry-run to preview the operation.");
|
|
959
|
+
}
|
|
960
|
+
if (!dryRun) return false;
|
|
961
|
+
const operations = [];
|
|
962
|
+
if (!upload || upload.replace) operations.push("delete_entire_plan");
|
|
963
|
+
if (upload) operations.push("upload_xlsx", "save_plan");
|
|
964
|
+
await printOutput({
|
|
965
|
+
dry_run: true,
|
|
966
|
+
host,
|
|
967
|
+
project_id: projectId,
|
|
968
|
+
operations,
|
|
969
|
+
...upload && { xlsx: upload.xlsx }
|
|
970
|
+
}, format, jq);
|
|
971
|
+
return true;
|
|
972
|
+
}
|
|
1351
973
|
function registerPlan(cmd, rootProgram) {
|
|
1352
974
|
cmd.description("manage AE tracking plans");
|
|
1353
975
|
cmd.command("draft").description("Generate xlsx from draft.json (inject autotrack events; use --fix to auto-repair validation errors)").requiredOption("--in <path>", "draft JSON input").requiredOption("--out <path>", "xlsx output").option("--fix", "auto fix validation errors", false).action(async (opts) => {
|
|
@@ -1429,12 +1051,13 @@ function registerPlan(cmd, rootProgram) {
|
|
|
1429
1051
|
}
|
|
1430
1052
|
}
|
|
1431
1053
|
});
|
|
1432
|
-
cmd.command("upload").description("Upload xlsx tracking plan to AE (conflict check, auto-fix retry)").requiredOption("-p, --project <id>", "AE projectId", (v) => parseInt(v, 10)).requiredOption("--xlsx <path>", "xlsx file").requiredOption("--draft <path>", "draft JSON (for auto-fix)").option("--host <url>", HOST_OPTION_DESC).option("--lang <locale>", "xlsx language: zh / en / ja / ko").option("--replace", "delete existing plan first", false).option("--auto-fix", "auto fix upload errors and retry", true).action(async (opts) => {
|
|
1054
|
+
cmd.command("upload").addHelpText("after", PLAN_PREVIEW_HELP).description("Upload xlsx tracking plan to AE (conflict check, auto-fix retry)").requiredOption("-p, --project <id>", "AE projectId", (v) => parseInt(v, 10)).requiredOption("--xlsx <path>", "xlsx file").requiredOption("--draft <path>", "draft JSON (for auto-fix)").option("--host <url>", HOST_OPTION_DESC).option("--lang <locale>", "xlsx language: zh / en / ja / ko").option("--replace", "delete existing plan first", false).option("--auto-fix", "auto fix upload errors and retry", true).action(async (opts) => {
|
|
1433
1055
|
assertInputFilePath(opts.draft, "--draft");
|
|
1434
1056
|
assertInputFilePath(opts.xlsx, "--xlsx");
|
|
1435
1057
|
const host = resolveTrackingHost(rootProgram, opts);
|
|
1436
|
-
let client = await createTrackingClient(host);
|
|
1437
1058
|
const draftPre = JSON.parse(await readFile(opts.draft, "utf8"));
|
|
1059
|
+
if (await previewPlanWrite(rootProgram, host, opts.project, opts)) return;
|
|
1060
|
+
let client = await createTrackingClient(host);
|
|
1438
1061
|
if (!opts.replace) {
|
|
1439
1062
|
console.log(t("plan.checking_conflicts"));
|
|
1440
1063
|
try {
|
|
@@ -1563,8 +1186,9 @@ function registerPlan(cmd, rootProgram) {
|
|
|
1563
1186
|
console.log(t("plan.archived_to", { path: dest }));
|
|
1564
1187
|
console.log(t("plan.draft_updated_archived", { stamp }));
|
|
1565
1188
|
});
|
|
1566
|
-
cmd.command("delete").description("Delete the entire tracking plan from an AE project").requiredOption("-p, --project <id>", "AE projectId", (v) => parseInt(v, 10)).option("--host <url>", HOST_OPTION_DESC).action(async (opts) => {
|
|
1189
|
+
cmd.command("delete").addHelpText("after", PLAN_PREVIEW_HELP).description("Delete the entire tracking plan from an AE project").requiredOption("-p, --project <id>", "AE projectId", (v) => parseInt(v, 10)).option("--host <url>", HOST_OPTION_DESC).action(async (opts) => {
|
|
1567
1190
|
const host = resolveTrackingHost(rootProgram, opts);
|
|
1191
|
+
if (await previewPlanWrite(rootProgram, host, opts.project)) return;
|
|
1568
1192
|
const client = await createTrackingClient(host);
|
|
1569
1193
|
const res = await client.deleteProgram(opts.project);
|
|
1570
1194
|
console.log(JSON.stringify(res, null, 2));
|
|
@@ -2449,76 +2073,6 @@ function getOrCreateCommand(parent, name, description) {
|
|
|
2449
2073
|
return parent.command(name).description(description);
|
|
2450
2074
|
}
|
|
2451
2075
|
|
|
2452
|
-
// src/framework/program-lifecycle.ts
|
|
2453
|
-
async function parseProgram(program2, argv = process.argv) {
|
|
2454
|
-
try {
|
|
2455
|
-
await program2.parseAsync(normalizeSubcommandVersionOption(program2, argv));
|
|
2456
|
-
} catch (error) {
|
|
2457
|
-
if (error instanceof BusinessDisabledError) {
|
|
2458
|
-
printError("permission", error.message, error.hint, error.code);
|
|
2459
|
-
process.exitCode = 1;
|
|
2460
|
-
return;
|
|
2461
|
-
}
|
|
2462
|
-
if (!(error instanceof CredentialStoreUnreadableError) && !(error instanceof ExternalCliTokenError)) throw error;
|
|
2463
|
-
printError("config", error.message, error.hint, error.code);
|
|
2464
|
-
process.exitCode = 1;
|
|
2465
|
-
}
|
|
2466
|
-
}
|
|
2467
|
-
function normalizeSubcommandVersionOption(program2, argv) {
|
|
2468
|
-
const normalized = [...argv];
|
|
2469
|
-
let current = program2;
|
|
2470
|
-
for (let index = 2; index < normalized.length; index += 1) {
|
|
2471
|
-
const token = normalized[index];
|
|
2472
|
-
if (token === "--") {
|
|
2473
|
-
break;
|
|
2474
|
-
}
|
|
2475
|
-
if (token.startsWith("-")) {
|
|
2476
|
-
if (token === "--version" && current !== program2 && hasRequiredVersionOption(current)) {
|
|
2477
|
-
const value = normalized[index + 1];
|
|
2478
|
-
if (value && !value.startsWith("-")) {
|
|
2479
|
-
normalized.splice(index, 2, `--version=${value}`);
|
|
2480
|
-
} else {
|
|
2481
|
-
normalized[index] = "--version=";
|
|
2482
|
-
}
|
|
2483
|
-
continue;
|
|
2484
|
-
}
|
|
2485
|
-
if (!token.includes("=")) {
|
|
2486
|
-
const option = findOption(current, token);
|
|
2487
|
-
if (option?.required) {
|
|
2488
|
-
index += 1;
|
|
2489
|
-
} else if (option?.optional) {
|
|
2490
|
-
const value = normalized[index + 1];
|
|
2491
|
-
if (value && !value.startsWith("-")) {
|
|
2492
|
-
index += 1;
|
|
2493
|
-
}
|
|
2494
|
-
}
|
|
2495
|
-
}
|
|
2496
|
-
continue;
|
|
2497
|
-
}
|
|
2498
|
-
const child = current.commands.find(
|
|
2499
|
-
(command) => command.name() === token || command.aliases().includes(token)
|
|
2500
|
-
);
|
|
2501
|
-
if (child) {
|
|
2502
|
-
current = child;
|
|
2503
|
-
}
|
|
2504
|
-
}
|
|
2505
|
-
return normalized;
|
|
2506
|
-
}
|
|
2507
|
-
function hasRequiredVersionOption(command) {
|
|
2508
|
-
return command.options.some((option) => option.long === "--version" && option.required);
|
|
2509
|
-
}
|
|
2510
|
-
function findOption(command, flag) {
|
|
2511
|
-
let current = command;
|
|
2512
|
-
while (current) {
|
|
2513
|
-
const option = current.options.find((candidate) => candidate.long === flag || candidate.short === flag);
|
|
2514
|
-
if (option) {
|
|
2515
|
-
return option;
|
|
2516
|
-
}
|
|
2517
|
-
current = current.parent;
|
|
2518
|
-
}
|
|
2519
|
-
return void 0;
|
|
2520
|
-
}
|
|
2521
|
-
|
|
2522
2076
|
// src/commands/install.ts
|
|
2523
2077
|
function registerInstall(program2) {
|
|
2524
2078
|
program2.command("install").description("Install and verify this CLI distribution and its matching global Skills").option("--host <url>", "Check authentication for this AE host after installation").addHelpText("after", "\nExamples:\n npx @thinkingai/ae-cli@latest install\n ae-cli install --dry-run --format json\n ae-cli install --host https://your-ae-host.example.com\n\nSkills are installed globally in ~/.agents/skills with client adaptation handled automatically.\nGlobal options: --dry-run, --format json|table. Supports macOS, Linux, and native Windows.\n").action(async (opts) => {
|
|
@@ -2564,57 +2118,6 @@ function registerInstall(program2) {
|
|
|
2564
2118
|
});
|
|
2565
2119
|
}
|
|
2566
2120
|
|
|
2567
|
-
// src/framework/business-filter.ts
|
|
2568
|
-
import { Help } from "commander";
|
|
2569
|
-
function commandPath(command) {
|
|
2570
|
-
const result = [];
|
|
2571
|
-
for (let current = command; current?.parent; current = current.parent) {
|
|
2572
|
-
result.unshift(current.name());
|
|
2573
|
-
}
|
|
2574
|
-
return result;
|
|
2575
|
-
}
|
|
2576
|
-
function configureBusinessCommands(program2, options = {}) {
|
|
2577
|
-
const readStates = options.readStates ?? (() => readCurrentBusinessConfig(options.hostOverride));
|
|
2578
|
-
const isVisible = (command) => {
|
|
2579
|
-
const business = businessForCommand(commandPath(command));
|
|
2580
|
-
return !business || readStates()[business] !== false;
|
|
2581
|
-
};
|
|
2582
|
-
const helpConfiguration = {
|
|
2583
|
-
visibleCommands(command) {
|
|
2584
|
-
return Help.prototype.visibleCommands.call(this, command).filter(isVisible);
|
|
2585
|
-
},
|
|
2586
|
-
formatHelp(command, helper) {
|
|
2587
|
-
if (!isVisible(command)) {
|
|
2588
|
-
const business = businessForCommand(commandPath(command));
|
|
2589
|
-
return `The '${business}' business is not enabled for the current environment.
|
|
2590
|
-
Run: ae-cli config refresh
|
|
2591
|
-
`;
|
|
2592
|
-
}
|
|
2593
|
-
return Help.prototype.formatHelp.call(this, command, helper);
|
|
2594
|
-
}
|
|
2595
|
-
};
|
|
2596
|
-
const configureHelp = (command) => {
|
|
2597
|
-
command.configureHelp(helpConfiguration);
|
|
2598
|
-
command.commands.forEach(configureHelp);
|
|
2599
|
-
};
|
|
2600
|
-
configureHelp(program2);
|
|
2601
|
-
program2.on("beforeAllHelp", (context) => {
|
|
2602
|
-
if (isVisible(context.command)) return;
|
|
2603
|
-
const business = businessForCommand(commandPath(context.command));
|
|
2604
|
-
context.write(`The '${business}' business is not enabled for the current environment.
|
|
2605
|
-
Run: ae-cli config refresh
|
|
2606
|
-
`);
|
|
2607
|
-
context.write = () => {
|
|
2608
|
-
};
|
|
2609
|
-
});
|
|
2610
|
-
program2.hook("preAction", async (_root, actionCommand) => {
|
|
2611
|
-
const business = businessForCommand(commandPath(actionCommand));
|
|
2612
|
-
if (!business) return;
|
|
2613
|
-
const opts = actionCommand.optsWithGlobals();
|
|
2614
|
-
await (options.assertEnabled ?? assertBusinessEnabled)(business, opts.host ?? options.hostOverride);
|
|
2615
|
-
});
|
|
2616
|
-
}
|
|
2617
|
-
|
|
2618
2121
|
// src/index.ts
|
|
2619
2122
|
var require2 = createRequire(import.meta.url);
|
|
2620
2123
|
var pkg = require2("../package.json");
|
|
@@ -2640,105 +2143,111 @@ function warnLoadFailure(label, err) {
|
|
|
2640
2143
|
async function loadCommands() {
|
|
2641
2144
|
const commands = [];
|
|
2642
2145
|
try {
|
|
2643
|
-
const teAnalysis = await import("./te-analysis-
|
|
2146
|
+
const teAnalysis = await import("./te-analysis-KIMH6AGU.js");
|
|
2644
2147
|
commands.push(...teAnalysis.default);
|
|
2645
2148
|
} catch (err) {
|
|
2646
2149
|
warnLoadFailure("domain te-analysis", err);
|
|
2647
2150
|
}
|
|
2648
2151
|
try {
|
|
2649
|
-
const engage = await import("./te-engage-
|
|
2152
|
+
const engage = await import("./te-engage-PVBVNRSU.js");
|
|
2650
2153
|
commands.push(...engage.default);
|
|
2651
2154
|
} catch (err) {
|
|
2652
2155
|
warnLoadFailure("domain te-engage", err);
|
|
2653
2156
|
}
|
|
2654
2157
|
try {
|
|
2655
|
-
const community = await import("./te-community-
|
|
2158
|
+
const community = await import("./te-community-P7NNBVCS.js");
|
|
2656
2159
|
commands.push(...community.default);
|
|
2657
2160
|
} catch (err) {
|
|
2658
2161
|
warnLoadFailure("domain te-community", err);
|
|
2659
2162
|
}
|
|
2660
2163
|
try {
|
|
2661
|
-
const dataops = await import("./te-dataops-
|
|
2164
|
+
const dataops = await import("./te-dataops-ZRKSG4R7.js");
|
|
2662
2165
|
commands.push(...dataops.default);
|
|
2663
2166
|
} catch (err) {
|
|
2664
2167
|
warnLoadFailure("domain te-dataops", err);
|
|
2665
2168
|
}
|
|
2666
2169
|
try {
|
|
2667
|
-
const teKb = await import("./te-kb-
|
|
2170
|
+
const teKb = await import("./te-kb-W7PRC7QN.js");
|
|
2668
2171
|
commands.push(...teKb.default);
|
|
2669
2172
|
} catch (err) {
|
|
2670
2173
|
warnLoadFailure("domain te-kb", err);
|
|
2671
2174
|
}
|
|
2672
2175
|
try {
|
|
2673
|
-
const teTeam = await import("./te-team-
|
|
2176
|
+
const teTeam = await import("./te-team-5ONMRGKF.js");
|
|
2674
2177
|
commands.push(...teTeam.default);
|
|
2675
2178
|
} catch (err) {
|
|
2676
2179
|
warnLoadFailure("domain te-team", err);
|
|
2677
2180
|
}
|
|
2678
2181
|
try {
|
|
2679
|
-
const teAgent = await import("./te-agent-
|
|
2182
|
+
const teAgent = await import("./te-agent-WNNAD4AJ.js");
|
|
2680
2183
|
commands.push(...teAgent.default);
|
|
2681
2184
|
} catch (err) {
|
|
2682
2185
|
warnLoadFailure("domain te-agent", err);
|
|
2683
2186
|
}
|
|
2684
2187
|
try {
|
|
2685
|
-
const memory = await import("./memory-
|
|
2188
|
+
const memory = await import("./memory-ZLTTULZK.js");
|
|
2686
2189
|
commands.push(...memory.default);
|
|
2687
2190
|
} catch (err) {
|
|
2688
2191
|
warnLoadFailure("domain memory", err);
|
|
2689
2192
|
}
|
|
2690
|
-
const automation = await import("./automation-
|
|
2193
|
+
const automation = await import("./automation-6L6IAYRK.js");
|
|
2691
2194
|
commands.push(...automation.default);
|
|
2692
2195
|
try {
|
|
2693
|
-
const things = await import("./things-
|
|
2196
|
+
const things = await import("./things-PFENSIF4.js");
|
|
2694
2197
|
commands.push(...things.default);
|
|
2695
2198
|
} catch (err) {
|
|
2696
2199
|
warnLoadFailure("domain things", err);
|
|
2697
2200
|
}
|
|
2698
2201
|
try {
|
|
2699
|
-
const workspace = await import("./workspace-
|
|
2202
|
+
const workspace = await import("./workspace-Z7L33OBQ.js");
|
|
2700
2203
|
commands.push(...workspace.default);
|
|
2701
2204
|
} catch (err) {
|
|
2702
2205
|
warnLoadFailure("domain workspace", err);
|
|
2703
2206
|
}
|
|
2704
2207
|
try {
|
|
2705
|
-
const teSystem = await import("./te-system-
|
|
2208
|
+
const teSystem = await import("./te-system-F4ZU2HRQ.js");
|
|
2706
2209
|
commands.push(...teSystem.default);
|
|
2707
2210
|
} catch (err) {
|
|
2708
2211
|
warnLoadFailure("domain te-system", err);
|
|
2709
2212
|
}
|
|
2710
2213
|
try {
|
|
2711
|
-
const metadata = await import("./metadata-
|
|
2214
|
+
const metadata = await import("./metadata-EN2IWCDI.js");
|
|
2712
2215
|
commands.push(...metadata.default);
|
|
2713
2216
|
} catch (err) {
|
|
2714
2217
|
warnLoadFailure("domain metadata", err);
|
|
2715
2218
|
}
|
|
2716
2219
|
try {
|
|
2717
|
-
const personalSemanticPreference = await import("./personal-semantic-preference-
|
|
2220
|
+
const personalSemanticPreference = await import("./personal-semantic-preference-UGN67KTN.js");
|
|
2718
2221
|
commands.push(...personalSemanticPreference.default);
|
|
2719
2222
|
} catch (err) {
|
|
2720
2223
|
warnLoadFailure("domain personal-semantic-preference", err);
|
|
2721
2224
|
}
|
|
2722
2225
|
try {
|
|
2723
|
-
const projectSemantic = await import("./project-semantic-
|
|
2226
|
+
const projectSemantic = await import("./project-semantic-5OP3YPZD.js");
|
|
2724
2227
|
commands.push(...projectSemantic.default);
|
|
2725
2228
|
} catch (err) {
|
|
2726
2229
|
warnLoadFailure("domain project-semantic", err);
|
|
2727
2230
|
}
|
|
2728
2231
|
try {
|
|
2729
|
-
const dataIntegration = await import("./data-integration-
|
|
2232
|
+
const dataIntegration = await import("./data-integration-UNJ7EPW2.js");
|
|
2730
2233
|
commands.push(...dataIntegration.default);
|
|
2731
2234
|
} catch (err) {
|
|
2732
2235
|
warnLoadFailure("domain data-integration", err);
|
|
2733
2236
|
}
|
|
2734
2237
|
try {
|
|
2735
|
-
const context = await import("./context-
|
|
2238
|
+
const context = await import("./context-SOQDFZIB.js");
|
|
2736
2239
|
commands.push(...context.default);
|
|
2737
2240
|
} catch (err) {
|
|
2738
2241
|
warnLoadFailure("domain context", err);
|
|
2739
2242
|
}
|
|
2740
2243
|
try {
|
|
2741
|
-
const
|
|
2244
|
+
const aiMonitor = await import("./ai-monitor-NUKSJPLE.js");
|
|
2245
|
+
commands.push(...aiMonitor.default);
|
|
2246
|
+
} catch (err) {
|
|
2247
|
+
warnLoadFailure("domain ai-monitor", err);
|
|
2248
|
+
}
|
|
2249
|
+
try {
|
|
2250
|
+
const evaluation = await import("./evaluation-Q3AIGFOG.js");
|
|
2742
2251
|
commands.push(...evaluation.default);
|
|
2743
2252
|
} catch (err) {
|
|
2744
2253
|
warnLoadFailure("domain evaluation", err);
|
|
@@ -2747,7 +2256,7 @@ async function loadCommands() {
|
|
|
2747
2256
|
}
|
|
2748
2257
|
async function registerAuthCommands() {
|
|
2749
2258
|
try {
|
|
2750
|
-
const { registerAuth } = await import("./auth-
|
|
2259
|
+
const { registerAuth } = await import("./auth-MVAEBGBP.js");
|
|
2751
2260
|
registerAuth(program);
|
|
2752
2261
|
} catch (err) {
|
|
2753
2262
|
warnLoadFailure("auth commands", err);
|
|
@@ -2755,7 +2264,7 @@ async function registerAuthCommands() {
|
|
|
2755
2264
|
}
|
|
2756
2265
|
async function registerConfigCommands() {
|
|
2757
2266
|
try {
|
|
2758
|
-
const { registerConfig } = await import("./config-
|
|
2267
|
+
const { registerConfig } = await import("./config-264GB6C7.js");
|
|
2759
2268
|
registerConfig(program);
|
|
2760
2269
|
} catch (err) {
|
|
2761
2270
|
warnLoadFailure("config commands", err);
|
|
@@ -2763,7 +2272,7 @@ async function registerConfigCommands() {
|
|
|
2763
2272
|
}
|
|
2764
2273
|
async function registerCapabilityCommands() {
|
|
2765
2274
|
try {
|
|
2766
|
-
const { registerCapability } = await import("./capability-
|
|
2275
|
+
const { registerCapability } = await import("./capability-74N7AN5X.js");
|
|
2767
2276
|
registerCapability(program);
|
|
2768
2277
|
} catch (err) {
|
|
2769
2278
|
warnLoadFailure("capability commands", err);
|
|
@@ -2771,7 +2280,7 @@ async function registerCapabilityCommands() {
|
|
|
2771
2280
|
}
|
|
2772
2281
|
async function registerSyncCommand() {
|
|
2773
2282
|
try {
|
|
2774
|
-
const { registerSync } = await import("./sync-
|
|
2283
|
+
const { registerSync } = await import("./sync-LDJQZRQH.js");
|
|
2775
2284
|
registerSync(program);
|
|
2776
2285
|
} catch (err) {
|
|
2777
2286
|
warnLoadFailure("sync commands", err);
|
|
@@ -2779,7 +2288,7 @@ async function registerSyncCommand() {
|
|
|
2779
2288
|
}
|
|
2780
2289
|
async function registerModelCommand() {
|
|
2781
2290
|
try {
|
|
2782
|
-
const { registerModel } = await import("./model-
|
|
2291
|
+
const { registerModel } = await import("./model-NAKQWK4W.js");
|
|
2783
2292
|
registerModel(program);
|
|
2784
2293
|
} catch (err) {
|
|
2785
2294
|
warnLoadFailure("model commands", err);
|
|
@@ -2787,7 +2296,7 @@ async function registerModelCommand() {
|
|
|
2787
2296
|
}
|
|
2788
2297
|
async function registerUpdateCommand() {
|
|
2789
2298
|
try {
|
|
2790
|
-
const { registerUpdate } = await import("./update-
|
|
2299
|
+
const { registerUpdate } = await import("./update-EUZ4GNND.js");
|
|
2791
2300
|
registerUpdate(program);
|
|
2792
2301
|
} catch (err) {
|
|
2793
2302
|
warnLoadFailure("update commands", err);
|