dsh-timeback 0.6.1 → 0.7.1
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 +49 -18
- package/client.js +1494 -35
- package/docs/MARKET.md +2 -2
- package/docs/PUBLISHING.md +11 -8
- package/index.js +6 -1
- package/package.json +1 -1
- package/src/notes.js +120 -1
- package/src/service.js +7 -0
package/README.md
CHANGED
|
@@ -103,7 +103,7 @@ desktop app):
|
|
|
103
103
|
```bash
|
|
104
104
|
# From npm (published: https://www.npmjs.com/package/dsh-timeback)
|
|
105
105
|
dsh plugin --profile web add dsh-timeback
|
|
106
|
-
dsh plugin --profile web add dsh-timeback@0.
|
|
106
|
+
dsh plugin --profile web add dsh-timeback@0.7.1 # pin a release
|
|
107
107
|
|
|
108
108
|
# Straight from GitHub (no npm release needed)
|
|
109
109
|
dsh plugin --profile web add github:<owner>/dsh-timeback
|
|
@@ -168,22 +168,53 @@ workspace** under `<DSH_HOME>/timeback/repos/<hash>/`. The workspace's own `.git
|
|
|
168
168
|
commits and refs are never read or written. `node_modules/`, virtualenvs and
|
|
169
169
|
caches are excluded by default (configurable), keeping snapshots small and fast.
|
|
170
170
|
|
|
171
|
-
## Notes board (记录板)
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
171
|
+
## Notes board (记录板 · sticky notes)
|
|
172
|
+
|
|
173
|
+
The board is a **sticky-note canvas** with a graph-paper background:
|
|
174
|
+
|
|
175
|
+
- **Movable sticky notes** — every Markdown note is a card you can drag around the
|
|
176
|
+
grid; positions and colours are remembered per board.
|
|
177
|
+
- **Drawing tools** — pen with an adjustable **size slider (1–8 px)**, eraser,
|
|
178
|
+
a dedicated **colour box** (native picker, R/G/B sliders, HEX field, common
|
|
179
|
+
colours and a **recent list that only records colours you actually drew with** —
|
|
180
|
+
dragging the RGB sliders does not pollute it — plus an **EyeDropper** screen
|
|
181
|
+
sampler where supported; the button always responds and explains when the
|
|
182
|
+
browser cannot sample the screen, with the HEX/system picker as fallback)
|
|
183
|
+
and one grouped **常用图形** dropdown (rectangle, ellipse, line, arrow, triangle;
|
|
184
|
+
hold Ctrl/Shift while dragging to constrain:
|
|
185
|
+
rectangles/ellipses become square/circular, lines/arrows snap to 45°
|
|
186
|
+
directions, including diagonals). A **“便签可画” switch** decides whether the
|
|
187
|
+
pen/shape tools may draw on sticky notes or only on the grid. Drawings are stored
|
|
188
|
+
with the board and **roll back with a rewind** just like the Markdown entries.
|
|
189
|
+
Pen strokes and shapes can **cross the sticky boundary** (start on the grid and
|
|
190
|
+
continue onto a note, or the reverse). A pen stroke is split at the crossing
|
|
191
|
+
point with no gap, and a shape is drawn on **both** the grid and every sticky it
|
|
192
|
+
crossed (each layer clips its own copy).
|
|
193
|
+
With the Move tool, dragging empty grid pans the canvas; on open the view
|
|
194
|
+
**auto-fits** every note and stroke (zoom + scroll) and the **自动调整** button
|
|
195
|
+
recomputes that fit whenever the board grows); stickies drag under the cursor
|
|
196
|
+
and have a bottom-right **resize handle** (sizes are saved with the board). The canvas is a
|
|
197
|
+
4000×3000 grid that scrolls with the content. **打开 md**
|
|
198
|
+
opens a large Markdown reader overlay.
|
|
199
|
+
- **New sticky** — the “新建便签” button opens the centred Markdown editor
|
|
200
|
+
(resizable dialog); saving creates a note and places a sticky card.
|
|
201
|
+
- **Session notes are hyperlink stickies** — when the model writes a note through
|
|
202
|
+
`timeback_note`, it is created as a Markdown file and appears on the board as a
|
|
203
|
+
compact 🔗 **link sticky**; clicking it reveals the note.
|
|
204
|
+
- **Graph links (路径)** — every sticky has four anchor points (top/right/bottom/
|
|
205
|
+
left). Pick the 🔗 **路径** tool, drag from one anchor to another sticky and the
|
|
206
|
+
two notes become connected by a curved path; the same anchor pair always renders
|
|
207
|
+
the same curve in both directions (A→B and B→A overlap exactly). Links are stored
|
|
208
|
+
as board edges, roll back with rewinds, and can be deleted by clicking them (or
|
|
209
|
+
with **清路径**).
|
|
210
|
+
- **Markdown below the canvas** — the bottom pane always shows the current board
|
|
211
|
+
contents fully rendered (`#`/lists/code/bold/links…), with edit/delete/open
|
|
212
|
+
actions, so the Markdown documents stay readable even when the canvas is full.
|
|
213
|
+
|
|
214
|
+
Every board change (notes, layout, drawings) is a numbered board revision and is
|
|
215
|
+
captured by checkpoints: rewinding restores the sticky layout and drawings at that
|
|
216
|
+
point together with the conversation and files. History lives under
|
|
217
|
+
`<DSH_HOME>/timeback/notes-history/`.
|
|
187
218
|
|
|
188
219
|
## Using it
|
|
189
220
|
|
|
@@ -285,7 +316,7 @@ Session's working directory, then reload the plugin (config changes remount it).
|
|
|
285
316
|
|
|
286
317
|
## Verification status
|
|
287
318
|
|
|
288
|
-
- Host + client tests (
|
|
319
|
+
- Host + client tests (49 cases, `npm test`) cover snapshot/restore semantics
|
|
289
320
|
(add/edit/delete/symlink/mode, delete-extra policy, nested repositories,
|
|
290
321
|
file↔directory collisions, refusal to delete untracked content blocking a
|
|
291
322
|
restore, excludes, missing trees), registry persistence/trimming, and a
|