Repository navigation
[0.52.1] - 2026-11-26
Resource duplication (Endpoints, Cantrips, Lorebooks, Maps) and backend housekeeping release: lets users one-click duplicate endpoints (preserving the real stored API key and curated per-model parameters) as well as cantrips, lorebooks (with entries), and maps (with stages and resources), scopes user_data_prefixes in the single-run Cantrip Tester, fixes no-op history_control accounting, validates regex_pattern on verification-rule snapshot restore, and removes dormant forward_llm_chain() parameters.
Added
- One-click Duplicate for Endpoints, Cantrips, Lorebooks, and Maps:
- Server-side
POST /api/endpoints/{id}/duplicate,POST /api/cantrips/{id}/duplicate,POST /api/lorebooks/{id}/duplicate, andPOST /api/maps/{id}/duplicateendpoints (HTTP 201, strictly owner-scoped per Rule 23 — foreign IDs return 404 even for public items). - Endpoint duplication copies the real stored
api_key, provider/routing/tag settings,parameters_json, and deep-copies all curatedEndpointModelrows (including per-model parameters) so users can spin up per-use-case endpoint variants without re-pasting keys. - Lorebook duplication deep-copies all
LorebookEntryrows; Map duplication deep-copies allMapStageandMapStageResourcerows; Cantrip, Lorebook, and Map copies start withis_active=Falseandis_public=Falseso duplicates never double-fire before editing. - Added Duplicate buttons in the Endpoints, Cantrips, Lorebooks, and Maps pages (
frontend/src/pages/*.svelte) that duplicate and open the new copy immediately for editing.
- Server-side
Fixed
- Single-run Cantrip Tester now honors
user_data_prefixes(app/routers/cantrips.py):POST /api/cantrips/{id}/testandPOST /api/cantrips/testnow applyselect_user_data_seedusing the cantrip'suser_data_prefixes(or explicit request prefixes) over explicituser_dataor the user's persistedUserData, matching live-pipeline scoping. - No-op
history_controlops no longer inflateops_applied(app/services/cantrip.py):apply_history_ops()only incrementsops_appliedwhen an operation actually removes/mutates messages, avoiding spurious"1 op(s) applied (0 dropped)"debug entries. - Snapshot restore validates
verification_ruleregex_pattern(app/services/snapshots.py):guard_content()now enforces the 1024-character cap andre.compile()check on bothrestore-as-newandrestore-in-placefor verification-rule snapshots (HTTP 422 on invalid stored patterns).
Changed
- Removed dormant
forward_llm_chain()kwargs (app/services/upstream.py): deleted unusedextra_layers_fn,default_params, andbase_messagesparameters and their dead branches.