pi-weave 0.3.9 → 0.3.11

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/README.md CHANGED
@@ -157,11 +157,15 @@ Renaming or moving a note rewrites its inbound links automatically, so its backl
157
157
 
158
158
  Browse and search your notes, follow links, or explore the graph. Use tabs and split panes to keep related notes side by side.
159
159
  Notes update within a couple of seconds as your agent writes them.
160
- While your agent works, the notes it searches, reads, and writes light up in the tree and graph, and fade after about a minute.
161
- The **This turn** list in the Context sidebar shows those steps in order; click an earlier turn to replay it.
160
+ While your agent works, the notes it searches, reads, and writes light up in the graph, and fade after about a minute. When it searches,
161
+ the graph view lights the results up the way your own search does, until its next request.
162
+ The **This turn** list in the Context card shows those steps in order; click an earlier turn to replay it. Context floats over the page's
163
+ right margin: fold it with `]`, or pin it to dock it as a column.
164
+ In search, `Tab` switches between notes, code, and tags, and `⇧↵` lights every result up in the graph.
162
165
 
163
166
  Ask your agent to write, organize, and connect notes, or click **New note** on an empty tab to start one yourself.
164
- Click **Edit** to change Markdown and `⌘S` / `Ctrl S` to save. Your original words in `## Raw` stay intact.
167
+ Click **Edit** to change Markdown. Edits save themselves after a short pause (or `⌘S` / `Ctrl S` right away), and **Done** closes the
168
+ editor. Your original words in `## Raw` stay intact.
165
169
  Tabs, layout, and settings restore when you return and survive package updates for the same vault and repository;
166
170
  unsaved drafts last only while the browser stays open.
167
171
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-weave",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
4
4
  "description": "Local-first Markdown memory and knowledge graph for Pi and OpenCode: preserve decisions, recall sessions, and explore notes with code.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -285,6 +285,11 @@ function emptyRail(reason: string): ContextModel {
285
285
  * a rail that changed as the clock moved would re-render three columns for no
286
286
  * reason.
287
287
  */
288
+ /** How many rows the rail holds in all, for the Context card's badge and folded pill. */
289
+ export function contextCount(model: ContextModel): number {
290
+ return model.groups.reduce((total, group) => total + group.count, 0) + model.tagsCount;
291
+ }
292
+
288
293
  export function contextModel(payload: GraphPayload | null, selectedId: string | null): ContextModel {
289
294
  if (payload === null) return emptyRail(RAIL_EMPTY.loading);
290
295
  if (selectedId === null) return emptyRail(RAIL_EMPTY.noSelection);