@thinkingai/ae-cli 6.0.61 → 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 +2 -0
- package/README.zh.md +2 -0
- package/dist/{ai-monitor-NUKSJPLE.js → ai-monitor-X5GL44JT.js} +5 -5
- package/dist/ai-monitor.js +7 -7
- package/dist/{auth-MVAEBGBP.js → auth-SPQ46XQ3.js} +3 -3
- package/dist/{automation-6L6IAYRK.js → automation-7XC3VBZI.js} +85 -9
- package/dist/{capability-74N7AN5X.js → capability-JZP4KXZC.js} +3 -3
- package/dist/{chunk-SVNED423.js → chunk-2VKMHNUU.js} +4 -4
- package/dist/{chunk-JZY6WWAP.js → chunk-6HOM2FOJ.js} +10 -1
- package/dist/{chunk-COOMXFUG.js → chunk-AAN6KBUK.js} +2 -2
- package/dist/{chunk-H35VDOAE.js → chunk-E457FREE.js} +2 -2
- package/dist/{chunk-VLOGOM7N.js → chunk-ETQXIZFP.js} +2 -1
- package/dist/{chunk-XZDKAR4N.js → chunk-F36ORPI6.js} +3 -28
- package/dist/{chunk-7WBCSJL6.js → chunk-F7TCQPQX.js} +1 -1
- package/dist/{chunk-HRFYYEXR.js → chunk-FGGEF7MI.js} +2 -2
- package/dist/chunk-N2MAYIRU.js +32 -0
- package/dist/{chunk-RB26WNLM.js → chunk-PRCHMOWT.js} +1 -1
- package/dist/{chunk-LPKIMGIU.js → chunk-RYY5NJK3.js} +2 -2
- package/dist/{chunk-OTZ4JQDU.js → chunk-VR2D54AA.js} +1 -1
- package/dist/{chunk-THTROEGD.js → chunk-YIG3L4RC.js} +1 -1
- package/dist/{chunk-XPARQSYS.js → chunk-YJYC5PLL.js} +2 -3
- package/dist/{chunk-HIMOBNEY.js → chunk-ZVUXAHEV.js} +1 -1
- package/dist/{compat-check-W4XC27RG.js → compat-check-JD5D77ET.js} +1 -1
- package/dist/{config-264GB6C7.js → config-IIMRATTP.js} +3 -3
- package/dist/{context-SOQDFZIB.js → context-BXHIPIIX.js} +1 -1
- package/dist/{data-integration-UNJ7EPW2.js → data-integration-VRJQ3HVK.js} +2 -1
- package/dist/index.js +33 -31
- package/dist/{memory-ZLTTULZK.js → memory-B44LY27L.js} +3 -3
- package/dist/{metadata-EN2IWCDI.js → metadata-ZVPG2MIA.js} +5 -5
- package/dist/{model-NAKQWK4W.js → model-ANZBYVST.js} +1 -1
- package/dist/{personal-semantic-preference-UGN67KTN.js → personal-semantic-preference-YNCV4QG3.js} +4 -4
- package/dist/{project-semantic-5OP3YPZD.js → project-semantic-E7ZAQL5S.js} +4 -4
- package/dist/{sync-LDJQZRQH.js → sync-Y4OZRQAY.js} +3 -3
- package/dist/{te-agent-WNNAD4AJ.js → te-agent-RKAUTYJZ.js} +4 -4
- package/dist/{te-analysis-KIMH6AGU.js → te-analysis-7N5VC4JB.js} +5 -5
- package/dist/{te-community-P7NNBVCS.js → te-community-SIA2UHTS.js} +4 -4
- package/dist/{te-dataops-ZRKSG4R7.js → te-dataops-5MJQCODU.js} +2 -2
- package/dist/{te-engage-PVBVNRSU.js → te-engage-ZTLOMKO3.js} +68 -16
- package/dist/{te-kb-W7PRC7QN.js → te-kb-LDL3MF2Y.js} +44 -13
- package/dist/{te-system-F4ZU2HRQ.js → te-system-473I5O53.js} +1 -1
- package/dist/{te-team-5ONMRGKF.js → te-team-JOWHCMZA.js} +87 -6
- package/dist/{things-PFENSIF4.js → things-DOQ2L3O2.js} +4 -4
- package/dist/{update-EUZ4GNND.js → update-KUS6TCPB.js} +2 -2
- package/dist/{workspace-Z7L33OBQ.js → workspace-MJFPIV7C.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-kb/SKILL.md +8 -6
- 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/skills/ae-tracking-matrix/SKILL.md +0 -170
- package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
- package/skills/ae-tracking-matrix/i18n.yaml +0 -12
- package/skills/ae-tracking-matrix/references/ae-capabilities.md +0 -93
- package/skills/ae-tracking-matrix/references/business-semantic-checks.md +0 -30
- package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +0 -256
- package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +0 -213
- package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +0 -407
- package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +0 -218
- package/skills/ae-tracking-matrix/references/categories/casual_music.md +0 -112
- package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +0 -301
- package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +0 -356
- package/skills/ae-tracking-matrix/references/categories/fishing.md +0 -775
- package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +0 -89
- package/skills/ae-tracking-matrix/references/categories/idle_card.md +0 -27
- package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +0 -415
- package/skills/ae-tracking-matrix/references/categories/interactive_video.md +0 -133
- package/skills/ae-tracking-matrix/references/categories/merge.md +0 -639
- package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +0 -406
- package/skills/ae-tracking-matrix/references/categories/mmo_web.md +0 -230
- package/skills/ae-tracking-matrix/references/categories/music.md +0 -137
- package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +0 -414
- package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +0 -199
- package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +0 -158
- package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +0 -546
- package/skills/ae-tracking-matrix/references/categories/rpg.md +0 -195
- package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +0 -115
- package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +0 -151
- package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +0 -260
- package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +0 -232
- package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +0 -359
- package/skills/ae-tracking-matrix/references/categories/tower_defense.md +0 -365
- package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +0 -211
- package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +0 -132
- package/skills/ae-tracking-matrix/references/category-registry.md +0 -77
- package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +0 -230
- package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +0 -406
- package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +0 -128
- package/skills/ae-tracking-matrix/references/eval-cases.md +0 -74
- package/skills/ae-tracking-matrix/references/naming-dict.md +0 -238
- package/skills/ae-tracking-matrix/references/optimization-checklist.md +0 -85
- package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +0 -142
- package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +0 -47
- package/skills/ae-tracking-matrix/references/plan-generation/reference.md +0 -794
- package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +0 -94
- package/skills/ae-tracking-matrix/references/scene-routing.md +0 -80
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +0 -3787
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +0 -827
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +0 -655
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +0 -953
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +0 -1128
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +0 -714
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +0 -1268
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +0 -776
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +0 -182
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +0 -2755
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +0 -1182
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +0 -1300
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +0 -1369
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +0 -1692
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +0 -902
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +0 -763
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +0 -1107
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +0 -1532
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +0 -845
- package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +0 -228
- package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +0 -149
- package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +0 -407
- package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +0 -163
- package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +0 -149
- package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +0 -153
- package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +0 -232
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +0 -314
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +0 -117
- package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +0 -148
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +0 -645
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +0 -307
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +0 -347
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +0 -72
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +0 -264
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +0 -566
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +0 -409
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +0 -446
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +0 -557
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +0 -457
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +0 -490
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +0 -523
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +0 -484
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +0 -442
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +0 -391
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +0 -91
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +0 -635
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +0 -113
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +0 -466
- package/skills/ae-tracking-matrix/references/standard-base/README.md +0 -22
- package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +0 -174
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +0 -20
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +0 -7
- package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +0 -14
- package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +0 -370
- package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +0 -47
- package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +0 -37
- package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +0 -27
- package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +0 -23
- package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +0 -14
- package/skills/ae-tracking-matrix/references/standard-base/user_data.md +0 -46
- package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +0 -13
- package/skills/ae-tracking-matrix/references/system-fields.md +0 -297
- package/skills/ae-tracking-matrix/references/te-field-translations.md +0 -1791
- package/skills/ae-tracking-matrix/references/workflows/data-verification.md +0 -232
- package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +0 -829
- package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +0 -355
- package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +0 -283
- package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +0 -168
- package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +0 -205
- package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +0 -75
- package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +0 -36
- package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +0 -107
- package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +0 -114
- package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +0 -53
- package/skills/ae-tracking-matrix/scripts/finalize_plan.py +0 -166
- package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +0 -674
- package/skills/ae-tracking-matrix/scripts/plan_contract.py +0 -200
- package/skills/ae-tracking-matrix/scripts/plan_types.py +0 -60
- package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +0 -169
- package/skills/ae-tracking-matrix/scripts/sync_plan.py +0 -296
- package/skills/ae-tracking-matrix/scripts/upload_plan.py +0 -340
package/dist/index.js
CHANGED
|
@@ -2,7 +2,6 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
allHeaderNames,
|
|
4
4
|
allSheetNames,
|
|
5
|
-
detectCliLocale,
|
|
6
5
|
displayToType,
|
|
7
6
|
extractErrors,
|
|
8
7
|
fixDraft,
|
|
@@ -14,29 +13,32 @@ import {
|
|
|
14
13
|
validateAndFix,
|
|
15
14
|
validateDraft,
|
|
16
15
|
writeDraftXlsx
|
|
17
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-F36ORPI6.js";
|
|
18
17
|
import "./chunk-UCMO4LKL.js";
|
|
19
18
|
import "./chunk-2I5SZ5DS.js";
|
|
20
19
|
import "./chunk-HQED4YB4.js";
|
|
21
20
|
import {
|
|
22
21
|
resolveHost
|
|
23
22
|
} from "./chunk-KA5WKR5P.js";
|
|
23
|
+
import {
|
|
24
|
+
detectCliLocale
|
|
25
|
+
} from "./chunk-N2MAYIRU.js";
|
|
24
26
|
import {
|
|
25
27
|
configureBusinessCommands,
|
|
26
28
|
parseProgram,
|
|
27
29
|
runCommand
|
|
28
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2VKMHNUU.js";
|
|
29
31
|
import "./chunk-EFGUBGA6.js";
|
|
30
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-ETQXIZFP.js";
|
|
31
33
|
import "./chunk-LFJ7N36I.js";
|
|
32
34
|
import {
|
|
33
35
|
printError,
|
|
34
36
|
printOutput
|
|
35
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-VR2D54AA.js";
|
|
36
38
|
import {
|
|
37
39
|
executeCapability,
|
|
38
40
|
uploadInputFileBytes
|
|
39
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-6HOM2FOJ.js";
|
|
40
42
|
import "./chunk-NNK3JBH4.js";
|
|
41
43
|
import {
|
|
42
44
|
beginBusinessSkillRefresh,
|
|
@@ -50,7 +52,7 @@ import {
|
|
|
50
52
|
runHostCompatCheck,
|
|
51
53
|
shouldSkipAutoSync,
|
|
52
54
|
syncRefreshedBusinessSkills
|
|
53
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-YJYC5PLL.js";
|
|
54
56
|
import {
|
|
55
57
|
getLocalCliPackageInfo
|
|
56
58
|
} from "./chunk-PUSFEC6B.js";
|
|
@@ -2143,105 +2145,105 @@ function warnLoadFailure(label, err) {
|
|
|
2143
2145
|
async function loadCommands() {
|
|
2144
2146
|
const commands = [];
|
|
2145
2147
|
try {
|
|
2146
|
-
const teAnalysis = await import("./te-analysis-
|
|
2148
|
+
const teAnalysis = await import("./te-analysis-7N5VC4JB.js");
|
|
2147
2149
|
commands.push(...teAnalysis.default);
|
|
2148
2150
|
} catch (err) {
|
|
2149
2151
|
warnLoadFailure("domain te-analysis", err);
|
|
2150
2152
|
}
|
|
2151
2153
|
try {
|
|
2152
|
-
const engage = await import("./te-engage-
|
|
2154
|
+
const engage = await import("./te-engage-ZTLOMKO3.js");
|
|
2153
2155
|
commands.push(...engage.default);
|
|
2154
2156
|
} catch (err) {
|
|
2155
2157
|
warnLoadFailure("domain te-engage", err);
|
|
2156
2158
|
}
|
|
2157
2159
|
try {
|
|
2158
|
-
const community = await import("./te-community-
|
|
2160
|
+
const community = await import("./te-community-SIA2UHTS.js");
|
|
2159
2161
|
commands.push(...community.default);
|
|
2160
2162
|
} catch (err) {
|
|
2161
2163
|
warnLoadFailure("domain te-community", err);
|
|
2162
2164
|
}
|
|
2163
2165
|
try {
|
|
2164
|
-
const dataops = await import("./te-dataops-
|
|
2166
|
+
const dataops = await import("./te-dataops-5MJQCODU.js");
|
|
2165
2167
|
commands.push(...dataops.default);
|
|
2166
2168
|
} catch (err) {
|
|
2167
2169
|
warnLoadFailure("domain te-dataops", err);
|
|
2168
2170
|
}
|
|
2169
2171
|
try {
|
|
2170
|
-
const teKb = await import("./te-kb-
|
|
2172
|
+
const teKb = await import("./te-kb-LDL3MF2Y.js");
|
|
2171
2173
|
commands.push(...teKb.default);
|
|
2172
2174
|
} catch (err) {
|
|
2173
2175
|
warnLoadFailure("domain te-kb", err);
|
|
2174
2176
|
}
|
|
2175
2177
|
try {
|
|
2176
|
-
const teTeam = await import("./te-team-
|
|
2178
|
+
const teTeam = await import("./te-team-JOWHCMZA.js");
|
|
2177
2179
|
commands.push(...teTeam.default);
|
|
2178
2180
|
} catch (err) {
|
|
2179
2181
|
warnLoadFailure("domain te-team", err);
|
|
2180
2182
|
}
|
|
2181
2183
|
try {
|
|
2182
|
-
const teAgent = await import("./te-agent-
|
|
2184
|
+
const teAgent = await import("./te-agent-RKAUTYJZ.js");
|
|
2183
2185
|
commands.push(...teAgent.default);
|
|
2184
2186
|
} catch (err) {
|
|
2185
2187
|
warnLoadFailure("domain te-agent", err);
|
|
2186
2188
|
}
|
|
2187
2189
|
try {
|
|
2188
|
-
const memory = await import("./memory-
|
|
2190
|
+
const memory = await import("./memory-B44LY27L.js");
|
|
2189
2191
|
commands.push(...memory.default);
|
|
2190
2192
|
} catch (err) {
|
|
2191
2193
|
warnLoadFailure("domain memory", err);
|
|
2192
2194
|
}
|
|
2193
|
-
const automation = await import("./automation-
|
|
2195
|
+
const automation = await import("./automation-7XC3VBZI.js");
|
|
2194
2196
|
commands.push(...automation.default);
|
|
2195
2197
|
try {
|
|
2196
|
-
const things = await import("./things-
|
|
2198
|
+
const things = await import("./things-DOQ2L3O2.js");
|
|
2197
2199
|
commands.push(...things.default);
|
|
2198
2200
|
} catch (err) {
|
|
2199
2201
|
warnLoadFailure("domain things", err);
|
|
2200
2202
|
}
|
|
2201
2203
|
try {
|
|
2202
|
-
const workspace = await import("./workspace-
|
|
2204
|
+
const workspace = await import("./workspace-MJFPIV7C.js");
|
|
2203
2205
|
commands.push(...workspace.default);
|
|
2204
2206
|
} catch (err) {
|
|
2205
2207
|
warnLoadFailure("domain workspace", err);
|
|
2206
2208
|
}
|
|
2207
2209
|
try {
|
|
2208
|
-
const teSystem = await import("./te-system-
|
|
2210
|
+
const teSystem = await import("./te-system-473I5O53.js");
|
|
2209
2211
|
commands.push(...teSystem.default);
|
|
2210
2212
|
} catch (err) {
|
|
2211
2213
|
warnLoadFailure("domain te-system", err);
|
|
2212
2214
|
}
|
|
2213
2215
|
try {
|
|
2214
|
-
const metadata = await import("./metadata-
|
|
2216
|
+
const metadata = await import("./metadata-ZVPG2MIA.js");
|
|
2215
2217
|
commands.push(...metadata.default);
|
|
2216
2218
|
} catch (err) {
|
|
2217
2219
|
warnLoadFailure("domain metadata", err);
|
|
2218
2220
|
}
|
|
2219
2221
|
try {
|
|
2220
|
-
const personalSemanticPreference = await import("./personal-semantic-preference-
|
|
2222
|
+
const personalSemanticPreference = await import("./personal-semantic-preference-YNCV4QG3.js");
|
|
2221
2223
|
commands.push(...personalSemanticPreference.default);
|
|
2222
2224
|
} catch (err) {
|
|
2223
2225
|
warnLoadFailure("domain personal-semantic-preference", err);
|
|
2224
2226
|
}
|
|
2225
2227
|
try {
|
|
2226
|
-
const projectSemantic = await import("./project-semantic-
|
|
2228
|
+
const projectSemantic = await import("./project-semantic-E7ZAQL5S.js");
|
|
2227
2229
|
commands.push(...projectSemantic.default);
|
|
2228
2230
|
} catch (err) {
|
|
2229
2231
|
warnLoadFailure("domain project-semantic", err);
|
|
2230
2232
|
}
|
|
2231
2233
|
try {
|
|
2232
|
-
const dataIntegration = await import("./data-integration-
|
|
2234
|
+
const dataIntegration = await import("./data-integration-VRJQ3HVK.js");
|
|
2233
2235
|
commands.push(...dataIntegration.default);
|
|
2234
2236
|
} catch (err) {
|
|
2235
2237
|
warnLoadFailure("domain data-integration", err);
|
|
2236
2238
|
}
|
|
2237
2239
|
try {
|
|
2238
|
-
const context = await import("./context-
|
|
2240
|
+
const context = await import("./context-BXHIPIIX.js");
|
|
2239
2241
|
commands.push(...context.default);
|
|
2240
2242
|
} catch (err) {
|
|
2241
2243
|
warnLoadFailure("domain context", err);
|
|
2242
2244
|
}
|
|
2243
2245
|
try {
|
|
2244
|
-
const aiMonitor = await import("./ai-monitor-
|
|
2246
|
+
const aiMonitor = await import("./ai-monitor-X5GL44JT.js");
|
|
2245
2247
|
commands.push(...aiMonitor.default);
|
|
2246
2248
|
} catch (err) {
|
|
2247
2249
|
warnLoadFailure("domain ai-monitor", err);
|
|
@@ -2256,7 +2258,7 @@ async function loadCommands() {
|
|
|
2256
2258
|
}
|
|
2257
2259
|
async function registerAuthCommands() {
|
|
2258
2260
|
try {
|
|
2259
|
-
const { registerAuth } = await import("./auth-
|
|
2261
|
+
const { registerAuth } = await import("./auth-SPQ46XQ3.js");
|
|
2260
2262
|
registerAuth(program);
|
|
2261
2263
|
} catch (err) {
|
|
2262
2264
|
warnLoadFailure("auth commands", err);
|
|
@@ -2264,7 +2266,7 @@ async function registerAuthCommands() {
|
|
|
2264
2266
|
}
|
|
2265
2267
|
async function registerConfigCommands() {
|
|
2266
2268
|
try {
|
|
2267
|
-
const { registerConfig } = await import("./config-
|
|
2269
|
+
const { registerConfig } = await import("./config-IIMRATTP.js");
|
|
2268
2270
|
registerConfig(program);
|
|
2269
2271
|
} catch (err) {
|
|
2270
2272
|
warnLoadFailure("config commands", err);
|
|
@@ -2272,7 +2274,7 @@ async function registerConfigCommands() {
|
|
|
2272
2274
|
}
|
|
2273
2275
|
async function registerCapabilityCommands() {
|
|
2274
2276
|
try {
|
|
2275
|
-
const { registerCapability } = await import("./capability-
|
|
2277
|
+
const { registerCapability } = await import("./capability-JZP4KXZC.js");
|
|
2276
2278
|
registerCapability(program);
|
|
2277
2279
|
} catch (err) {
|
|
2278
2280
|
warnLoadFailure("capability commands", err);
|
|
@@ -2280,7 +2282,7 @@ async function registerCapabilityCommands() {
|
|
|
2280
2282
|
}
|
|
2281
2283
|
async function registerSyncCommand() {
|
|
2282
2284
|
try {
|
|
2283
|
-
const { registerSync } = await import("./sync-
|
|
2285
|
+
const { registerSync } = await import("./sync-Y4OZRQAY.js");
|
|
2284
2286
|
registerSync(program);
|
|
2285
2287
|
} catch (err) {
|
|
2286
2288
|
warnLoadFailure("sync commands", err);
|
|
@@ -2288,7 +2290,7 @@ async function registerSyncCommand() {
|
|
|
2288
2290
|
}
|
|
2289
2291
|
async function registerModelCommand() {
|
|
2290
2292
|
try {
|
|
2291
|
-
const { registerModel } = await import("./model-
|
|
2293
|
+
const { registerModel } = await import("./model-ANZBYVST.js");
|
|
2292
2294
|
registerModel(program);
|
|
2293
2295
|
} catch (err) {
|
|
2294
2296
|
warnLoadFailure("model commands", err);
|
|
@@ -2296,7 +2298,7 @@ async function registerModelCommand() {
|
|
|
2296
2298
|
}
|
|
2297
2299
|
async function registerUpdateCommand() {
|
|
2298
2300
|
try {
|
|
2299
|
-
const { registerUpdate } = await import("./update-
|
|
2301
|
+
const { registerUpdate } = await import("./update-KUS6TCPB.js");
|
|
2300
2302
|
registerUpdate(program);
|
|
2301
2303
|
} catch (err) {
|
|
2302
2304
|
warnLoadFailure("update commands", err);
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
getMemoryCli,
|
|
8
8
|
patchMemoryCli,
|
|
9
9
|
postMemoryCli
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-YIG3L4RC.js";
|
|
11
|
+
import "./chunk-ZVUXAHEV.js";
|
|
12
|
+
import "./chunk-ETQXIZFP.js";
|
|
13
13
|
import "./chunk-PLNS5J33.js";
|
|
14
14
|
import "./chunk-AMURHMS3.js";
|
|
15
15
|
import {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
withAsyncArtifactLifecycle
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RYY5NJK3.js";
|
|
5
5
|
import {
|
|
6
6
|
createCapabilityCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-E457FREE.js";
|
|
8
8
|
import {
|
|
9
9
|
registerCapabilityGatewayRoute
|
|
10
10
|
} from "./chunk-AWW2T2WL.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-VR2D54AA.js";
|
|
12
|
+
import "./chunk-6HOM2FOJ.js";
|
|
13
13
|
import "./chunk-NNK3JBH4.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-YJYC5PLL.js";
|
|
15
15
|
import "./chunk-PUSFEC6B.js";
|
|
16
16
|
import "./chunk-PLNS5J33.js";
|
|
17
17
|
import "./chunk-AMURHMS3.js";
|
package/dist/{personal-semantic-preference-UGN67KTN.js → personal-semantic-preference-YNCV4QG3.js}
RENAMED
|
@@ -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-E457FREE.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCapabilityGatewayRoute
|
|
7
7
|
} from "./chunk-AWW2T2WL.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-VR2D54AA.js";
|
|
9
|
+
import "./chunk-6HOM2FOJ.js";
|
|
10
10
|
import "./chunk-NNK3JBH4.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-YJYC5PLL.js";
|
|
12
12
|
import "./chunk-PUSFEC6B.js";
|
|
13
13
|
import "./chunk-PLNS5J33.js";
|
|
14
14
|
import "./chunk-AMURHMS3.js";
|
|
@@ -3,22 +3,22 @@ import {
|
|
|
3
3
|
assertOutputPathAvailable,
|
|
4
4
|
downloadAnalysisArtifact,
|
|
5
5
|
withAsyncArtifactLifecycle
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RYY5NJK3.js";
|
|
7
7
|
import {
|
|
8
8
|
registerCapabilityGatewayRoute,
|
|
9
9
|
resolveGatewayDomain
|
|
10
10
|
} from "./chunk-AWW2T2WL.js";
|
|
11
11
|
import {
|
|
12
12
|
withOutputMetadata
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VR2D54AA.js";
|
|
14
14
|
import {
|
|
15
15
|
CapabilityGatewayError,
|
|
16
16
|
dryRunCapabilityWithEnvelope,
|
|
17
17
|
executeCapabilityWithEnvelope,
|
|
18
18
|
validateCapabilityWithEnvelope
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6HOM2FOJ.js";
|
|
20
20
|
import "./chunk-NNK3JBH4.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-YJYC5PLL.js";
|
|
22
22
|
import "./chunk-PUSFEC6B.js";
|
|
23
23
|
import "./chunk-PLNS5J33.js";
|
|
24
24
|
import "./chunk-AMURHMS3.js";
|
|
@@ -33,11 +33,11 @@ import {
|
|
|
33
33
|
postSandboxSyncPull,
|
|
34
34
|
postToMainApp,
|
|
35
35
|
uploadToMainApp
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-ETQXIZFP.js";
|
|
37
37
|
import {
|
|
38
38
|
printError
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-VR2D54AA.js";
|
|
40
|
+
import "./chunk-YJYC5PLL.js";
|
|
41
41
|
import "./chunk-PUSFEC6B.js";
|
|
42
42
|
import "./chunk-PLNS5J33.js";
|
|
43
43
|
import "./chunk-AMURHMS3.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
workspaceResourcePath,
|
|
12
12
|
workspaceTargetFlags,
|
|
13
13
|
workspaceTargetPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AAN6KBUK.js";
|
|
15
15
|
import {
|
|
16
16
|
currentAgentSpaceId
|
|
17
17
|
} from "./chunk-RK6GLDGI.js";
|
|
@@ -27,15 +27,15 @@ import {
|
|
|
27
27
|
requestResourcePackageRaw,
|
|
28
28
|
resourcePackagePreflightChange,
|
|
29
29
|
uploadAgentApi
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ZVUXAHEV.js";
|
|
31
31
|
import {
|
|
32
32
|
TeAgentApiError,
|
|
33
33
|
resolveTeClaudeBaseUrl
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-ETQXIZFP.js";
|
|
35
35
|
import {
|
|
36
36
|
buildCapabilityGatewayUrl,
|
|
37
37
|
callCapabilityApi
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-6HOM2FOJ.js";
|
|
39
39
|
import "./chunk-NNK3JBH4.js";
|
|
40
40
|
import "./chunk-PUSFEC6B.js";
|
|
41
41
|
import {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
waitForAnalysisRun,
|
|
8
8
|
withAsyncArtifactLifecycle,
|
|
9
9
|
withInterruptSignal
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RYY5NJK3.js";
|
|
11
11
|
import {
|
|
12
12
|
evalApi
|
|
13
13
|
} from "./chunk-BQFLABJQ.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
createCapabilityCommand,
|
|
19
19
|
definitionIntentSnapshotFlag,
|
|
20
20
|
modelDefinitionIntentSnapshotFlag
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-E457FREE.js";
|
|
22
22
|
import {
|
|
23
23
|
registerCapabilityGatewayRoute,
|
|
24
24
|
resolveGatewayDomain
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
unwrapOutputData,
|
|
28
28
|
withOutputMetadata
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-VR2D54AA.js";
|
|
30
30
|
import {
|
|
31
31
|
CapabilityGatewayError,
|
|
32
32
|
buildCapabilityGatewayUrl,
|
|
@@ -40,9 +40,9 @@ import {
|
|
|
40
40
|
uploadInputFile,
|
|
41
41
|
validateCapability,
|
|
42
42
|
validateCapabilityWithEnvelope
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-6HOM2FOJ.js";
|
|
44
44
|
import "./chunk-NNK3JBH4.js";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-YJYC5PLL.js";
|
|
46
46
|
import "./chunk-PUSFEC6B.js";
|
|
47
47
|
import {
|
|
48
48
|
getCliToken
|
|
@@ -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-E457FREE.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCapabilityGatewayRoute,
|
|
7
7
|
resolveGatewayDomain
|
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
unwrapOutputData,
|
|
11
11
|
withOutputMetadata
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VR2D54AA.js";
|
|
13
13
|
import {
|
|
14
14
|
CapabilityGatewayError,
|
|
15
15
|
buildCapabilityGatewayUrl,
|
|
16
16
|
requestCapabilityGatewayWithEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6HOM2FOJ.js";
|
|
18
18
|
import {
|
|
19
19
|
sourceLoggedFetch
|
|
20
20
|
} from "./chunk-NNK3JBH4.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-YJYC5PLL.js";
|
|
22
22
|
import "./chunk-PUSFEC6B.js";
|
|
23
23
|
import {
|
|
24
24
|
SecureStoreAuthError,
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "./chunk-KA5WKR5P.js";
|
|
5
5
|
import {
|
|
6
6
|
printError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VR2D54AA.js";
|
|
8
8
|
import {
|
|
9
9
|
sourceLoggedFetch
|
|
10
10
|
} from "./chunk-NNK3JBH4.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-YJYC5PLL.js";
|
|
12
12
|
import "./chunk-PUSFEC6B.js";
|
|
13
13
|
import {
|
|
14
14
|
SecureStoreAuthError,
|
|
@@ -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-E457FREE.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-VR2D54AA.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-6HOM2FOJ.js";
|
|
20
20
|
import "./chunk-NNK3JBH4.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-YJYC5PLL.js";
|
|
22
22
|
import "./chunk-PUSFEC6B.js";
|
|
23
23
|
import "./chunk-PLNS5J33.js";
|
|
24
24
|
import "./chunk-AMURHMS3.js";
|
|
@@ -1748,19 +1748,58 @@ var commonMetricGet = createEngageSettingCapabilityCommand({
|
|
|
1748
1748
|
});
|
|
1749
1749
|
|
|
1750
1750
|
// src/commands/te-engage/engage-setting/common-metric/metric-qp-validation.ts
|
|
1751
|
-
var VALID_WINDOW_TIME_UNITS = /* @__PURE__ */ new Set(["minute", "hour", "day"]);
|
|
1751
|
+
var VALID_WINDOW_TIME_UNITS = /* @__PURE__ */ new Set(["minute", "hour", "day", "week", "month"]);
|
|
1752
1752
|
function validateMetricDefinitionFlag(definition) {
|
|
1753
1753
|
validateSemanticMetricDefinition(definition, "--metric-definition");
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1756
|
-
if (VALID_WINDOW_TIME_UNITS.has(unit)) {
|
|
1755
|
+
function validateMetricWindowFlags(unit, num, cycle, update = false) {
|
|
1756
|
+
if (!VALID_WINDOW_TIME_UNITS.has(unit)) {
|
|
1757
|
+
invalidWindow("--metric-window-time-unit must be one of: minute, hour, day, week, month.");
|
|
1758
|
+
}
|
|
1759
|
+
if (!Number.isInteger(num) || num < 1) {
|
|
1760
|
+
invalidWindow("--metric-window-num must be a positive integer.");
|
|
1761
|
+
}
|
|
1762
|
+
if (cycle === void 0 && update) {
|
|
1763
|
+
if ((unit === "week" || unit === "month") && num !== 1) {
|
|
1764
|
+
invalidWindow("Natural week/month windows require --metric-window-num 1.");
|
|
1765
|
+
}
|
|
1757
1766
|
return;
|
|
1758
1767
|
}
|
|
1759
|
-
|
|
1760
|
-
"
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1768
|
+
if (cycle === void 0 || cycle === null) {
|
|
1769
|
+
if (unit === "week" || unit === "month") {
|
|
1770
|
+
invalidWindow("Week/month windows require a non-null --time-cycle-def.");
|
|
1771
|
+
}
|
|
1772
|
+
return;
|
|
1773
|
+
}
|
|
1774
|
+
if (typeof cycle !== "object" || Array.isArray(cycle)) {
|
|
1775
|
+
invalidWindow("--time-cycle-def must be an object or null.");
|
|
1776
|
+
}
|
|
1777
|
+
const def = cycle;
|
|
1778
|
+
if (Object.keys(def).some((key) => key !== "start_day" && key !== "start_time")) {
|
|
1779
|
+
invalidWindow("--time-cycle-def accepts only start_day and start_time.");
|
|
1780
|
+
}
|
|
1781
|
+
if (num !== 1 || !["day", "week", "month"].includes(unit)) {
|
|
1782
|
+
invalidWindow("Natural windows require --metric-window-num 1 and unit day, week, or month.");
|
|
1783
|
+
}
|
|
1784
|
+
if (unit === "day" && "start_day" in def) {
|
|
1785
|
+
invalidWindow("Natural day windows must omit start_day.");
|
|
1786
|
+
}
|
|
1787
|
+
if (unit === "week" || unit === "month") {
|
|
1788
|
+
const max = unit === "week" ? 7 : 28;
|
|
1789
|
+
if (!Number.isInteger(def.start_day) || def.start_day < 1 || def.start_day > max) {
|
|
1790
|
+
invalidWindow(`Natural ${unit} start_day must be an integer from 1 to ${max}.`);
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
if (unit === "month") {
|
|
1794
|
+
if ("start_time" in def && def.start_time !== "00:00") {
|
|
1795
|
+
invalidWindow("Natural month start_time must be omitted or 00:00.");
|
|
1796
|
+
}
|
|
1797
|
+
} else if (typeof def.start_time !== "string" || !/^([01][0-9]|2[0-3]):[0-5][0-9]$/.test(def.start_time)) {
|
|
1798
|
+
invalidWindow("Natural day/week start_time must use HH:mm (00:00-23:59).");
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
function invalidWindow(message) {
|
|
1802
|
+
printError("validation", message, "Omit --time-cycle-def on update to preserve it; pass null to use a rolling window.");
|
|
1764
1803
|
process.exit(1);
|
|
1765
1804
|
}
|
|
1766
1805
|
function validatePresetMetricTypeFlag(metricType) {
|
|
@@ -1791,8 +1830,9 @@ var writeFlags = [
|
|
|
1791
1830
|
name: "metric-window-time-unit",
|
|
1792
1831
|
type: "string",
|
|
1793
1832
|
required: true,
|
|
1794
|
-
desc: "
|
|
1833
|
+
desc: "Rolling unit: minute/hour/day; natural cycle unit: day/week/month."
|
|
1795
1834
|
},
|
|
1835
|
+
{ 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." },
|
|
1796
1836
|
{ name: "display-name", type: "string", required: true, desc: "Display name of the metric." },
|
|
1797
1837
|
{ name: "note", type: "string", required: false, desc: "Metric note/remark." },
|
|
1798
1838
|
{ name: "order-id", type: "number", required: false, desc: "Sort order id." },
|
|
@@ -1806,6 +1846,7 @@ var buildWriteInput = (ctx) => ({
|
|
|
1806
1846
|
metric_definition: ctx.json("metric-definition"),
|
|
1807
1847
|
metric_window_num: ctx.num("metric-window-num"),
|
|
1808
1848
|
metric_window_time_unit: ctx.str("metric-window-time-unit"),
|
|
1849
|
+
time_cycle_def: ctx.json("time-cycle-def"),
|
|
1809
1850
|
display_name: ctx.str("display-name"),
|
|
1810
1851
|
note: ctx.str("note") || void 0,
|
|
1811
1852
|
order_id: ctx.optionalNum("order-id"),
|
|
@@ -1822,7 +1863,11 @@ var commonMetricCreate = createEngageSettingCapabilityCommand({
|
|
|
1822
1863
|
validate: (ctx) => {
|
|
1823
1864
|
validatePresetMetricTypeFlag(ctx.num("metric-type"));
|
|
1824
1865
|
validateMetricDefinitionFlag(ctx.json("metric-definition"));
|
|
1825
|
-
|
|
1866
|
+
validateMetricWindowFlags(
|
|
1867
|
+
ctx.str("metric-window-time-unit"),
|
|
1868
|
+
ctx.num("metric-window-num"),
|
|
1869
|
+
ctx.json("time-cycle-def")
|
|
1870
|
+
);
|
|
1826
1871
|
},
|
|
1827
1872
|
buildInput: buildWriteInput
|
|
1828
1873
|
});
|
|
@@ -1843,8 +1888,9 @@ var writeFlags2 = [
|
|
|
1843
1888
|
name: "metric-window-time-unit",
|
|
1844
1889
|
type: "string",
|
|
1845
1890
|
required: true,
|
|
1846
|
-
desc: "
|
|
1891
|
+
desc: "Rolling unit: minute/hour/day; natural cycle unit: day/week/month."
|
|
1847
1892
|
},
|
|
1893
|
+
{ 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." },
|
|
1848
1894
|
{ name: "display-name", type: "string", required: true, desc: "Display name of the metric." },
|
|
1849
1895
|
{ name: "note", type: "string", required: false, desc: "Metric note/remark." },
|
|
1850
1896
|
{ name: "order-id", type: "number", required: false, desc: "Sort order id." },
|
|
@@ -1858,6 +1904,7 @@ var buildWriteInput2 = (ctx) => ({
|
|
|
1858
1904
|
metric_definition: ctx.json("metric-definition"),
|
|
1859
1905
|
metric_window_num: ctx.num("metric-window-num"),
|
|
1860
1906
|
metric_window_time_unit: ctx.str("metric-window-time-unit"),
|
|
1907
|
+
time_cycle_def: ctx.json("time-cycle-def"),
|
|
1861
1908
|
display_name: ctx.str("display-name"),
|
|
1862
1909
|
note: ctx.str("note") || void 0,
|
|
1863
1910
|
order_id: ctx.optionalNum("order-id"),
|
|
@@ -1873,7 +1920,12 @@ var commonMetricUpdate = createEngageSettingCapabilityCommand({
|
|
|
1873
1920
|
risk: "write",
|
|
1874
1921
|
validate: (ctx) => {
|
|
1875
1922
|
validateMetricDefinitionFlag(ctx.json("metric-definition"));
|
|
1876
|
-
|
|
1923
|
+
validateMetricWindowFlags(
|
|
1924
|
+
ctx.str("metric-window-time-unit"),
|
|
1925
|
+
ctx.num("metric-window-num"),
|
|
1926
|
+
ctx.json("time-cycle-def"),
|
|
1927
|
+
true
|
|
1928
|
+
);
|
|
1877
1929
|
},
|
|
1878
1930
|
buildInput: buildWriteInput2
|
|
1879
1931
|
});
|