@thinkingai/ae-cli 6.0.30 → 6.0.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 +8 -9
- package/README.zh.md +8 -9
- package/dist/{auth-7TQRGLBC.js → auth-7H3HAAJ3.js} +10 -10
- package/dist/{capability-KVA55RMK.js → capability-QW4AVJHI.js} +49 -10
- package/dist/{capability-LKHLZQPD.js → capability-SCRFGODD.js} +49 -10
- package/dist/{chunk-GWZ5MYWE.js → chunk-6LEYLOV3.js} +25 -4
- package/dist/chunk-7OLGDQQ2.js +71 -0
- package/dist/{chunk-THBBNYXI.js → chunk-DYOS6YY7.js} +100 -62
- package/dist/{chunk-OJR23CIK.js → chunk-I4A62X3N.js} +100 -61
- package/dist/{chunk-7QQ4233A.js → chunk-PKRD2IEM.js} +25 -4
- package/dist/{chunk-CWZUGF2J.js → chunk-PTE56QPL.js} +15 -0
- package/dist/chunk-TBHBYKXZ.js +71 -0
- package/dist/{chunk-ZAOL36CG.js → chunk-TNW2CI4W.js} +46 -30
- package/dist/{config-ZVPARN4R.js → config-7UZWDE74.js} +25 -25
- package/dist/index.js +182 -63
- package/dist/{metadata-6CCFV4K5.js → metadata-BFDL6RUK.js} +6 -43
- package/dist/{metadata-PDOIWH5O.js → metadata-FCLDBXX2.js} +6 -43
- package/dist/{raw-OHSUK42D.js → raw-CN542NGT.js} +8 -6
- package/dist/{sync-ULT5SECP.js → sync-ERNHDPB5.js} +1 -1
- package/dist/{te-agent-FAIBM3SA.js → te-agent-FCCWUDTJ.js} +1 -1
- package/dist/te-analysis-PUVF5IF4.js +5736 -0
- package/dist/te-analysis-UJDOKPAN.js +5736 -0
- package/dist/te-common-VUX3VOXZ.js +60 -0
- package/dist/te-common-XLAGWNIV.js +60 -0
- package/dist/{te-community-6A7LKYUH.js → te-community-PEZ2VEF7.js} +1 -1
- package/dist/{te-community-GMWFGILT.js → te-community-TSKJ652U.js} +1 -1
- package/dist/{te-dataops-Z53CTG2U.js → te-dataops-F36T656A.js} +32 -12
- package/dist/{te-dataops-6LIPYNGH.js → te-dataops-ZNJBQ6VT.js} +33 -12
- package/dist/te-engage-K4AEUPK5.js +3894 -0
- package/dist/te-engage-QBCCME22.js +3894 -0
- package/dist/{te-kb-NT33UHAE.js → te-kb-AYCODNU6.js} +56 -17
- package/dist/{te-meta-PKT27OTN.js → te-meta-ARDIW3YI.js} +4 -237
- package/dist/{te-meta-FADFLTDM.js → te-meta-UUROEODR.js} +4 -237
- package/dist/{te-team-RG75PR5D.js → te-team-OKCOX7OE.js} +5 -5
- package/package.json +15 -7
- package/skills/ae-agent/SKILL.md +6 -8
- package/skills/ae-agent/references/accept-skill-share.md +2 -2
- package/skills/ae-agent/references/add-attachment.md +3 -3
- package/skills/ae-agent/references/add-mcp.md +2 -3
- package/skills/ae-agent/references/add-model.md +3 -5
- package/skills/ae-agent/references/add-skill.md +2 -3
- package/skills/ae-agent/references/approve-skill.md +2 -2
- package/skills/ae-agent/references/auto-provision-mcp-credentials.md +3 -3
- package/skills/ae-agent/references/cancel-skill-submission.md +2 -2
- package/skills/ae-agent/references/copy-skill.md +3 -3
- package/skills/ae-agent/references/create-agent.md +3 -4
- package/skills/ae-agent/references/create-automation.md +5 -9
- package/skills/ae-agent/references/del-agent.md +3 -2
- package/skills/ae-agent/references/del-attachment.md +3 -2
- package/skills/ae-agent/references/del-mcp.md +3 -2
- package/skills/ae-agent/references/del-model.md +3 -2
- package/skills/ae-agent/references/del-skill-asset.md +3 -3
- package/skills/ae-agent/references/del-skill-reference.md +3 -3
- package/skills/ae-agent/references/del-skill-script.md +3 -3
- package/skills/ae-agent/references/del-skill.md +3 -2
- package/skills/ae-agent/references/edit-skill.md +4 -4
- package/skills/ae-agent/references/mcp-auth-disconnect.md +2 -2
- package/skills/ae-agent/references/mcp-auth-start.md +3 -3
- package/skills/ae-agent/references/reject-skill-share.md +2 -2
- package/skills/ae-agent/references/reject-skill.md +2 -2
- package/skills/ae-agent/references/rescan-skills.md +2 -2
- package/skills/ae-agent/references/set-mcp-credential.md +3 -3
- package/skills/ae-agent/references/set-mcp-meta.md +2 -2
- package/skills/ae-agent/references/set-skill-meta.md +2 -2
- package/skills/ae-agent/references/share-skill.md +3 -3
- package/skills/ae-agent/references/submit-skill.md +3 -3
- package/skills/ae-agent/references/toggle-mcp.md +3 -3
- package/skills/ae-agent/references/toggle-model.md +3 -3
- package/skills/ae-agent/references/toggle-skill.md +3 -3
- package/skills/ae-agent/references/update-agent.md +2 -2
- package/skills/ae-agent/references/update-automation.md +6 -8
- package/skills/ae-agent/references/update-mcp.md +4 -4
- package/skills/ae-agent/references/update-model.md +2 -3
- package/skills/ae-agent/references/upload-skill-asset.md +3 -3
- package/skills/ae-agent/references/upload-skill-reference.md +3 -3
- package/skills/ae-agent/references/upload-skill-script.md +3 -3
- package/skills/ae-agent/references/upload-skill.md +6 -7
- package/skills/ae-analysis/SKILL.md +108 -512
- package/skills/ae-analysis/references/adhoc_export.md +68 -0
- package/skills/ae-analysis/references/adhoc_run.md +54 -0
- package/skills/ae-analysis/references/ai_models.md +475 -0
- package/skills/ae-analysis/references/analysis_data_retrieval.md +101 -0
- package/skills/ae-analysis/references/analysis_drilldown_contract.md +93 -0
- package/skills/ae-analysis/references/analysis_gateway_assets.md +73 -12
- package/skills/ae-analysis/references/analysis_interpretation.md +38 -0
- package/skills/ae-analysis/references/artifact_download.md +13 -7
- package/skills/ae-analysis/references/asset_abnormal_get.md +5 -5
- package/skills/ae-analysis/references/asset_abnormal_list.md +5 -5
- package/skills/ae-analysis/references/asset_authentication_list.md +5 -5
- package/skills/ae-analysis/references/asset_authentication_update.md +6 -6
- package/skills/ae-analysis/references/asset_batch_dashboard_schedule_freeze.md +26 -0
- package/skills/ae-analysis/references/asset_batch_delete.md +26 -0
- package/skills/ae-analysis/references/asset_batch_disable_auto_backup.md +26 -0
- package/skills/ae-analysis/references/asset_batch_disable_auto_update.md +26 -0
- package/skills/ae-analysis/references/asset_batch_handover.md +26 -0
- package/skills/ae-analysis/references/asset_batch_info_export.md +25 -0
- package/skills/ae-analysis/references/asset_batch_sql_export.md +25 -0
- package/skills/ae-analysis/references/asset_dependency_list.md +30 -0
- package/skills/ae-analysis/references/asset_export.md +30 -0
- package/skills/ae-analysis/references/asset_impact_list.md +30 -0
- package/skills/ae-analysis/references/asset_lineage_get.md +25 -0
- package/skills/ae-analysis/references/asset_list.md +30 -0
- package/skills/ae-analysis/references/asset_query_history_list.md +30 -0
- package/skills/ae-analysis/references/asset_recent_list.md +4 -4
- package/skills/ae-analysis/references/asset_search.md +4 -4
- package/skills/ae-analysis/references/asset_url_get.md +29 -0
- package/skills/ae-analysis/references/audience_models.md +42 -0
- package/skills/ae-analysis/references/batch_create_metadata.md +5 -1
- package/skills/ae-analysis/references/batch_edit_metadata.md +4 -1
- package/skills/ae-analysis/references/bi_panel_copy.md +1 -1
- package/skills/ae-analysis/references/bi_panel_create.md +1 -1
- package/skills/ae-analysis/references/bi_panel_delete.md +2 -0
- package/skills/ae-analysis/references/bi_panel_list.md +4 -2
- package/skills/ae-analysis/references/bi_panel_page_data_export.md +8 -4
- package/skills/ae-analysis/references/bi_panel_page_data_run.md +7 -3
- package/skills/ae-analysis/references/bi_panel_share.md +1 -1
- package/skills/ae-analysis/references/bi_panel_update.md +1 -1
- package/skills/ae-analysis/references/bi_panel_version_publish.md +1 -1
- package/skills/ae-analysis/references/cancel_query.md +4 -4
- package/skills/ae-analysis/references/command_index.md +243 -0
- package/skills/ae-analysis/references/create_alert.md +1 -1
- package/skills/ae-analysis/references/create_entity.md +3 -3
- package/skills/ae-analysis/references/create_project_mark_time.md +2 -1
- package/skills/ae-analysis/references/dashboard_copy.md +1 -1
- package/skills/ae-analysis/references/dashboard_create.md +1 -1
- package/skills/ae-analysis/references/dashboard_daily_report_send.md +1 -1
- package/skills/ae-analysis/references/dashboard_daily_report_update.md +1 -1
- package/skills/ae-analysis/references/dashboard_definition_import.md +1 -1
- package/skills/ae-analysis/references/dashboard_delete.md +2 -0
- package/skills/ae-analysis/references/dashboard_freeze.md +1 -1
- package/skills/ae-analysis/references/dashboard_handover.md +1 -1
- package/skills/ae-analysis/references/dashboard_list.md +4 -2
- package/skills/ae-analysis/references/dashboard_report_add.md +15 -0
- package/skills/ae-analysis/references/dashboard_report_data_export.md +15 -7
- package/skills/ae-analysis/references/dashboard_report_data_run.md +15 -7
- package/skills/ae-analysis/references/dashboard_share.md +11 -2
- package/skills/ae-analysis/references/dashboard_update.md +12 -3
- package/skills/ae-analysis/references/datatable_columns_get.md +2 -2
- package/skills/ae-analysis/references/datatable_influence_list.md +2 -2
- package/skills/ae-analysis/references/datatable_version_get.md +2 -2
- package/skills/ae-analysis/references/datatable_version_list.md +2 -2
- package/skills/ae-analysis/references/delete_alert.md +8 -3
- package/skills/ae-analysis/references/delete_project_mark_times.md +5 -3
- package/skills/ae-analysis/references/delete_track_items.md +4 -3
- package/skills/ae-analysis/references/drilldown_entities_export.md +26 -0
- package/skills/ae-analysis/references/drilldown_entities_run.md +33 -0
- package/skills/ae-analysis/references/drilldown_events_export.md +21 -0
- package/skills/ae-analysis/references/drilldown_events_run.md +23 -0
- package/skills/ae-analysis/references/drilldown_user_events_export.md +23 -0
- package/skills/ae-analysis/references/drilldown_user_events_run.md +34 -0
- package/skills/ae-analysis/references/entity_detail_export.md +33 -0
- package/skills/ae-analysis/references/entity_detail_run.md +57 -0
- package/skills/ae-analysis/references/entity_id_import_options.md +20 -0
- package/skills/ae-analysis/references/event_changelog_list.md +2 -2
- package/skills/ae-analysis/references/event_create.md +4 -4
- package/skills/ae-analysis/references/event_delete.md +5 -4
- package/skills/ae-analysis/references/event_detail_export.md +33 -0
- package/skills/ae-analysis/references/event_detail_run.md +60 -0
- package/skills/ae-analysis/references/event_get.md +2 -2
- package/skills/ae-analysis/references/event_hide_update.md +3 -3
- package/skills/ae-analysis/references/event_influence_list.md +2 -2
- package/skills/ae-analysis/references/event_list.md +12 -4
- package/skills/ae-analysis/references/{super_metadata_export.md → event_property_bundle_export.md} +7 -7
- package/skills/ae-analysis/references/event_property_bundle_import.md +25 -0
- package/skills/ae-analysis/references/event_relation_update.md +4 -4
- package/skills/ae-analysis/references/event_update.md +2 -2
- package/skills/ae-analysis/references/exchange_config_update.md +2 -2
- package/skills/ae-analysis/references/exchange_rate_refresh.md +2 -2
- package/skills/ae-analysis/references/exchange_rule_list.md +2 -2
- package/skills/ae-analysis/references/exchange_rule_update.md +4 -4
- package/skills/ae-analysis/references/exchange_rule_validate.md +4 -4
- package/skills/ae-analysis/references/favorite_add.md +1 -1
- package/skills/ae-analysis/references/favorite_remove.md +1 -1
- package/skills/ae-analysis/references/folder_create.md +2 -3
- package/skills/ae-analysis/references/folder_share.md +2 -3
- package/skills/ae-analysis/references/generate_track_program.md +2 -1
- package/skills/ae-analysis/references/generate_track_sdk_sample.md +2 -1
- package/skills/ae-analysis/references/get_alert.md +4 -0
- package/skills/ae-analysis/references/get_alert_definition_schema.md +1 -0
- package/skills/ae-analysis/references/get_project_config.md +1 -0
- package/skills/ae-analysis/references/get_track_program.md +3 -0
- package/skills/ae-analysis/references/history_tag_batch_refresh.md +19 -0
- package/skills/ae-analysis/references/history_tag_clear.md +13 -0
- package/skills/ae-analysis/references/history_tag_data_drilldown_export.md +15 -0
- package/skills/ae-analysis/references/history_tag_data_drilldown_run.md +13 -0
- package/skills/ae-analysis/references/history_tag_data_export.md +15 -0
- package/skills/ae-analysis/references/history_tag_data_run.md +15 -0
- package/skills/ae-analysis/references/history_tag_list.md +11 -0
- package/skills/ae-analysis/references/history_tag_refresh.md +11 -0
- package/skills/ae-analysis/references/input_file_inspect.md +9 -0
- package/skills/ae-analysis/references/input_file_purpose_list.md +9 -0
- package/skills/ae-analysis/references/input_file_upload.md +11 -0
- package/skills/ae-analysis/references/list_alerts.md +3 -2
- package/skills/ae-analysis/references/list_entities.md +4 -3
- package/skills/ae-analysis/references/list_project_mark_times.md +2 -1
- package/skills/ae-analysis/references/list_project_users.md +1 -0
- package/skills/ae-analysis/references/load_filters.md +3 -0
- package/skills/ae-analysis/references/metric_create.md +20 -6
- package/skills/ae-analysis/references/metric_delete.md +12 -4
- package/skills/ae-analysis/references/metric_get.md +8 -2
- package/skills/ae-analysis/references/metric_list.md +17 -4
- package/skills/ae-analysis/references/metric_update.md +23 -6
- package/skills/ae-analysis/references/operation_record_export.md +25 -0
- package/skills/ae-analysis/references/operation_record_list.md +31 -0
- package/skills/ae-analysis/references/project_access_detail_get.md +23 -0
- package/skills/ae-analysis/references/project_data_power_delete.md +26 -0
- package/skills/ae-analysis/references/project_data_power_get.md +24 -0
- package/skills/ae-analysis/references/project_data_power_list.md +23 -0
- package/skills/ae-analysis/references/project_data_power_upsert.md +24 -0
- package/skills/ae-analysis/references/project_entity_create.md +27 -0
- package/skills/ae-analysis/references/project_entity_delete.md +25 -0
- package/skills/ae-analysis/references/project_entity_event_list.md +24 -0
- package/skills/ae-analysis/references/project_entity_get.md +24 -0
- package/skills/ae-analysis/references/project_entity_list.md +28 -0
- package/skills/ae-analysis/references/project_entity_update.md +28 -0
- package/skills/ae-analysis/references/project_function_list.md +24 -0
- package/skills/ae-analysis/references/project_info_get.md +23 -0
- package/skills/ae-analysis/references/project_info_list.md +26 -0
- package/skills/ae-analysis/references/project_info_update.md +25 -0
- package/skills/ae-analysis/references/project_mark_time_create.md +27 -0
- package/skills/ae-analysis/references/project_mark_time_delete.md +25 -0
- package/skills/ae-analysis/references/project_mark_time_list.md +28 -0
- package/skills/ae-analysis/references/project_mark_time_update.md +28 -0
- package/skills/ae-analysis/references/project_member_add.md +25 -0
- package/skills/ae-analysis/references/project_member_batch_update.md +24 -0
- package/skills/ae-analysis/references/project_member_candidate_list.md +25 -0
- package/skills/ae-analysis/references/project_member_handover_export.md +27 -0
- package/skills/ae-analysis/references/project_member_handover_run.md +24 -0
- package/skills/ae-analysis/references/project_member_import.md +25 -0
- package/skills/ae-analysis/references/project_member_list.md +23 -0
- package/skills/ae-analysis/references/project_member_receiver_list.md +23 -0
- package/skills/ae-analysis/references/project_member_remove.md +26 -0
- package/skills/ae-analysis/references/project_member_update.md +25 -0
- package/skills/ae-analysis/references/project_owner_update.md +27 -0
- package/skills/ae-analysis/references/project_permission_binding_list.md +24 -0
- package/skills/ae-analysis/references/project_receive_status_update.md +25 -0
- package/skills/ae-analysis/references/project_role_delete.md +25 -0
- package/skills/ae-analysis/references/project_role_function_list.md +27 -0
- package/skills/ae-analysis/references/project_role_get.md +23 -0
- package/skills/ae-analysis/references/project_role_list.md +25 -0
- package/skills/ae-analysis/references/project_role_upsert.md +24 -0
- package/skills/ae-analysis/references/project_role_user_list.md +23 -0
- package/skills/ae-analysis/references/project_space_create.md +2 -3
- package/skills/ae-analysis/references/project_space_list.md +3 -1
- package/skills/ae-analysis/references/project_space_share.md +2 -3
- package/skills/ae-analysis/references/project_timezone_get.md +23 -0
- package/skills/ae-analysis/references/project_timezone_overview.md +23 -0
- package/skills/ae-analysis/references/project_timezone_update.md +25 -0
- package/skills/ae-analysis/references/project_user_id_items_update.md +24 -0
- package/skills/ae-analysis/references/property_changelog_list.md +2 -2
- package/skills/ae-analysis/references/property_create.md +4 -4
- package/skills/ae-analysis/references/property_delete.md +5 -4
- package/skills/ae-analysis/references/property_get.md +2 -2
- package/skills/ae-analysis/references/property_hide_update.md +3 -3
- package/skills/ae-analysis/references/property_influence_list.md +2 -2
- package/skills/ae-analysis/references/property_list.md +21 -6
- package/skills/ae-analysis/references/property_related_events.md +2 -2
- package/skills/ae-analysis/references/property_relation_update.md +4 -4
- package/skills/ae-analysis/references/property_update.md +2 -2
- package/skills/ae-analysis/references/public_link_create.md +2 -2
- package/skills/ae-analysis/references/public_link_delete.md +2 -0
- package/skills/ae-analysis/references/public_link_list.md +3 -1
- package/skills/ae-analysis/references/public_link_offline.md +1 -1
- package/skills/ae-analysis/references/public_link_update.md +1 -1
- package/skills/ae-analysis/references/query_cancel.md +1 -1
- package/skills/ae-analysis/references/query_create_result_cluster.md +29 -0
- package/skills/ae-analysis/references/report_abnormal_get.md +15 -0
- package/skills/ae-analysis/references/report_change_log_get.md +15 -0
- package/skills/ae-analysis/references/report_change_log_list.md +15 -0
- package/skills/ae-analysis/references/report_create.md +29 -0
- package/skills/ae-analysis/references/report_data_export.md +37 -0
- package/skills/ae-analysis/references/report_data_run.md +45 -0
- package/skills/ae-analysis/references/report_delete.md +17 -0
- package/skills/ae-analysis/references/report_get.md +23 -0
- package/skills/ae-analysis/references/report_list.md +17 -0
- package/skills/ae-analysis/references/report_list_export.md +15 -0
- package/skills/ae-analysis/references/report_update.md +22 -0
- package/skills/ae-analysis/references/report_version_rollback.md +15 -0
- package/skills/ae-analysis/references/rule_create.md +27 -0
- package/skills/ae-analysis/references/rule_delete.md +26 -0
- package/skills/ae-analysis/references/rule_list.md +24 -0
- package/skills/ae-analysis/references/rule_schema.md +24 -0
- package/skills/ae-analysis/references/rule_update.md +28 -0
- package/skills/ae-analysis/references/run_inspect.md +10 -4
- package/skills/ae-analysis/references/save_track_items.md +4 -1
- package/skills/ae-analysis/references/sql_table_columns.md +20 -0
- package/skills/ae-analysis/references/sql_table_list.md +33 -0
- package/skills/ae-analysis/references/update_alert.md +1 -1
- package/skills/ae-analysis/references/update_project_mark_time.md +4 -3
- package/skills/ae-analysis/references/user_cluster_create.md +17 -0
- package/skills/ae-analysis/references/user_cluster_create_id.md +15 -0
- package/skills/ae-analysis/references/user_cluster_delete.md +13 -0
- package/skills/ae-analysis/references/user_cluster_get.md +15 -0
- package/skills/ae-analysis/references/user_cluster_list.md +15 -0
- package/skills/ae-analysis/references/user_cluster_member_export.md +15 -0
- package/skills/ae-analysis/references/user_cluster_member_list.md +19 -0
- package/skills/ae-analysis/references/user_cluster_models.md +87 -0
- package/skills/ae-analysis/references/user_cluster_refresh.md +13 -0
- package/skills/ae-analysis/references/user_cluster_update.md +15 -0
- package/skills/ae-analysis/references/user_cluster_update_id.md +15 -0
- package/skills/ae-analysis/references/user_tag_create.md +17 -0
- package/skills/ae-analysis/references/user_tag_create_id.md +15 -0
- package/skills/ae-analysis/references/user_tag_delete.md +13 -0
- package/skills/ae-analysis/references/user_tag_get.md +15 -0
- package/skills/ae-analysis/references/user_tag_list.md +17 -0
- package/skills/ae-analysis/references/user_tag_member_export.md +15 -0
- package/skills/ae-analysis/references/user_tag_member_list.md +19 -0
- package/skills/ae-analysis/references/user_tag_models.md +54 -0
- package/skills/ae-analysis/references/user_tag_refresh.md +13 -0
- package/skills/ae-analysis/references/user_tag_update.md +15 -0
- package/skills/ae-analysis/references/user_tag_update_id.md +15 -0
- package/skills/ae-analysis/references/virtual_event_create.md +24 -5
- package/skills/ae-analysis/references/virtual_event_delete.md +5 -4
- package/skills/ae-analysis/references/virtual_event_get.md +2 -2
- package/skills/ae-analysis/references/virtual_property_create.md +34 -6
- package/skills/ae-analysis/references/virtual_property_sql_rule_delete.md +5 -4
- package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +13 -6
- package/skills/ae-analysis-global/SKILL.md +6 -8
- package/skills/ae-analysis-global/references/list_query_clusters.md +7 -6
- package/skills/ae-capability/SKILL.md +68 -15
- package/skills/ae-community/SKILL.md +2 -2
- package/skills/ae-dataops/SKILL.md +1 -1
- package/skills/ae-engage/SKILL.md +233 -10
- package/skills/ae-engage/references/activity-activity-type.md +42 -0
- package/skills/ae-engage/references/activity-activity.md +70 -0
- package/skills/ae-engage/references/activity-approval.md +53 -0
- package/skills/ae-engage/references/activity-task.md +87 -0
- package/skills/ae-engage/references/activity-topic.md +98 -0
- package/skills/ae-engage/references/approval-approver-delete.md +26 -0
- package/skills/ae-engage/references/build-task-save-guide.md +11 -9
- package/skills/ae-engage/references/channel-test-send.md +37 -0
- package/skills/ae-engage/references/channel-touch-limits-batch-update.md +28 -0
- package/skills/ae-engage/references/channel-touch-limits-save.md +37 -0
- package/skills/ae-engage/references/channel-touch-limits-toggle.md +28 -0
- package/skills/ae-engage/references/channel-update-config.md +36 -0
- package/skills/ae-engage/references/channel_touch_limits_list.md +29 -0
- package/skills/ae-engage/references/client-param.md +58 -0
- package/skills/ae-engage/references/common-metric.md +75 -0
- package/skills/ae-engage/references/config-table.md +92 -0
- package/skills/ae-engage/references/engage-scene-config-item.md +69 -0
- package/skills/ae-engage/references/group-list.md +13 -0
- package/skills/ae-engage/references/operation-log-query.md +11 -0
- package/skills/ae-engage/references/preset-event.md +42 -0
- package/skills/ae-engage/references/push-language.md +39 -0
- package/skills/ae-engage/references/push-record-query.md +26 -0
- package/skills/ae-engage/references/save-flow.md +5 -4
- package/skills/ae-engage/references/save-task.md +24 -20
- package/skills/ae-engage/references/scene-config-channel.md +58 -0
- package/skills/ae-engage/references/scene-config-group.md +62 -0
- package/skills/ae-engage/references/scene-config-item.md +68 -0
- package/skills/ae-engage/references/scene-config-metric.md +79 -0
- package/skills/ae-engage/references/scene-config-param.md +72 -0
- package/skills/ae-engage/references/scene-preset-metric.md +45 -0
- package/skills/ae-engage/references/scene-strategy.md +47 -0
- package/skills/ae-engage/references/scene-template.md +71 -0
- package/skills/ae-engage/references/segment-list-query.md +18 -0
- package/skills/ae-engage/references/task-delete.md +14 -0
- package/skills/ae-engage/references/task-operation-log-query.md +23 -0
- package/skills/ae-engage/references/version-list.md +18 -0
- package/skills/ae-engage/references/whitelist.md +72 -0
- package/skills/ae-engage/references/workbench-workbench.md +48 -0
- package/skills/ae-generate-tracking-code/SKILL.md +1 -1
- package/skills/ae-generate-tracking-code/references/snippet-delivery.md +2 -2
- package/skills/ae-generate-tracking-plan/SKILL.md +21 -13
- package/skills/ae-generate-tracking-plan/references/te-api.md +2 -1
- package/skills/ae-kb/SKILL.md +33 -7
- package/skills/ae-metadata/SKILL.md +10 -9
- package/skills/ae-metadata/references/metadata_data_table_csv_delete.md +1 -0
- package/skills/ae-metadata/references/metadata_data_table_csv_write.md +6 -6
- package/skills/ae-metadata/references/metadata_data_table_property_bindings_update.md +2 -2
- package/skills/ae-metadata/references/metadata_data_table_sql_delete.md +1 -0
- package/skills/ae-metadata/references/metadata_data_table_sql_write.md +21 -7
- package/skills/ae-metadata/references/metadata_event_get.md +4 -4
- package/skills/ae-metadata/references/metadata_property_dimension_table_bind_existing.md +4 -4
- package/skills/ae-metadata/references/metadata_property_dimension_table_create_and_bind_csv.md +4 -4
- package/skills/ae-metadata/references/metadata_property_get.md +4 -4
- package/skills/ae-team/SKILL.md +9 -9
- package/skills/ae-team/references/create.md +2 -2
- package/skills/ae-team/references/delete.md +3 -3
- package/skills/ae-team/references/run-cancel.md +3 -3
- package/skills/ae-team/references/run-chat.md +4 -4
- package/skills/ae-team/references/run-reply.md +3 -3
- package/skills/ae-team/references/run-start.md +4 -5
- package/skills/ae-team/references/run-watch.md +1 -1
- package/skills/ae-team/references/update.md +2 -2
- package/dist/chunk-P2JRP6HJ.js +0 -42
- package/dist/chunk-S5XN6KEX.js +0 -42
- package/dist/te-analysis-DDXGM7WM.js +0 -3188
- package/dist/te-analysis-HCDNYI7E.js +0 -3188
- package/dist/te-audience-ECFS4GF4.js +0 -600
- package/dist/te-audience-WO377T2J.js +0 -600
- package/dist/te-common-CFGQXTFV.js +0 -130
- package/dist/te-common-SDB3O2QG.js +0 -130
- package/dist/te-engage-545HJL6J.js +0 -1525
- package/dist/te-engage-M7JQSJDP.js +0 -1525
- package/skills/ae-analysis/references/build_attribution_analysis_qp.md +0 -62
- package/skills/ae-analysis/references/build_cluster_definition.md +0 -62
- package/skills/ae-analysis/references/build_distribution_analysis_qp.md +0 -67
- package/skills/ae-analysis/references/build_entity_details_sql.md +0 -58
- package/skills/ae-analysis/references/build_event_analysis_qp.md +0 -134
- package/skills/ae-analysis/references/build_event_details_sql.md +0 -61
- package/skills/ae-analysis/references/build_funnel_analysis_qp.md +0 -145
- package/skills/ae-analysis/references/build_heat_map_analysis_qp.md +0 -54
- package/skills/ae-analysis/references/build_interval_analysis_qp.md +0 -60
- package/skills/ae-analysis/references/build_path_analysis_qp.md +0 -53
- package/skills/ae-analysis/references/build_prop_analysis_qp.md +0 -124
- package/skills/ae-analysis/references/build_rank_list_analysis_qp.md +0 -63
- package/skills/ae-analysis/references/build_retention_analysis_qp.md +0 -143
- package/skills/ae-analysis/references/build_tag_definition.md +0 -65
- package/skills/ae-analysis/references/copy_dashboard.md +0 -33
- package/skills/ae-analysis/references/create_cluster.md +0 -69
- package/skills/ae-analysis/references/create_dashboard.md +0 -49
- package/skills/ae-analysis/references/create_id_cluster.md +0 -40
- package/skills/ae-analysis/references/create_id_tag.md +0 -39
- package/skills/ae-analysis/references/create_metric.md +0 -62
- package/skills/ae-analysis/references/create_or_update_dashboard_note.md +0 -39
- package/skills/ae-analysis/references/create_public_access_link.md +0 -43
- package/skills/ae-analysis/references/create_report.md +0 -60
- package/skills/ae-analysis/references/create_result_cluster.md +0 -73
- package/skills/ae-analysis/references/create_space.md +0 -34
- package/skills/ae-analysis/references/create_tag.md +0 -61
- package/skills/ae-analysis/references/create_virtual_event.md +0 -64
- package/skills/ae-analysis/references/create_virtual_property.md +0 -69
- package/skills/ae-analysis/references/delete_cluster.md +0 -27
- package/skills/ae-analysis/references/delete_dashboard.md +0 -30
- package/skills/ae-analysis/references/delete_metric.md +0 -27
- package/skills/ae-analysis/references/delete_report.md +0 -27
- package/skills/ae-analysis/references/delete_tag.md +0 -27
- package/skills/ae-analysis/references/drilldown_user_events.md +0 -74
- package/skills/ae-analysis/references/drilldown_users.md +0 -80
- package/skills/ae-analysis/references/freeze_dashboards.md +0 -29
- package/skills/ae-analysis/references/get_analysis_query_schema.md +0 -71
- package/skills/ae-analysis/references/get_bi_panel_detail.md +0 -35
- package/skills/ae-analysis/references/get_cluster_definition_schema.md +0 -53
- package/skills/ae-analysis/references/get_clusters_by_name.md +0 -69
- package/skills/ae-analysis/references/get_filter_schema.md +0 -33
- package/skills/ae-analysis/references/get_groupby_schema.md +0 -33
- package/skills/ae-analysis/references/get_metric.md +0 -38
- package/skills/ae-analysis/references/get_report_definition.md +0 -37
- package/skills/ae-analysis/references/get_resource_url.md +0 -32
- package/skills/ae-analysis/references/get_table_columns.md +0 -37
- package/skills/ae-analysis/references/get_tag_definition_schema.md +0 -49
- package/skills/ae-analysis/references/get_tags_by_name.md +0 -69
- package/skills/ae-analysis/references/list_bi_panels.md +0 -35
- package/skills/ae-analysis/references/list_cluster_members.md +0 -45
- package/skills/ae-analysis/references/list_clusters.md +0 -46
- package/skills/ae-analysis/references/list_dashboards.md +0 -43
- package/skills/ae-analysis/references/list_events.md +0 -46
- package/skills/ae-analysis/references/list_metrics.md +0 -52
- package/skills/ae-analysis/references/list_properties.md +0 -47
- package/skills/ae-analysis/references/list_public_access_links.md +0 -41
- package/skills/ae-analysis/references/list_reports.md +0 -43
- package/skills/ae-analysis/references/list_spaces.md +0 -27
- package/skills/ae-analysis/references/list_tag_members.md +0 -46
- package/skills/ae-analysis/references/list_tags.md +0 -44
- package/skills/ae-analysis/references/move_dashboard.md +0 -33
- package/skills/ae-analysis/references/query_adhoc.md +0 -141
- package/skills/ae-analysis/references/query_bi_panel_data.md +0 -58
- package/skills/ae-analysis/references/query_dashboard_detail.md +0 -35
- package/skills/ae-analysis/references/query_dashboard_report_data.md +0 -63
- package/skills/ae-analysis/references/query_entity_details.md +0 -63
- package/skills/ae-analysis/references/query_event_details.md +0 -66
- package/skills/ae-analysis/references/query_report_data.md +0 -99
- package/skills/ae-analysis/references/refresh_cluster.md +0 -31
- package/skills/ae-analysis/references/refresh_tag.md +0 -31
- package/skills/ae-analysis/references/super_metadata_import.md +0 -24
- package/skills/ae-analysis/references/update_cluster.md +0 -61
- package/skills/ae-analysis/references/update_dashboard.md +0 -45
- package/skills/ae-analysis/references/update_id_cluster.md +0 -36
- package/skills/ae-analysis/references/update_id_tag.md +0 -37
- package/skills/ae-analysis/references/update_metric.md +0 -61
- package/skills/ae-analysis/references/update_public_access_link.md +0 -41
- package/skills/ae-analysis/references/update_report.md +0 -35
- package/skills/ae-analysis/references/update_tag.md +0 -61
- package/skills/ae-analysis-intent/SKILL.md +0 -132
- package/skills/ae-metadata/references/metadata_input_file_upload.md +0 -29
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# analysis +build_attribution_analysis_qp (Build Attribution Analysis QP)
|
|
2
|
-
|
|
3
|
-
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
-
|
|
5
|
-
Domain: **Model Analysis**
|
|
6
|
-
|
|
7
|
-
## Use Cases
|
|
8
|
-
- Build a validated attribution-analysis QP from structured attribution intent.
|
|
9
|
-
- Attribution analysis assigns conversion credit to touchpoint events that preceded a target conversion event.
|
|
10
|
-
- Use in the mandatory builder flow before `+query_adhoc --model_type attribution`.
|
|
11
|
-
- This command builds QP only and does not execute the analysis query.
|
|
12
|
-
|
|
13
|
-
## JSON Rules
|
|
14
|
-
- CLI flags use snake_case, but JSON object keys use camelCase.
|
|
15
|
-
- `--attribution` is a JSON object. Required fields: `targetEvent`, `targetAggregation`, `attributionEvents` (array), `attributionModel`, `window`.
|
|
16
|
-
- `attributionModel` values: `first`=First Touch, `last`=Last Touch, `linear`=Equal credit.
|
|
17
|
-
- `window.unit`: day / hour / minute. `window.value`: 0=same day.
|
|
18
|
-
- Wrap JSON in single quotes in shell commands.
|
|
19
|
-
|
|
20
|
-
## Command Syntax
|
|
21
|
-
```bash
|
|
22
|
-
ae-cli analysis +build_attribution_analysis_qp --project_id <project_id> --time_range '<time_range_json>' --attribution '<attribution_json>'
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Parameters
|
|
26
|
-
| Parameter | Required | Description |
|
|
27
|
-
|---|---|---|
|
|
28
|
-
| `--project_id` / `-p` | Yes | Project ID |
|
|
29
|
-
| `--authenticated_only` | No | Resolve only authenticated assets while building the QP. Do not pass this flag to `+query_adhoc`. |
|
|
30
|
-
| `--time_range` | Yes | Time range JSON |
|
|
31
|
-
| `--attribution` | Yes | Attribution intent JSON |
|
|
32
|
-
|
|
33
|
-
## JSON Shape
|
|
34
|
-
`--attribution` object:
|
|
35
|
-
```json
|
|
36
|
-
{
|
|
37
|
-
"targetEvent": "purchase",
|
|
38
|
-
"targetAggregation": "A101",
|
|
39
|
-
"attributionEvents": [{"event": "click_ad"}, {"event": "view_product"}],
|
|
40
|
-
"attributionModel": "last",
|
|
41
|
-
"window": {"value": 7, "unit": "day"}
|
|
42
|
-
}
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Optional fields in `--attribution`:
|
|
46
|
-
- `targetProperty`: required when targetAggregation is property-based (A103/A104/A106/A107/A108 etc.)
|
|
47
|
-
- `directConversion`: include direct conversions without touchpoints. Defaults to true.
|
|
48
|
-
- `filters`: global filters array
|
|
49
|
-
- `relation`: filter relation (and / or)
|
|
50
|
-
|
|
51
|
-
## Examples
|
|
52
|
-
```bash
|
|
53
|
-
ae-cli analysis +build_attribution_analysis_qp --project_id 3137 --time_range '{"mode":"previous","unit":"day","value":30}' --attribution '{"targetEvent":"purchase","targetAggregation":"A101","attributionEvents":[{"event":"click_ad"}],"attributionModel":"last","window":{"value":7,"unit":"day"}}'
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## Decision Rules
|
|
57
|
-
- Use `--authenticated_only true` only when the user explicitly wants authenticated assets; do not add this flag to `+query_adhoc`.
|
|
58
|
-
- After successful build (`status=generated`), call `+query_adhoc --model_type attribution --qp '<response.qp>'`.
|
|
59
|
-
- If non-generated status, stop and ask user to clarify.
|
|
60
|
-
|
|
61
|
-
## Recommended Chain
|
|
62
|
-
- `+build_attribution_analysis_qp` -> if `status=generated` -> `+query_adhoc --model_type attribution --qp '<response.qp>'`
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# analysis_audience +build_cluster_definition (Build Cluster Definition)
|
|
2
|
-
|
|
3
|
-
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
-
|
|
5
|
-
Domain: **Cluster Management**
|
|
6
|
-
|
|
7
|
-
## Use Cases
|
|
8
|
-
|
|
9
|
-
- Build a cluster definition JSON from structured intent. Call this before `+create_cluster` or `+update_cluster` to generate the `definition` field.
|
|
10
|
-
- For type=condition, event and property names are resolved from project metadata — do not guess.
|
|
11
|
-
- For type=sql, pass the SQL string directly.
|
|
12
|
-
- On success, pass the returned definition to `+create_cluster` or `+update_cluster`.
|
|
13
|
-
|
|
14
|
-
## Required Prerequisites (MUST)
|
|
15
|
-
|
|
16
|
-
- Before calling this command, you must first read and follow these reference docs:
|
|
17
|
-
- [`./get_cluster_definition_schema.md`](./get_cluster_definition_schema.md)
|
|
18
|
-
- [`./list_events.md`](./list_events.md)
|
|
19
|
-
- [`./list_properties.md`](./list_properties.md)
|
|
20
|
-
- Do not construct `--conditions` / `--include_filter` / `--exclude_filter` until the schema has been read and metadata has been verified for the same `project_id`.
|
|
21
|
-
|
|
22
|
-
## Commands
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
ae-cli analysis_audience +build_cluster_definition --project_id <project_id> --type condition --conditions '{}'
|
|
26
|
-
ae-cli analysis_audience +build_cluster_definition --project_id <project_id> --type condition --conditions '{}' --include_filter '{}' --exclude_filter '{}'
|
|
27
|
-
ae-cli analysis_audience +build_cluster_definition --project_id <project_id> --type sql --sql 'SELECT "#user_id" FROM ...'
|
|
28
|
-
ae-cli analysis_audience +build_cluster_definition --dry-run
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Parameters
|
|
32
|
-
|
|
33
|
-
| Parameter | Required | Description |
|
|
34
|
-
| --------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
|
35
|
-
| `--project_id` / `-p` | Yes | Project ID |
|
|
36
|
-
| `--authenticated_only` | No | Resolve only authenticated assets while building the definition. |
|
|
37
|
-
| `--type` | Yes | Cluster type. Supported values: `condition`, `sql` |
|
|
38
|
-
| `--conditions` | No | For type=condition: main condition group JSON (required when type=condition). See `+get_cluster_definition_schema` for the structure. |
|
|
39
|
-
| `--include_filter` | No | For type=condition: global include condition group JSON. |
|
|
40
|
-
| `--exclude_filter` | No | For type=condition: global exclude condition group JSON. |
|
|
41
|
-
| `--sql` | No | For type=sql: SQL query returning a single column named `#user_id`. |
|
|
42
|
-
|
|
43
|
-
## Decision Rules
|
|
44
|
-
- Use `--authenticated_only true` when the definition should only resolve authenticated events/properties/metrics/clusters/tags.
|
|
45
|
-
|
|
46
|
-
- Determine `--type` first, then pass the corresponding parameters.
|
|
47
|
-
- For type=condition, `--conditions` is effectively required; `--include_filter` and `--exclude_filter` are optional global filters.
|
|
48
|
-
- For type=sql, only `--sql` is needed; condition-related parameters are ignored.
|
|
49
|
-
- Event and property names in condition JSON must come from session-verified metadata (`analysis_meta +list_events` / `+list_properties` for the same `project_id`).
|
|
50
|
-
- Do not guess event or property names — always verify against real metadata first.
|
|
51
|
-
- Wrap JSON parameters in single quotes (e.g. `--conditions '{}'`) to avoid shell escaping issues.
|
|
52
|
-
- Run `--dry-run` first to inspect the request mapping before making the actual call.
|
|
53
|
-
|
|
54
|
-
## Next Step on Failure
|
|
55
|
-
|
|
56
|
-
- If required parameters are missing, check that `--project_id` and `--type` are provided.
|
|
57
|
-
- If the returned definition is rejected by `+create_cluster` or `+update_cluster`, re-read `+get_cluster_definition_schema` with `--response_mode examples` and verify metadata names again.
|
|
58
|
-
|
|
59
|
-
## Recommended Chain
|
|
60
|
-
|
|
61
|
-
- `+get_cluster_definition_schema` → (first build/update in session or refresh) `analysis_meta +list_events` → `analysis_meta +list_properties` → `+build_cluster_definition` → `+create_cluster`
|
|
62
|
-
- `+get_cluster_definition_schema` → (first build/update in session or refresh) `analysis_meta +list_events` → `analysis_meta +list_properties` → `+build_cluster_definition` → `+update_cluster`
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
# analysis +build_distribution_analysis_qp (Build Distribution Analysis QP)
|
|
2
|
-
|
|
3
|
-
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
-
|
|
5
|
-
Domain: **Model Analysis**
|
|
6
|
-
|
|
7
|
-
## Use Cases
|
|
8
|
-
- Build a validated distribution-analysis QP from structured distribution metrics.
|
|
9
|
-
- Distribution analysis shows how a metric value is distributed across users or events.
|
|
10
|
-
- Use in the mandatory builder flow before `+query_adhoc --model_type distribution`.
|
|
11
|
-
- This command builds QP only and does not execute the analysis query.
|
|
12
|
-
|
|
13
|
-
## JSON Rules
|
|
14
|
-
- CLI flags use snake_case, but JSON object keys use camelCase.
|
|
15
|
-
- `--distribution_metrics` is a JSON array. Each item requires `event` and `aggregation`.
|
|
16
|
-
- Distribution-specific aggregations: `A200`=count, `A201`=active-days, `A202`=active-hours.
|
|
17
|
-
- Standard aggregations requiring `property`: A103=sum, A104=avg, A106=max, A107=min, A117=median, A119=percentile.
|
|
18
|
-
- Wrap JSON in single quotes in shell commands.
|
|
19
|
-
|
|
20
|
-
## Command Syntax
|
|
21
|
-
```bash
|
|
22
|
-
ae-cli analysis +build_distribution_analysis_qp --project_id <project_id> --time_range '<time_range_json>' --distribution_metrics '<metrics_json>'
|
|
23
|
-
ae-cli analysis +build_distribution_analysis_qp --project_id <project_id> --time_range '<time_range_json>' --distribution_metrics '<metrics_json>' --time_particle_size day --groups '<groups_json>' --filters '<filters_json>' --relation and
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Parameters
|
|
27
|
-
| Parameter | Required | Description |
|
|
28
|
-
|---|---|---|
|
|
29
|
-
| `--project_id` / `-p` | Yes | Project ID |
|
|
30
|
-
| `--authenticated_only` | No | Resolve only authenticated assets while building the QP. Do not pass this flag to `+query_adhoc`. |
|
|
31
|
-
| `--time_range` | Yes | Time range JSON |
|
|
32
|
-
| `--distribution_metrics` | Yes | Distribution metrics JSON array |
|
|
33
|
-
| `--time_particle_size` | No | Time granularity. Allowed values: day, week, month, total. Defaults to day. |
|
|
34
|
-
| `--groups` | No | Optional group-by dimensions JSON array |
|
|
35
|
-
| `--filters` | No | Optional global filters JSON array |
|
|
36
|
-
| `--relation` | No | Filter relation. Supported values: and, or. Default: and. |
|
|
37
|
-
|
|
38
|
-
## JSON Shape
|
|
39
|
-
`--distribution_metrics` array:
|
|
40
|
-
```json
|
|
41
|
-
[{"event":"login","aggregation":"A200"}]
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Each metric item fields:
|
|
45
|
-
- `event` (required): event name
|
|
46
|
-
- `aggregation` (required): aggregation code
|
|
47
|
-
- `property` (optional): required for property-based aggregations
|
|
48
|
-
- `percentile` (optional): percentile value, e.g. 90 for P90. Required when aggregation=A119.
|
|
49
|
-
- `intervalType` (optional): def (auto, default) / user_defined (custom) / discrete (raw value)
|
|
50
|
-
- `quotaIntervalArr` (optional): custom bucket boundaries, e.g. [100,1000,10000]. Required when intervalType=user_defined.
|
|
51
|
-
- `filters` (optional): metric-level filters
|
|
52
|
-
- `relation` (optional): filter relation for metric-level filters
|
|
53
|
-
|
|
54
|
-
## Examples
|
|
55
|
-
```bash
|
|
56
|
-
ae-cli analysis +build_distribution_analysis_qp --project_id 3137 --time_range '{"mode":"previous","unit":"day","value":7}' --distribution_metrics '[{"event":"login","aggregation":"A200"}]'
|
|
57
|
-
|
|
58
|
-
ae-cli analysis +build_distribution_analysis_qp --project_id 3137 --time_range '{"mode":"previous","unit":"day","value":7}' --distribution_metrics '[{"event":"purchase","aggregation":"A103","property":"amount"}]'
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
## Decision Rules
|
|
62
|
-
- Use `--authenticated_only true` only when the user explicitly wants authenticated assets; do not add this flag to `+query_adhoc`.
|
|
63
|
-
- After successful build (`status=generated`), call `+query_adhoc --model_type distribution --qp '<response.qp>'`.
|
|
64
|
-
- If non-generated status, stop and ask user to clarify.
|
|
65
|
-
|
|
66
|
-
## Recommended Chain
|
|
67
|
-
- `+build_distribution_analysis_qp` -> if `status=generated` -> `+query_adhoc --model_type distribution --qp '<response.qp>'`
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# analysis +build_entity_details_sql (Generate Entity Details SQL)
|
|
2
|
-
|
|
3
|
-
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
-
|
|
5
|
-
Domain: **Entity details SQL queries**
|
|
6
|
-
|
|
7
|
-
## Use Cases
|
|
8
|
-
- When constructing `definition`, you must first obtain the cluster schema and fill in the project event/property metadata.
|
|
9
|
-
- Build the SQL for an entity details query. The parameters are the same as `+query_entity_details`, but the tool returns SQL instead of query results.
|
|
10
|
-
- Build the SQL for an entity details query.
|
|
11
|
-
|
|
12
|
-
## Mandatory prerequisites (MUST)
|
|
13
|
-
- Before constructing `--definition` / `--properties`, you must first read and follow these reference documents:
|
|
14
|
-
- [`./get_cluster_definition_schema.md`](./get_cluster_definition_schema.md)
|
|
15
|
-
- [`./list_events.md`](./list_events.md)
|
|
16
|
-
- [`./list_properties.md`](./list_properties.md)
|
|
17
|
-
- Do not generate the final `definition` / `properties` until the documentation review and prerequisite command calls are complete.
|
|
18
|
-
|
|
19
|
-
## Prerequisite call chain (required for constructing definition/properties)
|
|
20
|
-
1. First confirm the cluster type (condition / sql).
|
|
21
|
-
2. Read `get_cluster_definition_schema.md`, then call `ae-cli analysis_audience +get_cluster_definition_schema --cluster_type <condition|sql>` to get the structure.
|
|
22
|
-
3. Read `list_events.md`, then call `ae-cli analysis_meta +list_events --project_id <project_id>`.
|
|
23
|
-
4. Read `list_properties.md`, then call `ae-cli analysis_meta +list_properties --project_id <project_id>`.
|
|
24
|
-
5. Build `definition` (and optional `properties`) from the schema + metadata, then call `+build_entity_details_sql`.
|
|
25
|
-
|
|
26
|
-
## Command
|
|
27
|
-
```bash
|
|
28
|
-
ae-cli analysis +build_entity_details_sql --project_id <project_id> --definition '{}'
|
|
29
|
-
ae-cli analysis +build_entity_details_sql --project_id <project_id> --entity_id 1001 --definition '{}' --properties '{}' --sort_by time --sort_order desc --limit 100 --zone_offset 8
|
|
30
|
-
ae-cli analysis +build_entity_details_sql --dry-run
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Parameters
|
|
34
|
-
| Parameter | Required | Description |
|
|
35
|
-
|---|---|---|
|
|
36
|
-
| `--project_id` / `-p` | Yes | Project ID |
|
|
37
|
-
| `--entity_id` | No | Optional entity ID used in multi-entity scenarios. If omitted, the default user entity is used. |
|
|
38
|
-
| `--definition` | Yes | Cluster definition JSON. MUST call `+get_cluster_definition_schema` first, then fill valid event/property names from `analysis_meta +list_events` / `analysis_meta +list_properties` in the same `project_id`. |
|
|
39
|
-
| `--properties` | No | Optional display properties JSON, for example `[{"columnName":"#user_id","tableType":"0"},{"columnName":"device_id","tableType":"0"}]`. If provided, property names should come from `analysis_meta +list_properties` in the same `project_id`. |
|
|
40
|
-
| `--sort_by` | No | Optional sort field |
|
|
41
|
-
| `--sort_order` | No | Optional sort order. Supported values: asc and desc |
|
|
42
|
-
| `--limit` | No | Optional result limit. Default: 1000, maximum: 10000 |
|
|
43
|
-
| `--zone_offset` | No | Time zone offset. For example, UTC+8 is 8 |
|
|
44
|
-
|
|
45
|
-
## Decision Rules
|
|
46
|
-
- `definition` / `properties` cannot be written from experience alone: they must satisfy both the schema structure and the project metadata constraints.
|
|
47
|
-
- Before calling `list_events` / `list_properties`, you must first study the corresponding reference documents.
|
|
48
|
-
- On the first run, start with only the required parameters (`--project_id`, `--definition`) and add optional parameters after confirming the path works.
|
|
49
|
-
- Wrap JSON parameters in single quotes (for example `--definition '{}'`, `--properties '{}'`) to avoid shell escaping issues.
|
|
50
|
-
- For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
51
|
-
|
|
52
|
-
## Next Steps on Failure
|
|
53
|
-
- If required parameters are missing, fall back to the smallest runnable command and fill them in first (focus on `--project_id` and `--definition`).
|
|
54
|
-
- If `Invalid JSON` appears, first check the schema required fields, then verify whether the event/property names come from metadata query results for the same `project_id`.
|
|
55
|
-
|
|
56
|
-
## Recommended chaining
|
|
57
|
-
- +get_cluster_definition_schema -> analysis_meta +list_events -> analysis_meta +list_properties -> +build_entity_details_sql
|
|
58
|
-
- +query_entity_details -> +query_event_details -> +build_event_details_sql
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
# analysis +build_event_analysis_qp (build event analysis qp)
|
|
2
|
-
|
|
3
|
-
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
-
|
|
5
|
-
Domain: **Model Analysis**
|
|
6
|
-
|
|
7
|
-
## Use Cases
|
|
8
|
-
- Build a validated event-analysis QP from structured intent.
|
|
9
|
-
- Use in the mandatory builder flow before `+query_adhoc --model_type event`.
|
|
10
|
-
- This command builds QP only and does not execute the analysis query.
|
|
11
|
-
- This is the `event` builder in the ten-model guided QP builder set.
|
|
12
|
-
- Use this builder for event-analysis ad hoc requests; do not manually build event QP through `+get_analysis_query_schema`.
|
|
13
|
-
|
|
14
|
-
## JSON Rules
|
|
15
|
-
- CLI flags use snake_case, but JSON object keys use camelCase DTO names.
|
|
16
|
-
- Correct nested keys: `startTime`, `endTime`, `timeRange`, `timeParticleSize`.
|
|
17
|
-
- Wrong nested keys: `start_date`, `start_time`, `startDate` inside examples copied from other APIs.
|
|
18
|
-
- Wrap JSON in single quotes in shell commands.
|
|
19
|
-
- Do not run syntax examples with placeholder JSON. Fill `time_range` and `metrics` with valid nested fields before calling this command.
|
|
20
|
-
- `--dry-run` still requires the same required flags as a real builder call. Never run this command as dry-run without `--project_id`, `--time_range`, and `--metrics`.
|
|
21
|
-
- Do not call `get_analysis_query_schema`, `list_events`, `list_properties`, `list_metrics`, or `get_metric` before this builder for normal ad-hoc analysis. The builder resolves events, properties, and saved metric names internally.
|
|
22
|
-
- Builder commands do not accept `zone_offset`; pass `--zone_offset` to `+query_adhoc` after the builder succeeds.
|
|
23
|
-
- If the request misses `time_range` or `metrics`, stop and ask the user to clarify.
|
|
24
|
-
|
|
25
|
-
## Command Syntax
|
|
26
|
-
```bash
|
|
27
|
-
ae-cli analysis +build_event_analysis_qp --project_id <project_id> --time_range '<valid_time_range_json>' --metrics '<valid_metrics_json_array>'
|
|
28
|
-
ae-cli analysis +build_event_analysis_qp --project_id <project_id> --time_range '<valid_time_range_json>' --metrics '<valid_metrics_json_array>' --time_particle_size day --groups '<valid_groups_json_array>' --filters '<valid_filters_json_array>' --relation and
|
|
29
|
-
ae-cli analysis +build_event_analysis_qp --project_id <project_id> --time_range '<valid_time_range_json>' --metrics '<valid_metrics_json_array>' --dry-run
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Parameters
|
|
33
|
-
| Parameter | Required | Description |
|
|
34
|
-
|---|---|---|
|
|
35
|
-
| `--project_id` / `-p` | Yes | Project ID |
|
|
36
|
-
| `--authenticated_only` | No | Resolve only authenticated assets while building the QP. Do not pass this flag to `+query_adhoc`. |
|
|
37
|
-
| `--time_range` | Yes | Event analysis time range JSON |
|
|
38
|
-
| `--metrics` | Yes | Event metrics JSON array |
|
|
39
|
-
| `--time_particle_size` | No | Time granularity. Default: total |
|
|
40
|
-
| `--groups` | No | Group-by dimensions JSON array |
|
|
41
|
-
| `--filters` | No | Global filters JSON array |
|
|
42
|
-
| `--relation` | No | Filter relation. Supported values: and, or. Default: and |
|
|
43
|
-
|
|
44
|
-
## JSON Shape
|
|
45
|
-
`--time_range` object:
|
|
46
|
-
```json
|
|
47
|
-
{"mode":"start_to_yesterday","startTime":"2021-05-18"}
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
Time range fields:
|
|
51
|
-
| Field | Required | Description |
|
|
52
|
-
|---|---|---|
|
|
53
|
-
| `mode` | Yes | `recent`, `previous`, `custom`, `start_to_today`, `start_to_yesterday` |
|
|
54
|
-
| `unit` | For `recent`/`previous` | `day`, `week`, `month`, `quarter`, `year` |
|
|
55
|
-
| `value` | For `recent`/`previous` | Unit count. `{"mode":"previous","unit":"day","value":1}` means yesterday. |
|
|
56
|
-
| `startTime` | For `custom`/`start_to_*` | `yyyy-MM-dd` or `yyyy-MM-dd HH:mm:ss` |
|
|
57
|
-
| `endTime` | For `custom` only | `yyyy-MM-dd` or `yyyy-MM-dd HH:mm:ss` |
|
|
58
|
-
|
|
59
|
-
`--metrics` array:
|
|
60
|
-
```json
|
|
61
|
-
[{"event":"special_data","aggregation":"user_count"}]
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
Metric fields:
|
|
65
|
-
| Field | Required | Description |
|
|
66
|
-
|---|---|---|
|
|
67
|
-
| `event` | Yes for regular metrics | Event display name, technical name, or remark |
|
|
68
|
-
| `aggregation` | Yes for regular metrics | `total_count`, `user_count`, `per_user_count`, `sum`, `avg`, `avg_per_user`, `max`, `min`, `distinct_count`, `true_count`, `false_count`, `not_empty_count`, `empty_count`, `median`, `percentile`, `variance`, `stddev` |
|
|
69
|
-
| `property` | Required for property aggregations | Required except for `total_count`, `user_count`, and `per_user_count` |
|
|
70
|
-
| `percentile` | Required for `percentile` | Number such as `90` |
|
|
71
|
-
| `filters` | No | Metric-level `FilterRequest[]` |
|
|
72
|
-
| `relation` | No | Relation between metric filters: `and` or `or` |
|
|
73
|
-
| `formula` | For formula metrics | Formula expression. Omit `aggregation` when using formula. |
|
|
74
|
-
| `dependencies` | For formula metrics | Formula dependency array |
|
|
75
|
-
|
|
76
|
-
Saved metric reference:
|
|
77
|
-
- Event analysis builder can resolve a saved metric by name/display name/remark through the metric target field.
|
|
78
|
-
- If the user asks to query an existing metric such as "战斗失败率" or gives a metric identifier/name that should be used as a saved metric, pass it as `{"event":"战斗失败率"}` and omit `aggregation`, `property`, `formula`, and `dependencies`.
|
|
79
|
-
- Do not call `list_metrics` or `get_metric` first only to expand that saved metric. If the builder cannot resolve it, it will return `need_clarification` with candidates.
|
|
80
|
-
|
|
81
|
-
Formula dependency object:
|
|
82
|
-
```json
|
|
83
|
-
{"alias":"starts","event":"battle_start","aggregation":"total_count"}
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
`--groups` array:
|
|
87
|
-
```json
|
|
88
|
-
[{"field":{"name":"账户ID","type":"event_property"}}]
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
`--filters` array:
|
|
92
|
-
```json
|
|
93
|
-
[{"field":{"name":"账户ID","type":"event_property"},"operator":"exists"}]
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
Filter fields:
|
|
97
|
-
| Field | Required | Description |
|
|
98
|
-
|---|---|---|
|
|
99
|
-
| `field.name` | Yes | Field display name, technical name, or remark |
|
|
100
|
-
| `field.type` | Recommended | `event_property`, `user_property`, `cluster`, `tag`; omit only when metadata is unambiguous |
|
|
101
|
-
| `operator` | Yes | `eq`, `neq`, `lt`, `lte`, `gt`, `gte`, `exists`, `not_exists`, `between`, `contains`, `not_contains`, `is_true`, `is_false`, `regex`, `not_regex`, `in_cluster`, `not_in_cluster` |
|
|
102
|
-
| `values` | Depends | Omit for `exists`/`not_exists`/`is_true`/`is_false`; exactly two values for `between`; non-empty array for other value operators |
|
|
103
|
-
|
|
104
|
-
## Examples
|
|
105
|
-
Minimal event user count:
|
|
106
|
-
```bash
|
|
107
|
-
ae-cli analysis +build_event_analysis_qp --project_id 3137 --time_range '{"mode":"previous","unit":"day","value":1}' --metrics '[{"event":"special_data","aggregation":"user_count"}]'
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
Formula metric example:
|
|
111
|
-
```bash
|
|
112
|
-
ae-cli analysis +build_event_analysis_qp --project_id 3137 --time_range '{"mode":"start_to_yesterday","startTime":"2021-05-20"}' --metrics '[{"formula":"battle_lost.A100 / battle_start.A100","dependencies":[{"alias":"battle_lost","event":"battle_lose_rate","aggregation":"total_count"},{"alias":"battle_start","event":"battle_start","aggregation":"total_count"}]}]'
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
Saved metric by name:
|
|
116
|
-
```bash
|
|
117
|
-
ae-cli analysis +build_event_analysis_qp --project_id 3137 --time_range '{"mode":"custom","startTime":"2021-05-20","endTime":"2026-05-26"}' --metrics '[{"event":"战斗失败率"}]'
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
Global OR filters and event-property group:
|
|
121
|
-
```bash
|
|
122
|
-
ae-cli analysis +build_event_analysis_qp --project_id 3137 --time_range '{"mode":"start_to_yesterday","startTime":"2021-05-18"}' --metrics '[{"event":"special_data","aggregation":"user_count"}]' --filters '[{"field":{"name":"账户ID","type":"event_property"},"operator":"exists"},{"field":{"name":"城市","type":"event_property"},"operator":"exists"}]' --relation or --groups '[{"field":{"name":"账户ID","type":"event_property"}}]'
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
## Decision Rules
|
|
126
|
-
- Use `--authenticated_only true` only when the user explicitly wants authenticated assets; do not add this flag to `+query_adhoc`.
|
|
127
|
-
- After successful build, call `+query_adhoc --model_type event --qp '<response.qp>'`.
|
|
128
|
-
- If build returns non-generated status, stop and ask user to clarify; do not call `+query_adhoc`.
|
|
129
|
-
- Wrap JSON parameters in single quotes to avoid shell escaping issues.
|
|
130
|
-
- Do not pre-query metrics or metadata. If the user provides a metric name, event name, property name, or formula, pass that structured intent to the builder and let it resolve.
|
|
131
|
-
- If the user gave a time zone, keep it for `+query_adhoc --zone_offset`; do not put it in the builder JSON.
|
|
132
|
-
|
|
133
|
-
## Recommended Chaining
|
|
134
|
-
- `+build_event_analysis_qp` -> if `status=generated` -> `+query_adhoc --model_type event --qp '<response.qp>'`
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# analysis +build_event_details_sql (generate event detail SQL)
|
|
2
|
-
|
|
3
|
-
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
-
|
|
5
|
-
Domain: **Event Detail SQL Queries**
|
|
6
|
-
|
|
7
|
-
## Use Cases
|
|
8
|
-
- When building `filters` / `properties`, first obtain the filter schema and the project's real event/property metadata.
|
|
9
|
-
- Build the SQL for an event details query. The parameters are the same as `+query_event_details`, but the tool returns SQL instead of query results.
|
|
10
|
-
- Build the SQL for an event details query.
|
|
11
|
-
|
|
12
|
-
## Mandatory Prerequisites (MUST)
|
|
13
|
-
- Before building `--filters` / `--properties`, you must first read and follow the following reference docs:
|
|
14
|
-
- [`./get_filter_schema.md`](./get_filter_schema.md)
|
|
15
|
-
- [`./list_events.md`](./list_events.md)
|
|
16
|
-
- [`./list_properties.md`](./list_properties.md)
|
|
17
|
-
- Do not generate final `filters` / `properties` until the above docs have been read and the prerequisite commands have been called.
|
|
18
|
-
|
|
19
|
-
## Prerequisite Call Chain (required for filters/properties)
|
|
20
|
-
1. Read `get_filter_schema.md`, then call `ae-cli analysis +get_filter_schema` to get the filter structure.
|
|
21
|
-
2. Read `list_events.md`, then call `ae-cli analysis_meta +list_events --project_id <project_id>` to confirm available event names.
|
|
22
|
-
3. Read `list_properties.md`, then call `ae-cli analysis_meta +list_properties --project_id <project_id>` to get available properties.
|
|
23
|
-
4. Build `filters` / `properties` based on the schema and metadata, then call `+build_event_details_sql`.
|
|
24
|
-
|
|
25
|
-
## Commands
|
|
26
|
-
```bash
|
|
27
|
-
ae-cli analysis +build_event_details_sql --project_id <project_id> --event_name login --start_time '2026-04-08 00:00:00' --end_time '2026-04-08 23:59:59'
|
|
28
|
-
ae-cli analysis +build_event_details_sql --project_id <project_id> --event_name login --relative_date_range 0-7 --filters '{}' --properties '{}' --sort_by time --sort_order desc --limit 100 --zone_offset 8
|
|
29
|
-
ae-cli analysis +build_event_details_sql --dry-run
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Parameters
|
|
33
|
-
| Parameter | Required | Description |
|
|
34
|
-
|---|---|---|
|
|
35
|
-
| `--project_id` / `-p` | Yes | Project ID |
|
|
36
|
-
| `--event_name` | Yes | Event name |
|
|
37
|
-
| `--start_time` | No | Start time. Format: yyyy-MM-dd HH:mm:ss |
|
|
38
|
-
| `--end_time` | No | End time. Format: yyyy-MM-dd HH:mm:ss |
|
|
39
|
-
| `--relative_date_range` | No | Optional relative date range in m-n format. For example, 0-7 means the most recent 7 days including today. Use either this field or start_time/end_time. |
|
|
40
|
-
| `--filters` | No | Optional filter JSON. If provided, MUST follow `+get_filter_schema`, and referenced fields must come from `analysis_meta +list_properties` in the same `project_id`. |
|
|
41
|
-
| `--properties` | No | Optional display properties JSON, for example `[{"columnName":"#user_id","tableType":"0"},{"columnName":"device_id","tableType":"0"}]`. If provided, property names should come from `analysis_meta +list_properties` in the same `project_id`. |
|
|
42
|
-
| `--sort_by` | No | Optional sort field |
|
|
43
|
-
| `--sort_order` | No | Optional sort order. Supported values: asc and desc |
|
|
44
|
-
| `--limit` | No | Optional result limit. Default: 100 |
|
|
45
|
-
| `--zone_offset` | No | Time zone offset. For example, UTC+8 is 8 |
|
|
46
|
-
|
|
47
|
-
## Decision Rules
|
|
48
|
-
- `filters` / `properties` cannot be written by hand based on experience alone: they must satisfy both the schema structure and the project's real metadata.
|
|
49
|
-
- `list_events` / `list_properties` must be learned from the corresponding reference docs before calling them.
|
|
50
|
-
- For the first run, it is recommended to pass only the required parameters (`--project_id`, `--event_name`) and add optional parameters after confirming the chain works.
|
|
51
|
-
- Wrap JSON parameters in single quotes (for example `--filters '{}'`, `--properties '{}'`) to avoid shell escaping issues.
|
|
52
|
-
- When dates/time ranges are involved, validate with a short range first and then expand gradually.
|
|
53
|
-
- For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
54
|
-
|
|
55
|
-
## Next Step After Failure
|
|
56
|
-
- If required parameters are missing, fall back to the smallest runnable command and fill them in (focus on `--project_id`, `--event_name`).
|
|
57
|
-
- If `Invalid JSON` appears, first check the required filter schema fields, then verify that the event name/property name comes from metadata queried in the same `project_id`.
|
|
58
|
-
|
|
59
|
-
## Recommended Chaining
|
|
60
|
-
- +get_filter_schema -> analysis_meta +list_events -> analysis_meta +list_properties -> +build_event_details_sql
|
|
61
|
-
- +query_entity_details -> +query_event_details -> +build_event_details_sql
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
# analysis +build_funnel_analysis_qp (build funnel analysis qp)
|
|
2
|
-
|
|
3
|
-
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
-
|
|
5
|
-
Domain: **Model Analysis**
|
|
6
|
-
|
|
7
|
-
## Use Cases
|
|
8
|
-
- Build a validated funnel-analysis QP from structured intent.
|
|
9
|
-
- Use in the mandatory builder flow before `+query_adhoc --model_type funnel`.
|
|
10
|
-
- This command builds QP only and does not execute the analysis query.
|
|
11
|
-
- This is the `funnel` builder in the ten-model guided QP builder set.
|
|
12
|
-
- Use this builder for funnel ad hoc requests; do not manually build funnel QP through `+get_analysis_query_schema`.
|
|
13
|
-
|
|
14
|
-
## JSON Rules
|
|
15
|
-
- CLI flags use snake_case, but JSON object keys use camelCase DTO names.
|
|
16
|
-
- Correct nested keys: `startTime`, `endTime`, `relationEventPropertyName`, `eventPropertyName`.
|
|
17
|
-
- Funnel step filters are event-property-only and use `eventPropertyName`; they do not use the generic `field` object.
|
|
18
|
-
- Funnel global filters and groups use the generic `field` object.
|
|
19
|
-
- Do not run syntax examples with placeholder JSON. Fill `time_range` and `funnel` with valid nested fields before calling this command.
|
|
20
|
-
- `--dry-run` still requires the same required flags as a real builder call. Never run this command as dry-run without `--project_id`, `--time_range`, and `--funnel`.
|
|
21
|
-
- Do not call `get_analysis_query_schema`, `list_events`, `list_properties`, `list_metrics`, or `get_metric` before this builder for normal ad-hoc analysis. The builder resolves events and properties internally.
|
|
22
|
-
- Builder commands do not accept `zone_offset`; pass `--zone_offset` to `+query_adhoc` after the builder succeeds.
|
|
23
|
-
- If the request misses time range, at least two steps, or conversion window, stop and ask the user to clarify.
|
|
24
|
-
|
|
25
|
-
## Command Syntax
|
|
26
|
-
```bash
|
|
27
|
-
ae-cli analysis +build_funnel_analysis_qp --project_id <project_id> --time_range '<valid_time_range_json>' --funnel '<valid_funnel_json>'
|
|
28
|
-
ae-cli analysis +build_funnel_analysis_qp --project_id <project_id> --time_range '<valid_time_range_json>' --funnel '<valid_funnel_json>' --relation and --time_particle_size day
|
|
29
|
-
ae-cli analysis +build_funnel_analysis_qp --project_id <project_id> --time_range '<valid_time_range_json>' --funnel '<valid_funnel_json>' --dry-run
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Parameters
|
|
33
|
-
| Parameter | Required | Description |
|
|
34
|
-
|---|---|---|
|
|
35
|
-
| `--project_id` / `-p` | Yes | Project ID |
|
|
36
|
-
| `--authenticated_only` | No | Resolve only authenticated assets while building the QP. Do not pass this flag to `+query_adhoc`. |
|
|
37
|
-
| `--time_range` | Yes | Funnel analysis time range JSON |
|
|
38
|
-
| `--funnel` | Yes | Funnel intent JSON |
|
|
39
|
-
| `--relation` | No | Top-level funnel filter relation. Supported values: and, or. Default: and |
|
|
40
|
-
| `--time_particle_size` | No | Time granularity. Supported values: day, week, month |
|
|
41
|
-
|
|
42
|
-
## JSON Shape
|
|
43
|
-
`--time_range` object:
|
|
44
|
-
```json
|
|
45
|
-
{"mode":"start_to_yesterday","startTime":"2021-05-18"}
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Time range fields:
|
|
49
|
-
| Field | Required | Description |
|
|
50
|
-
|---|---|---|
|
|
51
|
-
| `mode` | Yes | `recent`, `previous`, `custom`, `start_to_today`, `start_to_yesterday` |
|
|
52
|
-
| `unit` | For `recent`/`previous` | `day`, `week`, `month`, `quarter`, `year` |
|
|
53
|
-
| `value` | For `recent`/`previous` | Unit count. `{"mode":"previous","unit":"day","value":1}` means yesterday. |
|
|
54
|
-
| `startTime` | For `custom`/`start_to_*` | `yyyy-MM-dd` or `yyyy-MM-dd HH:mm:ss` |
|
|
55
|
-
| `endTime` | For `custom` only | `yyyy-MM-dd` or `yyyy-MM-dd HH:mm:ss` |
|
|
56
|
-
|
|
57
|
-
`--funnel` object:
|
|
58
|
-
```json
|
|
59
|
-
{
|
|
60
|
-
"steps":[
|
|
61
|
-
{"event":"special_data","filters":[{"eventPropertyName":"账户ID","operator":"exists"}]},
|
|
62
|
-
{"event":"商品购买","filters":[{"eventPropertyName":"账户ID","operator":"exists"},{"eventPropertyName":"城市","operator":"exists"}],"relation":"or"}
|
|
63
|
-
],
|
|
64
|
-
"window":{"value":180,"unit":"day"},
|
|
65
|
-
"relationEventPropertyName":"账户ID",
|
|
66
|
-
"filters":[
|
|
67
|
-
{"field":{"name":"账户ID","type":"event_property"},"operator":"exists"},
|
|
68
|
-
{"field":{"name":"城市","type":"event_property"},"operator":"exists"}
|
|
69
|
-
],
|
|
70
|
-
"groups":[{"field":{"name":"账户ID","type":"event_property"}}]
|
|
71
|
-
}
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
Funnel fields:
|
|
75
|
-
| Field | Required | Description |
|
|
76
|
-
|---|---|---|
|
|
77
|
-
| `steps` | Yes | At least two step objects |
|
|
78
|
-
| `steps[].event` | Yes | Event display name, technical name, or remark |
|
|
79
|
-
| `steps[].filters` | No | Step-level event-property filters. Use `eventPropertyName`, not `field`. |
|
|
80
|
-
| `steps[].relation` | No | Relation between filters in this step: `and` or `or`. Default: `and`. |
|
|
81
|
-
| `window.value` | Yes | Conversion window size. Must be greater than 0. |
|
|
82
|
-
| `window.unit` | No | `second`, `minute`, `hour`, `day`, `week`, `month`. Default: `day`. |
|
|
83
|
-
| `relationEventPropertyName` | No | Event property used as common relation property across all steps. Must resolve compatibly in every step event. |
|
|
84
|
-
| `filters` | No | Global funnel filters using generic `FilterRequest[]` |
|
|
85
|
-
| `groups` | No | Global group-by dimensions using generic `DimensionRequest[]` |
|
|
86
|
-
|
|
87
|
-
Generic filter object for `funnel.filters`:
|
|
88
|
-
```json
|
|
89
|
-
{"field":{"name":"账户ID","type":"event_property"},"operator":"exists"}
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
Step filter object for `steps[].filters`:
|
|
93
|
-
```json
|
|
94
|
-
{"eventPropertyName":"账户ID","operator":"exists"}
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
Group object:
|
|
98
|
-
```json
|
|
99
|
-
{"field":{"name":"账户ID","type":"event_property"}}
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
Field types for `funnel.filters` and `funnel.groups`:
|
|
103
|
-
| Type | Meaning |
|
|
104
|
-
|---|---|
|
|
105
|
-
| `event_property` | Event property |
|
|
106
|
-
| `user_property` | User property |
|
|
107
|
-
| `cluster` | User cluster |
|
|
108
|
-
| `tag` | User tag |
|
|
109
|
-
|
|
110
|
-
Filter operator rules:
|
|
111
|
-
| Operator | Values |
|
|
112
|
-
|---|---|
|
|
113
|
-
| `exists`, `not_exists`, `is_true`, `is_false` | Omit `values` |
|
|
114
|
-
| `between` | Exactly two values |
|
|
115
|
-
| `eq`, `neq`, `lt`, `lte`, `gt`, `gte`, `contains`, `not_contains`, `regex`, `not_regex` | Non-empty `values` array |
|
|
116
|
-
| `in_cluster`, `not_in_cluster` | Cluster operator; values are not required by builder validation |
|
|
117
|
-
|
|
118
|
-
## Examples
|
|
119
|
-
Minimal two-step funnel:
|
|
120
|
-
```bash
|
|
121
|
-
ae-cli analysis +build_funnel_analysis_qp --project_id 3137 --time_range '{"mode":"previous","unit":"day","value":1}' --funnel '{"steps":[{"event":"special_data"},{"event":"商品购买"}],"window":{"value":180,"unit":"day"}}'
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
Complex funnel with relation property, step filters, global OR filters, and group:
|
|
125
|
-
```bash
|
|
126
|
-
ae-cli analysis +build_funnel_analysis_qp --project_id 3137 --time_range '{"mode":"start_to_yesterday","startTime":"2021-05-18"}' --funnel '{"steps":[{"event":"special_data","filters":[{"eventPropertyName":"账户ID","operator":"exists"}]},{"event":"商品购买","filters":[{"eventPropertyName":"账户ID","operator":"exists"},{"eventPropertyName":"城市","operator":"exists"}],"relation":"or"}],"window":{"value":180,"unit":"day"},"relationEventPropertyName":"账户ID","filters":[{"field":{"name":"账户ID","type":"event_property"},"operator":"exists"},{"field":{"name":"城市","type":"event_property"},"operator":"exists"}],"groups":[{"field":{"name":"账户ID","type":"event_property"}}]}' --relation or
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
Then execute with UTC-11 after builder returns `status=generated`:
|
|
130
|
-
```bash
|
|
131
|
-
ae-cli analysis +query_adhoc --project_id 3137 --model_type funnel --qp '<response.qp>' --zone_offset -11
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
## Decision Rules
|
|
135
|
-
- Use `--authenticated_only true` only when the user explicitly wants authenticated assets; do not add this flag to `+query_adhoc`.
|
|
136
|
-
- After successful build, call `+query_adhoc --model_type funnel --qp '<response.qp>'`.
|
|
137
|
-
- If build returns non-generated status, stop and ask user to clarify; do not call `+query_adhoc`.
|
|
138
|
-
- Wrap JSON parameters in single quotes to avoid shell escaping issues.
|
|
139
|
-
- Do not pre-query metrics or metadata. Pass user-provided event/property names to the builder and let it resolve them.
|
|
140
|
-
- Do not put global filter relation inside `funnel`; pass it as top-level CLI flag `--relation`.
|
|
141
|
-
- If the user says "step 1 account ID group", builder cannot take a step index for groups; express it as `groups:[{"field":{"name":"账户ID","type":"event_property"}}]` and ask for clarification if that is ambiguous.
|
|
142
|
-
- If the user gave a time zone, keep it for `+query_adhoc --zone_offset`; do not put it in the builder JSON.
|
|
143
|
-
|
|
144
|
-
## Recommended Chaining
|
|
145
|
-
- `+build_funnel_analysis_qp` -> if `status=generated` -> `+query_adhoc --model_type funnel --qp '<response.qp>'`
|