@thinkingai/ae-cli 6.0.58 → 6.0.60
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 +10 -5
- package/README.zh.md +10 -5
- package/bin/ai-monitor.js +2 -0
- package/dist/ai-monitor-FCXSLHAP.js +32 -0
- package/dist/ai-monitor.js +135 -0
- package/dist/{auth-A5OO4VS4.js → auth-ATK2SLEV.js} +10 -9
- package/dist/{automation-FD2QZUP6.js → automation-FLCPFMN4.js} +4 -4
- package/dist/{capability-SKI4GHF4.js → capability-6KTSOI7L.js} +31 -35
- package/dist/{chunk-UYJMEHAF.js → chunk-2ETRY2CU.js} +15 -15
- package/dist/{chunk-QWSA3EOD.js → chunk-5E7MTTFN.js} +2 -2
- 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-AXTO4FTM.js +1285 -0
- package/dist/{chunk-HQCY3QCA.js → chunk-BEYLCUZX.js} +17 -12
- package/dist/chunk-CF6JTT2U.js +64 -0
- package/dist/{chunk-VDICGXCY.js → chunk-F2VFZUGG.js} +2 -2
- package/dist/{chunk-K2Z7QHDR.js → chunk-HSZAIPUX.js} +47 -12
- package/dist/{chunk-SOSFRU3O.js → chunk-HTZ2MLYA.js} +47 -21
- package/dist/{chunk-AWVZTN2B.js → chunk-HVMCPKOZ.js} +1 -1
- package/dist/{chunk-E25OSZLJ.js → chunk-KTJXD27G.js} +2 -2
- package/dist/{chunk-GBSACKFB.js → chunk-LOR4IA26.js} +564 -314
- package/dist/{chunk-YVG6QD3V.js → chunk-P7QDCWJ6.js} +98 -7
- package/dist/{chunk-EEARZNHE.js → chunk-SDKW6LYE.js} +88 -36
- package/dist/{chunk-WMDO53YK.js → chunk-VJUXKVRE.js} +1 -1
- package/dist/chunk-VRMGHQKE.js +556 -0
- package/dist/{compat-check-WFEKVLTH.js → compat-check-XD2U7PZ2.js} +2 -2
- package/dist/{config-U4I7X25P.js → config-U3GDWU6E.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 +84 -579
- package/dist/{memory-SNFR5M23.js → memory-WEB27VI6.js} +7 -7
- package/dist/{metadata-6QM6EED5.js → metadata-7FYE4234.js} +7 -7
- package/dist/{model-KEVCEXWD.js → model-T7H7Q6BG.js} +2 -2
- package/dist/{personal-semantic-preference-7VXQPP2N.js → personal-semantic-preference-O6VXM74A.js} +6 -6
- package/dist/{project-semantic-PSEPYH2L.js → project-semantic-2GGFJWW6.js} +15 -13
- package/dist/{sync-22ACDK5Z.js → sync-ULBB7WO5.js} +4 -4
- package/dist/{te-agent-BJ36B4QI.js → te-agent-6RMF7LUV.js} +5 -5
- package/dist/{te-analysis-WQ6D6YG4.js → te-analysis-HSYC7GNV.js} +382 -193
- package/dist/{te-community-VRWMFGI6.js → te-community-FLKZGQKB.js} +9 -9
- package/dist/{te-dataops-YTLFTTW7.js → te-dataops-OQQGTCUA.js} +3 -3
- package/dist/{te-engage-V2QW7TIC.js → te-engage-RIEBHL5T.js} +9 -9
- package/dist/{te-kb-4AQLISDR.js → te-kb-4HG2FMHJ.js} +18 -9
- package/dist/{te-system-CYWSK3UN.js → te-system-AL4B4XZL.js} +2 -2
- package/dist/{te-team-6ELNGBWT.js → te-team-5O4UVUWE.js} +5 -5
- package/dist/{things-HFWLGCUH.js → things-TSJ64GBT.js} +5 -5
- package/dist/{update-3CRVVHV5.js → update-Q5LURAWV.js} +3 -3
- package/dist/{workspace-2CKQX2XL.js → workspace-FF2HXJGR.js} +4 -4
- package/package.json +8 -6
- 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.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-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
|
@@ -8,7 +8,7 @@ Command:
|
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
ae-cli analysis dashboard update --project-id <project_id> --operation settings --dashboard-ids '[1001,1002]' [--zone-offset 8] [--payload '{...}']
|
|
11
|
-
ae-cli analysis dashboard update --project-id <project_id> --operation settings --dashboard-id <dashboard_id> --refresh-type
|
|
11
|
+
ae-cli analysis dashboard update --project-id <project_id> --operation settings --dashboard-id <dashboard_id> --refresh-type 0 --dashboard-status normal --payload '{"time_config_open":true,"time_config":{},"cache_config":{}}'
|
|
12
12
|
ae-cli analysis dashboard update --project-id <project_id> --operation note-upsert --dashboard-id <dashboard_id> [--note-id <note_id>] [--note-title <title>] [--description <text>]
|
|
13
13
|
ae-cli analysis dashboard update --project-id <project_id> --operation default-filter --dashboard-id <dashboard_id> --filter-name <name> --filter '{"junction_kind":"and","ta_filters":[{"filter_type":"SIMPLE","column_name":"app","table_type":"1","select_type":"string","calcu_symbol":"C00","ftv":["X"]}]}'
|
|
14
14
|
ae-cli analysis dashboard update --project-id <project_id> --operation personal-default-filter --dashboard-id <dashboard_id> --filter-name <name> --filter '{"junction_kind":"and","ta_filters":[{"filter_type":"SIMPLE","column_name":"app","table_type":"1","select_type":"string","calcu_symbol":"C00","ftv":["X"]}]}'
|
|
@@ -21,7 +21,8 @@ For `operation=settings`:
|
|
|
21
21
|
- `refresh_type` is integer `0` (real-time) or `1` (scheduled);
|
|
22
22
|
- `dashboard_status` is string `normal` or `freeze`;
|
|
23
23
|
- `zone_offset` is an integer hour offset from `-12` to `14`;
|
|
24
|
-
- complex settings belong in snake_case `payload`: `
|
|
24
|
+
- complex settings belong in snake_case `payload`: `time_config_open` boolean and object fields `time_config`, `cache_config`, `schedule_ui_config`; use `refresh_type:1` with the schedule UI configuration returned by the product for scheduled refresh;
|
|
25
|
+
- legacy `reports_version`, `dashboard_job_schedule`, and settings `ui_config` remain accepted for compatibility but do not change dashboard settings. The server reports them in `meta.deprecated_fields` and `meta.warnings`. Do not use a cron string in place of `schedule_ui_config`. Note-upsert `ui_config` remains effective.
|
|
25
26
|
|
|
26
27
|
For `operation=note-upsert`, `dashboard_id` is required. Omit `note_id` to create a note attached to that dashboard, or pass it to update an existing note. A created note defaults missing `note_title` and `description` to empty strings. An update preserves `note_title`, `description`, and `ui_config` when the corresponding field is omitted; pass an explicit empty string to clear text. Do not mix note fields with batch settings fields.
|
|
27
28
|
|
|
@@ -45,3 +45,5 @@ Do not route either request to a definition-version workflow. `LATEST`, `AUTO`,
|
|
|
45
45
|
3. Select only a returned exact value; do not normalize spelling or invent a synonym.
|
|
46
46
|
4. Put that value into `report-data run`, `dashboard-report-data run`, or `adhoc run`.
|
|
47
47
|
5. Verify the result scope and, when needed, follow the returned synchronous query context into drilldown.
|
|
48
|
+
|
|
49
|
+
When looking up values for a model tag filter, use the same snapshot policy as the filter. Discover the tag with `analysis-meta catalog list`. For a local fixed date, select a date returned by `analysis user-tag get --include-history-dates true`. Pass it as `--specified-cluster-date` only with `--cluster-date-policy SPECIFIED`.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# analysis folder share (L3)
|
|
2
2
|
|
|
3
|
+
This is a `high-risk-write` operation because it changes access, ownership, or authentication policy. Preview the affected scope with `--dry-run`, obtain explicit user confirmation, then use global `--yes` for non-interactive execution. Validation and dry-run do not apply the change.
|
|
4
|
+
|
|
3
5
|
Use when the user wants to modify folder sharing members.
|
|
4
6
|
|
|
5
7
|
Do not use to inspect members only. Use `analysis.folder.members` via `capability search/inspect/run`; see [`analysis_gateway_assets.md`](analysis_gateway_assets.md) L3 members section.
|
|
@@ -8,10 +10,14 @@ This capability has no curated `ae-cli analysis` command. Read [`ae-capability`]
|
|
|
8
10
|
|
|
9
11
|
```bash
|
|
10
12
|
ae-cli capability inspect analysis.folder.share
|
|
11
|
-
ae-cli capability run analysis.folder.share --input '{"project_id":1,"folder_id":1001,"payload":{...}}'
|
|
13
|
+
ae-cli capability run analysis.folder.share --input '{"project_id":1,"folder_id":1001,"payload":{...}}' --yes
|
|
12
14
|
```
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
| command | capability | risk |
|
|
17
|
+
| --- | --- | --- |
|
|
18
|
+
| `ae-cli capability run analysis.folder.share` | `analysis.folder.share` | high-risk-write |
|
|
19
|
+
|
|
20
|
+
Compose nested `payload` from the inspected `input_schema`.
|
|
15
21
|
|
|
16
22
|
Input uses snake_case JSON. Common fields:
|
|
17
23
|
|
|
@@ -6,7 +6,9 @@ Renew or finish the tracked recommendation started by [export](governance_recomm
|
|
|
6
6
|
ae-cli analysis-meta governance-recommendation run-update --project-id <project_id> --run-id <run_id> --status HEARTBEAT
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Input
|
|
10
|
+
|
|
11
|
+
Capability: `metadata.governance_recommendation.run_update`. Required flags: `--project-id`, `--run-id`, `--status`. Optional: `--reason` with a short non-sensitive reason.
|
|
10
12
|
|
|
11
13
|
Use HEARTBEAT at least every five minutes during actual interpretation. SUCCEEDED without page submission means an empty successful result. Page submission automatically records the exact batch ID. FAILED and CANCELLED release occupancy; record CANCELLED only after execution has stopped. Updating state does not cancel Agent execution. The server requires the same project, actor and active run ID; a fifteen-minute lost lease ends as TIMED_OUT and cannot be revived.
|
|
12
14
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# project data-power upsert
|
|
2
2
|
|
|
3
|
+
This is a `high-risk-write` operation because it changes access, ownership, or authentication policy. Preview the affected scope with `--dry-run`, obtain explicit user confirmation, then use global `--yes` for non-interactive execution. Validation and dry-run do not apply the change.
|
|
4
|
+
|
|
3
5
|
Use when the user needs to create or update a data power.
|
|
4
6
|
|
|
5
7
|
Do not use it for unrelated project-management actions or for fields not present in the common-service capability schema. Do not send camelCase aliases.
|
|
@@ -7,7 +9,7 @@ Do not use it for unrelated project-management actions or for fields not present
|
|
|
7
9
|
Command:
|
|
8
10
|
|
|
9
11
|
```bash
|
|
10
|
-
ae-cli project data-power upsert --project-id <project_id> --payload <payload>
|
|
12
|
+
ae-cli project data-power upsert --project-id <project_id> --payload <payload> --yes
|
|
11
13
|
```
|
|
12
14
|
|
|
13
15
|
Capability id: `project.data_power.upsert`.
|
|
@@ -24,3 +24,5 @@ Output uses the gateway envelope: success is `ok=true,data,meta`; failure is `ok
|
|
|
24
24
|
| `--zone-offset` | No | Marker time zone offset. |
|
|
25
25
|
| `--content` | Yes | Marker content. |
|
|
26
26
|
| `--is-visible` | No | Whether the marker is visible. 1 visible, 0 hidden. |
|
|
27
|
+
|
|
28
|
+
Marker content is limited to 200 characters. When the project enables time zones, fixed offsets are -12..14 and 99 selects stored local time. Omitted offsets and disabled project time zones retain the existing project-default behavior.
|
|
@@ -25,3 +25,5 @@ Output uses the gateway envelope: success is `ok=true,data,meta`; failure is `ok
|
|
|
25
25
|
| `--zone-offset` | No | Marker time zone offset. |
|
|
26
26
|
| `--content` | Yes | Marker content. |
|
|
27
27
|
| `--is-visible` | No | Whether the marker is visible. 1 visible, 0 hidden. |
|
|
28
|
+
|
|
29
|
+
Marker content is limited to 200 characters. When the project enables time zones, fixed offsets are -12..14 and 99 selects stored local time. Omitted offsets and disabled project time zones retain the existing project-default behavior.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# project member add
|
|
2
2
|
|
|
3
|
+
This is a `high-risk-write` operation because it changes access, ownership, or authentication policy. Preview the affected scope with `--dry-run`, obtain explicit user confirmation, then use global `--yes` for non-interactive execution. Validation and dry-run do not apply the change.
|
|
4
|
+
|
|
3
5
|
Use when the user needs to add project members. Use `--type 0` to create a company member from project management, or `--type 1` to add an existing company member to the project.
|
|
4
6
|
|
|
5
7
|
Do not use it for unrelated project-management actions or for fields not present in the common-service capability schema. Do not send camelCase aliases.
|
|
@@ -9,7 +11,7 @@ When the company disables project-level member creation, `--type 0` is rejected
|
|
|
9
11
|
Command:
|
|
10
12
|
|
|
11
13
|
```bash
|
|
12
|
-
ae-cli project member add --project-id <project_id> --payload '{"user_roles":[{"user_id":<user_id>,"role_list":["<role_name>"]}]}' --type 1
|
|
14
|
+
ae-cli project member add --project-id <project_id> --payload '{"user_roles":[{"user_id":<user_id>,"role_list":["<role_name>"]}]}' --type 1 --yes
|
|
13
15
|
```
|
|
14
16
|
|
|
15
17
|
Capability id: `project.member.add`.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# project member batch-update
|
|
2
2
|
|
|
3
|
+
This is a `high-risk-write` operation because it changes access, ownership, or authentication policy. Preview the affected scope with `--dry-run`, obtain explicit user confirmation, then use global `--yes` for non-interactive execution. Validation and dry-run do not apply the change.
|
|
4
|
+
|
|
3
5
|
Use when the user needs to batch update project members.
|
|
4
6
|
|
|
5
7
|
Do not use it for unrelated project-management actions or for fields not present in the common-service capability schema. Do not send camelCase aliases.
|
|
@@ -7,7 +9,7 @@ Do not use it for unrelated project-management actions or for fields not present
|
|
|
7
9
|
Command:
|
|
8
10
|
|
|
9
11
|
```bash
|
|
10
|
-
ae-cli project member batch-update --project-id <project_id> --payload <payload>
|
|
12
|
+
ae-cli project member batch-update --project-id <project_id> --payload <payload> --yes
|
|
11
13
|
```
|
|
12
14
|
|
|
13
15
|
Capability id: `project.member.batch_update`.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# project member-handover run
|
|
2
2
|
|
|
3
|
+
This is a `high-risk-write` operation because it changes access, ownership, or authentication policy. Preview the affected scope with `--dry-run`, obtain explicit user confirmation, then use global `--yes` for non-interactive execution. Validation and dry-run do not apply the change.
|
|
4
|
+
|
|
3
5
|
Use when the user needs to run project member asset handover.
|
|
4
6
|
|
|
5
7
|
Do not use it for unrelated project-management actions or for fields not present in the common-service capability schema. Do not send camelCase aliases.
|
|
@@ -7,7 +9,7 @@ Do not use it for unrelated project-management actions or for fields not present
|
|
|
7
9
|
Command:
|
|
8
10
|
|
|
9
11
|
```bash
|
|
10
|
-
ae-cli project member-handover run --project-id <project_id> --payload '{"to_user_id":<user_id>,"single_submit":true,"asset_list":[{"asset_id":<asset_id>,"asset_type":"report","asset_name":"<asset_name>"}]}'
|
|
12
|
+
ae-cli project member-handover run --project-id <project_id> --payload '{"to_user_id":<user_id>,"single_submit":true,"asset_list":[{"asset_id":<asset_id>,"asset_type":"report","asset_name":"<asset_name>"}]}' --yes
|
|
11
13
|
```
|
|
12
14
|
|
|
13
15
|
Capability id: `project.member_handover.run`.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# project member update
|
|
2
2
|
|
|
3
|
+
This is a `high-risk-write` operation because it changes access, ownership, or authentication policy. Preview the affected scope with `--dry-run`, obtain explicit user confirmation, then use global `--yes` for non-interactive execution. Validation and dry-run do not apply the change.
|
|
4
|
+
|
|
3
5
|
Use when the user needs to update one project member.
|
|
4
6
|
|
|
5
7
|
Do not use it for unrelated project-management actions or for fields not present in the common-service capability schema. Do not send camelCase aliases.
|
|
@@ -7,7 +9,7 @@ Do not use it for unrelated project-management actions or for fields not present
|
|
|
7
9
|
Command:
|
|
8
10
|
|
|
9
11
|
```bash
|
|
10
|
-
ae-cli project member update --project-id <project_id> --payload <payload> --target-user-id <target_user_id>
|
|
12
|
+
ae-cli project member update --project-id <project_id> --payload <payload> --target-user-id <target_user_id> --yes
|
|
11
13
|
```
|
|
12
14
|
|
|
13
15
|
Capability id: `project.member.update`.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# project owner update
|
|
2
2
|
|
|
3
|
+
This is a `high-risk-write` operation because it changes access, ownership, or authentication policy. Preview the affected scope with `--dry-run`, obtain explicit user confirmation, then use global `--yes` for non-interactive execution. Validation and dry-run do not apply the change.
|
|
4
|
+
|
|
3
5
|
Use when the user needs to update project owner.
|
|
4
6
|
|
|
5
7
|
Do not use it for unrelated project-management actions or for fields not present in the common-service capability schema. Do not send camelCase aliases.
|
|
@@ -7,7 +9,7 @@ Do not use it for unrelated project-management actions or for fields not present
|
|
|
7
9
|
Command:
|
|
8
10
|
|
|
9
11
|
```bash
|
|
10
|
-
ae-cli project owner update --project-id <project_id> --company-id <company_id> --owner-user-id <owner_user_id> --project-name <project_name> --project-remark <project_remark>
|
|
12
|
+
ae-cli project owner update --project-id <project_id> --company-id <company_id> --owner-user-id <owner_user_id> --project-name <project_name> --project-remark <project_remark> --yes
|
|
11
13
|
```
|
|
12
14
|
|
|
13
15
|
Capability id: `project.owner.update`.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# project role upsert
|
|
2
2
|
|
|
3
|
+
This is a `high-risk-write` operation because it changes access, ownership, or authentication policy. Preview the affected scope with `--dry-run`, obtain explicit user confirmation, then use global `--yes` for non-interactive execution. Validation and dry-run do not apply the change.
|
|
4
|
+
|
|
3
5
|
Use when the user needs to create or update a project role.
|
|
4
6
|
|
|
5
7
|
Do not use it for unrelated project-management actions or for fields not present in the common-service capability schema. Do not send camelCase aliases.
|
|
@@ -7,7 +9,7 @@ Do not use it for unrelated project-management actions or for fields not present
|
|
|
7
9
|
Command:
|
|
8
10
|
|
|
9
11
|
```bash
|
|
10
|
-
ae-cli project role upsert --project-id <project_id> --payload <payload>
|
|
12
|
+
ae-cli project role upsert --project-id <project_id> --payload <payload> --yes
|
|
11
13
|
ae-cli project role upsert --validate --project-id <project_id> --payload <payload>
|
|
12
14
|
ae-cli project role upsert --dry-run --project-id <project_id> --payload <payload>
|
|
13
15
|
```
|
|
@@ -30,7 +32,7 @@ Functions omitted from `role_func_list` are completed by the service with their
|
|
|
30
32
|
Create example:
|
|
31
33
|
|
|
32
34
|
```bash
|
|
33
|
-
ae-cli project role upsert \
|
|
35
|
+
ae-cli project role upsert --yes \
|
|
34
36
|
--project-id 196 \
|
|
35
37
|
--payload '{"role_desc":"Data analyst","role_func_list":[{"function_name":"viewReport","has_power":1}]}'
|
|
36
38
|
```
|
|
@@ -38,7 +40,7 @@ ae-cli project role upsert \
|
|
|
38
40
|
Update example:
|
|
39
41
|
|
|
40
42
|
```bash
|
|
41
|
-
ae-cli project role upsert \
|
|
43
|
+
ae-cli project role upsert --yes \
|
|
42
44
|
--project-id 196 \
|
|
43
45
|
--payload '{"role_name":"custom_role","role_func_list":[{"function_name":"viewReport","has_power":1}]}'
|
|
44
46
|
```
|
|
@@ -226,6 +226,21 @@ After all source-tree changes succeed, use the source-tree packager's `compile_m
|
|
|
226
226
|
|
|
227
227
|
Compiled navigation must follow the five layers: project overview, shared project knowledge, business domains, event and asset catalog, and governance with provenance. Recall cards belong under domains. The homepage should contain a small set of representative titled entries only, not every report/dashboard file or bare numeric IDs. Individual assets belong in their category index or domain context, with title-first link text and IDs as supporting identity. Public event groups are lookup indexes, not business domains.
|
|
228
228
|
|
|
229
|
+
## Wait for the submitted compile run
|
|
230
|
+
|
|
231
|
+
`+compile` returns a submission receipt, not completion. Copy its exact `data.runId` and wait in the foreground with the bounded read-only helper:
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
node skills/ae-analysis/scripts/project-semantic-knowledge-wiki/wait-compile-run.mjs \
|
|
235
|
+
--name '<company_kb_name>' --run-id '<runId returned by +compile>' --host <host>
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
The helper polls `company-kb.mjs +status --run-id <runId>`, always with company scope. It waits only for `queued`/`running`, returns on `succeeded`, and exits nonzero immediately on `failed`/`cancelled`, preserving the run error. If the exact-run response includes `publicationReview`, stop immediately with its stable code and report that administrator review is required; the run may remain `running` while blocked. Do not cancel or restart it. Timeout exits without cancelling or restarting the run. Keep the exact run ID when resuming. Missing exact-run support is terminal; upgrade the CLI/server before using this helper, never silently fall back to aggregate status or another run. Do not write a background shell loop that only waits for `wiki_compiled` or invented `compile_failed` values.
|
|
239
|
+
|
|
240
|
+
Aggregate `wiki_pending` with `buildStatus=compiled` and no active run can coexist with a failed compile and an older published Wiki. It is neither a running-run signal nor success for the submitted run. Successful run completion still requires the publication and content readback below. A `failed` run with no publication progress remains a failed run, even when an older version is readable.
|
|
241
|
+
|
|
242
|
+
If the sync plan is `skip` and compilation was not explicitly requested, no compile run exists to wait for. Read back the existing publication, report the no-business-change result and any current source/draft failures separately; never invent a successful compile or conceal `parse_failed`. If the user explicitly requires compilation, submit once and use the exact-run helper even on a no-change day.
|
|
243
|
+
|
|
229
244
|
## Acceptance and readback
|
|
230
245
|
|
|
231
246
|
Completion requires `status=wiki_compiled`, `buildStatus=compiled`, no failed or partial sources, and complete publication when exposed. Verify both a first build and an actual changed-source incremental compile; a local preview or successful upload is not acceptance.
|
|
@@ -238,7 +253,7 @@ node "$KB_RUN" +grep --name '<company_kb_name>' --query '<business question or m
|
|
|
238
253
|
node "$KB_RUN" +read --name '<company_kb_name>' --path '<path copied from index or grep>' --host <host>
|
|
239
254
|
```
|
|
240
255
|
|
|
241
|
-
Do not assume the old local Wiki layout. Inspect actual server paths. Check the project overview can answer: what business system this project observes, who uses it, what business objects exist, how objects relate, what decision chains exist, which assets attach to each chain, and what cannot be answered without live execution. Then check domain judgment models, asset IDs, SQL/calculation fidelity, certification, missing facts, cross-source conflict handling and provenance. Smoke-test a representative reusable asset. After refresh, verify additions, changed current definitions, removal of obsolete assertions and preservation of unchanged facts. Historical definitions may remain only when explicitly marked historical and evidenced. Publish statistics such as `reusedPages` are evidence; incremental mode alone does not prove lower model cost.
|
|
256
|
+
Do not assume the old local Wiki layout. Inspect actual server paths. Check the project overview can answer: what business system this project observes, who uses it, what business objects exist, how objects relate, what decision chains exist, which assets attach to each chain, and what cannot be answered without live execution. Then check domain judgment models, asset IDs, SQL/calculation fidelity, certification, missing facts, cross-source conflict handling and provenance. Read a published recall card through the normal query path. Verify that its opening branch preserves the sourced measure, grain conversion or capability gap and the checks that would change the answer. Inspect a counterexample where a prerequisite fails. Record card fidelity, constraint retrieval and observed execution adherence separately; a page readback covers only the first two. Smoke-test a representative reusable asset. After refresh, verify additions, changed current definitions, removal of obsolete assertions and preservation of unchanged facts. Historical definitions may remain only when explicitly marked historical and evidenced. Publish statistics such as `reusedPages` are evidence; incremental mode alone does not prove lower model cost.
|
|
242
257
|
|
|
243
258
|
Report target scope/name, requested model, ZIP source ID/revision, compile status/version, source counts and quality findings. Record observed compile duration and usage; small-sample success does not prove a full package will stay below turn limits.
|
|
244
259
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Project semantic knowledge Wiki plan
|
|
2
2
|
|
|
3
|
-
The Agent authors exactly one plan per asset-package snapshot. The builder validates every referenced asset against the package. New plans must fill `recall_cards[].routing` from verified evidence. Older 2.0 plans without routing still compile with a conservative domain fallback; branches may only target assets already listed in that card's preferred or fallback references.
|
|
3
|
+
The Agent authors exactly one plan per asset-package snapshot. The builder validates every referenced asset against the package. New plans must fill `recall_cards[].routing` from verified evidence. Older 2.0 plans without routing still compile with a conservative domain fallback; executable branches may only target assets already listed in that card's preferred or fallback references.
|
|
4
4
|
|
|
5
5
|
```json
|
|
6
6
|
{
|
|
@@ -89,12 +89,17 @@ The Agent authors exactly one plan per asset-package snapshot. The builder valid
|
|
|
89
89
|
],
|
|
90
90
|
"fallback_asset_refs": [],
|
|
91
91
|
"routing": {
|
|
92
|
+
"contract_version": 1,
|
|
92
93
|
"applicable_when": "问法、对象与范围何时适用本卡",
|
|
93
94
|
"answer_grain": "答案对象与统计粒度",
|
|
94
95
|
"required_parameters": ["时间范围或过滤参数"],
|
|
95
96
|
"branches": [
|
|
96
97
|
{
|
|
97
98
|
"when": "满足哪种已核验的问法和口径",
|
|
99
|
+
"outcome": "direct",
|
|
100
|
+
"source_grain": "What one source row represents",
|
|
101
|
+
"action": "Source-backed operation for this intent",
|
|
102
|
+
"checks": ["The observable condition that must hold before reporting the result"],
|
|
98
103
|
"asset_refs": [{"resource_type": "dashboard", "resource_key": "1234", "reason": "分支采用该资产的证据"}],
|
|
99
104
|
"reason": "为什么该分支使用这些资产"
|
|
100
105
|
}
|
|
@@ -194,3 +199,11 @@ The Agent authors exactly one plan per asset-package snapshot. The builder valid
|
|
|
194
199
|
- Explain SQL fields in business language while preserving original parameter and output identifiers. Keep exact SQL anchors and saved structural facts in clearly scoped evidence sections; do not replace identities with display labels or expose unrelated parser/debug markers as business explanations.
|
|
195
200
|
- The generated Markdown must not expose build-process markers such as `CLI Agent 基于同一资产快照生成`, `摘要来源`, `semantic_plan`, parser fallback labels, or builder/debug terminology. Keep those only in local artifacts when needed for audit.
|
|
196
201
|
- The plan contains no query results, customer rows, users, tokens, credentials, or conversation text.
|
|
202
|
+
|
|
203
|
+
### Answer branches
|
|
204
|
+
|
|
205
|
+
For every new or revised card author `routing.contract_version: 1`. On refresh, recheck dependent branches when a referenced measure, identity, window or coverage condition changes. Reuse an unchanged legacy card on an ordinary refresh. For an explicit rules upgrade, re-review affected cards against the current assets before upgrading them. Missing evidence remains unknown.
|
|
206
|
+
|
|
207
|
+
Choose one outcome per branch using the user's intent and the actual definition. For `direct` and `transform`, supply the verified asset references, `source_grain`, `action` and nonempty `checks`. The target defaults to the card's `answer_grain`; override it on a branch when the target differs. Use `reason` for the source-backed justification. For `transform`, the action specifies the mapping, order and computation; checks establish required identity, additivity, coverage and time alignment as applicable. Keep the few conditions whose failure changes this answer in the branch, with the full calculation on the referenced asset. A route relying on a combined measure must also provide a verified compatible combination. When compatibility is unknown or incompatible, keep the separate observations or declare the combined answer unsupported. State the narrower deliverable or missing evidence in the fallback. Preserve distinct source labels and measured entities, including conflicts. Never infer a conversion from a label.
|
|
208
|
+
|
|
209
|
+
For `clarify`, the action is the specific unresolved business choice. For `unsupported`, explain the missing prerequisite and state what can still be reported. Either may use an empty `asset_refs` list; any supplied references only document the decision and may point to an explicitly excluded asset. A card containing only these outcomes may have no preferred asset. Do not invent an executable alternative. State-only, causal and predictive claims require evidence appropriate to each claim. For conditional transformations or estimates, record how to verify them at execution time, including the effective window, raw precision and denominator when relevant.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# analysis project-space share (L3)
|
|
2
2
|
|
|
3
|
+
This is a `high-risk-write` operation because it changes access, ownership, or authentication policy. Preview the affected scope with `--dry-run`, obtain explicit user confirmation, then use global `--yes` for non-interactive execution. Validation and dry-run do not apply the change.
|
|
4
|
+
|
|
3
5
|
Use when the user wants to modify project-space sharing members.
|
|
4
6
|
|
|
5
7
|
Do not use to inspect members only. Use `analysis.project_space.members` via `capability search/inspect/run`; see [`analysis_gateway_assets.md`](analysis_gateway_assets.md) L3 members section.
|
|
@@ -8,10 +10,14 @@ This capability has no curated `ae-cli analysis` command. Read [`ae-capability`]
|
|
|
8
10
|
|
|
9
11
|
```bash
|
|
10
12
|
ae-cli capability inspect analysis.project_space.share
|
|
11
|
-
ae-cli capability run analysis.project_space.share --input '{"project_id":1,"space_id":10,"payload":{...}}'
|
|
13
|
+
ae-cli capability run analysis.project_space.share --input '{"project_id":1,"space_id":10,"payload":{...}}' --yes
|
|
12
14
|
```
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
| command | capability | risk |
|
|
17
|
+
| --- | --- | --- |
|
|
18
|
+
| `ae-cli capability run analysis.project_space.share` | `analysis.project_space.share` | high-risk-write |
|
|
19
|
+
|
|
20
|
+
Compose nested `payload` from the inspected `input_schema`.
|
|
15
21
|
|
|
16
22
|
Input uses snake_case JSON. Common fields:
|
|
17
23
|
|
|
@@ -22,3 +22,5 @@ Output `data.property` contains the event/user property metadata detail.
|
|
|
22
22
|
| `--project-id` | Yes | Numeric project ID. |
|
|
23
23
|
| `--table-type` | Yes | Property table type. |
|
|
24
24
|
| `--prop-name` | Yes | Property column name. |
|
|
25
|
+
|
|
26
|
+
For SQL virtual event properties, `data.property.vir_prop_column_rule` contains the expression and `data.property.tag_date_policies` contains the saved per-tag version choices.
|
|
@@ -7,7 +7,7 @@ Do not use for dashboard or BI panel asset listing. Use the matching list comman
|
|
|
7
7
|
Command:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
ae-cli analysis public-link list --project-id <project_id> [--queries '["growth","retention"]'] [--fields '["id","
|
|
10
|
+
ae-cli analysis public-link list --project-id <project_id> [--queries '["growth","retention"]'] [--fields '["id","access_id"]'] [--limit 50] [--offset 0]
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Input sends `project_id` and optional `queries`, `fields`, `limit`, `offset`. `queries` accepts 1 to 20 non-empty strings with OR semantics; matching rows include `matched_queries` and `matched_fields`, and singular `query` is not accepted.
|
|
@@ -15,3 +15,5 @@ Input sends `project_id` and optional `queries`, `fields`, `limit`, `offset`. `q
|
|
|
15
15
|
When `has_more=true`, continue only with the returned `next_offset`; do not calculate the next page locally.
|
|
16
16
|
|
|
17
17
|
Output is the gateway envelope. `data` contains public-link summaries.
|
|
18
|
+
|
|
19
|
+
Projection selectors use returned snake_case names such as `access_id`, `access_status`, and `expire_time`. Published camelCase selectors such as `accessId` remain accepted for compatibility.
|
|
@@ -7,11 +7,14 @@ This is the only analysis-query cancellation command exposed by ae-cli. Cancella
|
|
|
7
7
|
Command:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
ae-cli analysis query cancel --run-id <run_id>
|
|
10
|
+
ae-cli analysis query cancel --run-id <run_id> --dry-run
|
|
11
|
+
ae-cli analysis query cancel --run-id <run_id> [--reason <reason>] --yes
|
|
11
12
|
```
|
|
12
13
|
|
|
13
14
|
Input sends `run_id` and optional `reason`.
|
|
14
15
|
|
|
16
|
+
Cancellation is a high-risk write. Obtain explicit user confirmation before canceling; non-interactive execution requires global `--yes`. Validate and dry-run remain available without confirmation.
|
|
17
|
+
|
|
15
18
|
Output is the gateway envelope. `data` contains the cancellation result.
|
|
16
19
|
|
|
17
20
|
Typical workflow: submit an async export, preserve its `run_id`, inspect that run, and call this command only when that same run no longer needs to continue. Do not substitute a lifecycle `request_id` for `run_id`.
|
|
@@ -46,7 +46,7 @@ Timezone contract:
|
|
|
46
46
|
Override model:
|
|
47
47
|
|
|
48
48
|
- `filters`: AI-facing intent object `{relation:"and|or", items:[{field:{name,type?}, operator, values?}]}`. `field.type` supports `event_property`, `user_property`, `cluster`, and `tag`; omit it only when the field name is unambiguous. Use field names from `analysis report get` definition output or metadata commands. Do not pass raw QP fields such as `taFilters`, `junctionKind`, `columnName`, `tableType`, or `selectType`.
|
|
49
|
-
- `group-by`: AI-facing intent array `[{field:{name,type?}}]`. Use the same field model as report definitions. Do not pass raw `TaGroupByVo`. Time granularity is controlled by `--time-granularity`, not by `--group-by`.
|
|
49
|
+
- `group-by`: AI-facing intent array `[{field:{name,type?}}]`. Use the same field model and tag snapshot options as report definitions. Put `cluster_date_policy` beside `field` and supply `specified_cluster_date` only for SPECIFIED. This applies to filter and group overrides. Do not pass raw `TaGroupByVo`. Time granularity is controlled by `--time-granularity`, not by `--group-by`.
|
|
50
50
|
- `sql-params`: SQL report dynamic parameter value overrides. First read `analysis report get`; saved SQL params are exposed as AI-facing `definition.params`. Every name must exist in every target SQL report because one batch shares the override. Send only override values for existing parameter names: `[{"name":"environment","value":"Production"}]`, `[{"name":"server_id","operator":"contains","value":"s1"}]`, `[{"name":"level","operator":"eq","values":["42"]}]`, `[{"name":"amount","operator":"between","values":["10","20"]}]`, `[{"name":"part_date","start_time":"2026-07-01 00:00:00","end_time":"2026-07-09 23:59:59"}]`, or `[{"name":"part_date","recent_day":"1-7"}]`. Time fields require a saved `part_date` or time parameter. Operators `eq`/`in`, `neq`/`not_in`, and `between` use `values`; comparison/like/contains operators use single `value`. Do not send definition fields such as `type`, `options`, or `use_timezone`; change them through report update.
|
|
51
51
|
|
|
52
52
|
Selector runtime contract:
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
# analysis report list
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use `analysis report list --manageable-only` to select reports for edit or management workflows. Without this flag the command returns all readable reports within the requested filters, including shared read-only reports.
|
|
4
4
|
|
|
5
5
|
Do not use for readable asset discovery: use `analysis asset search`, which includes shared read-only reports and dashboards. Do not use for report data execution or report definition writes. Use `report-data run/export` for data and `report create/update` for writes.
|
|
6
6
|
|
|
7
7
|
Command:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
ae-cli analysis report list --project-id <project_id> [--queries '["growth","retention"]'] [--model-types '["event","sql","tag","revenue"]'] [--fields '["report_id","report_name","report_desc","report_model","version"]'] [--certification-scope project|certified|all] [--limit 50] [--offset 0]
|
|
10
|
+
ae-cli analysis report list --project-id <project_id> --manageable-only [--queries '["growth","retention"]'] [--model-types '["event","sql","tag","revenue"]'] [--fields '["report_id","report_name","report_desc","report_model","version"]'] [--certification-scope project|certified|all] [--limit 50] [--offset 0]
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
Input sends `project_id`, optional `queries`, `model_types`, `fields`, `certification_scope`, `limit`, and `offset` as snake_case gateway input. `queries` is a JSON array of 1 to 20 non-empty strings with OR semantics; matching rows include `matched_queries` and `matched_fields`. The legacy singular `query` is not accepted. `limit` defaults to 50 and must be 1..200; out-of-range values are rejected rather than silently clamped.
|
|
13
|
+
Input sends `project_id`, optional `manageable_only` (boolean, default false), `queries`, `model_types`, `fields`, `certification_scope`, `limit`, and `offset` as snake_case gateway input. `queries` is a JSON array of 1 to 20 non-empty strings with OR semantics; matching rows include `matched_queries` and `matched_fields`. The legacy singular `query` is not accepted. `limit` defaults to 50 and must be 1..200; out-of-range values are rejected rather than silently clamped.
|
|
14
14
|
|
|
15
15
|
Output is the gateway envelope. `data` contains report summaries, `total`, effective `limit`, `offset`, `has_more`, and nullable `next_offset`. When `has_more` is true, use exactly `next_offset` for the next call; stop when it is false. Include `version` in `--fields` when the next step is `analysis report update`.
|
|
16
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis scenario append
|
|
2
2
|
|
|
3
|
-
Pass original text to `--text`; never pre-encode it. The CLI automatically sends `text` as UTF-8 Base64 with `content_encoding=base64`, for both user feedback and answer revisions and for execute, validate and dry-run. Common collects the exact decoded text. Other fields, including `--user-message`, retain their existing representation. Encoding is reversible and is not encryption. Deploy Common support first; old unmarked requests remain accepted by new Common. An older Common rejects the new marker; do not retry or fall back to plain text.
|
|
3
|
+
Pass the original user text, or the business body of an answer revision, to `--text`; never pre-encode it. The CLI automatically sends `text` as UTF-8 Base64 with `content_encoding=base64`, for both user feedback and answer revisions and for execute, validate and dry-run. Common collects the exact decoded text. Other fields, including `--user-message`, retain their existing representation. Encoding is reversible and is not encryption. Deploy Common support first; old unmarked requests remain accepted by new Common. An older Common rejects the new marker; do not retry or fall back to plain text.
|
|
4
4
|
|
|
5
5
|
Command: `ae-cli analysis scenario append`. Capability: `analysis.scenario.append`. Risk: `write`.
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ The optional `--project-id` flag remains accepted for compatibility, but omissio
|
|
|
12
12
|
|
|
13
13
|
Append user feedback or a revised answer to the original [scenario](scenario_collect.md); never create a second scenario simply because the user corrected, challenged or clarified the original answer. No correctness rating is accepted. `--validate`/`--dry-run` do not emit entries.
|
|
14
14
|
|
|
15
|
-
Required: `--question-id` original scenario ID, `--entry-type` user_feedback or answer_revision, `--target-answer-id` actual answer being challenged/revised, and `--text` exact user message (max4096) or exact revised answer (max16384). Preserve the user's words even when you disagree. Do not classify an objection as proof of error. A new requirement or ordinary follow-up is not automatically negative feedback. If the target cannot be reliably identified, do not guess a scenario or answer ID. Preserve the text for clarification rather than misattributing it.
|
|
15
|
+
Required: `--question-id` original scenario ID, `--entry-type` user_feedback or answer_revision, `--target-answer-id` actual answer being challenged/revised, and `--text` exact user message (max4096) or exact revised business answer body (max16384). For `answer_revision`, apply the [business answer content boundary](scenario_collect.md#business-answer-content): exclude client memory citations, rendering directives and local artifact paths while preserving substantive business content. Do not apply these exclusions to `user_feedback` or `--user-message`. Preserve the user's words even when you disagree. Do not classify an objection as proof of error. A new requirement or ordinary follow-up is not automatically negative feedback. If the target cannot be reliably identified, do not guess a scenario or answer ID. Preserve the text for clarification rather than misattributing it.
|
|
16
16
|
|
|
17
17
|
After any substantive reply to the same scenario (recheck, explanation, correction or scope clarification), append answer_revision even when the conclusion stays the same. This records how the Agent responded to feedback; it does not assert that the previous answer was wrong. Reuse actual earlier call references when no new query is needed. If the triggering user request was not already captured as user_feedback, pass its exact original text as --user-message (max4096) on answer_revision. This preserves neutral scope changes, ordinary explanations and refinements without calling them negative feedback. Omit this flag when the same text is already stored in user_feedback; never duplicate it. Acknowledgments such as thanks alone need no entry. For answer_revision, also supply `--query-path` as described in collect (ordered existing call references only, no query results) and a new `--answer-id` (defaults to answer:<current-turn-id>); target_answer_id still points at the old answer. Do not overwrite old answers or feedback. Feedback accepts no answer_id/query_path/user_message. `--project-id` must identify the source analysis project to append a sample. `--entry-id` defaults to current-turn-id:entry-type; preserve it on retries. It is independent of text so retries do not become new entries. If multiple distinct entries of the same type are intentionally submitted in one turn, assign distinct stable suffixes from real message identities.
|
|
18
18
|
|
|
@@ -10,13 +10,24 @@ The optional `--project-id` flag remains accepted for compatibility, but omissio
|
|
|
10
10
|
|
|
11
11
|
Read [append](scenario_append.md) for later user feedback and answer revisions. Both commands support `--validate` and `--dry-run`, which do not emit collection events.
|
|
12
12
|
|
|
13
|
-
Pass the
|
|
13
|
+
Pass the business answer text defined below to `--answer`; never pre-encode it. The CLI automatically sends `answer` as UTF-8 Base64 with `content_encoding=base64` for execute, validate and dry-run. Common decodes a copy for validation and collection; encoded requests and validation responses retain the wire representation. This is reversible encoding, not encryption. Only `answer` is encoded by collect; other fields retain their existing representation. Deploy Common support before upgrading the CLI. New Common accepts legacy unmarked plain-text requests; older Common rejects the encoding marker, and the CLI never retries with plain text. On rejection, follow the existing collection-failure behavior and answer normally.
|
|
14
14
|
|
|
15
15
|
## Collection only
|
|
16
16
|
|
|
17
|
-
Once a complete scenario answer is ready, collect one sample
|
|
17
|
+
Once a complete scenario answer is ready, collect one sample containing the exact business answer body that will be delivered, excluding client-only metadata as specified below. Keep the original request plus confirmed scope clarifications together in question; do not replace the original goal with the last short user message. Do not self-rate or ask for a rating. Multiple CLI data queries are one sample. Metadata/discovery/help or asset writes alone are not scenarios. An attempted failed query still qualifies when its existing call ID is available. Do not conduct extra queries just for collection.
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
### Business answer content
|
|
20
|
+
|
|
21
|
+
Apply this boundary before calling collect and before appending an `answer_revision`. Collect the business answer, not the entire client message envelope:
|
|
22
|
+
|
|
23
|
+
- Exclude the entire `<oai-mem-citation>...</oai-mem-citation>` block, including memory file references, citation entries and rollout IDs, and equivalent client-only provenance metadata.
|
|
24
|
+
- Exclude client rendering directives such as `visualize` payloads and standalone local artifact embeds. Do not collect machine-local paths such as `/Users/...`, `/tmp/...` or `file://...` from output links; retain meaningful business link labels and surrounding explanations. Keep accessible business report/evidence URLs.
|
|
25
|
+
- Preserve the original business wording, numbers, tables, conclusions, scope, uncertainty and failure explanations. Do not summarize, improve, correct or omit substantive content while removing metadata. If a chart or attachment carries essential findings, include those findings in the actual user-facing answer body before collection; never invent unseen attachment contents.
|
|
26
|
+
- Check the prepared answer for leftover client metadata before sending it. These exclusions apply to assistant answers only; preserve the user's original question, feedback and follow-up wording.
|
|
27
|
+
|
|
28
|
+
For example, an answer stating `Registered accounts: 63.` followed by a memory-citation block must collect `Registered accounts: 63.` only. The delivered message may still contain client-required metadata outside that business body.
|
|
29
|
+
|
|
30
|
+
Required flags: `--question` original request and confirmed clarifications, max8192; `--answer` exact business answer body, max16384; `--query-path` an ordered JSON array of 1..64 actual CLI call references, total max20000 characters. Each step accepts only `capability_id`, at least one existing `invocation_id` or `client_request_id`, and optional short `purpose` (max256). Preserve execution order, including relevant discovery/definition calls and failed attempts; at least one step must be an attempted analysis data query. Exclude collection/feedback calls. Prefer only the actual response meta.invocation_id. If it is unavailable, use the gateway meta.client_request_id only when actually returned. The business request_id in query parameters or stderr is NOT client_request_id; never relabel it. Do not add client_request_id alongside an available invocation_id. Never invent IDs or rerun business queries just to obtain one; if no gateway ID is available, do not fabricate a reference. A revision can reuse relevant earlier calls and add new calls in their original order, without rerunning them.
|
|
20
31
|
|
|
21
32
|
Do not upload result rows, data/error excerpts, query parameters, full transcripts, credentials or private reasoning. Purpose is a short operation label, not a reasoning trace or self-evaluation. Do not summarize large result sets for collection. Existing call telemetry already records parameters/status/timing; this event only links the path. Pass decoded JSON directly to --query-path; @file syntax is not supported by this command.
|
|
22
33
|
|
|
@@ -25,7 +36,7 @@ Do not upload result rows, data/error excerpts, query parameters, full transcrip
|
|
|
25
36
|
```bash
|
|
26
37
|
ae-cli analysis scenario collect --question-id '<original-user-turn-id>' \
|
|
27
38
|
--question '<original question and confirmed clarifications>' \
|
|
28
|
-
--answer '<exact
|
|
39
|
+
--answer '<exact business answer body without client-only metadata>' \
|
|
29
40
|
--query-path '[{"capability_id":"analysis.report.get","invocation_id":"<definition-call-id>","purpose":"Inspect metric definition"},{"capability_id":"analysis.report_data.run","invocation_id":"<query-call-id>","purpose":"Compare requested weeks"}]' \
|
|
30
41
|
--project-id 196
|
|
31
42
|
```
|
|
@@ -17,7 +17,8 @@ This is an L2 typed command backed by `analysis.scenario.list` in Common's ta-cl
|
|
|
17
17
|
|
|
18
18
|
- `--project-id` is required. `--days` defaults to 7 (1..90); `--limit` defaults to 20 (1..50); `--offset` defaults to 0.
|
|
19
19
|
- Days are calendar days including today, using the deployment timezone, and select the initial question's `collected_at`. The first response supplies the exact `meta.start_time`, exclusive `meta.end_time`, and `meta.timezone`.
|
|
20
|
-
- Output `data.items` contains one scenario per authenticated source user + Agent session + question. Each has `initial` (
|
|
20
|
+
- Output `data.items` contains one scenario per authenticated source user + Agent session + question. Each has `initial` (original question, business answer and path), `entries` (ordered feedback and answer revisions), and `conflicting_records`. Entry targets must still be checked by the evaluator; collection does not validate their existence.
|
|
21
|
+
- With Common support for historical answer filtering, assistant answer fields omit client memory-citation blocks, rendering directives and local artifact link destinations on read. Business wording, user questions/feedback, identities and call evidence remain unchanged; stored archives are not rewritten. This also applies to answers loaded for Bad Case submission and previously saved Bad Case readback. Older deployments may still return the original client metadata; it is not business evidence.
|
|
21
22
|
- While `meta.has_more` is true, repeat with the same project, days and limit, `--offset <meta.next_offset>` and `--end-time '<first meta.end_time>'`. Do not advance the snapshot time on later pages. The command never applies a badcase filter.
|
|
22
23
|
- The boundary filters collection timestamps, not a transaction across asynchronous archive writes. Late writes can still change totals between pages. If totals change, disclose the changing archive and do not claim a complete stable snapshot; retain distinct source identities to avoid double counting.
|
|
23
24
|
- Evaluate complete scenarios incrementally and keep compact findings plus source identities in task context. Do not sample only negative-feedback records. Do not claim full coverage until all pages are read. If context or execution limits stop the review, explicitly state how many of `meta.total` scenarios were reviewed.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# system oauth2 update
|
|
2
2
|
|
|
3
|
+
This is a `high-risk-write` operation because it changes access, ownership, or authentication policy. Preview the affected scope with `--dry-run`, obtain explicit user confirmation, then use global `--yes` for non-interactive execution. Validation and dry-run do not apply the change.
|
|
4
|
+
|
|
3
5
|
Use when the user needs to enable or disable company OAuth2 login.
|
|
4
6
|
|
|
5
7
|
Do not use it outside the system oauth2 operation or with fields absent from the inspected capability schema.
|
|
@@ -7,7 +9,7 @@ Do not use it outside the system oauth2 operation or with fields absent from the
|
|
|
7
9
|
Command:
|
|
8
10
|
|
|
9
11
|
```bash
|
|
10
|
-
ae-cli system oauth2 update --company-id <company-id> --enable-oauth2 <true_or_false>
|
|
12
|
+
ae-cli system oauth2 update --company-id <company-id> --enable-oauth2 <true_or_false> --yes
|
|
11
13
|
```
|
|
12
14
|
|
|
13
15
|
Capability id: `system.oauth2.update`.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# system third-party-login upsert
|
|
2
2
|
|
|
3
|
+
This is a `high-risk-write` operation because it changes access, ownership, or authentication policy. Preview the affected scope with `--dry-run`, obtain explicit user confirmation, then use global `--yes` for non-interactive execution. Validation and dry-run do not apply the change.
|
|
4
|
+
|
|
3
5
|
Use when the user needs to create or update a third-party login configuration using protected secret sources.
|
|
4
6
|
|
|
5
7
|
Do not use it outside the system third-party-login operation or with fields absent from the inspected capability schema.
|
|
@@ -7,8 +9,8 @@ Do not use it outside the system third-party-login operation or with fields abse
|
|
|
7
9
|
Command:
|
|
8
10
|
|
|
9
11
|
```bash
|
|
10
|
-
ae-cli system third-party-login upsert --company-id <company_id> --login-type feishu --app-id <app_id> --app-secret-file <chmod_600_file>
|
|
11
|
-
ae-cli system third-party-login upsert --company-id <company_id> --login-type dingtalk --app-id <app_id> --corp-id <corp_id> --agent-id <agent_id> --dd-scan-app-id <scan_app_id> --app-secret-file <chmod_600_file> --dd-scan-app-secret-file <chmod_600_file>
|
|
12
|
+
ae-cli system third-party-login upsert --company-id <company_id> --login-type feishu --app-id <app_id> --app-secret-file <chmod_600_file> --yes
|
|
13
|
+
ae-cli system third-party-login upsert --company-id <company_id> --login-type dingtalk --app-id <app_id> --corp-id <corp_id> --agent-id <agent_id> --dd-scan-app-id <scan_app_id> --app-secret-file <chmod_600_file> --dd-scan-app-secret-file <chmod_600_file> --yes
|
|
12
14
|
```
|
|
13
15
|
|
|
14
16
|
Capability id: `system.third_party_login.upsert`.
|
|
@@ -6,7 +6,7 @@ Do not use it for uploaded-ID tags; use `user-tag create-id`. A successful creat
|
|
|
6
6
|
|
|
7
7
|
The response reports this directly: `computation.triggered_automatically=true`, `computation.status=submitted`, and `result_freshness.is_stale=true`. Follow `next_action`; when it is `poll_get`, invoke `next_capability_id` with the exact `next_input` returned by the command.
|
|
8
8
|
|
|
9
|
-
Flags: `--project-id`, `--tag-name`, `--display-name`, `--definition-request` required. Optional: `--authenticated-only`, `--zone-offset`, `--entity-id`, `--enable-auto-refresh`, `--auto-refresh-schedule`, `--auto-refresh-cron`. The tag type comes from `definition_request.type`.
|
|
9
|
+
Flags: `--project-id`, `--tag-name`, `--display-name`, `--definition-request` required. Optional: `--authenticated-only`, `--zone-offset`, `--entity-id`, `--enable-auto-refresh`, `--enable-history-tag-backup`, `--auto-refresh-schedule`, `--auto-refresh-cron`. The tag type comes from `definition_request.type`. For a SQL tag, explicitly pass the project entity whose IDs the first result column represents. Follow the [SQL tag subject selection rules](user_tag_models.md#sql-tag) before creating it.
|
|
10
10
|
|
|
11
11
|
`tag_name` is a machine identifier: 1-80 characters, starts with a letter, and contains only letters, digits, or underscores. `display_name` is 1-80 characters. The CLI rejects violations before dispatch.
|
|
12
12
|
|
|
@@ -51,3 +51,6 @@ Append one of these options to the create command:
|
|
|
51
51
|
`time` uses 24-hour `HH:mm`. `month_days` accepts 1-31; dates absent from a month are skipped. Weekly/monthly schedules require their respective day array; other frequencies reject those fields. The structured form preserves the page's daily/weekly/monthly frequency selection. Cron uses the page's custom schedule mode and preserves every cron field.
|
|
52
52
|
|
|
53
53
|
Schedules use the tag timezone. Use the existing `--zone-offset` only with an offset supported by the project; omit it to use the project's default behavior. Inspect `user-tag get` for `enable_auto_refresh` (1=enabled, 0=disabled), `scheduler_ui_config`, and `cluster_zone_offset` after creation.
|
|
54
|
+
|
|
55
|
+
To retain historical tag values after scheduled refreshes, pass `--enable-history-tag-backup true` together with a schedule, for example `--auto-refresh-schedule '{"frequency":"daily","time":"02:30"}'`. Backup defaults to off.
|
|
56
|
+
Read the tag with `user-tag get`: `enable_history_tag_backup=1` means enabled; the native read may omit the field or return null when disabled. Use `history-tag list` to check for a completed historical version after a scheduled refresh.
|
|
@@ -13,3 +13,5 @@ Flags: `--project-id`, `--tag-names` JSON array.
|
|
|
13
13
|
```bash
|
|
14
14
|
ae-cli analysis user-tag get --project-id <project_id> --tag-names '["user_level"]'
|
|
15
15
|
```
|
|
16
|
+
|
|
17
|
+
Pass `--include-history-dates true` to include `has_history_versions` and `is_cross_source` on each returned tag. Local tags return `available_history_dates` newest first; an empty list has no selectable fixed date. Cross-source tags omit the list because dates are not enumerated locally. Keep this flag omitted for ordinary computation polling.
|
|
@@ -62,10 +62,16 @@ From a fixed date through today:
|
|
|
62
62
|
|
|
63
63
|
## SQL tag
|
|
64
64
|
|
|
65
|
+
Before creating a SQL tag, identify who receives one tag value. Use `ae-cli project entity list --project-id <project_id>` to find that analysis entity in the target project. If its source field is unclear, inspect it with `project entity get`. Pass the resolved entity ID explicitly as `--entity-id`. When editing an existing SQL tag, read its entity with `analysis user-tag get` and keep that entity.
|
|
66
|
+
|
|
67
|
+
Trace the first column of the final SELECT through any aliases, CTEs and joins to the selected entity's identifier. Check that the final rows have that entity's grain. A compatible SQL type, a CAST or a matching alias does not establish identity. A reference tag can supply the calculation; reuse its entity only when the request targets the same subject.
|
|
68
|
+
|
|
69
|
+
For example, a reference SQL grouped by `#account_id` computes one value per account. For an account tag, select the project's account entity. For a user tag, return `#user_id` and compute one value per user using verified project fields or a verified account-to-user mapping. Renaming `#account_id` to `#user_id` still returns account IDs. If the intended entity is ambiguous, ask who should receive the tag. If the entity is clear but the mapping or the rule for combining accounts is unknown, ask for that missing information before issuing the write.
|
|
70
|
+
|
|
65
71
|
Return one row per distinct analysis-subject ID, with the tag value in the second column; a list tag requires a native SQL `ARRAY(varchar)` value, not a JSON string or repeated scalar rows. The server infers the tag type from that column, so do not add `selectType`; aggregate repeated subjects in the SQL itself, for example with `array_agg(DISTINCT CAST(value AS varchar))` and `GROUP BY` the subject ID.
|
|
66
72
|
|
|
67
73
|
```json
|
|
68
|
-
{"type":"sql","sql":"SELECT \"#user_id\", 'payer' AS tag_value FROM hive.ta.v_event_1 WHERE ${PartDate:partdate} AND \"$part_event\"='pay'","params":[{"name":"partdate","type":"part_date","recent_day":"1-7"}]}
|
|
74
|
+
{"type":"sql","sql":"SELECT DISTINCT \"#user_id\", 'payer' AS tag_value FROM hive.ta.v_event_1 WHERE ${PartDate:partdate} AND \"$part_event\"='pay'","params":[{"name":"partdate","type":"part_date","recent_day":"1-7"}]}
|
|
69
75
|
```
|
|
70
76
|
|
|
71
77
|
SQL tags support only `${PartDate:name}` dynamic placeholders. Every placeholder requires one `params` item with `type=part_date` and either `recent_day` or `start_time` plus `end_time`. `Text`, `Number`, `Variable`, `Time`, and `Selector` parameters are valid for general SQL analysis but are not valid for SQL tags.
|
|
@@ -74,7 +80,7 @@ For `recent_day`, `0-7` means 最近7天 and includes today; `1-7` means 过去7
|
|
|
74
80
|
`${base_date}` is a separate built-in computation-date macro, not a user-configurable dynamic placeholder. SQL tags may use `${base_date}`, a formatted value such as `${base_date:yyyy-MM-dd}`, or a server-supported offset such as `${base_date:yyyy-MM-dd-1*day}`. Keep the macro in `sql` and do not add it to `params`; it is expanded when the tag is calculated. Expansion produces plain text, so quote the macro when the SQL expression expects a string or date literal:
|
|
75
81
|
|
|
76
82
|
```json
|
|
77
|
-
{"type":"sql","sql":"SELECT \"#user_id\", 'payer' AS tag_value FROM hive.ta.v_event_1 WHERE \"$part_date\"='${base_date:yyyy-MM-dd}' AND \"$part_event\"='pay'"}
|
|
83
|
+
{"type":"sql","sql":"SELECT DISTINCT \"#user_id\", 'payer' AS tag_value FROM hive.ta.v_event_1 WHERE \"$part_date\"='${base_date:yyyy-MM-dd}' AND \"$part_event\"='pay'"}
|
|
78
84
|
```
|
|
79
85
|
|
|
80
86
|
Before writing a SQL tag, use `analysis sql-table list --project-id <project_id> --usage tag_cluster`, then call `analysis sql-table columns --project-id <project_id> --table-ref <table_ref> --usage tag_cluster`. The `tag_cluster` authorized table set is intentionally different from the general analysis SQL table set; do not reuse a table discovered with the default `usage=analysis`.
|