Skip to content

PW-17: publish ./powerwall - #48

Merged
Bre77 merged 2 commits into
mainfrom
fm/nlib-pw17-publish-powerwall
Nov 3, 2026
Merged

Bre77 merged 2 commits into
mainfrom
fm/nlib-pw17-publish-powerwall

Conversation

@Bre77

@Bre77 Bre77 commented Nov 3, 2026

Copy link
Copy Markdown
Member

Adds the ./powerwall entry to tsdown.config.ts and package.json exports, in the shape of the existing entries. The read-only check passed on a real gateway in #47.

  • Drops the PW-17 gate from scripts/parity.ts and fixes the status text in README.md, docs/powerwall.md and AGENTS.md.
  • Adds ./powerwall to the ESM and CJS consumer smoke tests.
  • Changes the docs-samples negative test to use a path that is not exported.
  • Adds a minor changeset. No release is cut and the held version-packages PR is untouched.

Checks run locally: build, both tsc projects, attw, both consumers, test/docs-samples.test.ts. No gateway commands. No write has run from Node on real hardware.

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 39 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 93 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML; Path: .coderabbit.yaml
  • Review profile: CHILL
  • Plan: Team
  • Run ID: cd206e8a-ee4c-4cfd-8f5e-871ccc25ccd1
Commits

Reviewing files that changed from the base of the PR and between f8ba4b9 and bb5ed15.

Files selected for processing: 1
  • scripts/parity.ts
Walkthrough

The package now builds and exports ./powerwall for ESM and CommonJS, with declaration paths. The parity script treats it as a published entry. Consumer tests and documentation reflect the export; the release entry records a read-only check on a real gateway and unverified Node writes.

Changes: Powerwall publication

Layer / File(s) Summary
Build, export, and parity contract
tsdown.config.ts, package.json, scripts/parity.ts
The build and package export maps include ./powerwall. The parity script treats it as a published entry and removes its separate gated-entry handling.
Consumer checks and publication status
test/consumers/*, test/docs-samples.test.ts, .changeset/powerwall-publish.md, AGENTS.md, README.md, docs/powerwall.md
CommonJS and ESM smoke tests check the Powerwall export. Documentation and the release entry state that it is published and report the real-gateway read-only check.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Possibly related PRs

Merge Risk: Moderate · previous review f8ba4

The lint failure blocks CI checks; remove the unused variable before merging.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies the primary change: publishing the ./powerwall entry.
Description check Passed The description directly explains the export changes, documentation updates, tests, validation, and release status.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 3 functions across 5 files. (5 skipped: 5 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML; Path: .coderabbit.yaml
  • Review profile: CHILL
  • Plan: Team
  • Run ID: 46606ad9-6abe-4d9a-8a5f-181d9d7e16fc
Commits

Reviewing files that changed from the base of the PR and between d65a5d7 and f8ba4b9.

Files selected for processing: 10
  • .changeset/powerwall-publish.md
  • AGENTS.md
  • README.md
  • docs/powerwall.md
  • package.json
  • scripts/parity.ts
  • test/consumers/cjs.cjs
  • test/consumers/esm.mjs
  • test/docs-samples.test.ts
  • tsdown.config.ts

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

@coderabbitai coderabbitai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Fix comments: Fix CodeRabbit comments on this PR

Comment thread scripts/parity.ts Resolved
@Bre77
Bre77 merged commit 2cec6c8 into main Nov 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant