Commit graph

196 commits

Author SHA1 Message Date
e8ec657193 Add a daily tip to the Sokko TCG home that explains hidden mechanics
39 short tips cover packs, collection, trades, the daily card and Expeditions (getting cards, succeeding, groups, loot, improving cards, bag items). Each one has a topic that starts with its part of the game, such as "Expéditions · Réussir". Every figure comes from the current settings through tipValues(), so a tip follows an admin change. Expedition tips only show while Expeditions are open. The tip of the day is the same for everyone, "Astuce suivante" shows the next ones, and the card sits under the key figures so the home still fits a 1280 × 720 screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 10:56:01 +01:00
0533a8f766 Let players pick the duplicates that awaken a card, shown as cards
The awakening with duplicates of the collection used to take them automatically, without showing them. It now opens a picker like the Atelier: the needed slots at the top, the usable duplicates below as illustrated cards with their free copies, and nothing is used before "Éveiller". The server lists the candidates and checks the chosen copies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 10:05:36 +01:00
0ecb2cdbc5 Make duplicates awaken cards at Power 70, 85 and 100
Opening packs stays useful once a collection is complete: the level that reaches an awakening tier can no longer be bought with Éclats, a duplicate or field experience. The card awakens without Éclats, with one of its own duplicates (a mythic also takes its legendary version) or with duplicates of its collection and rarity: 6 rares, 2 epics or 1 legendary, numbers that follow the 24/8/3 drop rates so a tier costs about the same packs at every rarity. Tiers and counts are admin settings, and the balance guide records the simulations and the options set aside.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 09:40:41 +01:00
79fdf2a9a8 Add an Expeditions balance guide gathering the decisions, findings and method for future cards
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m5s
Validate and deploy Sokko G / deploy (push) Successful in 15s
docs/expeditions/equilibrage.md records the design principles chosen for the Expeditions, how the score is computed, why a shortfall costs more than a surplus, the profiles, emblems, constellations, powers and destination rules in place, the method and targets to check a new card or collection, the options tried and dropped with their measurements, and the technical traps met on the way. The agent guide, the lore's card section and the new-card skill point to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 00:02:47 +01:00
45d9180ed1 Explain each score bonus on hover: what triggers it and what it adds
Affinity, each resonance, cohesion, Expertise and the bonus cap now open a tooltip saying what triggered them and how much they add, with the values in force when the result was computed (results store them as bonusPcts; older ones get the explanation without a figure). The departure preview, group cards and return report share the same badges, and cohesion now shows in the report too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:20:31 +01:00
fb951e4510 Balance the remaining powers per real hour, scale loot caps and field experience with duration, and count each resonance once
- The spyglass trades a quarter more travel for more cards and one more at the cap, rations are neutral per hour, the shooting-star net scales with the chosen hours and costs Fortune per place, the storm lantern adds 10 % of travel instead of a fixed hour, and the fog bell's group bonus sits outside the synergy cap.
- Card and object caps grow with each 6 hours chosen, and field experience with each 2 hours, so long expeditions are no longer held back by the caps of short ones.
- Each resonance needs its own pair of cards, "Étoiles sœurs" becomes "Thème partagé", and the bonuses say when the cap absorbs part of them.
- Every stat is a secondary stat for two vocations, and the simulator's reflected builds can pick Adaptation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:03:42 +01:00
5a9cc42073 Give explicit trades their own profiles, fix equipment that contradicts its text, and make destinations ask for complementary cards
- Guardians, guides, cartographers, pilots, gardeners and lucky charms get a few shared profile archetypes instead of their collection's, and a catalog profile stays at 50 % or less per stat.
- The Dream Arcade legendaries' emblems now build their two strengths without a penalty, like the Nebula's, and the Mystery block names the Dragon.
- Crystal hearts, the save crystal, the reunion lantern, the yule log, the camp roast, the storage box and the shooting star now do what their text says.
- Six destinations no longer let the same tag meet the condition and parry a danger, the Aurora sky asks for Bravoure first and the feast for Fortune, and two Logbook rewards match their destination.
- The tag conventions are documented, and the hedgehog's sparks fall from the Dragon's scales, since it has no wings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:52:15 +01:00
90d659b558 Add Codex's dated audit of the Expeditions lore and balance, with its card matrix
The review of November 18 checks the coherence of profiles, equipment, tags, synergies and powers, and the matrix lists every card's effective profile, starting stats and tags at that date. They describe that state and are kept as written; the follow-up lives in Beads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:47:11 +01:00
9b0190c6eb Carry the Adaptation power on the Nebula pearl, the celestial gift and the adventurer's potion
Three commons whose story already gives each bearer what they lack now carry Adaptation instead of stats, one per collection: the Primordial Nebula, the Long Night and the Dream Arcade. The preview and group cards show the stat it raises next to the power's name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:38:18 +01:00
feeab57711 Keep risk alive with the Talisman and the treasure map, and add an Adaptation power for weak stats
- The Talisman turns a near miss into a Réussite only from a 60 % score, still without Triomphe, so a weak team can fail and the Mad compass keeps its risk.
- The treasure map brings its rare object back only from a successful expedition.
- Adaptation, a power for a future common, adds 4 points to its card's weakest stat among those the destination requires, chosen for each destination.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:27:27 +01:00
ea5f5c9a51 Give the Primordials distinct weaknesses, emblems that build their specialty and constellations that guide their weakness
- Each Primordial has a 45 % specialty and its own 10 % weakness; its emblematic common raises its two strengths with the synergy on its specialty, and its constellation gives Orientation plus its weakness, without penalties.
- Commons declare the stat their synergy raises when stats tie and for power commons, so the bonus no longer falls on Bravoure by field order.
- Expertise is measured against the solo requirement, so it stays within reach when the group raises each place's requirement.
- Missing lore links become playable: the Dragon, Panda and Capybara own their emblems, Turtles and the Reindeer share an identity, and the Bat, the light-current Otters and the Aurora Wolf are recognised at their destinations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:23:43 +01:00
91ca8e39ef Reward specialists with Expertise and make the highest difficulties need equipment
A card is an expert of a required stat when it covers on its own twice the requirement of one place; each stat held by a different expert adds 8 % to the score, outside the synergy cap. Requirements rise for 3 to 5 stars and by 10 % per extra player, so a capped card without equipment rarely clears 5 stars while a reflected build does. A mythic now spreads as many level points as its legendary. Migration 21 drops stored requirements so the new defaults apply; the simulator builds teams with vocations and commons, and the balance test checks these targets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:16:06 +01:00
fc43444995 Give each player their own daily card and send only the visible crop of its illustration
Some checks failed
Validate and deploy Sokko G / validate (push) Successful in 22m10s
Validate and deploy Sokko G / deploy (push) Failing after 25s
- Each player draws their own daily card and zoom point on their first visit, so a shared answer no longer helps; the migration keeps past games with their day's shared card.
- The server crops the illustration with sharp to the part visible at the current zoom; the full image only arrives once the game is over.
- The admin overview shows the day's winners and players instead of a single card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 16:47:52 +01:00
30413de036 Rework the expedition screens: in-place return, illustrated bag and workshop, card sheet tabs and an engraving workshop
Expeditions
- The journey keeps the destination landscape still while a sky scenery
  (clouds, floating isles, shards, sparkles) drifts behind the cards.
