Skip to content

chore(deps): update @passiveintent/core to latest version in demo pac… - #102

Merged
purushpsm147 merged 3 commits into
mainfrom
fix-demo
Apr 8, 2026
Merged

purushpsm147 merged 3 commits into
mainfrom
fix-demo

Conversation

@purushpsm147

@purushpsm147 purushpsm147 commented Apr 8, 2026 •

Copy link
Copy Markdown
Collaborator

This pull request updates the dependency versions for the @passiveintent/core and @passiveintent/react packages in both the demo and demo-react projects to always use the latest available versions.

Dependency version updates:

  • Updated @passiveintent/core and @passiveintent/react dependencies in demo-react/package.json to use the "latest" version instead of a fixed version range.
  • Updated @passiveintent/core dependency in demo/package.json to use the "latest" version instead of a fixed version range.…kages

Description

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactor / chore

Checklist

  • My code follows the project's style guidelines
  • I have run npm run lint and npm run typecheck locally
  • I have added/updated tests that prove my fix or feature works
  • All existing tests pass (npm run test:unit -w @passiveintent/core)
  • I have updated documentation where applicable

Summary by CodeRabbit

  • Chores

    • Demo projects now track the latest core (and React) package releases instead of pinned ranges.
    • Added automated post-release lockfile refresh and commit to keep installs reproducible after publishing.
  • Documentation

    • Updated publishing guidance to reflect demo dependency handling and the new post-publish lockfile step.

Copilot AI review requested due to automatic review settings April 8, 2026 11:02
@coderabbitai

coderabbitai Bot commented Apr 8, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Demo package.json files were changed to use the latest tag for passiveintent dependencies; a new GitHub Actions workflow was added to refresh and commit package-lock.json after releases; PUBLISHING.md was updated to require keeping demos on latest and to document the post-publish lockfile step.

Changes

Cohort / File(s) Summary
Demo dependency updates
demo-react/package.json, demo/package.json
Replaced pinned semver (^1.0.0) with the unpinned latest tag for @passiveintent/core and @passiveintent/react (React demo). Review impact on reproducibility and demo CI.
Post-publish workflow
.github/workflows/post-publish-lockfile.yml
New GitHub Actions workflow: triggers on release tags, checks out main, sets Node.js 22, runs npm install --package-lock-only, commits and pushes package-lock.json only if changed. Inspect token permissions and branch push behavior.
Documentation
PUBLISHING.md
Removed prior instructions to adjust demo dependency ranges per release; added directive to keep demos pinned to latest and to refresh/commit package-lock.json after publishing. Verify CI expectations and docs accuracy.

Sequence Diagram(s)

sequenceDiagram
    participant Release as "Release Tag (push)"
    participant GH_Actions as "GitHub Actions (post-publish)"
    participant Repo as "Repository (main branch)"
    participant npm as "npm (install / package-lock)"
    participant Git as "Git (commit & push)"

    Release->>GH_Actions: Trigger workflow (tag v*)
    GH_Actions->>Repo: Checkout main
    GH_Actions->>npm: Run `npm install --package-lock-only`
    npm-->>GH_Actions: Updated package-lock.json (maybe)
    GH_Actions->>Git: Check `git diff package-lock.json`
    alt lockfile changed
        GH_Actions->>Git: Commit updated package-lock.json
        Git->>Repo: Push commit to main (using GITHUB_TOKEN)
    else no changes
        GH_Actions-->>Repo: No commit needed
    end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

🐰
Hopped from tag to tag in one quick beat,
Lockfiles refreshed to keep our tree neat.
Demos chase latest, bindings set free,
A tiny commit — steady as me 🥕🐇

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title partially matches the changeset—it accurately describes updating demo dependencies to 'latest', but omits critical changes like the new post-publish workflow and PUBLISHING.md documentation updates that represent significant portions of the PR. Consider a more comprehensive title such as 'chore: update demo dependencies to latest and add post-publish lockfile workflow' to reflect all major changes.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-demo

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the demo workspace dependencies for @passiveintent/core and @passiveintent/react to track the npm "latest" dist-tag rather than a fixed semver range, presumably to keep the demos aligned with the most recent published packages.

Changes:

  • Updated demo/package.json to use @passiveintent/core: "latest".
  • Updated demo-react/package.json to use @passiveintent/core: "latest" and @passiveintent/react: "latest".

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
demo/package.json Switches @passiveintent/core dependency spec to "latest".
demo-react/package.json Switches @passiveintent/core and @passiveintent/react dependency specs to "latest".

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread demo/package.json
Comment thread demo-react/package.json

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
demo/package.json (1)

13-13: Prefer explicit versions over latest for workspace demo dependencies

