@kioju/dsh-cognitive-dashboard 0.0.0-stage → 0.8.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 +21 -0
- package/README.md +43 -2
- package/client.js +1924 -0
- package/cordis.patch.yml +13 -0
- package/docs/DESIGN.md +73 -0
- package/docs/DETAIL.md +25 -0
- package/icon.svg +6 -0
- package/index.js +615 -0
- package/locale/en.json +7 -0
- package/locale/ja.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +71 -6
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 kiojuvr
|
|
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,44 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-cognitive-dashboard
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A user-facing **cognitive memory** view for the cognitive layer: the objective tree, the current task and other open work, findings, and the recall block a session starts from, shown in the DSH Web GUI.
|
|
4
|
+
|
|
5
|
+
The Web client adds a read-only **Cognition** tab next to Chat and Trajectory. The dashboard draws the objective tree from the `cognitiveGraph` service provided by `@kioju/dsh-cognitive-model`. If the model plugin is not installed in the profile, the dashboard says so and does not draw a tree. It reads findings directly from the workspace ledger (`.dsh/cognitive-findings/findings.json`).
|
|
6
|
+
|
|
7
|
+
The last card shows the **recall block** verbatim, preserving its indentation and line breaks. It uses the text provided by `@kioju/dsh-cognitive-model` and does not include the per-session bird's-eye check (`BIRDSEYE`).
|
|
8
|
+
|
|
9
|
+
## Design
|
|
10
|
+
|
|
11
|
+
The view follows the Digital Agency dashboard design guide: the objective tree is the whole picture and comes first, then the current task and the other open work as context, then the open findings, then the recall block as the material behind them. There is no page verdict, no score and no threshold. Absence is shown as `not recorded` or `could not read`, never as success. Status is carried by a glyph and a word as well as a color.
|
|
12
|
+
|
|
13
|
+
The objective tree places the root at the centre and arranges the other nodes in rings by depth. Node size shows **investment** relative to the largest branch: linked tasks and findings, plus commits touching the node's paths. If Git cannot read the history for a path, the dashboard marks the commit count as a lower bound and identifies the affected path. A ring around each node shows **acceptance**: the share of recorded milestones that are met.
|
|
14
|
+
|
|
15
|
+
The current path is highlighted in the tree and repeated as a breadcrumb. Select a node to see its tasks, open findings, implementation paths, docs, investment breakdown, milestones and last activity. The tree supports keyboard navigation, search, zoom, pan and collapse.
|
|
16
|
+
|
|
17
|
+
See [`docs/DESIGN.md`](docs/DESIGN.md) for layout and accessibility choices and design history.
|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
In DSH, open **Plugins**, choose **Add plugin**, and enter
|
|
22
|
+
`@kioju/dsh-cognitive-dashboard`. From a shell the same install is
|
|
23
|
+
`dsh plugin add @kioju/dsh-cognitive-dashboard`. The plugin is enabled when it is added;
|
|
24
|
+
switch it on in **Plugins** if it is not.
|
|
25
|
+
|
|
26
|
+
The package is its own bundle (`dsh.bundle.patch`), and the shared library
|
|
27
|
+
`@kioju/dsh-cognitive-core` arrives as an ordinary dependency — no checkout, no build
|
|
28
|
+
step, nothing to place beside it. The browser half (`dsh.client`) ships with the
|
|
29
|
+
package; reload the page after an update.
|
|
30
|
+
|
|
31
|
+
The other two plugins install the same way: `@kioju/dsh-cognitive-model` (the graph and
|
|
32
|
+
the recall block the last card shows) and `@kioju/dsh-cognitive-findings` (the findings
|
|
33
|
+
ledger). The dashboard draws its tree from the model, so install that too.
|
|
34
|
+
|
|
35
|
+
## Test
|
|
36
|
+
|
|
37
|
+
`npm install` also installs the test dependencies (react, react-dom, jsdom). `npm test` runs two files: `test/host.test.mjs` drives the Host projection against a graph snapshot, the recall block it carries, and the absent/missing/error states, and `test/render.test.mjs` loads `client.js` the way the DSH client loader does, renders it with jsdom, and checks the radial tree, the node panel, the keyboard behaviour, search/zoom/collapse, a deeper tree, the empty-workspace state, the recall block shown verbatim with its four absences kept apart, the graph-sourced description, the missing-model state, the absence of the composer dock card, and the `認知` tab title.
|
|
38
|
+
|
|
39
|
+
## Related
|
|
40
|
+
|
|
41
|
+
- `@kioju/dsh-cognitive-model` — the graph the tree is drawn from and the recall block the last card shows: objectives, components, tasks, the epistemic record and the world model, projected from an event log. The dashboard reads its `cognitiveGraph` service.
|
|
42
|
+
- `@kioju/dsh-cognitive-findings` — writes the findings ledger.
|
|
43
|
+
|
|
44
|
+
The full behavior and limitations are in [`docs/DETAIL.md`](docs/DETAIL.md).
|