- A returned expedition shows only what the player receives, in place and
  without a window; claiming it removes the card and confirms with a notice,
  and the page reloads by itself when an expedition comes back.
- The Guild Keeper slots are gone: group requirements scale with the players.
- Local development adds a 20-second test duration, a test player for groups
  and keeps the dev account stocked with every item.
- The Wind Rose has no daily limit and is used from the destinations step.
- The Guide Star opens a destination one level below the player's highest daily
  level, the Sky Chart one at that level; bonus destinations are badged with
  the item that opened them.

Bag and workshop
- The Watcher's bag is a grid of illustrated item cards, ordered from the
  destination items, with a short "Utiliser" button; the six missing item
  illustrations are added.
- The workshop opens in a window with illustrated commons, spare counts on the
  cards, cancel without spending anything, and shows the crafted card with its
  description and power.
- The engraving workshop picks a common first, then a tag from a chosen
  character card (in its tag colours) or from every tag, filtered by name and
  family; card lists filter by name, collection and stat.

Card sheet
- Two tabs: the card and its lore (default from the collection), and its
  improvement (default from the expeditions) with a summary of power, level,
  experience and stats.
- "Répartition des statistiques" offers Par défaut, Personnalisé and profiles,
  previews the change in the summary, and a Parchemin d'oubli resets it to
  Personnalisé so the next choice is free again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 13:36:01 +01:00
