@thinkingai/ae-cli 6.1.37 → 6.1.39
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 +3 -1
- package/README.zh.md +3 -1
- package/cli-installation-guide.md +1 -2
- package/dist/{ai-monitor-YKNYBHN2.js → ai-monitor-DST4NDOK.js} +5 -5
- package/dist/ai-monitor.js +7 -7
- package/dist/{auth-FXRGFG37.js → auth-BD3NIY3T.js} +3 -3
- package/dist/{automation-OQ647CSW.js → automation-IMDCJUML.js} +85 -9
- package/dist/{capability-GM7CH2LZ.js → capability-3NJOQHZQ.js} +3 -3
- package/dist/{chunk-46V4ZF7E.js → chunk-24DCOJBJ.js} +2 -2
- package/dist/{chunk-SHB7A2JE.js → chunk-2RORKIF6.js} +2 -2
- package/dist/{chunk-HBI7IQH3.js → chunk-6NJZSWUT.js} +3 -28
- package/dist/{chunk-QPUPWGZ3.js → chunk-DTODOQ6T.js} +1 -1
- package/dist/{chunk-EFGZFFSO.js → chunk-FRJUB66C.js} +1 -1
- package/dist/{chunk-OFOPYKYM.js → chunk-IY5G42YY.js} +2 -2
- package/dist/{chunk-NBXQSPXL.js → chunk-KBJHBVO7.js} +1 -1
- package/dist/{chunk-CYZV5AXW.js → chunk-KE5WGBXS.js} +2 -1
- package/dist/chunk-N2MAYIRU.js +32 -0
- package/dist/{chunk-IL2O4KDP.js → chunk-SQEK6S4X.js} +20 -21
- package/dist/{chunk-VPLRZSMY.js → chunk-STHIGWWC.js} +10 -1
- package/dist/{chunk-OTV5EBR5.js → chunk-TVSGS5QB.js} +5 -5
- package/dist/{chunk-LXRALNNA.js → chunk-UK7HQ4IL.js} +1 -1
- package/dist/{chunk-JFXDUX6U.js → chunk-VXKKTUU2.js} +2 -2
- package/dist/{chunk-E5CJI7L3.js → chunk-WRYXVIJP.js} +1 -1
- package/dist/{compat-check-ZMJWF6QG.js → compat-check-7VBBE7KO.js} +1 -1
- package/dist/{config-6G2LAH5D.js → config-LFRZBPH5.js} +4 -7
- package/dist/{context-Y2A6QIS3.js → context-WJQGJD6F.js} +1 -1
- package/dist/{data-integration-EIF5QHYF.js → data-integration-KMJWYAKK.js} +2 -1
- package/dist/index.js +34 -32
- package/dist/{memory-6QMZS4HF.js → memory-VPOPSU52.js} +3 -3
- package/dist/{metadata-6S3Z67JC.js → metadata-AR64J76Z.js} +5 -5
- package/dist/{model-LEYRQKOS.js → model-2F2354QP.js} +1 -1
- package/dist/{personal-semantic-preference-PKYS73D6.js → personal-semantic-preference-BCOSI4DO.js} +4 -4
- package/dist/{project-semantic-B5PG4JJB.js → project-semantic-DJLXAXLD.js} +4 -4
- package/dist/{sync-GB3IKG2D.js → sync-4TUIQ2PZ.js} +3 -3
- package/dist/{te-agent-S7UH657Z.js → te-agent-EMDWA3M6.js} +4 -4
- package/dist/{te-analysis-ZYL4AF34.js → te-analysis-XHAMRMTQ.js} +6 -6
- package/dist/{te-community-R63WXF6D.js → te-community-JSUSZEYH.js} +4 -4
- package/dist/{te-dataops-VHTPW433.js → te-dataops-I264BUTI.js} +2 -2
- package/dist/{te-engage-ZE7ROR3Z.js → te-engage-XNMQYO5N.js} +68 -16
- package/dist/{te-experiment-ZDR2JZTN.js → te-experiment-5SCHMYVO.js} +4 -4
- package/dist/{te-kb-6NXLBHE3.js → te-kb-QQ53TNRZ.js} +44 -13
- package/dist/{te-system-DB5Z3LLF.js → te-system-Z4VEB6PL.js} +1 -1
- package/dist/{te-team-KOSX43ZP.js → te-team-V6BBI52R.js} +87 -6
- package/dist/{things-G2QFXDK7.js → things-THHGDSEC.js} +4 -4
- package/dist/{update-XPNNE7UF.js → update-53ZUXWV5.js} +2 -2
- package/dist/{web-runtime-7DPC4HYJ.js → web-runtime-ZJHOIPKX.js} +4 -4
- package/dist/{workspace-RZESYB6T.js → workspace-W5ZPVWJS.js} +3 -3
- package/package.json +3 -3
- package/skills/ae-automation/SKILL.md +6 -2
- package/skills/ae-automation/references/cli.md +9 -3
- 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-experiment/SKILL.md +1 -1
- package/skills/ae-experiment/references/save_experiment.md +1 -1
- package/skills/ae-kb/SKILL.md +8 -6
- package/skills/ae-kb/references/query-workflow.md +5 -1
- package/skills/ae-onboarding/SKILL.md +2 -2
- package/skills/ae-onboarding/references/onboarding_run.md +1 -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/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
|
@@ -1,7 +1,7 @@
|
|
|
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-IY5G42YY.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCapabilityGatewayRoute,
|
|
7
7
|
resolveGatewayDomain
|
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
printError,
|
|
11
11
|
withOutputMetadata
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KBJHBVO7.js";
|
|
13
13
|
import {
|
|
14
14
|
CapabilityGatewayError,
|
|
15
15
|
buildCapabilityGatewayUrl,
|
|
16
16
|
fetchCapabilityGateway,
|
|
17
17
|
requestCapabilityGateway,
|
|
18
18
|
requestCapabilityGatewayWithEnvelope
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-STHIGWWC.js";
|
|
20
20
|
import "./chunk-6E6HCTP2.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-SQEK6S4X.js";
|
|
22
22
|
import "./chunk-PUSFEC6B.js";
|
|
23
23
|
import "./chunk-UWQXGF44.js";
|
|
24
24
|
import "./chunk-IGU3R2JD.js";
|
|
@@ -1807,19 +1807,58 @@ var commonMetricGet = createEngageSettingCapabilityCommand({
|
|
|
1807
1807
|
});
|
|
1808
1808
|
|
|
1809
1809
|
// src/commands/te-engage/engage-setting/common-metric/metric-qp-validation.ts
|
|
1810
|
-
var VALID_WINDOW_TIME_UNITS = /* @__PURE__ */ new Set(["minute", "hour", "day"]);
|
|
1810
|
+
var VALID_WINDOW_TIME_UNITS = /* @__PURE__ */ new Set(["minute", "hour", "day", "week", "month"]);
|
|
1811
1811
|
function validateMetricDefinitionFlag(definition) {
|
|
1812
1812
|
validateSemanticMetricDefinition(definition, "--metric-definition");
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1815
|
-
if (VALID_WINDOW_TIME_UNITS.has(unit)) {
|
|
1814
|
+
function validateMetricWindowFlags(unit, num, cycle, update = false) {
|
|
1815
|
+
if (!VALID_WINDOW_TIME_UNITS.has(unit)) {
|
|
1816
|
+
invalidWindow("--metric-window-time-unit must be one of: minute, hour, day, week, month.");
|
|
1817
|
+
}
|
|
1818
|
+
if (!Number.isInteger(num) || num < 1) {
|
|
1819
|
+
invalidWindow("--metric-window-num must be a positive integer.");
|
|
1820
|
+
}
|
|
1821
|
+
if (cycle === void 0 && update) {
|
|
1822
|
+
if ((unit === "week" || unit === "month") && num !== 1) {
|
|
1823
|
+
invalidWindow("Natural week/month windows require --metric-window-num 1.");
|
|
1824
|
+
}
|
|
1816
1825
|
return;
|
|
1817
1826
|
}
|
|
1818
|
-
|
|
1819
|
-
"
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1827
|
+
if (cycle === void 0 || cycle === null) {
|
|
1828
|
+
if (unit === "week" || unit === "month") {
|
|
1829
|
+
invalidWindow("Week/month windows require a non-null --time-cycle-def.");
|
|
1830
|
+
}
|
|
1831
|
+
return;
|
|
1832
|
+
}
|
|
1833
|
+
if (typeof cycle !== "object" || Array.isArray(cycle)) {
|
|
1834
|
+
invalidWindow("--time-cycle-def must be an object or null.");
|
|
1835
|
+
}
|
|
1836
|
+
const def = cycle;
|
|
1837
|
+
if (Object.keys(def).some((key) => key !== "start_day" && key !== "start_time")) {
|
|
1838
|
+
invalidWindow("--time-cycle-def accepts only start_day and start_time.");
|
|
1839
|
+
}
|
|
1840
|
+
if (num !== 1 || !["day", "week", "month"].includes(unit)) {
|
|
1841
|
+
invalidWindow("Natural windows require --metric-window-num 1 and unit day, week, or month.");
|
|
1842
|
+
}
|
|
1843
|
+
if (unit === "day" && "start_day" in def) {
|
|
1844
|
+
invalidWindow("Natural day windows must omit start_day.");
|
|
1845
|
+
}
|
|
1846
|
+
if (unit === "week" || unit === "month") {
|
|
1847
|
+
const max = unit === "week" ? 7 : 28;
|
|
1848
|
+
if (!Number.isInteger(def.start_day) || def.start_day < 1 || def.start_day > max) {
|
|
1849
|
+
invalidWindow(`Natural ${unit} start_day must be an integer from 1 to ${max}.`);
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
if (unit === "month") {
|
|
1853
|
+
if ("start_time" in def && def.start_time !== "00:00") {
|
|
1854
|
+
invalidWindow("Natural month start_time must be omitted or 00:00.");
|
|
1855
|
+
}
|
|
1856
|
+
} else if (typeof def.start_time !== "string" || !/^([01][0-9]|2[0-3]):[0-5][0-9]$/.test(def.start_time)) {
|
|
1857
|
+
invalidWindow("Natural day/week start_time must use HH:mm (00:00-23:59).");
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
function invalidWindow(message) {
|
|
1861
|
+
printError("validation", message, "Omit --time-cycle-def on update to preserve it; pass null to use a rolling window.");
|
|
1823
1862
|
process.exit(1);
|
|
1824
1863
|
}
|
|
1825
1864
|
function validatePresetMetricTypeFlag(metricType) {
|
|
@@ -1850,8 +1889,9 @@ var writeFlags = [
|
|
|
1850
1889
|
name: "metric-window-time-unit",
|
|
1851
1890
|
type: "string",
|
|
1852
1891
|
required: true,
|
|
1853
|
-
desc: "
|
|
1892
|
+
desc: "Rolling unit: minute/hour/day; natural cycle unit: day/week/month."
|
|
1854
1893
|
},
|
|
1894
|
+
{ name: "time-cycle-def", type: "json", required: false, desc: "Natural cycle {start_day?, start_time?}. Omit on update to preserve; null selects a rolling window." },
|
|
1855
1895
|
{ name: "display-name", type: "string", required: true, desc: "Display name of the metric." },
|
|
1856
1896
|
{ name: "note", type: "string", required: false, desc: "Metric note/remark." },
|
|
1857
1897
|
{ name: "order-id", type: "number", required: false, desc: "Sort order id." },
|
|
@@ -1865,6 +1905,7 @@ var buildWriteInput = (ctx) => ({
|
|
|
1865
1905
|
metric_definition: ctx.json("metric-definition"),
|
|
1866
1906
|
metric_window_num: ctx.num("metric-window-num"),
|
|
1867
1907
|
metric_window_time_unit: ctx.str("metric-window-time-unit"),
|
|
1908
|
+
time_cycle_def: ctx.json("time-cycle-def"),
|
|
1868
1909
|
display_name: ctx.str("display-name"),
|
|
1869
1910
|
note: ctx.str("note") || void 0,
|
|
1870
1911
|
order_id: ctx.optionalNum("order-id"),
|
|
@@ -1881,7 +1922,11 @@ var commonMetricCreate = createEngageSettingCapabilityCommand({
|
|
|
1881
1922
|
validate: (ctx) => {
|
|
1882
1923
|
validatePresetMetricTypeFlag(ctx.num("metric-type"));
|
|
1883
1924
|
validateMetricDefinitionFlag(ctx.json("metric-definition"));
|
|
1884
|
-
|
|
1925
|
+
validateMetricWindowFlags(
|
|
1926
|
+
ctx.str("metric-window-time-unit"),
|
|
1927
|
+
ctx.num("metric-window-num"),
|
|
1928
|
+
ctx.json("time-cycle-def")
|
|
1929
|
+
);
|
|
1885
1930
|
},
|
|
1886
1931
|
buildInput: buildWriteInput
|
|
1887
1932
|
});
|
|
@@ -1902,8 +1947,9 @@ var writeFlags2 = [
|
|
|
1902
1947
|
name: "metric-window-time-unit",
|
|
1903
1948
|
type: "string",
|
|
1904
1949
|
required: true,
|
|
1905
|
-
desc: "
|
|
1950
|
+
desc: "Rolling unit: minute/hour/day; natural cycle unit: day/week/month."
|
|
1906
1951
|
},
|
|
1952
|
+
{ name: "time-cycle-def", type: "json", required: false, desc: "Natural cycle {start_day?, start_time?}. Omit on update to preserve; null selects a rolling window." },
|
|
1907
1953
|
{ name: "display-name", type: "string", required: true, desc: "Display name of the metric." },
|
|
1908
1954
|
{ name: "note", type: "string", required: false, desc: "Metric note/remark." },
|
|
1909
1955
|
{ name: "order-id", type: "number", required: false, desc: "Sort order id." },
|
|
@@ -1917,6 +1963,7 @@ var buildWriteInput2 = (ctx) => ({
|
|
|
1917
1963
|
metric_definition: ctx.json("metric-definition"),
|
|
1918
1964
|
metric_window_num: ctx.num("metric-window-num"),
|
|
1919
1965
|
metric_window_time_unit: ctx.str("metric-window-time-unit"),
|
|
1966
|
+
time_cycle_def: ctx.json("time-cycle-def"),
|
|
1920
1967
|
display_name: ctx.str("display-name"),
|
|
1921
1968
|
note: ctx.str("note") || void 0,
|
|
1922
1969
|
order_id: ctx.optionalNum("order-id"),
|
|
@@ -1932,7 +1979,12 @@ var commonMetricUpdate = createEngageSettingCapabilityCommand({
|
|
|
1932
1979
|
risk: "write",
|
|
1933
1980
|
validate: (ctx) => {
|
|
1934
1981
|
validateMetricDefinitionFlag(ctx.json("metric-definition"));
|
|
1935
|
-
|
|
1982
|
+
validateMetricWindowFlags(
|
|
1983
|
+
ctx.str("metric-window-time-unit"),
|
|
1984
|
+
ctx.num("metric-window-num"),
|
|
1985
|
+
ctx.json("time-cycle-def"),
|
|
1986
|
+
true
|
|
1987
|
+
);
|
|
1936
1988
|
},
|
|
1937
1989
|
buildInput: buildWriteInput2
|
|
1938
1990
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
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-IY5G42YY.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCapabilityGatewayRoute
|
|
7
7
|
} from "./chunk-AWW2T2WL.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-KBJHBVO7.js";
|
|
9
|
+
import "./chunk-STHIGWWC.js";
|
|
10
10
|
import "./chunk-6E6HCTP2.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-SQEK6S4X.js";
|
|
12
12
|
import "./chunk-PUSFEC6B.js";
|
|
13
13
|
import "./chunk-UWQXGF44.js";
|
|
14
14
|
import "./chunk-IGU3R2JD.js";
|
|
@@ -2,18 +2,18 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
kbApi,
|
|
4
4
|
kbUpload
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WRYXVIJP.js";
|
|
6
6
|
import {
|
|
7
7
|
printError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KBJHBVO7.js";
|
|
9
9
|
import {
|
|
10
10
|
TeAgentApiError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KE5WGBXS.js";
|
|
12
12
|
import {
|
|
13
13
|
CapabilityGatewayError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-STHIGWWC.js";
|
|
15
15
|
import "./chunk-6E6HCTP2.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-SQEK6S4X.js";
|
|
17
17
|
import "./chunk-PUSFEC6B.js";
|
|
18
18
|
import "./chunk-UWQXGF44.js";
|
|
19
19
|
import "./chunk-IGU3R2JD.js";
|
|
@@ -1114,6 +1114,29 @@ var add = {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
};
|
|
1116
1116
|
|
|
1117
|
+
// src/commands/te-kb/content-language.ts
|
|
1118
|
+
function requestedContentLanguage(ctx) {
|
|
1119
|
+
const value = ctx.str("content-language");
|
|
1120
|
+
if (!value) return void 0;
|
|
1121
|
+
if (!/^[A-Za-z]{2,8}$/.test(value.trim())) {
|
|
1122
|
+
throw new Error("--content-language must be a BCP-47 primary language subtag, such as ko.");
|
|
1123
|
+
}
|
|
1124
|
+
return value.trim().toLowerCase();
|
|
1125
|
+
}
|
|
1126
|
+
async function requestWithContentLanguage(ctx, path9, body4, api = kbApi, preserveBusinessErrorCode = false) {
|
|
1127
|
+
try {
|
|
1128
|
+
if (preserveBusinessErrorCode) {
|
|
1129
|
+
return await api(ctx, "POST", path9, {}, body4, { preserveBusinessErrorCode: true });
|
|
1130
|
+
}
|
|
1131
|
+
return await api(ctx, "POST", path9, {}, body4);
|
|
1132
|
+
} catch (error) {
|
|
1133
|
+
if (body4.contentLanguage && error instanceof Error && /^body:\s/.test(error.message)) {
|
|
1134
|
+
throw new Error("The server does not support the requested knowledge-base language option.", { cause: error });
|
|
1135
|
+
}
|
|
1136
|
+
throw error;
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1117
1140
|
// src/commands/te-kb/compile.ts
|
|
1118
1141
|
var API_PATH5 = "/agent/api/external/knowledge-bases/compile";
|
|
1119
1142
|
var VALID_MODES = /* @__PURE__ */ new Set(["incremental", "full"]);
|
|
@@ -1133,6 +1156,8 @@ function buildBody(ctx) {
|
|
|
1133
1156
|
if (scope) body4.scope = scope;
|
|
1134
1157
|
const model = ctx.str("model");
|
|
1135
1158
|
if (model) body4.model = model;
|
|
1159
|
+
const contentLanguage = requestedContentLanguage(ctx);
|
|
1160
|
+
if (contentLanguage) body4.contentLanguage = contentLanguage;
|
|
1136
1161
|
return body4;
|
|
1137
1162
|
}
|
|
1138
1163
|
var compile = {
|
|
@@ -1140,6 +1165,7 @@ var compile = {
|
|
|
1140
1165
|
command: "+compile",
|
|
1141
1166
|
description: "Compile a knowledge.",
|
|
1142
1167
|
flags: [
|
|
1168
|
+
{ name: "content-language", type: "string", required: false, desc: "Require the working guidelines to declare this language before compilation." },
|
|
1143
1169
|
{ name: "name", type: "string", required: true, desc: "Knowledge base name" },
|
|
1144
1170
|
{ name: "mode", type: "string", required: false, default: "incremental", desc: "Compile mode: incremental | full (default: incremental)" },
|
|
1145
1171
|
{ name: "scope", type: "string", required: false, desc: "Exact knowledge base scope: personal | company (omit for personal \u2192 company fallback)" },
|
|
@@ -1147,15 +1173,14 @@ var compile = {
|
|
|
1147
1173
|
],
|
|
1148
1174
|
risk: "write",
|
|
1149
1175
|
validate: (ctx) => {
|
|
1150
|
-
|
|
1151
|
-
getExternalKnowledgeBaseTargetScope(ctx);
|
|
1176
|
+
buildBody(ctx);
|
|
1152
1177
|
},
|
|
1153
1178
|
dryRun: (ctx) => ({
|
|
1154
1179
|
method: "POST",
|
|
1155
1180
|
url: `${ctx.host().replace(/\/$/, "")}${API_PATH5}`,
|
|
1156
1181
|
body: buildBody(ctx)
|
|
1157
1182
|
}),
|
|
1158
|
-
execute: async (ctx) =>
|
|
1183
|
+
execute: async (ctx) => requestWithContentLanguage(ctx, API_PATH5, buildBody(ctx))
|
|
1159
1184
|
};
|
|
1160
1185
|
|
|
1161
1186
|
// src/commands/te-kb/remove.ts
|
|
@@ -1341,18 +1366,24 @@ function buildBody5(ctx) {
|
|
|
1341
1366
|
if (model) body4.model = model;
|
|
1342
1367
|
const customInstructions = getCustomInstructions(ctx);
|
|
1343
1368
|
if (customInstructions) body4.customInstructions = customInstructions;
|
|
1369
|
+
const contentLanguage = requestedContentLanguage(ctx);
|
|
1370
|
+
if (contentLanguage) body4.contentLanguage = contentLanguage;
|
|
1371
|
+
if (ctx.bool("rewrite-language")) {
|
|
1372
|
+
if (!contentLanguage) throw new Error("--rewrite-language requires --content-language.");
|
|
1373
|
+
body4.schemaMode = "rewrite-language";
|
|
1374
|
+
}
|
|
1344
1375
|
return body4;
|
|
1345
1376
|
}
|
|
1346
1377
|
async function executeSchema(ctx, api = kbApi) {
|
|
1347
|
-
return
|
|
1348
|
-
preserveBusinessErrorCode: true
|
|
1349
|
-
});
|
|
1378
|
+
return requestWithContentLanguage(ctx, API_PATH9, buildBody5(ctx), api, true);
|
|
1350
1379
|
}
|
|
1351
1380
|
var schema = {
|
|
1352
1381
|
service: "kb",
|
|
1353
1382
|
command: "+schema",
|
|
1354
1383
|
description: "Generate the compile schema for a knowledge base via POST /agent/api/external/knowledge-bases/schema.",
|
|
1355
1384
|
flags: [
|
|
1385
|
+
{ name: "content-language", type: "string", required: false, desc: "Set the knowledge-base content language while generating the guidelines." },
|
|
1386
|
+
{ name: "rewrite-language", type: "boolean", required: false, desc: "Rewrite the language of the existing guidelines while preserving their rules." },
|
|
1356
1387
|
{ name: "name", type: "string", required: true, desc: "Knowledge base name (looked up personal \u2192 company)" },
|
|
1357
1388
|
{ name: "scope", type: "string", required: false, desc: "Exact knowledge base scope: personal | company (omit for personal \u2192 company fallback)" },
|
|
1358
1389
|
{ name: "force", type: "boolean", required: false, desc: "Preempt generation even when status is `generating` (use only for stuck recovery)" },
|
|
@@ -1375,7 +1406,7 @@ var schema = {
|
|
|
1375
1406
|
risk: "write",
|
|
1376
1407
|
validate: (ctx) => {
|
|
1377
1408
|
getExternalKnowledgeBaseTargetScope(ctx);
|
|
1378
|
-
|
|
1409
|
+
buildBody5(ctx);
|
|
1379
1410
|
},
|
|
1380
1411
|
dryRun: (ctx) => ({
|
|
1381
1412
|
method: "POST",
|
|
@@ -1685,7 +1716,7 @@ var kbGrep = {
|
|
|
1685
1716
|
name: "paths",
|
|
1686
1717
|
type: "json",
|
|
1687
1718
|
required: true,
|
|
1688
|
-
desc: 'JSON array of
|
|
1719
|
+
desc: 'JSON array of files or subdirectories strictly under wiki/, copied from returned navigation, e.g. ["wiki/sandbox.md"] or ["wiki/guides"]. The roots "wiki" and "wiki/", index.md, raw/, absolute paths and paths escaping wiki/ are invalid. If navigation provides no usable paths, skip +grep; never use the wiki root as a fallback.'
|
|
1689
1720
|
},
|
|
1690
1721
|
{ name: "top-k", type: "number", required: false, min: 1, max: 50, desc: "Max number of pages to return (1-50, default 10)" },
|
|
1691
1722
|
{ name: "locale", type: "string", required: false, desc: "Optional locale: zh | en | ja | ko" }
|
|
@@ -2,14 +2,17 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
getAuthHeaders,
|
|
4
4
|
kbApi
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WRYXVIJP.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-
|
|
12
|
+
} from "./chunk-KBJHBVO7.js";
|
|
13
|
+
import "./chunk-STHIGWWC.js";
|
|
11
14
|
import "./chunk-6E6HCTP2.js";
|
|
12
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-SQEK6S4X.js";
|
|
13
16
|
import "./chunk-PUSFEC6B.js";
|
|
14
17
|
import "./chunk-UWQXGF44.js";
|
|
15
18
|
import "./chunk-IGU3R2JD.js";
|
|
@@ -78,6 +81,12 @@ var createTeam = {
|
|
|
78
81
|
};
|
|
79
82
|
|
|
80
83
|
// src/commands/te-team/team/update-team.ts
|
|
84
|
+
var scopeHelp = {
|
|
85
|
+
en: "For compatibility, pass the current scope only. Use +promote or +copy-to-personal to change ownership.",
|
|
86
|
+
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",
|
|
87
|
+
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",
|
|
88
|
+
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."
|
|
89
|
+
};
|
|
81
90
|
var VALID_SCOPES2 = /* @__PURE__ */ new Set(["personal", "company"]);
|
|
82
91
|
function buildBody2(ctx) {
|
|
83
92
|
const body = {};
|
|
@@ -102,7 +111,7 @@ var updateTeam = {
|
|
|
102
111
|
{ name: "name", type: "string", required: false, desc: "New team name" },
|
|
103
112
|
{ name: "config", type: "json", required: false, desc: "New TeamConfig JSON" },
|
|
104
113
|
{ name: "description", type: "string", required: false, desc: "New description" },
|
|
105
|
-
{ name: "scope", type: "string", required: false, desc:
|
|
114
|
+
{ name: "scope", type: "string", required: false, desc: scopeHelp[detectCliLocale()] },
|
|
106
115
|
{ name: "enabled", type: "boolean", required: false, desc: "Whether enabled" }
|
|
107
116
|
],
|
|
108
117
|
risk: "write",
|
|
@@ -117,7 +126,7 @@ var updateTeam = {
|
|
|
117
126
|
url: `${ctx.host().replace(/\/$/, "")}${BASE_TEAM_PATH}/${ctx.str("id")}`,
|
|
118
127
|
body: buildBody2(ctx)
|
|
119
128
|
}),
|
|
120
|
-
execute: async (ctx) => kbApi(ctx, "PATCH", `${BASE_TEAM_PATH}/${ctx.str("id")}`, {}, buildBody2(ctx))
|
|
129
|
+
execute: async (ctx) => kbApi(ctx, "PATCH", `${BASE_TEAM_PATH}/${ctx.str("id")}`, { lang: detectCliLocale() }, buildBody2(ctx))
|
|
121
130
|
};
|
|
122
131
|
|
|
123
132
|
// src/commands/te-team/team/delete-team.ts
|
|
@@ -202,10 +211,82 @@ var listProjects = {
|
|
|
202
211
|
}
|
|
203
212
|
};
|
|
204
213
|
|
|
214
|
+
// src/commands/te-team/team/scope-command.ts
|
|
215
|
+
var scopeText = {
|
|
216
|
+
en: {
|
|
217
|
+
id: "Team ID",
|
|
218
|
+
revision: "Use expectedRevision from the preview",
|
|
219
|
+
required: "Preview this Team with --dry-run, then pass its --expected-revision.",
|
|
220
|
+
promote: "Convert your personal Team to a company Team after reviewing the preview.",
|
|
221
|
+
copy: "Create an independent personal copy of a company Team."
|
|
222
|
+
},
|
|
223
|
+
zh: {
|
|
224
|
+
id: "Team ID",
|
|
225
|
+
revision: "\u4F7F\u7528\u9884\u89C8\u8FD4\u56DE\u7684 expectedRevision",
|
|
226
|
+
required: "\u8BF7\u5148\u8FD0\u884C --dry-run \u9884\u89C8\uFF0C\u518D\u4F20\u5165\u5BF9\u5E94\u7684 --expected-revision\u3002",
|
|
227
|
+
promote: "\u786E\u8BA4\u9884\u89C8\u540E\uFF0C\u5C06\u672C\u4EBA\u7684\u4E2A\u4EBA Team \u8F6C\u4E3A\u516C\u53F8 Team\u3002",
|
|
228
|
+
copy: "\u628A\u516C\u53F8 Team \u590D\u5236\u4E3A\u72EC\u7ACB\u7684\u4E2A\u4EBA Team\u3002"
|
|
229
|
+
},
|
|
230
|
+
ja: {
|
|
231
|
+
id: "Team ID",
|
|
232
|
+
revision: "\u30D7\u30EC\u30D3\u30E5\u30FC\u3067\u53D6\u5F97\u3057\u305F expectedRevision",
|
|
233
|
+
required: "--dry-run \u3067\u78BA\u8A8D\u3057\u3066\u304B\u3089 --expected-revision \u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
234
|
+
promote: "\u78BA\u8A8D\u3057\u305F\u500B\u4EBA\u7528 Team \u3092\u4F1A\u793E\u306E Team \u306B\u5909\u66F4\u3057\u307E\u3059\u3002",
|
|
235
|
+
copy: "\u4F1A\u793E\u306E Team \u306E\u72EC\u7ACB\u3057\u305F\u500B\u4EBA\u7528\u30B3\u30D4\u30FC\u3092\u4F5C\u6210\u3057\u307E\u3059\u3002"
|
|
236
|
+
},
|
|
237
|
+
ko: {
|
|
238
|
+
id: "Team ID",
|
|
239
|
+
revision: "\uBBF8\uB9AC \uBCF4\uAE30\uC5D0\uC11C \uBC1B\uC740 expectedRevision",
|
|
240
|
+
required: "\uBA3C\uC800 --dry-run\uC73C\uB85C \uD655\uC778\uD55C \uD6C4 --expected-revision\uC744 \uC804\uB2EC\uD558\uC138\uC694.",
|
|
241
|
+
promote: "\uBBF8\uB9AC \uBCF4\uAE30 \uD655\uC778 \uD6C4 \uAC1C\uC778 Team\uC744 \uD68C\uC0AC Team\uC73C\uB85C \uC804\uD658\uD569\uB2C8\uB2E4.",
|
|
242
|
+
copy: "\uD68C\uC0AC Team\uC758 \uB3C5\uB9BD\uC801\uC778 \uAC1C\uC778 \uBCF5\uC0AC\uBCF8\uC744 \uB9CC\uB4ED\uB2C8\uB2E4."
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
function teamScopeCommand(action) {
|
|
246
|
+
const txt = scopeText[detectCliLocale()];
|
|
247
|
+
const endpoint = (ctx) => BASE_TEAM_PATH + "/" + encodeURIComponent(ctx.str("id")) + "/" + action;
|
|
248
|
+
return {
|
|
249
|
+
service: "team",
|
|
250
|
+
description: txt[action],
|
|
251
|
+
risk: "write",
|
|
252
|
+
flags: [
|
|
253
|
+
{ name: "id", type: "string", required: true, desc: txt.id },
|
|
254
|
+
{ name: "expected-revision", type: "string", desc: txt.revision }
|
|
255
|
+
],
|
|
256
|
+
dryRun: (ctx) => kbApi(ctx, "GET", endpoint(ctx), { lang: detectCliLocale() }),
|
|
257
|
+
execute: (ctx) => {
|
|
258
|
+
const expectedRevision = ctx.str("expected-revision");
|
|
259
|
+
if (!expectedRevision) throw new Error(txt.required);
|
|
260
|
+
return kbApi(
|
|
261
|
+
ctx,
|
|
262
|
+
"POST",
|
|
263
|
+
endpoint(ctx),
|
|
264
|
+
{ lang: detectCliLocale() },
|
|
265
|
+
{ expectedRevision },
|
|
266
|
+
{ preserveBusinessErrorCode: true }
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// src/commands/te-team/team/promote-team.ts
|
|
273
|
+
var promoteTeam = {
|
|
274
|
+
command: "+promote",
|
|
275
|
+
...teamScopeCommand("promote")
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
// src/commands/te-team/team/copy-team.ts
|
|
279
|
+
var copyTeam = {
|
|
280
|
+
command: "+copy-to-personal",
|
|
281
|
+
...teamScopeCommand("copy")
|
|
282
|
+
};
|
|
283
|
+
|
|
205
284
|
// src/commands/te-team/team/index.ts
|
|
206
285
|
var commands = [
|
|
207
286
|
listTeams,
|
|
208
287
|
createTeam,
|
|
288
|
+
promoteTeam,
|
|
289
|
+
copyTeam,
|
|
209
290
|
updateTeam,
|
|
210
291
|
deleteTeam,
|
|
211
292
|
aiGenerate,
|
|
@@ -1,14 +1,14 @@
|
|
|
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-DTODOQ6T.js";
|
|
5
|
+
import "./chunk-UK7HQ4IL.js";
|
|
6
|
+
import "./chunk-KE5WGBXS.js";
|
|
7
7
|
import {
|
|
8
8
|
CapabilityGatewayError,
|
|
9
9
|
buildCapabilityGatewayUrl,
|
|
10
10
|
callCapabilityApi
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-STHIGWWC.js";
|
|
12
12
|
import "./chunk-6E6HCTP2.js";
|
|
13
13
|
import "./chunk-PUSFEC6B.js";
|
|
14
14
|
import "./chunk-UWQXGF44.js";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
printError,
|
|
4
4
|
printOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KBJHBVO7.js";
|
|
6
6
|
import {
|
|
7
7
|
buildVersionInstallPlan,
|
|
8
8
|
exactVersion,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
missingAeHostHint,
|
|
15
15
|
recordVersionSyncResult,
|
|
16
16
|
rememberBusinessConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SQEK6S4X.js";
|
|
18
18
|
import {
|
|
19
19
|
getLocalCliPackageInfo
|
|
20
20
|
} from "./chunk-PUSFEC6B.js";
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "./chunk-QOJXLXDJ.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchSigned
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KE5WGBXS.js";
|
|
8
8
|
import {
|
|
9
9
|
CapabilityGatewayError,
|
|
10
10
|
executeCapability
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-STHIGWWC.js";
|
|
12
12
|
import "./chunk-6E6HCTP2.js";
|
|
13
13
|
import {
|
|
14
14
|
assembleSyncJsonBody,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
websiteEnvironment,
|
|
44
44
|
websiteOrigin,
|
|
45
45
|
withCliEntryContext
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-SQEK6S4X.js";
|
|
47
47
|
import {
|
|
48
48
|
getLocalCliPackageInfo
|
|
49
49
|
} from "./chunk-PUSFEC6B.js";
|
|
@@ -1774,7 +1774,7 @@ var defaults = {
|
|
|
1774
1774
|
authorize: authorizeLoginDevice,
|
|
1775
1775
|
poll: (issuer, code, signal) => pollDeviceToken(issuer, code, code.startsWith("uba_") ? "uba" : "legacy", signal),
|
|
1776
1776
|
async persist(host, tokens, signal) {
|
|
1777
|
-
const { persistDeviceTokens, activateHostAfterLogin } = await import("./auth-
|
|
1777
|
+
const { persistDeviceTokens, activateHostAfterLogin } = await import("./auth-BD3NIY3T.js");
|
|
1778
1778
|
await persistDeviceTokens(host, tokens, { signal, checkCompatibility: false });
|
|
1779
1779
|
activateHostAfterLogin(host, host);
|
|
1780
1780
|
},
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
workspaceResourcePath,
|
|
14
14
|
workspaceTargetFlags,
|
|
15
15
|
workspaceTargetPath
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2RORKIF6.js";
|
|
17
17
|
import "./chunk-RK6GLDGI.js";
|
|
18
18
|
import {
|
|
19
19
|
getAgentBuffer
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-UK7HQ4IL.js";
|
|
21
|
+
import "./chunk-KE5WGBXS.js";
|
|
22
22
|
import "./chunk-UWQXGF44.js";
|
|
23
23
|
import "./chunk-IGU3R2JD.js";
|
|
24
24
|
import "./chunk-MTK4ZE7W.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thinkingai/ae-cli",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.39",
|
|
4
4
|
"description": "CLI tool for ThinkingAI (AE) analytics platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"verify:retired-api-command": "node --test test/retired-api-command.test.mjs",
|
|
53
53
|
"verify:analysis-common-tools": "node scripts/verify-te-common-tools.mjs",
|
|
54
54
|
"verify:experiment-tools": "node scripts/verify-te-experiment-tools.mjs && node --import tsx test/experiment/experiment-capability-command.test.mjs && node --import tsx --test test/experiment/experiment-approval-command.test.mjs && node --import tsx test/experiment/traffic-domain-command.test.mjs",
|
|
55
|
-
"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",
|
|
55
|
+
"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",
|
|
56
56
|
"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",
|
|
57
57
|
"verify:a2a": "node --import tsx --test tests/a2a-client.test.ts",
|
|
58
58
|
"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",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"verify:skill-businesses": "node --test test/release-gate-skill-businesses.test.mjs",
|
|
102
102
|
"verify:notifications": "tsx tests/notification-command.test.ts",
|
|
103
103
|
"verify:mcp-int64-request": "npx tsx tests/mcp-int64-request.test.ts",
|
|
104
|
-
"verify:cli-source-logging": "node --import tsx --test tests/source-logged-fetch.test.ts",
|
|
104
|
+
"verify:cli-source-logging": "node --import tsx --test tests/source-logged-fetch.test.ts tests/cli-agent-context-transports.test.ts",
|
|
105
105
|
"verify:capability-api": "npx tsx tests/capability-api.test.ts",
|
|
106
106
|
"verify:community-ux": "npm run build && npx tsx tests/community-ux.test.ts",
|
|
107
107
|
"verify:community-evidence": "node --import tsx tests/community-evidence.test.ts",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ae-automation
|
|
3
|
+
version: 1.1.2
|
|
3
4
|
description: "Schedule AE platform automations: every day/week, daily reports, recurring reminders, monitoring, or repeat this task. Use ae-cli automation for persistent Agent/Agent Team tasks in the current space, instead of session-local CronCreate or /loop. Also manage schedules, runs, and results."
|
|
4
5
|
---
|
|
5
6
|
|
|
@@ -11,8 +12,11 @@ See [command risks](references/command_index.md). Read [the command contract](re
|
|
|
11
12
|
|
|
12
13
|
1. Resolve the host and space. A local user signs in with `ae-cli auth login`; a sandbox uses the current conversation user's injected CLI token, never a shared sandbox's user binding. Pass `--agent-space-id` when the user identifies a space. Without an explicit space, the CLI inherits the current AgentSpace from its runtime context, working directory or verified current conversation; only a local invocation without space context uses the personal default. Show the resolved space when it matters.
|
|
13
14
|
2. Discover the automation with `automation list` and inspect `automation get`. Use the returned IDs; names are not unique.
|
|
14
|
-
3. For creation, select an Agent or team through the corresponding discovery commands. Match configuration to the target type. Use `--weekdays` or `--days-of-month` JSON arrays for multiple days with one time; skip dates absent in a month. For the actual last day of every month use `--days-of-month '["L"]'`, or combine it with dates, e.g. `'[1,15,"L"]'`; overlapping selections execute only once. Both Agent and Agent Team accept result notifications.
|
|
15
|
-
|
|
15
|
+
3. For creation, select an Agent or team through the corresponding discovery commands. Match configuration to the target type. Use `--weekdays` or `--days-of-month` JSON arrays for multiple days with one time; skip dates absent in a month. For the actual last day of every month use `--days-of-month '["L"]'`, or combine it with dates, e.g. `'[1,15,"L"]'`; overlapping selections execute only once. Both Agent and Agent Team accept result notifications. Save only the recurring task instructions as `--message`.
|
|
16
|
+
- In a conversation, run `ae-cli automation create --dry-run` for each new task, including a second task in the same chat or one that will start paused. Show the name, space, target, task instructions, schedule, model and depth, notifications, conversation mode and initial state, including any immediate run. Ask the user to confirm this preview and wait for their reply. Use AskUserQuestion when available. Selecting a target or answering a clarification only completes the preview. A changed configuration needs a new preview and confirmation. A cancellation ends that draft. Only an explicit reply approving this task authorizes one creation.
|
|
17
|
+
- For a single Agent, include reasoning depth in the confirmation. If no depth was requested, use adaptive without asking or copying the current conversation's setting. For an explicit depth, pass `--effort low|medium|high|max`. If the request is ambiguous or conflicting, clarify before creating.
|
|
18
|
+
- In a shared workspace, select an enabled company Team. A personal Team is only a valid target in a personal workspace; do not silently switch workspace or Team. For an Agent Team, ignore any requested depth, even an unrecognized one. Use the team's own settings and continue without asking about depth. For a request to change only Team depth, use the CLI update with the supplied effort to verify permission. A successful `unchanged: true` means the override was ignored and the team still uses its own settings. With a mixed update, report the fields that were saved and the ignored depth separately.
|
|
19
|
+
4. Execute the requested operation. After creation, read back the returned automation ID with `automation get` and verify the saved space and configuration, including the Agent effort (`null` means adaptive) before reporting success. Link to the returned `detailPath` including its `agentSpaceId` query. A local schedule or a promise to run later is not a platform creation receipt. Deleting an automation or stopping an execution requires confirmation; use `--yes` only when the user already authorized that action. In a non-interactive shell, these operations fail immediately unless global `--yes` is present.
|
|
16
20
|
5. Read the returned run ID, then `automation runs result`. Report acceptance separately from completion. Use `--wait` only when the user needs the final outcome now.
|
|
17
21
|
|
|
18
22
|
Results are read from the server and work outside the sandbox. This skill does not read complete conversations or continue a chat. Never infer an output from a different execution sharing the same conversation.
|