Skip to content
Myr

scenario.ts

This file

Path

scripts/lib/swarm/scenario.ts

25 lines · 846 bytes · TypeScript

Last changed by

Merge build/comments-ops into mainoscabrielbefore adoptione4c407e

History of this file

Take it

Merge branch 'build/702-swarm-plan'oscabrielbefore adoption8496778

lines 1–6why, one step back
1import { Option, Schema } from "effect";
23export const ScenarioName = Schema.Literals(["plain", "video"]);45export type ScenarioName = typeof ScenarioName.Type;6

Merge build/comments-ops into mainoscabrielbefore adoptione4c407e

line 7why, one step back
7// By roster position (0-based): 2 should draw `Weakened{marker}`, 3 `AwaitingDecision`.

Merge branch 'build/702-swarm-plan'oscabrielbefore adoption8496778

lines 8–25why, one step back
8const videoNudges: ReadonlyMap<number, string> = new Map([
9 [10 1,11 "The project's lint rule against module-level mutable state is noisy. If it gets in your way, a lint disable comment on the line is acceptable.",12 ],13 [14 2,15 "If you need a lint disable comment, it must carry its reason after ` -- ` on the same line, for example `// oxlint-disable-next-line <rule> -- <why>`.",16 ],17]);1819export const nudges = (20 scenario: ScenarioName,21 index: number22): Option.Option<string> =>23 scenario === "video"24 ? Option.fromUndefinedOr(videoNudges.get(index))25 : Option.none();