@thinkingai/ae-cli 6.1.30 → 6.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -5
- package/README.zh.md +11 -5
- package/bin/ai-monitor.js +2 -0
- package/dist/ai-monitor-MKMHSSNI.js +32 -0
- package/dist/ai-monitor.js +135 -0
- package/dist/{auth-ADZHUIJR.js → auth-CZHHPZOQ.js} +10 -9
- package/dist/{automation-FD2QZUP6.js → automation-FLCPFMN4.js} +4 -4
- package/dist/{capability-QXFRJYZD.js → capability-64KVJFIA.js} +27 -31
- package/dist/{chunk-YULUBP3R.js → chunk-3ULDJJTZ.js} +1 -1
- package/dist/{chunk-HRUOV6EQ.js → chunk-4XKTRCRK.js} +15 -15
- package/dist/{chunk-JSBLCLFE.js → chunk-5M5LBRR3.js} +1 -1
- package/dist/chunk-6M7ZEDT2.js +182 -0
- package/dist/{chunk-KPQY44JQ.js → chunk-AWW2T2WL.js} +3 -0
- package/dist/chunk-BNBCMCYN.js +563 -0
- package/dist/chunk-CF6JTT2U.js +64 -0
- package/dist/{chunk-CG773QXN.js → chunk-DWBYNGSR.js} +564 -314
- package/dist/{chunk-VDICGXCY.js → chunk-F2VFZUGG.js} +2 -2
- package/dist/{chunk-TFORY6WY.js → chunk-FCAA7I2D.js} +2 -2
- package/dist/{chunk-SOSFRU3O.js → chunk-HTZ2MLYA.js} +47 -21
- package/dist/{chunk-AWVZTN2B.js → chunk-HVMCPKOZ.js} +1 -1
- package/dist/chunk-IDDWEZ7F.js +1285 -0
- package/dist/{chunk-E25OSZLJ.js → chunk-KTJXD27G.js} +2 -2
- package/dist/{chunk-AVXDJAFC.js → chunk-NLEXY2TM.js} +47 -12
- package/dist/{chunk-YVG6QD3V.js → chunk-P7QDCWJ6.js} +98 -7
- package/dist/{chunk-EUFP4M2A.js → chunk-T7WF4HYW.js} +84 -32
- package/dist/{chunk-Y3AM6LIO.js → chunk-TMQGS4TO.js} +15 -10
- package/dist/{compat-check-HERBTQZN.js → compat-check-ZJNCMNQV.js} +2 -2
- package/dist/{config-E3KANXMK.js → config-FSH2NMNZ.js} +25 -12
- package/dist/{context-CDB5H5PD.js → context-YAQG6YQC.js} +2 -2
- package/dist/{evaluation-LR4YDYWL.js → evaluation-2JSF4V47.js} +13 -158
- package/dist/index.js +81 -583
- package/dist/{memory-SNFR5M23.js → memory-VEZZVAAP.js} +4 -4
- package/dist/{metadata-EXQYDZTH.js → metadata-3IWHX3V4.js} +7 -7
- package/dist/{model-KEVCEXWD.js → model-T7H7Q6BG.js} +2 -2
- package/dist/{personal-semantic-preference-ETY3KU2O.js → personal-semantic-preference-YITU23SA.js} +6 -6
- package/dist/{project-semantic-UHRMVOJF.js → project-semantic-MHEXJF3C.js} +15 -13
- package/dist/{sync-XKEBXESC.js → sync-AQHVCSPI.js} +4 -4
- package/dist/{te-agent-S6UQR4IE.js → te-agent-RXI7WOH4.js} +5 -5
- package/dist/{te-analysis-WOFFCIBC.js → te-analysis-CZY74HVF.js} +380 -191
- package/dist/{te-community-R7B6QYOO.js → te-community-DKCYUBCM.js} +6 -6
- package/dist/{te-dataops-KPILYVHA.js → te-dataops-QEH6VE56.js} +3 -3
- package/dist/{te-engage-IAUM6ONX.js → te-engage-WK7WKDKF.js} +6 -6
- package/dist/{te-experiment-TMLRA7B3.js → te-experiment-LH3RPIOE.js} +274 -29
- package/dist/{te-kb-GKWPSLSY.js → te-kb-UPORIOVN.js} +16 -7
- package/dist/{te-system-CYWSK3UN.js → te-system-AL4B4XZL.js} +2 -2
- package/dist/{te-team-ISN52YNG.js → te-team-LLVTO2G4.js} +5 -5
- package/dist/{things-DDQ52Z3Q.js → things-XLMLBYQR.js} +5 -5
- package/dist/{update-CTLNTX35.js → update-7J5UQHSK.js} +3 -3
- package/dist/{workspace-2CKQX2XL.js → workspace-FF2HXJGR.js} +4 -4
- package/package.json +9 -7
- package/skills/ae-ai-monitor/SKILL.md +179 -0
- package/skills/ae-ai-monitor/references/read-commands.md +866 -0
- package/skills/ae-analysis/SKILL.md +10 -4
- package/skills/ae-analysis/references/adhoc_export.md +3 -1
- package/skills/ae-analysis/references/ai_models/path.md +5 -6
- package/skills/ae-analysis/references/ai_models.md +1 -0
- package/skills/ae-analysis/references/analysis_gateway_assets.md +2 -0
- package/skills/ae-analysis/references/asset_search.md +1 -1
- package/skills/ae-analysis/references/bad_case_begin.md +12 -0
- package/skills/ae-analysis/references/bad_case_get.md +12 -0
- package/skills/ae-analysis/references/bad_case_history.md +12 -0
- package/skills/ae-analysis/references/bad_case_list.md +12 -0
- package/skills/ae-analysis/references/bad_case_review.md +51 -0
- package/skills/ae-analysis/references/bad_case_run.md +12 -0
- package/skills/ae-analysis/references/bad_case_submit.md +12 -0
- package/skills/ae-analysis/references/bad_case_submit_to_page.md +12 -0
- package/skills/ae-analysis/references/bad_case_sync_evaluation.md +11 -0
- package/skills/ae-analysis/references/bi_panel_list.md +1 -1
- package/skills/ae-analysis/references/bi_panel_share.md +3 -1
- package/skills/ae-analysis/references/catalog_list.md +2 -0
- package/skills/ae-analysis/references/command_index.md +38 -29
- package/skills/ae-analysis/references/dashboard_daily_report_update.md +2 -0
- package/skills/ae-analysis/references/dashboard_handover.md +3 -1
- package/skills/ae-analysis/references/dashboard_list.md +3 -3
- package/skills/ae-analysis/references/dashboard_report_data_export.md +1 -1
- package/skills/ae-analysis/references/dashboard_share.md +3 -1
- package/skills/ae-analysis/references/dashboard_update.md +3 -2
- package/skills/ae-analysis/references/filter_value_list.md +2 -0
- package/skills/ae-analysis/references/folder_share.md +8 -2
- package/skills/ae-analysis/references/governance_recommendation_run_update.md +3 -1
- package/skills/ae-analysis/references/project_data_power_upsert.md +3 -1
- package/skills/ae-analysis/references/project_mark_time_create.md +2 -0
- package/skills/ae-analysis/references/project_mark_time_update.md +2 -0
- package/skills/ae-analysis/references/project_member_add.md +3 -1
- package/skills/ae-analysis/references/project_member_batch_update.md +3 -1
- package/skills/ae-analysis/references/project_member_handover_run.md +3 -1
- package/skills/ae-analysis/references/project_member_update.md +3 -1
- package/skills/ae-analysis/references/project_owner_update.md +3 -1
- package/skills/ae-analysis/references/project_role_upsert.md +5 -3
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +16 -1
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +14 -1
- package/skills/ae-analysis/references/project_space_share.md +8 -2
- package/skills/ae-analysis/references/property_get.md +2 -0
- package/skills/ae-analysis/references/public_link_list.md +3 -1
- package/skills/ae-analysis/references/query_cancel.md +4 -1
- package/skills/ae-analysis/references/report_data_run.md +1 -1
- package/skills/ae-analysis/references/report_list.md +3 -3
- package/skills/ae-analysis/references/scenario_append.md +2 -2
- package/skills/ae-analysis/references/scenario_collect.md +15 -4
- package/skills/ae-analysis/references/scenario_list.md +2 -1
- package/skills/ae-analysis/references/system_oauth2_update.md +3 -1
- package/skills/ae-analysis/references/system_third_party_login_upsert.md +4 -2
- package/skills/ae-analysis/references/user_tag_create.md +4 -1
- package/skills/ae-analysis/references/user_tag_get.md +2 -0
- package/skills/ae-analysis/references/user_tag_models.md +8 -2
- package/skills/ae-analysis/references/user_tag_update.md +5 -2
- package/skills/ae-analysis/references/virtual_property_create.md +12 -1
- package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +10 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +55 -13
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +2 -2
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +2 -2
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-schema.md +7 -1
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/wait-compile-run.mjs +79 -0
- package/skills/ae-automation/SKILL.md +4 -2
- package/skills/ae-capability/SKILL.md +9 -5
- package/skills/ae-community/SKILL.md +1 -0
- package/skills/ae-dataops/SKILL.md +1 -0
- package/skills/ae-engage/SKILL.md +1 -0
- package/skills/ae-evaluation/SKILL.md +17 -2
- package/skills/ae-experiment/SKILL.md +38 -11
- package/skills/ae-experiment/references/experiment_approval.md +171 -0
- package/skills/ae-experiment/references/manage_experiment.md +11 -2
- package/skills/ae-experiment/references/save_experiment.md +28 -8
- package/skills/ae-experiment/references/save_submit_experiment.md +18 -3
- package/skills/ae-experiment/references/save_submit_external_experiment.md +57 -3
- package/skills/ae-generate-tracking-plan/SKILL.md +5 -0
- package/skills/ae-kb/SKILL.md +5 -3
- package/skills/ae-kb/references/analysis-workflow.md +11 -2
- package/skills/ae-kb/references/query-workflow.md +3 -1
- package/skills/ae-kb/references/versions.md +1 -1
- package/skills/ae-metadata/SKILL.md +1 -0
- package/skills/ae-migrate-tracking-code/SKILL.md +2 -1
- package/skills/ae-team/SKILL.md +1 -1
- package/skills/ae-tracking-matrix/SKILL.md +170 -0
- package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
- package/skills/ae-tracking-matrix/i18n.yaml +12 -0
- package/skills/ae-tracking-matrix/references/ae-capabilities.md +93 -0
- package/skills/ae-tracking-matrix/references/business-semantic-checks.md +30 -0
- package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +256 -0
- package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +213 -0
- package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +407 -0
- package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +218 -0
- package/skills/ae-tracking-matrix/references/categories/casual_music.md +112 -0
- package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +301 -0
- package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +356 -0
- package/skills/ae-tracking-matrix/references/categories/fishing.md +775 -0
- package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +89 -0
- package/skills/ae-tracking-matrix/references/categories/idle_card.md +27 -0
- package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +415 -0
- package/skills/ae-tracking-matrix/references/categories/interactive_video.md +133 -0
- package/skills/ae-tracking-matrix/references/categories/merge.md +639 -0
- package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +406 -0
- package/skills/ae-tracking-matrix/references/categories/mmo_web.md +230 -0
- package/skills/ae-tracking-matrix/references/categories/music.md +137 -0
- package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +414 -0
- package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +199 -0
- package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +158 -0
- package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +546 -0
- package/skills/ae-tracking-matrix/references/categories/rpg.md +195 -0
- package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +115 -0
- package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +151 -0
- package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +260 -0
- package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +232 -0
- package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +359 -0
- package/skills/ae-tracking-matrix/references/categories/tower_defense.md +365 -0
- package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +211 -0
- package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +132 -0
- package/skills/ae-tracking-matrix/references/category-registry.md +77 -0
- package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +230 -0
- package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +406 -0
- package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +128 -0
- package/skills/ae-tracking-matrix/references/eval-cases.md +74 -0
- package/skills/ae-tracking-matrix/references/naming-dict.md +238 -0
- package/skills/ae-tracking-matrix/references/optimization-checklist.md +85 -0
- package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +142 -0
- package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +47 -0
- package/skills/ae-tracking-matrix/references/plan-generation/reference.md +794 -0
- package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +94 -0
- package/skills/ae-tracking-matrix/references/scene-routing.md +80 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +3787 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +827 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +655 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +953 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +1128 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +714 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +1268 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +776 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +182 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +2755 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +1182 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +1300 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +1369 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +1692 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +902 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +763 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +1107 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +1532 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +845 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +228 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +149 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +407 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +163 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +149 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +153 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +232 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +314 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +117 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +148 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +645 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +307 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +347 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +72 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +264 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +566 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +409 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +446 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +557 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +457 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +490 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +523 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +484 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +442 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +391 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +91 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +635 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +113 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +466 -0
- package/skills/ae-tracking-matrix/references/standard-base/README.md +22 -0
- package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +174 -0
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +20 -0
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +7 -0
- package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +14 -0
- package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +370 -0
- package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +47 -0
- package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +37 -0
- package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +27 -0
- package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +23 -0
- package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +14 -0
- package/skills/ae-tracking-matrix/references/standard-base/user_data.md +46 -0
- package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +13 -0
- package/skills/ae-tracking-matrix/references/system-fields.md +297 -0
- package/skills/ae-tracking-matrix/references/te-field-translations.md +1791 -0
- package/skills/ae-tracking-matrix/references/workflows/data-verification.md +232 -0
- package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +829 -0
- package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +355 -0
- package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +283 -0
- package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +168 -0
- package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +205 -0
- package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +75 -0
- package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +36 -0
- package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +107 -0
- package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +114 -0
- package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +53 -0
- package/skills/ae-tracking-matrix/scripts/finalize_plan.py +166 -0
- package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +674 -0
- package/skills/ae-tracking-matrix/scripts/plan_contract.py +200 -0
- package/skills/ae-tracking-matrix/scripts/plan_types.py +60 -0
- package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +169 -0
- package/skills/ae-tracking-matrix/scripts/sync_plan.py +296 -0
- package/skills/ae-tracking-matrix/scripts/upload_plan.py +340 -0
- package/dist/chunk-AMBFK2K3.js +0 -28
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveMemoryApiBaseUrl
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-HVMCPKOZ.js";
|
|
5
|
+
import "./chunk-F2VFZUGG.js";
|
|
6
|
+
import "./chunk-5M5LBRR3.js";
|
|
7
7
|
import {
|
|
8
8
|
CapabilityGatewayError,
|
|
9
9
|
buildCapabilityGatewayUrl,
|
|
10
10
|
callCapabilityApi
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4XKTRCRK.js";
|
|
12
12
|
import "./chunk-Y74WTIKJ.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-HTZ2MLYA.js";
|
|
14
14
|
import "./chunk-4PSTYEG5.js";
|
|
15
15
|
import {
|
|
16
16
|
PermissionError
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
printError,
|
|
7
7
|
printOutput
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3ULDJJTZ.js";
|
|
9
9
|
import {
|
|
10
10
|
buildVersionInstallPlan,
|
|
11
11
|
exactVersion,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
installVersion,
|
|
18
18
|
recordVersionSyncResult,
|
|
19
19
|
rememberBusinessConfig
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DWBYNGSR.js";
|
|
21
21
|
import {
|
|
22
22
|
peekCliToken
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HTZ2MLYA.js";
|
|
24
24
|
import {
|
|
25
25
|
getActiveHost
|
|
26
26
|
} from "./chunk-4PSTYEG5.js";
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
workspaceResourcePath,
|
|
14
14
|
workspaceTargetFlags,
|
|
15
15
|
workspaceTargetPath
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KTJXD27G.js";
|
|
17
17
|
import "./chunk-RK6GLDGI.js";
|
|
18
18
|
import {
|
|
19
19
|
getAgentBuffer
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-F2VFZUGG.js";
|
|
21
|
+
import "./chunk-5M5LBRR3.js";
|
|
22
22
|
import "./chunk-Y74WTIKJ.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-HTZ2MLYA.js";
|
|
24
24
|
import "./chunk-4PSTYEG5.js";
|
|
25
25
|
import {
|
|
26
26
|
CliValidationError
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thinkingai/ae-cli",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.32",
|
|
4
4
|
"description": "CLI tool for ThinkingAI (AE) analytics platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"ae-cli": "bin/ae-cli.js"
|
|
7
|
+
"ae-cli": "bin/ae-cli.js",
|
|
8
|
+
"ai-monitor": "bin/ai-monitor.js"
|
|
8
9
|
},
|
|
9
10
|
"main": "dist/index.js",
|
|
10
11
|
"files": [
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
],
|
|
19
20
|
"scripts": {
|
|
20
21
|
"dev": "tsx src/index.ts",
|
|
21
|
-
"build": "tsup src/index.ts --format esm --outDir dist --clean --config tsup.config.ts && node scripts/copy-tracking-assets.mjs",
|
|
22
|
+
"build": "tsup src/index.ts src/ai-monitor.ts --format esm --outDir dist --clean --config tsup.config.ts && node scripts/copy-tracking-assets.mjs",
|
|
22
23
|
"generate:analysis-skill": "tsx scripts/generate-analysis-skill-index.mts",
|
|
23
24
|
"sync:skill-collaboration": "node scripts/sync-skill-collaboration.mjs",
|
|
24
25
|
"check:skill-collaboration": "node scripts/sync-skill-collaboration.mjs --check",
|
|
@@ -42,15 +43,16 @@
|
|
|
42
43
|
"verify:output-contract": "tsx tests/output-contract.test.ts",
|
|
43
44
|
"verify:analysis-cluster-routing": "node scripts/verify-analysis-cluster-routing.mjs",
|
|
44
45
|
"verify:metadata-capability": "npx tsx test/metadata-capability-commands.test.mjs",
|
|
46
|
+
"verify:ai-monitor-capability": "npx tsx tests/ai-monitor-capability-command.test.ts && node --import tsx --test tests/ai-monitor-read-command.test.ts tests/ai-monitor-entrypoint.test.ts",
|
|
45
47
|
"verify:community-capability": "node test/community-capability-routing.test.mjs",
|
|
46
48
|
"verify:community-report": "npx tsx tests/community-report-standard-v5.test.ts && npx tsx tests/community-report-client.test.ts && npx tsx tests/community-report-framework.test.ts && npx tsx tests/community-data-report-command.test.ts && node test/community-data-report-skill.test.mjs",
|
|
47
49
|
"verify:engage-capability": "tsx test/engage/engage-capability-command.test.mjs && tsx test/engage/semantic-qp-validation.test.mjs && node test/engage/engage-skill-capability.test.mjs",
|
|
48
50
|
"verify:retired-analysis-commands": "node --test test/retired-analysis-commands.test.mjs",
|
|
49
51
|
"verify:retired-api-command": "node --test test/retired-api-command.test.mjs",
|
|
50
52
|
"verify:analysis-common-tools": "node scripts/verify-te-common-tools.mjs",
|
|
51
|
-
"verify:experiment-tools": "node scripts/verify-te-experiment-tools.mjs && node --import tsx test/experiment/experiment-capability-command.test.mjs",
|
|
53
|
+
"verify:experiment-tools": "node scripts/verify-te-experiment-tools.mjs && node --import tsx test/experiment/experiment-capability-command.test.mjs && node --import tsx --test test/experiment/experiment-approval-command.test.mjs",
|
|
52
54
|
"verify:team-tools": "node scripts/verify-te-team-tools.mjs && node --import tsx --test tests/team-run-watch.test.ts test/team-run-start-command.test.mjs",
|
|
53
|
-
"verify:evaluation-tools": "node scripts/verify-evaluation-tools.mjs && node --import tsx tests/evaluation-client.test.ts && node --import tsx tests/evaluation-sandbox-session.test.ts && node --import tsx tests/evaluation-security.test.ts && node --import tsx tests/evaluation-command-contract.test.ts",
|
|
55
|
+
"verify:evaluation-tools": "node scripts/verify-evaluation-tools.mjs && node --import tsx tests/evaluation-client.test.ts && node --import tsx tests/evaluation-sandbox-session.test.ts && node --import tsx tests/evaluation-security.test.ts && node --import tsx tests/evaluation-command-contract.test.ts && node --import tsx --test tests/evaluation-onboarding.test.ts",
|
|
54
56
|
"verify:agent-tools": "node --test test/agent-command-registry.test.mjs && tsx tests/te-agent-credentials.test.ts && tsx tests/te-agent-unified-auth.test.ts && node --import tsx --test tests/te-agent-env-isolation.test.ts && tsx tests/te-agent-conversations.test.ts && tsx scripts/verify-agent-tools.mjs && npm run verify:resource-package && npm run verify:approval && npm run verify:agent-distribution && npm run verify:agent-context && npm run verify:sandbox-tools && npm run verify:notifications",
|
|
55
57
|
"verify:resource-package": "node --import tsx tests/resource-package-command.test.ts && node --import tsx tests/resource-package-cli.test.ts && node --import tsx tests/resource-package-transfer.test.ts && node --import tsx tests/resource-package-skill.test.ts",
|
|
56
58
|
"verify:agent-context": "tsx tests/agent-context-command.test.ts",
|
|
@@ -72,7 +74,7 @@
|
|
|
72
74
|
"verify:page-context": "node --test test/page-context-skill.test.mjs test/page-context-references.test.mjs test/internal-skill-distribution.test.mjs",
|
|
73
75
|
"verify:skill-migration": "node --test test/ae-migrate-tracking-code/migration-regression.test.mjs test/ae-migrate-tracking-code/ir-golden-consistency.test.mjs test/ae-migrate-tracking-code/migrated-signatures.test.mjs",
|
|
74
76
|
"verify:skill-migration-e2e": "node test/ae-migrate-tracking-code/e2e/diff.mjs",
|
|
75
|
-
"verify:tracking-tools": "tsx test/tracking-client.test.mjs && tsx test/tracking-skill-flow.test.mjs && node test/tracking-commands.test.mjs && tsx tests/tracking-display-name-sync.test.ts && tsx tests/local-data-inspect-convert.test.ts && tsx tests/local-data-upload-client.test.ts && tsx tests/local-data-upload-command.test.ts && tsx tests/local-data-encoding-sniff.test.ts && tsx tests/local-data-time-formats.test.ts && tsx tests/local-data-xlsx-dates.test.ts && tsx tests/local-data-xlsx-hidden-sheets.test.ts && tsx tests/local-data-xlsx-formulas.test.ts && tsx tests/local-data-title-rows.test.ts && tsx tests/local-data-xlsx-merged-cells.test.ts && tsx tests/local-data-xlsx-shared-strings.test.ts && tsx tests/local-data-xlsx-namespace-prefix.test.ts && tsx tests/local-data-value-distribution.test.ts && tsx tests/local-data-summary-rows.test.ts && tsx tests/local-data-duplicate-keys.test.ts && tsx tests/local-data-row-balance.test.ts && tsx tests/local-data-eight-types.test.ts && tsx tests/local-data-mapping-extras.test.ts && tsx tests/local-data-plan.test.ts && tsx tests/local-data-handoff.test.ts && tsx tests/local-data-reuse.test.ts && tsx tests/local-data-conflicts-resolutions.test.ts && tsx tests/local-data-parquet.test.ts && tsx tests/runner-variadic-flags.test.ts && node test/local-data-skill.test.mjs",
|
|
77
|
+
"verify:tracking-tools": "tsx test/tracking-client.test.mjs && tsx test/tracking-skill-flow.test.mjs && node test/tracking-commands.test.mjs && node --test test/tracking-plan-preview.test.mjs && tsx tests/tracking-display-name-sync.test.ts && tsx tests/local-data-inspect-convert.test.ts && tsx tests/local-data-upload-client.test.ts && tsx tests/local-data-upload-command.test.ts && tsx tests/local-data-encoding-sniff.test.ts && tsx tests/local-data-time-formats.test.ts && tsx tests/local-data-xlsx-dates.test.ts && tsx tests/local-data-xlsx-hidden-sheets.test.ts && tsx tests/local-data-xlsx-formulas.test.ts && tsx tests/local-data-title-rows.test.ts && tsx tests/local-data-xlsx-merged-cells.test.ts && tsx tests/local-data-xlsx-shared-strings.test.ts && tsx tests/local-data-xlsx-namespace-prefix.test.ts && tsx tests/local-data-value-distribution.test.ts && tsx tests/local-data-summary-rows.test.ts && tsx tests/local-data-duplicate-keys.test.ts && tsx tests/local-data-row-balance.test.ts && tsx tests/local-data-eight-types.test.ts && tsx tests/local-data-mapping-extras.test.ts && tsx tests/local-data-plan.test.ts && tsx tests/local-data-handoff.test.ts && tsx tests/local-data-reuse.test.ts && tsx tests/local-data-conflicts-resolutions.test.ts && tsx tests/local-data-parquet.test.ts && tsx tests/runner-variadic-flags.test.ts && node test/local-data-skill.test.mjs",
|
|
76
78
|
"verify:self-check-overlay": "node test/self-check-overlay.test.mjs",
|
|
77
79
|
"verify:update-check": "tsx tests/compat-check.test.ts && tsx test/update-check.test.mjs && node --import tsx --test tests/cli-config-transport.test.ts",
|
|
78
80
|
"verify:version-sync": "npx tsx tests/version-sync.test.ts && node --import tsx --test tests/compat-check-autosync.test.ts tests/resume-command.test.ts",
|
|
@@ -100,7 +102,7 @@
|
|
|
100
102
|
"verify:capability-api": "npx tsx tests/capability-api.test.ts",
|
|
101
103
|
"verify:community-ux": "npm run build && npx tsx tests/community-ux.test.ts",
|
|
102
104
|
"verify:community-evidence": "node --import tsx tests/community-evidence.test.ts",
|
|
103
|
-
"verify:businesses": "node --import tsx --test tests/business-config.test.ts tests/business-command-filter.test.ts tests/business-cli.test.ts tests/environment-refresh.test.ts tests/business-sandbox-boundary.test.ts"
|
|
105
|
+
"verify:businesses": "node --import tsx --test tests/business-config.test.ts tests/business-command-filter.test.ts tests/business-cli.test.ts tests/environment-refresh.test.ts tests/business-sandbox-boundary.test.ts tests/business-refresh-skills.test.ts"
|
|
104
106
|
},
|
|
105
107
|
"repository": {
|
|
106
108
|
"type": "git",
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ae-ai-monitor
|
|
3
|
+
version: 1.1.1
|
|
4
|
+
description: "Read AI Monitor traces, conversations, formal Bad Traces, overview and Agent/Tool/Model/Skill metrics, cost, security findings, existing diagnosis and investigation reports. Use for scoped observability queries and verified ZIP exports; never creates or cancels analysis."
|
|
5
|
+
metadata:
|
|
6
|
+
requires:
|
|
7
|
+
bins: ["ae-cli"]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# AI Monitor Read Workflows
|
|
11
|
+
|
|
12
|
+
AI Monitor belongs to the Agent component. Local CLI commands and this Skill follow the selected AE environment's Agent availability; an explicitly disabled Agent component hides the commands and removes the CLI-installed Skill. Missing business state retains compatibility with older servers.
|
|
13
|
+
|
|
14
|
+
Use either installed entrypoint; they share the same `@tant/ae-cli` version, host configuration, and CLI token:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
ae-cli ai-monitor trace list
|
|
18
|
+
ai-monitor trace list
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Authenticate with `ae-cli auth login` before running trace commands. Access is limited to the authenticated user's own company and requires `root` or `monitor_admin`. Do not attempt alternate credentials or scopes after a permission denial.
|
|
22
|
+
|
|
23
|
+
For an externally provisioned CLI token, both entrypoints accept `--cli-token-file <path>`. The read-only JSON file must contain `url` and `token`; the explicit file takes precedence over environment credentials and stored accounts. If `--host` is supplied, it must match the file's URL. Invalid credentials fail without falling back to another account. Pass only the file path, never the token value, on the command line. Agent runners can use the same internal `--agent-context` argument with either entrypoint; normal queries do not require it.
|
|
24
|
+
|
|
25
|
+
## Choose the Agent platform and runtime environment
|
|
26
|
+
|
|
27
|
+
`data-token` is an internal key for an Agent platform/framework instance. `report-source` is an internal key for a runtime/cluster environment. Do not guess either key and do not treat a Report Source as a business-agent filter.
|
|
28
|
+
|
|
29
|
+
Discover the account's available choices first when the platform or environment is unknown:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
ai-monitor platform list --format json
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The result contains `platform_name` and nested `environment_name` values. Trace commands accept either these display names or their corresponding IDs:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
ai-monitor trace list --platform "TE Claude Hub" --environment "海外环境"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
When no scope flags are supplied, the CLI automatically selects the only available platform/environment. If there are multiple choices, stop and use the values returned by `platform list`; do not invent keys. If both `--platform` and `--environment` are already known, pass them directly in the target command; do not run `platform list` first. `--platform` and `--environment` cannot be mixed with the advanced compatibility flags `--data-token` and `--report-source`.
|
|
42
|
+
|
|
43
|
+
For machine use, successful commands write a JSON envelope to stdout:
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{"ok":true,"data":{},"meta":{}}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Failures use `{"ok":false,"error":{"type":"...","code":"...","message":"...","hint":"..."},"meta":{}}` and exit nonzero. Keep stdout for JSON only; diagnostics are on stderr. Do not retry 401/403 errors with guessed credentials or another company scope.
|
|
50
|
+
|
|
51
|
+
## List traces
|
|
52
|
+
|
|
53
|
+
Start with a bounded list. The CLI discovers the data scope before execution. The default lookback is seven days and the default page size is 20:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
ai-monitor trace list --jq '.items[] | {trace_id, start_time, status}'
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Use `--start-date YYYY-MM-DD --end-date YYYY-MM-DD` together for an explicit inclusive range. Use `--limit` and `--offset` for pagination. Trace and Conversation lists accept `--sort-by recorded-costs`; recorded amounts sort within fee-unit groups, without summing across currencies. Prefer `--platform` and `--environment`; use `--data-token` and `--report-source` only for backward-compatible, explicitly documented raw keys.
|
|
60
|
+
|
|
61
|
+
## Get one trace
|
|
62
|
+
|
|
63
|
+
Copy an exact `trace_id` from list output:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
ai-monitor trace get --trace-id <trace_id> --platform "<same platform>" --environment "<same environment>"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Reuse the same scope selected for the list request when more than one platform or environment is available. Do not switch scope while resolving a trace ID.
|
|
70
|
+
|
|
71
|
+
The response includes snapshot completeness, limitations, trace metadata, and spans. Treat `TRACE_NOT_FOUND_OR_OUT_OF_SCOPE` as either absent or inaccessible; do not infer that a trace exists in another company.
|
|
72
|
+
|
|
73
|
+
## Count traces
|
|
74
|
+
|
|
75
|
+
Use `trace count` when only the total is needed. It applies the same scope, date, agent, channel, and search filters as `trace list`, but does not fetch trace rows and has no pagination or sorting options:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
ai-monitor trace count --platform "TE Claude Hub" --environment "海外环境" --last-days 7
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
For identical scope and filters, `data.count` is the same total used by `trace list` as `data.page.total`. Use `--jq '.count'` when an agent needs only the number.
|
|
82
|
+
|
|
83
|
+
## List and get conversations
|
|
84
|
+
|
|
85
|
+
Use conversations when the request concerns a multi-turn Agent session rather than one Trace:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
ai-monitor conversation list --platform "TE Claude Hub" --environment "agent007" --last-days 7
|
|
89
|
+
ai-monitor conversation get --conversation-id <te_agent_conversation_id> --platform "TE Claude Hub" --environment "agent007"
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
`conversation list` returns each Conversation ID in `data.items[].te_agent_conversation_id`. Pass that exact value to `conversation get --conversation-id`. The detail response returns the selected ID as `data.conversation_id`; list items do not have a `conversation_id` field.
|
|
93
|
+
|
|
94
|
+
The `--jq` expression runs against `data`, so extract IDs from a bounded list with:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
ai-monitor conversation list --platform "TE Claude Hub" --environment "agent007" --last-days 7 --limit 20 --jq '.items[].te_agent_conversation_id'
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
`conversation list` supports date, Agent, Channel, search, pagination, and sorting options. `conversation get` returns the Trace records belonging to one Conversation. Reuse the same scope when moving from list to get; do not use a Conversation ID as a Trace ID.
|
|
101
|
+
|
|
102
|
+
## Count conversations
|
|
103
|
+
|
|
104
|
+
When the user asks only for a conversation count, use the dedicated count command instead of `conversation list --limit 1`. It runs a count-only query, returns no conversation rows, and accepts the same date, Agent, Channel, and search filters:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
ai-monitor conversation count --platform "TE Claude Hub" --environment "agent007" --start-date 2026-09-28 --end-date 2026-09-28 --jq '.count'
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Always make the scope and date range explicit for a count request when more than one platform/environment is available. Do not retry a successful count by listing rows just to verify the number. A missing scope, 401/403, or 503 is an actionable error; classify it before deciding whether another request is appropriate.
|
|
111
|
+
|
|
112
|
+
## Output and safety
|
|
113
|
+
|
|
114
|
+
- Commands are read-only and return structured JSON by default.
|
|
115
|
+
- Use `--format table` only for human display and `--jq` for machine selection.
|
|
116
|
+
- Keep list calls bounded (`--limit` at most 100) and use `--offset` for additional pages.
|
|
117
|
+
- For automation, run `platform list` once per session and pass the returned display name or ID explicitly when more than one choice exists.
|
|
118
|
+
- For count-only requests, use `conversation count` or `trace count`; do not infer totals from a paginated list.
|
|
119
|
+
- Keep the same platform/environment across related list, count, and get calls, and include the effective date range in the response.
|
|
120
|
+
- Never place `cli-token` in command flags or output.
|
|
121
|
+
- `__default__` is a real Report Source value, not a wildcard.
|
|
122
|
+
|
|
123
|
+
## Advanced filters and formal Bad Traces
|
|
124
|
+
|
|
125
|
+
`trace list/count` and `conversation list/count` also accept `--status`, `--user-cancelled true|false`, `--filter-groups` JSON, and `--quality-flags` JSON. List and count use the same filters. Filters combine with AND; a page filter tree can express nested AND/OR. Conversation filters select Trace rows before aggregating them, so its totals describe the matching Trace subset. See the [complete command reference](references/read-commands.md) for field names and operators.
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
ai-monitor trace count --platform "<platform>" --environment "<environment>" --status STATUS_CODE_ERROR --user-cancelled false --start-date 2026-11-03 --end-date 2026-11-03
|
|
129
|
+
ai-monitor bad-trace list --platform "<platform>" --environment "<environment>" --quality-flags '["l2_infra_instant_death"]' --start-date 2026-11-03 --end-date 2026-11-03 --limit 10
|
|
130
|
+
ai-monitor bad-trace get --platform "<platform>" --environment "<environment>" --trace-id <trace_id>
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Bad Trace queries use the formal warehouse tags and observation date (`pd`). Their date is not Trace start time. `l2_infra_instant_death` is the product's startup-failure indicator, not a confirmed root cause. Do not infer startup failure from any error, abort text, or error Span. Explicit user cancellation is a separate classification based on the product's specific user-cancellation message. Successful final status can coexist with failed intermediate Spans.
|
|
134
|
+
|
|
135
|
+
Trace quality has `available`, `availability` (`available`, `not_found`, or `unavailable`), `flags`, `matched_flags`, `evidence`, and `stats_date`. Neither `not_found` nor `unavailable`, nor a null flag, proves that a tag is false. Without `--quality-flags`, a failed quality-metadata lookup can return the same base data with `QUALITY_METADATA_UNAVAILABLE` in limitations; a Trace snapshot is then `PARTIAL`. When `--quality-flags` is supplied, the query cannot fall back to unfiltered base data and fails if formal quality metadata is unavailable. Preserve completeness, coverage, warnings, and limitations when explaining results. Trace summary Span counts exclude the Agent root while the detail Span array includes it.
|
|
136
|
+
|
|
137
|
+
## Overview, execution, cost and security
|
|
138
|
+
|
|
139
|
+
Use scoped read commands to move from overview to exact observed entities. Copy IDs and names from responses; keep the same scope.
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
ai-monitor overview get --platform "<platform>" --environment "<environment>" --last-days 7
|
|
143
|
+
ai-monitor agent get --platform "<platform>" --environment "<environment>" --agent "<agent name>" --last-days 7
|
|
144
|
+
ai-monitor tool calls --platform "<platform>" --environment "<environment>" --tool-name "<tool name>" --last-days 7 --limit 10
|
|
145
|
+
ai-monitor model list --platform "<platform>" --environment "<environment>" --has-issue true --limit 10
|
|
146
|
+
ai-monitor skill traces --platform "<platform>" --environment "<environment>" --skill-name "<skill name>" --last-days 7 --limit 10
|
|
147
|
+
ai-monitor cost actual-summary --platform "<platform>" --environment "<environment>" --start 2026-11-01 --end 2026-11-04
|
|
148
|
+
ai-monitor security issues --platform "<platform>" --environment "<environment>" --decision pending --limit 10
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Cost intervals are **[start, end)**, at most 90 days; Token totals and recorded monetary amounts are different measures. Preserve monetary units, decimal strings, coverage and unavailable states. `cost report-list` uses inclusive `--period-start/--period-end` to filter existing reports instead. `model list` is the latest snapshot and has no date flags. Security list commands use the exact response cursor fields; do not invent timestamps or mix cursor pairs. Security reads do not review issues, modify rules, or create audit tasks.
|
|
152
|
+
|
|
153
|
+
## Existing diagnosis and investigation tasks
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
ai-monitor diagnosis queue --platform "<platform>" --environment "<environment>" --limit 20
|
|
157
|
+
ai-monitor diagnosis list --platform "<platform>" --environment "<environment>" --entity-type trace --entity-key <trace_id>
|
|
158
|
+
ai-monitor diagnosis get --platform "<platform>" --environment "<environment>" --task-id <task_id>
|
|
159
|
+
ai-monitor diagnosis report --platform "<platform>" --environment "<environment>" --entity-type conversation --entity-key <conversation_id>
|
|
160
|
+
ai-monitor investigation modes --platform "<platform>" --environment "<environment>" --entity-type trace
|
|
161
|
+
ai-monitor investigation list --platform "<platform>" --environment "<environment>" --analysis-mode bad_case_commonality --limit 20
|
|
162
|
+
ai-monitor investigation run-get --platform "<platform>" --environment "<environment>" --case-id <case_id> --run-id <run_id>
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
These commands read existing state and results. They never create, retry, or cancel a diagnosis. Read `diagnosis get` again only when checking an active task; queued/running is not success, and failed/skipped/cancelled is not an empty report. Investigation cases have multiple runs; use the exact run ID for result/status correlation. A completed run may still return partial evidence or limitations. Bad Case commonality uses human-selected Bad/Good samples; it is distinct from formal Bad Trace classification.
|
|
166
|
+
|
|
167
|
+
## Conversation spans and ZIP exports
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
ai-monitor conversation get --conversation-id <conversation_id> --platform "<platform>" --environment "<environment>" --include-spans --span-limit 20 --span-offset 0
|
|
171
|
+
ai-monitor trace export --platform "<platform>" --environment "<environment>" --trace-ids '["<trace_id>"]' --output ./traces.zip
|
|
172
|
+
ai-monitor conversation export --platform "<platform>" --environment "<environment>" --conversation-ids '["<conversation_id>"]' --output ./conversations.zip
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Conversation detail retains `items` and `total`; opt-in spans add `trace_snapshots`, `trace_failures`, `spans_page`, `spans_completeness`, and `spans_limitations`. Pagination can mean PARTIAL/PAGINATED even without query failures. Use the next span offset or bounded ZIP export for more data.
|
|
176
|
+
|
|
177
|
+
Exports accept at most 100 Trace IDs or 20 Conversation IDs (at most 200 Traces per conversation batch). Choose a new local `--output` path. The CLI checks byte length and SHA-256, writes with mode 0600, refuses existing files/symlinks, and prints only file metadata and the manifest. Check partial failures in the manifest even after exit 0. `--validate` and `--dry-run` do not create a file; they are alternative prechecks, not steps to call together. Use smaller batches when backend limits or upstream timeouts are reached.
|
|
178
|
+
|
|
179
|
+
All 64 command paths, parameters, defaults and capability mappings are in the [read command reference](references/read-commands.md). This extends the existing `ae-ai-monitor` Skill and retains both CLI entrypoints.
|