v0.2.3 Core tier 10/5/5 split + dynamic health version

This commit is contained in:
local
2026-05-11 21:53:50 -05:00
parent 07fe14010c
commit 6797aae404
8 changed files with 138 additions and 15 deletions
+18 -3
View File
@@ -14,7 +14,20 @@ const inputSpec = InputSpec.of({
core_lifetime: Value.number({
name: 'Core — Lifetime Credits',
description:
'Total credits a Core (unlicensed) install can ever spend. Default 5.',
'Total credits a Core (unlicensed) install can ever spend across its lifetime. Default 10 (5 served via Gemini + 5 via operator hardware).',
required: true,
default: 10,
min: 0,
max: 1_000_000,
integer: true,
step: 1,
units: 'credits',
placeholder: null,
}),
core_gemini_cap: Value.number({
name: 'Core — Gemini Cap (lifetime)',
description:
'Within the Core lifetime allowance, how many credits may be served via Gemini (the rest spill to the operator-hardware fallback). Default 5.',
required: true,
default: 5,
min: 0,
@@ -91,7 +104,8 @@ export const adjustTierQuotas = sdk.Action.withInput(
parsed = {}
}
return {
core_lifetime: parsed?.core?.lifetime ?? 5,
core_lifetime: parsed?.core?.lifetime ?? 10,
core_gemini_cap: parsed?.core?.geminiCapLifetime ?? 5,
pro_monthly: parsed?.pro?.monthly ?? 50,
pro_gemini_cap: parsed?.pro?.geminiCapMonthly ?? 25,
max_gemini_cap: parsed?.max?.geminiCapMonthly ?? 50,
@@ -101,7 +115,8 @@ export const adjustTierQuotas = sdk.Action.withInput(
async ({ effects, input }) => {
const quotas = {
core: {
lifetime: input.core_lifetime ?? 5,
lifetime: input.core_lifetime ?? 10,
geminiCapLifetime: input.core_gemini_cap ?? 5,
monthly: null,
geminiCapMonthly: null,
},