website-xp-phone 2.3.0 → 2.4.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.
Files changed (77) hide show
  1. package/build/blogDirsPlugin.ts +100 -0
  2. package/package.json +9 -6
  3. package/public/blog/archive/eighth-post-lost-in-the-sauce.json +36 -0
  4. package/public/blog/archive/noise/eleventh-post-discussion-java-gist.md +5 -0
  5. package/public/blog/archive/noise/fifteenth-post-very-rare-windows-funny.md +8 -0
  6. package/public/blog/archive/noise/fourth-post-meta-blog.md +3 -0
  7. package/public/blog/archive/noise/sixteenth-post-meta-fantasy-blog.md +4 -0
  8. package/public/blog/archive/noise/tenth-post-meta-funny-redacted-and-timetravelled.md +3 -0
  9. package/public/blog/archive/noise/twelfth-post-mixing-phase-technique-audio-music.md +48 -0
  10. package/public/blog/archive/noise/welcome-back-ramble-meta.md +6 -0
  11. package/public/blog/archive/noise/welcome-to-my-blog-meta-blog-welcome-to-my-website.md +7 -0
  12. package/public/blog/archive/seventh-post-lie-theory-na2000.json +22 -0
  13. package/public/blog/archive/sophus-lie.json +36 -0
  14. package/public/blog/hlwm_and_herbstutil.md +11 -0
  15. package/public/blog/writing/hot-action-under-a-cold-moon.json +9 -0
  16. package/public/checksums.txt +90 -66
  17. package/public/documents/drift-report.json +13 -1
  18. package/scripts/refresh-soundcloud.mjs +54 -8
  19. package/src/content/blog.json +16 -363
  20. package/src/content/blogDirs.ts +196 -0
  21. package/src/content/configs.json +1 -1
  22. package/src/content/contacts.json +2 -2
  23. package/src/content/includes/make-recipes.md +18 -0
  24. package/src/content/index.ts +156 -57
  25. package/src/content/music-ext.json +1 -1
  26. package/src/content/projects/doftiles.json +88 -4
  27. package/src/content/projects/herbctl.json +58 -0
  28. package/src/content/projects/herbstutil.json +50 -20
  29. package/src/content/projects/on-deploy.json +57 -0
  30. package/src/content/projects/polyframes.json +83 -0
  31. package/src/content/schema.ts +7 -4
  32. package/src/content/sections.json +11 -10
  33. package/src/content/soundcloud.json +61 -13
  34. package/src/lib/clippy.ts +29 -8
  35. package/src/lib/history.ts +152 -0
  36. package/src/lib/markdown.tsx +11 -1
  37. package/src/lib/scrollTo.ts +45 -0
  38. package/src/lib/signals.tsx +271 -0
  39. package/src/main.tsx +20 -4
  40. package/src/pages/BlogDirPage.tsx +36 -0
  41. package/src/pages/BlogPostPage.tsx +76 -3
  42. package/src/pages/ProjectPage.tsx +9 -3
  43. package/src/pages/WowPage.tsx +8 -3
  44. package/src/pages/index.ts +2 -0
  45. package/src/shell/App.tsx +14 -8
  46. package/src/shell/Clippy.tsx +13 -3
  47. package/src/shell/MenuBar.tsx +7 -4
  48. package/src/shell/resolveRoute.ts +41 -2
  49. package/src/shell/routerSignals.ts +34 -0
  50. package/src/styles/extras.css +20 -0
  51. package/src/styles/layout.css +2 -2
  52. package/src/styles/menu.css +1 -1
  53. package/src/styles/window.css +9 -2
  54. package/src/themes/pageSlide/index.ts +120 -42
  55. package/src/themes/pageSlide/pageSlide.css +20 -9
  56. package/src/virtual.d.ts +14 -0
  57. package/src/window/MaximizedWindow.tsx +97 -64
  58. package/src/window/OkButton.tsx +42 -25
  59. package/src/window/PageWindows.tsx +7 -0
  60. package/src/window/TitleBar.tsx +3 -1
  61. package/src/window/Window.tsx +132 -87
  62. package/src/window/closeSounds.ts +27 -0
  63. package/src/window/model.ts +11 -0
  64. package/src/window/state.tsx +290 -50
  65. package/src/window/themes.ts +23 -2
  66. package/test/content.test.js +15 -10
  67. package/test/deploy-pipeline.test.js +11 -11
  68. package/test/markdown-tables.test.js +96 -0
  69. package/test/soundcloud-refresh.test.js +68 -0
  70. package/tsconfig.node.tsbuildinfo +1 -1
  71. package/tsconfig.tsbuildinfo +1 -1
  72. package/vite.config.ts +7 -1
  73. package/public/blog/4th.md +0 -28
  74. package/public/blog/wsl.1.md +0 -40
  75. package/src/window/hidden.ts +0 -22
  76. /package/public/blog/{ → archive/noise/}/321/200/321/203/320/275/320/270/321/201/321/207-/320/263/320/273/320/276/321/201/321/201/320/260/321/200/320/270/320/271.md" +0 -0
  77. /package/src/content/{characters.json → includes/characters.json} +0 -0
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "slug": "herbstutil",
3
3
  "title": "herbstutil",
