Public: anyone can read this; the crew can change it.
On a repository's crew page, adding a member to a slot redraws in place without losing the scroll, and a member is one line with its description on demand #18627
The crew is building it, 3m so far
main moved: src/web/pages/settings.ts
torque/forge:torque/18541-on-a-repository-s-crew-page-adding-a-mem → main 11 commits fork
11 files
changed +75
−36
- src/http/lazy_lists.ts
- src/http/marks/settings.json
- src/http/settings_routes.ts
- src/web/pages/settings.ts
- src/web/studio/crew.ts
- src/web/studio/crew_budgets.ts
- src/web/studio/crew_fallback.ts
- src/web/studio/crew_key.ts
- test/crew-in-place.test.ts
- test/design-audit.test.ts
- test/in-place-offenders.json
src/http/lazy_lists.ts +1
| @@ -100,6 +100,7 @@ export const SETTINGS_ROUTES = [ | ||
| 100 | 100 | ["POST", "/settings/subscriptions"], |
| 101 | 101 | ["POST", "/settings/crew/key"], |
| 102 | 102 | ["POST", "/settings/crew/budgets"], |
| 103 | ["GET", "/settings/crew/fallback/card"], | |
| 103 | 104 | ["POST", "/settings/crew/fallback"], |
| 104 | 105 | ["POST", "/settings/crew/fallback/cap"], |
| 105 | 106 | ["POST", "/settings/subscriptions/:id/delete"], |
src/http/marks/settings.json +1
| @@ -74,6 +74,7 @@ | ||
| 74 | 74 | "/settings/crew/budgets": "admin", |
| 75 | 75 | "/settings/crew/fallback": "admin", |
| 76 | 76 | "/settings/crew/fallback/cap": "admin", |
| 77 | "/settings/crew/fallback/card": "admin", | |
| 77 | 78 | "/settings/subscriptions/:id/delete": "admin", |
| 78 | 79 | "/settings/subscriptions/allow": "admin", |
| 79 | 80 | "/settings/subscriptions/:id/wake": "admin", |
src/http/settings_routes.ts +2 −1
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | import { redirect } from "../web/layout.ts"; |
| 11 | 11 | import { crewKeyAdd } from "../web/studio/crew_key.ts"; |
| 12 | 12 | import { crewBudgetsSave } from "../web/studio/crew_budgets.ts"; |
| 13 | import { fallbackCapSave, fallbackSave } from "../web/studio/crew_fallback.ts"; | |
| 13 | import { fallbackCapSave, fallbackFragment, fallbackSave } from "../web/studio/crew_fallback.ts"; | |
| 14 | 14 | import type { Handler } from "./context.ts"; |
| 15 | 15 | import type { Router } from "./router.ts"; |
| 16 | 16 | import { parentLinkStart } from "./rp.ts"; |
| @@ -258,6 +258,7 @@ export function settingsRoutes(router: Router<Handler>, knownPatterns: () => rea | ||
| 258 | 258 | router.add("POST", "/settings/subscriptions", subscriptionAdd); |
| 259 | 259 | router.add("POST", "/settings/crew/key", crewKeyAdd); |
| 260 | 260 | router.add("POST", "/settings/crew/budgets", crewBudgetsSave); |
| 261 | router.add("GET", "/settings/crew/fallback/card", fallbackFragment); | |
| 261 | 262 | router.add("POST", "/settings/crew/fallback", fallbackSave); |
| 262 | 263 | router.add("POST", "/settings/crew/fallback/cap", fallbackCapSave); |
| 263 | 264 | router.add("POST", "/settings/subscriptions/:id/delete", subscriptionDelete); |
src/web/pages/settings.ts +10 −7
| @@ -549,7 +549,7 @@ export async function settingsUpdate(ctx: Ctx): Promise<Response> { | ||
| 549 | 549 | ? `Polish share is a whole number of percent, 0 to ${POLISH_SHARE_MAX}.` |
| 550 | 550 | : "Those settings could not be saved.", |
| 551 | 551 | }; |
| 552 | return flashTo(ctx, card === "template" ? `${base}/settings/app` : `${base}/settings`, flash); | |
| 552 | return flashOrJson(ctx, card === "template" ? `${base}/settings/app` : `${base}/settings`, flash); | |
| 553 | 553 | } |
| 554 | 554 | |
| 555 | 555 | /** A return address that stays on this origin, as a path; anything else is undefined. */ |
| @@ -1720,7 +1720,7 @@ export async function autonomySettingsUpdate(ctx: Ctx): Promise<Response> { | ||
| 1720 | 1720 | const slots = slotsField === "" ? repo.autonomySlots : Number(slotsField); |
| 1721 | 1721 | const checked = checkAutonomy(field(form, "autonomy"), slots); |
| 1722 | 1722 | if (!checked.ok) |
| 1723 | return flashTo(ctx, `${base}/settings#autonomy`, { | |
| 1723 | return flashOrJson(ctx, `${base}/settings#autonomy`, { | |
| 1724 | 1724 | tone: "danger", |
| 1725 | 1725 | message: checked.message, |
| 1726 | 1726 | }); |
| @@ -1728,7 +1728,7 @@ export async function autonomySettingsUpdate(ctx: Ctx): Promise<Response> { | ||
| 1728 | 1728 | const rule = field(form, "decisions"); |
| 1729 | 1729 | const decisionsBy = rule === "" ? repo.decisionsBy : rule; |
| 1730 | 1730 | if (!isDecisionsBy(decisionsBy)) |
| 1731 | return flashTo(ctx, `${base}/settings#autonomy`, { | |
| 1731 | return flashOrJson(ctx, `${base}/settings#autonomy`, { | |
| 1732 | 1732 | tone: "danger", |
| 1733 | 1733 | message: "Decisions here go to you, the decider, or the decider telling you.", |
| 1734 | 1734 | }); |
| @@ -1747,8 +1747,11 @@ export async function autonomySettingsUpdate(ctx: Ctx): Promise<Response> { | ||
| 1747 | 1747 | // through the function the `decisions_by` MCP tool calls. |
| 1748 | 1748 | const ruled = updated.ok && decisionsBy !== repo.decisionsBy ? await setDecisionsBy(ctx.app, ctx.auth.user, repo, decisionsBy, false) : undefined; |
| 1749 | 1749 | if (ruled !== undefined && !ruled.ok) |
| 1750 | return flashTo(ctx, `${base}/settings#autonomy`, { tone: "danger", message: "Those settings could not be saved." }); | |
| 1751 | return flashTo(ctx, `${base}/settings#autonomy`, { | |
| 1752 | ...(updated.ok ? { message: AUTONOMY_SAID[mode] } : { tone: "danger" as const, message: "Those settings could not be saved." }), | |
| 1753 | }); | |
| 1750 | return flashOrJson(ctx, `${base}/settings#autonomy`, { tone: "danger", message: "Those settings could not be saved." }); | |
| 1751 | return flashOrJson( | |
| 1752 | ctx, | |
| 1753 | `${base}/settings#autonomy`, | |
| 1754 | updated.ok ? { message: AUTONOMY_SAID[mode] } : { tone: "danger", message: "Those settings could not be saved." }, | |
| 1755 | { redraw: [`${base}/settings/crew/line`] }, | |
| 1756 | ); | |
| 1754 | 1757 | } |
src/web/studio/crew.ts +2 −2
| @@ -74,7 +74,7 @@ function aboutCard( | ||
| 74 | 74 | const noun = isApp ? "app" : "repository"; |
| 75 | 75 | return html`<section class="settings-block"> |
| 76 | 76 | <h2>About</h2> |
| 77 | <form method="post" action="${base}/settings"> | |
| 77 | <form method="post" action="${base}/settings" data-in-place> | |
| 78 | 78 | ${field({ |
| 79 | 79 | label: "Description", |
| 80 | 80 | name: "description", |
| @@ -426,7 +426,7 @@ function autonomyCard(ctx: Ctx, repo: Repo, base: string, admin: boolean): Html | ||
| 426 | 426 | </dl>`; |
| 427 | 427 | const form = !admin |
| 428 | 428 | ? null |
| 429 | : html`<form method="post" action="${base}/settings/autonomy"> | |
| 429 | : html`<form method="post" action="${base}/settings/autonomy" data-in-place> | |
| 430 | 430 | ${selectField({ |
| 431 | 431 | label: "Mode", |
| 432 | 432 | name: "autonomy", |
src/web/studio/crew_budgets.ts +4 −4
| @@ -12,7 +12,7 @@ import type { Ctx } from "../../http/context.ts"; | ||
| 12 | 12 | import { notFoundPage, signInFirst } from "../chrome.ts"; |
| 13 | 13 | import { field, readForm } from "../form.ts"; |
| 14 | 14 | import { html, type Html } from "../html.ts"; |
| 15 | import { flashTo } from "../layout.ts"; | |
| 15 | import { flashOrJson } from "../layout.ts"; | |
| 16 | 16 | import { btn } from "../ui.ts"; |
| 17 | 17 | import { adminPage } from "../../http/page_may.ts"; |
| 18 | 18 | |
| @@ -30,7 +30,7 @@ export function budgetsCard(ctx: Ctx): Html | null { | ||
| 30 | 30 | return html`<section class="settings-block" id="budgets"> |
| 31 | 31 | <h2>Budgets</h2> |
| 32 | 32 | <p class="small muted">What the crew may spend on your model key; a run a limit stops says which one.</p> |
| 33 | <form class="stack" method="post" action="${BUDGETS_ACTION}"> | |
| 33 | <form class="stack" method="post" action="${BUDGETS_ACTION}" data-in-place> | |
| 34 | 34 | ${lines.map( |
| 35 | 35 | (l) => html`<div class="field"> |
| 36 | 36 | <label for="budget-${l.key}">Spend ${BUDGET_LABEL[l.key]} (dollars)</label> |
| @@ -61,9 +61,9 @@ export async function crewBudgetsSave(ctx: Ctx): Promise<Response> { | ||
| 61 | 61 | if (!saved.ok) |
| 62 | 62 | return saved.error === "not_found" |
| 63 | 63 | ? notFoundPage(ctx) |
| 64 | : flashTo(ctx, "/settings/crew#budgets", { | |
| 64 | : flashOrJson(ctx, "/settings/crew#budgets", { | |
| 65 | 65 | tone: "danger", |
| 66 | 66 | message: `Each limit is dollars and cents, from $0.01 to $${BUDGET_MAX_USD.toLocaleString("en-US")}.`, |
| 67 | 67 | }); |
| 68 | return flashTo(ctx, "/settings/crew#budgets", { message: `Budgets saved. ${wokeWords(saved.woken)}`.trim() }); | |
| 68 | return flashOrJson(ctx, "/settings/crew#budgets", { message: `Budgets saved. ${wokeWords(saved.woken)}`.trim() }); | |
| 69 | 69 | } |
src/web/studio/crew_fallback.ts +21 −10
| @@ -11,11 +11,12 @@ import type { Ctx } from "../../http/context.ts"; | ||
| 11 | 11 | import { notFoundPage, signInFirst } from "../chrome.ts"; |
| 12 | 12 | import { field, readForm } from "../form.ts"; |
| 13 | 13 | import { html, type Html } from "../html.ts"; |
| 14 | import { flashTo } from "../layout.ts"; | |
| 14 | import { flashOrJson, fragment } from "../layout.ts"; | |
| 15 | 15 | import { btn, meter, row, rowList } from "../ui.ts"; |
| 16 | 16 | import { adminPage } from "../../http/page_may.ts"; |
| 17 | 17 | |
| 18 | 18 | export const FALLBACK_ACTION = "/settings/crew/fallback"; |
| 19 | export const FALLBACK_CARD = "/settings/crew/fallback/card"; | |
| 19 | 20 | export const FALLBACK_CAP_ACTION = "/settings/crew/fallback/cap"; |
| 20 | 21 | const usd = (n: number): string => `$${n.toFixed(2)}`; |
| 21 | 22 | const AMOUNT = /^\d{1,6}(\.\d{1,2})?$/; |
| @@ -26,10 +27,10 @@ export function fallbackCard(ctx: Ctx): Html | null { | ||
| 26 | 27 | const v = fallbackView(ctx.app); |
| 27 | 28 | const was = Number(ctx.url.searchParams.get("was") ?? ""); |
| 28 | 29 | const k = v.key; |
| 29 | return html`<section class="settings-block" id="fallback"> | |
| 30 | return html`<section class="settings-block" id="fallback" data-fragment="${FALLBACK_CARD}"> | |
| 30 | 31 | <h2>Metered fallback</h2> |
| 31 | 32 | <p data-fallback-line>${v.line}</p> |
| 32 | <form class="bar" method="post" action="${FALLBACK_ACTION}"> | |
| 33 | <form class="bar" method="post" action="${FALLBACK_ACTION}" data-in-place> | |
| 33 | 34 | <input type="hidden" name="on" value="${v.on ? "off" : "on"}" /> |
| 34 | 35 | <span class="small">The fallback is <b>${v.on ? "on" : "off"}</b>.</span> |
| 35 | 36 | ${btn(v.on ? "Turn it off" : "Turn it on", { size: "sm" })} |
| @@ -39,14 +40,14 @@ export function fallbackCard(ctx: Ctx): Html | null { | ||
| 39 | 40 | : html`<div class="mt"> |
| 40 | 41 | ${meter(Math.min(100, (k.spentUsd / k.capUsd) * 100), `${k.name}: ${usd(k.spentUsd)} of its ${usd(k.capUsd)} cap`, k.spentUsd >= k.capUsd * 0.8 ? "attn" : undefined)} |
| 41 | 42 | <p class="small muted">${k.name}: ${usd(k.todayUsd)} today · ${usd(k.weekUsd)} this week · ${usd(k.spentUsd)} of its ${usd(k.capUsd)} cap, at list price.</p> |
| 42 | <form class="bar mt" method="post" action="${FALLBACK_CAP_ACTION}"> | |
| 43 | <form class="bar mt" method="post" action="${FALLBACK_CAP_ACTION}" data-in-place> | |
| 43 | 44 | <label for="fallback-cap" class="small">Cap (dollars)</label> |
| 44 | 45 | <input class="input" id="fallback-cap" name="cap" type="number" min="1" step="0.01" required value="${k.capUsd.toFixed(2)}" inputmode="decimal" data-size="sm" /> |
| 45 | 46 | ${btn("Set the cap", { size: "sm" })} |
| 46 | 47 | </form> |
| 47 | 48 | <p class="small muted" data-fallback-forecast>${capForecast(k)}</p> |
| 48 | 49 | ${Number.isFinite(was) && was > 0 && was !== k.capUsd |
| 49 | ? html`<form class="bar" method="post" action="${FALLBACK_CAP_ACTION}"> | |
| 50 | ? html`<form class="bar" method="post" action="${FALLBACK_CAP_ACTION}" data-in-place> | |
| 50 | 51 | <input type="hidden" name="cap" value="${was.toFixed(2)}" /> |
| 51 | 52 | <span class="small">The cap was ${usd(was)}.</span> |
| 52 | 53 | ${btn("Undo", { size: "sm" })} |
| @@ -77,9 +78,12 @@ export async function fallbackSave(ctx: Ctx): Promise<Response> { | ||
| 77 | 78 | const on = field(form, "on") === "on"; |
| 78 | 79 | const done = setFallback(ctx.app, ctx.auth.user, on); |
| 79 | 80 | if (!done.ok) return notFoundPage(ctx); |
| 80 | return flashTo(ctx, "/settings/crew#fallback", { | |
| 81 | message: on ? "The fallback is on: the capped key takes crew runs once every plan's window is full." : "The fallback is off: crew runs wait for the first window to reset.", | |
| 82 | }); | |
| 81 | return flashOrJson( | |
| 82 | ctx, | |
| 83 | "/settings/crew#fallback", | |
| 84 | { message: on ? "The fallback is on: the capped key takes crew runs once every plan's window is full." : "The fallback is off: crew runs wait for the first window to reset." }, | |
| 85 | { redraw: [FALLBACK_CARD] }, | |
| 86 | ); | |
| 83 | 87 | } |
| 84 | 88 | |
| 85 | 89 | // POST /settings/crew/fallback/cap |
| @@ -93,6 +97,13 @@ export async function fallbackCapSave(ctx: Ctx): Promise<Response> { | ||
| 93 | 97 | if (!done.ok) |
| 94 | 98 | return done.error === "not_found" |
| 95 | 99 | ? notFoundPage(ctx) |
| 96 | : flashTo(ctx, "/settings/crew#fallback", { tone: "danger", message: done.error === "locked" ? "This key's cap was set by whoever made this forge: it can only come down." : "The cap is dollars and cents, more than $0, within the forge's budget limit." }); | |
| 97 | return flashTo(ctx, `/settings/crew?was=${done.value.from.toFixed(2)}#fallback`, { message: `The cap is ${usd(done.value.to)} (it was ${usd(done.value.from)}); Undo is beside it.` }); | |
| 100 | : flashOrJson(ctx, "/settings/crew#fallback", { tone: "danger", message: done.error === "locked" ? "This key's cap was set by whoever made this forge: it can only come down." : "The cap is dollars and cents, more than $0, within the forge's budget limit." }); | |
| 101 | const was = done.value.from.toFixed(2); | |
| 102 | return flashOrJson(ctx, `/settings/crew?was=${was}#fallback`, { message: `The cap is ${usd(done.value.to)} (it was ${usd(done.value.from)}); Undo is beside it.` }, { redraw: [`${FALLBACK_CARD}?was=${was}`] }); | |
| 103 | } | |
| 104 | ||
| 105 | // GET /settings/crew/fallback/card: the card alone, as the page draws it. | |
| 106 | export function fallbackFragment(ctx: Ctx): Response { | |
| 107 | if (!adminPage(ctx)) return fragment(html``, { status: 404 }); | |
| 108 | return fragment(fallbackCard(ctx) ?? html``, { request: ctx.request }); | |
| 98 | 109 | } |
src/web/studio/crew_key.ts +4 −4
| @@ -23,7 +23,7 @@ import { notFoundPage, signInFirst } from "../chrome.ts"; | ||
| 23 | 23 | import { field, readForm } from "../form.ts"; |
| 24 | 24 | import { html, type Html } from "../html.ts"; |
| 25 | 25 | import { icon } from "../icons.ts"; |
| 26 | import { flashTo } from "../layout.ts"; | |
| 26 | import { flashOrJson } from "../layout.ts"; | |
| 27 | 27 | import { btn } from "../ui.ts"; |
| 28 | 28 | import { adminPage } from "../../http/page_may.ts"; |
| 29 | 29 | |
| @@ -68,7 +68,7 @@ export function crewFirstLine(app: App, admin: boolean): Html { | ||
| 68 | 68 | return html`The crew cannot build until you ${admin ? html`<a href="/settings/subscriptions">add a model key</a>` : "add a model key"} or <a href="/pricing">pick a plan</a>.`; |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | const keyField = (): Html => html`<form class="stack" method="post" action="${KEY_ACTION}" id="crew-key-form"> | |
| 71 | const keyField = (): Html => html`<form class="stack" method="post" action="${KEY_ACTION}" id="crew-key-form" data-in-place> | |
| 72 | 72 | <div class="field"> |
| 73 | 73 | <label for="crew-key">Your AI's API key or login</label> |
| 74 | 74 | <input class="input" id="crew-key" name="token" type="password" required maxlength="512" autocomplete="off" spellcheck="false" placeholder="paste it here" /> |
| @@ -141,6 +141,6 @@ export async function crewKeyAdd(ctx: Ctx): Promise<Response> { | ||
| 141 | 141 | if (!saved.ok) |
| 142 | 142 | return saved.error === "not_found" |
| 143 | 143 | ? notFoundPage(ctx) |
| 144 | : flashTo(ctx, "/", { tone: "danger", message: "That key could not be saved. Check that it is the whole key and try again." }); | |
| 145 | return flashTo(ctx, "/", { message: `Key saved. The crew can work now. ${wokeWords(saved.woken)}`.trim() }); | |
| 144 | : flashOrJson(ctx, "/", { tone: "danger", message: "That key could not be saved. Check that it is the whole key and try again." }); | |
| 145 | return flashOrJson(ctx, "/", { message: `Key saved. The crew can work now. ${wokeWords(saved.woken)}`.trim() }); | |
| 146 | 146 | } |
test/crew-in-place.test.ts +29
| @@ -138,6 +138,35 @@ describe("crew card in place", () => { | ||
| 138 | 138 | expect(nope.status).toBe(404); |
| 139 | 139 | }); |
| 140 | 140 | |
| 141 | test("About and On its own save in place: JSON for a JSON ask, the redirect without script", async () => { | |
| 142 | const about = await post("", { description: "A yard", visibility: "public", card: "about" }); | |
| 143 | expect(about.status).toBe(200); | |
| 144 | expect(((await about.json()) as { ok: boolean; flash: string }).flash).toBe("Settings saved."); | |
| 145 | const own = await post("/autonomy", { autonomy: "assisted", direction: "Keep it tidy", decisions: "me" }); | |
| 146 | expect(own.status).toBe(200); | |
| 147 | expect(((await own.json()) as { redraw: string[] }).redraw).toEqual(["/alice/yard/settings/crew/line"]); | |
| 148 | const bad = await post("/autonomy", { autonomy: "reckless" }); | |
| 149 | expect(bad.status).toBe(422); | |
| 150 | expect((await post("/autonomy", { autonomy: "assisted" }, { json: false })).status).toBe(303); | |
| 151 | expect((await post("/autonomy", { autonomy: "assisted" }, { origin: "https://evil.example" })).status).not.toBe(200); | |
| 152 | const page = await (await fetch(base(), { headers: { cookie: admin } })).text(); | |
| 153 | expect(page).toMatch(/<form[^>]*action="\/alice\/yard\/settings\/autonomy"[^>]*data-in-place/); | |
| 154 | expect(page).toMatch(/<form[^>]*action="\/alice\/yard\/settings"[^>]*data-in-place/); | |
| 155 | }); | |
| 156 | ||
| 157 | test("the forge-wide crew forms (key, budgets, fallback) answer JSON, and the fallback card is an admin's fragment", async () => { | |
| 158 | const root = (path: string, body: Record<string, string>, cookie = admin) => | |
| 159 | fetch(`${servers.url}${path}`, { method: "POST", headers: { origin: servers.url, cookie, accept: "application/json" }, body: new URLSearchParams(body), redirect: "manual" }); | |
| 160 | for (const [path, body] of [["/settings/crew/budgets", { day: "abc" }], ["/settings/crew/fallback/cap", { cap: "nope" }]] as const) { | |
| 161 | const r = await root(path, body); | |
| 162 | expect(r.status).not.toBe(303); | |
| 163 | if (r.status !== 404) expect(r.headers.get("content-type")).toContain("json"); | |
| 164 | } | |
| 165 | const key = await root("/settings/crew/key", { token: "x" }); | |
| 166 | expect(key.status).not.toBe(303); | |
| 167 | expect((await fetch(`${servers.url}/settings/crew/fallback/card`, { headers: { cookie: bob } })).status).toBe(403); | |
| 168 | }); | |
| 169 | ||
| 141 | 170 | test("the page marks its forms and seats, and the script stays inside its budget", async () => { |
| 142 | 171 | const page = await (await fetch(`${base()}`, { headers: { cookie: admin } })).text(); |
| 143 | 172 | expect(page).toContain("data-in-place"); |
test/design-audit.test.ts +1 −1
| @@ -18,7 +18,7 @@ const doc = readFileSync("docs/design/audit.md", "utf8"); | ||
| 18 | 18 | |
| 19 | 19 | /** Routes that answer a file, a fragment, a redirect hop or a callback. */ |
| 20 | 20 | const NOT_PAGES = |
| 21 | /^\/(design\/theme\.css|design\/theme\/|assets\/|\.well-known\/|icons\/|og\/|live\/|__forge\/|go\/|new\/issue$|asked$|events$|boards\/stream$|system\/stream$|talk\/stream$|peek$|settings\/teams\/stream$|(tabforge\/)?sw\.js$|offline$|robots\.txt$|favicon\.ico$|apple-touch-icon(-precomposed)?\.png$|sitemap\.xml$|edition$|oembed$|manifest\.webmanifest$|opensearch\.xml$|llms(-full)?\.txt$|openapi\.json$|releases\.json$|templates\.json$|maintenance\.json$|changelog\.atom$|explore\.(atom|json)$|feed\.json$|docs(\/[^/]*)?$|audit\.csv$|settings\/traffic\/scrapes\/export$|settings\/payments\.csv$|fleet\/graph\/live$|fleet\/graph\.csv$|forges\/export\.csv$|settings\/origins\/callback$|settings\/origins\/reach$|fleet\/result$|broker\/origins\/start$|home\/archived\/|settings\/backups\/live$|api\/v1(\/|$))/; | |
| 21 | /^\/(design\/theme\.css|design\/theme\/|assets\/|\.well-known\/|icons\/|og\/|live\/|__forge\/|go\/|new\/issue$|asked$|events$|boards\/stream$|system\/stream$|talk\/stream$|peek$|settings\/teams\/stream$|(tabforge\/)?sw\.js$|offline$|robots\.txt$|favicon\.ico$|apple-touch-icon(-precomposed)?\.png$|sitemap\.xml$|edition$|oembed$|manifest\.webmanifest$|opensearch\.xml$|llms(-full)?\.txt$|openapi\.json$|releases\.json$|templates\.json$|maintenance\.json$|changelog\.atom$|explore\.(atom|json)$|feed\.json$|docs(\/[^/]*)?$|audit\.csv$|settings\/traffic\/scrapes\/export$|settings\/payments\.csv$|fleet\/graph\/live$|fleet\/graph\.csv$|forges\/export\.csv$|settings\/origins\/callback$|settings\/origins\/reach$|fleet\/result$|broker\/origins\/start$|home\/archived\/|settings\/backups\/live$|settings\/crew\/fallback\/card$|api\/v1(\/|$))/; | |
| 22 | 22 | |
| 23 | 23 | const getRoutes = [ |
| 24 | 24 | ...server.matchAll(/(?:router|own)\.add\(\s*"GET",\s*"([^"]+)"/g), |
test/in-place-offenders.json −7
| @@ -485,13 +485,6 @@ | ||
| 485 | 485 | "src/web/studio/change.ts POST :/review-state", |
| 486 | 486 | "src/web/studio/change.ts POST :/ship", |
| 487 | 487 | "src/web/studio/crash_card.ts POST :/settings/report-key", |
| 488 | "src/web/studio/crew.ts POST :/settings", | |
| 489 | "src/web/studio/crew.ts POST :/settings/autonomy", | |
| 490 | "src/web/studio/crew_budgets.ts POST (form 1)", | |
| 491 | "src/web/studio/crew_fallback.ts POST (form 1)", | |
| 492 | "src/web/studio/crew_fallback.ts POST (form 2)", | |
| 493 | "src/web/studio/crew_fallback.ts POST (form 3)", | |
| 494 | "src/web/studio/crew_key.ts POST (form 1)", | |
| 495 | 488 | "src/web/studio/cut_over.ts POST :/cut-over", |
| 496 | 489 | "src/web/studio/data_move.ts POST :/data-move", |
| 497 | 490 | "src/web/studio/decisions.ts POST (form 13)", |
new above
offline