@thinkingai/ae-cli 6.1.38 → 6.1.40
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-UL2O7J4X.js → ai-monitor-DST4NDOK.js} +5 -5
- package/dist/ai-monitor.js +7 -7
- package/dist/{auth-ERWVKQDG.js → auth-BD3NIY3T.js} +3 -3
- package/dist/{automation-OQ647CSW.js → automation-IMDCJUML.js} +85 -9
- package/dist/{capability-HPP6E3ZX.js → capability-3NJOQHZQ.js} +3 -3
- package/dist/{chunk-DKOGWIYQ.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-PCQTBRPT.js → chunk-FRJUB66C.js} +1 -1
- package/dist/{chunk-ZLJZPPPV.js → chunk-IY5G42YY.js} +2 -2
- package/dist/{chunk-JRXSLFCA.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-BWEQIKA3.js → chunk-RW6Z2NN3.js} +5 -5
- package/dist/{chunk-DULCIC67.js → chunk-SQEK6S4X.js} +2 -3
- package/dist/{chunk-VPLRZSMY.js → chunk-STHIGWWC.js} +10 -1
- package/dist/{chunk-LXRALNNA.js → chunk-UK7HQ4IL.js} +1 -1
- package/dist/{chunk-NDX4VJO7.js → chunk-VXKKTUU2.js} +2 -2
- package/dist/{chunk-E5CJI7L3.js → chunk-WRYXVIJP.js} +1 -1
- package/dist/{compat-check-WRPEFB5N.js → compat-check-7VBBE7KO.js} +1 -1
- package/dist/{config-IS33K45R.js → config-LFRZBPH5.js} +3 -3
- 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 +35 -33
- package/dist/{memory-6QMZS4HF.js → memory-VPOPSU52.js} +3 -3
- package/dist/{metadata-TMAXVLOL.js → metadata-AR64J76Z.js} +5 -5
- package/dist/{model-LEYRQKOS.js → model-2F2354QP.js} +1 -1
- package/dist/{personal-semantic-preference-RMZEDRCJ.js → personal-semantic-preference-BCOSI4DO.js} +4 -4
- package/dist/{project-semantic-UD3OAZ6K.js → project-semantic-DJLXAXLD.js} +4 -4
- package/dist/{sync-GVF3OI2U.js → sync-4TUIQ2PZ.js} +3 -3
- package/dist/{te-agent-S7UH657Z.js → te-agent-EMDWA3M6.js} +4 -4
- package/dist/{te-analysis-SJIE5OZY.js → te-analysis-NJHSEKGW.js} +8 -6
- package/dist/{te-community-VNHJDEID.js → te-community-JSUSZEYH.js} +4 -4
- package/dist/{te-dataops-AO4OQBQV.js → te-dataops-I264BUTI.js} +2 -2
- package/dist/{te-engage-EZJRFG3Q.js → te-engage-XNMQYO5N.js} +68 -16
- package/dist/{te-experiment-R2MNSAKV.js → te-experiment-5SCHMYVO.js} +4 -4
- package/dist/{te-kb-C44A4BHM.js → te-kb-QQ53TNRZ.js} +44 -13
- package/dist/{te-system-DB5Z3LLF.js → te-system-Z4VEB6PL.js} +1 -1
- package/dist/{te-team-J52STTEZ.js → te-team-V6BBI52R.js} +87 -6
- package/dist/{things-G2QFXDK7.js → things-THHGDSEC.js} +4 -4
- package/dist/{update-GEKOZMHU.js → update-53ZUXWV5.js} +2 -2
- package/dist/{web-runtime-5M7PRY7R.js → web-runtime-HIXOSNJ6.js} +89 -9
- 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/demo-operations.md +3 -2
- package/skills/ae-onboarding/references/onboarding_experiment_launch.md +4 -2
- 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,
|
|
@@ -11,12 +10,15 @@ import {
|
|
|
11
10
|
validateAndFix,
|
|
12
11
|
validateDraft,
|
|
13
12
|
writeDraftXlsx
|
|
14
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6NJZSWUT.js";
|
|
14
|
+
import {
|
|
15
|
+
detectCliLocale
|
|
16
|
+
} from "./chunk-N2MAYIRU.js";
|
|
15
17
|
import {
|
|
16
18
|
configureBusinessCommands,
|
|
17
19
|
parseProgram,
|
|
18
20
|
runCommand
|
|
19
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RW6Z2NN3.js";
|
|
20
22
|
import "./chunk-GYODT7C4.js";
|
|
21
23
|
import "./chunk-L7MT53VM.js";
|
|
22
24
|
import {
|
|
@@ -33,12 +35,12 @@ import {
|
|
|
33
35
|
import {
|
|
34
36
|
printError,
|
|
35
37
|
printOutput
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-KBJHBVO7.js";
|
|
39
|
+
import "./chunk-KE5WGBXS.js";
|
|
38
40
|
import {
|
|
39
41
|
executeCapability,
|
|
40
42
|
uploadInputFileBytes
|
|
41
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-STHIGWWC.js";
|
|
42
44
|
import "./chunk-6E6HCTP2.js";
|
|
43
45
|
import {
|
|
44
46
|
beginBusinessSkillRefresh,
|
|
@@ -52,7 +54,7 @@ import {
|
|
|
52
54
|
runHostCompatCheck,
|
|
53
55
|
shouldSkipAutoSync,
|
|
54
56
|
syncRefreshedBusinessSkills
|
|
55
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-SQEK6S4X.js";
|
|
56
58
|
import {
|
|
57
59
|
getLocalCliPackageInfo
|
|
58
60
|
} from "./chunk-PUSFEC6B.js";
|
|
@@ -2132,7 +2134,7 @@ function isOnboardingInvocation(args) {
|
|
|
2132
2134
|
if (argument === "--") break;
|
|
2133
2135
|
if (argument.startsWith("-")) {
|
|
2134
2136
|
if (!argument.includes("=") && values.has(argument)) i++;
|
|
2135
|
-
else if (["--sdk-complete", "--upload-metric-event", "--prepare-approver", "--start-only"].includes(argument) && ["true", "false", "0", "1", "yes", "no", "y", "n", "on", "off"].includes((args[i + 1] ?? "").toLowerCase())) i++;
|
|
2137
|
+
else if (["--sdk-complete", "--upload-metric-event", "--prepare-approver", "--start-only", "--wait-report"].includes(argument) && ["true", "false", "0", "1", "yes", "no", "y", "n", "on", "off"].includes((args[i + 1] ?? "").toLowerCase())) i++;
|
|
2136
2138
|
continue;
|
|
2137
2139
|
}
|
|
2138
2140
|
positional.push(argument);
|
|
@@ -2165,111 +2167,111 @@ function warnLoadFailure(label, err) {
|
|
|
2165
2167
|
async function loadCommands() {
|
|
2166
2168
|
const commands = [];
|
|
2167
2169
|
try {
|
|
2168
|
-
const teAnalysis = await import("./te-analysis-
|
|
2170
|
+
const teAnalysis = await import("./te-analysis-NJHSEKGW.js");
|
|
2169
2171
|
commands.push(...teAnalysis.default);
|
|
2170
2172
|
} catch (err) {
|
|
2171
2173
|
warnLoadFailure("domain te-analysis", err);
|
|
2172
2174
|
}
|
|
2173
2175
|
try {
|
|
2174
|
-
const engage = await import("./te-engage-
|
|
2176
|
+
const engage = await import("./te-engage-XNMQYO5N.js");
|
|
2175
2177
|
commands.push(...engage.default);
|
|
2176
2178
|
} catch (err) {
|
|
2177
2179
|
warnLoadFailure("domain te-engage", err);
|
|
2178
2180
|
}
|
|
2179
2181
|
try {
|
|
2180
|
-
const experiment = await import("./te-experiment-
|
|
2182
|
+
const experiment = await import("./te-experiment-5SCHMYVO.js");
|
|
2181
2183
|
commands.push(...experiment.default);
|
|
2182
2184
|
} catch (err) {
|
|
2183
2185
|
warnLoadFailure("domain te-experiment", err);
|
|
2184
2186
|
}
|
|
2185
2187
|
try {
|
|
2186
|
-
const community = await import("./te-community-
|
|
2188
|
+
const community = await import("./te-community-JSUSZEYH.js");
|
|
2187
2189
|
commands.push(...community.default);
|
|
2188
2190
|
} catch (err) {
|
|
2189
2191
|
warnLoadFailure("domain te-community", err);
|
|
2190
2192
|
}
|
|
2191
2193
|
try {
|
|
2192
|
-
const dataops = await import("./te-dataops-
|
|
2194
|
+
const dataops = await import("./te-dataops-I264BUTI.js");
|
|
2193
2195
|
commands.push(...dataops.default);
|
|
2194
2196
|
} catch (err) {
|
|
2195
2197
|
warnLoadFailure("domain te-dataops", err);
|
|
2196
2198
|
}
|
|
2197
2199
|
try {
|
|
2198
|
-
const teKb = await import("./te-kb-
|
|
2200
|
+
const teKb = await import("./te-kb-QQ53TNRZ.js");
|
|
2199
2201
|
commands.push(...teKb.default);
|
|
2200
2202
|
} catch (err) {
|
|
2201
2203
|
warnLoadFailure("domain te-kb", err);
|
|
2202
2204
|
}
|
|
2203
2205
|
try {
|
|
2204
|
-
const teTeam = await import("./te-team-
|
|
2206
|
+
const teTeam = await import("./te-team-V6BBI52R.js");
|
|
2205
2207
|
commands.push(...teTeam.default);
|
|
2206
2208
|
} catch (err) {
|
|
2207
2209
|
warnLoadFailure("domain te-team", err);
|
|
2208
2210
|
}
|
|
2209
2211
|
try {
|
|
2210
|
-
const teAgent = await import("./te-agent-
|
|
2212
|
+
const teAgent = await import("./te-agent-EMDWA3M6.js");
|
|
2211
2213
|
commands.push(...teAgent.default);
|
|
2212
2214
|
} catch (err) {
|
|
2213
2215
|
warnLoadFailure("domain te-agent", err);
|
|
2214
2216
|
}
|
|
2215
2217
|
try {
|
|
2216
|
-
const memory = await import("./memory-
|
|
2218
|
+
const memory = await import("./memory-VPOPSU52.js");
|
|
2217
2219
|
commands.push(...memory.default);
|
|
2218
2220
|
} catch (err) {
|
|
2219
2221
|
warnLoadFailure("domain memory", err);
|
|
2220
2222
|
}
|
|
2221
|
-
const automation = await import("./automation-
|
|
2223
|
+
const automation = await import("./automation-IMDCJUML.js");
|
|
2222
2224
|
commands.push(...automation.default);
|
|
2223
2225
|
try {
|
|
2224
|
-
const things = await import("./things-
|
|
2226
|
+
const things = await import("./things-THHGDSEC.js");
|
|
2225
2227
|
commands.push(...things.default);
|
|
2226
2228
|
} catch (err) {
|
|
2227
2229
|
warnLoadFailure("domain things", err);
|
|
2228
2230
|
}
|
|
2229
2231
|
try {
|
|
2230
|
-
const workspace = await import("./workspace-
|
|
2232
|
+
const workspace = await import("./workspace-W5ZPVWJS.js");
|
|
2231
2233
|
commands.push(...workspace.default);
|
|
2232
2234
|
} catch (err) {
|
|
2233
2235
|
warnLoadFailure("domain workspace", err);
|
|
2234
2236
|
}
|
|
2235
2237
|
try {
|
|
2236
|
-
const teSystem = await import("./te-system-
|
|
2238
|
+
const teSystem = await import("./te-system-Z4VEB6PL.js");
|
|
2237
2239
|
commands.push(...teSystem.default);
|
|
2238
2240
|
} catch (err) {
|
|
2239
2241
|
warnLoadFailure("domain te-system", err);
|
|
2240
2242
|
}
|
|
2241
2243
|
try {
|
|
2242
|
-
const metadata = await import("./metadata-
|
|
2244
|
+
const metadata = await import("./metadata-AR64J76Z.js");
|
|
2243
2245
|
commands.push(...metadata.default);
|
|
2244
2246
|
} catch (err) {
|
|
2245
2247
|
warnLoadFailure("domain metadata", err);
|
|
2246
2248
|
}
|
|
2247
2249
|
try {
|
|
2248
|
-
const personalSemanticPreference = await import("./personal-semantic-preference-
|
|
2250
|
+
const personalSemanticPreference = await import("./personal-semantic-preference-BCOSI4DO.js");
|
|
2249
2251
|
commands.push(...personalSemanticPreference.default);
|
|
2250
2252
|
} catch (err) {
|
|
2251
2253
|
warnLoadFailure("domain personal-semantic-preference", err);
|
|
2252
2254
|
}
|
|
2253
2255
|
try {
|
|
2254
|
-
const projectSemantic = await import("./project-semantic-
|
|
2256
|
+
const projectSemantic = await import("./project-semantic-DJLXAXLD.js");
|
|
2255
2257
|
commands.push(...projectSemantic.default);
|
|
2256
2258
|
} catch (err) {
|
|
2257
2259
|
warnLoadFailure("domain project-semantic", err);
|
|
2258
2260
|
}
|
|
2259
2261
|
try {
|
|
2260
|
-
const dataIntegration = await import("./data-integration-
|
|
2262
|
+
const dataIntegration = await import("./data-integration-KMJWYAKK.js");
|
|
2261
2263
|
commands.push(...dataIntegration.default);
|
|
2262
2264
|
} catch (err) {
|
|
2263
2265
|
warnLoadFailure("domain data-integration", err);
|
|
2264
2266
|
}
|
|
2265
2267
|
try {
|
|
2266
|
-
const context = await import("./context-
|
|
2268
|
+
const context = await import("./context-WJQGJD6F.js");
|
|
2267
2269
|
commands.push(...context.default);
|
|
2268
2270
|
} catch (err) {
|
|
2269
2271
|
warnLoadFailure("domain context", err);
|
|
2270
2272
|
}
|
|
2271
2273
|
try {
|
|
2272
|
-
const aiMonitor = await import("./ai-monitor-
|
|
2274
|
+
const aiMonitor = await import("./ai-monitor-DST4NDOK.js");
|
|
2273
2275
|
commands.push(...aiMonitor.default);
|
|
2274
2276
|
} catch (err) {
|
|
2275
2277
|
warnLoadFailure("domain ai-monitor", err);
|
|
@@ -2284,7 +2286,7 @@ async function loadCommands() {
|
|
|
2284
2286
|
}
|
|
2285
2287
|
async function registerAuthCommands() {
|
|
2286
2288
|
try {
|
|
2287
|
-
const { registerAuth } = await import("./auth-
|
|
2289
|
+
const { registerAuth } = await import("./auth-BD3NIY3T.js");
|
|
2288
2290
|
registerAuth(program);
|
|
2289
2291
|
} catch (err) {
|
|
2290
2292
|
warnLoadFailure("auth commands", err);
|
|
@@ -2292,7 +2294,7 @@ async function registerAuthCommands() {
|
|
|
2292
2294
|
}
|
|
2293
2295
|
async function registerConfigCommands() {
|
|
2294
2296
|
try {
|
|
2295
|
-
const { registerConfig } = await import("./config-
|
|
2297
|
+
const { registerConfig } = await import("./config-LFRZBPH5.js");
|
|
2296
2298
|
registerConfig(program);
|
|
2297
2299
|
} catch (err) {
|
|
2298
2300
|
warnLoadFailure("config commands", err);
|
|
@@ -2300,7 +2302,7 @@ async function registerConfigCommands() {
|
|
|
2300
2302
|
}
|
|
2301
2303
|
async function registerCapabilityCommands() {
|
|
2302
2304
|
try {
|
|
2303
|
-
const { registerCapability } = await import("./capability-
|
|
2305
|
+
const { registerCapability } = await import("./capability-3NJOQHZQ.js");
|
|
2304
2306
|
registerCapability(program);
|
|
2305
2307
|
} catch (err) {
|
|
2306
2308
|
warnLoadFailure("capability commands", err);
|
|
@@ -2308,7 +2310,7 @@ async function registerCapabilityCommands() {
|
|
|
2308
2310
|
}
|
|
2309
2311
|
async function registerSyncCommand() {
|
|
2310
2312
|
try {
|
|
2311
|
-
const { registerSync } = await import("./sync-
|
|
2313
|
+
const { registerSync } = await import("./sync-4TUIQ2PZ.js");
|
|
2312
2314
|
registerSync(program);
|
|
2313
2315
|
} catch (err) {
|
|
2314
2316
|
warnLoadFailure("sync commands", err);
|
|
@@ -2316,7 +2318,7 @@ async function registerSyncCommand() {
|
|
|
2316
2318
|
}
|
|
2317
2319
|
async function registerModelCommand() {
|
|
2318
2320
|
try {
|
|
2319
|
-
const { registerModel } = await import("./model-
|
|
2321
|
+
const { registerModel } = await import("./model-2F2354QP.js");
|
|
2320
2322
|
registerModel(program);
|
|
2321
2323
|
} catch (err) {
|
|
2322
2324
|
warnLoadFailure("model commands", err);
|
|
@@ -2324,7 +2326,7 @@ async function registerModelCommand() {
|
|
|
2324
2326
|
}
|
|
2325
2327
|
async function registerUpdateCommand() {
|
|
2326
2328
|
try {
|
|
2327
|
-
const { registerUpdate } = await import("./update-
|
|
2329
|
+
const { registerUpdate } = await import("./update-53ZUXWV5.js");
|
|
2328
2330
|
registerUpdate(program);
|
|
2329
2331
|
} catch (err) {
|
|
2330
2332
|
warnLoadFailure("update commands", err);
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
getMemoryCli,
|
|
5
5
|
patchMemoryCli,
|
|
6
6
|
postMemoryCli
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DTODOQ6T.js";
|
|
8
8
|
import {
|
|
9
9
|
currentAgentSpaceId
|
|
10
10
|
} from "./chunk-RK6GLDGI.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-UK7HQ4IL.js";
|
|
12
|
+
import "./chunk-KE5WGBXS.js";
|
|
13
13
|
import "./chunk-UWQXGF44.js";
|
|
14
14
|
import "./chunk-IGU3R2JD.js";
|
|
15
15
|
import "./chunk-MTK4ZE7W.js";
|
|
@@ -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-24DCOJBJ.js";
|
|
5
5
|
import {
|
|
6
6
|
createCapabilityCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IY5G42YY.js";
|
|
8
8
|
import {
|
|
9
9
|
registerCapabilityGatewayRoute
|
|
10
10
|
} from "./chunk-AWW2T2WL.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-KBJHBVO7.js";
|
|
12
|
+
import "./chunk-STHIGWWC.js";
|
|
13
13
|
import "./chunk-6E6HCTP2.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-SQEK6S4X.js";
|
|
15
15
|
import "./chunk-PUSFEC6B.js";
|
|
16
16
|
import "./chunk-UWQXGF44.js";
|
|
17
17
|
import "./chunk-IGU3R2JD.js";
|
package/dist/{personal-semantic-preference-RMZEDRCJ.js → personal-semantic-preference-BCOSI4DO.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-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";
|
|
@@ -3,22 +3,22 @@ import {
|
|
|
3
3
|
assertOutputPathAvailable,
|
|
4
4
|
downloadAnalysisArtifact,
|
|
5
5
|
withAsyncArtifactLifecycle
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-24DCOJBJ.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-KBJHBVO7.js";
|
|
14
14
|
import {
|
|
15
15
|
CapabilityGatewayError,
|
|
16
16
|
dryRunCapabilityWithEnvelope,
|
|
17
17
|
executeCapabilityWithEnvelope,
|
|
18
18
|
validateCapabilityWithEnvelope
|
|
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";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-7K24F7T2.js";
|
|
29
29
|
import {
|
|
30
30
|
printError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KBJHBVO7.js";
|
|
32
32
|
import {
|
|
33
33
|
TeAgentApiError,
|
|
34
34
|
TeAgentCredentialsError,
|
|
@@ -36,8 +36,8 @@ import {
|
|
|
36
36
|
postSandboxSyncPull,
|
|
37
37
|
postToMainApp,
|
|
38
38
|
uploadToMainApp
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-KE5WGBXS.js";
|
|
40
|
+
import "./chunk-SQEK6S4X.js";
|
|
41
41
|
import "./chunk-PUSFEC6B.js";
|
|
42
42
|
import "./chunk-UWQXGF44.js";
|
|
43
43
|
import "./chunk-IGU3R2JD.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
workspaceResourcePath,
|
|
12
12
|
workspaceTargetFlags,
|
|
13
13
|
workspaceTargetPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2RORKIF6.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-UK7HQ4IL.js";
|
|
31
31
|
import {
|
|
32
32
|
TeAgentApiError,
|
|
33
33
|
resolveTeClaudeBaseUrl
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-KE5WGBXS.js";
|
|
35
35
|
import {
|
|
36
36
|
buildCapabilityGatewayUrl,
|
|
37
37
|
callCapabilityApi
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-STHIGWWC.js";
|
|
39
39
|
import "./chunk-6E6HCTP2.js";
|
|
40
40
|
import "./chunk-PUSFEC6B.js";
|
|
41
41
|
import {
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
waitForAnalysisRun,
|
|
11
11
|
withAsyncArtifactLifecycle,
|
|
12
12
|
withInterruptSignal
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-24DCOJBJ.js";
|
|
14
14
|
import {
|
|
15
15
|
createCapabilityCommand,
|
|
16
16
|
definitionIntentSnapshotFlag,
|
|
17
17
|
modelDefinitionIntentSnapshotFlag
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IY5G42YY.js";
|
|
19
19
|
import {
|
|
20
20
|
registerCapabilityGatewayRoute,
|
|
21
21
|
resolveGatewayDomain
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
unwrapOutputData,
|
|
28
28
|
withOutputMetadata
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-KBJHBVO7.js";
|
|
30
30
|
import {
|
|
31
31
|
normalizeResourceUrlFields,
|
|
32
32
|
normalizeResourceUrls,
|
|
@@ -45,9 +45,9 @@ import {
|
|
|
45
45
|
uploadInputFile,
|
|
46
46
|
validateCapability,
|
|
47
47
|
validateCapabilityWithEnvelope
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-STHIGWWC.js";
|
|
49
49
|
import "./chunk-6E6HCTP2.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-SQEK6S4X.js";
|
|
51
51
|
import "./chunk-PUSFEC6B.js";
|
|
52
52
|
import {
|
|
53
53
|
getCliToken
|
|
@@ -11913,7 +11913,8 @@ function input(ctx) {
|
|
|
11913
11913
|
upload_metric_event: ctx.bool("upload-metric-event"),
|
|
11914
11914
|
prepare_approver: ctx.bool("prepare-approver"),
|
|
11915
11915
|
run_id: ctx.str("run-id") || void 0,
|
|
11916
|
-
start_only: ctx.bool("start-only")
|
|
11916
|
+
start_only: ctx.bool("start-only"),
|
|
11917
|
+
wait_report: ctx.bool("wait-report")
|
|
11917
11918
|
};
|
|
11918
11919
|
}
|
|
11919
11920
|
function invoke(ctx, action) {
|
|
@@ -11993,6 +11994,7 @@ var onboardingExperimentLaunch = {
|
|
|
11993
11994
|
flags: [
|
|
11994
11995
|
{ ...sharedFlags[0], required: true },
|
|
11995
11996
|
{ name: "run-id", type: "string", required: true, desc: "Run ID returned by experiment-plan for the confirmed Demo proposal." },
|
|
11997
|
+
{ name: "wait-report", type: "boolean", desc: "Wait up to 25 seconds for the replay sample-size query. Resume the same run on wait_experiment_report." },
|
|
11996
11998
|
{ name: "start-only", type: "boolean", desc: "Return the link when the experiment is running. Resume with the same run ID to send the replay." }
|
|
11997
11999
|
],
|
|
11998
12000
|
dryRun: (ctx) => invoke(ctx, "experiment-launch-preview"),
|
|
@@ -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
|
unwrapOutputData,
|
|
11
11
|
withOutputMetadata
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KBJHBVO7.js";
|
|
13
13
|
import {
|
|
14
14
|
CapabilityGatewayError,
|
|
15
15
|
buildCapabilityGatewayUrl,
|
|
16
16
|
requestCapabilityGatewayWithEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-STHIGWWC.js";
|
|
18
18
|
import {
|
|
19
19
|
sourceLoggedFetch
|
|
20
20
|
} from "./chunk-6E6HCTP2.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-SQEK6S4X.js";
|
|
22
22
|
import "./chunk-PUSFEC6B.js";
|
|
23
23
|
import {
|
|
24
24
|
SecureStoreAuthError,
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "./chunk-Z6WSCIHM.js";
|
|
5
5
|
import {
|
|
6
6
|
printError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KBJHBVO7.js";
|
|
8
8
|
import {
|
|
9
9
|
sourceLoggedFetch
|
|
10
10
|
} from "./chunk-6E6HCTP2.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-SQEK6S4X.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-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";
|