7a0d19da75 Add the Grand Salon Astral destination and its Astral Genesis card, with the illustration guides
The Genèse Astrale gains a rare destination card and its landscape, so the
collection now has 11 cards. The illustration workflow and the collection
style guide record how card and destination art is generated, and the
collection prompt documents follow them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 13:35:40 +01:00
b7450dbb5a Let a player who owns a destination card keep finding its closed collection's cards on that destination
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:23:50 +01:00
e55c5c735d Show the Watcher's bag only when it holds items and let expeditions bring back Parchemins d'oubli
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:08:36 +01:00
477ce5a141 Remove the Grimoire, which only listed discoveries and had no effect on the game
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:08:21 +01:00
a38d4fd02a Make one expedition at a time a fixed rule so older stored settings cannot raise it
The limit was a setting whose default had moved to one, but settings saved before still allowed two expeditions per player. It is now a game rule: the setting and its admin field are gone, an old stored value has no effect, and the refusal tells the player to claim their current expedition first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 18:55:29 +01:00
3720fd01f7 Rebuild the Expeditions page around one guided journey: one card, no roles, leave alone or open to a group, follow the trip, keep a Journal
An expedition now opens with a single card. Its creator leaves alone right away, or opens it to the Guild board with an invite link and launches it whenever they want; at the end of recruitment it leaves by itself, alone or as a group, and is never dissolved for lack of players. Stars no longer depend on the number of players, a player has one expedition at a time, and roles are gone: each card brings its stats and a team adds them up, so every requirement is its per-slot share times the number of slots.

The page follows the player's path: the offered destination card is revealed once in a modal, then Préparer shows the destinations (stat requirements, condition and dangers coloured for the chosen card, loot effects), a frame with the sent card in large size, its equipment slots and stats, and the duration and departure. Cards and commons are chosen in modals with sorts and highlighted current picks; tags get matching colours on the card and on equipment synergies. Once gone, the trip is shown with a progress bar and moving cards, the loot opens in a modal, and finished expeditions move to a Journal tab with the Grimoire.

Power commons get short power names of their own and show their exact effects on hover, a card holds one power at a time, and Coup de folie now draws the real requirements between 80 % and 130 % of the shown ones, revealed on return.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:10:56 +01:00
d70ae51265 Add Le Ciel des Aurores so every loot profile has a destination
The Loup des Aurores now has its own destination, favouring Éclats and cards: the last pair of loot specialties without one. Its rare destination card joins Les Carnets des Veilleurs with its landscape and full-art illustration, and the content test now checks that every single, pair and neutral loot profile exists exactly once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 10:03:47 +01:00
17a87a889a Add the Rose des vents to draw new daily destinations once a day
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:52:48 +01:00
ff206aadd4 Give unlinked destinations single or double loot specialties, with one neutral destination and one linked destination per collection
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:52:36 +01:00
d85d6d8ffa Show what each destination looks for and what it yields in two small panels, and keep specialties off collection destinations
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:01:42 +01:00
7d331d1a3f Let players choose how their cards spend level points with vocations or free points, and sell the Parchemin d'oubli
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:00:40 +01:00
994776392f Keep destination cards unique so they can never be traded or given
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 22:26:52 +01:00
703697f1ac Reward single cards instead of packs and give each destination a loot specialty
Expeditions no longer hand out packs: they bring back single cards, with one hourly card chance that Fortune and the longsight still raise. A card comes from the destination's Carnets des Veilleurs; a destination tied to an open collection draws it from that collection most of the time, at the collection's rarity rates (a legendary can come as a mythic variation), with missing cards twice as likely.

