plum

#treesitter#compiler#wasm

git clone https://git.pyrossh.dev/plum

A statically typed, imperative programming language inspired by rust, python


a643bd8 — Peter John 2026-11-14T16:33:29+05:30
remove stuff
.codegraph/.gitignore DELETED
@@ -1,5 +0,0 @@
1
- # CodeGraph data files — local to each machine, not for committing.
2
- # Ignore everything in .codegraph/ except this file itself, so transient
3
- # files (the database, daemon.pid, sockets, logs) never show up in git.
4
- *
5
- !.gitignore
docs/plans/2026-11-13-no-globals-tests-ports.md ADDED
@@ -0,0 +1,43 @@
1
+ # simpler-language: no globals, tests in tests/, master ports (2026-11-13)
2
+
3
+ User, 2026-11-13: "review simpler-language and port fixes from master and improve the game framework and move all testing into its own files and move all global functions to primitive. Nothing should be global."
4
+
5
+ Decisions (user's answers):
6
+ - **No global functions, as a language rule.** Every top-level `fun` in std, examples, tests and games moves into a `primitive`, `struct`, `enum` or `trait` block. The checker rejects a top-level `fun`; only `fun main` stays.
7
+ - **Tests in a `tests/` mirror.** `std/collections/Map.plum`'s tests go to `tests/std/collections/Map.plum`, `examples/json.plum`'s to `tests/examples/json.plum`, a game's to `tests/examples/games/<game>/...`. Source files hold no `test` blocks. The checker rejects a `test` block in a file with no `tests` folder in its path.
8
+ - **Ports from master:** commits since e91c40ce, the host/CLI gaps listed in docs/game.md "Beside master", master's `clockwork` and `menu` games.
9
+
10
+ ## Conventions every task follows
11
+
12
+ 1. Where a function goes:
13
+ - About a type defined in the same file (its first parameter or its result is that type, or only that type's code calls it): a method or static of that type. Prefer a method when the first parameter is the type. Drop a prefix that only repeated the type's name (`animAt(a, t)` becomes `a.at(t)`; `animSeqLength` becomes a static `Anim.seqLength`).
14
+ - Otherwise: a `primitive` named after the file's subject, in a file of that name. `std/math/math.plum` becomes `std/math/Math.plum` with `primitive Math` (`Math.sqrt(x)`); `std/testing.plum` becomes `std/Test.plum` with `primitive Test` (`Test.expectEq(a, b)`; the function names stay); `http.plum` -> `Http`, `audio.plum` -> `Audio`, `gfx.plum` -> `Gfx`, `input.plum` -> `Input` (or an existing type there).
15
+ - A primitive's name never clashes with an existing type.
16
+ - In examples and tests: methods of the file's own types, or a `primitive` named after the file (`primitive Recursion` in `recursion.plum`).
17
+ 2. `@native` functions move like any other; the compiler's lookup of natives follows them.
18
+ 3. No new free function anywhere, including test helpers.
19
+ 4. Docs (`docs/language.md`, `docs/std.md`, `docs/game.md`) are updated by the task that changes the thing they describe.
20
+ 5. Each task ends with `compiler/scripts/test-all.sh` green (`ALL PASSED`) in its own worktree, and one commit on its branch.
21
+
22
+ ## Tasks (in order; T1 and T2 run at the same time)
23
+
24
+ - **T1 tests move**: `test` blocks are removed from the language (user, 2026-11-13: "remove the test block and use primitive that implements UnitTest trait"). Tests are `primitive <File>Test[UnitTest]` blocks in the `tests/` mirror; each zero-parameter fun is one test (`<Primitive>.<fun>`), funs with parameters are helpers. A `[UnitTest]` primitive outside a `tests` folder is a checker error.
25
+ - **T2 web and CLI ports** (no std change): master's 86085924 (WebGPU-wait message), d8df3f79 and 9a43a992 (web-test flakes), `plum run <folder>`.
26
+ - **T3a no globals in std outside std/game** (after T1; running): Math, Test (+UnitTest), Http, collections helpers as methods; callers everywhere.
27
+ - **T3b no globals in std/game** (after T3a).
28
+ - DONE: T1 a4e5ce6c, T2 f41a2d90, T3a cbeca8dc, static inlining e325f301, T3b 7910bf7e.
29
+ - **T4a** (running): examples, tests/examples, benchmarks, web-test fixtures, std constants. **T4b** (running): tests/ except tests/examples.
30
+ - DONE also: T4b 05dcf426, T4a e81d9ee9. Running: T4c1 (rule, Rust fixtures, docs, and `const Name = value` for static values: user 2026-11-13 "constants can have const keyword please"), T4c2 (Item::Test, Queued.of, KdTree comment, headless name).
31
+ - **T4d** (after T4c1+T4c2): `fun main` moves into a primitive that lists a marker trait `App` (user 2026-11-13: "fun main needs to be under a primitive please. Something like primitive App", then "its not literally. Just use any trait"): `primitive OrbitRunner[App] = fun main(..)`, the entry point is that primitive's `main`, one per program; the rule then allows no top-level fun at all; `plum run <folder>` picks the file with the `[App]` primitive; every main in examples, games, tests, benchmarks, fixtures, Rust inline programs, scaffolds, docs.
32
+ - **T4e: a declarative, functional view** (after T4d; user 2026-11-13: "please infer it", "add defaults and blocks. Make it as declarative and functional as possible"). Sub-tasks, in order, one fresh agent each:
33
+ - **T4e1 inference:** no annotations needed in a view. A `List<Ship>` is usable where a `List<View>` is expected (immutable lists are covariant over a trait a type implements; same for `Option`), so `Views.all` goes; the expected type flows into literals, `Nil`, `if`/`match` arms and lambdas; a local with no annotation takes its type from its value joined with its uses (`ship := if over then Nil else [self.ship]` is a `List<Ship>` that upcasts at the use).
34
+ - **T4e2 list-literal items:** spread `..xs`, `if c then x` (and `if c then x else y`) items, no `for` items (use `..xs.map(..)`); built in one pass from the back.
35
+ - **T4e2b ranges as statics** (user: "I would just use Range.until(0, Stars.count).map(|i| Stars.at(i, self.clock))"): `Range.until(start, end)` and `Range.to(start, end)` statics on std's `struct Range` replace the `Int.until`/`Int.to` methods (one way to write it); every caller converted.
36
+ - **T4e3 struct field defaults:** `struct Label(x: Float, y: Float, text: Str, size: Float = 20.0, color: Color = Color.White, align: Align = Left)`; named arguments at construction; std's `Box.of`/`Label.of`/`Overlay.of`/`Tween.of`/`Held.keysOnly`-style statics that only existed to fill defaults are removed in favour of the constructor.
37
+ - **T4e4 children blocks:** a call or constructor whose last parameter is a `List<T>` takes a trailing block whose lines are its items (spread and `if` items allowed): `Overlay(w: Arena.W, h: Arena.H) { Label(..) Label(..) }` (pick the block syntax that fits the grammar: `{ }` grouping vs indentation; a block may be the whole body of `view`).
38
+ - **T4e5 rewrite:** std/game, every game, fixture, test and docs/game.md use the new forms; views read as one declarative expression.
39
+ - **T4c** (after T4a+T4b): compiler Rust inline fixtures (~548 free funs in 45 files), the checker rule (top-level fun except main, top-level values), remove `Item::Test`, the `Queued.of` generic-static-returning-trait bug, statics as function values (`Type.f` without a call; T4b had to wrap them in closures), the module fixtures mathx/shapes/Palette/hue/tint and their module-rule tests, KdTree's stale comment, headless.plum name.
40
+ - (old T4 text:) **T4 no globals elsewhere + the rule** (after T3b): examples, games, tests, benchmarks, fixtures; the checker error; docs. Also from T1's report: the parser still lowers each UnitTest fun to the old `Item::Test` node: remove that node from the AST/checker/codegen; the web-test fixture's tests (`compiler/game/web-test/fixtures/tests/`) are not run by test-all: run them.
41
+ - **T5 game framework ports** (after T4; also `plum compile <folder>` as master has it): master's c8bf0cd7/f18b5539 where they apply to this dialect (`holdsActors`), frames on demand (`frameIdle`), development keys (`plum run --dev`, `remakeGame`, travel keys), the window size on the tick's input, `Ticker` for `Clock`, real font metrics for `Label`.
42
+ - **T6 games** (after T5): master's `clockwork` and `menu` in this dialect, following docs/game.md and the example-games style (no comments, no getters, no unnecessary sugar).
43
+ - **T7 final review**: a fresh reviewer over everything since the start SHA; fixes by fresh agents.
docs/plans/2026-11-13-std-game-review.md ADDED
@@ -0,0 +1,28 @@
1
+ # std/game review (simpler-language @ 257d46e6), 2026-11-13
2
+
3
+ User: "one general review on the std/game and how it can be improved, made more declarative and functional please". Read-only review by a fresh agent; items in priority order. Not yet chosen for building.
4
+
5
+ 1. Reducers return their follow-ups: `Next<S, A>(state, then: List<A>, cmds: List<Cmd>)`, `step(a) -> Next` defaulting to `reduce`; `deliverTo` a pure fold; removes the global `Effects.Running` slot (Effects.plum:43) and the mutable `q`/`acted` Slices (ScreenSlice.plum:114-160); TestRig.dispatch reuses the fold. M, std.
6
+ 2. Effects as data, `Control` removed: `enum Cmd = GoTo | Exit | Undo | Redo | RewindTo | Play | Loop | Stop` (+ `Run(fn(Io))` escape hatch); the game interprets them; rewinds skip sounds by construction; Balloon Pop loses its six "heard" fields (~25 lines); `Effects.sent`/`Queued`/`Sink`/`ActionSink` go. M, std.
7
+ 3. Views declare presses: `trait Presses<A>`, `Button<A>(.., on: A) { Label(..) }`, default `onPress` matches `Presses<A>`; no `@sameRef` hit tests or whole-actor actions. S, std.
8
+ 4. Key bindings: `Key` as an enum (`KeyDown(Enter)`), `code()/fromCode()` for host and replay; optional `keys() -> List<Bind<A>>` table and `Input.stick(..) -> Vec2`. S/M, std + replay codec.
9
+ 5. Derive `stepped` for Actor / List<Actor> fields (compile-time, not a runtime walk); per-field `steps`. M, language.
10
+ 6. One time model: `Tween.at(t)` pure, easing on `Anim` steps, `Group(scale, rotation, alpha, pose:)`; replace hand-written pulses and per-actor `clock += dt`. M, std.
11
+ 7. Screen configuration as one `Setup` value (size, background, viewport, frames, culls); keep `camera`/`transition` as functions; cache per tick. S, std.
12
+ 8. Typed navigation: `GoTo(route: R)` instead of strings (or validate names once / in TestRig). M, std, API break.
13
+ 9. Leftovers: `Game.onDemand` duplicate, `SizedTile` fixture in std, `Views.stepIn` test-only, `Held`/`Clock` Slices -> List or bitset.
14
+ 10. Games by hand: `struct Arena` -> `primitive Arena`, dead `Blinks`, derived `toStr` on action enums (language), `Hues` const list, `Balloon.at` positional args -> defaults, a std `Body(at, vel)` for Orb/Mine, PlayAgain indirection via `then`.
15
+ 11. Stale docs: game.md "Beside master" rows (list literals now have `if`/`..`; Anim; Effects/Control).
16
+
17
+ Input (user: "input became events in master"): both branches already route `InputEvent`s to `onKey`/`onPointer`/`onPress` and keep a polled `Input` (held keys, axis) beside them; the branch's `Held`/`Polled`/`Input` use mutable `Slice`s and `pollButton` writes into out-parameters (item 9).
18
+
19
+ Cost: only item 5 done as a runtime walk would touch the 10,000-actor benchmark; as a derive it costs the same as today.
20
+
21
+ ## Addendum: input (ranked #4, ahead of key bindings)
22
+
23
+ Events stay the only source of truth; std keeps held state as a pure fold of them (`Held.after(e)`, which exists but is unused) and hands it to each tick. Not events-only Elm-style: every game would re-fold KeyDown/KeyUp itself (boilerplate, focus-loss bugs).
24
+ - `InputEvent` gains `Wheel(dy)`; `Input(events: List<InputEvent>, held: Held)`; `Held(keys: List<Key>, buttons: List<Int>, mouse, pointer)` with `isKeyDown`/`axis` moved onto it; screens' `held(self, h: Held)`.
25
+ - Removed: `Input.isKeyPressed`/`isMousePressed`/`isMouseReleased` (only tests call them), `pos`, `wheel`.
26
+ - The host poll stays the one imperative boundary but returns a List instead of writing through `out: Slice` parameters.
27
+ - Replay keeps the per-tick held checkpoint (robust against a fold bug); `played` may become a List with the head dropped each tick.
28
+ - Per tick, not per actor: the 10,000-actor benchmark is unaffected. Pairs with the `Key` enum.
docs/super-board/pre-flight.md ADDED
@@ -0,0 +1,17 @@
1
+ # Pre-flight — 👾 Plum board
2
+
3
+ Checked 2026-11-13 by `super-board lint`: 1 card in the active columns (#1, Ready, bug), clear.
4
+
5
+ 🔑 Credentials the loop will need:
6
+ [✓] none — no ticket or PROJECT.md names a secret
7
+
8
+ 🛠 Tools the loop will need:
9
+ [✓] gh CLI authenticated as pyrossh, scopes include project, repo (verified)
10
+ [✓] cargo 1.99.1 / rustc 1.99.1 (verified)
11
+ [✓] wasmtime 47.0.3 (verified)
12
+ [✓] git 2.54.0 (verified)
13
+ [✓] node v26.13.0 (verified; workflow syntax check)
14
+
15
+ 🌐 Environment:
16
+ [✓] origin = https://github.com/pyrossh/plum, master at cf9a61a5 (verified)
17
+ [✓] verify command: bash compiler/scripts/test-all.sh
docs/super-board/runs/2026-11-13-plum.md ADDED
@@ -0,0 +1,3 @@
1
+ | Card | Lanes | Final | Column | Detail |
2
+ |---|---|---|---|---|
3
+ | #1 | build:advanced → qa:advanced → review:human-gate | human-gate | Blocked | merge gate exit 7 on size: 204486 lines, mostly regenerated tree-sitter parser.c; PR #2; host_test flakes on base cf9a61a5 too (2/15) |
docs/test/.octarine/properties.json ADDED
@@ -0,0 +1,47 @@
1
+ [
2
+ {
3
+ "name": "tags",
4
+ "type": "tags",
5
+ "options": null
6
+ },
7
+ {
8
+ "name": "Status",
9
+ "type": "list",
10
+ "options": [
11
+ "Draft",
12
+ "In Progress",
13
+ "Under Review",
14
+ "Published"
15
+ ]
16
+ },
17
+ {
18
+ "name": "Word Count",
19
+ "type": "number",
20
+ "options": null
21
+ },
22
+ {
23
+ "name": "Due Date",
24
+ "type": "date",
25
+ "options": null
26
+ },
27
+ {
28
+ "name": "Last Edited",
29
+ "type": "datetime",
30
+ "options": null
31
+ },
32
+ {
33
+ "name": "Published",
34
+ "type": "checkbox",
35
+ "options": null
36
+ },
37
+ {
38
+ "name": "Author",
39
+ "type": "string",
40
+ "options": null
41
+ },
42
+ {
43
+ "name": "oct.related",
44
+ "type": "list",
45
+ "options": null
46
+ }
47
+ ]
docs/test/.octarine/tasks/buckets/bucketdefaultlater000000.md ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ created: 2026-11-11T15:17:45.050Z
3
+ name: Later
4
+ order: 3
5
+ updated: 2026-11-11T15:17:45.050Z
6
+ ---
docs/test/.octarine/tasks/buckets/bucketdefaultnext0000000.md ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ color: blue
3
+ created: 2026-11-11T15:17:45.044Z
4
+ name: Next
5
+ order: 2
6
+ updated: 2026-11-11T15:17:45.044Z
7
+ ---
docs/test/.octarine/tasks/buckets/bucketdefaultnow00000000.md ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ color: orange
3
+ created: 2026-11-11T15:17:45.038Z
4
+ name: Now
5
+ order: 1
6
+ updated: 2026-11-11T15:17:45.038Z
7
+ ---
docs/test/.octarine/tasks/config.yml ADDED
@@ -0,0 +1,6 @@
1
+ default_buckets_seeded: true
2
+ default_labels_seeded: true
3
+ default_types_seeded: true
4
+ default_views_seeded: true
5
+ project_numbers_migrated: true
6
+ recent_views_seeded: true
docs/test/.octarine/tasks/labels/labeldefaultbug000000000.md ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ color: red
3
+ created: 2026-11-11T15:17:45.016Z
4
+ name: Bug
5
+ updated: 2026-11-11T15:17:45.016Z
6
+ ---
docs/test/.octarine/tasks/labels/labeldefaultfeature00000.md ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ color: purple
3
+ created: 2026-11-11T15:17:45.022Z
4
+ name: Feature
5
+ updated: 2026-11-11T15:17:45.022Z
6
+ ---
docs/test/.octarine/tasks/labels/labeldefaultimprovement0.md ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ color: blue
3
+ created: 2026-11-11T15:17:45.028Z
4
+ name: Improvement
5
+ updated: 2026-11-11T15:17:45.028Z
6
+ ---
docs/test/.octarine/tasks/types/typedefaultbug0000000000.md ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ color: red
3
+ created: 2026-11-11T15:17:45.062Z
4
+ name: Bug
5
+ order: 1
6
+ updated: 2026-11-11T15:17:45.062Z
7
+ ---
docs/test/.octarine/tasks/types/typedefaultfeature000000.md ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ color: purple
3
+ created: 2026-11-11T15:17:45.067Z
4
+ name: Feature
5
+ order: 2
6
+ updated: 2026-11-11T15:17:45.067Z
7
+ ---
docs/test/.octarine/tasks/types/typedefaultimprovement00.md ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ color: blue
3
+ created: 2026-11-11T15:17:45.073Z
4
+ name: Improvement
5
+ order: 3
6
+ updated: 2026-11-11T15:17:45.073Z
7
+ ---
docs/test/.octarine/tasks/views/viewdefaultrecent0000000.md ADDED
@@ -0,0 +1,8 @@
1
+ ---
2
+ color: green
3
+ created: 2026-11-11T15:17:45.004Z
4
+ icon: lucide:CircleCheck
5
+ name: Recently completed
6
+ query: completed:<7d
7
+ updated: 2026-11-11T15:17:45.004Z
8
+ ---
docs/test/.octarine/tasks/views/viewdefaultweek000000000.md ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ created: 2026-11-11T15:17:44.940Z
3
+ icon: lucide:CalendarDays
4
+ name: Due this week
5
+ query: is:open due:<7d
6
+ updated: 2026-11-11T15:17:44.940Z
7
+ ---
docs/test/.octarine/types.json ADDED
@@ -0,0 +1,113 @@
1
+ [
2
+ {
3
+ "id": "task",
4
+ "name": "Task",
5
+ "description": "",
6
+ "icon": "lucide:SquareCheck",
7
+ "color": "green",
8
+ "order": 0,
9
+ "properties": [
10
+ {
11
+ "name": "Status",
12
+ "type": "list",
13
+ "description": "Current progress state of the task."
14
+ },
15
+ {
16
+ "name": "Priority",
17
+ "type": "list",
18
+ "description": "Relative importance or urgency of the task."
19
+ },
20
+ {
21
+ "name": "Due Date",
22
+ "type": "date",
23
+ "description": "Date by which the task should be completed."
24
+ },
25
+ {
26
+ "name": "Completed",
27
+ "type": "checkbox",
28
+ "description": "Whether the task has been fully completed."
29
+ },
30
+ {
31
+ "name": "tags",
32
+ "type": "tags",
33
+ "description": "Short topical labels that group this task with related notes."
34
+ }
35
+ ],
36
+ "created": 1794410231366,
37
+ "modified": 1794410231367
38
+ },
39
+ {
40
+ "id": "reading",
41
+ "name": "Reading",
42
+ "description": "",
43
+ "icon": "BookOpenIcon",
44
+ "color": "blue",
45
+ "order": 1,
46
+ "properties": [
47
+ {
48
+ "name": "Source",
49
+ "type": "string",
50
+ "description": "Title, URL, book, paper, or other source being read."
51
+ },
52
+ {
53
+ "name": "Author",
54
+ "type": "string",
55
+ "description": "Person or organization that created the source."
56
+ },
57
+ {
58
+ "name": "Status",
59
+ "type": "list",
60
+ "description": "Current reading progress for the source."
61
+ },
62
+ {
63
+ "name": "Rating",
64
+ "type": "number",
65
+ "description": "Numeric personal rating for the source."
66
+ },
67
+ {
68
+ "name": "tags",
69
+ "type": "tags",
70
+ "description": "Short topical labels that describe the source or reading theme."
71
+ }
72
+ ],
73
+ "created": 1794410231366,
74
+ "modified": 1794410231378
75
+ },
76
+ {
77
+ "id": "project",
78
+ "name": "Project",
79
+ "description": "",
80
+ "icon": "FolderIcon",
81
+ "color": "purple",
82
+ "order": 2,
83
+ "properties": [
84
+ {
85
+ "name": "Status",
86
+ "type": "list",
87
+ "description": "Current lifecycle state of the project."
88
+ },
89
+ {
90
+ "name": "Owner",
91
+ "type": "string",
92
+ "description": "Person responsible for driving or tracking the project."
93
+ },
94
+ {
95
+ "name": "Start Date",
96
+ "type": "date",
97
+ "description": "Date when the project begins or began."
98
+ },
99
+ {
100
+ "name": "Target Date",
101
+ "type": "date",
102
+ "description": "Intended completion or milestone date for the project."
103
+ },
104
+ {
105
+ "name": "tags",
106
+ "type": "tags",
107
+ "description": "Short topical labels that group this project with related notes."
108
+ }
109
+ ],
110
+ "created": 1794410231366,
111
+ "modified": 1794410231380
112
+ }
113
+ ]
docs/test/.octarine/views.json ADDED
@@ -0,0 +1,156 @@
1
+ [
2
+ {
3
+ "id": "sazs9dzs3h6tj754ey505mj3",
4
+ "name": "Organised Notes",
5
+ "description": "All notes in your workspace",
6
+ "icon": "DocumentTextIcon",
7
+ "color": "blue",
8
+ "order": 0,
9
+ "pinned": false,
10
+ "filters": [
11
+ {
12
+ "id": "hdal1gbxy1um3zwo4xyycet2",
13
+ "field": "oct.note_location",
14
+ "operator": "in",
15
+ "value": [
16
+ "Notes"
17
+ ],
18
+ "combinator": null,
19
+ "nested": null
20
+ }
21
+ ],
22
+ "columns": [
23
+ {
24
+ "field": "oct.name",
25
+ "order": 0
26
+ },
27
+ {
28
+ "field": "oct.note_location",
29
+ "order": 1
30
+ },
31
+ {
32
+ "field": "oct.created_date",
33
+ "order": 2
34
+ },
35
+ {
36
+ "field": "oct.modified_date",
37
+ "order": 3
38
+ },
39
+ {
40
+ "field": "oct.tags",
41
+ "order": 4
42
+ },
43
+ {
44
+ "field": "oct.pinned",
45
+ "order": 5
46
+ },
47
+ {
48
+ "field": "oct.locked",
49
+ "order": 6
50
+ }
51
+ ],
52
+ "sort": [
53
+ {
54
+ "field": "oct.modified_date",
55
+ "direction": "desc",
56
+ "priority": null
57
+ }
58
+ ],
59
+ "groupBy": null,
60
+ "created": 1794410258312,
61
+ "modified": 1794410258320
62
+ },
63
+ {
64
+ "id": "es4x0af52wiybvhny04hgpe6",
65
+ "name": "Pending Tasks",
66
+ "description": "Notes with tasks and to-dos",
67
+ "icon": "ClipboardDocumentCheckIcon",
68
+ "color": "yellow",
69
+ "order": 1,
70
+ "pinned": false,
71
+ "filters": [
72
+ {
73
+ "id": "jc5bzlnapivieky6nj1k8hmf",
74
+ "field": "oct.task_status",
75
+ "operator": "in",
76
+ "value": [
77
+ "Pending",
78
+ "Complete"
79
+ ],
80
+ "combinator": null,
81
+ "nested": null
82
+ }
83
+ ],
84
+ "columns": [
85
+ {
86
+ "field": "oct.name",
87
+ "order": 0
88
+ },
89
+ {
90
+ "field": "oct.tasks",
91
+ "order": 2
92
+ },
93
+ {
94
+ "field": "oct.modified_date",
95
+ "order": 3
96
+ }
97
+ ],
98
+ "sort": [
99
+ {
100
+ "field": "oct.task_status",
101
+ "direction": "asc",
102
+ "priority": null
103
+ }
104
+ ],
105
+ "groupBy": null,
106
+ "created": 1794410258323,
107
+ "modified": 1794410258329
108
+ },
109
+ {
110
+ "id": "zexf1abfmlsbvnlkv58psim4",
111
+ "name": "Recently Written",
112
+ "description": "Recently modified",
113
+ "icon": "ClockIcon",
114
+ "color": "purple",
115
+ "order": 2,
116
+ "pinned": false,
117
+ "filters": [
118
+ {
119
+ "id": "hkewpgz60urtkq9a7zie4v6z",
120
+ "field": "oct.modified_date",
121
+ "operator": "on",
122
+ "value": "last_7_days",
123
+ "combinator": null,
124
+ "nested": null
125
+ }
126
+ ],
127
+ "columns": [
128
+ {
129
+ "field": "oct.name",
130
+ "order": 0
131
+ },
132
+ {
133
+ "field": "oct.note_location",
134
+ "order": 1
135
+ },
136
+ {
137
+ "field": "oct.modified_date",
138
+ "order": 2
139
+ },
140
+ {
141
+ "field": "oct.linked_notes",
142
+ "order": 3
143
+ }
144
+ ],
145
+ "sort": [
146
+ {
147
+ "field": "oct.modified_date",
148
+ "direction": "desc",
149
+ "priority": null
150
+ }
151
+ ],
152
+ "groupBy": null,
153
+ "created": 1794410258331,
154
+ "modified": 1794410258338
155
+ }
156
+ ]
docs/test/.octarine/workspace.lock ADDED
File without changes
docs/test/.templates/Daily Standup.md ADDED
@@ -0,0 +1,12 @@
1
+
2
+ **What did you do today?**
3
+
4
+ - [ ] x
5
+
6
+ **What will you do tomorrow?**
7
+
8
+ - [ ] x
9
+
10
+ **Any blockers?**
11
+
12
+ - x
docs/test/.templates/Gratitude.md ADDED
@@ -0,0 +1,12 @@
1
+
2
+ **Highlights of the day**
3
+
4
+ - x
5
+
6
+ **Things I’m grateful**
7
+
8
+ - x
9
+
10
+ **Reminders**
11
+
12
+ - x
docs/test/Daily/2026-11-11.md ADDED
@@ -0,0 +1,14 @@
1
+ This is your **daily note** — a space for quick thoughts, tasks, and anything on your mind today.
2
+
3
+ You can create a daily note for any day from the **Daily Desk** in the sidebar. Days that have a note show a small dot on the calendar so you can spot them at a glance.
4
+
5
+ **What's on your mind today?**
6
+
7
+ - [ ] Learning about Octarine's Daily Desk
8
+ - [x] Recommending this to a friend
9
+
10
+ **Notes**
11
+
12
+ -
13
+
14
+ Want to plan at a higher level? Check out your weekly note [[Daily/Weekly/2026-W46]].
docs/test/Daily/Weekly/2026-W46.md ADDED
@@ -0,0 +1,20 @@
1
+ This is your **weekly note** — a place to plan your week, set goals, and reflect on how things went.
2
+
3
+ Weekly notes live inside `Daily/Weekly/` and are named by ISO week (e.g. 2026-W12). You can create them from the Daily Desk calendar by clicking on the week number.
4
+
5
+ **Goals for this week**
6
+
7
+ - [ ] Write more in Octarine
8
+
9
+ **In progress**
10
+
11
+ -
12
+
13
+ **Reflections**
14
+
15
+ - What went well?
16
+ - What could be better?
17
+
18
+ **Notes**
19
+
20
+ -
docs/test/Welcome.md ADDED
@@ -0,0 +1,48 @@
1
+ ### **Welcome to Octarine :)**
2
+
3
+ Is this the 1857345th Note Editing app out there? Maybe? Would I be making promises, that this one is *different*? Haven't you heard that before?
4
+
5
+ [Octarine](https://octarine.app/) is a lot of things, `fundamentally new` is not one of them, and you know what - **That's fine**!
6
+
7
+ It does all the usual things that you'd expect from a note taker, but takes a few workflows that seemed to work with me, and gives it a try.
8
+
9
+ - **Private & Local-First** — Your notes live on your disk in plain Markdown. No servers, no vendor lock-in. If you ever feel like Octarine isn't the one (we hope you don't), you won't lose your notes.
10
+
11
+ - **Multiple Workspaces** — Separate work, personal, and side projects. Each workspace has its own settings, theme, and files. They're just folders on your disk!
12
+
13
+ - **Daily Desk & Weekly Notes** — Not everything needs to be a long thought-out note. Head over to Daily Desk to jot down what's on your mind for the day, and view them in a slick calendar. Weekly notes help you plan and reflect on a bigger scale.
14
+
15
+ - **Wikilinks & Bi-directional Linking** — Type `[[` to link to any note. Backlinks show up automatically so you can always see what links where.
16
+
17
+ - **Ask Octarine** — AI-powered chat that understands your notes. Ask questions, brainstorm, or get help writing.
18
+
19
+ - **Ask Octarine** — Chat with your entire workspace to find things, create notes or gain insights.
20
+
21
+ - **Properties** — Add structured metadata to any note.
22
+
23
+ - **Views** — Organize notes as Kanban boards or tables.
24
+
25
+ - **30+ Themes & Custom Theme Editor** — Pick a theme or design your own.
26
+
27
+ - **Templates & Slash Commands** — Type `/` to access quick actions and insert templates.
28
+
29
+ - **Git Sync & Backup** — Version control your notes and sync across devices.
30
+
31
+ **Keyboard shortcuts to remember**
32
+
33
+ - Press `CMD / Ctrl + K` to access the Command bar.
34
+ - Press `/` for slash commands
35
+ - Press `[[` to insert a wikilink
36
+ - Check all shortcuts from the `?` button on the bottom right
37
+
38
+ For more, visit the [docs](https://docs.octarine.app).
39
+
40
+ **Getting started checklist**
41
+
42
+ - [ ] Open your [[Daily/2026-11-11]] and write something
43
+ - [ ] Create a new note
44
+ - [ ] Create a folder and add a note inside it (right-click for context menu)
45
+ - [ ] Try Ask Octarine from the Companion or sidebar
46
+ - [ ] Pin a note or a folder for quick access
47
+ - [ ] Explore themes in Settings
48
+ - [x] Enjoy Octarine!
skills-lock.json ADDED
@@ -0,0 +1,239 @@
1
+ {
2
+ "version": 2,
3
+ "skills": {
4
+ "ask-matt": {
5
+ "source": "mattpocock/skills",
6
+ "sourceType": "github",
7
+ "skillPath": "skills/engineering/ask-matt/SKILL.md",
8
+ "computedHash": "7ff2383b40fe9d8f3e753d267d964fb2b44d120a948fd2a57c3b26ddfc318370"
9
+ },
10
+ "chief-of-staff": {
11
+ "source": "mattpocock/skills",
12
+ "sourceType": "github",
13
+ "skillPath": "skills/in-progress/chief-of-staff/SKILL.md",
14
+ "computedHash": "dc3348d0f641956ea78dafa037aea745154c516a286ed4156b0c2ec0cbcf581b"
15
+ },
16
+ "claude-handoff": {
17
+ "source": "mattpocock/skills",
18
+ "sourceType": "github",
19
+ "skillPath": "skills/in-progress/claude-handoff/SKILL.md",
20
+ "computedHash": "e903af941877ac195671a1eff550ba42266f5f5a4028ebeae4cd1fec82b88dd4"
21
+ },
22
+ "code-review": {
23
+ "source": "mattpocock/skills",
24
+ "sourceType": "github",
25
+ "skillPath": "skills/engineering/code-review/SKILL.md",
26
+ "computedHash": "ce86b40a3d1648a0018b712f0c70704e6c2316b2a9b9e915ab116916a31273dc"
27
+ },
28
+ "codebase-design": {
29
+ "source": "mattpocock/skills",
30
+ "sourceType": "github",
31
+ "skillPath": "skills/engineering/codebase-design/SKILL.md",
32
+ "computedHash": "d40f025dc1b0f2020663260f38f2bcb8d6ed3523afb11e5fda624b01238677e8"
33
+ },
34
+ "diagnosing-bugs": {
35
+ "source": "mattpocock/skills",
36
+ "sourceType": "github",
37
+ "skillPath": "skills/engineering/diagnosing-bugs/SKILL.md",
38
+ "computedHash": "87c78ae966e591f9ceb177789cc5cc9de69277cd26679ffd36ca5300f430d513"
39
+ },
40
+ "domain-modeling": {
41
+ "source": "mattpocock/skills",
42
+ "sourceType": "github",
43
+ "skillPath": "skills/engineering/domain-modeling/SKILL.md",
44
+ "computedHash": "b78689833404148c769077355e12dbe5ad996a158a1e21e58ddf169e439d9d8c"
45
+ },
46
+ "git-guardrails-claude-code": {
47
+ "source": "mattpocock/skills",
48
+ "sourceType": "github",
49
+ "skillPath": "skills/misc/git-guardrails-claude-code/SKILL.md",
50
+ "computedHash": "7aa92e9d469c6cd0b24ed8accb2e4be681c44c1524d71604c06b4055b7b56482"
51
+ },
52
+ "grill-me": {
53
+ "source": "mattpocock/skills",
54
+ "sourceType": "github",
55
+ "skillPath": "skills/productivity/grill-me/SKILL.md",
56
+ "computedHash": "ab1acb9fbd9eaee03da254abb8a8de228d1e7a07475fe959da4a5eefa34ea4b9"
57
+ },
58
+ "grill-with-docs": {
59
+ "source": "mattpocock/skills",
60
+ "sourceType": "github",
61
+ "skillPath": "skills/engineering/grill-with-docs/SKILL.md",
62
+ "computedHash": "02e258f41d210f9b2e7cce9faf62b3c59e8fcebe5d2736369c3cd07d471324f8"
63
+ },
64
+ "grilling": {
65
+ "source": "mattpocock/skills",
66
+ "sourceType": "github",
67
+ "skillPath": "skills/productivity/grilling/SKILL.md",
68
+ "computedHash": "485451958784497cd4c4dbea13cb5bbb579da58fac0d0e45f3bcb310fab68ac7"
69
+ },
70
+ "handoff": {
71
+ "source": "mattpocock/skills",
72
+ "sourceType": "github",
73
+ "skillPath": "skills/productivity/handoff/SKILL.md",
74
+ "computedHash": "f60a2c3688379b7a306b3a7b8dd4120eab39da44c74fa2cb62d6424935f04aa7"
75
+ },
76
+ "implement": {
77
+ "source": "mattpocock/skills",
78
+ "sourceType": "github",
79
+ "skillPath": "skills/engineering/implement/SKILL.md",
80
+ "computedHash": "560465496ad0669329993bfdd0604e5c93b5c2446309a76f486040010b063908"
81
+ },
82
+ "implement-spec": {
83
+ "source": "mattpocock/skills",
84
+ "sourceType": "github",
85
+ "skillPath": "skills/engineering/implement-spec/SKILL.md",
86
+ "computedHash": "c3474ef320861d793e8b30d41fbdd2cb0ceaa1081bb5c81b7f26c455eb776573"
87
+ },
88
+ "improve-codebase-architecture": {
89
+ "source": "mattpocock/skills",
90
+ "sourceType": "github",
91
+ "skillPath": "skills/engineering/improve-codebase-architecture/SKILL.md",
92
+ "computedHash": "f0820b18426a7d9a6c823a890988ba0ac70bf0fd596d30d7ef07c88558728c23"
93
+ },
94
+ "loop-me": {
95
+ "source": "mattpocock/skills",
96
+ "sourceType": "github",
97
+ "skillPath": "skills/in-progress/loop-me/SKILL.md",
98
+ "computedHash": "5dac8f9919f3e1a528a4f1f00db07c81c3e6092e706376d81c697d16422ab163"
99
+ },
100
+ "migrate-to-shoehorn": {
101
+ "source": "mattpocock/skills",
102
+ "sourceType": "github",
103
+ "skillPath": "skills/misc/migrate-to-shoehorn/SKILL.md",
104
+ "computedHash": "a63549df6d5b5c6595029f8c504ccf31a12f01312f03db70da4b45cb10ba5ca8"
105
+ },
106
+ "pr": {
107
+ "source": "mattpocock/skills",
108
+ "sourceType": "github",
109
+ "skillPath": "skills/engineering/pr/SKILL.md",
110
+ "computedHash": "a66195583d0f9323004cdd4da169f93449071f29023671f3e31a916e740f6861"
111
+ },
112
+ "prototype": {
113
+ "source": "mattpocock/skills",
114
+ "sourceType": "github",
115
+ "skillPath": "skills/engineering/prototype/SKILL.md",
116
+ "computedHash": "1e3ba2202a5b77b8aa50bc4447432331d6e42590e53ec0935689662cfed199ca"
117
+ },
118
+ "research": {
119
+ "source": "mattpocock/skills",
120
+ "sourceType": "github",
121
+ "skillPath": "skills/engineering/research/SKILL.md",
122
+ "computedHash": "7662666af51f8b1672ed7d88360d4b82656da21bb7b11c49e956eeb3036b85d5"
123
+ },
124
+ "retro": {
125
+ "source": "mattpocock/skills",
126
+ "sourceType": "github",
127
+ "skillPath": "skills/engineering/retro/SKILL.md",
128
+ "computedHash": "e260aefb7b75b3548a3ee9883afbf8808e521f2e86feec92399617894f83b7c2"
129
+ },
130
+ "scaffold-exercises": {
131
+ "source": "mattpocock/skills",
132
+ "sourceType": "github",
133
+ "skillPath": "skills/misc/scaffold-exercises/SKILL.md",
134
+ "computedHash": "019bbcc250992c776244aa1c818aed4015364f65bb9d1dbfd3bef9bae196b065"
135
+ },
136
+ "security-audit": {
137
+ "source": "cloudflare/security-audit-skill",
138
+ "sourceType": "github",
139
+ "skillPath": "skills/security-audit/SKILL.md",
140
+ "computedHash": "8513eb3b2c39b8d05ef4f47b32ef4d18280b93a5efb91d8df6272f7435034af5"
141
+ },
142
+ "setup-matt-pocock-skills": {
143
+ "source": "mattpocock/skills",
144
+ "sourceType": "github",
145
+ "skillPath": "skills/engineering/setup-matt-pocock-skills/SKILL.md",
146
+ "computedHash": "9659e7025d4cf1c0a0b40ddff32ed4b8debb87a4b20d7a52ff89c506a638df69"
147
+ },
148
+ "setup-pre-commit": {
149
+ "source": "mattpocock/skills",
150
+ "sourceType": "github",
151
+ "skillPath": "skills/misc/setup-pre-commit/SKILL.md",
152
+ "computedHash": "98523a8db5977c41a095834df8697123bb845ff6ddbb9500733b161f11441a37"
153
+ },
154
+ "setup-ts-deep-modules": {
155
+ "source": "mattpocock/skills",
156
+ "sourceType": "github",
157
+ "skillPath": "skills/in-progress/setup-ts-deep-modules/SKILL.md",
158
+ "computedHash": "8a3136caaea8fa439521917a624496769eba40cf8c59f62b4113a0dc916288a3"
159
+ },
160
+ "tdd": {
161
+ "source": "mattpocock/skills",
162
+ "sourceType": "github",
163
+ "skillPath": "skills/engineering/tdd/SKILL.md",
164
+ "computedHash": "e3e0f78ff1c2d52ffefa0378baa1e80e129d359288cf9a56f4e59afcd2aac86c"
165
+ },
166
+ "teach": {
167
+ "source": "mattpocock/skills",
168
+ "sourceType": "github",
169
+ "skillPath": "skills/productivity/teach/SKILL.md",
170
+ "computedHash": "31bb3eed09dd2787e290e933def99fbf7d65044a29119c224af47c01404ab228"
171
+ },
172
+ "to-questionnaire": {
173
+ "source": "mattpocock/skills",
174
+ "sourceType": "github",
175
+ "skillPath": "skills/productivity/to-questionnaire/SKILL.md",
176
+ "computedHash": "0bcb2b31a45a3d176daa07c16d6532ee7819b802de081090c3fa856702767b13"
177
+ },
178
+ "to-spec": {
179
+ "source": "mattpocock/skills",
180
+ "sourceType": "github",
181
+ "skillPath": "skills/engineering/to-spec/SKILL.md",
182
+ "computedHash": "eb934b5eda9523c7853a2741544bd4721ee1bea471f5a04f8397827f67bdbdda"
183
+ },
184
+ "to-tickets": {
185
+ "source": "mattpocock/skills",
186
+ "sourceType": "github",
187
+ "skillPath": "skills/engineering/to-tickets/SKILL.md",
188
+ "computedHash": "17496514c92954f68eacdf2b1221e2ddb39fa231b83f03c70bc7d4422f704b2d"
189
+ },
190
+ "triage": {
191
+ "source": "mattpocock/skills",
192
+ "sourceType": "github",
193
+ "skillPath": "skills/engineering/triage/SKILL.md",
194
+ "computedHash": "4342a07c9ebe0696713ec93a883c46e56503a587a34d824fabab5ca61e3bdfbb"
195
+ },
196
+ "wait-what": {
197
+ "source": "mattpocock/skills",
198
+ "sourceType": "github",
199
+ "skillPath": "skills/productivity/wait-what/SKILL.md",
200
+ "computedHash": "70c9bf9f5a84b6849760f9492f569d5aa12307a0310323fde5f583144730c26c"
201
+ },
202
+ "wayfinder": {
203
+ "source": "mattpocock/skills",
204
+ "sourceType": "github",
205
+ "skillPath": "skills/engineering/wayfinder/SKILL.md",
206
+ "computedHash": "bd82983c105881f6cb0c15e5d029c0d5fca756939b69eebe94e49003069a276f"
207
+ },
208
+ "wizard": {
209
+ "source": "mattpocock/skills",
210
+ "sourceType": "github",
211
+ "skillPath": "skills/engineering/wizard/SKILL.md",
212
+ "computedHash": "806f7f7461824054ffaf3344e1e56e5e8a42344e22bdf8d22c6a8117eb9b1c38"
213
+ },
214
+ "writing-beats": {
215
+ "source": "mattpocock/skills",
216
+ "sourceType": "github",
217
+ "skillPath": "skills/in-progress/writing-beats/SKILL.md",
218
+ "computedHash": "5af3ce4383f995c76a4780b3d3029af8e9c69aa1a44d57a6c8bc13a820836b8a"
219
+ },
220
+ "writing-for-agents": {
221
+ "source": "mattpocock/skills",
222
+ "sourceType": "github",
223
+ "skillPath": "skills/productivity/writing-for-agents/SKILL.md",
224
+ "computedHash": "e79a2476b2417b228922453478d9505a6b9af19f3a412e560728ce62ed3555ca"
225
+ },
226
+ "writing-fragments": {
227
+ "source": "mattpocock/skills",
228
+ "sourceType": "github",
229
+ "skillPath": "skills/in-progress/writing-fragments/SKILL.md",
230
+ "computedHash": "00d286876c139f3f764e5021923f632c785dba1eb2fd7afdd9f44854a12772d2"
231
+ },
232
+ "writing-shape": {
233
+ "source": "mattpocock/skills",
234
+ "sourceType": "github",
235
+ "skillPath": "skills/in-progress/writing-shape/SKILL.md",
236
+ "computedHash": "7e06f4ca8a96c83b5b9a540c0279e998ba449e74586c77d44f9b8183c1bd8ef8"
237
+ }
238
+ }
239
+ }