@thinkingai/ae-cli 6.0.60 → 6.0.62
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 +6 -1
- package/README.zh.md +8 -1
- package/bin/runtime-capabilities.json +1 -1
- package/dist/{ai-monitor-FCXSLHAP.js → ai-monitor-X5GL44JT.js} +10 -9
- package/dist/ai-monitor.js +14 -13
- package/dist/{auth-ATK2SLEV.js → auth-SPQ46XQ3.js} +18 -10
- package/dist/{automation-FLCPFMN4.js → automation-7XC3VBZI.js} +87 -12
- package/dist/{capability-6KTSOI7L.js → capability-JZP4KXZC.js} +10 -9
- package/dist/{chunk-OAWPT7VP.js → chunk-2I5SZ5DS.js} +2 -2
- package/dist/{chunk-VRMGHQKE.js → chunk-2VKMHNUU.js} +11 -11
- package/dist/{chunk-2ETRY2CU.js → chunk-6HOM2FOJ.js} +19 -9
- package/dist/{chunk-KTJXD27G.js → chunk-AAN6KBUK.js} +3 -3
- package/dist/{chunk-4PSTYEG5.js → chunk-AMURHMS3.js} +11 -7
- package/dist/{chunk-6M7ZEDT2.js → chunk-BQFLABJQ.js} +11 -7
- package/dist/{chunk-BEYLCUZX.js → chunk-E457FREE.js} +3 -3
- package/dist/{chunk-CF6JTT2U.js → chunk-EFGUBGA6.js} +1 -1
- package/dist/{chunk-5M5LBRR3.js → chunk-ETQXIZFP.js} +15 -8
- package/dist/{chunk-72NJKS7O.js → chunk-F36ORPI6.js} +7 -32
- package/dist/{chunk-5E7MTTFN.js → chunk-F7TCQPQX.js} +23 -9
- package/dist/{chunk-AXTO4FTM.js → chunk-FGGEF7MI.js} +3 -3
- package/dist/{chunk-JEUXDY3B.js → chunk-HQED4YB4.js} +1 -1
- package/dist/{chunk-2F64AZYH.js → chunk-KA5WKR5P.js} +2 -2
- package/dist/{chunk-P7QDCWJ6.js → chunk-LFJ7N36I.js} +5 -1
- package/dist/chunk-N2MAYIRU.js +32 -0
- package/dist/chunk-NNK3JBH4.js +60 -0
- package/dist/{chunk-HTZ2MLYA.js → chunk-PLNS5J33.js} +11 -5
- package/dist/{chunk-HSZAIPUX.js → chunk-PRCHMOWT.js} +7 -5
- package/dist/chunk-PUSFEC6B.js +29 -0
- package/dist/{chunk-Z3Q2AEIN.js → chunk-R2SVAO4G.js} +14 -2
- package/dist/{chunk-SDKW6LYE.js → chunk-RYY5NJK3.js} +3 -3
- package/dist/{chunk-QVRIDN42.js → chunk-UCMO4LKL.js} +2 -2
- package/dist/{chunk-VJUXKVRE.js → chunk-VR2D54AA.js} +2 -2
- package/dist/{chunk-HVMCPKOZ.js → chunk-YIG3L4RC.js} +1 -1
- package/dist/{chunk-LOR4IA26.js → chunk-YJYC5PLL.js} +166 -188
- package/dist/{chunk-F2VFZUGG.js → chunk-ZVUXAHEV.js} +2 -2
- package/dist/{community-report-client-TJVCLZ3K.js → community-report-client-ULRNXLQV.js} +1 -1
- package/dist/{compat-check-XD2U7PZ2.js → compat-check-JD5D77ET.js} +5 -4
- package/dist/{config-U3GDWU6E.js → config-IIMRATTP.js} +7 -6
- package/dist/{context-YAQG6YQC.js → context-BXHIPIIX.js} +8 -6
- package/dist/{data-integration-QE37EQ3A.js → data-integration-VRJQ3HVK.js} +7 -6
- package/dist/{evaluation-2JSF4V47.js → evaluation-Q3AIGFOG.js} +5 -5
- package/dist/index.js +49 -43
- package/dist/{local-data-upload-client-KCMG6J62.js → local-data-upload-client-YTWMAAGE.js} +1 -1
- package/dist/{memory-WEB27VI6.js → memory-B44LY27L.js} +6 -7
- package/dist/{metadata-7FYE4234.js → metadata-ZVPG2MIA.js} +10 -9
- package/dist/{model-T7H7Q6BG.js → model-ANZBYVST.js} +4 -5
- package/dist/{personal-semantic-preference-O6VXM74A.js → personal-semantic-preference-YNCV4QG3.js} +45 -14
- package/dist/{project-semantic-2GGFJWW6.js → project-semantic-E7ZAQL5S.js} +9 -8
- package/dist/{sync-ULBB7WO5.js → sync-Y4OZRQAY.js} +9 -9
- package/dist/{te-agent-6RMF7LUV.js → te-agent-RKAUTYJZ.js} +303 -17
- package/dist/{te-analysis-HSYC7GNV.js → te-analysis-7N5VC4JB.js} +25 -20
- package/dist/{te-community-FLKZGQKB.js → te-community-SIA2UHTS.js} +13 -11
- package/dist/{te-dataops-OQQGTCUA.js → te-dataops-5MJQCODU.js} +13 -11
- package/dist/{te-engage-RIEBHL5T.js → te-engage-ZTLOMKO3.js} +73 -20
- package/dist/{te-kb-4HG2FMHJ.js → te-kb-LDL3MF2Y.js} +107 -25
- package/dist/{te-system-AL4B4XZL.js → te-system-473I5O53.js} +6 -7
- package/dist/{te-team-5O4UVUWE.js → te-team-JOWHCMZA.js} +92 -10
- package/dist/{things-TSJ64GBT.js → things-DOQ2L3O2.js} +9 -8
- package/dist/{update-Q5LURAWV.js → update-KUS6TCPB.js} +8 -6
- package/dist/{workspace-FF2HXJGR.js → workspace-MJFPIV7C.js} +6 -7
- package/package.json +6 -3
- package/skills/ae-agent/SKILL.md +19 -5
- package/skills/ae-agent/references/a2a.md +103 -0
- package/skills/ae-agent/references/command_index.md +11 -0
- package/skills/ae-analysis/SKILL.md +35 -23
- package/skills/ae-analysis/references/analysis_data_retrieval.md +1 -1
- package/skills/ae-analysis/references/asset_authentication_export.md +1 -1
- package/skills/ae-analysis/references/asset_authentication_update.md +6 -2
- package/skills/ae-analysis/references/bad_case_review.md +4 -4
- package/skills/ae-analysis/references/command_index.md +7 -7
- package/skills/ae-analysis/references/governance_recommendation_export.md +2 -2
- package/skills/ae-analysis/references/personal_semantic_preference_add.md +9 -1
- package/skills/ae-analysis/references/personal_semantic_preference_delete.md +2 -0
- package/skills/ae-analysis/references/personal_semantic_preference_get.md +2 -0
- package/skills/ae-analysis/references/personal_semantic_preference_list.md +10 -2
- package/skills/ae-analysis/references/personal_semantic_preference_update.md +8 -0
- package/skills/ae-analysis/references/project_owner_update.md +5 -1
- package/skills/ae-analysis/references/scenario_evaluation.md +17 -1
- package/skills/ae-analysis/references/scenario_list.md +5 -6
- package/skills/ae-automation/SKILL.md +6 -2
- package/skills/ae-automation/references/cli.md +9 -3
- package/skills/ae-capability/SKILL.md +8 -4
- package/skills/ae-engage/SKILL.md +6 -1
- package/skills/ae-engage/references/common-metric.md +47 -1
- package/skills/ae-engage/references/flow-metric-update.md +1 -1
- package/skills/ae-engage/references/task-metric-update.md +1 -1
- package/skills/ae-kb/SKILL.md +11 -7
- package/skills/ae-kb/references/publication.md +45 -0
- package/skills/ae-kb/references/query-workflow.md +5 -1
- package/skills/ae-team/SKILL.md +7 -3
- package/skills/ae-team/references/copy-to-personal.md +7 -0
- package/skills/ae-team/references/promote.md +7 -0
- package/skills/ae-team/references/update.md +3 -3
- package/dist/chunk-Y74WTIKJ.js +0 -10
- package/skills/ae-tracking-matrix/SKILL.md +0 -170
- 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 +0 -12
- package/skills/ae-tracking-matrix/references/ae-capabilities.md +0 -93
- package/skills/ae-tracking-matrix/references/business-semantic-checks.md +0 -30
- package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +0 -256
- package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +0 -213
- package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +0 -407
- package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +0 -218
- package/skills/ae-tracking-matrix/references/categories/casual_music.md +0 -112
- package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +0 -301
- package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +0 -356
- package/skills/ae-tracking-matrix/references/categories/fishing.md +0 -775
- package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +0 -89
- package/skills/ae-tracking-matrix/references/categories/idle_card.md +0 -27
- package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +0 -415
- package/skills/ae-tracking-matrix/references/categories/interactive_video.md +0 -133
- package/skills/ae-tracking-matrix/references/categories/merge.md +0 -639
- package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +0 -406
- package/skills/ae-tracking-matrix/references/categories/mmo_web.md +0 -230
- package/skills/ae-tracking-matrix/references/categories/music.md +0 -137
- package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +0 -414
- package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +0 -199
- package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +0 -158
- package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +0 -546
- package/skills/ae-tracking-matrix/references/categories/rpg.md +0 -195
- package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +0 -115
- package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +0 -151
- package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +0 -260
- package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +0 -232
- package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +0 -359
- package/skills/ae-tracking-matrix/references/categories/tower_defense.md +0 -365
- package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +0 -211
- package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +0 -132
- package/skills/ae-tracking-matrix/references/category-registry.md +0 -77
- package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +0 -230
- package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +0 -406
- package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +0 -128
- package/skills/ae-tracking-matrix/references/eval-cases.md +0 -74
- package/skills/ae-tracking-matrix/references/naming-dict.md +0 -238
- package/skills/ae-tracking-matrix/references/optimization-checklist.md +0 -85
- package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +0 -142
- package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +0 -47
- package/skills/ae-tracking-matrix/references/plan-generation/reference.md +0 -794
- package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +0 -94
- package/skills/ae-tracking-matrix/references/scene-routing.md +0 -80
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +0 -3787
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +0 -827
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +0 -655
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +0 -953
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +0 -1128
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +0 -714
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +0 -1268
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +0 -776
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +0 -182
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +0 -2755
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +0 -1182
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +0 -1300
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +0 -1369
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +0 -1692
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +0 -902
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +0 -763
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +0 -1107
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +0 -1532
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +0 -845
- package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +0 -228
- package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +0 -149
- package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +0 -407
- package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +0 -163
- package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +0 -149
- package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +0 -153
- package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +0 -232
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +0 -314
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +0 -117
- package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +0 -148
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +0 -645
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +0 -307
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +0 -347
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +0 -72
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +0 -264
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +0 -566
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +0 -409
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +0 -446
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +0 -557
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +0 -457
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +0 -490
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +0 -523
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +0 -484
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +0 -442
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +0 -391
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +0 -91
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +0 -635
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +0 -113
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +0 -466
- package/skills/ae-tracking-matrix/references/standard-base/README.md +0 -22
- package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +0 -174
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +0 -20
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +0 -7
- package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +0 -14
- package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +0 -370
- package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +0 -47
- package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +0 -37
- package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +0 -27
- package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +0 -23
- package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +0 -14
- package/skills/ae-tracking-matrix/references/standard-base/user_data.md +0 -46
- package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +0 -13
- package/skills/ae-tracking-matrix/references/system-fields.md +0 -297
- package/skills/ae-tracking-matrix/references/te-field-translations.md +0 -1791
- package/skills/ae-tracking-matrix/references/workflows/data-verification.md +0 -232
- package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +0 -829
- package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +0 -355
- package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +0 -283
- package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +0 -168
- package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +0 -205
- package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +0 -75
- package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +0 -36
- package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +0 -107
- package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +0 -114
- package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +0 -53
- package/skills/ae-tracking-matrix/scripts/finalize_plan.py +0 -166
- package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +0 -674
- package/skills/ae-tracking-matrix/scripts/plan_contract.py +0 -200
- package/skills/ae-tracking-matrix/scripts/plan_types.py +0 -60
- package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +0 -169
- package/skills/ae-tracking-matrix/scripts/sync_plan.py +0 -296
- package/skills/ae-tracking-matrix/scripts/upload_plan.py +0 -340
package/README.md
CHANGED
|
@@ -123,7 +123,7 @@ The table covers every current root command individually. Use `ae-cli --help` fo
|
|
|
123
123
|
| Analysis and projects | `analysis-governance` | Data-asset search, lineage, impact analysis, certification, and governance |
|
|
124
124
|
| Analysis and projects | `project` | Project information, members, roles, permissions, entities, time zones, and handover settings |
|
|
125
125
|
| Analysis and projects | `metadata` | Capability-backed data-table, property, and dimension-table binding operations |
|
|
126
|
-
| Analysis and projects | `personal-semantic-preference` |
|
|
126
|
+
| Analysis and projects | `personal-semantic-preference` | Current-user semantic preferences for a project or across projects (`--project-id -1`) |
|
|
127
127
|
| Analysis and projects | `project-semantic` | Asset-package export for building a project knowledge base |
|
|
128
128
|
| Observability | `ai-monitor` | Read traces, conversations, Bad Traces, metrics, cost, security and existing diagnosis reports; export verified ZIPs ([guide](skills/ae-ai-monitor/SKILL.md)) |
|
|
129
129
|
| Data and tracking | `tracking` | Tracking plans, SDK samples, checks, ingestion diagnostics, code generation, and bundled wiki |
|
|
@@ -303,6 +303,8 @@ ae-cli kb +ask-status --execution-id <id>
|
|
|
303
303
|
|
|
304
304
|
Name-based management commands accept optional `--scope personal|company`; omit it to keep the legacy personal-to-company lookup. For Schema and Compile, prefer the model record `id` from `ae-cli agent +list-models`; historical `modelId` and `modelId::scope` remain compatible, while `displayName` is not a stable reference.
|
|
305
305
|
|
|
306
|
+
With a supporting Host, use `kb +schema --content-language ko` to select the content language. Add `--rewrite-language` to change the language while retaining the existing guidelines. Use `kb +compile --content-language ko` to check the working language before compiling.
|
|
307
|
+
|
|
306
308
|
`kb +import` accepts a compiled Markdown ZIP up to 50 MB with root `index.md` and `wiki/**/*.md` pages. It returns `{requestId, status: "queued"}` immediately; use `ae-cli kb +import-status --request-id <requestId>` to read `queued`, `running`, `succeeded`, or `failed`. A succeeded personal read-only snapshot supports list, Index/Wiki, grep/read, Ask, and delete operations; source, Schema, usage, compile, member/settings, ownership transfer, and company publication are unavailable.
|
|
307
309
|
|
|
308
310
|
External Agents can use deterministic retrieval without a server-side LLM:
|
|
@@ -430,3 +432,6 @@ npm run verify:install
|
|
|
430
432
|
## License
|
|
431
433
|
|
|
432
434
|
MIT
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
Use `ae-cli agent a2a +card --url <A2A-link>` to discover authorized workspaces and models, then pass `--space-id <id>` and `--model <id>` to `agent a2a +send`. Use `agent a2a list`, `cancel`, and `delete-context` to manage tasks and conversations. See the [A2A command reference](skills/ae-agent/references/a2a.md).
|
package/README.zh.md
CHANGED
|
@@ -127,7 +127,7 @@ ae-cli capability list --domain analysis --jq '.capabilities[] | .id'
|
|
|
127
127
|
| 分析与项目 | `analysis-governance` | 数据资产搜索、血缘、影响分析、认证和治理 |
|
|
128
128
|
| 分析与项目 | `project` | 项目信息、成员、角色、权限、实体、时区和交接配置 |
|
|
129
129
|
| 分析与项目 | `metadata` | 基于 Capability Gateway 的数据表、属性及维度表绑定 |
|
|
130
|
-
| 分析与项目 | `personal-semantic-preference` |
|
|
130
|
+
| 分析与项目 | `personal-semantic-preference` | 当前用户的项目内或跨项目个人语义偏好(`--project-id -1`) |
|
|
131
131
|
| 分析与项目 | `project-semantic` | 导出构建项目知识库所需的资产包 |
|
|
132
132
|
| 可观测性 | `ai-monitor` | 查询 Trace、会话、Bad Trace、指标、成本、安全与已有诊断报告,导出校验后的 ZIP([指南](skills/ae-ai-monitor/SKILL.md)) |
|
|
133
133
|
| 数据与埋点 | `tracking` | 埋点方案、SDK 示例、检查、采集诊断、代码生成和内置 Wiki |
|
|
@@ -307,6 +307,8 @@ ae-cli kb +ask-status --execution-id <id>
|
|
|
307
307
|
|
|
308
308
|
按名称管理知识库的命令都支持可选 `--scope personal|company`;省略时保留 personal 到 company 的旧查找顺序。Schema 与 Compile 优先使用 `ae-cli agent +list-models` 返回的模型记录 `id`;历史 `modelId` 和 `modelId::scope` 仍兼容,`displayName` 不是稳定引用。
|
|
309
309
|
|
|
310
|
+
配套 Host 支持后,可用 `kb +schema --content-language ko` 指定知识库内容语言。添加 `--rewrite-language` 可在保留现有规则的基础上改写语言。用 `kb +compile --content-language ko` 可在编译前核对工作准则的语言。
|
|
311
|
+
|
|
310
312
|
`kb +import` 接受最大 50 MB 的编译后 Markdown ZIP,根目录必须包含 `index.md`,页面放在 `wiki/**/*.md`。命令立即返回 `{requestId, status: "queued"}`;通过 `ae-cli kb +import-status --request-id <requestId>` 查询 `queued`、`running`、`succeeded` 或 `failed`。导入成功后可执行列表、Index/Wiki、grep/read、Ask 和删除;个人只读快照不支持来源、Schema、用量、编译、成员/设置、所有权转移和公司发布。
|
|
311
313
|
|
|
312
314
|
外部 Agent 可以使用不依赖服务端 LLM 的确定性检索:
|
|
@@ -431,3 +433,8 @@ npm run verify:install
|
|
|
431
433
|
## 许可证
|
|
432
434
|
|
|
433
435
|
MIT
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
### 通过 A2A 调用 Agent
|
|
439
|
+
|
|
440
|
+
先登录目标部署,再用 `ae-cli agent a2a +card --url <A2A-link>` 查看可用空间和模型;调用 `agent a2a +send` 时可指定 `--space-id <id>` 和 `--model <id>`。用 `agent a2a +get` 查询结果,`list`、`cancel` 和 `delete-context` 管理任务及会话。CLI 自动使用当前用户的授权。详见 [A2A 命令参考](skills/ae-agent/references/a2a.md)。
|
|
@@ -9,16 +9,17 @@ import {
|
|
|
9
9
|
traceCount,
|
|
10
10
|
traceGet,
|
|
11
11
|
traceList
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-FGGEF7MI.js";
|
|
13
|
+
import "./chunk-E457FREE.js";
|
|
14
14
|
import "./chunk-AWW2T2WL.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-VR2D54AA.js";
|
|
16
|
+
import "./chunk-6HOM2FOJ.js";
|
|
17
|
+
import "./chunk-NNK3JBH4.js";
|
|
18
|
+
import "./chunk-YJYC5PLL.js";
|
|
19
|
+
import "./chunk-PUSFEC6B.js";
|
|
20
|
+
import "./chunk-PLNS5J33.js";
|
|
21
|
+
import "./chunk-AMURHMS3.js";
|
|
22
|
+
import "./chunk-R2SVAO4G.js";
|
|
22
23
|
export {
|
|
23
24
|
conversationCount,
|
|
24
25
|
conversationGet,
|
package/dist/ai-monitor.js
CHANGED
|
@@ -3,25 +3,26 @@ import {
|
|
|
3
3
|
configureBusinessCommands,
|
|
4
4
|
parseProgram,
|
|
5
5
|
runCommand
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-2VKMHNUU.js";
|
|
7
|
+
import "./chunk-EFGUBGA6.js";
|
|
8
|
+
import "./chunk-ETQXIZFP.js";
|
|
9
9
|
import {
|
|
10
10
|
ai_monitor_default
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-FGGEF7MI.js";
|
|
12
|
+
import "./chunk-LFJ7N36I.js";
|
|
13
|
+
import "./chunk-E457FREE.js";
|
|
14
14
|
import "./chunk-AWW2T2WL.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-VR2D54AA.js";
|
|
16
|
+
import "./chunk-6HOM2FOJ.js";
|
|
17
|
+
import "./chunk-NNK3JBH4.js";
|
|
18
|
+
import "./chunk-YJYC5PLL.js";
|
|
19
|
+
import "./chunk-PUSFEC6B.js";
|
|
20
|
+
import "./chunk-PLNS5J33.js";
|
|
21
|
+
import "./chunk-AMURHMS3.js";
|
|
21
22
|
import {
|
|
22
23
|
readExternalCliToken,
|
|
23
24
|
setExternalCliTokenFile
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-R2SVAO4G.js";
|
|
25
26
|
|
|
26
27
|
// src/ai-monitor.ts
|
|
27
28
|
import { Command as CommanderCommand, Option } from "commander";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
environmentRefreshOutput,
|
|
4
4
|
invalidateBusinessSkillSynchronization,
|
|
5
5
|
refreshEnvironmentAfterLogin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PRCHMOWT.js";
|
|
7
7
|
import {
|
|
8
8
|
MultiselectCancelled,
|
|
9
9
|
promptSingleSelect
|
|
@@ -14,15 +14,17 @@ import {
|
|
|
14
14
|
} from "./chunk-6ZIQV5GW.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveHost
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KA5WKR5P.js";
|
|
18
18
|
import {
|
|
19
19
|
printError,
|
|
20
20
|
printOutput
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VR2D54AA.js";
|
|
22
22
|
import {
|
|
23
|
-
getLocalCliPackageInfo,
|
|
24
23
|
runHostCompatCheck
|
|
25
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YJYC5PLL.js";
|
|
25
|
+
import {
|
|
26
|
+
getLocalCliPackageInfo
|
|
27
|
+
} from "./chunk-PUSFEC6B.js";
|
|
26
28
|
import {
|
|
27
29
|
CliTokenValidationUnavailableError,
|
|
28
30
|
CredentialStoreUnreadableError,
|
|
@@ -32,25 +34,26 @@ import {
|
|
|
32
34
|
clearAllCredentials,
|
|
33
35
|
clearCliTokenCache,
|
|
34
36
|
getActiveCredential,
|
|
37
|
+
internalCallSourceHeaders,
|
|
35
38
|
listCredentials,
|
|
36
39
|
mintCliToken,
|
|
37
40
|
removeActiveCredential,
|
|
38
41
|
saveCredential,
|
|
39
42
|
updateCredentialMetadata,
|
|
40
43
|
validateCliTokenOnServer
|
|
41
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-PLNS5J33.js";
|
|
42
45
|
import {
|
|
43
46
|
getFallbackCliToken,
|
|
44
47
|
loadConfig,
|
|
45
48
|
saveConfig
|
|
46
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-AMURHMS3.js";
|
|
47
50
|
import {
|
|
48
51
|
ExternalCliTokenError,
|
|
49
52
|
PermissionError,
|
|
50
53
|
logger,
|
|
51
54
|
normalizeUrl,
|
|
52
55
|
readExternalCliToken
|
|
53
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-R2SVAO4G.js";
|
|
54
57
|
|
|
55
58
|
// src/core/device-auth.ts
|
|
56
59
|
import { execFileSync } from "child_process";
|
|
@@ -103,7 +106,7 @@ async function authorizeDevice(host) {
|
|
|
103
106
|
try {
|
|
104
107
|
resp = await fetch(url, {
|
|
105
108
|
method: "POST",
|
|
106
|
-
headers: { "Content-Type": "application/json" }
|
|
109
|
+
headers: { "Content-Type": "application/json", ...internalCallSourceHeaders() }
|
|
107
110
|
});
|
|
108
111
|
} catch (e) {
|
|
109
112
|
throw new Error(`Device authorize request failed: ${e.message}`);
|
|
@@ -134,7 +137,7 @@ async function pollDeviceToken(host, deviceCode) {
|
|
|
134
137
|
try {
|
|
135
138
|
resp = await fetch(url, {
|
|
136
139
|
method: "POST",
|
|
137
|
-
headers: { "Content-Type": "application/json" },
|
|
140
|
+
headers: { "Content-Type": "application/json", ...internalCallSourceHeaders() },
|
|
138
141
|
body: JSON.stringify({ device_code: deviceCode })
|
|
139
142
|
});
|
|
140
143
|
} catch (e) {
|
|
@@ -283,6 +286,11 @@ async function validateExistingCliToken(host, cliToken, external = false) {
|
|
|
283
286
|
return { valid: true, trusted: false, details: await validateCliTokenOnServer(host, cliToken) };
|
|
284
287
|
} catch (error) {
|
|
285
288
|
if (error instanceof CliTokenValidationUnavailableError) {
|
|
289
|
+
if (external && readExternalCliToken(host)?.taskContext) {
|
|
290
|
+
printError("auth", error.message, "Retry when the gateway is available; managed execution credentials cannot be trusted without validation.", "CLI_TOKEN_VALIDATION_UNAVAILABLE");
|
|
291
|
+
process.exitCode = 1;
|
|
292
|
+
return { valid: false, trusted: false, details: {} };
|
|
293
|
+
}
|
|
286
294
|
logger.warn(`auth status: ${error.message}; trusting the stored CLI token for compatibility`);
|
|
287
295
|
return { valid: true, trusted: true, details: {} };
|
|
288
296
|
}
|
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveWorkspaceTarget
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AAN6KBUK.js";
|
|
5
5
|
import {
|
|
6
6
|
currentAgentSpaceId
|
|
7
7
|
} from "./chunk-RK6GLDGI.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-ZVUXAHEV.js";
|
|
9
|
+
import {
|
|
10
|
+
detectCliLocale
|
|
11
|
+
} from "./chunk-N2MAYIRU.js";
|
|
9
12
|
import {
|
|
10
13
|
TeAgentApiError,
|
|
11
14
|
deleteFromMainApp,
|
|
12
15
|
getFromMainApp,
|
|
13
16
|
patchToMainApp,
|
|
14
17
|
postToMainApp
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import
|
|
19
|
-
|
|
18
|
+
} from "./chunk-ETQXIZFP.js";
|
|
19
|
+
import "./chunk-PLNS5J33.js";
|
|
20
|
+
import "./chunk-AMURHMS3.js";
|
|
21
|
+
import {
|
|
22
|
+
CliApiError,
|
|
23
|
+
CliValidationError,
|
|
24
|
+
PermissionError
|
|
25
|
+
} from "./chunk-R2SVAO4G.js";
|
|
20
26
|
|
|
21
27
|
// src/commands/automation/index.ts
|
|
22
28
|
import { randomUUID } from "crypto";
|
|
@@ -85,6 +91,10 @@ var configFlags = [
|
|
|
85
91
|
"json"
|
|
86
92
|
),
|
|
87
93
|
flag("model", "Agent model configuration ID; null clears the override"),
|
|
94
|
+
flag(
|
|
95
|
+
"effort",
|
|
96
|
+
"Agent reasoning depth: adaptive (default on create), low, medium, high, max. Adaptive clears the override; Team ignores this flag."
|
|
97
|
+
),
|
|
88
98
|
flag("reuse-conversation", "Agent: true | false", "json"),
|
|
89
99
|
{
|
|
90
100
|
...flag("scope", "Team data scope JSON; null clears it", "json"),
|
|
@@ -223,6 +233,15 @@ function configuration(ctx, create) {
|
|
|
223
233
|
}
|
|
224
234
|
if (create && (ctx.str("triggerType") || "scheduled") === "scheduled" && !kind && !cron)
|
|
225
235
|
throw new Error("Scheduled automation requires a schedule");
|
|
236
|
+
const effort = ctx.str("effort");
|
|
237
|
+
const hasEffort = ctx.has?.("effort") ?? Boolean(effort);
|
|
238
|
+
if (hasEffort && targetType === "agent") {
|
|
239
|
+
if (!["adaptive", "low", "medium", "high", "max"].includes(effort))
|
|
240
|
+
throw new CliValidationError(
|
|
241
|
+
"--effort must be adaptive | low | medium | high | max"
|
|
242
|
+
);
|
|
243
|
+
result.effort = effort === "adaptive" ? null : effort;
|
|
244
|
+
}
|
|
226
245
|
const agentNames = ["model", "reuseConversation"];
|
|
227
246
|
const teamNames = ["scope", "saveToKnowledgeBaseId"];
|
|
228
247
|
const notificationNames = [
|
|
@@ -260,8 +279,12 @@ function configuration(ctx, create) {
|
|
|
260
279
|
throw new Error("--scope must be an object or null");
|
|
261
280
|
result[name2 === "scope" ? "scopeJson" : name2] = name2 === "scope" ? value === null ? null : JSON.stringify(value) : value === "null" ? null : value;
|
|
262
281
|
}
|
|
263
|
-
if (!create && !Object.keys(result).length)
|
|
264
|
-
|
|
282
|
+
if (!create && !Object.keys(result).length) {
|
|
283
|
+
const onlyTeamEffort = targetType === "team" && hasEffort && !configFlags.some(
|
|
284
|
+
({ name: name2 }) => name2 !== "target-type" && name2 !== "effort" && ctx.has?.(name2)
|
|
285
|
+
);
|
|
286
|
+
if (!onlyTeamEffort) throw new Error("No fields to update");
|
|
287
|
+
}
|
|
265
288
|
if (create) result.triggerImmediately = ctx.bool("triggerImmediately");
|
|
266
289
|
return result;
|
|
267
290
|
}
|
|
@@ -292,7 +315,8 @@ async function request(ctx, method, path, body) {
|
|
|
292
315
|
path,
|
|
293
316
|
body,
|
|
294
317
|
ctx.hostOverride ? ctx.hostOverride() : ctx.host(),
|
|
295
|
-
"cli-token"
|
|
318
|
+
"cli-token",
|
|
319
|
+
{ "Accept-Language": detectCliLocale() }
|
|
296
320
|
);
|
|
297
321
|
if (method === "PATCH")
|
|
298
322
|
return patchToMainApp(
|
|
@@ -334,6 +358,36 @@ async function waitForRun(ctx, id, runId) {
|
|
|
334
358
|
);
|
|
335
359
|
} while (true);
|
|
336
360
|
}
|
|
361
|
+
function isUnchangedTeamUpdate(action, body) {
|
|
362
|
+
return action.command === "update" && body !== void 0 && Object.keys(body).length === 0;
|
|
363
|
+
}
|
|
364
|
+
function ignoredEffortReceipt(ctx) {
|
|
365
|
+
return ctx.str("targetType") === "team" && (ctx.has?.("effort") ?? Boolean(ctx.str("effort"))) ? { ignoredFields: ["effort"] } : {};
|
|
366
|
+
}
|
|
367
|
+
async function checkUnchangedTeamUpdate(ctx, path) {
|
|
368
|
+
const detail = await request(ctx, "GET", path);
|
|
369
|
+
const update = detail?.actions?.update;
|
|
370
|
+
if (detail?.targetType !== "team" || typeof update?.allowed !== "boolean")
|
|
371
|
+
throw new CliApiError("Unable to verify Team update permission.");
|
|
372
|
+
if (!update.allowed) {
|
|
373
|
+
const reason = update.reason;
|
|
374
|
+
if (reason === "AUTOMATION_FORBIDDEN" || reason === "AGENT_SPACE_PERMISSION_DENIED")
|
|
375
|
+
throw new PermissionError(
|
|
376
|
+
"No permission to update this Team automation.",
|
|
377
|
+
reason
|
|
378
|
+
);
|
|
379
|
+
throw new CliApiError("This Team automation cannot be updated.", {
|
|
380
|
+
code: reason
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
return {
|
|
384
|
+
id: detail.id,
|
|
385
|
+
agentSpaceId: detail.agentSpaceId,
|
|
386
|
+
targetType: "team",
|
|
387
|
+
unchanged: true,
|
|
388
|
+
ignoredFields: ["effort"]
|
|
389
|
+
};
|
|
390
|
+
}
|
|
337
391
|
var actions = [
|
|
338
392
|
{
|
|
339
393
|
command: "list",
|
|
@@ -454,19 +508,38 @@ var automationCommands = actions.map((a) => ({
|
|
|
454
508
|
...a.wait ? { commandId } : {}
|
|
455
509
|
};
|
|
456
510
|
const path = base + a.suffix(ctx) + await query(ctx, a.list, a.typed);
|
|
511
|
+
if (isUnchangedTeamUpdate(a, body)) {
|
|
512
|
+
const { id, ...result } = await checkUnchangedTeamUpdate(ctx, path);
|
|
513
|
+
return {
|
|
514
|
+
request: redactedPreview("GET", path),
|
|
515
|
+
validation: {
|
|
516
|
+
dryRun: true,
|
|
517
|
+
valid: true,
|
|
518
|
+
operation: "update",
|
|
519
|
+
automationId: id,
|
|
520
|
+
...result
|
|
521
|
+
}
|
|
522
|
+
};
|
|
523
|
+
}
|
|
457
524
|
return {
|
|
458
525
|
request: redactedPreview(a.method, path, requestBody),
|
|
459
|
-
validation:
|
|
526
|
+
validation: {
|
|
527
|
+
...await request(ctx, a.method, withDryRun(path), requestBody),
|
|
528
|
+
...ignoredEffortReceipt(ctx)
|
|
529
|
+
}
|
|
460
530
|
};
|
|
461
531
|
},
|
|
462
532
|
execute: async (ctx) => {
|
|
463
533
|
const body = a.body?.(ctx), commandId = ctx.str("commandId") || randomUUID();
|
|
464
534
|
let output;
|
|
465
535
|
try {
|
|
536
|
+
const path = base + a.suffix(ctx) + await query(ctx, a.list, a.typed);
|
|
537
|
+
if (isUnchangedTeamUpdate(a, body))
|
|
538
|
+
return await checkUnchangedTeamUpdate(ctx, path);
|
|
466
539
|
output = await request(
|
|
467
540
|
ctx,
|
|
468
541
|
a.method,
|
|
469
|
-
|
|
542
|
+
path,
|
|
470
543
|
body && { ...body, ...a.wait ? { commandId } : {} }
|
|
471
544
|
);
|
|
472
545
|
} catch (error) {
|
|
@@ -485,6 +558,8 @@ var automationCommands = actions.map((a) => ({
|
|
|
485
558
|
);
|
|
486
559
|
throw error;
|
|
487
560
|
}
|
|
561
|
+
if (a.command === "update" || a.command === "create")
|
|
562
|
+
output = { ...output, ...ignoredEffortReceipt(ctx) };
|
|
488
563
|
if (!a.wait) return output;
|
|
489
564
|
const runId = a.command === "create" ? output.execution?.runId : output.runId;
|
|
490
565
|
const id = a.command === "create" ? output.automation.id : ctx.str("id");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveHost
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KA5WKR5P.js";
|
|
5
5
|
import {
|
|
6
6
|
confirmHighRiskWrite,
|
|
7
7
|
normalizeRiskLevel,
|
|
8
8
|
requiresConfirmation
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EFGUBGA6.js";
|
|
10
10
|
import {
|
|
11
11
|
findGatewayDomain,
|
|
12
12
|
listCapabilityDiscoveryPrefixes,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
printError,
|
|
18
18
|
printOutput,
|
|
19
19
|
withOutputMetadata
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VR2D54AA.js";
|
|
21
21
|
import {
|
|
22
22
|
CapabilityGatewayError,
|
|
23
23
|
dryRunCapabilityWithEnvelope,
|
|
@@ -26,26 +26,27 @@ import {
|
|
|
26
26
|
inspectCapabilityWithEnvelope,
|
|
27
27
|
listCapabilitiesWithEnvelope,
|
|
28
28
|
validateCapabilityWithEnvelope
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-6HOM2FOJ.js";
|
|
30
|
+
import "./chunk-NNK3JBH4.js";
|
|
31
31
|
import {
|
|
32
32
|
assertBusinessEnabled,
|
|
33
33
|
businessForCapability,
|
|
34
34
|
readBusinessConfigForExecution,
|
|
35
35
|
readCurrentBusinessConfig
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-YJYC5PLL.js";
|
|
37
|
+
import "./chunk-PUSFEC6B.js";
|
|
37
38
|
import {
|
|
38
39
|
CredentialStoreUnreadableError,
|
|
39
40
|
SecureStoreAuthError
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-PLNS5J33.js";
|
|
41
42
|
import {
|
|
42
43
|
parseJsonRequest
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-AMURHMS3.js";
|
|
44
45
|
import {
|
|
45
46
|
CliValidationError,
|
|
46
47
|
ExternalCliTokenError,
|
|
47
48
|
PermissionError
|
|
48
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-R2SVAO4G.js";
|
|
49
50
|
|
|
50
51
|
// src/commands/capability/helpers.ts
|
|
51
52
|
import { readFileSync } from "fs";
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
require_node,
|
|
6
6
|
require_process_nextick_args,
|
|
7
7
|
require_util
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HQED4YB4.js";
|
|
9
9
|
import {
|
|
10
10
|
__commonJS,
|
|
11
11
|
__esm,
|
|
12
12
|
__export,
|
|
13
13
|
__require,
|
|
14
14
|
__toCommonJS
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-R2SVAO4G.js";
|
|
16
16
|
|
|
17
17
|
// node_modules/readdir-glob/node_modules/minimatch/lib/path.js
|
|
18
18
|
var require_path = __commonJS({
|
|
@@ -2,36 +2,36 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
confirmHighRiskWrite,
|
|
4
4
|
requiresConfirmation
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EFGUBGA6.js";
|
|
6
6
|
import {
|
|
7
7
|
TeAgentApiError,
|
|
8
8
|
TeAgentCredentialsError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ETQXIZFP.js";
|
|
10
10
|
import {
|
|
11
11
|
EvalApiError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LFJ7N36I.js";
|
|
13
13
|
import {
|
|
14
14
|
printError,
|
|
15
15
|
printOutput
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VR2D54AA.js";
|
|
17
17
|
import {
|
|
18
18
|
CapabilityGatewayError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6HOM2FOJ.js";
|
|
20
20
|
import {
|
|
21
21
|
BusinessDisabledError,
|
|
22
22
|
assertBusinessEnabled,
|
|
23
23
|
businessForCommand,
|
|
24
24
|
formatCapabilityMissCompatHint,
|
|
25
25
|
readCurrentBusinessConfig
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-YJYC5PLL.js";
|
|
27
27
|
import {
|
|
28
28
|
CredentialStoreUnreadableError,
|
|
29
29
|
SecureStoreAuthError
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-PLNS5J33.js";
|
|
31
31
|
import {
|
|
32
32
|
getActiveHost,
|
|
33
33
|
safeJsonParse
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-AMURHMS3.js";
|
|
35
35
|
import {
|
|
36
36
|
CliApiError,
|
|
37
37
|
CliValidationError,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
PermissionError,
|
|
42
42
|
logger,
|
|
43
43
|
readKbExecutionContext
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-R2SVAO4G.js";
|
|
45
45
|
|
|
46
46
|
// src/framework/business-filter.ts
|
|
47
47
|
import { Help } from "commander";
|
|
@@ -448,14 +448,14 @@ function createRuntimeContext(cmd, opts, globalOpts) {
|
|
|
448
448
|
let _communityReportModule = null;
|
|
449
449
|
async function getCommunityReportClient() {
|
|
450
450
|
if (!_communityReportModule) {
|
|
451
|
-
_communityReportModule = await import("./community-report-client-
|
|
451
|
+
_communityReportModule = await import("./community-report-client-ULRNXLQV.js");
|
|
452
452
|
}
|
|
453
453
|
return _communityReportModule;
|
|
454
454
|
}
|
|
455
455
|
let _localDataUploadModule = null;
|
|
456
456
|
async function getLocalDataUploadClient() {
|
|
457
457
|
if (!_localDataUploadModule) {
|
|
458
|
-
_localDataUploadModule = await import("./local-data-upload-client-
|
|
458
|
+
_localDataUploadModule = await import("./local-data-upload-client-YTWMAAGE.js");
|
|
459
459
|
}
|
|
460
460
|
return _localDataUploadModule;
|
|
461
461
|
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
sourceLoggedFetch
|
|
4
|
+
} from "./chunk-NNK3JBH4.js";
|
|
5
5
|
import {
|
|
6
6
|
SecureStoreAuthError,
|
|
7
7
|
clearCliTokenCache,
|
|
8
|
-
getCliToken
|
|
9
|
-
|
|
8
|
+
getCliToken,
|
|
9
|
+
internalCallSourceHeaders
|
|
10
|
+
} from "./chunk-PLNS5J33.js";
|
|
10
11
|
import {
|
|
11
12
|
safeJsonParse,
|
|
12
13
|
stringifyJsonRequest
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AMURHMS3.js";
|
|
14
15
|
import {
|
|
15
16
|
PermissionError,
|
|
16
17
|
externalCliTokenRequestOptions
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-R2SVAO4G.js";
|
|
18
19
|
|
|
19
20
|
// src/core/cli-agent-context.ts
|
|
20
21
|
import { readFileSync, statSync } from "fs";
|
|
@@ -57,6 +58,13 @@ function readCliAgentContext() {
|
|
|
57
58
|
...readFileContext(),
|
|
58
59
|
...scopedContext.getStore()
|
|
59
60
|
};
|
|
61
|
+
const argument = readContextArgument(process.argv.slice(2));
|
|
62
|
+
const runtime = argument ? parseContextArgument(argument)?.runtime_agent_model : void 0;
|
|
63
|
+
if (isPlainRecord(runtime) && runtime.version === 1) {
|
|
64
|
+
delete context.agent_model;
|
|
65
|
+
const model = cleanValue(runtime.model, 128);
|
|
66
|
+
if (typeof runtime.model === "string" && model) context.agent_model = model;
|
|
67
|
+
}
|
|
60
68
|
return withCaptureStatus(context);
|
|
61
69
|
}
|
|
62
70
|
function cliAgentContextHeaders(context = readCliAgentContext()) {
|
|
@@ -168,6 +176,7 @@ function readArgumentContext() {
|
|
|
168
176
|
if (!parsed) return {};
|
|
169
177
|
const context = contextFromRecord(parsed);
|
|
170
178
|
if (!hasContext(context)) return {};
|
|
179
|
+
if (isPlainRecord(parsed.runtime_agent_model) && parsed.runtime_agent_model.version === 1 && Object.keys(context).every((key) => key === "agent_model")) return context;
|
|
171
180
|
return {
|
|
172
181
|
intent_source: "agent_argument",
|
|
173
182
|
...context
|
|
@@ -435,16 +444,17 @@ async function requestOnce(url, method, token, body, accept = "application/json"
|
|
|
435
444
|
headers["Content-Type"] = "application/json";
|
|
436
445
|
init.body = stringifyJsonRequest(includeClientContextInBody ? withCliAgentContextBody(body, agentContext) : body);
|
|
437
446
|
}
|
|
438
|
-
return
|
|
447
|
+
return sourceLoggedFetch(url, { ...init, ...externalCliTokenRequestOptions(url), signal });
|
|
439
448
|
}
|
|
440
449
|
async function requestMultipartOnce(url, token, form) {
|
|
441
|
-
return
|
|
450
|
+
return sourceLoggedFetch(url, {
|
|
442
451
|
method: "POST",
|
|
443
452
|
...externalCliTokenRequestOptions(url),
|
|
444
453
|
headers: {
|
|
445
454
|
"cli-token": token,
|
|
446
455
|
"Accept": "application/json",
|
|
447
|
-
...internalCallSourceHeaders()
|
|
456
|
+
...internalCallSourceHeaders(),
|
|
457
|
+
...cliAgentContextHeaders()
|
|
448
458
|
},
|
|
449
459
|
body: form
|
|
450
460
|
});
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
postAgentApi,
|
|
10
10
|
putAgentApi,
|
|
11
11
|
uploadAgentApi
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZVUXAHEV.js";
|
|
13
13
|
import {
|
|
14
14
|
TeAgentApiError,
|
|
15
15
|
createTeAgentApiError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ETQXIZFP.js";
|
|
17
17
|
import {
|
|
18
18
|
CliValidationError,
|
|
19
19
|
isApiErrorType
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-R2SVAO4G.js";
|
|
21
21
|
|
|
22
22
|
// src/commands/workspace/client.ts
|
|
23
23
|
var DEFAULT_TE_CLAUDE_BASE_PATH = "/agent";
|