dsh-work-out 0.0.0-stage → 1.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 WangZihuan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,95 @@
1
- # Temporary Holding Version
1
+ # dsh-work-out
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ An DSH Web plugin that adds an **Artifact timeline** panel to the left sidebar.
4
+ It lists every file produced across all conversations in one time-ordered feed,
5
+ and marks the ones that changed or disappeared after they were delivered.
6
+
7
+ ## Where it lives
8
+
9
+ - Left sidebar → **Artifact timeline** (the stacked-sheets icon).
10
+ - The panel opens in the main column; the row shows as selected while it is open.
11
+
12
+ ## What it lists
13
+
14
+ Three signals, all read from the durable Session logs across every
15
+ conversation:
16
+
17
+ | Badge | Source | Meaning |
18
+ | --- | --- | --- |
19
+ | **Delivered** | the `present` tool's `deliverables/presented` events | The model declared the file a deliverable. Keeps its description. |
20
+ | **Written** | successful `write` / `edit` / mutating `str_replace_editor` calls, and the Univer export tools (`univer_export`, `univer_print_pdf`) | The file was materially produced. Only document-like extensions count (`.md`, `.docx`, `.pptx`, `.pdf`, `.xlsx`, `.html`, images, archives, and similar); source code and `.univer` containers are skipped. A call whose result errored contributes nothing. |
21
+ | **Script** | document paths named inside `pwsh` / `bash` / `node` commands | Scripts produce Office documents too. A candidate is admitted only on disk evidence: the file exists and its mtime is at or after one of the commands that name it — so inputs, templates, typos, and failed commands stay out. |
22
+
23
+ The strongest signal wins: a path that was both written and delivered appears
24
+ once, as *Delivered*.
25
+
26
+ ## Reading the list
27
+
28
+ Rows run newest first, grouped by calendar day (Today / Yesterday / dated).
29
+ Each row shows the extension, the name, the directory plus any description,
30
+ its source, its status, and its age.
31
+
32
+ | Colour | State | Meaning |
33
+ | --- | --- | --- |
34
+ | Green | Kept | Still on disk, unmodified since it was produced. |
35
+ | Amber | Changed | Still on disk, but written again after delivery. |
36
+ | Red | Deleted | No longer present at that path; the name is struck through. |
37
+
38
+ Status comes from a live `stat` of the recorded path resolved against that
39
+ conversation's working directory, cached for 15 seconds, so an edit or a
40
+ deletion shows up without re-reading any event log.
41
+
42
+ Hovering or keyboard-focusing a row reveals its actions:
43
+
44
+ - **Preview** — open the file inside DSH, in the right sidebar's document preview
45
+ (the `dsh-resource://file/session/<id>/<path>` address the Host resolves
46
+ against that conversation's workspace). Markdown, HTML, PDF, images, Office
47
+ documents (`.doc`/`.docx`/`.ppt`/`.pptx`), spreadsheets
48
+ (`.xlsx`/`.xls`/`.csv`/`.tsv`) and plain text render there; archives, media and
49
+ the other binary containers are disabled with the reason in the tooltip.
50
+ - **Open** — hand the file to the Host desktop's default application.
51
+ - **Reveal** — show the file in Explorer / Finder.
52
+ - **Copy path** — copy the full absolute path.
53
+ - **Open the conversation** — jump to the conversation that produced it.
54
+
55
+ Open and reveal re-verify the path through the Host filesystem before the
56
+ desktop sees it — the same chain the built-in delivery cards use — and are
57
+ disabled with an explanation on deleted rows or Hosts without a desktop. The
58
+ toolbar filters by state and searches name, path, and conversation title.
59
+
60
+ ## Configuration
61
+
62
+ Set on the plugin row in `cordis.patch.yml`:
63
+
64
+ | Key | Default | Effect |
65
+ | --- | --- | --- |
66
+ | `includeWritten` | `true` | Also list files produced by mutation tools, not only `present` declarations. |
67
+ | `statusTtlMs` | `15000` | How long a file status stays cached before it is re-checked. |
68
+ | `scanTtlMs` | `60000` | Reserved for the catalogue refresh interval. |
69
+
70
+ ## Limits
71
+
72
+ - Only files a conversation recorded through `present` or a supported mutation
73
+ tool are listed. A file created by a shell command is not tracked, because no
74
+ structured record of its path exists in the log.
75
+ - Open and reveal need a serving Host with a desktop; on Headless or remote
76
+ access the actions stay visible but disabled, with the reason in the tooltip.
77
+ - A conversation's artifacts leave the list when its own log is removed;
78
+ archiving a conversation does not remove its log.
79
+ - The first scan after start reads every Session log and reports progress in the
80
+ header; later reads only re-read logs whose revision changed.
81
+ - Relative recorded paths resolve against that conversation's working
82
+ directory. The panel never writes, moves, or deletes anything.
83
+
84
+ ## Install
85
+
86
+ ```sh
87
+ dsh plugin --profile <name> add ./dsh-work-out
88
+ ```
89
+
90
+ Or install the directory through **Plugins → Add plugin**. A restart is
91
+ required, because the bundle's Host and Client halves mount at boot.
92
+
93
+ ## License
94
+
95
+ MIT