@thinkingai/ae-cli 6.0.48 → 6.0.51
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 +2 -0
- package/README.zh.md +2 -0
- package/dist/{auth-FUM37MHF.js → auth-XZNXFRJS.js} +5 -5
- package/dist/{capability-J4FU4JZW.js → capability-RJZ4KRGP.js} +42 -12
- package/dist/{chunk-LNZBEQXW.js → chunk-4NRCTUZJ.js} +27041 -474
- package/dist/{chunk-VXNMYUXU.js → chunk-57RRFUEZ.js} +23 -7
- package/dist/{chunk-WZ6YVQSF.js → chunk-7FTTULED.js} +1 -1
- package/dist/{chunk-ATSM5XAW.js → chunk-7XGFSUOM.js} +2 -2
- package/dist/{chunk-I4WQAEYB.js → chunk-DVMLWQD4.js} +8 -186
- package/dist/{chunk-CZU3V3DQ.js → chunk-DX5CDO34.js} +27 -6
- package/dist/chunk-EQ255HKO.js +38248 -0
- package/dist/{chunk-BBEFP4SB.js → chunk-HBGADCKA.js} +3 -3
- package/dist/{chunk-QJQZH5GQ.js → chunk-HFGZGYCG.js} +10 -6
- package/dist/{chunk-ECBLHAZO.js → chunk-JOCDD4ON.js} +1 -1
- package/dist/{chunk-TKHSULJT.js → chunk-KPQY44JQ.js} +6 -0
- package/dist/chunk-L2QUIZTS.js +155 -0
- package/dist/{chunk-4P355ZWB.js → chunk-MAPZ7VB6.js} +21 -1
- package/dist/chunk-V2NUHPXF.js +196 -0
- package/dist/{chunk-HPLNYQPM.js → chunk-WEPZ5M3Z.js} +5 -5
- package/dist/{community-report-client-XXWGSBSD.js → community-report-client-CU22W53K.js} +1 -1
- package/dist/{config-EXUGQN5T.js → config-XO3LI3SA.js} +4 -4
- package/dist/context-IFJI3LIT.js +46 -0
- package/dist/{data-integration-4NZ53OMT.js → data-integration-HNGUKFIC.js} +44 -35
- package/dist/index.js +102 -61
- package/dist/{local-data-upload-client-KYOKVYZV.js → local-data-upload-client-GTRIT64F.js} +3 -2
- package/dist/{memory-ATNKZNW5.js → memory-QGPSNCQS.js} +4 -4
- package/dist/{metadata-3J5ZAVMF.js → metadata-JAQW7KGZ.js} +8 -8
- package/dist/{model-E4JMQ4V2.js → model-RNPQXIBI.js} +4 -4
- package/dist/{personal-semantic-preference-32AAJ37M.js → personal-semantic-preference-QCZ2IZTK.js} +11 -8
- package/dist/project-semantic-64JURXKF.js +372 -0
- package/dist/{sync-2GTAKZYX.js → sync-O45NXEQY.js} +10 -9
- package/dist/{te-agent-JB5T3PO7.js → te-agent-K5MSPNHJ.js} +5 -5
- package/dist/{te-analysis-WHYXHRJD.js → te-analysis-KQKCAI5H.js} +1086 -354
- package/dist/{te-community-UDBI672N.js → te-community-4OYU3BDA.js} +4 -4
- package/dist/{te-dataops-ZLYOCXZ4.js → te-dataops-NFIPB6FX.js} +5 -5
- package/dist/{te-engage-DHKNJ5BO.js → te-engage-HSVSRW22.js} +7 -7
- package/dist/{te-kb-WYQWHFSC.js → te-kb-3TS73NO6.js} +454 -194
- package/dist/{te-system-7G6F2LJA.js → te-system-STMHLS5J.js} +12 -7
- package/dist/{te-team-E7FBBXMQ.js → te-team-3I5AOX3N.js} +6 -6
- package/dist/{update-D47BUG25.js → update-RZXLPCRH.js} +4 -4
- package/package.json +21 -14
- package/skills/ae-analysis/SKILL.md +91 -91
- package/skills/ae-analysis/references/adhoc_export.md +11 -18
- package/skills/ae-analysis/references/adhoc_run.md +15 -7
- package/skills/ae-analysis/references/agent_review_detail.md +11 -0
- package/skills/ae-analysis/references/agent_review_evidence.md +46 -0
- package/skills/ae-analysis/references/agent_review_list.md +9 -0
- package/skills/ae-analysis/references/agent_review_preflight.md +96 -0
- package/skills/ae-analysis/references/agent_review_priorities_comparisons.md +76 -0
- package/skills/ae-analysis/references/agent_review_records.md +9 -0
- package/skills/ae-analysis/references/agent_review_retry.md +12 -0
- package/skills/ae-analysis/references/agent_review_review.md +16 -0
- package/skills/ae-analysis/references/agent_review_submit_to_page.md +184 -0
- package/skills/ae-analysis/references/ai_models/attribution.md +29 -0
- package/skills/ae-analysis/references/ai_models/distribution.md +40 -0
- package/skills/ae-analysis/references/ai_models/event.md +108 -0
- package/skills/ae-analysis/references/ai_models/funnel.md +46 -0
- package/skills/ae-analysis/references/ai_models/heat_map.md +26 -0
- package/skills/ae-analysis/references/ai_models/interval.md +20 -0
- package/skills/ae-analysis/references/ai_models/path.md +55 -0
- package/skills/ae-analysis/references/ai_models/prop_analysis.md +43 -0
- package/skills/ae-analysis/references/ai_models/rank_list.md +25 -0
- package/skills/ae-analysis/references/ai_models/retention.md +70 -0
- package/skills/ae-analysis/references/ai_models/revenue.md +28 -0
- package/skills/ae-analysis/references/ai_models/sql.md +74 -0
- package/skills/ae-analysis/references/ai_models/tag.md +19 -0
- package/skills/ae-analysis/references/ai_models.md +32 -473
- package/skills/ae-analysis/references/alert_create.md +7 -7
- package/skills/ae-analysis/references/alert_delete.md +4 -6
- package/skills/ae-analysis/references/alert_detail_list.md +7 -9
- package/skills/ae-analysis/references/alert_get.md +5 -7
- package/skills/ae-analysis/references/alert_job_list.md +4 -6
- package/skills/ae-analysis/references/alert_list.md +6 -8
- package/skills/ae-analysis/references/alert_notice_config_list.md +4 -6
- package/skills/ae-analysis/references/alert_start.md +5 -7
- package/skills/ae-analysis/references/alert_stop.md +5 -7
- package/skills/ae-analysis/references/alert_update.md +8 -8
- package/skills/ae-analysis/references/analysis_data_export.md +72 -0
- package/skills/ae-analysis/references/analysis_data_retrieval.md +32 -196
- package/skills/ae-analysis/references/analysis_gateway_assets.md +23 -180
- package/skills/ae-analysis/references/analysis_interpretation.md +37 -17
- package/skills/ae-analysis/references/asset_abnormal_get.md +0 -1
- package/skills/ae-analysis/references/asset_abnormal_list.md +0 -1
- package/skills/ae-analysis/references/asset_authentication_export.md +4 -0
- package/skills/ae-analysis/references/asset_authentication_list.md +7 -1
- package/skills/ae-analysis/references/asset_authentication_update.md +5 -1
- package/skills/ae-analysis/references/asset_batch_dashboard_schedule_freeze.md +8 -6
- package/skills/ae-analysis/references/asset_batch_delete.md +6 -6
- package/skills/ae-analysis/references/asset_batch_disable_auto_backup.md +4 -5
- package/skills/ae-analysis/references/asset_batch_disable_auto_update.md +5 -6
- package/skills/ae-analysis/references/asset_batch_handover.md +4 -5
- package/skills/ae-analysis/references/asset_batch_info_export.md +4 -5
- package/skills/ae-analysis/references/asset_batch_sql_export.md +5 -6
- package/skills/ae-analysis/references/asset_dependency_list.md +4 -5
- package/skills/ae-analysis/references/asset_export.md +4 -5
- package/skills/ae-analysis/references/asset_impact_list.md +5 -9
- package/skills/ae-analysis/references/asset_lineage_get.md +5 -6
- package/skills/ae-analysis/references/asset_list.md +4 -5
- package/skills/ae-analysis/references/asset_query_history_list.md +4 -8
- package/skills/ae-analysis/references/asset_recent_list.md +0 -1
- package/skills/ae-analysis/references/asset_search.md +12 -9
- package/skills/ae-analysis/references/asset_url_get.md +3 -4
- package/skills/ae-analysis/references/bi_panel_copy.md +2 -2
- package/skills/ae-analysis/references/bi_panel_page_data_export.md +4 -12
- package/skills/ae-analysis/references/bi_panel_page_data_run.md +2 -0
- package/skills/ae-analysis/references/catalog_export.md +4 -17
- package/skills/ae-analysis/references/catalog_list.md +4 -4
- package/skills/ae-analysis/references/check_delete.md +5 -7
- package/skills/ae-analysis/references/check_export.md +11 -11
- package/skills/ae-analysis/references/check_get.md +8 -10
- package/skills/ae-analysis/references/check_list.md +4 -6
- package/skills/ae-analysis/references/check_retry.md +8 -10
- package/skills/ae-analysis/references/check_run.md +2 -4
- package/skills/ae-analysis/references/command_index.md +44 -26
- package/skills/ae-analysis/references/dashboard_report_data_export.md +5 -13
- package/skills/ae-analysis/references/dashboard_report_data_run.md +1 -1
- package/skills/ae-analysis/references/dashboard_update.md +14 -3
- package/skills/ae-analysis/references/datatable_columns_get.md +0 -1
- package/skills/ae-analysis/references/datatable_influence_list.md +0 -1
- package/skills/ae-analysis/references/datatable_version_get.md +0 -1
- package/skills/ae-analysis/references/datatable_version_list.md +0 -1
- package/skills/ae-analysis/references/debug_device_add.md +1 -2
- package/skills/ae-analysis/references/drilldown_entities_export.md +3 -3
- package/skills/ae-analysis/references/drilldown_events_export.md +3 -2
- package/skills/ae-analysis/references/drilldown_user_events_export.md +2 -2
- package/skills/ae-analysis/references/entity_detail_export.md +3 -2
- package/skills/ae-analysis/references/entity_detail_run.md +1 -0
- package/skills/ae-analysis/references/event_blacklist_add.md +5 -7
- package/skills/ae-analysis/references/event_blacklist_list.md +4 -6
- package/skills/ae-analysis/references/event_blacklist_update.md +6 -8
- package/skills/ae-analysis/references/event_changelog_list.md +0 -1
- package/skills/ae-analysis/references/event_create.md +0 -1
- package/skills/ae-analysis/references/event_detail_export.md +3 -2
- package/skills/ae-analysis/references/event_detail_run.md +1 -0
- package/skills/ae-analysis/references/event_export.md +0 -1
- package/skills/ae-analysis/references/event_get.md +0 -1
- package/skills/ae-analysis/references/event_hide_update.md +0 -1
- package/skills/ae-analysis/references/event_influence_list.md +0 -1
- package/skills/ae-analysis/references/event_list.md +0 -1
- package/skills/ae-analysis/references/event_property_bundle_export.md +5 -14
- package/skills/ae-analysis/references/event_property_bundle_import.md +2 -6
- package/skills/ae-analysis/references/event_relation_update.md +0 -1
- package/skills/ae-analysis/references/event_update.md +0 -1
- package/skills/ae-analysis/references/exchange_config_update.md +0 -1
- package/skills/ae-analysis/references/exchange_rate_refresh.md +0 -1
- package/skills/ae-analysis/references/exchange_rule_list.md +0 -1
- package/skills/ae-analysis/references/exchange_rule_update.md +0 -1
- package/skills/ae-analysis/references/exchange_rule_validate.md +0 -1
- package/skills/ae-analysis/references/governance_recommendation_decisions.md +23 -0
- package/skills/ae-analysis/references/governance_recommendation_export.md +108 -0
- package/skills/ae-analysis/references/governance_recommendation_submit.md +41 -0
- package/skills/ae-analysis/references/history_tag_data_drilldown_export.md +4 -4
- package/skills/ae-analysis/references/history_tag_data_export.md +3 -3
- package/skills/ae-analysis/references/ingest_error_list.md +7 -9
- package/skills/ae-analysis/references/ingest_summary.md +6 -8
- package/skills/ae-analysis/references/live_data_export.md +10 -10
- package/skills/ae-analysis/references/live_data_list.md +7 -9
- package/skills/ae-analysis/references/metadata_resolution.md +78 -0
- package/skills/ae-analysis/references/metric_export.md +0 -1
- package/skills/ae-analysis/references/metric_get.md +0 -1
- package/skills/ae-analysis/references/metric_list.md +4 -5
- package/skills/ae-analysis/references/metric_update.md +0 -1
- package/skills/ae-analysis/references/operation_record_export.md +4 -5
- package/skills/ae-analysis/references/operation_record_list.md +4 -5
- package/skills/ae-analysis/references/personal_semantic_preference_list.md +18 -1
- package/skills/ae-analysis/references/plan_change_log_export.md +10 -10
- package/skills/ae-analysis/references/plan_change_log_list.md +4 -6
- package/skills/ae-analysis/references/plan_delete_items.md +2 -4
- package/skills/ae-analysis/references/plan_export.md +9 -9
- package/skills/ae-analysis/references/plan_generate.md +2 -4
- package/skills/ae-analysis/references/plan_get.md +4 -6
- package/skills/ae-analysis/references/plan_import_excel.md +6 -8
- package/skills/ae-analysis/references/plan_save_items.md +2 -4
- package/skills/ae-analysis/references/plan_sync_from_meta.md +4 -6
- package/skills/ae-analysis/references/project_access_detail_get.md +0 -1
- package/skills/ae-analysis/references/project_data_power_get.md +0 -1
- package/skills/ae-analysis/references/project_data_power_list.md +0 -1
- package/skills/ae-analysis/references/project_data_power_upsert.md +0 -1
- package/skills/ae-analysis/references/project_entity_create.md +0 -1
- package/skills/ae-analysis/references/project_entity_event_list.md +0 -1
- package/skills/ae-analysis/references/project_entity_get.md +0 -1
- package/skills/ae-analysis/references/project_entity_list.md +0 -1
- package/skills/ae-analysis/references/project_entity_update.md +0 -1
- package/skills/ae-analysis/references/project_function_list.md +0 -1
- package/skills/ae-analysis/references/project_info_get.md +0 -1
- package/skills/ae-analysis/references/project_info_list.md +0 -1
- package/skills/ae-analysis/references/project_info_update.md +0 -1
- package/skills/ae-analysis/references/project_mark_time_create.md +0 -1
- package/skills/ae-analysis/references/project_mark_time_list.md +0 -1
- package/skills/ae-analysis/references/project_mark_time_update.md +0 -1
- package/skills/ae-analysis/references/project_member_add.md +6 -5
- package/skills/ae-analysis/references/project_member_batch_update.md +0 -1
- package/skills/ae-analysis/references/project_member_candidate_list.md +4 -3
- package/skills/ae-analysis/references/project_member_handover_run.md +2 -3
- package/skills/ae-analysis/references/project_member_list.md +0 -1
- package/skills/ae-analysis/references/project_member_receiver_list.md +0 -1
- package/skills/ae-analysis/references/project_member_update.md +0 -1
- package/skills/ae-analysis/references/project_owner_update.md +0 -1
- package/skills/ae-analysis/references/project_permission_binding_list.md +0 -1
- package/skills/ae-analysis/references/project_role_function_list.md +0 -1
- package/skills/ae-analysis/references/project_role_get.md +0 -1
- package/skills/ae-analysis/references/project_role_list.md +0 -1
- package/skills/ae-analysis/references/project_role_upsert.md +32 -2
- package/skills/ae-analysis/references/project_role_user_list.md +0 -1
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +214 -0
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +93 -0
- package/skills/ae-analysis/references/project_timezone_get.md +0 -1
- package/skills/ae-analysis/references/project_timezone_overview.md +0 -1
- package/skills/ae-analysis/references/project_timezone_update.md +0 -1
- package/skills/ae-analysis/references/project_user_id_items_update.md +0 -1
- package/skills/ae-analysis/references/property_changelog_list.md +0 -1
- package/skills/ae-analysis/references/property_create.md +0 -1
- package/skills/ae-analysis/references/property_export.md +0 -1
- package/skills/ae-analysis/references/property_get.md +0 -1
- package/skills/ae-analysis/references/property_hide_update.md +0 -1
- package/skills/ae-analysis/references/property_influence_list.md +0 -1
- package/skills/ae-analysis/references/property_list.md +3 -4
- package/skills/ae-analysis/references/property_related_events.md +0 -1
- package/skills/ae-analysis/references/property_relation_update.md +0 -1
- package/skills/ae-analysis/references/property_update.md +0 -1
- package/skills/ae-analysis/references/report_create.md +4 -2
- package/skills/ae-analysis/references/report_data_export.md +11 -9
- package/skills/ae-analysis/references/report_data_run.md +14 -7
- package/skills/ae-analysis/references/report_get.md +5 -3
- package/skills/ae-analysis/references/report_list.md +2 -0
- package/skills/ae-analysis/references/report_update.md +5 -3
- package/skills/ae-analysis/references/rule_create.md +5 -6
- package/skills/ae-analysis/references/rule_delete.md +5 -5
- package/skills/ae-analysis/references/rule_list.md +3 -4
- package/skills/ae-analysis/references/rule_schema.md +3 -4
- package/skills/ae-analysis/references/rule_update.md +5 -6
- package/skills/ae-analysis/references/sdk_sample_generate.md +2 -4
- package/skills/ae-analysis/references/sql_table_columns.md +1 -1
- package/skills/ae-analysis/references/super_metadata_batch_create.md +1 -1
- package/skills/ae-analysis/references/super_metadata_batch_edit.md +1 -1
- package/skills/ae-analysis/references/system_member_add.md +1 -2
- package/skills/ae-analysis/references/system_member_status_update.md +1 -1
- package/skills/ae-analysis/references/system_ops_alert_contact_list.md +1 -1
- package/skills/ae-analysis/references/system_ops_alert_contact_test.md +0 -1
- package/skills/ae-analysis/references/system_query_monitor_overview.md +3 -3
- package/skills/ae-analysis/references/system_query_task_export.md +4 -14
- package/skills/ae-analysis/references/system_query_task_get.md +1 -1
- package/skills/ae-analysis/references/system_query_task_list.md +5 -6
- package/skills/ae-analysis/references/system_receiver_address_upsert.md +3 -3
- package/skills/ae-analysis/references/system_receiver_detection_get.md +1 -1
- package/skills/ae-analysis/references/system_third_party_login_disable.md +1 -1
- package/skills/ae-analysis/references/system_usage_trend_export.md +3 -12
- package/skills/ae-analysis/references/user_cluster_list.md +1 -1
- package/skills/ae-analysis/references/user_cluster_member_export.md +4 -4
- package/skills/ae-analysis/references/user_tag_list.md +1 -1
- package/skills/ae-analysis/references/user_tag_member_export.md +4 -4
- package/skills/ae-analysis/references/virtual_event_create.md +10 -5
- package/skills/ae-analysis/references/virtual_event_get.md +0 -1
- package/skills/ae-analysis/references/virtual_property_create.md +0 -1
- package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +0 -1
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +1054 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +112 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +30 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/generate-build-ir.mjs +2735 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/package-wiki-source-zip.mjs +376 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/plan-kb-source-sync.mjs +264 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/precompiled-source.mjs +49 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/upload-kb-sources-concurrently.mjs +200 -0
- package/skills/ae-analysis/scripts/read_results.py +197 -0
- package/skills/ae-analysis-global/SKILL.md +1 -1
- package/skills/ae-capability/SKILL.md +1 -1
- package/skills/ae-community/SKILL.md +1 -1
- package/skills/ae-current-context/SKILL.md +53 -0
- package/skills/ae-data-integration/SKILL.md +5 -4
- package/skills/ae-data-integration/references/lark-bitable-source.md +288 -0
- package/skills/ae-data-integration/references/lark-sheet-source.md +130 -0
- package/skills/ae-data-integration/references/manual-export-source.md +83 -0
- package/skills/ae-data-integration/references/reuse.md +2 -0
- package/skills/ae-data-integration/references/sink-upload.md +32 -0
- package/skills/ae-data-integration/references/tracking-plan.md +4 -1
- package/skills/ae-data-integration/references/ue-mapping.md +2 -2
- package/skills/ae-data-integration-helper/SKILL.md +5 -5
- package/skills/ae-data-integration-helper/references/android_sdk_faq.md +3 -3
- package/skills/ae-data-integration-helper/references/c_sdk_faq.md +3 -3
- package/skills/ae-data-integration-helper/references/cocoscreator_sdk_faq.md +1 -1
- package/skills/ae-data-integration-helper/references/cpp_server_sdk_faq.md +3 -3
- package/skills/ae-data-integration-helper/references/ios_sdk_faq.md +1 -1
- package/skills/ae-data-integration-helper/references/java_sdk_faq.md +3 -3
- package/skills/ae-data-integration-helper/references/javascript_sdk_faq.md +1 -1
- package/skills/ae-data-integration-helper/references/logbus2_guide.md +1 -1
- package/skills/ae-data-integration-helper/references/logbus2_parser_plugin.md +2 -2
- package/skills/ae-data-integration-helper/references/minigame_sdk_faq.md +2 -2
- package/skills/ae-data-integration-helper/references/miniprogram_sdk_faq.md +1 -1
- package/skills/ae-data-integration-helper/references/python_sdk_faq.md +2 -2
- package/skills/ae-data-integration-helper/references/restful_api_notes.md +2 -2
- package/skills/ae-data-integration-helper/references/sdk_log_guide.md +3 -3
- package/skills/ae-data-integration-helper/references/sdk_usage_notes.md +11 -11
- package/skills/ae-data-integration-helper/references/unity_sdk_faq.md +1 -1
- package/skills/ae-dataops/SKILL.md +1 -1
- package/skills/ae-engage/SKILL.md +4 -3
- package/skills/ae-engage/references/build-task-save-guide.md +3 -0
- package/skills/ae-engage/references/flow-metric-update.md +115 -1
- package/skills/ae-engage/references/save-flow.md +3 -0
- package/skills/ae-engage/references/save-task.md +21 -0
- package/skills/ae-engage/references/task-metric-update.md +151 -0
- package/skills/ae-generate-tracking-code/SKILL.md +2 -1
- package/skills/ae-generate-tracking-code/references/client-sdk-insert.md +1 -1
- package/skills/ae-generate-tracking-code/references/datax-config.md +1 -1
- package/skills/ae-generate-tracking-code/references/logbus-config.md +1 -1
- package/skills/ae-generate-tracking-code/references/modes.md +1 -1
- package/skills/ae-generate-tracking-code/references/server-sdk-insert.md +5 -5
- package/skills/ae-generate-tracking-code/references/snippet-delivery.md +3 -3
- package/skills/ae-generate-tracking-plan/SKILL.md +2 -2
- package/skills/ae-generate-tracking-plan/references/te-api.md +1 -0
- package/skills/ae-generate-tracking-plan/references/xlsx-schema.md +3 -2
- package/skills/ae-kb/SKILL.md +41 -2
- package/skills/ae-kb/references/analysis-workflow.md +292 -0
- package/skills/ae-kb/references/source-mutations.md +95 -0
- package/skills/ae-kb-discovery/SKILL.md +5 -1
- package/skills/ae-metadata/SKILL.md +1 -1
- package/skills/ae-migrate-tracking-code/SKILL.md +195 -0
- package/skills/ae-migrate-tracking-code/references/ae-preset-properties.md +76 -0
- package/skills/ae-migrate-tracking-code/references/ir.md +167 -0
- package/skills/ae-migrate-tracking-code/references/mapping-framework.md +112 -0
- package/skills/ae-migrate-tracking-code/references/providers/README.md +58 -0
- package/skills/ae-migrate-tracking-code/references/providers/amplitude.md +208 -0
- package/skills/ae-migrate-tracking-code/references/providers/firebase.md +160 -0
- package/skills/ae-migrate-tracking-code/references/providers/ga4.md +92 -0
- package/skills/ae-migrate-tracking-code/references/providers/mixpanel.md +150 -0
- package/skills/ae-migrate-tracking-code/references/providers/sensors-data.md +146 -0
- package/skills/ae-system/SKILL.md +4 -4
- package/skills/ae-team/SKILL.md +2 -2
- package/skills/ae-use-agent/references/local-agent.md +1 -1
- package/dist/chunk-6KBBAPPP.js +0 -72
- package/skills/ae-analysis/metadata_resolution.md +0 -184
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
withAsyncArtifactLifecycle
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WEPZ5M3Z.js";
|
|
5
5
|
import {
|
|
6
6
|
createCapabilityCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-L2QUIZTS.js";
|
|
8
8
|
import {
|
|
9
9
|
registerCapabilityGatewayRoute
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-KPQY44JQ.js";
|
|
11
|
+
import "./chunk-HFGZGYCG.js";
|
|
12
|
+
import "./chunk-DX5CDO34.js";
|
|
13
13
|
import "./chunk-Y74WTIKJ.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-7XGFSUOM.js";
|
|
15
|
+
import "./chunk-7FTTULED.js";
|
|
16
|
+
import "./chunk-MAPZ7VB6.js";
|
|
17
17
|
|
|
18
18
|
// src/commands/metadata/shared.ts
|
|
19
19
|
function createCapabilityCommand2(config) {
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
getClaudeConfigDir,
|
|
13
13
|
getSandboxModels,
|
|
14
14
|
postSandboxModelSelection
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HBGADCKA.js";
|
|
16
16
|
import "./chunk-Y74WTIKJ.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-7XGFSUOM.js";
|
|
18
|
+
import "./chunk-7FTTULED.js";
|
|
19
|
+
import "./chunk-MAPZ7VB6.js";
|
|
20
20
|
|
|
21
21
|
// src/commands/model/index.ts
|
|
22
22
|
import { existsSync, readFileSync } from "fs";
|
package/dist/{personal-semantic-preference-32AAJ37M.js → personal-semantic-preference-QCZ2IZTK.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createCapabilityCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-L2QUIZTS.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCapabilityGatewayRoute
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-KPQY44JQ.js";
|
|
8
|
+
import "./chunk-HFGZGYCG.js";
|
|
9
|
+
import "./chunk-DX5CDO34.js";
|
|
10
10
|
import "./chunk-Y74WTIKJ.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-7XGFSUOM.js";
|
|
12
|
+
import "./chunk-7FTTULED.js";
|
|
13
|
+
import "./chunk-MAPZ7VB6.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/personal-semantic-preference/shared.ts
|
|
16
16
|
function createPersonalSemanticPreferenceCommand(config) {
|
|
@@ -224,7 +224,10 @@ var personalSemanticPreferenceUpdate = createPersonalSemanticPreferenceCommand({
|
|
|
224
224
|
});
|
|
225
225
|
|
|
226
226
|
// src/commands/personal-semantic-preference/index.ts
|
|
227
|
-
registerCapabilityGatewayRoute("personal-semantic-preference", {
|
|
227
|
+
registerCapabilityGatewayRoute("personal-semantic-preference", {
|
|
228
|
+
gatewayDomain: "analysis",
|
|
229
|
+
capabilityPrefixes: ["business_semantics.personal_context"]
|
|
230
|
+
});
|
|
228
231
|
var commands = [
|
|
229
232
|
personalSemanticPreferenceList,
|
|
230
233
|
personalSemanticPreferenceGet,
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
assertOutputPathAvailable,
|
|
4
|
+
downloadAnalysisArtifact,
|
|
5
|
+
withAsyncArtifactLifecycle
|
|
6
|
+
} from "./chunk-WEPZ5M3Z.js";
|
|
7
|
+
import {
|
|
8
|
+
registerCapabilityGatewayRoute,
|
|
9
|
+
resolveGatewayDomain
|
|
10
|
+
} from "./chunk-KPQY44JQ.js";
|
|
11
|
+
import {
|
|
12
|
+
CapabilityGatewayError,
|
|
13
|
+
dryRunCapability,
|
|
14
|
+
executeCapabilityWithEnvelope,
|
|
15
|
+
validateCapability
|
|
16
|
+
} from "./chunk-HFGZGYCG.js";
|
|
17
|
+
import "./chunk-DX5CDO34.js";
|
|
18
|
+
import "./chunk-Y74WTIKJ.js";
|
|
19
|
+
import "./chunk-7XGFSUOM.js";
|
|
20
|
+
import "./chunk-7FTTULED.js";
|
|
21
|
+
import "./chunk-MAPZ7VB6.js";
|
|
22
|
+
|
|
23
|
+
// src/commands/project-semantic/asset-package/materializer.ts
|
|
24
|
+
import { createHash, randomBytes } from "crypto";
|
|
25
|
+
import { createReadStream } from "fs";
|
|
26
|
+
import {
|
|
27
|
+
appendFile,
|
|
28
|
+
mkdir,
|
|
29
|
+
readFile,
|
|
30
|
+
rename,
|
|
31
|
+
rm,
|
|
32
|
+
stat,
|
|
33
|
+
writeFile
|
|
34
|
+
} from "fs/promises";
|
|
35
|
+
import { createInterface } from "readline";
|
|
36
|
+
import { createGunzip } from "zlib";
|
|
37
|
+
import { basename, dirname, resolve } from "path";
|
|
38
|
+
var MAX_COMPRESSED_BYTES = 64 * 1024 * 1024;
|
|
39
|
+
var MAX_UNCOMPRESSED_BYTES = 512 * 1024 * 1024;
|
|
40
|
+
var MAX_RECORDS = 2e5;
|
|
41
|
+
var SHA256_PATTERN = /^[0-9a-f]{64}$/;
|
|
42
|
+
var REQUIRED_FILES = [
|
|
43
|
+
"manifest.json",
|
|
44
|
+
"indexes/work-units.jsonl",
|
|
45
|
+
"indexes/asset-directory.jsonl",
|
|
46
|
+
"indexes/coverage-batches.jsonl",
|
|
47
|
+
"indexes/definition-families.jsonl",
|
|
48
|
+
"indexes/governance-coverage.jsonl",
|
|
49
|
+
"indexes/asset-containers.jsonl",
|
|
50
|
+
"indexes/dashboard-catalog.jsonl",
|
|
51
|
+
"indexes/report-catalog.jsonl",
|
|
52
|
+
"indexes/metric-catalog.jsonl",
|
|
53
|
+
"catalog/published.jsonl",
|
|
54
|
+
"catalog/active-candidates.jsonl",
|
|
55
|
+
"catalog/rejected-candidates.jsonl"
|
|
56
|
+
];
|
|
57
|
+
async function preflightAssetPackageOutput(args) {
|
|
58
|
+
await assertOutputPathAvailable(args.output, args.force);
|
|
59
|
+
}
|
|
60
|
+
async function materializeProjectSemanticAssetPackage(args) {
|
|
61
|
+
const descriptor = packageDescriptor(args.finalDescriptor);
|
|
62
|
+
const output = resolve(args.output);
|
|
63
|
+
const parent = dirname(output);
|
|
64
|
+
const nonce = `${process.pid}-${randomBytes(6).toString("hex")}`;
|
|
65
|
+
const staging = resolve(parent, `.${basename(output)}.staging-${nonce}`);
|
|
66
|
+
const archive = resolve(parent, `.${basename(output)}.archive-${nonce}.jsonl.gz`);
|
|
67
|
+
const backup = resolve(parent, `.${basename(output)}.backup-${nonce}`);
|
|
68
|
+
let movedExisting = false;
|
|
69
|
+
await assertOutputPathAvailable(output, args.force, {
|
|
70
|
+
run_id: args.runId,
|
|
71
|
+
artifact_id: args.artifactId
|
|
72
|
+
});
|
|
73
|
+
await mkdir(parent, { recursive: true });
|
|
74
|
+
await mkdir(staging, { recursive: false });
|
|
75
|
+
try {
|
|
76
|
+
const download = await downloadAnalysisArtifact(
|
|
77
|
+
args.ctx.host(),
|
|
78
|
+
args.runId,
|
|
79
|
+
args.artifactId,
|
|
80
|
+
archive,
|
|
81
|
+
{ signal: args.signal, ensureReady: false }
|
|
82
|
+
);
|
|
83
|
+
if (download.bytes > MAX_COMPRESSED_BYTES) {
|
|
84
|
+
throw packageError("Asset package archive exceeds 64 MiB.", "ASSET_PACKAGE_ARCHIVE_TOO_LARGE");
|
|
85
|
+
}
|
|
86
|
+
const materialized = await materializeArchive(archive, staging, descriptor);
|
|
87
|
+
if (args.force && await exists(output)) {
|
|
88
|
+
await rename(output, backup);
|
|
89
|
+
movedExisting = true;
|
|
90
|
+
}
|
|
91
|
+
await rename(staging, output);
|
|
92
|
+
if (movedExisting) {
|
|
93
|
+
await rm(backup, { recursive: true, force: true });
|
|
94
|
+
movedExisting = false;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
...args.finalDescriptor,
|
|
98
|
+
output_path: output,
|
|
99
|
+
archive_bytes: download.bytes,
|
|
100
|
+
package_record_count: materialized.recordCount,
|
|
101
|
+
uncompressed_bytes: materialized.uncompressedBytes
|
|
102
|
+
};
|
|
103
|
+
} catch (error) {
|
|
104
|
+
if (movedExisting) {
|
|
105
|
+
await rename(backup, output).catch(() => void 0);
|
|
106
|
+
}
|
|
107
|
+
throw error;
|
|
108
|
+
} finally {
|
|
109
|
+
await rm(archive, { force: true }).catch(() => void 0);
|
|
110
|
+
await rm(staging, { recursive: true, force: true }).catch(() => void 0);
|
|
111
|
+
if (!movedExisting) {
|
|
112
|
+
await rm(backup, { recursive: true, force: true }).catch(() => void 0);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
async function materializeArchive(archive, staging, descriptor) {
|
|
117
|
+
const compressed = await stat(archive);
|
|
118
|
+
if (compressed.size > MAX_COMPRESSED_BYTES) {
|
|
119
|
+
throw packageError("Asset package archive exceeds 64 MiB.", "ASSET_PACKAGE_ARCHIVE_TOO_LARGE");
|
|
120
|
+
}
|
|
121
|
+
const digest = createHash("sha256");
|
|
122
|
+
const lines = createInterface({
|
|
123
|
+
input: createReadStream(archive).pipe(createGunzip()),
|
|
124
|
+
crlfDelay: Infinity
|
|
125
|
+
});
|
|
126
|
+
let recordCount = 0;
|
|
127
|
+
let uncompressedBytes = 0;
|
|
128
|
+
let manifest;
|
|
129
|
+
for await (const line of lines) {
|
|
130
|
+
if (!line.trim()) continue;
|
|
131
|
+
uncompressedBytes += Buffer.byteLength(line, "utf8") + 1;
|
|
132
|
+
if (uncompressedBytes > MAX_UNCOMPRESSED_BYTES) {
|
|
133
|
+
throw packageError(
|
|
134
|
+
"Asset package archive exceeds 512 MiB after decompression.",
|
|
135
|
+
"ASSET_PACKAGE_ARCHIVE_TOO_LARGE"
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
recordCount += 1;
|
|
139
|
+
if (recordCount > MAX_RECORDS) {
|
|
140
|
+
throw packageError("Asset package has too many records.", "ASSET_PACKAGE_RECORD_LIMIT_EXCEEDED");
|
|
141
|
+
}
|
|
142
|
+
digest.update(line, "utf8");
|
|
143
|
+
digest.update("\n", "utf8");
|
|
144
|
+
const record = parseRecord(line);
|
|
145
|
+
const target = resolveRecordPath(staging, record.path);
|
|
146
|
+
await mkdir(dirname(target), { recursive: true });
|
|
147
|
+
const content = `${JSON.stringify(record.content)}
|
|
148
|
+
`;
|
|
149
|
+
if (record.append) {
|
|
150
|
+
await appendFile(target, content, "utf8");
|
|
151
|
+
} else {
|
|
152
|
+
await writeFile(target, content, { encoding: "utf8", flag: "wx" });
|
|
153
|
+
}
|
|
154
|
+
if (record.path === "manifest.json") {
|
|
155
|
+
manifest = asObject(record.content);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
const actualHash = digest.digest("hex");
|
|
159
|
+
if (actualHash !== descriptor.snapshotHash) {
|
|
160
|
+
throw packageError(
|
|
161
|
+
`Asset package content hash mismatch: expected ${descriptor.snapshotHash}, received ${actualHash}.`,
|
|
162
|
+
"ASSET_PACKAGE_HASH_MISMATCH"
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
if (!manifest || !Number.isInteger(Number(manifest.project_id))) {
|
|
166
|
+
throw packageError("Asset package manifest is missing project identity.", "ASSET_PACKAGE_MANIFEST_INVALID");
|
|
167
|
+
}
|
|
168
|
+
if (manifest.schema_version !== "3.0") {
|
|
169
|
+
throw packageError("Project semantic asset package schema 3.0 is required.", "ASSET_PACKAGE_VERSION_MISMATCH");
|
|
170
|
+
}
|
|
171
|
+
for (const required of REQUIRED_FILES) {
|
|
172
|
+
if (!await exists(resolve(staging, required))) {
|
|
173
|
+
throw packageError(`Asset package is missing required file ${required}.`, "ASSET_PACKAGE_MANIFEST_INVALID");
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
await verifyDetailLocators(staging);
|
|
177
|
+
await writeFile(resolve(staging, ".asset-package.json"), JSON.stringify({
|
|
178
|
+
snapshot_id: descriptor.snapshotId,
|
|
179
|
+
snapshot_hash: descriptor.snapshotHash,
|
|
180
|
+
schema_version: "3.0",
|
|
181
|
+
company_id: Number(manifest.company_id),
|
|
182
|
+
project_id: Number(manifest.project_id),
|
|
183
|
+
project_name: typeof manifest.project_name === "string" ? manifest.project_name : void 0,
|
|
184
|
+
record_count: recordCount,
|
|
185
|
+
asset_scope: typeof manifest.asset_scope === "string" ? manifest.asset_scope : "governed",
|
|
186
|
+
exported_asset_count: Number(manifest.exported_asset_count ?? manifest.authenticated_asset_count),
|
|
187
|
+
authenticated_asset_count: Number(manifest.authenticated_asset_count),
|
|
188
|
+
unauthenticated_asset_count: Number(manifest.unauthenticated_asset_count ?? 0),
|
|
189
|
+
truncated: Boolean(manifest.truncated),
|
|
190
|
+
counts: manifest.counts,
|
|
191
|
+
filter_policy: manifest.filter_policy
|
|
192
|
+
}, null, 2), "utf8");
|
|
193
|
+
return { recordCount, uncompressedBytes };
|
|
194
|
+
}
|
|
195
|
+
async function verifyDetailLocators(root) {
|
|
196
|
+
const directory = await readFile(resolve(root, "indexes/asset-directory.jsonl"), "utf8");
|
|
197
|
+
for (const line of directory.split(/\r?\n/)) {
|
|
198
|
+
if (!line.trim()) continue;
|
|
199
|
+
const row = asObject(JSON.parse(line));
|
|
200
|
+
if (!row || row.record_type === "header") continue;
|
|
201
|
+
const detail = await verifyContentLocator(root, row.detail_locator, "Detail");
|
|
202
|
+
const raw = await verifyContentLocator(root, detail.raw_locator, "Raw detail", true);
|
|
203
|
+
assertRawDetailConsistency(detail, raw);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
async function verifyContentLocator(root, value, label, allowSerializerHashMismatch = false) {
|
|
207
|
+
const locator = asObject(value);
|
|
208
|
+
if (!locator || typeof locator.path !== "string" || typeof locator.content_hash !== "string" || !SHA256_PATTERN.test(locator.content_hash)) {
|
|
209
|
+
throw packageError(
|
|
210
|
+
`Asset package contains an invalid ${label.toLowerCase()} locator.`,
|
|
211
|
+
"ASSET_PACKAGE_MANIFEST_INVALID"
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
const target = resolveRecordPath(root, locator.path);
|
|
215
|
+
if (!await exists(target)) {
|
|
216
|
+
throw packageError(`Asset package is missing ${label.toLowerCase()} file ${locator.path}.`, "ASSET_PACKAGE_MANIFEST_INVALID");
|
|
217
|
+
}
|
|
218
|
+
const content = asObject(JSON.parse(await readFile(target, "utf8")));
|
|
219
|
+
if (!content) {
|
|
220
|
+
throw packageError(`${label} file is not a JSON object: ${locator.path}.`, "ASSET_PACKAGE_MANIFEST_INVALID");
|
|
221
|
+
}
|
|
222
|
+
const actualHash = createHash("sha256").update(JSON.stringify(content), "utf8").digest("hex");
|
|
223
|
+
if (actualHash !== locator.content_hash && !allowSerializerHashMismatch) {
|
|
224
|
+
throw packageError(`${label} content hash mismatch for ${locator.path}.`, "ASSET_PACKAGE_HASH_MISMATCH");
|
|
225
|
+
}
|
|
226
|
+
return content;
|
|
227
|
+
}
|
|
228
|
+
function assertRawDetailConsistency(detail, raw) {
|
|
229
|
+
const identityFields = ["evidence_id", "resource_type", "resource_key"];
|
|
230
|
+
for (const field of identityFields) {
|
|
231
|
+
if (detail[field] !== raw[field]) {
|
|
232
|
+
throw packageError(
|
|
233
|
+
`Raw detail ${field} does not match its normalized detail.`,
|
|
234
|
+
"ASSET_PACKAGE_HASH_MISMATCH"
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
const detailDefinitionHash = detail.raw_definition_hash;
|
|
239
|
+
const rawDefinitionHash = raw.raw_definition_hash;
|
|
240
|
+
if (typeof detailDefinitionHash !== "string" || typeof rawDefinitionHash !== "string" || !SHA256_PATTERN.test(detailDefinitionHash) || detailDefinitionHash !== rawDefinitionHash || !Object.prototype.hasOwnProperty.call(raw, "raw_definition")) {
|
|
241
|
+
throw packageError(
|
|
242
|
+
"Raw detail definition identity does not match its normalized detail.",
|
|
243
|
+
"ASSET_PACKAGE_HASH_MISMATCH"
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
function parseRecord(line) {
|
|
248
|
+
const value = JSON.parse(line);
|
|
249
|
+
const record = asObject(value);
|
|
250
|
+
if (!record || typeof record.path !== "string") {
|
|
251
|
+
throw packageError("Asset package record is missing path.", "ASSET_PACKAGE_RECORD_INVALID");
|
|
252
|
+
}
|
|
253
|
+
if (!Object.prototype.hasOwnProperty.call(record, "content")) {
|
|
254
|
+
throw packageError("Asset package record is missing content.", "ASSET_PACKAGE_RECORD_INVALID");
|
|
255
|
+
}
|
|
256
|
+
return {
|
|
257
|
+
path: record.path,
|
|
258
|
+
append: Boolean(record.append),
|
|
259
|
+
content: record.content
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
function resolveRecordPath(root, path) {
|
|
263
|
+
if (path.startsWith("/") || path.includes("\0")) {
|
|
264
|
+
throw packageError(`Invalid asset package path: ${path}`, "ASSET_PACKAGE_PATH_INVALID");
|
|
265
|
+
}
|
|
266
|
+
const target = resolve(root, path);
|
|
267
|
+
const normalizedRoot = `${resolve(root)}/`;
|
|
268
|
+
if (!target.startsWith(normalizedRoot)) {
|
|
269
|
+
throw packageError(`Invalid asset package path: ${path}`, "ASSET_PACKAGE_PATH_INVALID");
|
|
270
|
+
}
|
|
271
|
+
return target;
|
|
272
|
+
}
|
|
273
|
+
function packageDescriptor(descriptor) {
|
|
274
|
+
const snapshotHash = stringValue(descriptor.snapshot_hash, "snapshot_hash").toLowerCase();
|
|
275
|
+
if (!SHA256_PATTERN.test(snapshotHash)) {
|
|
276
|
+
throw packageError("Asset package export returned invalid snapshot_hash.", "ASSET_PACKAGE_DESCRIPTOR_INVALID");
|
|
277
|
+
}
|
|
278
|
+
return {
|
|
279
|
+
snapshotId: typeof descriptor.snapshot_id === "string" ? descriptor.snapshot_id : void 0,
|
|
280
|
+
snapshotHash
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
function asObject(value) {
|
|
284
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return void 0;
|
|
285
|
+
return value;
|
|
286
|
+
}
|
|
287
|
+
function stringValue(value, label) {
|
|
288
|
+
if (typeof value !== "string" || value.trim() === "") {
|
|
289
|
+
throw packageError(`${label} must be a non-empty string.`, "ASSET_PACKAGE_DESCRIPTOR_INVALID");
|
|
290
|
+
}
|
|
291
|
+
return value;
|
|
292
|
+
}
|
|
293
|
+
async function exists(path) {
|
|
294
|
+
try {
|
|
295
|
+
await stat(path);
|
|
296
|
+
return true;
|
|
297
|
+
} catch {
|
|
298
|
+
return false;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
function packageError(message, code) {
|
|
302
|
+
return new CapabilityGatewayError(message, code, 422);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// src/commands/project-semantic/asset-package/export.ts
|
|
306
|
+
var ASSET_PACKAGE_EXPORT_CAPABILITY = "business_semantics.asset_package.export";
|
|
307
|
+
var ASSET_SCOPES = /* @__PURE__ */ new Set(["governed", "collaborative", "all_visible"]);
|
|
308
|
+
var GATEWAY_DOMAIN = "analysis";
|
|
309
|
+
function assetScope(ctx) {
|
|
310
|
+
const value = ctx.str("asset-scope") || "governed";
|
|
311
|
+
if (!ASSET_SCOPES.has(value)) {
|
|
312
|
+
throw new Error("asset-scope must be one of: governed, collaborative, all_visible");
|
|
313
|
+
}
|
|
314
|
+
return value;
|
|
315
|
+
}
|
|
316
|
+
var assetPackageExportCommand = {
|
|
317
|
+
service: "project-semantic",
|
|
318
|
+
resource: "asset-package",
|
|
319
|
+
command: "export",
|
|
320
|
+
description: "Export and materialize a knowledge-ready project asset package for CLI Agent consumption.",
|
|
321
|
+
helpText: "Requires project_semantic_enable=on. A disabled project returns PROJECT_SEMANTIC_DISABLED before creating an export package.",
|
|
322
|
+
flags: [
|
|
323
|
+
{ name: "project-id", type: "number", required: true, desc: "Numeric project ID.", alias: "p", min: 1 },
|
|
324
|
+
{
|
|
325
|
+
name: "asset-scope",
|
|
326
|
+
type: "string",
|
|
327
|
+
required: false,
|
|
328
|
+
desc: "Asset scope: governed, collaborative, or all_visible. Defaults to governed."
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
risk: "read",
|
|
332
|
+
validateInput: (ctx) => validateCapability(
|
|
333
|
+
ctx.host(),
|
|
334
|
+
resolveGatewayDomain(GATEWAY_DOMAIN, GATEWAY_DOMAIN),
|
|
335
|
+
ASSET_PACKAGE_EXPORT_CAPABILITY,
|
|
336
|
+
{ project_id: ctx.num("project-id"), asset_scope: assetScope(ctx) }
|
|
337
|
+
),
|
|
338
|
+
dryRun: (ctx) => dryRunCapability(
|
|
339
|
+
ctx.host(),
|
|
340
|
+
resolveGatewayDomain(GATEWAY_DOMAIN, GATEWAY_DOMAIN),
|
|
341
|
+
ASSET_PACKAGE_EXPORT_CAPABILITY,
|
|
342
|
+
{ project_id: ctx.num("project-id"), asset_scope: assetScope(ctx) }
|
|
343
|
+
),
|
|
344
|
+
execute: async (ctx) => {
|
|
345
|
+
const projectId = ctx.num("project-id");
|
|
346
|
+
const scope = assetScope(ctx);
|
|
347
|
+
const response = await executeCapabilityWithEnvelope(
|
|
348
|
+
ctx.host(),
|
|
349
|
+
resolveGatewayDomain(GATEWAY_DOMAIN, GATEWAY_DOMAIN),
|
|
350
|
+
ASSET_PACKAGE_EXPORT_CAPABILITY,
|
|
351
|
+
{ project_id: projectId, asset_scope: scope }
|
|
352
|
+
);
|
|
353
|
+
return response.data;
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
var projectSemanticAssetPackageExport = withAsyncArtifactLifecycle(assetPackageExportCommand, {
|
|
357
|
+
preflightOutput: ({ output, force }) => preflightAssetPackageOutput({ output, force }),
|
|
358
|
+
materialize: materializeProjectSemanticAssetPackage
|
|
359
|
+
});
|
|
360
|
+
|
|
361
|
+
// src/commands/project-semantic/index.ts
|
|
362
|
+
registerCapabilityGatewayRoute("project-semantic", {
|
|
363
|
+
gatewayDomain: "analysis",
|
|
364
|
+
capabilityPrefixes: ["business_semantics.asset_package"]
|
|
365
|
+
});
|
|
366
|
+
var commands = [
|
|
367
|
+
projectSemanticAssetPackageExport
|
|
368
|
+
];
|
|
369
|
+
var project_semantic_default = commands;
|
|
370
|
+
export {
|
|
371
|
+
project_semantic_default as default
|
|
372
|
+
};
|
|
@@ -11,17 +11,18 @@ import {
|
|
|
11
11
|
splitPushableMcps,
|
|
12
12
|
writeSkillManifestEntries
|
|
13
13
|
} from "./chunk-JQ3ENZZH.js";
|
|
14
|
-
import {
|
|
15
|
-
assertSkillDocumentSize
|
|
16
|
-
} from "./chunk-T6OSFQZD.js";
|
|
17
14
|
import {
|
|
18
15
|
MultiselectCancelled,
|
|
19
16
|
promptMultiselect,
|
|
20
17
|
promptSingleSelect
|
|
21
18
|
} from "./chunk-7K24F7T2.js";
|
|
19
|
+
import {
|
|
20
|
+
assertSkillDocumentSize
|
|
21
|
+
} from "./chunk-T6OSFQZD.js";
|
|
22
22
|
import {
|
|
23
23
|
require_lib
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-DVMLWQD4.js";
|
|
25
|
+
import "./chunk-V2NUHPXF.js";
|
|
25
26
|
import {
|
|
26
27
|
TeAgentApiError,
|
|
27
28
|
TeAgentCredentialsError,
|
|
@@ -29,16 +30,16 @@ import {
|
|
|
29
30
|
postSandboxSyncPull,
|
|
30
31
|
postToMainApp,
|
|
31
32
|
uploadToMainApp
|
|
32
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-HBGADCKA.js";
|
|
33
34
|
import {
|
|
34
35
|
printError
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-DX5CDO34.js";
|
|
36
37
|
import "./chunk-Y74WTIKJ.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-7XGFSUOM.js";
|
|
39
|
+
import "./chunk-7FTTULED.js";
|
|
39
40
|
import {
|
|
40
41
|
__toESM
|
|
41
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-MAPZ7VB6.js";
|
|
42
43
|
|
|
43
44
|
// src/commands/sync/index.ts
|
|
44
45
|
var import_jszip = __toESM(require_lib(), 1);
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
putToMainApp,
|
|
12
12
|
resolveTeClaudeBaseUrl,
|
|
13
13
|
uploadToMainApp
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HBGADCKA.js";
|
|
15
15
|
import {
|
|
16
16
|
buildCapabilityGatewayUrl,
|
|
17
17
|
callCapabilityApi
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HFGZGYCG.js";
|
|
19
19
|
import "./chunk-Y74WTIKJ.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-7XGFSUOM.js";
|
|
21
|
+
import "./chunk-7FTTULED.js";
|
|
22
22
|
import {
|
|
23
23
|
CliValidationError
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MAPZ7VB6.js";
|
|
25
25
|
|
|
26
26
|
// src/commands/te-agent/api-client.ts
|
|
27
27
|
function getAgentApi(ctx, path) {
|