chore: 0.5.4 cleanup, documentation refresh, and packaging metadata sync - #25
Open
TheStreamCode wants to merge 4 commits into
Open
chore: 0.5.4 cleanup, documentation refresh, and packaging metadata sync#25TheStreamCode wants to merge 4 commits into
TheStreamCode wants to merge 4 commits into
Conversation
The dashboard webview never reads the per-model `quotas` rows: they are only used by the extension host to derive the daily request window, and `webview/types.ts` deliberately omits them. They were still serialized into every `postMessage` and persisted through `vscode.setState`, so the host state is now projected down to what the webview renders before it crosses the boundary. Also remove code that no longer runs: - `summarizeStatusBar` and its formatting helper were superseded by `summarizeStatusBarCompact` in 0.4.x and reachable only from the test suite. The helper also carried a dead `includePrefix` branch that selected between two identical strings. - `webview/index.html` was neither compiled nor packaged; the webview markup is generated by `ChutesWebviewProvider` with a per-load CSP nonce. The three tests that covered the removed helper are replaced by tests that pin the same user-facing guarantees on the compact summary the status bar actually renders: unverified request usage shows `--` rather than a misleading `0`, and a zero request limit shows as unlimited. Ignore rules pick up local build and tooling artifacts, and the VSIX no longer ships `CITATION.cff`, which is repository metadata. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
`README.md` gains a requirements section, the Open VSX install path, the real development commands taken from `package.json`, and the repository layout. `AGENTS.md` is rewritten as a project-specific guide: architecture and the extension-host/webview split, verified commands, generated files and assets that must not be edited, the security rules around the API key and the webview boundary, compatibility constraints, the mandatory validation gates, and the manual release and publishing sequence. `docs/superpowers/` held the April 2026 pre-implementation plan and design notes. They describe a scope the shipped extension no longer matches — a quotas table in the dashboard, a `GET /model_aliases/` data source, a `webview/index.html` entry point — and they embed directives for a specific agent tool. Nothing references them. They remain available in the Git history. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Patch release: cleanup, documentation, and packaging metadata only. No change to commands, settings, API endpoints, or dashboard behavior. `CITATION.cff` had drifted to 0.5.2 and now tracks the released version, with the release date, software type, and repository metadata added. `allowScripts` records the two dependency install scripts that were reviewed and approved through `npm approve-scripts`, so `npm ci` stays deterministic on npm 11 and later, where unreviewed install scripts are first warned about and then blocked. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Maintenance pass for
0.5.4: dead code removal, a smaller webview state message, documentation refresh, and synchronized release/package metadata. No commands, settings, API endpoints, or dashboard behavior change; this remains a backward-compatible patch release.Changes
Code
quotasrows that it never renders; the host still uses them to derive the daily request window.summarizeStatusBarhelper and tests that exercised only dead code; the active compact status-bar behavior is now tested directly.webview/index.html; production markup continues to be generated byChutesWebviewProviderwith a per-load CSP nonce.Tests and release consistency
src/test/webviewState.test.tsfor state projection and host-state immutability.src/test/releaseMetadata.test.tsto requirepackage.json, both root lockfile version fields, andCITATION.cffto stay aligned.package-lock.jsondrift from0.5.3to0.5.4.Documentation and repository hygiene
README.mdwith requirements, Open VSX installation, verified development commands, and repository layout.AGENTS.mdas a project-specific guide covering architecture, generated files/assets, compatibility, security boundaries, validation gates, and the manual release sequence.docs/superpowers/; they describe an unshipped architecture, are unreferenced, and remain recoverable from Git history.CITATION.cff; added reviewed npmallowScripts; excluded repository-only citation metadata from the VSIX; expanded local artifact ignores.Verification
npm cimikesoft.chutes-usage-vscode@0.5.4Recorded local results on Windows 11:
npm run preflight— exit 0npm audit --audit-level=moderate— 0 vulnerabilitieschutes-usage-vscode-0.5.4.vsix— 32 files, 286,539 bytes (279.82 KB)059CF3CA225724ED05C5239FEF51B1CA6BD9AADDD8FEE325F2F0A8FAF2BC91CFmikesoft.chutes-usage-vscode@0.5.4out/,media/, and user-facing root documents only; no source tests, source maps,node_modules,.env, credential files, or secret-pattern matches1.131.0using isolated user-data and extensions directories; temporary profile removed afterwardThe two unchecked checks require a real
CHUTES_KEY, which is not present in this environment. Automated webview presentation, bootstrap, message-validation, and state-projection suites cover the boundary changed by this PR.Privacy and security
Privacy is strictly reduced: per-model quota rows no longer cross the extension-host/webview boundary or enter persisted webview state. CSP nonce handling, validated messages/cached state,
SecretStorage, and thehttps://chutes.aiexternal-link allowlist remain intact. No new endpoint or permission was added.Release notes
package.json,package-lock.json,CITATION.cff, andCHANGELOG.mdall state0.5.4.