@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
|
@@ -2,20 +2,24 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
getAuthHeaders,
|
|
4
4
|
kbApi
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-F7TCQPQX.js";
|
|
6
|
+
import {
|
|
7
|
+
detectCliLocale
|
|
8
|
+
} from "./chunk-N2MAYIRU.js";
|
|
6
9
|
import {
|
|
7
10
|
printError,
|
|
8
11
|
printOutput
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-VR2D54AA.js";
|
|
13
|
+
import "./chunk-6HOM2FOJ.js";
|
|
14
|
+
import "./chunk-NNK3JBH4.js";
|
|
15
|
+
import "./chunk-YJYC5PLL.js";
|
|
16
|
+
import "./chunk-PUSFEC6B.js";
|
|
17
|
+
import "./chunk-PLNS5J33.js";
|
|
18
|
+
import "./chunk-AMURHMS3.js";
|
|
15
19
|
import {
|
|
16
20
|
externalCliTokenRequestOptions,
|
|
17
21
|
redactExternalCliToken
|
|
18
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-R2SVAO4G.js";
|
|
19
23
|
|
|
20
24
|
// src/commands/te-team/shared.ts
|
|
21
25
|
var API_PREFIX = process.env.AE_API_PREFIX ?? "/agent";
|
|
@@ -76,6 +80,12 @@ var createTeam = {
|
|
|
76
80
|
};
|
|
77
81
|
|
|
78
82
|
// src/commands/te-team/team/update-team.ts
|
|
83
|
+
var scopeHelp = {
|
|
84
|
+
en: "For compatibility, pass the current scope only. Use +promote or +copy-to-personal to change ownership.",
|
|
85
|
+
zh: "\u4EC5\u7528\u4E8E\u517C\u5BB9\u539F\u6837\u4F20\u56DE\u5F53\u524D\u8303\u56F4\u3002\u8981\u66F4\u6539\u5F52\u5C5E\uFF0C\u8BF7\u4F7F\u7528 +promote \u6216 +copy-to-personal\u3002",
|
|
86
|
+
ja: "\u4E92\u63DB\u6027\u306E\u305F\u3081\u73FE\u5728\u306E\u516C\u958B\u7BC4\u56F2\u306E\u307F\u6307\u5B9A\u3067\u304D\u307E\u3059\u3002\u6240\u6709\u7BC4\u56F2\u306E\u5909\u66F4\u306F +promote \u307E\u305F\u306F +copy-to-personal \u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
87
|
+
ko: "\uD638\uD658\uC131\uC744 \uC704\uD574 \uD604\uC7AC \uACF5\uAC1C \uBC94\uC704\uB9CC \uC804\uB2EC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC18C\uC720 \uBC94\uC704\uB97C \uBCC0\uACBD\uD558\uB824\uBA74 +promote \uB610\uB294 +copy-to-personal\uC744 \uC0AC\uC6A9\uD558\uC138\uC694."
|
|
88
|
+
};
|
|
79
89
|
var VALID_SCOPES2 = /* @__PURE__ */ new Set(["personal", "company"]);
|
|
80
90
|
function buildBody2(ctx) {
|
|
81
91
|
const body = {};
|
|
@@ -100,7 +110,7 @@ var updateTeam = {
|
|
|
100
110
|
{ name: "name", type: "string", required: false, desc: "New team name" },
|
|
101
111
|
{ name: "config", type: "json", required: false, desc: "New TeamConfig JSON" },
|
|
102
112
|
{ name: "description", type: "string", required: false, desc: "New description" },
|
|
103
|
-
{ name: "scope", type: "string", required: false, desc:
|
|
113
|
+
{ name: "scope", type: "string", required: false, desc: scopeHelp[detectCliLocale()] },
|
|
104
114
|
{ name: "enabled", type: "boolean", required: false, desc: "Whether enabled" }
|
|
105
115
|
],
|
|
106
116
|
risk: "write",
|
|
@@ -115,7 +125,7 @@ var updateTeam = {
|
|
|
115
125
|
url: `${ctx.host().replace(/\/$/, "")}${BASE_TEAM_PATH}/${ctx.str("id")}`,
|
|
116
126
|
body: buildBody2(ctx)
|
|
117
127
|
}),
|
|
118
|
-
execute: async (ctx) => kbApi(ctx, "PATCH", `${BASE_TEAM_PATH}/${ctx.str("id")}`, {}, buildBody2(ctx))
|
|
128
|
+
execute: async (ctx) => kbApi(ctx, "PATCH", `${BASE_TEAM_PATH}/${ctx.str("id")}`, { lang: detectCliLocale() }, buildBody2(ctx))
|
|
119
129
|
};
|
|
120
130
|
|
|
121
131
|
// src/commands/te-team/team/delete-team.ts
|
|
@@ -200,10 +210,82 @@ var listProjects = {
|
|
|
200
210
|
}
|
|
201
211
|
};
|
|
202
212
|
|
|
213
|
+
// src/commands/te-team/team/scope-command.ts
|
|
214
|
+
var scopeText = {
|
|
215
|
+
en: {
|
|
216
|
+
id: "Team ID",
|
|
217
|
+
revision: "Use expectedRevision from the preview",
|
|
218
|
+
required: "Preview this Team with --dry-run, then pass its --expected-revision.",
|
|
219
|
+
promote: "Convert your personal Team to a company Team after reviewing the preview.",
|
|
220
|
+
copy: "Create an independent personal copy of a company Team."
|
|
221
|
+
},
|
|
222
|
+
zh: {
|
|
223
|
+
id: "Team ID",
|
|
224
|
+
revision: "\u4F7F\u7528\u9884\u89C8\u8FD4\u56DE\u7684 expectedRevision",
|
|
225
|
+
required: "\u8BF7\u5148\u8FD0\u884C --dry-run \u9884\u89C8\uFF0C\u518D\u4F20\u5165\u5BF9\u5E94\u7684 --expected-revision\u3002",
|
|
226
|
+
promote: "\u786E\u8BA4\u9884\u89C8\u540E\uFF0C\u5C06\u672C\u4EBA\u7684\u4E2A\u4EBA Team \u8F6C\u4E3A\u516C\u53F8 Team\u3002",
|
|
227
|
+
copy: "\u628A\u516C\u53F8 Team \u590D\u5236\u4E3A\u72EC\u7ACB\u7684\u4E2A\u4EBA Team\u3002"
|
|
228
|
+
},
|
|
229
|
+
ja: {
|
|
230
|
+
id: "Team ID",
|
|
231
|
+
revision: "\u30D7\u30EC\u30D3\u30E5\u30FC\u3067\u53D6\u5F97\u3057\u305F expectedRevision",
|
|
232
|
+
required: "--dry-run \u3067\u78BA\u8A8D\u3057\u3066\u304B\u3089 --expected-revision \u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
233
|
+
promote: "\u78BA\u8A8D\u3057\u305F\u500B\u4EBA\u7528 Team \u3092\u4F1A\u793E\u306E Team \u306B\u5909\u66F4\u3057\u307E\u3059\u3002",
|
|
234
|
+
copy: "\u4F1A\u793E\u306E Team \u306E\u72EC\u7ACB\u3057\u305F\u500B\u4EBA\u7528\u30B3\u30D4\u30FC\u3092\u4F5C\u6210\u3057\u307E\u3059\u3002"
|
|
235
|
+
},
|
|
236
|
+
ko: {
|
|
237
|
+
id: "Team ID",
|
|
238
|
+
revision: "\uBBF8\uB9AC \uBCF4\uAE30\uC5D0\uC11C \uBC1B\uC740 expectedRevision",
|
|
239
|
+
required: "\uBA3C\uC800 --dry-run\uC73C\uB85C \uD655\uC778\uD55C \uD6C4 --expected-revision\uC744 \uC804\uB2EC\uD558\uC138\uC694.",
|
|
240
|
+
promote: "\uBBF8\uB9AC \uBCF4\uAE30 \uD655\uC778 \uD6C4 \uAC1C\uC778 Team\uC744 \uD68C\uC0AC Team\uC73C\uB85C \uC804\uD658\uD569\uB2C8\uB2E4.",
|
|
241
|
+
copy: "\uD68C\uC0AC Team\uC758 \uB3C5\uB9BD\uC801\uC778 \uAC1C\uC778 \uBCF5\uC0AC\uBCF8\uC744 \uB9CC\uB4ED\uB2C8\uB2E4."
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
function teamScopeCommand(action) {
|
|
245
|
+
const txt = scopeText[detectCliLocale()];
|
|
246
|
+
const endpoint = (ctx) => BASE_TEAM_PATH + "/" + encodeURIComponent(ctx.str("id")) + "/" + action;
|
|
247
|
+
return {
|
|
248
|
+
service: "team",
|
|
249
|
+
description: txt[action],
|
|
250
|
+
risk: "write",
|
|
251
|
+
flags: [
|
|
252
|
+
{ name: "id", type: "string", required: true, desc: txt.id },
|
|
253
|
+
{ name: "expected-revision", type: "string", desc: txt.revision }
|
|
254
|
+
],
|
|
255
|
+
dryRun: (ctx) => kbApi(ctx, "GET", endpoint(ctx), { lang: detectCliLocale() }),
|
|
256
|
+
execute: (ctx) => {
|
|
257
|
+
const expectedRevision = ctx.str("expected-revision");
|
|
258
|
+
if (!expectedRevision) throw new Error(txt.required);
|
|
259
|
+
return kbApi(
|
|
260
|
+
ctx,
|
|
261
|
+
"POST",
|
|
262
|
+
endpoint(ctx),
|
|
263
|
+
{ lang: detectCliLocale() },
|
|
264
|
+
{ expectedRevision },
|
|
265
|
+
{ preserveBusinessErrorCode: true }
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// src/commands/te-team/team/promote-team.ts
|
|
272
|
+
var promoteTeam = {
|
|
273
|
+
command: "+promote",
|
|
274
|
+
...teamScopeCommand("promote")
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
// src/commands/te-team/team/copy-team.ts
|
|
278
|
+
var copyTeam = {
|
|
279
|
+
command: "+copy-to-personal",
|
|
280
|
+
...teamScopeCommand("copy")
|
|
281
|
+
};
|
|
282
|
+
|
|
203
283
|
// src/commands/te-team/team/index.ts
|
|
204
284
|
var commands = [
|
|
205
285
|
listTeams,
|
|
206
286
|
createTeam,
|
|
287
|
+
promoteTeam,
|
|
288
|
+
copyTeam,
|
|
207
289
|
updateTeam,
|
|
208
290
|
deleteTeam,
|
|
209
291
|
aiGenerate,
|
|
@@ -1,20 +1,21 @@
|
|
|
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-YIG3L4RC.js";
|
|
5
|
+
import "./chunk-ZVUXAHEV.js";
|
|
6
|
+
import "./chunk-ETQXIZFP.js";
|
|
7
7
|
import {
|
|
8
8
|
CapabilityGatewayError,
|
|
9
9
|
buildCapabilityGatewayUrl,
|
|
10
10
|
callCapabilityApi
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-6HOM2FOJ.js";
|
|
12
|
+
import "./chunk-NNK3JBH4.js";
|
|
13
|
+
import "./chunk-PUSFEC6B.js";
|
|
14
|
+
import "./chunk-PLNS5J33.js";
|
|
15
|
+
import "./chunk-AMURHMS3.js";
|
|
15
16
|
import {
|
|
16
17
|
PermissionError
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-R2SVAO4G.js";
|
|
18
19
|
|
|
19
20
|
// src/commands/things/parity-actions.ts
|
|
20
21
|
import { readFileSync } from "fs";
|
|
@@ -5,26 +5,28 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
printError,
|
|
7
7
|
printOutput
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VR2D54AA.js";
|
|
9
9
|
import {
|
|
10
10
|
buildVersionInstallPlan,
|
|
11
11
|
exactVersion,
|
|
12
12
|
fetchCliConfig,
|
|
13
13
|
friendlyVersionSyncFailure,
|
|
14
14
|
getCachedCompatForHost,
|
|
15
|
-
getLocalCliPackageInfo,
|
|
16
15
|
installHost,
|
|
17
16
|
installVersion,
|
|
18
17
|
recordVersionSyncResult,
|
|
19
18
|
rememberBusinessConfig
|
|
20
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YJYC5PLL.js";
|
|
20
|
+
import {
|
|
21
|
+
getLocalCliPackageInfo
|
|
22
|
+
} from "./chunk-PUSFEC6B.js";
|
|
21
23
|
import {
|
|
22
24
|
peekCliToken
|
|
23
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-PLNS5J33.js";
|
|
24
26
|
import {
|
|
25
27
|
getActiveHost
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-AMURHMS3.js";
|
|
29
|
+
import "./chunk-R2SVAO4G.js";
|
|
28
30
|
|
|
29
31
|
// src/commands/update.ts
|
|
30
32
|
var HOST_OPTION_DESC = "Override active AE host URL (e.g., https://ta.thinkingdata.cn)";
|
|
@@ -13,18 +13,17 @@ import {
|
|
|
13
13
|
workspaceResourcePath,
|
|
14
14
|
workspaceTargetFlags,
|
|
15
15
|
workspaceTargetPath
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AAN6KBUK.js";
|
|
17
17
|
import "./chunk-RK6GLDGI.js";
|
|
18
18
|
import {
|
|
19
19
|
getAgentBuffer
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-4PSTYEG5.js";
|
|
20
|
+
} from "./chunk-ZVUXAHEV.js";
|
|
21
|
+
import "./chunk-ETQXIZFP.js";
|
|
22
|
+
import "./chunk-PLNS5J33.js";
|
|
23
|
+
import "./chunk-AMURHMS3.js";
|
|
25
24
|
import {
|
|
26
25
|
CliValidationError
|
|
27
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-R2SVAO4G.js";
|
|
28
27
|
|
|
29
28
|
// src/commands/workspace/shared.ts
|
|
30
29
|
var WORKSPACE_SERVICE = "workspace";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thinkingai/ae-cli",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.62",
|
|
4
4
|
"description": "CLI tool for ThinkingAI (AE) analytics platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"verify:analysis-skill": "tsx scripts/generate-analysis-skill-index.mts --check",
|
|
36
36
|
"verify:analysis-four-modules": "tsx tests/dashboard-filter-transport.test.ts && tsx tests/analysis-report-capability-command.test.ts && npm run verify:analysis-presentation && tsx tests/analysis-export-flow-command.test.ts && tsx tests/analysis-dashboard-audience-contract.test.ts",
|
|
37
37
|
"verify:analysis-contract-regressions": "tsx test/analysis-contract-regressions.test.mjs && tsx tests/analysis-sql-special-identifiers.test.ts",
|
|
38
|
+
"verify:personal-semantic": "tsx tests/personal-semantic-preference-command.test.ts && tsx tests/personal-semantic-global-command.test.ts",
|
|
38
39
|
"verify:analysis-agent-contract": "tsx tests/analysis-agent-skill-contract.test.ts",
|
|
39
40
|
"verify:analysis-presentation": "tsx --test tests/analysis-report-presentation.test.ts",
|
|
40
41
|
"verify:analysis-system": "tsx tests/analysis-system-capability-command.test.ts",
|
|
@@ -50,9 +51,10 @@
|
|
|
50
51
|
"verify:retired-analysis-commands": "node --test test/retired-analysis-commands.test.mjs",
|
|
51
52
|
"verify:retired-api-command": "node --test test/retired-api-command.test.mjs",
|
|
52
53
|
"verify:analysis-common-tools": "node scripts/verify-te-common-tools.mjs",
|
|
53
|
-
"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",
|
|
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 test/team-scope-command.test.mjs",
|
|
54
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",
|
|
55
|
-
"verify:
|
|
56
|
+
"verify:a2a": "node --import tsx --test tests/a2a-client.test.ts",
|
|
57
|
+
"verify:agent-tools": "npm run verify:a2a && 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",
|
|
56
58
|
"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",
|
|
57
59
|
"verify:agent-context": "tsx tests/agent-context-command.test.ts",
|
|
58
60
|
"verify:cli-agent-model-context": "tsx --test tests/cli-agent-model-context.test.ts",
|
|
@@ -97,6 +99,7 @@
|
|
|
97
99
|
"verify:skill-businesses": "node --test test/release-gate-skill-businesses.test.mjs",
|
|
98
100
|
"verify:notifications": "tsx tests/notification-command.test.ts",
|
|
99
101
|
"verify:mcp-int64-request": "npx tsx tests/mcp-int64-request.test.ts",
|
|
102
|
+
"verify:cli-source-logging": "node --import tsx --test tests/source-logged-fetch.test.ts tests/cli-agent-context-transports.test.ts",
|
|
100
103
|
"verify:capability-api": "npx tsx tests/capability-api.test.ts",
|
|
101
104
|
"verify:community-ux": "npm run build && npx tsx tests/community-ux.test.ts",
|
|
102
105
|
"verify:community-evidence": "node --import tsx tests/community-evidence.test.ts",
|
package/skills/ae-agent/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ae-agent
|
|
3
|
-
version: 2.1.
|
|
4
|
-
description: "AE Agent platform CLI for Agent, resource package import and export, notification, approval, archived conversation, model, MCP, Skill, attachment, and user-memory work. Use when managing these resources, browsing Agent markets, handling approval requests and tasks, restoring archived conversations, persisting user memory, or answering from user preferences, background, stable workflows, or historical conventions."
|
|
3
|
+
version: 2.1.8
|
|
4
|
+
description: "Invoke AE Agents through A2A with automatic CLI authorization; AE Agent platform CLI for Agent, resource package import and export, notification, approval, archived conversation, model, MCP, Skill, attachment, and user-memory work. Use when managing these resources, browsing Agent markets, handling approval requests and tasks, restoring archived conversations, persisting user memory, or answering from user preferences, background, stable workflows, or historical conventions."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# ae-agent
|
|
@@ -41,6 +41,10 @@ User memory commands live under the `memory` service:
|
|
|
41
41
|
ae-cli memory +<command> [options]
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
+
## A2A remote Agent invocation
|
|
45
|
+
|
|
46
|
+
When the user provides an AE A2A link and asks to use that Agent, read [references/a2a.md](references/a2a.md). Use `ae-cli agent a2a +card`, `+send`, `+get`, `list`, `cancel`, and `delete-context` to delegate the task with automatic host-scoped CLI authorization. Never expose the underlying token.
|
|
47
|
+
|
|
44
48
|
## Global AE CLI Rules
|
|
45
49
|
|
|
46
50
|
- Use this skill for Agent platform resource management: Agents, generic approvals, archived conversations, models, MCP servers, Skills, attachments, the MCP/Skill market, Agent and Skill approval/share flows, and user memories.
|
|
@@ -85,7 +89,17 @@ Use `ae-agent` for all Agent platform resource work:
|
|
|
85
89
|
|
|
86
90
|
If the user's intent is data analysis, audience management, metadata governance, TeamRuns, or knowledge bases, switch to `ae-analysis` / `ae-engage` / `ae-dataops` / `ae-team` / `ae-kb`. For AE analysis tasks with an active project scope, user requests to remember a wording, asset choice, working definition, or reusable project workflow belong to `ae-analysis` `personal-semantic-preference`, not the `memory` domain.
|
|
87
91
|
|
|
88
|
-
## Tool Groups (
|
|
92
|
+
## Tool Groups (106 commands)
|
|
93
|
+
|
|
94
|
+
### A2A invocation (6)
|
|
95
|
+
|
|
96
|
+
Read [the A2A workflow](references/a2a.md) first.
|
|
97
|
+
|
|
98
|
+
- `a2a +card` — read target capabilities with automatic CLI authorization
|
|
99
|
+
- `a2a +send` — submit a task to the remote AE Agent
|
|
100
|
+
- `a2a +get` — query task status and artifacts
|
|
101
|
+
- `a2a list` — filter and paginate accessible tasks
|
|
102
|
+
- `a2a cancel` / `a2a delete-context` — cancel a task or delete an owned context with high-risk confirmation
|
|
89
103
|
|
|
90
104
|
### Agents (6)
|
|
91
105
|
|
|
@@ -383,8 +397,8 @@ ae-cli workspace capability set --workspace-id <agent-space-id> --version <revis
|
|
|
383
397
|
|
|
384
398
|
## User Memory Notes
|
|
385
399
|
|
|
386
|
-
-
|
|
387
|
-
- Do not use `memory +create` for a project-scoped AE analysis preference, asset choice, working definition, or reusable workflow. If the current Agent host supplies a project ID, or the conversation has resolved a project for an AE analysis task, switch to `ae-analysis` and use `personal-semantic-preference add|update`; reusable project workflows are `context_type=experience`.
|
|
400
|
+
- This section governs AgentSpace memory, not analysis personal semantics. For AgentSpace memory, only write after the user explicitly asks for future persistence, for example by asking to remember or save something, keep it for future conversations, use it next time, or set it as a default. A preference, personal fact, workflow instruction, or answer style is eligible memory content but is not by itself permission to persist it.
|
|
401
|
+
- Do not use `memory +create` for a project-scoped AE analysis preference, asset choice, working definition, or reusable workflow. If the current Agent host supplies a project ID, or the conversation has resolved a project for an AE analysis task, switch to `ae-analysis` and use `personal-semantic-preference add|update`; reusable project workflows are `context_type=experience`. Analysis-related cross-project preferences, reusable workflows and default query projects use `personal-semantic-preference --project-id -1`; initialize global semantics before selecting a project, then project semantics before querying. Use AgentSpace memory for non-analysis memory only.
|
|
388
402
|
- Requests scoped to the current conversation or task, such as "next", "for this task", or "in this conversation", must not call a memory write command unless the user also explicitly asks for future persistence. An explicit refusal such as "do not remember" or "do not save this" overrides every other cue. If persistence intent is ambiguous, ask for confirmation before writing.
|
|
389
403
|
- After explicit persistence intent is established, create memory in the resolved AgentSpace and only report success after the write returns successfully.
|
|
390
404
|
- Shared-space members submit candidates; Owner/Admin users may activate or review them. Never claim a candidate is active unless the response outcome says so.
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Invoke AE Agents through A2A
|
|
2
|
+
|
|
3
|
+
Use these commands when a user asks an external coding Agent to delegate work to an AE Agent through an A2A link. The caller must be able to execute ae-cli. The target must be an AE Agent, and its server must support CLI-token Bearer authentication.
|
|
4
|
+
|
|
5
|
+
The CLI loads the current user's host-scoped CLI credential internally. Never read credential files, print tokens, ask the user to paste a TE token, or construct authenticated curl commands. If authentication is missing, direct the user to `ae-cli auth login --host <AE-host>`.
|
|
6
|
+
|
|
7
|
+
HTTP 401 clears only the selected host's process-local token cache, rereads its credential, and retries once within the same 30-second timeout. The retry preserves the message and JSON-RPC IDs. HTTP 403 is never retried. Stored credentials are not deleted or minted by this recovery; if authorization still fails, log in again for the selected host.
|
|
8
|
+
|
|
9
|
+
## Workflow
|
|
10
|
+
|
|
11
|
+
1. Select the authorized AE host. A link alone never authorizes sending credentials to another deployment. For another deployment, use its explicit `--host` and log in there first. The target URL must be inside that host's configured application path (default `/agent`). Redirects are rejected. Card-advertised interface URLs are not followed.
|
|
12
|
+
2. Read the Card to check the target's capabilities.
|
|
13
|
+
3. Submit the user's task. This is a write operation: the remote Agent can execute tools on the user's behalf. Use a stable `--message-id` if a submission might need to be retried.
|
|
14
|
+
4. Read the returned `task.id` and query it until the task reaches a terminal state. Space polls several seconds apart. Preserve and report the task ID if the task is still running when stopping. Never resubmit a task just because it is still running.
|
|
15
|
+
5. Summarize the returned artifacts/history. `TASK_STATE_COMPLETED` succeeds; `TASK_STATE_FAILED`, `TASK_STATE_CANCELED`, and `TASK_STATE_REJECTED` are terminal failures. For `TASK_STATE_INPUT_REQUIRED`, ask for the required input and send it with the returned `contextId` and task ID. For `TASK_STATE_AUTH_REQUIRED`, report the requested authorization; do not keep polling blindly.
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
ae-cli agent a2a +card --host https://ae.example.com \
|
|
19
|
+
--url https://ae.example.com/agent/api/a2a/agents/AGENT_ID/agent-card.json
|
|
20
|
+
|
|
21
|
+
ae-cli agent a2a +send --host https://ae.example.com \
|
|
22
|
+
--url https://ae.example.com/agent/api/a2a/agents/AGENT_ID/agent-card.json \
|
|
23
|
+
--message 'Summarize the requested data' --message-id REQUEST_UUID
|
|
24
|
+
|
|
25
|
+
ae-cli agent a2a +get --host https://ae.example.com \
|
|
26
|
+
--url https://ae.example.com/agent/api/a2a/agents/AGENT_ID/agent-card.json \
|
|
27
|
+
--id TASK_ID
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The default Agent discovery link is `/agent/.well-known/agent-card.json` under the selected application path. `+card` reads that exact URL; `+send` and `+get` map it to `/agent/api/a2a/agents/system-default-agent`. Explicit Agent Card and RPC links remain supported with the same behavior. Custom deployment paths are preserved. Discovery never follows Card-advertised URLs.
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
ae-cli agent a2a +card --host https://ae.example.com \
|
|
34
|
+
--url https://ae.example.com/agent/.well-known/agent-card.json
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Transition status: transitional
|
|
38
|
+
Owning module: te-claude A2A
|
|
39
|
+
Current transport: A2A 1.0 JSON-RPC with CLI-token Bearer authentication
|
|
40
|
+
Gateway target: TBD
|
|
41
|
+
Review after: 2026-12-01
|
|
42
|
+
Exit condition: equivalent Gateway capabilities exist; retain typed invocation and host-scoping value when migrating.
|
|
43
|
+
|
|
44
|
+
## Commands
|
|
45
|
+
|
|
46
|
+
| Command | Risk | Required flags | Optional flags |
|
|
47
|
+
| --- | --- | --- | --- |
|
|
48
|
+
| `agent a2a +card` | read | `--url` | `--host` |
|
|
49
|
+
| `agent a2a +send` | write | `--url`, `--message` | `--host`, `--message-id`, `--context-id`, `--task-id`, `--space-id`, `--model`, `--history-length` |
|
|
50
|
+
| `agent a2a +get` | read | `--url`, `--id` | `--host`, `--history-length` |
|
|
51
|
+
| `agent a2a list` | read | `--url` | `--context-id`, `--status`, `--page-size`, `--page-token`, `--history-length`, `--status-timestamp-after`, `--include-artifacts` |
|
|
52
|
+
| `agent a2a cancel` | high-risk-write | `--url`, `--id` | `--yes` |
|
|
53
|
+
| `agent a2a delete-context` | high-risk-write | `--url`, `--context-id` | `--yes` |
|
|
54
|
+
|
|
55
|
+
Card and JSON-RPC endpoint URLs are accepted. All commands support global `--dry-run`, which previews the request without loading credentials or making an A2A request. `+send` uses `configuration.returnImmediately: true`; `+get` uses the JSON-RPC `GetTask` method. Results retain the server's A2A shape inside the normal CLI output envelope. No streaming or third-party authentication is provided.
|
|
56
|
+
|
|
57
|
+
The source contract is the AE server's `src/lib/a2a/protocol.ts`, `http.ts`, and `service.ts`: `A2A-Version: 1.0`, `Authorization: Bearer <CLI token>`, JSON-RPC 2.0 `SendMessage` / `GetTask`, and `/api/a2a/agents/<id>/agent-card.json` under the configured application path.
|
|
58
|
+
|
|
59
|
+
## Workspace and model selection
|
|
60
|
+
|
|
61
|
+
Read `capabilities.extensions` in `+card` first. The extension URI
|
|
62
|
+
`https://thinkingdata.cn/a2a/extensions/agent-evaluation/v1` advertises
|
|
63
|
+
`params.spaceSelection.spaces` and `params.modelSelection.models`. Use exact
|
|
64
|
+
IDs from these lists, not display names. Model switching must be advertised;
|
|
65
|
+
a fixed Agent only accepts its configured model. Space IDs contain 1–191
|
|
66
|
+
letters, digits, underscores or hyphens.
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
ae-cli agent a2a +send --host https://ae.example.com \
|
|
70
|
+
--url https://ae.example.com/agent/.well-known/agent-card.json \
|
|
71
|
+
--message 'Summarize the requested data' --space-id SPACE_ID --model MODEL_ID \
|
|
72
|
+
--message-id REQUEST_UUID --history-length 0 --dry-run
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
`--space-id` maps to `message.metadata[extensionURI].agentSpaceId` and
|
|
76
|
+
`--model` to `.model`. The CLI sends both `message.extensions` and the
|
|
77
|
+
`A2A-Extensions` request header. Without these flags the old payload and headers
|
|
78
|
+
remain unchanged. No evaluation source is fabricated. Space/model authorization
|
|
79
|
+
is enforced by the server. For continuations using `--context-id` or `--task-id`, omit `--space-id` or
|
|
80
|
+
repeat the original workspace ID. The server checks that a supplied workspace
|
|
81
|
+
matches the existing conversation and rejects changes. Replies with `--task-id`
|
|
82
|
+
cannot select a model. Keep selections unchanged when retrying a
|
|
83
|
+
message ID. An older server may reject these optional extensions; omit the
|
|
84
|
+
selection flags to retain the previous invocation contract.
|
|
85
|
+
|
|
86
|
+
`--history-length` is a non-negative integer; zero suppresses history and the
|
|
87
|
+
server caps returned history at 100. `list` uses `ListTasks`, returns one page,
|
|
88
|
+
and preserves `nextPageToken`; reuse the same filters on subsequent pages.
|
|
89
|
+
`--page-size` is 1–100. `--status` uses the exact `TASK_STATE_*` enum from the
|
|
90
|
+
protocol. `--include-artifacts false` explicitly excludes artifacts.
|
|
91
|
+
|
|
92
|
+
`cancel` sends `CancelTask`. `delete-context` sends `DeleteContext` with the
|
|
93
|
+
context-lifecycle extension header; inspect the Card for support first.
|
|
94
|
+
Both require high-risk confirmation, or `--yes` after explicit user approval.
|
|
95
|
+
|
|
96
|
+
## Server capability coverage
|
|
97
|
+
|
|
98
|
+
The current server also offers `SendStreamingMessage`, `SubscribeToTask`,
|
|
99
|
+
registered attachment transfer and signed inter-Agent delegation. These require
|
|
100
|
+
SSE/file/proof lifecycles and are not exposed by these JSON commands. Continue
|
|
101
|
+
using `+send` and `+get` for asynchronous text tasks. Push notifications and
|
|
102
|
+
extended Agent Cards are explicitly unsupported by the server. Do not invent
|
|
103
|
+
metadata or credentials to simulate any of these capabilities.
|
|
@@ -32,3 +32,14 @@ This index provides command-level risk metadata for Agent distribution and gener
|
|
|
32
32
|
| `ae-cli agent resource-package download` | CLI-token resource package REST | read | resource-package.md |
|
|
33
33
|
| `ae-cli agent resource-package cancel` | CLI-token resource package REST | high-risk-write | resource-package.md |
|
|
34
34
|
| `ae-cli agent resource-package retry` | CLI-token resource package REST | write | resource-package.md |
|
|
35
|
+
|
|
36
|
+
## A2A invocation
|
|
37
|
+
|
|
38
|
+
| CLI command | Transport | Risk | Reference |
|
|
39
|
+
| --- | --- | --- | --- |
|
|
40
|
+
| `ae-cli agent a2a +card` | A2A 1.0 Bearer CLI token | read | a2a.md |
|
|
41
|
+
| `ae-cli agent a2a +send` | A2A 1.0 JSON-RPC | write | a2a.md |
|
|
42
|
+
| `ae-cli agent a2a +get` | A2A 1.0 JSON-RPC | read | a2a.md |
|
|
43
|
+
| `ae-cli agent a2a list` | A2A 1.0 JSON-RPC | read | a2a.md |
|
|
44
|
+
| `ae-cli agent a2a cancel` | A2A 1.0 JSON-RPC | high-risk-write | a2a.md |
|
|
45
|
+
| `ae-cli agent a2a delete-context` | A2A context lifecycle extension | high-risk-write | a2a.md |
|