Each destination has a loot specialty (Éclats, stardust, cards or items) that multiplies its reward and slightly lowers the others, and the planner shows it with the destination's collection. A destination tied to a collection cannot be rich in cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 20:33:01 +01:00
a922889f80 Illustrate a destination card for every expedition destination and make the hidden ones trophies
Every destination now has its rare destination card, shown full-art: La Fête des Îles Réunies in La Longue Nuit, Les Îles-Niveaux in L'Arcade des Rêves, Le Cœur du Nuage Cosmique in the Primordial Nebula, and the twelve others in Les Carnets des Veilleurs. Most cards crop their landscape; Le Versant de la Lune Pâle, Les Îles-Niveaux and Le Passage Écarlate were painted again in portrait.

The two hidden destinations are trophies: their card always comes back to whoever goes there without it, and never as a starter card or a random drop. Since every visible destination is now locked behind its card, test players and the e2e partner receive all destination cards to keep four daily destinations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:31:41 +01:00
39dbeb9e2b Give destination cards on the first visit, in expedition loot and to group members
A player with no destination card receives one from the Carnets on their first visit to open expeditions. Expedition loot can hold a Carnets destination card the player does not own yet, and a group member without the card of the group's destination has a strong chance to get it. Both chances are expedition settings, and destination cards never drop as ordinary Carnets cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:03:52 +01:00
06a4ab6d6a Draw each player's daily destinations among the ones their destination cards unlock
The daily draw is now personal: up to four destinations among the visible ones the player has unlocked, with one difficulty level each, from the easiest up to the number of destinations drawn. A destination card gained during the day completes the draw, and a card given away removes its destination. A destination with no card in the catalog yet stays open to everyone, so only Le Cœur du Nuage Cosmique is locked for now. Joining a group never needs the destination card, and the planner shows how many destinations are unlocked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 15:58:00 +01:00
89eee7ce2a Add destination cards, starting with Le Cœur du Nuage Cosmique for the Primordial Nebula
A destination card is a rare that unlocks an expedition destination: it never joins a team (no tags, profile or equipment) and always shows as a full-art card. The catalog checks that it is rare and names an existing destination, and that no two cards unlock the same one.

Le Cœur du Nuage Cosmique is the first one: a new destination at the heart of the cosmic dust cloud, where a new sun may be about to form, with its landscape and its card in the Primordial Nebula packs. Full-art names at large size now keep clear of the rarity symbol.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 15:45:17 +01:00
250e0633cf Draw the difficulty with the daily destinations and paint each destination as a landscape
Each daily destination now draws a difficulty level, one of each per day, and the planner shows it as a star badge instead of letting the player choose. Solo and group derive their stars from that level; the 5th and 6th destinations keep a stable random level for the day and the hidden one takes the highest.

