@thinkingai/ae-cli 6.1.30 → 6.1.32
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 +11 -5
- package/README.zh.md +11 -5
- package/bin/ai-monitor.js +2 -0
- package/dist/ai-monitor-MKMHSSNI.js +32 -0
- package/dist/ai-monitor.js +135 -0
- package/dist/{auth-ADZHUIJR.js → auth-CZHHPZOQ.js} +10 -9
- package/dist/{automation-FD2QZUP6.js → automation-FLCPFMN4.js} +4 -4
- package/dist/{capability-QXFRJYZD.js → capability-64KVJFIA.js} +27 -31
- package/dist/{chunk-YULUBP3R.js → chunk-3ULDJJTZ.js} +1 -1
- package/dist/{chunk-HRUOV6EQ.js → chunk-4XKTRCRK.js} +15 -15
- package/dist/{chunk-JSBLCLFE.js → chunk-5M5LBRR3.js} +1 -1
- package/dist/chunk-6M7ZEDT2.js +182 -0
- package/dist/{chunk-KPQY44JQ.js → chunk-AWW2T2WL.js} +3 -0
- package/dist/chunk-BNBCMCYN.js +563 -0
- package/dist/chunk-CF6JTT2U.js +64 -0
- package/dist/{chunk-CG773QXN.js → chunk-DWBYNGSR.js} +564 -314
- package/dist/{chunk-VDICGXCY.js → chunk-F2VFZUGG.js} +2 -2
- package/dist/{chunk-TFORY6WY.js → chunk-FCAA7I2D.js} +2 -2
- package/dist/{chunk-SOSFRU3O.js → chunk-HTZ2MLYA.js} +47 -21
- package/dist/{chunk-AWVZTN2B.js → chunk-HVMCPKOZ.js} +1 -1
- package/dist/chunk-IDDWEZ7F.js +1285 -0
- package/dist/{chunk-E25OSZLJ.js → chunk-KTJXD27G.js} +2 -2
- package/dist/{chunk-AVXDJAFC.js → chunk-NLEXY2TM.js} +47 -12
- package/dist/{chunk-YVG6QD3V.js → chunk-P7QDCWJ6.js} +98 -7
- package/dist/{chunk-EUFP4M2A.js → chunk-T7WF4HYW.js} +84 -32
- package/dist/{chunk-Y3AM6LIO.js → chunk-TMQGS4TO.js} +15 -10
- package/dist/{compat-check-HERBTQZN.js → compat-check-ZJNCMNQV.js} +2 -2
- package/dist/{config-E3KANXMK.js → config-FSH2NMNZ.js} +25 -12
- package/dist/{context-CDB5H5PD.js → context-YAQG6YQC.js} +2 -2
- package/dist/{evaluation-LR4YDYWL.js → evaluation-2JSF4V47.js} +13 -158
- package/dist/index.js +81 -583
- package/dist/{memory-SNFR5M23.js → memory-VEZZVAAP.js} +4 -4
- package/dist/{metadata-EXQYDZTH.js → metadata-3IWHX3V4.js} +7 -7
- package/dist/{model-KEVCEXWD.js → model-T7H7Q6BG.js} +2 -2
- package/dist/{personal-semantic-preference-ETY3KU2O.js → personal-semantic-preference-YITU23SA.js} +6 -6
- package/dist/{project-semantic-UHRMVOJF.js → project-semantic-MHEXJF3C.js} +15 -13
- package/dist/{sync-XKEBXESC.js → sync-AQHVCSPI.js} +4 -4
- package/dist/{te-agent-S6UQR4IE.js → te-agent-RXI7WOH4.js} +5 -5
- package/dist/{te-analysis-WOFFCIBC.js → te-analysis-CZY74HVF.js} +380 -191
- package/dist/{te-community-R7B6QYOO.js → te-community-DKCYUBCM.js} +6 -6
- package/dist/{te-dataops-KPILYVHA.js → te-dataops-QEH6VE56.js} +3 -3
- package/dist/{te-engage-IAUM6ONX.js → te-engage-WK7WKDKF.js} +6 -6
- package/dist/{te-experiment-TMLRA7B3.js → te-experiment-LH3RPIOE.js} +274 -29
- package/dist/{te-kb-GKWPSLSY.js → te-kb-UPORIOVN.js} +16 -7
- package/dist/{te-system-CYWSK3UN.js → te-system-AL4B4XZL.js} +2 -2
- package/dist/{te-team-ISN52YNG.js → te-team-LLVTO2G4.js} +5 -5
- package/dist/{things-DDQ52Z3Q.js → things-XLMLBYQR.js} +5 -5
- package/dist/{update-CTLNTX35.js → update-7J5UQHSK.js} +3 -3
- package/dist/{workspace-2CKQX2XL.js → workspace-FF2HXJGR.js} +4 -4
- package/package.json +9 -7
- 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 +10 -4
- 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_gateway_assets.md +2 -0
- 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 +38 -29
- 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_run_update.md +3 -1
- 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 +3 -1
- 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_list.md +2 -1
- 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 +9 -5
- 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 +38 -11
- package/skills/ae-experiment/references/experiment_approval.md +171 -0
- package/skills/ae-experiment/references/manage_experiment.md +11 -2
- package/skills/ae-experiment/references/save_experiment.md +28 -8
- package/skills/ae-experiment/references/save_submit_experiment.md +18 -3
- package/skills/ae-experiment/references/save_submit_external_experiment.md +57 -3
- package/skills/ae-generate-tracking-plan/SKILL.md +5 -0
- package/skills/ae-kb/SKILL.md +5 -3
- package/skills/ae-kb/references/analysis-workflow.md +11 -2
- 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
|
@@ -1,28 +1,28 @@
|
|
|
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-TMQGS4TO.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCapabilityGatewayRoute,
|
|
7
7
|
resolveGatewayDomain
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AWW2T2WL.js";
|
|
9
9
|
import {
|
|
10
10
|
unwrapOutputData,
|
|
11
11
|
withOutputMetadata
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3ULDJJTZ.js";
|
|
13
13
|
import {
|
|
14
14
|
CapabilityGatewayError,
|
|
15
15
|
buildCapabilityGatewayUrl,
|
|
16
16
|
requestCapabilityGatewayWithEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4XKTRCRK.js";
|
|
18
18
|
import {
|
|
19
19
|
internalCallSourceHeaders
|
|
20
20
|
} from "./chunk-Y74WTIKJ.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-DWBYNGSR.js";
|
|
22
22
|
import {
|
|
23
23
|
SecureStoreAuthError,
|
|
24
24
|
getCliToken
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-HTZ2MLYA.js";
|
|
26
26
|
import {
|
|
27
27
|
getActiveHost,
|
|
28
28
|
parseJsonRequest,
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
} from "./chunk-2F64AZYH.js";
|
|
5
5
|
import {
|
|
6
6
|
printError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3ULDJJTZ.js";
|
|
8
8
|
import {
|
|
9
9
|
internalCallSourceHeaders
|
|
10
10
|
} from "./chunk-Y74WTIKJ.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-DWBYNGSR.js";
|
|
12
12
|
import {
|
|
13
13
|
SecureStoreAuthError,
|
|
14
14
|
getCliToken
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HTZ2MLYA.js";
|
|
16
16
|
import {
|
|
17
17
|
safeJsonParse
|
|
18
18
|
} from "./chunk-4PSTYEG5.js";
|
|
@@ -1,25 +1,25 @@
|
|
|
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-TMQGS4TO.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCapabilityGatewayRoute,
|
|
7
7
|
resolveGatewayDomain
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AWW2T2WL.js";
|
|
9
9
|
import {
|
|
10
10
|
printError,
|
|
11
11
|
withOutputMetadata
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3ULDJJTZ.js";
|
|
13
13
|
import {
|
|
14
14
|
CapabilityGatewayError,
|
|
15
15
|
buildCapabilityGatewayUrl,
|
|
16
16
|
fetchCapabilityGateway,
|
|
17
17
|
requestCapabilityGateway,
|
|
18
18
|
requestCapabilityGatewayWithEnvelope
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4XKTRCRK.js";
|
|
20
20
|
import "./chunk-Y74WTIKJ.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-DWBYNGSR.js";
|
|
22
|
+
import "./chunk-HTZ2MLYA.js";
|
|
23
23
|
import "./chunk-4PSTYEG5.js";
|
|
24
24
|
import {
|
|
25
25
|
CliValidationError
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createCapabilityCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TMQGS4TO.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCapabilityGatewayRoute
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-AWW2T2WL.js";
|
|
8
|
+
import "./chunk-3ULDJJTZ.js";
|
|
9
|
+
import "./chunk-4XKTRCRK.js";
|
|
10
10
|
import "./chunk-Y74WTIKJ.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-DWBYNGSR.js";
|
|
12
|
+
import "./chunk-HTZ2MLYA.js";
|
|
13
13
|
import "./chunk-4PSTYEG5.js";
|
|
14
14
|
import {
|
|
15
15
|
CliValidationError
|
|
@@ -23,6 +23,22 @@ function createExperimentCapabilityCommand(config) {
|
|
|
23
23
|
gatewayDomain: "engage"
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
+
function readPositiveInteger(ctx, name) {
|
|
27
|
+
const raw = ctx.str(name).trim();
|
|
28
|
+
if (!/^[0-9]+$/.test(raw)) {
|
|
29
|
+
throw new CliValidationError(`Flag --${name} must be a positive safe integer written as decimal digits`);
|
|
30
|
+
}
|
|
31
|
+
const value = Number(raw);
|
|
32
|
+
if (!Number.isSafeInteger(value) || value <= 0) {
|
|
33
|
+
throw new CliValidationError(`Flag --${name} must be a positive safe integer`);
|
|
34
|
+
}
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
function readNonEmptyString(ctx, name) {
|
|
38
|
+
const value = ctx.str(name).trim();
|
|
39
|
+
if (!value) throw new CliValidationError(`Flag --${name} must be a non-empty string`);
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
26
42
|
function readRequiredObject(ctx, name) {
|
|
27
43
|
const value = ctx.json(name);
|
|
28
44
|
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
@@ -44,6 +60,209 @@ function addOptionalBoolean(input, ctx, flagName, fieldName) {
|
|
|
44
60
|
if (ctx.str(flagName) !== "") input[fieldName] = ctx.bool(flagName);
|
|
45
61
|
}
|
|
46
62
|
|
|
63
|
+
// src/commands/te-experiment/approval/get.ts
|
|
64
|
+
function buildInput(ctx) {
|
|
65
|
+
return {
|
|
66
|
+
project_id: readPositiveInteger(ctx, "project-id"),
|
|
67
|
+
exp_id: readNonEmptyString(ctx, "exp-id")
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
var approvalGet = createExperimentCapabilityCommand({
|
|
71
|
+
resource: "approval",
|
|
72
|
+
command: "get",
|
|
73
|
+
capabilityId: "experiment.approval.get",
|
|
74
|
+
description: "Read the latest experiment approval and proposed configuration.",
|
|
75
|
+
helpText: "Returns item=null when the experiment has no approval history.",
|
|
76
|
+
flags: [
|
|
77
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Positive integer project ID." },
|
|
78
|
+
{ name: "exp-id", type: "string", required: true, desc: "Existing experiment ID." }
|
|
79
|
+
],
|
|
80
|
+
risk: "read",
|
|
81
|
+
validate: (ctx) => {
|
|
82
|
+
buildInput(ctx);
|
|
83
|
+
},
|
|
84
|
+
buildInput
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
// src/commands/te-experiment/approval/submit.ts
|
|
88
|
+
function buildInput2(ctx) {
|
|
89
|
+
return {
|
|
90
|
+
project_id: readPositiveInteger(ctx, "project-id"),
|
|
91
|
+
exp_id: readNonEmptyString(ctx, "exp-id")
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
var approvalSubmit = createExperimentCapabilityCommand({
|
|
95
|
+
resource: "approval",
|
|
96
|
+
command: "submit",
|
|
97
|
+
capabilityId: "experiment.approval.submit",
|
|
98
|
+
description: "Submit a saved experiment draft for approval.",
|
|
99
|
+
helpText: "Submission creates a pending review; it does not approve or start the experiment.\nRead approval get after submission to inspect the exact proposal and approval ID.",
|
|
100
|
+
flags: [
|
|
101
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Positive integer project ID." },
|
|
102
|
+
{ name: "exp-id", type: "string", required: true, desc: "Existing experiment ID." }
|
|
103
|
+
],
|
|
104
|
+
risk: "write",
|
|
105
|
+
validate: (ctx) => {
|
|
106
|
+
buildInput2(ctx);
|
|
107
|
+
},
|
|
108
|
+
buildInput: buildInput2
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
// src/commands/te-experiment/approval/approve.ts
|
|
112
|
+
function buildInput3(ctx) {
|
|
113
|
+
return {
|
|
114
|
+
project_id: readPositiveInteger(ctx, "project-id"),
|
|
115
|
+
exp_id: readNonEmptyString(ctx, "exp-id"),
|
|
116
|
+
approval_id: readPositiveInteger(ctx, "approval-id")
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
var approvalApprove = createExperimentCapabilityCommand({
|
|
120
|
+
resource: "approval",
|
|
121
|
+
command: "approve",
|
|
122
|
+
capabilityId: "experiment.approval.approve",
|
|
123
|
+
description: "Approve the exact pending experiment configuration.",
|
|
124
|
+
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.",
|
|
125
|
+
flags: [
|
|
126
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Positive integer project ID." },
|
|
127
|
+
{ name: "exp-id", type: "string", required: true, desc: "Existing experiment ID." },
|
|
128
|
+
{ name: "approval-id", type: "number", required: true, desc: "Exact positive integer approval ID from approval get; never guess or reuse a stale ID." }
|
|
129
|
+
],
|
|
130
|
+
risk: "write",
|
|
131
|
+
validate: (ctx) => {
|
|
132
|
+
buildInput3(ctx);
|
|
133
|
+
},
|
|
134
|
+
buildInput: buildInput3
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
// src/commands/te-experiment/approval/reject.ts
|
|
138
|
+
function buildInput4(ctx) {
|
|
139
|
+
const reason = readNonEmptyString(ctx, "reason");
|
|
140
|
+
if (reason.length > 72) throw new CliValidationError("Flag --reason must not exceed 72 characters");
|
|
141
|
+
return {
|
|
142
|
+
project_id: readPositiveInteger(ctx, "project-id"),
|
|
143
|
+
exp_id: readNonEmptyString(ctx, "exp-id"),
|
|
144
|
+
approval_id: readPositiveInteger(ctx, "approval-id"),
|
|
145
|
+
reason
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
var approvalReject = createExperimentCapabilityCommand({
|
|
149
|
+
resource: "approval",
|
|
150
|
+
command: "reject",
|
|
151
|
+
capabilityId: "experiment.approval.reject",
|
|
152
|
+
description: "Reject the exact pending experiment configuration.",
|
|
153
|
+
helpText: "Read approval get before rejecting. The reason is required and limited to 72 characters.",
|
|
154
|
+
flags: [
|
|
155
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Positive integer project ID." },
|
|
156
|
+
{ name: "exp-id", type: "string", required: true, desc: "Existing experiment ID." },
|
|
157
|
+
{ name: "approval-id", type: "number", required: true, desc: "Exact positive integer approval ID from approval get; never guess or reuse a stale ID." },
|
|
158
|
+
{ name: "reason", type: "string", required: true, desc: "Rejection reason; 1 to 72 characters after trimming." }
|
|
159
|
+
],
|
|
160
|
+
risk: "write",
|
|
161
|
+
validate: (ctx) => {
|
|
162
|
+
buildInput4(ctx);
|
|
163
|
+
},
|
|
164
|
+
buildInput: buildInput4
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
// src/commands/te-experiment/approval/withdraw.ts
|
|
168
|
+
function buildInput5(ctx) {
|
|
169
|
+
return {
|
|
170
|
+
project_id: readPositiveInteger(ctx, "project-id"),
|
|
171
|
+
exp_id: readNonEmptyString(ctx, "exp-id"),
|
|
172
|
+
approval_id: readPositiveInteger(ctx, "approval-id")
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
var approvalWithdraw = createExperimentCapabilityCommand({
|
|
176
|
+
resource: "approval",
|
|
177
|
+
command: "withdraw",
|
|
178
|
+
capabilityId: "experiment.approval.withdraw",
|
|
179
|
+
description: "Withdraw the exact pending experiment configuration.",
|
|
180
|
+
helpText: "Read approval get and check can_cancel before withdrawing the exact approval ID.\nWithdrawal preserves the current effective configuration and runtime status.",
|
|
181
|
+
flags: [
|
|
182
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Positive integer project ID." },
|
|
183
|
+
{ name: "exp-id", type: "string", required: true, desc: "Existing experiment ID." },
|
|
184
|
+
{ name: "approval-id", type: "number", required: true, desc: "Exact positive integer approval ID from approval get; never guess or reuse a stale ID." }
|
|
185
|
+
],
|
|
186
|
+
risk: "write",
|
|
187
|
+
validate: (ctx) => {
|
|
188
|
+
buildInput5(ctx);
|
|
189
|
+
},
|
|
190
|
+
buildInput: buildInput5
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
// src/commands/te-experiment/approver/list.ts
|
|
194
|
+
function buildInput6(ctx) {
|
|
195
|
+
return {
|
|
196
|
+
project_id: readPositiveInteger(ctx, "project-id")
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
var approverList = createExperimentCapabilityCommand({
|
|
200
|
+
resource: "approver",
|
|
201
|
+
command: "list",
|
|
202
|
+
capabilityId: "experiment.approver.list",
|
|
203
|
+
description: "List project experiment approvers and their eligibility.",
|
|
204
|
+
flags: [
|
|
205
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Positive integer project ID." }
|
|
206
|
+
],
|
|
207
|
+
risk: "read",
|
|
208
|
+
validate: (ctx) => {
|
|
209
|
+
buildInput6(ctx);
|
|
210
|
+
},
|
|
211
|
+
buildInput: buildInput6
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
// src/commands/te-experiment/approver/add.ts
|
|
215
|
+
function buildInput7(ctx) {
|
|
216
|
+
const value = ctx.json("approvers");
|
|
217
|
+
if (!Array.isArray(value) || value.length < 1 || value.length > 10 || !value.every((item) => typeof item === "string" && item.trim() !== "")) {
|
|
218
|
+
throw new CliValidationError("Flag --approvers must contain 1 to 10 non-empty open IDs");
|
|
219
|
+
}
|
|
220
|
+
return {
|
|
221
|
+
project_id: readPositiveInteger(ctx, "project-id"),
|
|
222
|
+
approvers: value.map((item) => item.trim())
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
var approverAdd = createExperimentCapabilityCommand({
|
|
226
|
+
resource: "approver",
|
|
227
|
+
command: "add",
|
|
228
|
+
capabilityId: "experiment.approver.add",
|
|
229
|
+
description: "Add eligible project experiment approvers.",
|
|
230
|
+
helpText: "Adds 1 to 10 verified project member open IDs. Experiment management permission is required.\nExperiment approvers are independent of Engage task approvers.",
|
|
231
|
+
flags: [
|
|
232
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Positive integer project ID." },
|
|
233
|
+
{ name: "approvers", type: "json", required: true, desc: "JSON array of 1 to 10 eligible project member open IDs." }
|
|
234
|
+
],
|
|
235
|
+
risk: "write",
|
|
236
|
+
validate: (ctx) => {
|
|
237
|
+
buildInput7(ctx);
|
|
238
|
+
},
|
|
239
|
+
buildInput: buildInput7
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
// src/commands/te-experiment/approver/delete.ts
|
|
243
|
+
function buildInput8(ctx) {
|
|
244
|
+
return {
|
|
245
|
+
project_id: readPositiveInteger(ctx, "project-id"),
|
|
246
|
+
approver: readNonEmptyString(ctx, "approver")
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
var approverDelete = createExperimentCapabilityCommand({
|
|
250
|
+
resource: "approver",
|
|
251
|
+
command: "delete",
|
|
252
|
+
capabilityId: "experiment.approver.delete",
|
|
253
|
+
description: "Remove one project experiment approver.",
|
|
254
|
+
helpText: "Requires experiment management permission. Removing a member preserves approval history.",
|
|
255
|
+
flags: [
|
|
256
|
+
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Positive integer project ID." },
|
|
257
|
+
{ name: "approver", type: "string", required: true, desc: "Existing experiment approver open ID to remove." }
|
|
258
|
+
],
|
|
259
|
+
risk: "high-risk-write",
|
|
260
|
+
validate: (ctx) => {
|
|
261
|
+
buildInput8(ctx);
|
|
262
|
+
},
|
|
263
|
+
buildInput: buildInput8
|
|
264
|
+
});
|
|
265
|
+
|
|
47
266
|
// src/commands/te-experiment/bucket/list.ts
|
|
48
267
|
var bucketList = createExperimentCapabilityCommand({
|
|
49
268
|
resource: "bucket",
|
|
@@ -76,7 +295,7 @@ var experimentBatchDelete = createExperimentCapabilityCommand({
|
|
|
76
295
|
});
|
|
77
296
|
|
|
78
297
|
// src/commands/te-experiment/experiment/conflict-check.ts
|
|
79
|
-
function
|
|
298
|
+
function buildInput9(ctx) {
|
|
80
299
|
const input = {
|
|
81
300
|
project_id: ctx.num("project-id"),
|
|
82
301
|
feature_key_list: readRequiredStringArray(ctx, "feature-key-list"),
|
|
@@ -118,7 +337,7 @@ var experimentConflictCheck = createExperimentCapabilityCommand({
|
|
|
118
337
|
throw new Error("Flag --traffic-layer-id is required");
|
|
119
338
|
}
|
|
120
339
|
},
|
|
121
|
-
buildInput
|
|
340
|
+
buildInput: buildInput9
|
|
122
341
|
});
|
|
123
342
|
|
|
124
343
|
// src/commands/te-experiment/experiment/get.ts
|
|
@@ -136,7 +355,7 @@ var experimentGet = createExperimentCapabilityCommand({
|
|
|
136
355
|
});
|
|
137
356
|
|
|
138
357
|
// src/commands/te-experiment/experiment/list.ts
|
|
139
|
-
function
|
|
358
|
+
function buildInput10(ctx) {
|
|
140
359
|
const input = {
|
|
141
360
|
project_id: ctx.num("project-id")
|
|
142
361
|
};
|
|
@@ -179,7 +398,7 @@ var experimentList = createExperimentCapabilityCommand({
|
|
|
179
398
|
}
|
|
180
399
|
],
|
|
181
400
|
risk: "read",
|
|
182
|
-
buildInput:
|
|
401
|
+
buildInput: buildInput10
|
|
183
402
|
});
|
|
184
403
|
|
|
185
404
|
// src/commands/te-experiment/experiment/list-archived.ts
|
|
@@ -195,7 +414,7 @@ var experimentListArchived = createExperimentCapabilityCommand({
|
|
|
195
414
|
|
|
196
415
|
// src/commands/te-experiment/experiment/manage.ts
|
|
197
416
|
var targetStatuses = ["draft", "testing", "pending", "running", "paused", "ended", "archive"];
|
|
198
|
-
function
|
|
417
|
+
function buildInput11(ctx) {
|
|
199
418
|
const input = {
|
|
200
419
|
project_id: ctx.num("project-id"),
|
|
201
420
|
exp_id: ctx.str("exp-id"),
|
|
@@ -209,7 +428,7 @@ var experimentManage = createExperimentCapabilityCommand({
|
|
|
209
428
|
command: "manage",
|
|
210
429
|
capabilityId: "experiment.experiment.manage",
|
|
211
430
|
description: "Update an experiment status.",
|
|
212
|
-
helpText: "
|
|
431
|
+
helpText: "On approval-enabled servers, draft to pending submits the saved draft for approval.\nThe pending submission path also works on older servers. Use approval get only when supported.\nSubmit once; success does not mean running. Verify runtime status 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
432
|
flags: [
|
|
214
433
|
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
|
|
215
434
|
{ name: "exp-id", type: "string", required: true, desc: "Experiment ID." },
|
|
@@ -223,7 +442,7 @@ var experimentManage = createExperimentCapabilityCommand({
|
|
|
223
442
|
throw new Error(`Flag --target-status must be one of: ${targetStatuses.join(", ")}`);
|
|
224
443
|
}
|
|
225
444
|
},
|
|
226
|
-
buildInput:
|
|
445
|
+
buildInput: buildInput11
|
|
227
446
|
});
|
|
228
447
|
|
|
229
448
|
// src/commands/te-experiment/experiment/ready-check.ts
|
|
@@ -249,7 +468,7 @@ function readTimestamp(ctx, name) {
|
|
|
249
468
|
}
|
|
250
469
|
return value;
|
|
251
470
|
}
|
|
252
|
-
function
|
|
471
|
+
function buildInput12(ctx) {
|
|
253
472
|
const req = { ...readRequiredObject(ctx, "req") };
|
|
254
473
|
const startTime = readTimestamp(ctx, "start-time");
|
|
255
474
|
const fixedEndTime = readTimestamp(ctx, "fixed-end-time");
|
|
@@ -272,7 +491,7 @@ var experimentSave = createExperimentCapabilityCommand({
|
|
|
272
491
|
command: "save",
|
|
273
492
|
capabilityId: "experiment.experiment.save",
|
|
274
493
|
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
|
|
494
|
+
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.\nDelivery changes to submitted experiments enter approval on approval-enabled servers.\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
495
|
flags: [
|
|
277
496
|
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
|
|
278
497
|
{
|
|
@@ -286,9 +505,9 @@ var experimentSave = createExperimentCapabilityCommand({
|
|
|
286
505
|
],
|
|
287
506
|
risk: "write",
|
|
288
507
|
validate: (ctx) => {
|
|
289
|
-
|
|
508
|
+
buildInput12(ctx);
|
|
290
509
|
},
|
|
291
|
-
buildInput:
|
|
510
|
+
buildInput: buildInput12
|
|
292
511
|
});
|
|
293
512
|
|
|
294
513
|
// src/commands/te-experiment/experiment/update-group.ts
|
|
@@ -415,7 +634,7 @@ function readMetrics(ctx) {
|
|
|
415
634
|
}
|
|
416
635
|
return value;
|
|
417
636
|
}
|
|
418
|
-
function
|
|
637
|
+
function buildInput13(ctx) {
|
|
419
638
|
const expId = ctx.str("exp-id").trim();
|
|
420
639
|
const groups = readGroups(ctx);
|
|
421
640
|
if (expId) {
|
|
@@ -436,7 +655,15 @@ function buildInput5(ctx) {
|
|
|
436
655
|
};
|
|
437
656
|
if (expId) req.expId = expId;
|
|
438
657
|
const endTime = ctx.str("end-time");
|
|
658
|
+
const clearEndTime = ctx.bool("clear-end-time");
|
|
659
|
+
if (clearEndTime && !expId) {
|
|
660
|
+
throw new Error("Flag --clear-end-time requires --exp-id");
|
|
661
|
+
}
|
|
662
|
+
if (clearEndTime && endTime !== "") {
|
|
663
|
+
throw new Error("Flags --clear-end-time and --end-time cannot be combined");
|
|
664
|
+
}
|
|
439
665
|
if (endTime !== "") req.endTime = endTime;
|
|
666
|
+
if (clearEndTime) req.clearEndTime = true;
|
|
440
667
|
const groupId = ctx.str("business-group-id");
|
|
441
668
|
if (groupId !== "") req.groupId = groupId;
|
|
442
669
|
const supposition = ctx.str("supposition");
|
|
@@ -450,14 +677,16 @@ var externalExperimentSaveSubmit = createExperimentCapabilityCommand({
|
|
|
450
677
|
command: "save-submit",
|
|
451
678
|
capabilityId: "experiment.experiment.save-submit",
|
|
452
679
|
description: "Create or update and submit an external experiment without Feature or traffic-layer configuration.",
|
|
680
|
+
helpText: "On approval-enabled servers, initial submission and delivery changes enter approval.\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
681
|
flags: [
|
|
454
682
|
{ name: "project-id", type: "number", required: true, alias: "p", desc: "Numeric project ID." },
|
|
455
683
|
{ name: "exp-id", type: "string", desc: "Existing external experiment ID; omit to create." },
|
|
456
684
|
{ name: "exp-name", type: "string", required: true, desc: "External experiment name." },
|
|
457
685
|
{ name: "business-group-id", type: "string", desc: "Optional business group ID." },
|
|
458
686
|
{ 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
|
|
687
|
+
{ 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." },
|
|
688
|
+
{ 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." },
|
|
689
|
+
{ 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
690
|
{ name: "supposition", type: "string", desc: "Optional experiment hypothesis." },
|
|
462
691
|
{ name: "description", type: "string", desc: "Optional experiment description." },
|
|
463
692
|
{
|
|
@@ -475,9 +704,9 @@ var externalExperimentSaveSubmit = createExperimentCapabilityCommand({
|
|
|
475
704
|
],
|
|
476
705
|
risk: "write",
|
|
477
706
|
validate: (ctx) => {
|
|
478
|
-
|
|
707
|
+
buildInput13(ctx);
|
|
479
708
|
},
|
|
480
|
-
buildInput:
|
|
709
|
+
buildInput: buildInput13
|
|
481
710
|
});
|
|
482
711
|
|
|
483
712
|
// src/commands/te-experiment/feature/batch-delete.ts
|
|
@@ -498,7 +727,7 @@ var featureBatchDelete = createExperimentCapabilityCommand({
|
|
|
498
727
|
});
|
|
499
728
|
|
|
500
729
|
// src/commands/te-experiment/feature/get.ts
|
|
501
|
-
function
|
|
730
|
+
function buildInput14(ctx) {
|
|
502
731
|
const input = {
|
|
503
732
|
project_id: ctx.num("project-id"),
|
|
504
733
|
feature_key: ctx.str("feature-key")
|
|
@@ -517,7 +746,7 @@ var featureGet = createExperimentCapabilityCommand({
|
|
|
517
746
|
{ name: "version", type: "string", required: false, desc: "Feature version ID." }
|
|
518
747
|
],
|
|
519
748
|
risk: "read",
|
|
520
|
-
buildInput:
|
|
749
|
+
buildInput: buildInput14
|
|
521
750
|
});
|
|
522
751
|
|
|
523
752
|
// src/commands/te-experiment/feature/list.ts
|
|
@@ -672,7 +901,7 @@ var featureWhitelistBatchDelete = createExperimentCapabilityCommand({
|
|
|
672
901
|
});
|
|
673
902
|
|
|
674
903
|
// src/commands/te-experiment/feature-whitelist/list.ts
|
|
675
|
-
function
|
|
904
|
+
function buildInput15(ctx) {
|
|
676
905
|
return {
|
|
677
906
|
project_id: ctx.num("project-id"),
|
|
678
907
|
feature_key: ctx.str("feature-key")
|
|
@@ -688,11 +917,11 @@ var featureWhitelistList = createExperimentCapabilityCommand({
|
|
|
688
917
|
{ name: "feature-key", type: "string", required: true, desc: "Existing Feature key." }
|
|
689
918
|
],
|
|
690
919
|
risk: "read",
|
|
691
|
-
buildInput:
|
|
920
|
+
buildInput: buildInput15
|
|
692
921
|
});
|
|
693
922
|
|
|
694
923
|
// src/commands/te-experiment/feature-whitelist/save.ts
|
|
695
|
-
function
|
|
924
|
+
function buildInput16(ctx) {
|
|
696
925
|
const ruleId = ctx.str("rule-id").trim();
|
|
697
926
|
const status = ctx.str("status").trim() || "draft";
|
|
698
927
|
if (!["draft", "enable", "disable"].includes(status)) {
|
|
@@ -729,9 +958,9 @@ var featureWhitelistSave = createExperimentCapabilityCommand({
|
|
|
729
958
|
],
|
|
730
959
|
risk: "write",
|
|
731
960
|
validate: (ctx) => {
|
|
732
|
-
|
|
961
|
+
buildInput16(ctx);
|
|
733
962
|
},
|
|
734
|
-
buildInput:
|
|
963
|
+
buildInput: buildInput16
|
|
735
964
|
});
|
|
736
965
|
|
|
737
966
|
// src/commands/te-experiment/feature-whitelist/update-status.ts
|
|
@@ -1130,6 +1359,14 @@ var trafficLayerSave = createExperimentCapabilityCommand({
|
|
|
1130
1359
|
// src/commands/te-experiment/index.ts
|
|
1131
1360
|
registerCapabilityGatewayRoute("experiment", { gatewayDomain: "engage" });
|
|
1132
1361
|
var commands = [
|
|
1362
|
+
approvalGet,
|
|
1363
|
+
approvalSubmit,
|
|
1364
|
+
approvalApprove,
|
|
1365
|
+
approvalReject,
|
|
1366
|
+
approvalWithdraw,
|
|
1367
|
+
approverList,
|
|
1368
|
+
approverAdd,
|
|
1369
|
+
approverDelete,
|
|
1133
1370
|
experimentSave,
|
|
1134
1371
|
experimentList,
|
|
1135
1372
|
experimentListArchived,
|
|
@@ -1170,6 +1407,14 @@ var commands = [
|
|
|
1170
1407
|
];
|
|
1171
1408
|
var te_experiment_default = commands;
|
|
1172
1409
|
export {
|
|
1410
|
+
approvalApprove,
|
|
1411
|
+
approvalGet,
|
|
1412
|
+
approvalReject,
|
|
1413
|
+
approvalSubmit,
|
|
1414
|
+
approvalWithdraw,
|
|
1415
|
+
approverAdd,
|
|
1416
|
+
approverDelete,
|
|
1417
|
+
approverList,
|
|
1173
1418
|
bucketList,
|
|
1174
1419
|
te_experiment_default as default,
|
|
1175
1420
|
experimentBatchDelete,
|
|
@@ -2,19 +2,19 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
kbApi,
|
|
4
4
|
kbUpload
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FCAA7I2D.js";
|
|
6
6
|
import {
|
|
7
7
|
TeAgentApiError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5M5LBRR3.js";
|
|
9
9
|
import {
|
|
10
10
|
printError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3ULDJJTZ.js";
|
|
12
12
|
import {
|
|
13
13
|
CapabilityGatewayError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4XKTRCRK.js";
|
|
15
15
|
import "./chunk-Y74WTIKJ.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-DWBYNGSR.js";
|
|
17
|
+
import "./chunk-HTZ2MLYA.js";
|
|
18
18
|
import "./chunk-4PSTYEG5.js";
|
|
19
19
|
import {
|
|
20
20
|
CliApiError,
|
|
@@ -1366,12 +1366,19 @@ var schema = {
|
|
|
1366
1366
|
|
|
1367
1367
|
// src/commands/te-kb/status.ts
|
|
1368
1368
|
var API_PATH10 = "/agent/api/external/knowledge-bases/status";
|
|
1369
|
+
function getRunId(ctx) {
|
|
1370
|
+
const value = ctx.str("run-id");
|
|
1371
|
+
if (value && !value.trim()) throw new Error("--run-id must not be blank.");
|
|
1372
|
+
return value.trim();
|
|
1373
|
+
}
|
|
1369
1374
|
function buildBody6(ctx) {
|
|
1370
1375
|
const body4 = {
|
|
1371
1376
|
name: ctx.str("name")
|
|
1372
1377
|
};
|
|
1373
1378
|
const scope = getExternalKnowledgeBaseTargetScope(ctx);
|
|
1374
1379
|
if (scope) body4.scope = scope;
|
|
1380
|
+
const runId = getRunId(ctx);
|
|
1381
|
+
if (runId) body4.runId = runId;
|
|
1375
1382
|
return body4;
|
|
1376
1383
|
}
|
|
1377
1384
|
var status = {
|
|
@@ -1380,11 +1387,13 @@ var status = {
|
|
|
1380
1387
|
description: "Query knowledge base status.",
|
|
1381
1388
|
flags: [
|
|
1382
1389
|
{ name: "name", type: "string", required: true, desc: "Knowledge base name" },
|
|
1383
|
-
{ name: "scope", type: "string", required: false, desc: "Exact knowledge base scope: personal | company (omit for personal \u2192 company fallback)" }
|
|
1390
|
+
{ name: "scope", type: "string", required: false, desc: "Exact knowledge base scope: personal | company (omit for personal \u2192 company fallback)" },
|
|
1391
|
+
{ name: "run-id", type: "string", required: false, desc: "Exact compile run ID returned by +compile; returns compileRun instead of aggregate KB status" }
|
|
1384
1392
|
],
|
|
1385
1393
|
risk: "read",
|
|
1386
1394
|
validate: (ctx) => {
|
|
1387
1395
|
getExternalKnowledgeBaseTargetScope(ctx);
|
|
1396
|
+
getRunId(ctx);
|
|
1388
1397
|
},
|
|
1389
1398
|
dryRun: (ctx) => ({
|
|
1390
1399
|
method: "POST",
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
postToMainApp,
|
|
13
13
|
putToMainApp,
|
|
14
14
|
uploadToMainApp
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5M5LBRR3.js";
|
|
16
16
|
import "./chunk-Y74WTIKJ.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-HTZ2MLYA.js";
|
|
18
18
|
import {
|
|
19
19
|
isAeSandboxRuntime,
|
|
20
20
|
readSandboxCliTokenEntry,
|
|
@@ -2,15 +2,15 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
getAuthHeaders,
|
|
4
4
|
kbApi
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FCAA7I2D.js";
|
|
6
6
|
import {
|
|
7
7
|
printError,
|
|
8
8
|
printOutput
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-3ULDJJTZ.js";
|
|
10
|
+
import "./chunk-4XKTRCRK.js";
|
|
11
11
|
import "./chunk-Y74WTIKJ.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-DWBYNGSR.js";
|
|
13
|
+
import "./chunk-HTZ2MLYA.js";
|
|
14
14
|
import "./chunk-4PSTYEG5.js";
|
|
15
15
|
import {
|
|
16
16
|
externalCliTokenRequestOptions,
|