@grifhinz/logics-manager 2.2.0 → 2.3.0
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 +60 -1
- package/VERSION +1 -1
- package/clients/README.md +9 -0
- package/clients/shared-web/media/css/board.css +658 -0
- package/clients/shared-web/media/css/details.css +457 -0
- package/clients/shared-web/media/css/layout.css +123 -0
- package/clients/shared-web/media/css/toolbar.css +576 -0
- package/clients/shared-web/media/harnessApi.js +324 -0
- package/clients/shared-web/media/hostApi.js +213 -0
- package/clients/shared-web/media/hostApiContract.js +55 -0
- package/clients/shared-web/media/icon.png +0 -0
- package/clients/shared-web/media/layoutController.js +246 -0
- package/clients/shared-web/media/logics.svg +7 -0
- package/clients/shared-web/media/logicsModel.js +910 -0
- package/clients/shared-web/media/main.css +112 -0
- package/clients/shared-web/media/main.js +3 -0
- package/clients/shared-web/media/mainApp.js +1005 -0
- package/clients/shared-web/media/mainCore.js +604 -0
- package/clients/shared-web/media/mainInteractionHandlers.js +324 -0
- package/clients/shared-web/media/mainInteractions.js +378 -0
- package/clients/shared-web/media/renderBoard.js +3 -0
- package/clients/shared-web/media/renderBoardApp.js +1339 -0
- package/clients/shared-web/media/renderDetails.js +685 -0
- package/clients/shared-web/media/renderMarkdown.js +449 -0
- package/clients/shared-web/media/toolsPanelLayout.js +172 -0
- package/clients/shared-web/media/uiStatus.js +54 -0
- package/clients/shared-web/media/webviewChrome.js +405 -0
- package/clients/shared-web/media/webviewPersistence.js +116 -0
- package/clients/shared-web/media/webviewSelectors.js +491 -0
- package/clients/viewer/README.md +5 -0
- package/clients/viewer/browser-host.js +847 -0
- package/clients/viewer/index.html +237 -0
- package/clients/viewer/viewer.css +433 -0
- package/logics_manager/assist.py +9 -142
- package/logics_manager/assist_handoff.py +132 -0
- package/logics_manager/assist_surface.py +38 -0
- package/logics_manager/cli.py +20 -0
- package/logics_manager/flow.py +126 -24
- package/logics_manager/flow_evidence.py +63 -0
- package/logics_manager/update_check.py +138 -0
- package/logics_manager/viewer.py +533 -0
- package/package.json +12 -6
- package/pyproject.toml +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/AlexAgo83/logics-manager/actions/workflows/ci.yml)
|
|
4
4
|
[](LICENSE)
|
|
5
|
-

|
|
6
6
|

|
|
7
7
|

|
|
8
8
|

|
|
@@ -95,6 +95,7 @@ The CLI is the stable contract for Logics. It supports:
|
|
|
95
95
|
- closing tasks, backlog items, and requests with consistency checks;
|
|
96
96
|
- linting and auditing workflow traceability;
|
|
97
97
|
- exporting indexes, context packs, and graph data;
|
|
98
|
+
- serving a read-only local browser viewer for the Logics corpus;
|
|
98
99
|
- serving the bounded MCP tool surface.
|
|
99
100
|
|
|
100
101
|
Useful commands:
|
|
@@ -105,8 +106,48 @@ logics-manager flow promote request-to-backlog req_001_example
|
|
|
105
106
|
logics-manager flow promote backlog-to-task item_001_example
|
|
106
107
|
logics-manager flow finish task task_001_example
|
|
107
108
|
logics-manager sync context-pack req_001_example --format json
|
|
109
|
+
logics-manager view --open
|
|
110
|
+
logics-manager view --focus req_001_example --read --open
|
|
108
111
|
```
|
|
109
112
|
|
|
113
|
+
### Local Browser Viewer
|
|
114
|
+
|
|
115
|
+
Use the CLI viewer when you want to inspect the Logics corpus outside VS Code:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
logics-manager view --open
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
The viewer starts a localhost-only, read-only browser UI on `127.0.0.1:8765` by default. It shows the same workflow board/list experience as the extension, with search, filters, document previews, corpus insights, lint/audit health, Mermaid rendering, auto-refresh, and an edit shortcut that opens the selected Markdown file in the system editor.
|
|
122
|
+
|
|
123
|
+
Useful options:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
logics-manager view --port 0 --open
|
|
127
|
+
logics-manager view --host 127.0.0.1 --port 9876
|
|
128
|
+
logics-manager view --focus req_001_example --open
|
|
129
|
+
logics-manager view --focus logics/tasks/task_001_example.md --read --open
|
|
130
|
+
logics-manager view --no-open
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Use `--port 0` when the default port is already taken. The viewer is intentionally read-only; use the canonical CLI commands such as `flow promote`, `flow finish`, `lint`, and `audit` for workflow mutations.
|
|
134
|
+
|
|
135
|
+
Focused viewer links can point directly at a corpus item:
|
|
136
|
+
|
|
137
|
+
```text
|
|
138
|
+
http://127.0.0.1:8765/?focus=logics/request/req_001_example.md
|
|
139
|
+
http://127.0.0.1:8765/?focus=logics/request/req_001_example.md&read=1
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
If the viewer server is not already running, start it with the equivalent fallback command:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
logics-manager view --focus logics/request/req_001_example.md --open
|
|
146
|
+
logics-manager view --focus req_001_example --read --open
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
This is the recommended assistant handoff pattern: provide the local viewer link for an already-running viewer and the CLI fallback command for a stopped server. Focus targets accept workflow refs such as `req_001_example`, `item_001_example`, or `task_001_example`, plus repo-relative Logics Markdown paths. Traversal and non-Logics paths are rejected.
|
|
150
|
+
|
|
110
151
|
### CLI Contracts
|
|
111
152
|
|
|
112
153
|
Workflow target arguments accept these forms:
|
|
@@ -347,6 +388,7 @@ Windows notes:
|
|
|
347
388
|
- Create a fixture request with `logics-manager flow new request --title "Smoke test"` and confirm the compact synthetic request shape is generated.
|
|
348
389
|
- Create a backlog item and a task from the UI and confirm markdown is generated.
|
|
349
390
|
- Open `Read` on a Mermaid-bearing doc and confirm the graph is rendered.
|
|
391
|
+
- Run `logics-manager view --port 0 --open`, confirm the browser viewer loads repository docs, then stop it with `Ctrl+C`.
|
|
350
392
|
- Promote request -> backlog and confirm links are updated.
|
|
351
393
|
- Confirm request/backlog/task generation fails fast if a Mermaid signature or traceability block is stale instead of waiting for audit to find it later.
|
|
352
394
|
- Promote backlog -> task and confirm task document is generated.
|
|
@@ -391,6 +433,22 @@ npm run dev
|
|
|
391
433
|
|
|
392
434
|
`npm run dev` requires the `code` CLI on PATH, so the F5 path above remains the safest cross-platform dev entrypoint.
|
|
393
435
|
|
|
436
|
+
### Browser UI Debugging
|
|
437
|
+
|
|
438
|
+
Use the real local viewer for repository data:
|
|
439
|
+
|
|
440
|
+
```bash
|
|
441
|
+
logics-manager view --open
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
Use the mock webview harness only when developing the shared browser/webview UI without VS Code:
|
|
445
|
+
|
|
446
|
+
```bash
|
|
447
|
+
npm run debug:webview
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
The harness runs at `http://localhost:4173/` and supports mock scenarios such as `/?scenario=empty` and `/?scenario=error`. It does not execute real VS Code commands or workflow writes.
|
|
451
|
+
|
|
394
452
|
## Deploy / Release (VSIX)
|
|
395
453
|
|
|
396
454
|
1. Bump the version in `package.json`, `pyproject.toml`, and root `VERSION` when preparing a release manually.
|
|
@@ -446,6 +504,7 @@ If the current plugin version is already published, `logics-manager assist next-
|
|
|
446
504
|
- Logics docs lint: `npm run lint:logics`
|
|
447
505
|
- Logics workflow audit + docs lint: `npm run audit:logics`
|
|
448
506
|
- Strict Logics governance audit: `npm run audit:logics:strict`
|
|
507
|
+
- Local browser viewer smoke: `logics-manager view --port 0 --open`
|
|
449
508
|
- Fast extension-focused local check: `npm run ci:fast`
|
|
450
509
|
- Full CI-equivalent local check: `npm run ci:check`
|
|
451
510
|
- Security audit policy gate: `npm run audit:ci`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.3.0
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Logics Clients
|
|
2
|
+
|
|
3
|
+
This directory separates user-facing clients from the shared Logics runtime.
|
|
4
|
+
|
|
5
|
+
- `vscode/` contains the VS Code extension host implementation.
|
|
6
|
+
- `shared-web/` contains browser/webview assets that can be reused by the VS Code extension and the future local viewer.
|
|
7
|
+
- `viewer/` is reserved for the CLI-launched local browser viewer.
|
|
8
|
+
|
|
9
|
+
The Python CLI/runtime remains in `logics_manager/`.
|