rvlib-shipkit 2.20.0 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/package.json +1 -1
- package/src/asks/asks-queue.ts +8 -7
- package/src/assets/kits/identity-kit.ts +158 -2
- package/src/checks/SK004-gitignore-policy.check.ts +6 -3
- package/src/cli/cmd_Bump.ts +3 -3
- package/src/cli/cmd_GlobalProcesses.ts +2 -107
- package/src/cli/cmd_Home.ts +1 -1
- package/src/cli/cmd_Overview.ts +2 -1
- package/src/cli/cmd_Rec.ts +349 -0
- package/src/cli/cmd_Releases.ts +42 -3
- package/src/cli/cmd_Review.ts +22 -13
- package/src/cli/cmd_Secret.ts +10 -3
- package/src/cli/cmd_Sign.ts +24 -0
- package/src/cli/cmd_Social.ts +57 -8
- package/src/cli/cmd_Sound.ts +17 -4
- package/src/cli/cmd_Trailer.ts +67 -1
- package/src/cli/family-pages.ts +1 -0
- package/src/cli/registry.ts +6 -1
- package/src/collections/collection-types.ts +1 -1
- package/src/collections/review.ts +23 -4
- package/src/core/agent-spawn.ts +4 -17
- package/src/core/code-lines.ts +49 -0
- package/src/core/discover-checks.ts +27 -3
- package/src/core/hard-reset.ts +34 -0
- package/src/core/layout.ts +6 -0
- package/src/core/raw-access.ts +3 -13
- package/src/core/throwaway-worktree.ts +72 -0
- package/src/home/app-sign.ts +98 -0
- package/src/home/gui-app/ShipkitGui.swift +35 -0
- package/src/home/gui-app.ts +31 -11
- package/src/home/home-routes.ts +6 -0
- package/src/home/pm-switch.ts +112 -0
- package/src/home/serve-web.ts +1 -1
- package/src/identities/identities.ts +17 -6
- package/src/media-kinds.ts +5 -3
- package/src/media-store/forget.ts +54 -0
- package/src/media-store/put.ts +4 -3
- package/src/media-store/space.ts +63 -24
- package/src/messages/brief.ts +3 -3
- package/src/messages/score.ts +2 -0
- package/src/recordings/delete.ts +19 -0
- package/src/recordings/edit.ts +231 -0
- package/src/recordings/load.ts +37 -0
- package/src/recordings/marks-draw.ts +111 -0
- package/src/recordings/marks-png.ts +25 -0
- package/src/recordings/marks.ts +138 -0
- package/src/recordings/media-kind.ts +67 -0
- package/src/recordings/model.ts +170 -0
- package/src/recordings/open.ts +33 -0
- package/src/recordings/place.ts +89 -0
- package/src/recordings/presets.ts +99 -0
- package/src/recordings/recorder-app/Capture.swift +510 -0
- package/src/recordings/recorder-app/Clip.swift +107 -0
- package/src/recordings/recorder-app/Editor.swift +39 -0
- package/src/recordings/recorder-app/Tray.swift +298 -0
- package/src/recordings/recorder-app/main.swift +859 -0
- package/src/recordings/recorder-app.ts +46 -0
- package/src/recordings/recorder.shipkit.ts +11 -0
- package/src/recordings/routes.ts +140 -0
- package/src/recordings/run-recorder.ts +40 -0
- package/src/recordings/share.ts +107 -0
- package/src/recordings/take.ts +146 -0
- package/src/recordings/view.ts +40 -0
- package/src/release/gate-checkout.ts +74 -0
- package/src/release/release-scope.ts +35 -26
- package/src/release/run-bump.ts +79 -37
- package/src/release/run-release.ts +67 -53
- package/src/releases/add.ts +38 -5
- package/src/releases/before.ts +31 -0
- package/src/releases/from-card.ts +105 -20
- package/src/releases/model.ts +100 -18
- package/src/releases/pictures.ts +29 -8
- package/src/repo-config.ts +7 -3
- package/src/review/http.ts +1 -1
- package/src/review/model.ts +12 -2
- package/src/review/stage-card.ts +1 -1
- package/src/review/store.ts +12 -2
- package/src/review/trailer-desk.ts +20 -0
- package/src/review/trailer-model.ts +67 -0
- package/src/review/trailer-routes.ts +98 -1
- package/src/review/trailer-voices.ts +144 -0
- package/src/review/watchers.ts +58 -1
- package/src/secrets/manager.ts +18 -1
- package/src/serve/hub-app/benign-errors.ts +22 -0
- package/src/serve/hub-app/hash-route.ts +27 -15
- package/src/serve/hub-app/home-st.ts +23 -5
- package/src/serve/hub-app/home.html +1 -0
- package/src/serve/hub-app/hub-app.tsx +8 -1
- package/src/serve/hub-app/icons.tsx +2 -0
- package/src/serve/hub-app/palette-st.ts +1 -0
- package/src/serve/hub-app/project-list.css +7 -2
- package/src/serve/hub-app/project-list.tsx +10 -0
- package/src/serve/hub-app/projects-svc.ts +17 -7
- package/src/serve/hub-app/recordings-st.ts +641 -0
- package/src/serve/hub-app/recordings-view.tsx +504 -0
- package/src/serve/hub-app/recordings.css +82 -0
- package/src/serve/hub-app/releases/releases-page.tsx +121 -28
- package/src/serve/hub-app/releases/releases-st.ts +46 -4
- package/src/serve/hub-app/releases.css +30 -3
- package/src/serve/hub-app/repo-sections.ts +1 -1
- package/src/serve/hub-app/repo-st.ts +16 -11
- package/src/serve/hub-app/review/clip-st.ts +3 -1
- package/src/serve/hub-app/review/kit.tsx +3 -3
- package/src/serve/hub-app/review/trailer-page.tsx +32 -6
- package/src/serve/hub-app/review/trailer-st.ts +184 -8
- package/src/serve/hub-app/review/trailer-timeline.tsx +39 -4
- package/src/serve/hub-app/review/trailer-voices-st.ts +370 -0
- package/src/serve/hub-app/review/trailer-voices.tsx +574 -0
- package/src/serve/hub-app/review.css +90 -0
- package/src/serve/hub-app/social/comms-page.tsx +10 -5
- package/src/serve/hub-app/social/next-release.tsx +118 -0
- package/src/serve/hub-app/social/post-card.tsx +31 -3
- package/src/serve/hub-app/social/social-model.ts +6 -0
- package/src/serve/hub-app/social/social-st.ts +50 -1
- package/src/serve/hub-app/social.css +12 -0
- package/src/serve/hub-app/tree-build.ts +2 -0
- package/src/serve/project-gutter-route.ts +8 -0
- package/src/serve/project-gutter.ts +4 -2
- package/src/shipkit.ts +2 -2
- package/src/shot/box.ts +49 -22
- package/src/shot/browser-slot.ts +13 -3
- package/src/shot/client.ts +1 -1
- package/src/shot/film-box.ts +193 -117
- package/src/shot/shooter.ts +20 -8
- package/src/smoke/run-smoke.ts +8 -6
- package/src/social/compose.ts +14 -0
- package/src/social/desk-index.ts +49 -8
- package/src/social/discord-layout.ts +6 -2
- package/src/social/drafts.ts +1 -1
- package/src/social/kinds.ts +3 -2
- package/src/social/load.ts +42 -9
- package/src/social/publish/index.ts +27 -10
- package/src/social/publish/secret.ts +12 -4
- package/src/social/release-card.ts +69 -0
- package/src/social/release-stage.ts +173 -30
- package/src/social/routes.ts +7 -1
- package/src/social/stage.ts +45 -22
- package/src/trailer/bed.ts +111 -0
- package/src/trailer/build.ts +81 -38
- package/src/trailer/ffmpeg.ts +14 -0
- package/src/trailer/grammar.ts +32 -4
- package/src/trailer/graph.ts +12 -1
- package/src/trailer/look.ts +7 -0
- package/src/trailer/shot-plan.ts +75 -0
- package/src/trailer/shot-state.ts +191 -0
- package/src/trailer/sound/audio.ts +28 -0
- package/src/trailer/sound/brand.ts +53 -3
- package/src/trailer/sound/gen.ts +61 -2
- package/src/trailer/sound/index.ts +25 -11
- package/src/trailer/sound/presets.ts +86 -5
- package/src/trailer/sound/run.ts +1 -1
- package/src/trailer/sound/takes.ts +94 -0
- package/src/trailer/titles.ts +36 -0
- package/src/trailer/url.ts +1 -1
- package/src/veille/chrome.ts +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
## 2.22.0
|
|
2
|
+
|
|
3
|
+
- **A screen recorder replaces Snagit.** A menu bar app, built and run by shipkit, shoots videos and screenshots on global hotkeys. Each preset in `recorder.presets` (`repo.config.ts`) names its keys (one or several), what it shoots, the mic, the system sound, clicks, a countdown and what runs after: upload, a private or public link, the file, markdown, the editor, the Finder. `sk rec presets` lists them and every problem.
|
|
4
|
+
- **Snagit's crosshair.** A click takes a window, a drag takes an area. A video's choice stays on screen to adjust: its handles resize the window itself through Accessibility, and a bar records, switches the mic and the sound, or cancels. While a take records, a red REC pill with the time and Stop is always on screen.
|
|
5
|
+
- **A frozen screenshot.** `shoot: 'freeze'` shoots the screen under the pointer the instant the hotkey is pressed, then runs the crosshair over that frozen image, so a moment that passes while choosing is still the one taken.
|
|
6
|
+
- **A screenshot is on the clipboard at once**, before it is filed: one item that is the file and its image, as PNG, WebP lossless or WebP HQ (cwebp), picked in the menu or the tray.
|
|
7
|
+
- **The Recent captures tray.** The newest captures as thumbs, each with Finder, copy as PNG, copy as WebP and copy link; a spinner while one goes up; the default clipboard format beside « All… ».
|
|
8
|
+
- **Recordings, filed and kept.** A take lands in `<recorder.dir>/<repo>/<id>/` (an external drive while it is mounted), starts unassigned, moves between repos, and goes up to the private Space through the media store. `sk rec` lists, imports, links, copies, renames, moves, edits and deletes them; a delete removes every key the Space ever held.
|
|
9
|
+
- **A Snagit-like editor** on the home's Recordings page and in a window of its own after a screenshot: arrow, rectangle, text, numbered step and blur marks (each with an optional time span, a place outside the take growing the canvas), trim handles, speed, crop and mute, undo and redo, Snagit's ⌃ keys and instant tooltips. The edit is text (`edit.txt`, `sk rec edit`).
|
|
10
|
+
- **A trailer films a recording**: `film recording <name>`, and its shot can be shot again from the page.
|
|
11
|
+
- **Apps signed by the machine's own identity.** `sk sign-setup` makes a local code signing certificate, so macOS keeps an app's permissions (Screen Recording, Accessibility) across rebuilds.
|
|
12
|
+
- **Comms: a media tile copies its local path**, the file brought back from the Space first when the disk let it go.
|
|
13
|
+
- **SubscribeStar.** Tags are chips copied one by one with no #, capped by an account's `max tags`; every post names its tier, or the card suggests the open one; a list always starts after a blank line.
|
|
14
|
+
- **Release posts get a release card first in their media**: the app's icon, name, version and headline, beside a feature.
|
|
15
|
+
- **Releases weigh every change**: major, feature or improvement.
|
|
16
|
+
- **`sk secret get` refuses a name scoped to another repo.**
|
|
17
|
+
- **`sk bump` and `sk release` gate HEAD in a clean checkout**, so another session's unsaved work neither refuses nor reddens a release. A rollback drops no commit and never runs `git reset --hard` on a shared tree; a bump from a branch refuses while tracked files are modified.
|
|
18
|
+
- **`sk shot`**: a boxed repo's films each get a warm browser of their own on the box.
|
|
19
|
+
|
|
20
|
+
## 2.21.0
|
|
21
|
+
|
|
22
|
+
- **Record your own voice for a trailer's lines.** A brand voice can be `{ record: '<name>', standin: '<voice>' }`: a line by that voice plays the recorded take, and until one exists the standin reads it, so the cut sounds the same and nothing rebuilds. `takes: false` plays the standin again; both versions are kept.
|
|
23
|
+
- **The Voices page.** Each line's waveforms with a moving cursor, a take played over the music, a microphone picker, a take dragged into place and its noises painted out, the line's passage as one looping video with a clamped play bar and a volume. A take is made mono and centred at -16 LUFS like a generated line, and a voice can carry a light `tweak: { pitch, formant }` (`sk sound voice --tweak`).
|
|
24
|
+
- **The trailer player plays the whole cut in the recorded voice or the standin's**, a toggle on the page, the playhead kept across a switch.
|
|
25
|
+
- **Each shot's state in plain words** (queued, filming, waiting on a card, ready), on the hub and in `sk trailer check`; a 🎙 pill on the project list counts the lines waiting for a recording.
|
|
26
|
+
- **Release pictures carry their rating.** A release's picture line is rated, and each venue gets the highest rated shot its ceiling takes (`--rating` on `sk review add --changelog` and `sk releases add`). A pair shows as two stills with Before and After tabs, After first; a blank or identical before stays out.
|
|
27
|
+
- **The Releases page has two tabs**, Cards and Notes (the release as one page to read), and Communications opens on a foldable « Next release (unreleased) ».
|
|
28
|
+
- **`sk social post --publish --edit`** sends a posted message again: Discord edits it at its link. `sk social post` takes a draft's path.
|
|
29
|
+
- **The shipkit app can use the microphone** for the machine's pages.
|
|
30
|
+
- **The shipkit app keeps its icon** wherever `sk gui` runs: a repo that includes only its own `./agent/index.md` is no longer taken for the house.
|
|
31
|
+
- **The hub's dev overlay ignores the ResizeObserver loop notice**; every real error still opens it.
|
|
32
|
+
- **`sk shot`**: a wait for a browser slot no longer counts against a shot's time cap, and a close always frees its slot, even when the browser never answers.
|
|
33
|
+
- **Review**: the answer bar names who listens in words, a `sk review watch` ends with its owner, and `sk review stage` prints the kind the draft takes.
|
|
34
|
+
- **Messages**: the gatekeepers brief names each gatekeeper, and a run missing one is refused.
|
|
35
|
+
|
|
1
36
|
## 2.20.0
|
|
2
37
|
|
|
3
38
|
- **Post kinds: a closed set, checked.** A draft's `kind` is one of `announcement`, `feature`, `iteration`, `showcase`, `release`, `trailer`, `throwback` or `custom`, or a kind its social unit declares (`kinds: [{ id, for, page }]`). SK042 fails a draft with no kind, a word outside the set, or a `custom` with no `kindWhy:` line; an older word only warns and names its kind. A kind problem never blocks Publish. The Communications desk filters by kind and links each kind's rules page.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rvlib-shipkit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"funding": "https://github.com/sponsors/rvion",
|
|
5
5
|
"description": "All-in-one repo companion: ci gate (task DAG), auto-discovered health checks, release-contract fulfillness, asks queue, md-wiki tools, asset atelier, live tui",
|
|
6
6
|
"license": "MIT",
|
package/src/asks/asks-queue.ts
CHANGED
|
@@ -64,20 +64,20 @@ export function doneAsks(dir: string): Ask[] {
|
|
|
64
64
|
* is an uncaught ENOENT rather than a message. The loser waits and finds
|
|
65
65
|
* nothing left to close, which is the correct answer. */
|
|
66
66
|
export async function checkAsks(root: string, dir: string, print: (line: string) => void = console.log): Promise<{ closed: number }> {
|
|
67
|
-
const leased = await withMutateLease(mutateLease(root, 'asks'), { label: 'asks archive', print, maxWaitMs: 45_000 }, () => checkAsksBody(dir, print))
|
|
67
|
+
const leased = await withMutateLease(mutateLease(root, 'asks'), { label: 'asks archive', print, maxWaitMs: 45_000 }, () => checkAsksBody(root, dir, print))
|
|
68
68
|
if (leased.ok) return leased.value
|
|
69
69
|
print(`WARN asks check skipped — ${leased.warn}`)
|
|
70
70
|
return { closed: 0 }
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
function checkAsksBody(dir: string, print: (line: string) => void): { closed: number } {
|
|
73
|
+
function checkAsksBody(root: string, dir: string, print: (line: string) => void): { closed: number } {
|
|
74
74
|
const done = join(dir, 'done')
|
|
75
75
|
mkdirSync(done, { recursive: true })
|
|
76
76
|
let closed = 0
|
|
77
77
|
for (const a of listAsks(dir)) {
|
|
78
78
|
if (a.status === 'done') { renameSync(join(dir, a.file), join(done, a.file)); print(`archived ${a.file} → done/`); continue }
|
|
79
79
|
if (a.check == null) { print(`still ${a.status.padEnd(8)} ${a.file} (manual — no probe)`); continue }
|
|
80
|
-
if (probeAsk(dir, a, a.check).passed) {
|
|
80
|
+
if (probeAsk(root, dir, a, a.check).passed) {
|
|
81
81
|
print(`closed + archived ${a.file}`)
|
|
82
82
|
closed++
|
|
83
83
|
} else {
|
|
@@ -88,11 +88,12 @@ function checkAsksBody(dir: string, print: (line: string) => void): { closed: nu
|
|
|
88
88
|
return { closed }
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
/** one ask's probe
|
|
91
|
+
/** one ask's probe, run at the repo's root (a secret read is gated by the repo
|
|
92
|
+
* it runs in): when it exits 0 the ask is stamped done and archived; else
|
|
92
93
|
* the probe's last stderr line says why */
|
|
93
|
-
function probeAsk(dir: string, a: Ask, check: string): { passed: true } | { passed: false; why: string } {
|
|
94
|
+
function probeAsk(root: string, dir: string, a: Ask, check: string): { passed: true } | { passed: false; why: string } {
|
|
94
95
|
// env named: bun's default is the env the process started with, blind to a later process.env write
|
|
95
|
-
const p = Bun.spawnSync(['bash', '-lc', check], { env: process.env, stdout: 'ignore', stderr: 'pipe' })
|
|
96
|
+
const p = Bun.spawnSync(['bash', '-lc', check], { cwd: root, env: process.env, stdout: 'ignore', stderr: 'pipe' })
|
|
96
97
|
if (p.exitCode !== 0) {
|
|
97
98
|
const tail = p.stderr.toString().trim().split('\n').at(-1) ?? ''
|
|
98
99
|
return { passed: false, why: `exit ${p.exitCode}${tail !== '' ? `: ${tail}` : ''}` }
|
|
@@ -113,7 +114,7 @@ export async function checkAsk(root: string, dir: string, file: string): Promise
|
|
|
113
114
|
const a = openAsks(dir).find((x) => x.file === file)
|
|
114
115
|
if (a == null) return { check: 'failed', why: `${file} is no longer an open ask` }
|
|
115
116
|
if (a.check == null) return { check: 'none' }
|
|
116
|
-
const r = probeAsk(dir, a, a.check)
|
|
117
|
+
const r = probeAsk(root, dir, a, a.check)
|
|
117
118
|
return r.passed ? { check: 'passed' } : { check: 'failed', why: r.why }
|
|
118
119
|
})
|
|
119
120
|
return leased.ok ? leased.value : { check: 'failed', why: `the check did not run: ${leased.warn}` }
|
|
@@ -10,13 +10,16 @@
|
|
|
10
10
|
// loud FAIL, never a placeholder.
|
|
11
11
|
// Outputs are COMMITTED at the web root (public/ unless the deploy says
|
|
12
12
|
// otherwise): favicon.png (512² master), og.png (1200×630), logo.png. Brand
|
|
13
|
-
// data is per-repo and never defaults across repos.
|
|
13
|
+
// data is per-repo and never defaults across repos. The release card
|
|
14
|
+
// (renderReleaseCard) is the same brand drawn for a release post, rendered
|
|
15
|
+
// on demand, never committed here.
|
|
14
16
|
import { createCanvas, loadImage, type Image, type SKRSContext2D } from '@napi-rs/canvas'
|
|
15
17
|
import { mkdirSync } from 'fs'
|
|
16
18
|
import { dirname, join } from 'path'
|
|
17
19
|
import sharp from 'sharp'
|
|
18
20
|
import { defineKind, type CanvasGen, type ComfyGen, type Kind } from '../kit-config.ts'
|
|
19
|
-
import {
|
|
21
|
+
import { hasFamily, registerFont } from '../../trailer/fonts.ts'
|
|
22
|
+
import { alpha, HOUSE_FAMILIES, mixed, type TrailerLookInput } from '../../trailer/look.ts'
|
|
20
23
|
import type { TrailerSoundInput } from '../../trailer/sound/brand.ts'
|
|
21
24
|
|
|
22
25
|
export type Brand = {
|
|
@@ -151,3 +154,156 @@ export async function renderIdentity(brand: Brand, root: string, opts?: { markFi
|
|
|
151
154
|
if (opts?.markFile == null) throw new Error(`brand '${brand.name}' uses a comfy mark and no roll is picked — ${NO_PICK_FIX}`)
|
|
152
155
|
return renderIdentityFromMark(brand, root, await sharp(opts.markFile).png().toBuffer(), opts.webRoot)
|
|
153
156
|
}
|
|
157
|
+
|
|
158
|
+
export const RELEASE_W = 1200
|
|
159
|
+
export const RELEASE_H = 675
|
|
160
|
+
|
|
161
|
+
export type ReleaseCard = {
|
|
162
|
+
version: string
|
|
163
|
+
/** the release in one line: wrapped on two lines at most */
|
|
164
|
+
headline: string
|
|
165
|
+
/** a SAFE still beside the brand (layout B); absent, the poster (layout A) */
|
|
166
|
+
feature?: Buffer | null
|
|
167
|
+
/** where the feature's subject sits across it, 0 left to 1 right: a page shot's sits left of centre */
|
|
168
|
+
focus?: number
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** the brand's mark as an image: `markFile` when given (the rendered logo.png, or a comfy mark's pick), else a canvas
|
|
172
|
+
* mark draws itself. The file comes first because a brand.ts loads its own @napi-rs/canvas from its repo, and an
|
|
173
|
+
* image of one copy does not draw on a canvas of the other */
|
|
174
|
+
async function markImage(brand: Brand, markFile: string | undefined): Promise<Image> {
|
|
175
|
+
if (markFile != null) return loadImage(await sharp(markFile).png().toBuffer())
|
|
176
|
+
if (brand.mark.backend === 'canvas') {
|
|
177
|
+
const c = createCanvas(LOGO_SIZE, LOGO_SIZE)
|
|
178
|
+
await brand.mark.draw(c.getContext('2d'), { id: 'identity-logo', prompt: '' })
|
|
179
|
+
return loadImage(c.toBuffer('image/png'))
|
|
180
|
+
}
|
|
181
|
+
throw new Error(`brand '${brand.name}' uses a comfy mark and no roll is picked — ${NO_PICK_FIX}`)
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/** a mark whose corner is opaque is a full bleed tile: it reads as an app icon only inside its squircle */
|
|
185
|
+
function isTile(mark: Image): boolean {
|
|
186
|
+
const c = createCanvas(16, 16)
|
|
187
|
+
const ctx = c.getContext('2d')
|
|
188
|
+
ctx.drawImage(mark, 0, 0, 16, 16)
|
|
189
|
+
return ctx.getImageData(0, 0, 1, 1).data[3]! > 200
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
function drawMark(ctx: SKRSContext2D, mark: Image, x: number, y: number, s: number): void {
|
|
193
|
+
if (!isTile(mark)) return void ctx.drawImage(mark, x, y, s, s)
|
|
194
|
+
ctx.save()
|
|
195
|
+
ctx.beginPath()
|
|
196
|
+
const i = s * 0.035
|
|
197
|
+
ctx.roundRect(x + i, y + i, s - 2 * i, s - 2 * i, s * 0.2)
|
|
198
|
+
ctx.clip()
|
|
199
|
+
ctx.drawImage(mark, x, y, s, s)
|
|
200
|
+
ctx.restore()
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/** the display face as a canvas font at a size: the trailer's face (its file, else a family the machine has), else
|
|
204
|
+
* the og card's fonts in bold */
|
|
205
|
+
function displayFace(brand: Brand, root: string): (px: number) => string {
|
|
206
|
+
const f = brand.trailer?.font
|
|
207
|
+
const weight = f?.weight ?? 900
|
|
208
|
+
if (f?.file) {
|
|
209
|
+
const name = registerFont(join(root, f.file))
|
|
210
|
+
return (px) => `${weight} ${px}px "${name}"`
|
|
211
|
+
}
|
|
212
|
+
if (f?.family && hasFamily(f.family)) return (px) => `${weight} ${px}px ${/[,"']/.test(f.family!) ? f.family : `"${f.family}"`}`
|
|
213
|
+
return (px) => ogFont(px, true)
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
const sans = (px: number): string => `600 ${px}px ${OG_FAMILIES}`
|
|
217
|
+
|
|
218
|
+
/** `text` at the largest size from `px` down to `min` that fits `maxW` */
|
|
219
|
+
function fitted(ctx: SKRSContext2D, text: string, font: (px: number) => string, px: number, min: number, maxW: number): number {
|
|
220
|
+
for (; px > min; px -= 2) {
|
|
221
|
+
ctx.font = font(px)
|
|
222
|
+
if (ctx.measureText(text).width <= maxW) return px
|
|
223
|
+
}
|
|
224
|
+
ctx.font = font(min)
|
|
225
|
+
return min
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/** the headline's lines at its size: shrunk from `px` until it takes two lines at most, then cut with an ellipsis */
|
|
229
|
+
function headlineLines(ctx: SKRSContext2D, text: string, px: number, maxW: number): { px: number; lines: string[] } {
|
|
230
|
+
const wrap = (size: number): string[] => {
|
|
231
|
+
ctx.font = sans(size)
|
|
232
|
+
const lines: string[] = []
|
|
233
|
+
let line = ''
|
|
234
|
+
for (const w of text.split(/\s+/).filter((x) => x !== '')) {
|
|
235
|
+
const next = line === '' ? w : `${line} ${w}`
|
|
236
|
+
if (line !== '' && ctx.measureText(next).width > maxW) {
|
|
237
|
+
lines.push(line)
|
|
238
|
+
line = w
|
|
239
|
+
} else line = next
|
|
240
|
+
}
|
|
241
|
+
if (line !== '') lines.push(line)
|
|
242
|
+
return lines
|
|
243
|
+
}
|
|
244
|
+
const min = px - 6
|
|
245
|
+
for (let size = px; size >= min; size -= 2) {
|
|
246
|
+
const lines = wrap(size)
|
|
247
|
+
if (lines.length <= 2) return { px: size, lines }
|
|
248
|
+
}
|
|
249
|
+
const lines = wrap(min)
|
|
250
|
+
let last = lines.slice(1).join(' ')
|
|
251
|
+
while (last.includes(' ') && ctx.measureText(`${last}…`).width > maxW) last = last.slice(0, last.lastIndexOf(' '))
|
|
252
|
+
return { px: min, lines: [lines[0]!, `${last.replace(/[\s,.;:]+$/, '')}…`] }
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
function words(ctx: SKRSContext2D, text: string, x: number, y: number, font: string, color: string): void {
|
|
256
|
+
ctx.font = font
|
|
257
|
+
ctx.fillStyle = color
|
|
258
|
+
ctx.textAlign = 'left'
|
|
259
|
+
ctx.textBaseline = 'alphabetic'
|
|
260
|
+
ctx.fillText(text, x, y)
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/** the picture of a release post, 1200×675 png (wiki tools/generate-assets/index.md, The release card): with a
|
|
264
|
+
* feature, B: the brand on a panel on the left, the feature on the right fading into it; without, A: the poster */
|
|
265
|
+
export async function renderReleaseCard(brand: Brand, root: string, card: ReleaseCard, opts?: { markFile?: string }): Promise<Buffer> {
|
|
266
|
+
const { bg, accent, ink } = brand.palette
|
|
267
|
+
const mark = await markImage(brand, opts?.markFile)
|
|
268
|
+
const display = displayFace(brand, root)
|
|
269
|
+
const c = createCanvas(RELEASE_W, RELEASE_H)
|
|
270
|
+
const ctx = c.getContext('2d')
|
|
271
|
+
const name = brand.name.toUpperCase()
|
|
272
|
+
const headline = card.headline.trim()
|
|
273
|
+
if (card.feature != null) {
|
|
274
|
+
const panel = mixed(bg, accent, 0.09)
|
|
275
|
+
ctx.fillStyle = panel
|
|
276
|
+
ctx.fillRect(0, 0, RELEASE_W, RELEASE_H)
|
|
277
|
+
const pic = await loadImage(await sharp(card.feature).rotate().png().toBuffer())
|
|
278
|
+
const x0 = 470
|
|
279
|
+
const rw = RELEASE_W - x0
|
|
280
|
+
const s = Math.max(rw / pic.width, RELEASE_H / pic.height)
|
|
281
|
+
const focus = card.focus ?? 0.3
|
|
282
|
+
const sx = Math.min(Math.max(pic.width * focus - rw / s / 2, 0), pic.width - rw / s)
|
|
283
|
+
const sy = Math.max((pic.height - RELEASE_H / s) / 2, 0)
|
|
284
|
+
ctx.drawImage(pic, sx, sy, rw / s, RELEASE_H / s, x0, 0, rw, RELEASE_H)
|
|
285
|
+
const fade = ctx.createLinearGradient(x0, 0, x0 + 260, 0)
|
|
286
|
+
fade.addColorStop(0, alpha(panel, 1))
|
|
287
|
+
fade.addColorStop(1, alpha(panel, 0))
|
|
288
|
+
ctx.fillStyle = fade
|
|
289
|
+
ctx.fillRect(x0, 0, 260, RELEASE_H)
|
|
290
|
+
drawMark(ctx, mark, 70, 80, 120)
|
|
291
|
+
words(ctx, name, 70, 270, sans(fitted(ctx, name, sans, 30, 18, 520)), accent)
|
|
292
|
+
words(ctx, card.version, 62, 420, display(fitted(ctx, card.version, display, 130, 60, 540)), ink)
|
|
293
|
+
const h = headlineLines(ctx, headline, 28, 520)
|
|
294
|
+
h.lines.forEach((l, i) => words(ctx, l, 70, 490 + i * Math.round(h.px * 1.43), sans(h.px), ink))
|
|
295
|
+
} else {
|
|
296
|
+
const g = ctx.createRadialGradient(RELEASE_W * 0.3, RELEASE_H * 0.4, 50, RELEASE_W * 0.5, RELEASE_H * 0.5, RELEASE_W * 0.8)
|
|
297
|
+
g.addColorStop(0, mixed(bg, accent, 0.15))
|
|
298
|
+
g.addColorStop(1, bg)
|
|
299
|
+
ctx.fillStyle = g
|
|
300
|
+
ctx.fillRect(0, 0, RELEASE_W, RELEASE_H)
|
|
301
|
+
drawMark(ctx, mark, 90, 157, 360)
|
|
302
|
+
const maxW = RELEASE_W - 520 - 48
|
|
303
|
+
words(ctx, name, 520, 250, sans(fitted(ctx, name, sans, 34, 18, maxW)), accent)
|
|
304
|
+
words(ctx, card.version, 512, 400, display(fitted(ctx, card.version, display, 150, 60, maxW)), ink)
|
|
305
|
+
const h = headlineLines(ctx, headline, 30, maxW)
|
|
306
|
+
h.lines.forEach((l, i) => words(ctx, l, 520, 470 + i * Math.round(h.px * 1.43), sans(h.px), ink))
|
|
307
|
+
}
|
|
308
|
+
return sharp(c.toBuffer('image/png')).png({ compressionLevel: 9 }).toBuffer()
|
|
309
|
+
}
|
|
@@ -32,11 +32,12 @@ const CONTRIB = '# repo-contributed lines (repo.config.ts gitignore:)'
|
|
|
32
32
|
|
|
33
33
|
const DRAFTS_BACK = '!.comfy-ts/drafts/'
|
|
34
34
|
const SOCIAL_BACK = `!${LAYOUT.social}/`
|
|
35
|
+
const VOICE_BACK = `!${LAYOUT.voice}/`
|
|
35
36
|
|
|
36
37
|
/** re-includes a private repo carries and a declared public one drops: a
|
|
37
38
|
* draft names private loras, a plan or a board quotes the owner, a social
|
|
38
|
-
* draft carries his angles and notes */
|
|
39
|
-
const PRIVATE_ONLY: ReadonlySet<string> = new Set([DRAFTS_BACK, `!${LAYOUT.plans}/`, SOCIAL_BACK])
|
|
39
|
+
* draft carries his angles and notes, a take is his own voice */
|
|
40
|
+
const PRIVATE_ONLY: ReadonlySet<string> = new Set([DRAFTS_BACK, `!${LAYOUT.plans}/`, SOCIAL_BACK, VOICE_BACK])
|
|
40
41
|
|
|
41
42
|
export const POLICY_LINES = [
|
|
42
43
|
// everything shipkit keeps lives under .shipkit/ (core/layout.ts). Local
|
|
@@ -50,6 +51,8 @@ export const POLICY_LINES = [
|
|
|
50
51
|
// desks date posts from. A rendered trailer is made again by its command
|
|
51
52
|
SOCIAL_BACK,
|
|
52
53
|
`${LAYOUT.social}/drafts/**/*-trailer.mp4`,
|
|
54
|
+
// his takes of a trailer's lines: a recording is never made again
|
|
55
|
+
VOICE_BACK,
|
|
53
56
|
`${LAYOUT.assets}/out/`,
|
|
54
57
|
// already covered by the line above, and spelled out anyway so this check
|
|
55
58
|
// asks git about it: a negation below the block that exposed the keyword
|
|
@@ -167,7 +170,7 @@ async function trackedGenerated(d: Disk): Promise<string[]> {
|
|
|
167
170
|
async function trackedPrivate(d: Disk, config: RepoConfig): Promise<Map<string, number>> {
|
|
168
171
|
const out = new Map<string, number>()
|
|
169
172
|
if (!declaredPublic(config) || !d.exists('.git')) return out
|
|
170
|
-
const dirs = [LAYOUT.plans, LAYOUT.social]
|
|
173
|
+
const dirs = [LAYOUT.plans, LAYOUT.social, LAYOUT.voice]
|
|
171
174
|
const r = await d.exec([gitBin(), 'ls-files', '-z', '--', ...dirs], { cwd: d.root })
|
|
172
175
|
if (r.code !== 0) return out
|
|
173
176
|
for (const f of r.out.split('\0')) {
|
package/src/cli/cmd_Bump.ts
CHANGED
|
@@ -10,7 +10,7 @@ export class BumpCommand extends Command {
|
|
|
10
10
|
static override usage = Command.Usage({
|
|
11
11
|
category: 'Gate',
|
|
12
12
|
description: 'ship a version: merge, changelog, bump, gate, tag, push, release',
|
|
13
|
-
details: 'ship a version in one word: bumps a unit (default the repo root), run from a feature branch it merges into the release branch first, then promotes the CHANGELOG Unreleased section, bumps package.json, runs the gate and every prepublish script, commits, tags, pushes, and cuts the release. Any failure before the version commit rolls the merge back and returns you to your branch.',
|
|
13
|
+
details: 'ship a version in one word: bumps a unit (default the repo root), run from a feature branch it merges into the release branch first, then promotes the CHANGELOG Unreleased section, bumps package.json, runs the gate on HEAD in a clean checkout (never the shared working tree) and every prepublish script, commits, tags, pushes, and cuts the release. Any failure before the version commit rolls the merge back and returns you to your branch.',
|
|
14
14
|
examples: [
|
|
15
15
|
['a bugfix release of the repo itself', 'sk bump patch'],
|
|
16
16
|
['a feature release', 'sk bump minor'],
|
|
@@ -30,10 +30,10 @@ export class BumpCommand extends Command {
|
|
|
30
30
|
// that is not one of them is a unit id, never an ambiguity
|
|
31
31
|
kind = Option.String({ required: false })
|
|
32
32
|
unit = Option.String({ required: false })
|
|
33
|
-
dryRun = Option.Boolean('--dry-run', false, { description: 'rehearse: run every preflight, the gate and the prepublish scripts, then stop before any version is written. the
|
|
33
|
+
dryRun = Option.Boolean('--dry-run', false, { description: 'rehearse: run every preflight, the gate and the prepublish scripts, then stop before any version is written. the merge is probed rather than performed, so the release branch never moves, and the gate judges the UNMERGED HEAD' })
|
|
34
34
|
noRelease = Option.Boolean('--no-release', false, { description: 'stop after the version commit, do not tag or publish' })
|
|
35
35
|
noMerge = Option.Boolean('--no-merge', false, { description: 'refuse on a feature branch instead of merging it into the release branch' })
|
|
36
|
-
allowDirty = Option.Boolean('--allow-dirty', false, { description: "proceed with uncommitted changes
|
|
36
|
+
allowDirty = Option.Boolean('--allow-dirty', false, { description: "proceed with uncommitted changes in what this release packs or runs from the working tree (the whole repo for an npm root or a root with a post-release step), which then ship UNGATED. Dirt nobody packs is already ignored: the gate judges HEAD in a clean checkout, so another session's unsaved work neither refuses nor reddens a release. The files the version commit writes (every package.json, the changelog, .shipkit/releases/) still refuse, and no flag lifts that: the commit takes them whole, so a dirty line would land in the tag ungated. Neither does it lift a sub-unit's own directory, nor any modified tracked file on a bump from a feature branch, which could block the rollback's way back to the branch" })
|
|
37
37
|
all = Option.Boolean('--all', false, { description: 'bump every unit whose changelog carries Unreleased notes, in declared order, root last. Given a kind it applies to ALL of them. Given none, each unit takes the kind from its own "## Unreleased (minor)" heading, and a unit whose heading is silent refuses' })
|
|
38
38
|
|
|
39
39
|
async execute(): Promise<number> {
|
|
@@ -8,8 +8,8 @@ import { homedir } from 'os'
|
|
|
8
8
|
import { Command, Option } from 'clipanion'
|
|
9
9
|
import { daemonPort, daemonUrl, homePort, pmPort, pmUrl } from '../home/home-paths.ts'
|
|
10
10
|
import { houseRootOf } from '../home/home-start.ts'
|
|
11
|
-
import {
|
|
12
|
-
import type
|
|
11
|
+
import type { PmAnswer } from '../home/pm.ts'
|
|
12
|
+
import { askPm, pmSwitchDeps, switchProcess, type SwitchAct } from '../home/pm-switch.ts'
|
|
13
13
|
import { coreGroup, declaredRow, groupRows, processGroups, stateWords, type ProcessGroup } from '../home/process-rows.ts'
|
|
14
14
|
import type { PmConfig } from '../home/pm-config.ts'
|
|
15
15
|
import { readPmConfig } from '../home/run-pm.ts'
|
|
@@ -60,18 +60,6 @@ export async function askDaemon(url = daemonUrl()): Promise<{ version: string; h
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
/** pm's status answer, or null when it does not answer */
|
|
64
|
-
export async function askPm(url = pmUrl()): Promise<PmAnswer | null> {
|
|
65
|
-
try {
|
|
66
|
-
const r = await fetch(`${url}/api/pm/status.json`, { signal: AbortSignal.timeout(1_500) })
|
|
67
|
-
if (!r.ok) return null
|
|
68
|
-
const j = (await r.json()) as PmAnswer
|
|
69
|
-
return j.pm === 'shipkit-pm' ? j : null
|
|
70
|
-
} catch {
|
|
71
|
-
return null
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
63
|
/** the project list's order and the declared units, read from disk the way
|
|
76
64
|
* pm reads them: what the table falls back on while pm does not answer */
|
|
77
65
|
export async function localProcessDeps(cwd: string): Promise<Pick<GlobalProcessesDeps, 'declared' | 'order'>> {
|
|
@@ -157,99 +145,6 @@ export class GlobalProcessesCommand extends Command {
|
|
|
157
145
|
}
|
|
158
146
|
}
|
|
159
147
|
|
|
160
|
-
export type SwitchAct = 'start' | 'stop' | 'restart'
|
|
161
|
-
|
|
162
|
-
/** what a switch follows, the same on a global process and on one of pm's own roles (the daemon, the web) */
|
|
163
|
-
export type SwitchView = Pick<ResourceView, 'status' | 'pid' | 'want' | 'note' | 'tail'>
|
|
164
|
-
|
|
165
|
-
export type SwitchDeps = {
|
|
166
|
-
/** pm's answer to the switch: null when it took it, else why not */
|
|
167
|
-
post: (id: string, act: SwitchAct | 'open' | 'chrome' | 'app') => Promise<string | null>
|
|
168
|
-
/** the process as pm sees it now, null when pm does not answer */
|
|
169
|
-
view: (id: string) => Promise<SwitchView | null>
|
|
170
|
-
sleep: (ms: number) => Promise<void>
|
|
171
|
-
now: () => number
|
|
172
|
-
log: (line: string) => void
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/** the longest a switch is followed: a bring-up polls its health for minutes */
|
|
176
|
-
export const SWITCH_WAIT_MS = 10 * 60_000
|
|
177
|
-
const SWITCH_POLL_MS = 1_000
|
|
178
|
-
/** how long the state the switch left counts as pm not having acted yet */
|
|
179
|
-
export const SWITCH_GRACE_MS = 30_000
|
|
180
|
-
|
|
181
|
-
/** flip a global process, or one of pm's own roles, through pm, then follow
|
|
182
|
-
* pm's state until its probe settles it: 0 once it is up (or down for stop),
|
|
183
|
-
* 1 otherwise. A restart is up only on a new pid: the old one still answers
|
|
184
|
-
* until pm stops it (pm stops the web after its answer is out). The
|
|
185
|
-
* launcher's exit code proves nothing, pm's probe does */
|
|
186
|
-
export async function switchProcess(id: string, act: SwitchAct, d: SwitchDeps, waitMs = SWITCH_WAIT_MS): Promise<number> {
|
|
187
|
-
const before = act === 'restart' ? ((await d.view(id))?.pid ?? null) : null
|
|
188
|
-
const refused = await d.post(id, act)
|
|
189
|
-
if (refused != null) {
|
|
190
|
-
d.log(`FAIL ${act} ${id}: ${refused}`)
|
|
191
|
-
return 1
|
|
192
|
-
}
|
|
193
|
-
const want = act === 'stop' ? 'down' : 'up'
|
|
194
|
-
const start = d.now()
|
|
195
|
-
const end = start + waitMs
|
|
196
|
-
let said = ''
|
|
197
|
-
for (;;) {
|
|
198
|
-
const v = await d.view(id)
|
|
199
|
-
if (v == null) {
|
|
200
|
-
d.log(`FAIL pm stopped answering while ${id} was switched ${want}: shipkit gp`)
|
|
201
|
-
return 1
|
|
202
|
-
}
|
|
203
|
-
if (v.status !== said) {
|
|
204
|
-
said = v.status
|
|
205
|
-
d.log(`${id}: ${v.status}`)
|
|
206
|
-
}
|
|
207
|
-
// the state it is leaving, read just after the switch, is pm not there yet
|
|
208
|
-
const graced = d.now() - start < SWITCH_GRACE_MS
|
|
209
|
-
const leaving = v.status === (want === 'up' ? 'down' : 'up') && graced
|
|
210
|
-
const old = before != null && v.pid === before
|
|
211
|
-
const moving = v.status === 'starting' || v.status === 'stopping' || v.want !== want || leaving || (old && graced)
|
|
212
|
-
if (!moving) {
|
|
213
|
-
if (old && v.status === 'up') {
|
|
214
|
-
d.log(`FAIL ${id} still runs pid ${before} ${Math.round(SWITCH_GRACE_MS / 1000)}s after the restart: pm did not restart it`)
|
|
215
|
-
return 1
|
|
216
|
-
}
|
|
217
|
-
if (v.status === want) return 0
|
|
218
|
-
d.log(`FAIL ${id} is ${v.status}, not ${want}${v.note == null ? '' : `: ${v.note}`}`)
|
|
219
|
-
for (const l of v.tail.slice(-10)) d.log(` log: ${l}`)
|
|
220
|
-
return 1
|
|
221
|
-
}
|
|
222
|
-
if (d.now() >= end) {
|
|
223
|
-
d.log(`FAIL ${id} still ${v.status} after ${Math.round(waitMs / 1000)}s: shipkit gp shows where it stands`)
|
|
224
|
-
return 1
|
|
225
|
-
}
|
|
226
|
-
await d.sleep(SWITCH_POLL_MS)
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
const isRole = (id: string): id is Role => (ROLES as string[]).includes(id)
|
|
231
|
-
|
|
232
|
-
/** the switch against the running pm: pm's own roles (the daemon, the web) through its child api, every other id a
|
|
233
|
-
* global process */
|
|
234
|
-
export const pmSwitchDeps = (log: (line: string) => void, url = pmUrl()): SwitchDeps => ({
|
|
235
|
-
post: async (id, act) => {
|
|
236
|
-
try {
|
|
237
|
-
const r = await fetch(`${url}/api/pm/${isRole(id) ? 'child' : 'resource'}`, { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ id, act }), signal: AbortSignal.timeout(5_000) })
|
|
238
|
-
return r.ok ? null : await r.text()
|
|
239
|
-
} catch (e) {
|
|
240
|
-
return `pm does not answer on ${url} (${(e as Error).message}): shipkit pm install`
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
view: async (id) => {
|
|
244
|
-
const a = await askPm(url)
|
|
245
|
-
if (a == null) return null
|
|
246
|
-
return (isRole(id) ? a.children.find((c) => c.id === id) : a.resources.find((r) => r.id === id)) ?? null
|
|
247
|
-
},
|
|
248
|
-
sleep: (ms) => Bun.sleep(ms),
|
|
249
|
-
now: () => Date.now(),
|
|
250
|
-
log,
|
|
251
|
-
})
|
|
252
|
-
|
|
253
148
|
abstract class SwitchCommand extends Command {
|
|
254
149
|
abstract readonly act: SwitchAct
|
|
255
150
|
id = Option.String({ required: true, name: 'id' })
|
package/src/cli/cmd_Home.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { markAutostart } from '../home/autostart.ts'
|
|
|
8
8
|
import { installHome, uninstallHome } from '../home/home-launchd.ts'
|
|
9
9
|
import { homeInstalled, houseCli, houseRoot, houseRootOf, openWindow, startHome } from '../home/home-start.ts'
|
|
10
10
|
import { ROLES } from '../home/pm.ts'
|
|
11
|
-
import { pmSwitchDeps, switchProcess } from '
|
|
11
|
+
import { pmSwitchDeps, switchProcess } from '../home/pm-switch.ts'
|
|
12
12
|
import { homeUp, homeUrl, hubBase } from '../home/home-paths.ts'
|
|
13
13
|
import { homeRepo, houseIndex } from '../serve/project-gutter.ts'
|
|
14
14
|
import { homedir } from 'os'
|
package/src/cli/cmd_Overview.ts
CHANGED
|
@@ -9,7 +9,8 @@ import { daemonUrl } from '../home/home-paths.ts'
|
|
|
9
9
|
import type { WidgetsAnswer } from '../home/home-routes.ts'
|
|
10
10
|
import type { ChildView, PmAnswer } from '../home/pm.ts'
|
|
11
11
|
import { splitWidgetHead, widgetText } from '../home/widget-text.ts'
|
|
12
|
-
import {
|
|
12
|
+
import { askPm } from '../home/pm-switch.ts'
|
|
13
|
+
import { askDaemon, globalProcessesAnswer, localProcessDeps, renderGlobalProcesses, type GlobalProcessesAnswer, type GlobalProcessesDeps } from './cmd_GlobalProcesses.ts'
|
|
13
14
|
|
|
14
15
|
export type OverviewAnswer = {
|
|
15
16
|
now: number
|