The 14 destinations get a watercolour landscape, shown in the destination picker as a banner cut by a brush-stroke mask. docs/expeditions/destinations-illustrations.md holds the prompts, each destination's palette and signature, and the crop used for every image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 15:42:28 +01:00
7c393c4a2a List the Carnets des Veilleurs from legendaries to commons, like every other collection
The Collection shows cards in catalog order, and the Carnets were listed from commons to legendaries. A test now checks that every collection lists its cards from the rarest to the most common, and the card guide states the rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 15:39:59 +01:00
4d05d812c5 Split the Guild administration into tabs and sell Éclats and openings by quantity in the shop
The Guild administration now has a tab per quest. The expedition settings sit behind a status band (open or close, today's activity) and four themed tabs, with units inside the fields, the default value shown, and one sticky apply bar that lists every change before confirming.

The Pont des Veilleurs leaves the expedition page and becomes the « Éclats d’étoile » shop item, priced from Administration › Boutique. Openings and Éclats are bought by quantity: a number field capped by the stardust the player actually has, and a full-width button that shows the total cost. Stardust and Éclats get their own SVG icons, aligned with the text around them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 15:39:45 +01:00
beef966337 Illustrate the Carnets des Veilleurs and grow the collection to 20 cards
All 20 cards and the card back now have their watercolour naturalist
illustrations, so the whole collection can drop from expeditions.

- Add the Kitsune, Ouvreur des Passages (legendary), the Chauve-souris des
  Nuits sans Étoiles (epic), the Furet Messager des Îles (rare), and two
  power commons, the Lanterne de tempête and the Cloche de brume, placed in
  the Passage Écarlate, the Grand Vide and the Courants de Lumière.
- Code the two new powers: the lantern softens dangers but adds travel
  time; the bell adds synergy in group expeditions but costs loot solo.
  Both are tunable from the admin settings and covered by tests.
- Rewrite the illustration guide around the naturalist style and what the
  tests taught (portrait first for legendaries, hero size and paws spelled
  out, no Nebula pose reused, paper margins trimmed).
- Make the Suricate de la Vigie masculine, like the Nebula character, and
  keep the drop test independent of which cards are illustrated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:42:05 +01:00
21827a252b Add the Carnets des Veilleurs, the expedition-only Sokko TCG collection with power commons
- A new watchers-logbooks collection of category expedition never comes from packs, the shop or codes, and administrators cannot open it as a pack.
- Its six commons carry powers instead of stats (Longue-vue, Provisions, Carte au trésor, Talisman, Boussole folle, Filet à étoiles filantes); a card holds one power and each counts once per team.
- Powers change travel time, loot, score or tier, hide requirements, or catch a logbook card; each destination lists the logbook cards it can bring back.
- A workshop turns a plan and three duplicate commons into a power common.
- The fifteen cards ship without images with ready ChatGPT prompts; a card only drops or gets crafted once illustrated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 17:40:51 +01:00
ae23adfdd9 Bring back objects from Sokko TCG Expeditions and open bonus and hidden destinations
- Expeditions bring back objects by weight, proportional to the loot; treasure-map fragments, burins and workshop plans need enough average Orientation.
- A guide star adds a fifth destination to the player's day, a sky chart a sixth with richer loot, and enough fragments open one of two hidden destinations: Le Passage Écarlate and L'Observatoire perdu.
- An anchor recalls a running solo expedition and keeps the Éclats and stardust already earned; a burin engraves a tag on a common to create the synergy a player wants.
- The Veilleur's bag lists objects with their use, reports show brought-back objects, and Administration › Guilde tunes object chances, weights, the Orientation threshold and hidden-destination loot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 17:28:05 +01:00
320498d878 Send opt-in Discord alerts for Sokko TCG Expeditions through palico-bot
- Players turn on alerts one by one in their account: someone opens an expedition group, or one of their expeditions returns; both stay off until chosen.
- Opening a group queues a direct message for each other subscribed player; every 30 seconds the server queues returned expeditions once and sends pending messages to palico-bot's direct message route.
- Permanent refusals (unknown account, closed direct messages) or five failures stop retries; only real Discord accounts receive alerts, and sent rows are purged after 30 days.
- CARDS_DISCORD_ALERTS_URL and CARDS_DISCORD_ALERTS_KEY enable the feature; Administration › Guilde can turn every alert off, and the privacy notice explains what is sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 17:09:29 +01:00
6828683f1d Let Sokko TCG commons equip cards and add expedition synergies with a Grimoire
- Every common carries equipment spreading six points (+6, +3/+3, +2/+2/+2 or +8/−2), validated at load; every rare or better card shares a tag with at least three commons.
- Power opens up to three equipment slots; a common sharing a tag with its card adds synergy points, and a common equips one card at a time without ever leaving the collection.
- Teams earn score bonuses from destination affinity and resonances (Écho, Lignée, Étoiles sœurs), capped together with group cohesion.
- The Grimoire records lore pairs when equipping and resonances at departure for every player of the team.
- The card sheet lists equipment slots with synergy hints; previews, groups and reports show affinity and resonance badges; Administration › Guilde tunes slots, synergy points and score bonuses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 16:40:06 +01:00
e0ffccd1c8 Let Sokko TCG players level up cards for Expeditions with Éclats or duplicates
- Each owned rare or better edition keeps a level and field experience; a level costs Éclats by current power, so every rarity reaches the same cap and a rare pays the longer road.
- A duplicate of the same edition gives a whole level; every claimed expedition grants field experience to the cards it sent.
- A one-way bridge turns stardust into Éclats at an admin-tuned rate.
- The card sheet shows level, power, stats and experience with upgrade buttons; expeditions use the upgraded power.
- Administration › Guilde tunes the cost formula, duplicate levels, field experience and the bridge rate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:52:44 +01:00
6b7605d04e Add group Expeditions with a Guild board to Sokko TCG
- A player opens a group with one card and a chosen role; others join from the board with a free role, and the creator launches it once enough players are in.
- At departure the Veilleur de la Guilde holds empty places without a role, each member rolls their own loot multiplied by the number of players, and distinct collections add a cohesion bonus.
- An unlaunched group departs on its own at the end of recruitment with enough players, or dissolves and tells its members; leaving, dissolving and deleted accounts free cards or forfeit shares.
- The Guild tile flags joinable groups; Administration › Guilde tunes group places, players, stars, recruitment, loot multipliers, keeper stats, cohesion and the score bonus cap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:46:10 +01:00
8bb1d53d70 Add solo Expeditions, the second Guilde des Veilleurs quest of Sokko TCG
- Every catalog card carries expedition tags and every collection a stat profile, validated at load; twelve destinations live server-side so hidden ones stay secret.
- Pure rules compute card power, per-slot requirements, roles, dangers, the long-trip malus, the score (one more star never raises it) and loot proportional to the chosen duration.
- A simulator script and a balance test guard the design thresholds; agent docs and a new-card skill explain how to tag new cards.
- Migration 8 adds Éclats d'étoile, expedition settings stored as one validated JSON, daily destinations, expeditions, members and slots, and rebuilds gift_packs so a pack can come from an expedition.
- Players launch a solo expedition from the Guild, see an exact preview, and claim their loot when it returns; the card sheet shows cards away on an expedition.
- Administration › Guilde tunes every value with server-side bounds, toggles destinations and cancels running expeditions; expeditions stay closed until an administrator opens them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:29:05 +01:00
0ef213cf4f Add the Guilde des Veilleurs and its daily guess-the-card quest to Sokko TCG
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m57s
Validate and deploy Sokko G / deploy (push) Successful in 12s
- La Carte du jour: one zoomed card shared by all players each Paris day, six guesses with collection and rarity hints, a fixed stardust reward and an emoji result to share.
- The Guilde des Veilleurs lists the quests, with a menu entry, a home banner and an admin section for quest settings.
- The section menu folds into a dropdown below 960 px; the home pairs the guild with the best pull and moves the opening reserve under the menu.
- The shop pack share moves to the shop collection admin page, which recalls where the pack draws its cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 18:43:28 +01:00
b779190f50 Add L'Arcade des Rêves, the permanent video game Sokko TCG collection
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m43s
Validate and deploy Sokko G / deploy (push) Successful in 13s
2026-11-13 09:28:08 +01:00
bec9ea5b2f Send a toolbox through an encrypted link
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m39s
Validate and deploy Sokko G / deploy (push) Successful in 12s
Sharing a toolbox meant exporting a JSON file and passing it around by
hand. A toolbox can now be sent from the site while staying local first:
the browser compresses and encrypts the v2 export with AES-GCM, and the
key lives only in the link fragment, so the server keeps for at most
24 hours a copy it cannot read.

- Add the /api/shares service: upload, metadata, download and revoke,
  with files in SHARES_DIR, a purge every 10 minutes, and single-use
  links (the default) deleted only once fully downloaded.
- Cap the server load: 50 MiB per share, total storage, free disk
  space, daily volume, concurrent and stalled uploads, reads per link,
  plus a wide per-connection cap kept in memory without storing IPs.
- Limit each browser to 2 shares and 100 MiB per day and 2 active
  links, and show the existing link of a toolbox already shared.
- Add the send dialog (card and game drawer) and the /receive page,
  which previews or directly imports through the existing import path.
- Move shared HTTP helpers to services/http.js for both APIs.
- Document the format, delivery, server layout and privacy wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 16:26:05 +01:00
98c442a9cd Simplify the Astral Genesis lore and add Long Night cutouts
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m14s
Validate and deploy Sokko G / deploy (push) Successful in 12s
Rewrite the Astral Genesis cards in the present tense, fix the Kitsune
gender and the Lune Écarlate name, name the Dragon in full, and say
"paquet" instead of "booster" like the rest of the site.

Add the full-art cutout illustrations of the three Long Night
legendaries for the prismatic backdrop effect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 14:01:21 +01:00
24d08b6b3d Fit the collection descriptions in the pack tiles
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m13s
Validate and deploy Sokko G / deploy (push) Successful in 11s
The Primordial Nebula description grew to about 125 characters during
the lore rewrite and overflowed the three-line pack tile, failing the
pack opening e2e test; La Longue Nuit would have done the same once
enabled. Both are now under 65 characters, a limit the lore guide now
records. The admin e2e test also counted three collections and now
expects the four in the catalog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 11:52:29 +01:00
138a2f05bf Add La Longue Nuit, the winter Sokko TCG collection
Some checks failed
Validate and deploy Sokko G / validate (push) Failing after 14m47s
Validate and deploy Sokko G / deploy (push) Has been skipped
A 30-card event collection set in the archipelago universe: during the
yearly Long Night the Dragon draws the islands together and lights the
lanterns for the Night of Return. About 60% of the cards celebrate the
year-end festivities, including all three legendaries; the rest are
winter scenes. The collection ships inactive and appears once it is
enabled with drop rates from the admin.

Two tests assumed the catalog held only three collections; the shop
count test now only counts the active collections the shop pack draws
from. docs/collections records the shared lore and the illustration
prompts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 11:26:45 +01:00
4b4181818a Run the production E2E against the Node server and its CSP
Vite Preview sends none of the headers of server.mjs, so the production E2E
passed while the CSP blocked the calculator formulas in production. The build
is now served by server.mjs with Sokko TCG disabled, and a new spec saves and
updates a calculator result there, failing on any CSP violation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 20:24:18 +01:00
7046515d20 Close the security gaps found by the application audit
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m8s
Validate and deploy Sokko G / deploy (push) Successful in 10s
Imported toolboxes could run scripts on the site origin through image data
URLs, so only bitmap images are now accepted at import, display and opening.
The Cards game and its fake admin login no longer turn on when NODE_ENV is
missing, and the Node server now sends a CSP and the other security headers.

The deployment script no longer runs files owned by the service account as
root, the services cannot gain privileges through sudo, and the deployment
key stays in a single workflow step with actions pinned by commit. The script
and systemd units must still be reinstalled on the server after delivery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 10:55:35 +01:00