Lines 13 uses "latest", which can reduce clarity when these are workspace packages. While the lockfile currently pins the version, using an explicit semver range (e.g., "^1.0.0") is clearer and more maintainable.

Suggested change
-    "@passiveintent/core": "latest"
+    "@passiveintent/core": "^1.0.0"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@demo/package.json` at line 13, The dependency for "@passiveintent/core" is
set to "latest"; update the demo's package.json to use an explicit semver range
(e.g., "^1.0.0" or the correct current release) instead of "latest" so the
workspace dependency is clear and reproducible—locate the "@passiveintent/core"
entry in package.json and replace "latest" with the chosen explicit version
string.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@demo/package.json`:
- Line 13: The dependency for "@passiveintent/core" is set to "latest"; update
the demo's package.json to use an explicit semver range (e.g., "^1.0.0" or the
correct current release) instead of "latest" so the workspace dependency is
clear and reproducible—locate the "@passiveintent/core" entry in package.json
and replace "latest" with the chosen explicit version string.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 50a5ff0d-dc8a-4384-a906-3a6646f2b270

📥 Commits

Reviewing files that changed from the base of the PR and between 476f7ce and 6ed398a.

📒 Files selected for processing (2)
  • demo-react/package.json
  • demo/package.json

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (2)
PUBLISHING.md (1)

71-77: Consider noting that this step is automated.

The post-publish lockfile refresh is automated by .github/workflows/post-publish-lockfile.yml (triggered on v* tag pushes). Consider adding a brief note here so maintainers know they don't need to run these commands manually after pushing the tag.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@PUBLISHING.md` around lines 71 - 77, Add a brief sentence after the "After
every publish" instructions noting that the lockfile refresh is automated:
reference the GitHub Actions workflow
`.github/workflows/post-publish-lockfile.yml` which runs on `v*` tag pushes and
updates `package-lock.json` so maintainers don't need to run the three commands
manually after pushing the tag. Keep the existing commands visible for
local/manual use but mark them as optional/automated.
.github/workflows/post-publish-lockfile.yml (1)

19-22: Commits pushed with GITHUB_TOKEN won't trigger subsequent workflow runs.

When using secrets.GITHUB_TOKEN for the checkout/push, GitHub intentionally prevents the resulting push from triggering other workflows (to avoid infinite loops). This means the lockfile commit won't be validated by CI workflows like ci.root.yml or ci.core.yml.

If CI validation of the lockfile commit is desired, you'd need to use a Personal Access Token (PAT) or GitHub App installation token instead. However, the current behavior may be acceptable if the lockfile refresh is considered low-risk.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/post-publish-lockfile.yml around lines 19 - 22, The
workflow currently uses the GITHUB_TOKEN in the checkout/push step (the
actions/checkout@v4 entry with token: ${{ secrets.GITHUB_TOKEN }}), which
prevents pushes from triggering subsequent workflows; replace the use of
GITHUB_TOKEN with a dedicated Personal Access Token (store it as a repo secret,
e.g., PAT_TOKEN) and update the checkout/push steps to use that secret so
lockfile commits can trigger CI, or explicitly document/accept the current
behavior if CI validation is not required.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.github/workflows/post-publish-lockfile.yml:
- Around line 19-22: The workflow currently uses the GITHUB_TOKEN in the
checkout/push step (the actions/checkout@v4 entry with token: ${{
secrets.GITHUB_TOKEN }}), which prevents pushes from triggering subsequent
workflows; replace the use of GITHUB_TOKEN with a dedicated Personal Access
Token (store it as a repo secret, e.g., PAT_TOKEN) and update the checkout/push
steps to use that secret so lockfile commits can trigger CI, or explicitly
document/accept the current behavior if CI validation is not required.

In `@PUBLISHING.md`:
- Around line 71-77: Add a brief sentence after the "After every publish"
instructions noting that the lockfile refresh is automated: reference the GitHub
Actions workflow `.github/workflows/post-publish-lockfile.yml` which runs on
`v*` tag pushes and updates `package-lock.json` so maintainers don't need to run
the three commands manually after pushing the tag. Keep the existing commands
visible for local/manual use but mark them as optional/automated.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 45f225d6-7c8f-4a97-b5c4-244ffff30e69

📥 Commits

Reviewing files that changed from the base of the PR and between 6ed398a and d546dbe.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • .github/workflows/post-publish-lockfile.yml
  • PUBLISHING.md

@purushpsm147
purushpsm147 merged commit d1294fb into main Apr 8, 2026
19 checks passed
@purushpsm147
purushpsm147 deleted the fix-demo branch April 8, 2026 11:16
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.

2 participants