Skip to content

Preserve recent local work: pr116-rebase - #121

Closed
calmmage wants to merge 2 commits into
mainfrom
pr116-rebase
Closed

calmmage wants to merge 2 commits into
mainfrom
pr116-rebase

Conversation

@calmmage

@calmmage calmmage commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Preserves local work from the last 30 days for review and integration into main.

Recent commits:

  • refactor(subscription_manager): split trial cap checks under CCN 20
  • feat(subscription_manager): per-user trial daily caps and no-expiry mode

Changes:

botspot/components/middlewares/i18n_strings.py     |  10 +
 botspot/components/new/DEV_README.md               |   8 +-
 .../new/subscription_manager/__init__.py           |   6 +
 .../components/new/subscription_manager/manager.py |  23 +-
 .../components/new/subscription_manager/models.py  |   1 +
 .../new/subscription_manager/settings.py           |  13 +-
 .../components/new/subscription_manager/trial.py   | 374 ++++++++++++++++-----
 example.env                                        |   4 +
 .../subscription_manager_demo/README.md            |   7 +
 tests/components/new/test_component_env_vars.py    |   4 +
 tests/components/test_subscription_manager.py      | 130 +++++++
 11 files changed, 488 insertions(+), 92 deletions(-)

This is a draft backup PR. Git push and remote commit identity were verified; no additional application validation was performed for this bulk backup.

calmmage and others added 2 commits September 29, 2026 13:48
Public free tier: trial_duration_days=0 means no expiry. Optional per-user
UTC daily caps (0 = off) for audio minutes/requests and chat requests.
Hitting a daily cap sets Decision.reason=trial_daily_cap and an i18n
string with minutes left today and the UTC reset time.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Extract lifetime/global/per-user daily cap helpers so reserve and
authorize stay under the advisory lizard limit.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@calmmage calmmage closed this Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant