@grifhinz/logics-manager 2.7.0 → 2.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/README.md +59 -10
- package/VERSION +1 -1
- package/clients/viewer/browser-host.js +1620 -134
- package/clients/viewer/index.html +2 -0
- package/clients/viewer/viewer.css +542 -1
- package/logics_manager/cli.py +22 -20
- package/logics_manager/flow.py +61 -1
- package/logics_manager/sync.py +47 -19
- package/logics_manager/viewer.py +1206 -20
- package/package.json +2 -1
- package/pyproject.toml +1 -1
package/README.md
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/AlexAgo83/logics-manager/actions/workflows/ci.yml)
|
|
4
4
|
[](LICENSE)
|
|
5
|
-

|
|
6
6
|

|
|
7
7
|

|
|
8
|
-

|
|
9
9
|
|
|
10
10
|
`logics-manager` is a local workflow runtime for projects that keep their delivery memory in Markdown.
|
|
11
11
|
|
|
@@ -111,14 +111,36 @@ Useful commands:
|
|
|
111
111
|
|
|
112
112
|
```bash
|
|
113
113
|
logics-manager flow list
|
|
114
|
+
logics-manager flow show req_001_example
|
|
114
115
|
logics-manager flow promote request-to-backlog req_001_example
|
|
115
116
|
logics-manager flow promote backlog-to-task item_001_example
|
|
116
117
|
logics-manager flow finish task task_001_example
|
|
117
|
-
logics-manager sync
|
|
118
|
+
logics-manager sync read-doc req_001_example --max-chars 6000
|
|
119
|
+
logics-manager sync context-pack req_001_example task_001_example --format json
|
|
120
|
+
logics-manager sync refresh-mermaid-signatures task_001_example
|
|
121
|
+
logics-manager flow closeout task_001_example --validation-command "pytest tests" --validation-result passed --lint --audit
|
|
118
122
|
logics-manager view --open
|
|
119
123
|
logics-manager view --focus req_001_example --read --open
|
|
120
124
|
```
|
|
121
125
|
|
|
126
|
+
### Agent workflow cookbook
|
|
127
|
+
|
|
128
|
+
For bounded workflow inspection, prefer `logics-manager flow show <ref>` or
|
|
129
|
+
`logics-manager sync read-doc <ref>` before reading Markdown directly. Both
|
|
130
|
+
commands include useful body content in text mode and keep JSON output available
|
|
131
|
+
with `--format json`.
|
|
132
|
+
|
|
133
|
+
For linked context, use `logics-manager sync context-pack <refs...>` with a
|
|
134
|
+
small set of request, backlog, or task refs. The command deduplicates each
|
|
135
|
+
ref's direct neighborhood and supports `--mode diff-first` when recent changes
|
|
136
|
+
matter.
|
|
137
|
+
|
|
138
|
+
For targeted hygiene repair, use
|
|
139
|
+
`logics-manager sync refresh-mermaid-signatures <refs-or-paths...>` or
|
|
140
|
+
`--changed-only` to avoid unrelated workflow diffs. For end-of-delivery cleanup,
|
|
141
|
+
use `logics-manager flow closeout <task>` with validation evidence plus
|
|
142
|
+
`--lint --audit` when you want the command to run the gates before reporting.
|
|
143
|
+
|
|
122
144
|
### Local Browser Viewer
|
|
123
145
|
|
|
124
146
|
Use the CLI viewer when you want to inspect the Logics corpus outside VS Code:
|
|
@@ -127,7 +149,29 @@ Use the CLI viewer when you want to inspect the Logics corpus outside VS Code:
|
|
|
127
149
|
logics-manager view --open
|
|
128
150
|
```
|
|
129
151
|
|
|
130
|
-
The viewer starts a localhost-only
|
|
152
|
+
The viewer starts a localhost-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.
|
|
153
|
+
|
|
154
|
+
Viewer preferences are stored locally in the browser profile. Auto-refresh
|
|
155
|
+
restores the interval chosen in the viewer unless the launch command explicitly
|
|
156
|
+
sets `--refresh-interval`, in which case that launch value controls only the
|
|
157
|
+
current session. The CDX status table has compact controls for column visibility
|
|
158
|
+
and provider filtering; `BLOCK` and `CR` are hidden by default, and provider
|
|
159
|
+
filtering defaults to all providers so newly discovered providers remain visible.
|
|
160
|
+
When workspace inspection is available, the topbar shows an `Explorer` view
|
|
161
|
+
before `Git`; it provides a read-only file tree and bounded previews for text,
|
|
162
|
+
directories, images, oversized files, and unsupported binary files.
|
|
163
|
+
|
|
164
|
+
The CDX missions panel includes guarded workflows for audits, release reviews,
|
|
165
|
+
turning a free-form wish into a structured Logics request, preparing a corpus
|
|
166
|
+
plan, and preparing a guarded pre-release from an editable `vX.X.X` version.
|
|
167
|
+
For full-audit and release-review, the main write checkbox allows CDX to write
|
|
168
|
+
the mission corpus/report; direct repository fixes require the separate `Fix
|
|
169
|
+
directly` checkbox and skip the corpus/report artifact. Write-capable missions
|
|
170
|
+
must report changed files and validation evidence. The corpus-ready mission asks
|
|
171
|
+
CDX for allowed corpus actions first; the corpus is updated when those returned
|
|
172
|
+
actions are applied explicitly. The pre-release mission may update release
|
|
173
|
+
metadata and create the matching changelog, but must not tag, push, publish,
|
|
174
|
+
upload assets, or create a GitHub release.
|
|
131
175
|
|
|
132
176
|
Useful options:
|
|
133
177
|
|
|
@@ -139,7 +183,7 @@ logics-manager view --focus logics/tasks/task_001_example.md --read --open
|
|
|
139
183
|
logics-manager view --no-open
|
|
140
184
|
```
|
|
141
185
|
|
|
142
|
-
Use `--port 0` when the default port is already taken.
|
|
186
|
+
Use `--port 0` when the default port is already taken. Direct Logics workflow mutations still route through canonical CLI commands such as `flow promote`, `flow finish`, `lint`, and `audit`; guided CDX missions may edit repository files only when the mission's file-write checkbox is enabled.
|
|
143
187
|
|
|
144
188
|
Focused viewer links can point directly at a corpus item:
|
|
145
189
|
|
|
@@ -554,20 +598,25 @@ If the current plugin version is already published, `logics-manager assist next-
|
|
|
554
598
|
- Logics docs lint: `npm run lint:logics`
|
|
555
599
|
- Logics workflow audit + docs lint: `npm run audit:logics`
|
|
556
600
|
- Strict Logics governance audit: `npm run audit:logics:strict`
|
|
601
|
+
- README metadata drift check: `npm run docs:check`
|
|
557
602
|
- Local browser viewer smoke: `logics-manager view --port 0 --open`
|
|
558
603
|
- Fast extension-focused local check: `npm run ci:fast`
|
|
559
604
|
- Full CI-equivalent local check: `npm run ci:check`
|
|
560
605
|
- Security audit policy gate: `npm run audit:ci`
|
|
561
606
|
|
|
562
|
-
`npm run audit:logics` uses the default active-work profile. It blocks correctness and traceability failures, but reports early companion-doc polish such as missing overview Mermaid diagrams as warnings so drafting and agent handoffs can continue.
|
|
607
|
+
`npm run audit:logics` uses the default active-work profile. It blocks correctness and traceability failures with a nonzero process exit, but reports early companion-doc polish such as missing overview Mermaid diagrams as warnings so drafting and agent handoffs can continue.
|
|
608
|
+
|
|
609
|
+
`npm run audit:logics:strict` uses the strict governance profile. Use it before release or governance review when companion docs must be complete and warning-class findings should be resolved. Strict governance findings are advisory to active implementation until you choose the strict command; the standard audit remains the mandatory day-to-day gate.
|
|
610
|
+
|
|
611
|
+
`logics-manager audit --format json` and `logics-manager lint --format json` expose `issue_count`, `warning_count`, `strict_count`, `finding_count`, `can_continue`, and `release_ready`. Agents should treat `issue_count > 0` or `can_continue: false` as blocking active work. Treat `release_ready: false` as a signal that cleanup remains before release-grade validation, not as a standard-audit process failure when there are warnings only.
|
|
563
612
|
|
|
564
|
-
`npm run
|
|
613
|
+
`npm run ci:check` mirrors the blocking repository CI contract, including Logics strict-status lint, request auto-close sync verification, workflow audit, README badge drift detection, Python tests, CLI smoke checks, TypeScript validation, extension tests, local viewer smoke, and VSIX packaging.
|
|
565
614
|
|
|
566
|
-
`
|
|
615
|
+
`npm run audit:ci` enforces the repository audit policy locally. It runs `npm audit --json` against the configured npm registry, blocks new actionable vulnerabilities, and only allows the explicitly documented temporary exceptions tracked in the backlog. If the registry is unreachable, the command fails as `registry unavailable` rather than reporting a clean advisory state. `npm run package:ci` is local-only package validation and does not require registry access after dependencies are installed.
|
|
567
616
|
|
|
568
|
-
`npm run
|
|
617
|
+
`npm run test:viewer-smoke` writes `artifacts/local-viewer-smoke/summary.json`. A localhost socket bind denial is recorded as an explicit skipped result. CI still has non-skipped coverage for the viewer path: Linux/macOS-capable environments exercise Chrome or the JSDOM fallback, while Windows CI runs a server/API smoke that proves the shell and `/api/items` path without launching a browser.
|
|
569
618
|
|
|
570
|
-
`
|
|
619
|
+
Oversized runtime, viewer, and test files are tracked through `logics/architecture/adr_020_split_the_oversized_plugin_and_workflow_surfaces_into_focused_modules.md`. The decomposition rule is correctness-first: extract pure helpers and API contracts before cosmetic file-size work, keep entrypoints thin, and cover each seam with targeted Python, Vitest, or smoke tests before moving on.
|
|
571
620
|
|
|
572
621
|
CI runs compile, lint, tests, Logics docs lint, and VSIX packaging validation on every `push` and `pull_request` via `.github/workflows/ci.yml`.
|
|
573
622
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.8.1
|