@thinkingai/ae-cli 6.1.30 → 6.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -7
- package/README.zh.md +18 -7
- package/bin/ai-monitor.js +2 -0
- package/bin/runtime-capabilities.json +1 -1
- package/dist/ai-monitor-OHTSU6SV.js +33 -0
- package/dist/ai-monitor.js +136 -0
- package/dist/{auth-ADZHUIJR.js → auth-2MOK4OI6.js} +24 -14
- package/dist/{automation-FD2QZUP6.js → automation-6L6IAYRK.js} +6 -7
- package/dist/{capability-QXFRJYZD.js → capability-EMIHQJA3.js} +31 -34
- package/dist/{chunk-OAWPT7VP.js → chunk-2I5SZ5DS.js} +2 -2
- package/dist/{chunk-HRUOV6EQ.js → chunk-4IQYPWCX.js} +22 -21
- package/dist/{chunk-EUFP4M2A.js → chunk-7DHSB3FL.js} +85 -33
- 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-AVXDJAFC.js → chunk-DWAG2QJM.js} +52 -15
- package/dist/{chunk-CG773QXN.js → chunk-E3ONSFUN.js} +528 -299
- package/dist/chunk-EFGUBGA6.js +64 -0
- package/dist/chunk-EWVEAERM.js +563 -0
- package/dist/{chunk-VDICGXCY.js → chunk-HIMOBNEY.js} +2 -2
- package/dist/{chunk-JEUXDY3B.js → chunk-HQED4YB4.js} +1 -1
- package/dist/{chunk-2F64AZYH.js → chunk-KA5WKR5P.js} +2 -2
- package/dist/{chunk-TFORY6WY.js → chunk-KD5UC33N.js} +23 -9
- package/dist/{chunk-YVG6QD3V.js → chunk-LFJ7N36I.js} +103 -8
- package/dist/chunk-NNK3JBH4.js +60 -0
- package/dist/{chunk-YULUBP3R.js → chunk-O45NOIWR.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-Y3AM6LIO.js → chunk-RC3PPCYD.js} +16 -11
- 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-72NJKS7O.js → chunk-XZDKAR4N.js} +4 -4
- package/dist/chunk-YE6MJB5V.js +1285 -0
- package/dist/{community-report-client-TJVCLZ3K.js → community-report-client-ULRNXLQV.js} +1 -1
- package/dist/{compat-check-HERBTQZN.js → compat-check-CADG7GND.js} +5 -4
- package/dist/{config-E3KANXMK.js → config-PFD3KWQG.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 +95 -593
- package/dist/{local-data-upload-client-KCMG6J62.js → local-data-upload-client-YTWMAAGE.js} +1 -1
- package/dist/{memory-SNFR5M23.js → memory-HKNGUIPK.js} +6 -7
- package/dist/{metadata-EXQYDZTH.js → metadata-GFWR5ZHC.js} +11 -10
- package/dist/{model-KEVCEXWD.js → model-NAKQWK4W.js} +4 -5
- package/dist/{personal-semantic-preference-ETY3KU2O.js → personal-semantic-preference-JCTKXLC3.js} +46 -15
- package/dist/{project-semantic-UHRMVOJF.js → project-semantic-B2NWQOKK.js} +19 -16
- package/dist/{sync-XKEBXESC.js → sync-UQH4J4BD.js} +9 -9
- package/dist/{te-agent-S6UQR4IE.js → te-agent-L6EYFQCC.js} +303 -17
- package/dist/{te-analysis-WOFFCIBC.js → te-analysis-U7NNOY66.js} +397 -203
- package/dist/{te-community-R7B6QYOO.js → te-community-3UQEW3KD.js} +14 -12
- package/dist/{te-dataops-KPILYVHA.js → te-dataops-SUNYXF5G.js} +13 -11
- package/dist/{te-engage-IAUM6ONX.js → te-engage-KMXZJ2KN.js} +10 -9
- package/dist/{te-experiment-TMLRA7B3.js → te-experiment-IEYKP6VC.js} +477 -45
- package/dist/{te-kb-GKWPSLSY.js → te-kb-MT3V5ZMH.js} +78 -18
- package/dist/{te-system-CYWSK3UN.js → te-system-F4ZU2HRQ.js} +6 -7
- package/dist/{te-team-ISN52YNG.js → te-team-M6E6XQ5H.js} +9 -8
- package/dist/{things-DDQ52Z3Q.js → things-FRLBZV2Z.js} +9 -8
- package/dist/{update-CTLNTX35.js → update-NULYHVE6.js} +8 -6
- package/dist/{workspace-2CKQX2XL.js → workspace-Z7L33OBQ.js} +6 -7
- package/package.json +13 -8
- 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/path.md +5 -6
- 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-experiment/SKILL.md +69 -13
- package/skills/ae-experiment/references/experiment_approval.md +229 -0
- package/skills/ae-experiment/references/manage_experiment.md +15 -2
- package/skills/ae-experiment/references/manage_traffic_domains.md +131 -0
- package/skills/ae-experiment/references/query_experiment_detail.md +8 -0
- package/skills/ae-experiment/references/query_experiment_list.md +6 -0
- package/skills/ae-experiment/references/save_experiment.md +56 -10
- package/skills/ae-experiment/references/save_metric.md +29 -2
- package/skills/ae-experiment/references/save_submit_experiment.md +22 -3
- package/skills/ae-experiment/references/save_submit_external_experiment.md +59 -3
- package/skills/ae-experiment/references/save_traffic_layer.md +17 -1
- 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
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createCapabilityCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RC3PPCYD.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCapabilityGatewayRoute
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-AWW2T2WL.js";
|
|
8
|
+
import "./chunk-O45NOIWR.js";
|
|
9
|
+
import "./chunk-4IQYPWCX.js";
|
|
10
|
+
import "./chunk-NNK3JBH4.js";
|
|
11
|
+
import "./chunk-E3ONSFUN.js";
|
|
12
|
+
import "./chunk-PUSFEC6B.js";
|
|
13
|
+
import "./chunk-PLNS5J33.js";
|
|
14
|
+
import "./chunk-AMURHMS3.js";
|
|
14
15
|
import {
|
|
15
16
|
CliValidationError
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-R2SVAO4G.js";
|
|
17
18
|
|
|
18
19
|
// src/commands/te-experiment/capability-shared.ts
|
|
19
20
|
function createExperimentCapabilityCommand(config) {
|
|
@@ -23,6 +24,22 @@ function createExperimentCapabilityCommand(config) {
|
|
|
23
24
|
gatewayDomain: "engage"
|
|
24
25
|
});
|
|
25
26
|
}
|
|
27
|
+
function readPositiveInteger(ctx, name) {
|
|
28
|
+
const raw = ctx.str(name).trim();
|
|
29
|
+
if (!/^[0-9]+$/.test(raw)) {
|
|
30
|
+
throw new CliValidationError(`Flag --${name} must be a positive safe integer written as decimal digits`);
|
|
31
|
+
}
|
|
32
|
+
const value = Number(raw);
|
|
33
|
+
if (!Number.isSafeInteger(value) || value <= 0) {
|
|
34
|
+
throw new CliValidationError(`Flag --${name} must be a positive safe integer`);
|
|
35
|
+
}
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
function readNonEmptyString(ctx, name) {
|
|
39
|
+
const value = ctx.str(name).trim();
|
|
40
|
+
if (!value) throw new CliValidationError(`Flag --${name} must be a non-empty string`);
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
26
43
|
function readRequiredObject(ctx, name) {
|
|
27
44
|
const value = ctx.json(name);
|
|
28
45
|
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
@@ -44,6 +61,210 @@ function addOptionalBoolean(input, ctx, flagName, fieldName) {
|
|
|
44
61
|
if (ctx.str(flagName) !== "") input[fieldName] = ctx.bool(flagName);
|
|
45
62
|
}
|
|
46
63
|
|
|
64
|
+
// src/commands/te-experiment/approval/get.ts
|
|
65
|
+
function buildInput(ctx) {
|
|
66
|
+
return {
|
|
67
|
+
project_id: readPositiveInteger(ctx, "project-id"),
|
|
68
|
+
exp_id: readNonEmptyString(ctx, "exp-id")
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
var approvalGet = createExperimentCapabilityCommand({
|
|
72
|
+
resource: "approval",
|
|
73
|
+
command: "get",
|
|
74
|
+
capabilityId: "experiment.approval.get",
|
|
75
|
+
description: "Read the latest experiment approval and proposed configuration.",
|
|
76
|
+
helpText: "Returns item=null when the experiment has no approval history.",
|
|
77
|
+
flags: [
|
|
78
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Positive integer project ID." },
|
|
79
|
+
{ name: "exp-id", type: "string", required: true, desc: "Existing experiment ID." }
|
|
80
|
+
],
|
|
81
|
+
risk: "read",
|
|
82
|
+
validate: (ctx) => {
|
|
83
|
+
buildInput(ctx);
|
|
84
|
+
},
|
|
85
|
+
buildInput
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
// src/commands/te-experiment/approval/submit.ts
|
|
89
|
+
function buildInput2(ctx) {
|
|
90
|
+
return {
|
|
91
|
+
project_id: readPositiveInteger(ctx, "project-id"),
|
|
92
|
+
exp_id: readNonEmptyString(ctx, "exp-id")
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
var approvalSubmit = createExperimentCapabilityCommand({
|
|
96
|
+
resource: "approval",
|
|
97
|
+
command: "submit",
|
|
98
|
+
capabilityId: "experiment.approval.submit",
|
|
99
|
+
description: "Submit a saved experiment draft using the server approval policy.",
|
|
100
|
+
helpText: "On updated servers, only Feature experiments with configured approvers enter review.\nExternal experiments and Feature experiments with an empty roster submit directly.\nAn exempt Feature submission stays pending for its existing manual or scheduled start.\nExisting pending reviews must be withdrawn before resubmission.\nRead experiment get for actual status and approval get for any review; older servers may use a different policy.",
|
|
101
|
+
flags: [
|
|
102
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Positive integer project ID." },
|
|
103
|
+
{ name: "exp-id", type: "string", required: true, desc: "Existing experiment ID." }
|
|
104
|
+
],
|
|
105
|
+
risk: "write",
|
|
106
|
+
validate: (ctx) => {
|
|
107
|
+
buildInput2(ctx);
|
|
108
|
+
},
|
|
109
|
+
buildInput: buildInput2
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
// src/commands/te-experiment/approval/approve.ts
|
|
113
|
+
function buildInput3(ctx) {
|
|
114
|
+
return {
|
|
115
|
+
project_id: readPositiveInteger(ctx, "project-id"),
|
|
116
|
+
exp_id: readNonEmptyString(ctx, "exp-id"),
|
|
117
|
+
approval_id: readPositiveInteger(ctx, "approval-id")
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
var approvalApprove = createExperimentCapabilityCommand({
|
|
121
|
+
resource: "approval",
|
|
122
|
+
command: "approve",
|
|
123
|
+
capabilityId: "experiment.approval.approve",
|
|
124
|
+
description: "Approve the exact pending experiment configuration.",
|
|
125
|
+
helpText: "Read approval get and review its configuration and can_approve before approving.\nApproval can start a due Feature experiment and synchronize RCC.\nPass the reviewed approval ID; stale approvals must be read and reviewed again.",
|
|
126
|
+
flags: [
|
|
127
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Positive integer project ID." },
|
|
128
|
+
{ name: "exp-id", type: "string", required: true, desc: "Existing experiment ID." },
|
|
129
|
+
{ name: "approval-id", type: "number", required: true, desc: "Exact positive integer approval ID from approval get; never guess or reuse a stale ID." }
|
|
130
|
+
],
|
|
131
|
+
risk: "write",
|
|
132
|
+
validate: (ctx) => {
|
|
133
|
+
buildInput3(ctx);
|
|
134
|
+
},
|
|
135
|
+
buildInput: buildInput3
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
// src/commands/te-experiment/approval/reject.ts
|
|
139
|
+
function buildInput4(ctx) {
|
|
140
|
+
const reason = readNonEmptyString(ctx, "reason");
|
|
141
|
+
if (reason.length > 72) throw new CliValidationError("Flag --reason must not exceed 72 characters");
|
|
142
|
+
return {
|
|
143
|
+
project_id: readPositiveInteger(ctx, "project-id"),
|
|
144
|
+
exp_id: readNonEmptyString(ctx, "exp-id"),
|
|
145
|
+
approval_id: readPositiveInteger(ctx, "approval-id"),
|
|
146
|
+
reason
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
var approvalReject = createExperimentCapabilityCommand({
|
|
150
|
+
resource: "approval",
|
|
151
|
+
command: "reject",
|
|
152
|
+
capabilityId: "experiment.approval.reject",
|
|
153
|
+
description: "Reject the exact pending experiment configuration.",
|
|
154
|
+
helpText: "Read approval get before rejecting. The reason is required and limited to 72 characters.",
|
|
155
|
+
flags: [
|
|
156
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Positive integer project ID." },
|
|
157
|
+
{ name: "exp-id", type: "string", required: true, desc: "Existing experiment ID." },
|
|
158
|
+
{ name: "approval-id", type: "number", required: true, desc: "Exact positive integer approval ID from approval get; never guess or reuse a stale ID." },
|
|
159
|
+
{ name: "reason", type: "string", required: true, desc: "Rejection reason; 1 to 72 characters after trimming." }
|
|
160
|
+
],
|
|
161
|
+
risk: "write",
|
|
162
|
+
validate: (ctx) => {
|
|
163
|
+
buildInput4(ctx);
|
|
164
|
+
},
|
|
165
|
+
buildInput: buildInput4
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
// src/commands/te-experiment/approval/withdraw.ts
|
|
169
|
+
function buildInput5(ctx) {
|
|
170
|
+
return {
|
|
171
|
+
project_id: readPositiveInteger(ctx, "project-id"),
|
|
172
|
+
exp_id: readNonEmptyString(ctx, "exp-id"),
|
|
173
|
+
approval_id: readPositiveInteger(ctx, "approval-id")
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
var approvalWithdraw = createExperimentCapabilityCommand({
|
|
177
|
+
resource: "approval",
|
|
178
|
+
command: "withdraw",
|
|
179
|
+
capabilityId: "experiment.approval.withdraw",
|
|
180
|
+
description: "Withdraw the exact pending experiment configuration.",
|
|
181
|
+
helpText: "Read approval get and check can_cancel before withdrawing the exact approval ID.\nWithdrawal preserves the current effective configuration and runtime status.",
|
|
182
|
+
flags: [
|
|
183
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Positive integer project ID." },
|
|
184
|
+
{ name: "exp-id", type: "string", required: true, desc: "Existing experiment ID." },
|
|
185
|
+
{ name: "approval-id", type: "number", required: true, desc: "Exact positive integer approval ID from approval get; never guess or reuse a stale ID." }
|
|
186
|
+
],
|
|
187
|
+
risk: "write",
|
|
188
|
+
validate: (ctx) => {
|
|
189
|
+
buildInput5(ctx);
|
|
190
|
+
},
|
|
191
|
+
buildInput: buildInput5
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
// src/commands/te-experiment/approver/list.ts
|
|
195
|
+
function buildInput6(ctx) {
|
|
196
|
+
return {
|
|
197
|
+
project_id: readPositiveInteger(ctx, "project-id")
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
var approverList = createExperimentCapabilityCommand({
|
|
201
|
+
resource: "approver",
|
|
202
|
+
command: "list",
|
|
203
|
+
capabilityId: "experiment.approver.list",
|
|
204
|
+
description: "List project experiment approvers and their eligibility.",
|
|
205
|
+
helpText: "Requires engage:read and experiment settings view permission (experimentViewSetting).",
|
|
206
|
+
flags: [
|
|
207
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Positive integer project ID." }
|
|
208
|
+
],
|
|
209
|
+
risk: "read",
|
|
210
|
+
validate: (ctx) => {
|
|
211
|
+
buildInput6(ctx);
|
|
212
|
+
},
|
|
213
|
+
buildInput: buildInput6
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
// src/commands/te-experiment/approver/add.ts
|
|
217
|
+
function buildInput7(ctx) {
|
|
218
|
+
const value = ctx.json("approvers");
|
|
219
|
+
if (!Array.isArray(value) || value.length < 1 || value.length > 10 || !value.every((item) => typeof item === "string" && item.trim() !== "")) {
|
|
220
|
+
throw new CliValidationError("Flag --approvers must contain 1 to 10 non-empty open IDs");
|
|
221
|
+
}
|
|
222
|
+
return {
|
|
223
|
+
project_id: readPositiveInteger(ctx, "project-id"),
|
|
224
|
+
approvers: value.map((item) => item.trim())
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
var approverAdd = createExperimentCapabilityCommand({
|
|
228
|
+
resource: "approver",
|
|
229
|
+
command: "add",
|
|
230
|
+
capabilityId: "experiment.approver.add",
|
|
231
|
+
description: "Add eligible project experiment approvers.",
|
|
232
|
+
helpText: "Adds 1 to 10 verified project member open IDs.\nRequires engage:write and experiment settings edit permission (experimentEditSetting).\nExperiment approvers are independent of Engage task approvers.\nOn updated servers, a non-empty roster enables Feature experiment approval for subsequent submissions and delivery changes.\nExternal experiments are exempt; existing effective configurations do not require retrospective approval.",
|
|
233
|
+
flags: [
|
|
234
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Positive integer project ID." },
|
|
235
|
+
{ name: "approvers", type: "json", required: true, desc: "JSON array of 1 to 10 eligible project member open IDs." }
|
|
236
|
+
],
|
|
237
|
+
risk: "write",
|
|
238
|
+
validate: (ctx) => {
|
|
239
|
+
buildInput7(ctx);
|
|
240
|
+
},
|
|
241
|
+
buildInput: buildInput7
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
// src/commands/te-experiment/approver/delete.ts
|
|
245
|
+
function buildInput8(ctx) {
|
|
246
|
+
return {
|
|
247
|
+
project_id: readPositiveInteger(ctx, "project-id"),
|
|
248
|
+
approver: readNonEmptyString(ctx, "approver")
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
var approverDelete = createExperimentCapabilityCommand({
|
|
252
|
+
resource: "approver",
|
|
253
|
+
command: "delete",
|
|
254
|
+
capabilityId: "experiment.approver.delete",
|
|
255
|
+
description: "Remove one project experiment approver.",
|
|
256
|
+
helpText: "Requires engage:write and experiment settings edit permission (experimentEditSetting).\nRemoving a member preserves approval history.\nOn updated servers, removing the last approver disables approval for subsequent Feature submissions and delivery changes.\nExisting pending reviews remain pending; withdraw and resubmit them under the current policy when authorized.",
|
|
257
|
+
flags: [
|
|
258
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Positive integer project ID." },
|
|
259
|
+
{ name: "approver", type: "string", required: true, desc: "Existing experiment approver open ID to remove." }
|
|
260
|
+
],
|
|
261
|
+
risk: "high-risk-write",
|
|
262
|
+
validate: (ctx) => {
|
|
263
|
+
buildInput8(ctx);
|
|
264
|
+
},
|
|
265
|
+
buildInput: buildInput8
|
|
266
|
+
});
|
|
267
|
+
|
|
47
268
|
// src/commands/te-experiment/bucket/list.ts
|
|
48
269
|
var bucketList = createExperimentCapabilityCommand({
|
|
49
270
|
resource: "bucket",
|
|
@@ -76,7 +297,7 @@ var experimentBatchDelete = createExperimentCapabilityCommand({
|
|
|
76
297
|
});
|
|
77
298
|
|
|
78
299
|
// src/commands/te-experiment/experiment/conflict-check.ts
|
|
79
|
-
function
|
|
300
|
+
function buildInput9(ctx) {
|
|
80
301
|
const input = {
|
|
81
302
|
project_id: ctx.num("project-id"),
|
|
82
303
|
feature_key_list: readRequiredStringArray(ctx, "feature-key-list"),
|
|
@@ -118,7 +339,7 @@ var experimentConflictCheck = createExperimentCapabilityCommand({
|
|
|
118
339
|
throw new Error("Flag --traffic-layer-id is required");
|
|
119
340
|
}
|
|
120
341
|
},
|
|
121
|
-
buildInput
|
|
342
|
+
buildInput: buildInput9
|
|
122
343
|
});
|
|
123
344
|
|
|
124
345
|
// src/commands/te-experiment/experiment/get.ts
|
|
@@ -136,7 +357,7 @@ var experimentGet = createExperimentCapabilityCommand({
|
|
|
136
357
|
});
|
|
137
358
|
|
|
138
359
|
// src/commands/te-experiment/experiment/list.ts
|
|
139
|
-
function
|
|
360
|
+
function buildInput10(ctx) {
|
|
140
361
|
const input = {
|
|
141
362
|
project_id: ctx.num("project-id")
|
|
142
363
|
};
|
|
@@ -179,7 +400,7 @@ var experimentList = createExperimentCapabilityCommand({
|
|
|
179
400
|
}
|
|
180
401
|
],
|
|
181
402
|
risk: "read",
|
|
182
|
-
buildInput:
|
|
403
|
+
buildInput: buildInput10
|
|
183
404
|
});
|
|
184
405
|
|
|
185
406
|
// src/commands/te-experiment/experiment/list-archived.ts
|
|
@@ -195,7 +416,7 @@ var experimentListArchived = createExperimentCapabilityCommand({
|
|
|
195
416
|
|
|
196
417
|
// src/commands/te-experiment/experiment/manage.ts
|
|
197
418
|
var targetStatuses = ["draft", "testing", "pending", "running", "paused", "ended", "archive"];
|
|
198
|
-
function
|
|
419
|
+
function buildInput11(ctx) {
|
|
199
420
|
const input = {
|
|
200
421
|
project_id: ctx.num("project-id"),
|
|
201
422
|
exp_id: ctx.str("exp-id"),
|
|
@@ -209,7 +430,7 @@ var experimentManage = createExperimentCapabilityCommand({
|
|
|
209
430
|
command: "manage",
|
|
210
431
|
capabilityId: "experiment.experiment.manage",
|
|
211
432
|
description: "Update an experiment status.",
|
|
212
|
-
helpText: "
|
|
433
|
+
helpText: "Draft to pending submits the saved draft under the server approval policy.\nOn updated servers, only Feature experiments with configured approvers enter review; exempt submissions use the existing lifecycle.\nThe pending submission path also works on older servers. Use approval get only when supported.\nSubmit once; success does not establish pending or running status. Verify status and approval with experiment get.\nUsing --target-status running on an eligible experiment starts immediately. Read detail first: when\nstart_time_adjustment_required is true, an early start uses the current server time.",
|
|
213
434
|
flags: [
|
|
214
435
|
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
|
|
215
436
|
{ name: "exp-id", type: "string", required: true, desc: "Experiment ID." },
|
|
@@ -223,7 +444,7 @@ var experimentManage = createExperimentCapabilityCommand({
|
|
|
223
444
|
throw new Error(`Flag --target-status must be one of: ${targetStatuses.join(", ")}`);
|
|
224
445
|
}
|
|
225
446
|
},
|
|
226
|
-
buildInput:
|
|
447
|
+
buildInput: buildInput11
|
|
227
448
|
});
|
|
228
449
|
|
|
229
450
|
// src/commands/te-experiment/experiment/ready-check.ts
|
|
@@ -241,6 +462,19 @@ var experimentReadyCheck = createExperimentCapabilityCommand({
|
|
|
241
462
|
});
|
|
242
463
|
|
|
243
464
|
// src/commands/te-experiment/experiment/save.ts
|
|
465
|
+
var layerTypes = /* @__PURE__ */ new Set(["remote", "local"]);
|
|
466
|
+
function validateExperimentSaveRequest(req) {
|
|
467
|
+
const layerType = req.layerType;
|
|
468
|
+
if (layerType !== void 0 && (typeof layerType !== "string" || !layerTypes.has(layerType))) {
|
|
469
|
+
throw new Error("Flag --req.layerType must be one of: remote, local");
|
|
470
|
+
}
|
|
471
|
+
if (layerType !== void 0 && req.isExpSharing !== 0) {
|
|
472
|
+
throw new Error("Flag --req.layerType requires --req.isExpSharing=0");
|
|
473
|
+
}
|
|
474
|
+
if (layerType === "local" && req.bucketId === "#user_id") {
|
|
475
|
+
throw new Error("Flag --req.bucketId #user_id is not supported when --req.layerType=local");
|
|
476
|
+
}
|
|
477
|
+
}
|
|
244
478
|
function readTimestamp(ctx, name) {
|
|
245
479
|
const value = ctx.str(name);
|
|
246
480
|
if (!(ctx.has?.(name) ?? value !== "")) return void 0;
|
|
@@ -249,8 +483,9 @@ function readTimestamp(ctx, name) {
|
|
|
249
483
|
}
|
|
250
484
|
return value;
|
|
251
485
|
}
|
|
252
|
-
function
|
|
486
|
+
function buildInput12(ctx) {
|
|
253
487
|
const req = { ...readRequiredObject(ctx, "req") };
|
|
488
|
+
validateExperimentSaveRequest(req);
|
|
254
489
|
const startTime = readTimestamp(ctx, "start-time");
|
|
255
490
|
const fixedEndTime = readTimestamp(ctx, "fixed-end-time");
|
|
256
491
|
if (startTime !== void 0 || fixedEndTime !== void 0) {
|
|
@@ -272,23 +507,23 @@ var experimentSave = createExperimentCapabilityCommand({
|
|
|
272
507
|
command: "save",
|
|
273
508
|
capabilityId: "experiment.experiment.save",
|
|
274
509
|
description: "Create or update an experiment, including Feature start and end times.",
|
|
275
|
-
helpText: "Timing flags override matching fields in --req. Saving does not submit or start
|
|
510
|
+
helpText: "Timing flags override matching fields in --req. Saving a draft does not submit or start it.\nAfter readiness checks, use experiment experiment manage --target-status pending to submit once.\nThat submission path works on older and approval-enabled servers.\nOn updated servers, delivery changes enter approval only for Feature experiments with configured approvers.\nExternal experiments and Feature experiments with an empty roster save directly; existing pending reviews still block edits.\nVerify runtime status with experiment get; use approval commands only when supported.\nUse timestamps with minutes 00 or 30 to align with scheduling checks.",
|
|
276
511
|
flags: [
|
|
277
512
|
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
|
|
278
513
|
{
|
|
279
514
|
name: "req",
|
|
280
515
|
type: "json",
|
|
281
516
|
required: true,
|
|
282
|
-
desc: "Native camelCase request; custom audiences use targeting.definitionRequest, never targetConfig."
|
|
517
|
+
desc: "Native camelCase request; custom audiences use targeting.definitionRequest, never targetConfig; optional domainId selects an exclusive draft domain; exclusive local routing uses isExpSharing=0, layerType=local, and a bucketId other than #user_id."
|
|
283
518
|
},
|
|
284
519
|
{ name: "start-time", type: "string", desc: "Optional Feature start timestamp with timezone offset; overrides req.startTime. The server clears seconds and milliseconds." },
|
|
285
520
|
{ name: "fixed-end-time", type: "string", desc: "Optional Feature deadline with timezone offset; sets req.expCycle.cycleType=time and overrides fixedEndTime." }
|
|
286
521
|
],
|
|
287
522
|
risk: "write",
|
|
288
523
|
validate: (ctx) => {
|
|
289
|
-
|
|
524
|
+
buildInput12(ctx);
|
|
290
525
|
},
|
|
291
|
-
buildInput:
|
|
526
|
+
buildInput: buildInput12
|
|
292
527
|
});
|
|
293
528
|
|
|
294
529
|
// src/commands/te-experiment/experiment/update-group.ts
|
|
@@ -415,7 +650,7 @@ function readMetrics(ctx) {
|
|
|
415
650
|
}
|
|
416
651
|
return value;
|
|
417
652
|
}
|
|
418
|
-
function
|
|
653
|
+
function buildInput13(ctx) {
|
|
419
654
|
const expId = ctx.str("exp-id").trim();
|
|
420
655
|
const groups = readGroups(ctx);
|
|
421
656
|
if (expId) {
|
|
@@ -436,7 +671,15 @@ function buildInput5(ctx) {
|
|
|
436
671
|
};
|
|
437
672
|
if (expId) req.expId = expId;
|
|
438
673
|
const endTime = ctx.str("end-time");
|
|
674
|
+
const clearEndTime = ctx.bool("clear-end-time");
|
|
675
|
+
if (clearEndTime && !expId) {
|
|
676
|
+
throw new Error("Flag --clear-end-time requires --exp-id");
|
|
677
|
+
}
|
|
678
|
+
if (clearEndTime && endTime !== "") {
|
|
679
|
+
throw new Error("Flags --clear-end-time and --end-time cannot be combined");
|
|
680
|
+
}
|
|
439
681
|
if (endTime !== "") req.endTime = endTime;
|
|
682
|
+
if (clearEndTime) req.clearEndTime = true;
|
|
440
683
|
const groupId = ctx.str("business-group-id");
|
|
441
684
|
if (groupId !== "") req.groupId = groupId;
|
|
442
685
|
const supposition = ctx.str("supposition");
|
|
@@ -450,14 +693,16 @@ var externalExperimentSaveSubmit = createExperimentCapabilityCommand({
|
|
|
450
693
|
command: "save-submit",
|
|
451
694
|
capabilityId: "experiment.experiment.save-submit",
|
|
452
695
|
description: "Create or update and submit an external experiment without Feature or traffic-layer configuration.",
|
|
696
|
+
helpText: "On updated servers, external experiments submit and save delivery changes without approval, regardless of the approver roster.\nExisting pending reviews remain pending and must be withdrawn before resubmission.\nOn servers exposing req.clearEndTime, omitting --end-time preserves an existing deadline; use --clear-end-time true to cancel it.\nVerify runtime status with experiment experiment get; read approval get only when supported.\nOlder servers retain their existing submission behavior; success does not mean running.",
|
|
453
697
|
flags: [
|
|
454
698
|
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
|
|
455
699
|
{ name: "exp-id", type: "string", desc: "Existing external experiment ID; omit to create." },
|
|
456
700
|
{ name: "exp-name", type: "string", required: true, desc: "External experiment name." },
|
|
457
701
|
{ name: "business-group-id", type: "string", desc: "Optional business group ID." },
|
|
458
702
|
{ name: "bucket-id", type: "string", required: true, desc: "Existing analysis bucket ID for reported exposure and metric joins." },
|
|
459
|
-
{ name: "start-time", type: "string", required: true, desc: "External experiment start timestamp
|
|
460
|
-
{ name: "end-time", type: "string", desc: "Optional end timestamp
|
|
703
|
+
{ name: "start-time", type: "string", required: true, desc: "External experiment start timestamp with a timezone offset. On updates, pass the exact saved value, including seconds and milliseconds, to retain the actual start." },
|
|
704
|
+
{ name: "end-time", type: "string", desc: "Optional end timestamp with timezone offset. Omit for a long-running new experiment; updates preserve the saved deadline on servers exposing req.clearEndTime." },
|
|
705
|
+
{ name: "clear-end-time", type: "boolean", desc: "Explicitly cancel an existing external experiment deadline. Requires --exp-id and a server exposing req.clearEndTime; cannot be combined with --end-time." },
|
|
461
706
|
{ name: "supposition", type: "string", desc: "Optional experiment hypothesis." },
|
|
462
707
|
{ name: "description", type: "string", desc: "Optional experiment description." },
|
|
463
708
|
{
|
|
@@ -475,9 +720,9 @@ var externalExperimentSaveSubmit = createExperimentCapabilityCommand({
|
|
|
475
720
|
],
|
|
476
721
|
risk: "write",
|
|
477
722
|
validate: (ctx) => {
|
|
478
|
-
|
|
723
|
+
buildInput13(ctx);
|
|
479
724
|
},
|
|
480
|
-
buildInput:
|
|
725
|
+
buildInput: buildInput13
|
|
481
726
|
});
|
|
482
727
|
|
|
483
728
|
// src/commands/te-experiment/feature/batch-delete.ts
|
|
@@ -498,7 +743,7 @@ var featureBatchDelete = createExperimentCapabilityCommand({
|
|
|
498
743
|
});
|
|
499
744
|
|
|
500
745
|
// src/commands/te-experiment/feature/get.ts
|
|
501
|
-
function
|
|
746
|
+
function buildInput14(ctx) {
|
|
502
747
|
const input = {
|
|
503
748
|
project_id: ctx.num("project-id"),
|
|
504
749
|
feature_key: ctx.str("feature-key")
|
|
@@ -517,7 +762,7 @@ var featureGet = createExperimentCapabilityCommand({
|
|
|
517
762
|
{ name: "version", type: "string", required: false, desc: "Feature version ID." }
|
|
518
763
|
],
|
|
519
764
|
risk: "read",
|
|
520
|
-
buildInput:
|
|
765
|
+
buildInput: buildInput14
|
|
521
766
|
});
|
|
522
767
|
|
|
523
768
|
// src/commands/te-experiment/feature/list.ts
|
|
@@ -672,7 +917,7 @@ var featureWhitelistBatchDelete = createExperimentCapabilityCommand({
|
|
|
672
917
|
});
|
|
673
918
|
|
|
674
919
|
// src/commands/te-experiment/feature-whitelist/list.ts
|
|
675
|
-
function
|
|
920
|
+
function buildInput15(ctx) {
|
|
676
921
|
return {
|
|
677
922
|
project_id: ctx.num("project-id"),
|
|
678
923
|
feature_key: ctx.str("feature-key")
|
|
@@ -688,11 +933,11 @@ var featureWhitelistList = createExperimentCapabilityCommand({
|
|
|
688
933
|
{ name: "feature-key", type: "string", required: true, desc: "Existing Feature key." }
|
|
689
934
|
],
|
|
690
935
|
risk: "read",
|
|
691
|
-
buildInput:
|
|
936
|
+
buildInput: buildInput15
|
|
692
937
|
});
|
|
693
938
|
|
|
694
939
|
// src/commands/te-experiment/feature-whitelist/save.ts
|
|
695
|
-
function
|
|
940
|
+
function buildInput16(ctx) {
|
|
696
941
|
const ruleId = ctx.str("rule-id").trim();
|
|
697
942
|
const status = ctx.str("status").trim() || "draft";
|
|
698
943
|
if (!["draft", "enable", "disable"].includes(status)) {
|
|
@@ -729,9 +974,9 @@ var featureWhitelistSave = createExperimentCapabilityCommand({
|
|
|
729
974
|
],
|
|
730
975
|
risk: "write",
|
|
731
976
|
validate: (ctx) => {
|
|
732
|
-
|
|
977
|
+
buildInput16(ctx);
|
|
733
978
|
},
|
|
734
|
-
buildInput:
|
|
979
|
+
buildInput: buildInput16
|
|
735
980
|
});
|
|
736
981
|
|
|
737
982
|
// src/commands/te-experiment/feature-whitelist/update-status.ts
|
|
@@ -809,12 +1054,15 @@ var aggregations = /* @__PURE__ */ new Set([
|
|
|
809
1054
|
"distinct_count"
|
|
810
1055
|
]);
|
|
811
1056
|
var propertyAggregations = /* @__PURE__ */ new Set(["sum", "avg", "max", "distinct_count"]);
|
|
1057
|
+
var countAggregations = /* @__PURE__ */ new Set(["total_count", "user_count", "active_days"]);
|
|
1058
|
+
var gatewayValidatedMetricTypes = /* @__PURE__ */ new Set(["formula", "retention", "funnel"]);
|
|
812
1059
|
var metricDefinitionFields = /* @__PURE__ */ new Set([
|
|
813
1060
|
"type",
|
|
814
1061
|
"event",
|
|
815
1062
|
"aggregation",
|
|
816
1063
|
"property",
|
|
817
|
-
"filters"
|
|
1064
|
+
"filters",
|
|
1065
|
+
"display_name"
|
|
818
1066
|
]);
|
|
819
1067
|
function validateMetricFilters(rawFilters) {
|
|
820
1068
|
if (rawFilters === void 0) return;
|
|
@@ -852,14 +1100,15 @@ function validateMetricSaveRequest(req) {
|
|
|
852
1100
|
throw new Error("Flag --req.metricDefinition must be a JSON object");
|
|
853
1101
|
}
|
|
854
1102
|
const definition = rawDefinition;
|
|
1103
|
+
if (typeof definition.type === "string" && gatewayValidatedMetricTypes.has(definition.type)) return;
|
|
1104
|
+
if (definition.type !== "event") {
|
|
1105
|
+
throw new Error("Flag --req.metricDefinition.type must be one of: event, formula, retention, funnel");
|
|
1106
|
+
}
|
|
855
1107
|
for (const field of Object.keys(definition)) {
|
|
856
1108
|
if (!metricDefinitionFields.has(field)) {
|
|
857
1109
|
throw new Error(`Flag --req.metricDefinition.${field} is not supported`);
|
|
858
1110
|
}
|
|
859
1111
|
}
|
|
860
|
-
if (definition.type !== "event") {
|
|
861
|
-
throw new Error("Flag --req.metricDefinition.type must be event");
|
|
862
|
-
}
|
|
863
1112
|
if (typeof definition.event !== "string" || definition.event.trim() === "") {
|
|
864
1113
|
throw new Error("Flag --req.metricDefinition.event is required");
|
|
865
1114
|
}
|
|
@@ -871,6 +1120,16 @@ function validateMetricSaveRequest(req) {
|
|
|
871
1120
|
}
|
|
872
1121
|
validateMetricFilters(definition.filters);
|
|
873
1122
|
}
|
|
1123
|
+
function applyMetricCreateDefaults(req) {
|
|
1124
|
+
if (req.update !== void 0 && req.update !== false) return req;
|
|
1125
|
+
const definition = req.metricDefinition;
|
|
1126
|
+
if (definition?.type !== "event" || typeof definition.aggregation !== "string" || !countAggregations.has(definition.aggregation)) return req;
|
|
1127
|
+
return {
|
|
1128
|
+
metricPurpose: "confidence_statistics",
|
|
1129
|
+
format: "integer",
|
|
1130
|
+
...req
|
|
1131
|
+
};
|
|
1132
|
+
}
|
|
874
1133
|
var metricSave = createExperimentCapabilityCommand({
|
|
875
1134
|
resource: "metric",
|
|
876
1135
|
command: "save",
|
|
@@ -882,14 +1141,17 @@ var metricSave = createExperimentCapabilityCommand({
|
|
|
882
1141
|
name: "req",
|
|
883
1142
|
type: "json",
|
|
884
1143
|
required: true,
|
|
885
|
-
desc: "Native camelCase request.
|
|
1144
|
+
desc: "Native camelCase request. New user_count, total_count, and active_days metrics default to metricPurpose=confidence_statistics and format=integer. metricDefinition supports event, formula, retention, and funnel. Event property comparisons use metricDefinition.filters={relation,items:[{field,operator,values}]}. Never use metricConfig, calcType, or raw filts."
|
|
886
1145
|
}
|
|
887
1146
|
],
|
|
888
1147
|
risk: "write",
|
|
889
1148
|
validate: (ctx) => {
|
|
890
1149
|
validateMetricSaveRequest(readRequiredObject(ctx, "req"));
|
|
891
1150
|
},
|
|
892
|
-
buildInput: (ctx) => ({
|
|
1151
|
+
buildInput: (ctx) => ({
|
|
1152
|
+
project_id: ctx.num("project-id"),
|
|
1153
|
+
req: applyMetricCreateDefaults(readRequiredObject(ctx, "req"))
|
|
1154
|
+
})
|
|
893
1155
|
});
|
|
894
1156
|
|
|
895
1157
|
// src/commands/te-experiment/operation-log/query.ts
|
|
@@ -966,11 +1228,15 @@ var saveValidate = createExperimentCapabilityCommand({
|
|
|
966
1228
|
}
|
|
967
1229
|
readRequiredObject(ctx, "req");
|
|
968
1230
|
},
|
|
969
|
-
buildInput: (ctx) =>
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
1231
|
+
buildInput: (ctx) => {
|
|
1232
|
+
const mode = ctx.str("operation-mode");
|
|
1233
|
+
const req = readRequiredObject(ctx, "req");
|
|
1234
|
+
return {
|
|
1235
|
+
project_id: ctx.num("project-id"),
|
|
1236
|
+
operation_mode: mode,
|
|
1237
|
+
req: mode === "save_metric" ? applyMetricCreateDefaults(req) : req
|
|
1238
|
+
};
|
|
1239
|
+
}
|
|
974
1240
|
});
|
|
975
1241
|
|
|
976
1242
|
// src/commands/te-experiment/report/metric-trend.ts
|
|
@@ -1065,6 +1331,148 @@ var reportSummary = createExperimentCapabilityCommand({
|
|
|
1065
1331
|
}
|
|
1066
1332
|
});
|
|
1067
1333
|
|
|
1334
|
+
// src/commands/te-experiment/traffic-domain/shared.ts
|
|
1335
|
+
function integerFlag(ctx, name, min, max = Number.MAX_SAFE_INTEGER) {
|
|
1336
|
+
const value = ctx.num(name);
|
|
1337
|
+
if (ctx.str(name).trim() === "" || !Number.isSafeInteger(value) || value < min || value > max) {
|
|
1338
|
+
throw new Error(`Flag --${name} must be an integer between ${min} and ${max}`);
|
|
1339
|
+
}
|
|
1340
|
+
return value;
|
|
1341
|
+
}
|
|
1342
|
+
function baseInput(ctx, bucketRequired = false) {
|
|
1343
|
+
const input = { project_id: integerFlag(ctx, "project-id", 1, 2147483647) };
|
|
1344
|
+
const bucket = ctx.str("bucket-id").trim();
|
|
1345
|
+
if (bucketRequired || bucket !== "") {
|
|
1346
|
+
if (!["#user_id", "#account_id", "#distinct_id", "#device_id"].includes(bucket)) {
|
|
1347
|
+
throw new Error("Flag --bucket-id must be one of #user_id, #account_id, #distinct_id, #device_id");
|
|
1348
|
+
}
|
|
1349
|
+
input.bucket_id = bucket;
|
|
1350
|
+
}
|
|
1351
|
+
return input;
|
|
1352
|
+
}
|
|
1353
|
+
function domainId(ctx) {
|
|
1354
|
+
const value = ctx.str("domain-id").trim();
|
|
1355
|
+
if (!value) throw new Error("Flag --domain-id must be a non-empty string");
|
|
1356
|
+
return value;
|
|
1357
|
+
}
|
|
1358
|
+
function writeInput(ctx, create) {
|
|
1359
|
+
const input = baseInput(ctx, create);
|
|
1360
|
+
if (!create) input.domain_id = domainId(ctx);
|
|
1361
|
+
const name = ctx.str("name").trim();
|
|
1362
|
+
const description = ctx.str("description");
|
|
1363
|
+
if (!name || name.length > 128) throw new Error("Flag --name must contain 1 to 128 characters");
|
|
1364
|
+
if (description.length > 200) throw new Error("Flag --description must contain at most 200 characters");
|
|
1365
|
+
input.domain_name = name;
|
|
1366
|
+
input.domain_desc = description;
|
|
1367
|
+
const quotaChange = create || ["allocation-bps", "allocations", "expected-version"].some(
|
|
1368
|
+
(flag) => ctx.has?.(flag) ?? ctx.str(flag) !== ""
|
|
1369
|
+
);
|
|
1370
|
+
if (!quotaChange) return input;
|
|
1371
|
+
input.allocation_bps = integerFlag(ctx, "allocation-bps", 1, 1e4);
|
|
1372
|
+
input.expected_version = integerFlag(ctx, "expected-version", 0);
|
|
1373
|
+
const raw = ctx.json("allocations");
|
|
1374
|
+
const allocations = raw === void 0 && create ? [] : raw;
|
|
1375
|
+
if (!Array.isArray(allocations)) throw new Error("Flag --allocations must be a JSON array of all other domains");
|
|
1376
|
+
const ids = /* @__PURE__ */ new Set();
|
|
1377
|
+
let total = input.allocation_bps;
|
|
1378
|
+
input.allocations = allocations.map((item, index) => {
|
|
1379
|
+
if (!item || typeof item !== "object" || Array.isArray(item) || Object.keys(item).some((key) => !["domain_id", "allocation_bps"].includes(key)) || typeof item.domain_id !== "string" || !item.domain_id.trim() || !Number.isInteger(item.allocation_bps) || item.allocation_bps < 1 || item.allocation_bps > 1e4) {
|
|
1380
|
+
throw new Error(`Flag --allocations[${index}] must contain only domain_id and integer allocation_bps (1 to 10000)`);
|
|
1381
|
+
}
|
|
1382
|
+
const id = item.domain_id.trim();
|
|
1383
|
+
if (ids.has(id) || id === input.domain_id) {
|
|
1384
|
+
throw new Error("Flag --allocations must not repeat a domain or include the domain being updated");
|
|
1385
|
+
}
|
|
1386
|
+
ids.add(id);
|
|
1387
|
+
total += item.allocation_bps;
|
|
1388
|
+
return { domain_id: id, allocation_bps: item.allocation_bps };
|
|
1389
|
+
});
|
|
1390
|
+
if (total > 1e4) throw new Error("Total domain allocation must not exceed 10000 basis points");
|
|
1391
|
+
return input;
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
// src/commands/te-experiment/traffic-domain/list.ts
|
|
1395
|
+
var trafficDomainList = createExperimentCapabilityCommand({
|
|
1396
|
+
resource: "traffic-domain",
|
|
1397
|
+
command: "list",
|
|
1398
|
+
capabilityId: "experiment.traffic_domain.list",
|
|
1399
|
+
description: "List traffic domains grouped into bucket Spaces with quotas, versions, and permissions.",
|
|
1400
|
+
flags: [
|
|
1401
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
|
|
1402
|
+
{ name: "bucket-id", type: "string", desc: "Bucket subject: #user_id, #account_id, #distinct_id, or #device_id." }
|
|
1403
|
+
],
|
|
1404
|
+
risk: "read",
|
|
1405
|
+
validate: (ctx) => {
|
|
1406
|
+
baseInput(ctx);
|
|
1407
|
+
},
|
|
1408
|
+
buildInput: baseInput
|
|
1409
|
+
});
|
|
1410
|
+
|
|
1411
|
+
// src/commands/te-experiment/traffic-domain/create.ts
|
|
1412
|
+
var trafficDomainCreate = createExperimentCapabilityCommand({
|
|
1413
|
+
resource: "traffic-domain",
|
|
1414
|
+
command: "create",
|
|
1415
|
+
capabilityId: "experiment.traffic_domain.create",
|
|
1416
|
+
description: "Create a traffic domain with complete Space quotas.",
|
|
1417
|
+
flags: [
|
|
1418
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
|
|
1419
|
+
{ name: "bucket-id", type: "string", required: true, desc: "Bucket subject: #user_id, #account_id, #distinct_id, or #device_id." },
|
|
1420
|
+
{ name: "name", type: "string", required: true, desc: "Domain name, 1 to 128 characters; unique within the bucket subject." },
|
|
1421
|
+
{ name: "description", type: "string", desc: "Domain description, at most 200 characters; omitted value clears the description." },
|
|
1422
|
+
{ name: "allocation-bps", type: "number", required: true, desc: "Domain quota in integer basis points (1 to 10000; 10000 = 100%)." },
|
|
1423
|
+
{ name: "expected-version", type: "number", required: true, desc: "Current Space allocation_version from list; use 0 only when no domains exist." },
|
|
1424
|
+
{ name: "allocations", type: "json", desc: 'Complete other-domain quotas: [{"domain_id":"d1","allocation_bps":3000}]; omit only for the first domain.' }
|
|
1425
|
+
],
|
|
1426
|
+
risk: "write",
|
|
1427
|
+
validate: (ctx) => {
|
|
1428
|
+
writeInput(ctx, true);
|
|
1429
|
+
},
|
|
1430
|
+
buildInput: (ctx) => writeInput(ctx, true)
|
|
1431
|
+
});
|
|
1432
|
+
|
|
1433
|
+
// src/commands/te-experiment/traffic-domain/update.ts
|
|
1434
|
+
var trafficDomainUpdate = createExperimentCapabilityCommand({
|
|
1435
|
+
resource: "traffic-domain",
|
|
1436
|
+
command: "update",
|
|
1437
|
+
capabilityId: "experiment.traffic_domain.update",
|
|
1438
|
+
description: "Update traffic domain metadata and optionally replace complete Space quotas.",
|
|
1439
|
+
flags: [
|
|
1440
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
|
|
1441
|
+
{ name: "domain-id", type: "string", required: true, desc: "Existing traffic domain ID in this project." },
|
|
1442
|
+
{ name: "bucket-id", type: "string", desc: "Bucket subject: #user_id, #account_id, #distinct_id, or #device_id." },
|
|
1443
|
+
{ name: "name", type: "string", required: true, desc: "Domain name, 1 to 128 characters; unique within the bucket subject." },
|
|
1444
|
+
{ name: "description", type: "string", desc: "Domain description, at most 200 characters; omitted value clears the description." },
|
|
1445
|
+
{ name: "allocation-bps", type: "number", desc: "Domain quota in integer basis points (1 to 10000; 10000 = 100%)." },
|
|
1446
|
+
{ name: "expected-version", type: "number", desc: "Current Space allocation_version from list; use 0 only when no domains exist." },
|
|
1447
|
+
{ name: "allocations", type: "json", desc: 'Complete other-domain quotas: [{"domain_id":"d1","allocation_bps":3000}]; required with --allocation-bps and --expected-version; exclude this domain.' }
|
|
1448
|
+
],
|
|
1449
|
+
risk: "write",
|
|
1450
|
+
validate: (ctx) => {
|
|
1451
|
+
writeInput(ctx, false);
|
|
1452
|
+
},
|
|
1453
|
+
buildInput: (ctx) => writeInput(ctx, false)
|
|
1454
|
+
});
|
|
1455
|
+
|
|
1456
|
+
// src/commands/te-experiment/traffic-domain/delete.ts
|
|
1457
|
+
var trafficDomainDelete = createExperimentCapabilityCommand({
|
|
1458
|
+
resource: "traffic-domain",
|
|
1459
|
+
command: "delete",
|
|
1460
|
+
capabilityId: "experiment.traffic_domain.delete",
|
|
1461
|
+
description: "Delete a traffic domain and unbind its layers while retaining layers and experiments.",
|
|
1462
|
+
flags: [
|
|
1463
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
|
|
1464
|
+
{ name: "domain-id", type: "string", required: true, desc: "Existing traffic domain ID in this project." },
|
|
1465
|
+
{ name: "expected-version", type: "number", required: true, desc: "Current Space allocation_version from list; use 0 only when no domains exist." }
|
|
1466
|
+
],
|
|
1467
|
+
risk: "high-risk-write",
|
|
1468
|
+
validate: (ctx) => {
|
|
1469
|
+
baseInput(ctx);
|
|
1470
|
+
domainId(ctx);
|
|
1471
|
+
integerFlag(ctx, "expected-version", 0);
|
|
1472
|
+
},
|
|
1473
|
+
buildInput: (ctx) => ({ ...baseInput(ctx), domain_id: domainId(ctx), expected_version: integerFlag(ctx, "expected-version", 0) })
|
|
1474
|
+
});
|
|
1475
|
+
|
|
1068
1476
|
// src/commands/te-experiment/traffic-layer/batch-delete.ts
|
|
1069
1477
|
var trafficLayerBatchDelete = createExperimentCapabilityCommand({
|
|
1070
1478
|
resource: "traffic-layer",
|
|
@@ -1118,7 +1526,7 @@ var trafficLayerSave = createExperimentCapabilityCommand({
|
|
|
1118
1526
|
description: "Create or update a traffic layer.",
|
|
1119
1527
|
flags: [
|
|
1120
1528
|
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
|
|
1121
|
-
{ name: "req", type: "json", required: true, desc: "Native camelCase traffic layer save request
|
|
1529
|
+
{ name: "req", type: "json", required: true, desc: "Native camelCase traffic layer save request; optional domainId binds a domain, empty string clears membership on eligible layers." }
|
|
1122
1530
|
],
|
|
1123
1531
|
risk: "write",
|
|
1124
1532
|
validate: (ctx) => {
|
|
@@ -1130,6 +1538,14 @@ var trafficLayerSave = createExperimentCapabilityCommand({
|
|
|
1130
1538
|
// src/commands/te-experiment/index.ts
|
|
1131
1539
|
registerCapabilityGatewayRoute("experiment", { gatewayDomain: "engage" });
|
|
1132
1540
|
var commands = [
|
|
1541
|
+
approvalGet,
|
|
1542
|
+
approvalSubmit,
|
|
1543
|
+
approvalApprove,
|
|
1544
|
+
approvalReject,
|
|
1545
|
+
approvalWithdraw,
|
|
1546
|
+
approverList,
|
|
1547
|
+
approverAdd,
|
|
1548
|
+
approverDelete,
|
|
1133
1549
|
experimentSave,
|
|
1134
1550
|
experimentList,
|
|
1135
1551
|
experimentListArchived,
|
|
@@ -1144,6 +1560,10 @@ var commands = [
|
|
|
1144
1560
|
operationLogQuery,
|
|
1145
1561
|
saveBuildGuide,
|
|
1146
1562
|
saveValidate,
|
|
1563
|
+
trafficDomainList,
|
|
1564
|
+
trafficDomainCreate,
|
|
1565
|
+
trafficDomainUpdate,
|
|
1566
|
+
trafficDomainDelete,
|
|
1147
1567
|
trafficLayerSave,
|
|
1148
1568
|
trafficLayerGet,
|
|
1149
1569
|
trafficLayerList,
|
|
@@ -1170,6 +1590,14 @@ var commands = [
|
|
|
1170
1590
|
];
|
|
1171
1591
|
var te_experiment_default = commands;
|
|
1172
1592
|
export {
|
|
1593
|
+
approvalApprove,
|
|
1594
|
+
approvalGet,
|
|
1595
|
+
approvalReject,
|
|
1596
|
+
approvalSubmit,
|
|
1597
|
+
approvalWithdraw,
|
|
1598
|
+
approverAdd,
|
|
1599
|
+
approverDelete,
|
|
1600
|
+
approverList,
|
|
1173
1601
|
bucketList,
|
|
1174
1602
|
te_experiment_default as default,
|
|
1175
1603
|
experimentBatchDelete,
|
|
@@ -1204,6 +1632,10 @@ export {
|
|
|
1204
1632
|
reportSummary,
|
|
1205
1633
|
saveBuildGuide,
|
|
1206
1634
|
saveValidate,
|
|
1635
|
+
trafficDomainCreate,
|
|
1636
|
+
trafficDomainDelete,
|
|
1637
|
+
trafficDomainList,
|
|
1638
|
+
trafficDomainUpdate,
|
|
1207
1639
|
trafficLayerBatchDelete,
|
|
1208
1640
|
trafficLayerGet,
|
|
1209
1641
|
trafficLayerList,
|