4
- "description": "A stdin filter that turns the verbose output of herbstclient attr into clean JSON - for scripting the herbstluftwm tiling window manager.",
4
+ "description": "The herbstluftwm compatibility layer: herbstclient attr output as clean typed JSON, shell completion mirroring herbstclient's own, and the parse/attr primitives every sibling tool builds on.",
5
5
  "github": "https://github.com/akinevz2/herbstutil",
6
6
  "content": {
7
7
  "heading": "herbstutil - JSON bridge to herbstluftwm",
8
8
  "content": [
9
- "herbstutil is a small command-line filter that post-processes the output of `herbstclient attr` into clean JSON - so the state of the herbstluftwm window manager can be consumed wherever JSON is spoken.",
9
+ "herbstutil is a small command-line tool that turns the output of `herbstclient attr` into clean, typed JSON - so the state of the herbstluftwm window manager can be consumed wherever JSON is spoken. It can run herbstclient itself (`herbstutil attr ...`) or parse piped output like a unix filter.",
10
10
  "[https://github.com/akinevz2/herbstutil](https://github.com/akinevz2/herbstutil)",
11
11
  {
12
12
  "heading": "herbstluftwm in a nutshell",
13
- "anchor": "herbstluftwm",
14
13
  "theme": "open",
15
14
  "content": [
16
15
  "herbstluftwm is a manual tiling window manager for Linux. Its core idea: the whole desktop is one global object tree - monitors, tags, clients (windows), settings - queried and modified over IPC with the companion tool herbstclient.",
@@ -21,39 +20,51 @@
21
20
  },
22
21
  {
23
22
  "heading": "What herbstutil does",
24
- "anchor": "about",
25
- "status": "early release",
23
+ "status": "v0.3.x - the compatibility layer",
26
24
  "theme": "open",
27
25
  "content": [
28
- "herbstutil reads `herbstclient attr` output on stdin and rebuilds it as JSON, preserving the node's shape:",
29
- "value - the node's description; children - the names of the child nodes; attributes - every attribute as a name-value pair.",
26
+ "herbstutil rebuilds `herbstclient attr` output as JSON, preserving the node's shape: value - the node's description; children - the names of the child nodes; attributes - every attribute as a name-value pair.",
30
27
  "Where herbstclient speaks humans, herbstutil speaks machine.",
28
+ "It does not stop at unquoting: herbstclient annotates every attribute with a type hint in the first column of its listing, and herbstutil uses that hint to emit properly typed JSON.",
29
+ {
30
+ "heading": "Value typing",
31
+ "theme": "open",
32
+ "content": [
33
+ "s (string) - JSON string, outer quotes stripped",
34
+ "b (bool) - JSON boolean",
35
+ "i, u (int, uint) - JSON number",
36
+ "R (rectangle) - `WIDTHxHEIGHT+X+Y` becomes an object { x, y, width, height }",
37
+ "p (point) - `XxY` becomes an object { x, y }",
38
+ "c, r, n, f (color, regex, named value, font) - string",
39
+ "Leaf values (a single attribute) print no type hint, so a heuristic decides there: true/false become booleans, integers and decimals become numbers, everything else stays a string."
40
+ ]
41
+ },
31
42
  {
32
43
  "heading": "Usage",
33
44
  "theme": "open",
34
45
  "content": [
35
- "herbstutil is a stdin filter built with Bun and bunli, packaged as a single executable:",
36
- "```sh\n$ herbstclient attr clients. | herbstutil\n$ herbstclient attr clients.focus. | herbstutil --space 2\n```",
46
+ "Two ways to the same JSON: let herbstutil run herbstclient for you, or pipe herbstclient through the parse filter (the default command). Built with Bun and bunli, packaged as a single executable:",
47
+ "```sh\n$ herbstutil attr clients.focus. # runs herbstclient attr and parses it\n$ herbstclient attr clients. | herbstutil parse\n$ herbstclient attr clients. | herbstutil # parse is the default command\n```",
37
48
  "s, --space <n> - pretty-print with `n` spaces of indentation (default 4)",
38
- "It refuses to run attached to a terminal: herbstutil always reads from stdin."
49
+ "e, --escape - skip all type conversion and keep every value exactly as herbstclient printed it: strings keep their literal quotes, escaped inside the JSON string",
50
+ "`parse` refuses to run attached to a terminal: as a filter it always reads from stdin."
39
51
  ]
40
52
  }
41
53
  ]
42
54
  },
43
55
  {
44
56
  "heading": "Examples",
45
- "anchor": "examples",
46
57
  "theme": "open",
47
58
  "content": [
48
- "The same node, before and after `| herbstutil`.",
59
+ "The same nodes, before and after herbstutil.",
49
60
  {
50
61
  "heading": "Root node: herbstclient attr clients.",
51
62
  "theme": "open",
52
63
  "content": [
53
64
  "Raw:",
54
- "```text\n$ herbstclient attr clients.\nThe managed windows. For every (managed) window id there is an entry here.\n\n5 children:\n 0x400003.\n 0x700003.\n 0xc00003.\n 0xe80003.\n focus.\n0 attributes.\n .---- type\n | .-- writable\n | | .-- hookable\n V V V\n```",
55
- "Piped through herbstutil:",
56
- "```json\n{\n \"value\": \"The managed windows. For every (managed) window id there is an entry here.\",\n \"children\": [\n \"0x400003.\",\n \"0x700003.\",\n \"0xc00003.\",\n \"0xe80003.\",\n \"focus.\"\n ],\n \"attributes\": {}\n}\n```"
65
+ "```text\n$ herbstclient attr clients.\nThe managed windows. For every (managed) window id there is an entry here.\n\n4 children:\n 0x280003.\n 0x680004.\n 0x900003.\n focus.\n0 attributes.\n .---- type\n | .-- writable\n | | .-- hookable\n V V V\n```",
66
+ "Through herbstutil:",
67
+ "```json\n{\n \"value\": \"The managed windows. For every (managed) window id there is an entry here.\",\n \"children\": [\n \"0x280003.\",\n \"0x680004.\",\n \"0x900003.\",\n \"focus.\"\n ],\n \"attributes\": {}\n}\n```"
57
68
  ]
58
69
  },
59
70
  {
@@ -61,10 +72,10 @@
61
72
  "theme": "open",
62
73
  "content": [
63
74
  "Raw (excerpt):",
64
- "```text\n$ herbstclient attr clients.focus.\na managed window\n\n1 child:\n parent_frame.\n24 attributes:\n s - - class = \"Alacritty\"\n b w h decorated = true\n b w h floating = false\n i - h pid = 61763\n s - h tag = \"work\"\n s - h title = \"OC | Customizing opencode and dotfiles\"\n b - h visible = true\n```",
65
- "Piped through herbstutil (excerpt - all 24 attributes arrive in the JSON):",
66
- "```json\n{\n \"value\": \"a managed window\",\n \"children\": [\n \"parent_frame.\"\n ],\n \"attributes\": {\n \"class\": \"\\\"Alacritty\\\"\",\n \"decorated\": \"true\",\n \"floating\": \"false\",\n \"pid\": \"61763\",\n \"tag\": \"\\\"work\\\"\",\n \"title\": \"\\\"OC | Customizing opencode and dotfiles\\\"\",\n \"urgent\": \"false\",\n \"visible\": \"true\",\n \"winid\": \"\\\"0x700003\\\"\"\n }\n}\n```",
67
- "Note how attribute values stay as raw strings - a reminder that everything coming from `attr` is text until you parse it downstream."
75
+ "```text\n$ herbstclient attr clients.focus.\na managed window\n\n1 child:\n parent_frame.\n24 attributes:\n .---- type\n | .-- writable\n | | .-- hookable\n V V V\n s - - class = \"Alacritty\"\n R - h content_geometry = 1255x662+13+34\n s - - class = \"Alacritty\"\n R - h content_geometry = 1255x662+13+34\n b w h decorated = true\n i - h pid = 403112\n s - - tag = \"work\"\n s - h title = \"OC | herbstutil tag 0.1.1b discrepancy\"\n b - h visible = true\n s - h winid = \"0x280003\"\n```",
76
+ "Through herbstutil (excerpt - all 24 attributes arrive in the JSON):",
77
+ "```json\n{\n \"value\": \"a managed window\",\n \"children\": [\n \"parent_frame.\"\n ],\n \"attributes\": {\n \"class\": \"Alacritty\",\n \"content_geometry\": {\n \"x\": 13,\n \"y\": 34,\n \"width\": 1255,\n \"height\": 662\n },\n \"decorated\": true,\n \"pid\": 403112,\n \"tag\": \"work\",\n \"title\": \"OC | herbstutil tag 0.1.1b discrepancy\",\n \"visible\": true,\n \"winid\": \"0x280003\"\n }\n}\n```",
78
+ "Attribute values arrive typed: strings unquoted, booleans and numbers real, rectangles as objects - herbstclient's type hint drives the conversion. Pass `--escape` to keep the raw text instead."
68
79
  ]
69
80
  },
70
81
  {
@@ -73,12 +84,31 @@
73
84
  "content": [
74
85
  "Raw:",
75
86
  "```text\n$ herbstclient attr clients.focus.tag\nwork\n```",
76
- "Piped through herbstutil:",
87
+ "Through herbstutil:",
77
88
  "```json\n{\n \"value\": \"work\",\n \"children\": [],\n \"attributes\": {}\n}\n```"
78
89
  ]
79
90
  }
80
91
  ]
81
92
  },
93
+ {
94
+ "heading": "The pure layer (the v0.3 split)",
95
+ "theme": "open",
96
+ "content": [
97
+ "herbstutil stayed deliberately small: parse/attr primitives only. The keybind state machines that briefly lived here (the mod-s/w/d/e/a/q/f/x compositions and the float registers) moved out to herbctl - its own project, one floor down on this page.",
98
+ "Everything downstream (herbctl, polyframes) imports parseAttr directly, bundled at build time; the CLI verbs stay for scripts and humans."
99
+ ]
100
+ },
101
+ {
102
+ "heading": "Shell completion, mirroring herbstclient",
103
+ "theme": "open",
104
+ "content": [
105
+ "herbstclient's completion model: the binary does the thinking (complete_shell <pos> <words...>), the shell scripts just delegate. herbstutil mirrors it - the complete-shell verb, plus bash/zsh scripts that are byte-structure twins of hlwm's own.",
106
+ "The attr verb's positional completes LIVE hlwm object paths: the request is delegated to herbstclient -q complete_shell itself, so clients.0x…, tags.by-name. and every attribute name arrive straight from the running WM.",
107
+ "Install the completion with the package scripts:",
108
+ "```sh\n$ npm run completion:install # bash + zsh, user-level\n$ herbstutil attr clients.<TAB> # the live tree, in your shell\n```",
109
+ "Published on npm: `npm i -g herbstutil` gives the command (it runs through bun) - or install from source with bun run build."
110
+ ]
111
+ },
82
112
  {
83
113
  "heading": "Links",
84
114
  "theme": "open",
@@ -0,0 +1,57 @@
1
+ {
2
+ "slug": "on-deploy",
3
+ "title": "on-deploy",
4
+ "description": "The doftiles deployment orchestrator: verifies the WM-stack binaries, installs the missing ones through per-platform deploy scripts, and provisions the session stack from declarative profiles.",
5
+ "github": "https://github.com/akinevz2/on-deploy",
6
+ "content": {
7
+ "heading": "on-deploy - the deployment orchestrator",
8
+ "content": [
9
+ "on-deploy turns the dotfiles repo into a one-command deployment. It runs inside the doftiles checkout and reads two manifests: wm.requires (the required binaries; the last line names the platform - ubuntu, arch, ... - selecting the <target>.deploy resolver) and deploy.profile (how the graphical session starts).",
10
+ "[https://github.com/akinevz2/on-deploy](https://github.com/akinevz2/on-deploy)",
11
+ {
12
+ "heading": "The verbs",
13
+ "theme": "open",
14
+ "content": [
15
+ "check - report the requirement state; exit 1 when anything is missing (also --json).",
16
+ "deploy - install every missing binary: resolve the package, show the command, confirm (Enter = yes), run it, then re-verify - a binary still missing after its command fails the run. --yes for non-interactive runs; --dry-run to preview.",
17
+ "provision - platform services per profile: the X server set, the ~/.xinitrc session line, a greetd + tuigreet greeter, the nested stack packages.",
18
+ "snapshot - collect a machine's pre-existing config into doftiles' defaults/ (a stow-shaped package) BEFORE the first deploy overwrites it - the machine's prior state, versioned in git, restorable with one make target.",
19
+ "configure - edit the deploy target and the required-package list from an interactive menu (or --target/--add/--remove flags)."
20
+ ]
21
+ },
22
+ {
23
+ "heading": "The profiles",
24
+ "theme": "open",
25
+ "content": [
26
+ "Four session models, co-installable where it makes sense:",
27
+ "wsl - hlwm as a systemd user unit waiting for the Windows-side X server (VcXsrv); provision even checks the Windows partition for VcXsrv and offers a silent install from the SourceForge feed.",
28
+ "nested - hlwm inside an Xvfb framebuffer, shared over VNC and browser noVNC - the temporary profile, additive to a primary one.",
29
+ "xinit - startx runs ~/.xinitrc; no display manager.",
30
+ "greetd - greetd + tuigreet own the console.",
31
+ "A profile declares units (systemd user units, enabled additively) and env overrides (written to ~/.config/doftiles/env, read by the units via EnvironmentFile)."
32
+ ]
33
+ },
34
+ {
35
+ "heading": "Built to not hang, not lie",
36
+ "theme": "open",
37
+ "content": [
38
+ "Non-interactive runs abort cleanly demanding --yes instead of blocking on prompts; every install is re-verified; a failed install fails the run. The prompts ride a raw line reader (bun's readline wedges), and the menu works scripted or interactive."
39
+ ]
40
+ },
41
+ {
42
+ "heading": "Links",
43
+ "theme": "open",
44
+ "content": [
45
+ {
46
+ "heading": "GitHub repository",
47
+ "link": "https://github.com/akinevz2/on-deploy"
48
+ },
49
+ {
50
+ "heading": "doftiles (what it deploys)",
51
+ "link": "https://github.com/akinevz2/doftiles"
52
+ }
53
+ ]
54
+ }
55
+ ]
56
+ }
57
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "slug": "polyframes",
3
+ "title": "polyframes",
4
+ "description": "Polybar window-list renderer for herbstluftwm: a bunli/Bun CLI compiled to a standalone native binary - rofi menus, typed one-shot window rules, and the WM read as typed JSON via herbstutil; the float-register imperatives come from herbctl.",
5
+ "github": "https://github.com/akinevz2/polyframes",
6
+ "content": {
7
+ "heading": "polyframes - the polybar window-list renderer, as a native binary",
8
+ "content": [
9
+ "polyframes renders herbstluftwm's window state as the polybar center module: one label per (frame, window-class) group, decorated by state (focused gold underline, floating, minimized dimmed), with click/scroll actions that re-exec the binary itself. Built with Bun and bunli, compiled to a standalone executable - so it runs wherever the bar runs, no node, no nvm PATH, no shim.",
10
+ "[https://github.com/akinevz2/polyframes](https://github.com/akinevz2/polyframes)",
11
+ {
12
+ "heading": "The bar daemon",
13
+ "theme": "open",
14
+ "content": [
15
+ "A bare invocation is polybar's contract: print one bar line, then keep it fresh - a `herbstclient --idle` hook listener for instant focus/tag/title updates, plus a 1s layout poll that hashes `herbstclient dump` (frame splits and removals emit no hook in hlwm 0.9.5).",
16
+ "`polyframes bar` prints a single line and exits - the same pure renderer, scriptable."
17
+ ]
18
+ },
19
+ {
20
+ "heading": "Grouping model",
21
+ "theme": "open",
22
+ "content": [
23
+ "Clients on the focused tag arrive in WM order, enriched per window: class, title, minimized, floating, and its parent frame's flat index (`-1` when the root is unsplit).",
24
+ "Group keys: `minflt|wid` and `unframed|wid` are solo labels; `frame|frame|class` groups same-class windows sharing a frame. A group's representative is the frame's selected client - but only when it belongs to the group's class, so a mixed-class frame never leaks another group's title.",
25
+ "Render order keeps WM order, pushes minimized labels last, truncates to `char_limit` with an ellipsis, folds forbidden classes (the bar itself), and emits a `+N` overflow marker past `max_windows`."
26
+ ]
27
+ },
28
+ {
29
+ "heading": "The keybind registers live in doftiles",
30
+ "theme": "open",
31
+ "content": [
32
+ "The float registers bound to the binary (mod-f / mod-x / mod-ctrl-f: state toggles, layer focus, yank/slurp, deco-flush fill) are herbstluftwm configuration - they are documented in the [doftiles project](/projects/doftiles), which owns the WM config."
33
+ ]
34
+ },
35
+ {
36
+ "heading": "The helper suite, migrated in",
37
+ "theme": "open",
38
+ "content": [
39
+ "The dotfiles' herbst helpers moved in as subcommands, so one binary manages them all:",
40
+ "`tags`, `hidden`, `windows`, `launch` - the rofi menus (script-mode protocol, NUL-separated rows, per-row icons and states)",
41
+ "`switcher-menu`, `window-menu` - detached menu targets the click actions spawn",
42
+ "`tile` - closest-empty-frame navigation or split (the frame-tree surgery)",
43
+ "`center` - decoration-aware centering (`--wid` targets a specific window's own frame)",
44
+ "`resize` - delta nudges, frame/root deco-flush fills, explicit content rects",
45
+ "`fit` - constraint pass: shrink oversized, nudge off-screen (monitor or frame target)",
46
+ "`spawn` - one-shot `herbstclient rule once` spawns with typed flags (`--class/--float/--center/--tag`)"
47
+ ]
48
+ },
49
+ {
50
+ "heading": "herbstutil + herbctl inside",
51
+ "theme": "open",
52
+ "content": [
53
+ "Two sibling libraries ride along at build time:",
54
+ "herbstutil (npm) - parseAttr for every WM read: typed JSON out of hlwm's attr output, one round trip instead of a per-client attribute walk.",
55
+ "herbctl - the imperatives the scroll/click actions run: float+center, minimize-keep-frame, empty-frame removal - the keybind state machines as importable functions.",
56
+ "Both resolve as sibling submodules in the doftiles depends/ layout and from the npm/GitHub registries everywhere else."
57
+ ]
58
+ },
59
+ {
60
+ "heading": "Links",
61
+ "theme": "open",
62
+ "content": [
63
+ {
64
+ "heading": "GitHub repository",
65
+ "link": "https://github.com/akinevz2/polyframes"
66
+ },
67
+ {
68
+ "heading": "doftiles (the dotfiles it ships from)",
69
+ "link": "https://github.com/akinevz2/doftiles"
70
+ },
71
+ {
72
+ "heading": "herbctl (the keybind imperatives)",
73
+ "link": "https://github.com/akinevz2/herbctl"
74
+ },
75
+ {
76
+ "heading": "herbstutil (the JSON bridge)",
77
+ "link": "https://github.com/akinevz2/herbstutil"
78
+ }
79
+ ]
80
+ }
81
+ ]
82
+ }
83
+ }
@@ -11,10 +11,13 @@ export type Embed = {
11
11
  };
12
12
 
13
13
  /**
14
- * A content-file include directive: `{"include": "<name>"}` expands, at
15
- * load time (src/content/index.ts), into the referenced content file's
16
- * top-level Section as a nested child — JSON cannot import, so this is
17
- * the "include" mechanism for reusing a section across pages.
14
+ * A content-file include directive: `{"include": "<file>"}` expands, at
15
+ * load time (src/content/index.ts), into the referenced Section under
16
+ * src/content/includes/ as a nested child — JSON cannot import, so this
17
+ * is the "include" mechanism for reusing a section across pages.
18
+ * <file> is the FULL file name: a `.json` holding a Section, or an
19
+ * author-written `.md` file wrapped as one. Anything dropped into that
20
+ * directory is includable — no registration needed.
18
21
  */
19
22
  export type IncludeRef = { include: string };
20
23
 
@@ -106,16 +106,15 @@
106
106
  "content": [
107
107
  "**public live projects**:",
108
108
  {
109
- "heading": "website, my personal website",
110
- "link": "https://www.npmjs.com/package/website-xp-phone"
109
+ "link": "https://github.com/akinevz2/",
110
+ "heading": "my github",
111
+ "content": [
112
+ "[projects here](https://github.com/akinevz2?tab=repositories)"
113
+ ]
111
114
  },
112
115
  {
113
- "heading": "pagerts, my first npm package",
114
- "link": "https://www.npmjs.com/package/pagerts"
115
- },
116
- {
117
- "heading": "rarebert, akinevz2/rarebert",
118
- "link": "https://github.com/akinevz2/rarebert/commit/936a6ff"
116
+ "link": "/projects",
117
+ "heading": "my projects page on this website"
119
118
  }
120
119
  ]
121
120
  },
@@ -133,11 +132,13 @@
133
132
  "arts and expressions of free will",
134
133
  {
135
134
  "heading": "music",
136
- "link": "https://soundcloud.com/akinevz"
135
+ "link": "https://soundcloud.com/akinevz",
136
+ "content": ["where i post really heavy music"]
137
137
  },
138
138
  {
139
139
  "heading": "another music",
140
- "link": "https://soundcloud.com/akinevz2"
140
+ "link": "https://soundcloud.com/akinevz2",
141
+ "content": ["where i post music for the sake of memes"]
141
142
  },
142
143
  "and endlessly, deeply",
143
144
  {
@@ -1,9 +1,21 @@
1
1
  {
2
2
  "source": "https://soundcloud.com/akinevz",
3
- "generatedAt": "2026-10-24T11:54:46.192Z",
4
- "asOfUploadingTrackCount": 91,
5
- "trackCount": 91,
3
+ "generatedAt": "2026-10-28T04:29:58.385Z",
4
+ "asOfUploadingTrackCount": 95,
5
+ "trackCount": 95,
6
6
  "tracks": [
7
+ {
8
+ "owner": "akinevz",
9
+ "path": "/akinevz/on-a-saturday",
10
+ "title": "Together",
11
+ "url": "https://soundcloud.com/akinevz/on-a-saturday"
12
+ },
13
+ {
14
+ "owner": "akinevz",
15
+ "path": "/akinevz/amorphous",
16
+ "title": "Rendexvous",
17
+ "url": "https://soundcloud.com/akinevz/amorphous"
18
+ },
7
19
  {
8
20
  "owner": "akinevz",
9
21
  "path": "/akinevz/roam",
@@ -96,9 +108,9 @@
96
108
  },
97
109
  {
98
110
  "owner": "akinevz",
99
- "path": "/akinevz/dresscode",
100
- "title": "Memento Mori",
101
- "url": "https://soundcloud.com/akinevz/dresscode"
111
+ "path": "/akinevz/corporate",
112
+ "title": "ASCII Art",
113
+ "url": "https://soundcloud.com/akinevz/corporate"
102
114
  },
103
115
  {
104
116
  "owner": "akinevz",
@@ -169,7 +181,7 @@
169
181
  {
170
182
  "owner": "akinevz",
171
183
  "path": "/akinevz/letdown",
172
- "title": "Open Door (Letdown)",
184
+ "title": "Letdown",
173
185
  "url": "https://soundcloud.com/akinevz/letdown"
174
186
  },
175
187
  {
@@ -352,6 +364,18 @@
352
364
  "title": "They Were Laid to Rest Cont.",
353
365
  "url": "https://soundcloud.com/akinevz/u-dont-know-gabber"
354
366
  },
367
+ {
368
+ "owner": "akinevz2",
369
+ "path": "/akinevz2/dresscode",
370
+ "title": "Momento Mori",
371
+ "url": "https://soundcloud.com/akinevz2/dresscode"
372
+ },
373
+ {
374
+ "owner": "akinevz2",
375
+ "path": "/akinevz2/diagonal",
376
+ "title": "Slanted",
377
+ "url": "https://soundcloud.com/akinevz2/diagonal"
378
+ },
355
379
  {
356
380
  "owner": "akinevz2",
357
381
  "path": "/akinevz2/wat",
@@ -556,8 +580,20 @@
556
580
  "owner": "akinevz",
557
581
  "source": "https://soundcloud.com/akinevz",
558
582
  "profileImageUrl": null,
559
- "trackCount": 58,
583
+ "trackCount": 60,
560
584
  "tracks": [
585
+ {
586
+ "owner": "akinevz",
587
+ "path": "/akinevz/on-a-saturday",
588
+ "title": "Together",
589
+ "url": "https://soundcloud.com/akinevz/on-a-saturday"
590
+ },
591
+ {
592
+ "owner": "akinevz",
593
+ "path": "/akinevz/amorphous",
594
+ "title": "Rendexvous",
595
+ "url": "https://soundcloud.com/akinevz/amorphous"
596
+ },
561
597
  {
562
598
  "owner": "akinevz",
563
599
  "path": "/akinevz/roam",
@@ -650,9 +686,9 @@
650
686
  },
651
687
  {
652
688
  "owner": "akinevz",
653
- "path": "/akinevz/dresscode",
654
- "title": "Memento Mori",
655
- "url": "https://soundcloud.com/akinevz/dresscode"
689
+ "path": "/akinevz/corporate",
690
+ "title": "ASCII Art",
691
+ "url": "https://soundcloud.com/akinevz/corporate"
656
692
  },
657
693
  {
658
694
  "owner": "akinevz",
@@ -723,7 +759,7 @@
723
759
  {
724
760
  "owner": "akinevz",
725
761
  "path": "/akinevz/letdown",
726
- "title": "Open Door (Letdown)",
762
+ "title": "Letdown",
727
763
  "url": "https://soundcloud.com/akinevz/letdown"
728
764
  },
729
765
  {
@@ -912,8 +948,20 @@
912
948
  "owner": "akinevz2",
913
949
  "source": "https://soundcloud.com/akinevz2",
914
950
  "profileImageUrl": null,
915
- "trackCount": 33,
951
+ "trackCount": 35,
916
952
  "tracks": [
953
+ {
954
+ "owner": "akinevz2",
955
+ "path": "/akinevz2/dresscode",
956
+ "title": "Momento Mori",
957
+ "url": "https://soundcloud.com/akinevz2/dresscode"
958
+ },
959
+ {
960
+ "owner": "akinevz2",
961
+ "path": "/akinevz2/diagonal",
962
+ "title": "Slanted",
963
+ "url": "https://soundcloud.com/akinevz2/diagonal"
964
+ },
917
965
  {
918
966
  "owner": "akinevz2",
919
967
  "path": "/akinevz2/wat",
package/src/lib/clippy.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { playLayeredAudio } from "./audio";
2
+ import { onSignal } from "./signals";
2
3
  import {
3
4
  advanceWord,
4
5
  blipRollMs,
@@ -23,6 +24,9 @@ export type ClippyState = {
23
24
  saysNo: boolean;
24
25
  /** The unhide list is shown instead of a bubble (masks it completely). */
25
26
  listOpen: boolean;
27
+ /** The bubble carries the post-park offer ("oh where did that go?").
28
+ * Independent of saysNo: neither flag outlives its bubble. */
29
+ offering: boolean;
26
30
  };
27
31
 
28
32
  const storedVisible = () =>
@@ -34,6 +38,7 @@ let state: ClippyState = {
34
38
  bubble: false,
35
39
  saysNo: false,
36
40
  listOpen: false,
41
+ offering: false,
37
42
  };
38
43
  const listeners = new Set<() => void>();
39
44
  const set = (patch: Partial<ClippyState>) => {
@@ -126,12 +131,26 @@ const hint = () => {
126
131
  // The hint is the priority UI: dismiss the unhide list in the same
127
132
  // atomically-committed state update so it can never mask the bubble
128
133
  // (the stray "haha it said no"/hiding interplay of the flag mirrors).
129
- set({ bubble: true, saysNo: false, listOpen: false });
134
+ set({ bubble: true, saysNo: false, offering: false, listOpen: false });
130
135
  bubbleTimer = setTimeout(
131
136
  // saysNo dies with its bubble: a stale veto would otherwise turn every
132
137
  // later bubble into "haha it said no" (visible the moment another
133
138
  // bubble is unmasked, e.g. dismissing the reopen list).
134
- () => set({ bubble: false, saysNo: false }),
139
+ () => set({ bubble: false, saysNo: false, offering: false }),
140
+ BUBBLE_MS,
141
+ );
142
+ };
143
+
144
+ /** The post-park pipe-up: ✕ closed a window while Clippy was on screen,
145
+ * so the window went into Clippy's keep — say the line and offer the
146
+ * unhide roster (the roster button lives on the image which is already
147
+ * the tap target that opens the list). The offer bubble follows the
148
+ * same lifecycle and priority atomics as the hint's. */
149
+ const offer = () => {
150
+ clearTimeout(bubbleTimer);
151
+ set({ bubble: true, saysNo: false, offering: true, listOpen: false });
152
+ bubbleTimer = setTimeout(
153
+ () => set({ bubble: false, saysNo: false, offering: false }),
135
154
  BUBBLE_MS,
136
155
  );
137
156
  };
@@ -188,23 +207,25 @@ export const toggleClippyList = () => {
188
207
  // said no" veto state — so the reopen list owns the attention; pending
189
208
  // bubble timers are cancelled alongside.
190
209
  clearTimeout(bubbleTimer);
191
- set({ listOpen: true, bubble: false, saysNo: false });
210
+ set({ listOpen: true, bubble: false, saysNo: false, offering: false });
192
211
  };
193
212
 
194
- const onCrunchy = (event: Event) => {
195
- if (state.listOpen || !state.bubble || state.saysNo) return;
196
- event.preventDefault();
213
+ const onCrunchy = ({ refuse }: { refuse: () => void }) => {
214
+ if (state.listOpen || !state.bubble || state.saysNo || state.offering) return;
215
+ refuse();
197
216
  set({ saysNo: true });
198
217
  };
199
218
 
200
219
  /** Attaches the global listeners; returns the detach function. */
201
220
  export function attachClippy(): () => void {
202
221
  window.addEventListener("keydown", onKeyDown);
203
- document.addEventListener("window-close-attempt", onCrunchy);
222
+ const offWindowClose = onSignal("window:close", onCrunchy);
223
+ const offHid = onSignal("clippy:hid", offer);
204
224
  getAudio().addEventListener("ended", onAudioEnded);
205
225
  return () => {
206
226
  window.removeEventListener("keydown", onKeyDown);
207
- document.removeEventListener("window-close-attempt", onCrunchy);
227
+ offWindowClose();
228
+ offHid();
208
229
  getAudio().removeEventListener("ended", onAudioEnded);
209
230
  clearBlip();
210
231
  activeMs = 0;