Skip to content

feat(javascript): add BashTool snapshot support#1310

Merged
chaliy merged 3 commits intomainfrom
feat/issue-1301-js-bashtool-snapshot
Apr 15, 2026
Merged

feat(javascript): add BashTool snapshot support#1310
chaliy merged 3 commits intomainfrom
feat/issue-1301-js-bashtool-snapshot

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Apr 15, 2026

Summary

  • add snapshot(), restoreSnapshot(...), and BashTool.fromSnapshot(data, options?) to the JS BashTool bindings
  • preserve constructor-driven identity and limits by resolving options before restoring snapshot bytes
  • document the new BashTool snapshot surface and cover round-trip, reset+restore, empty snapshot, and invalid snapshot cases in the JS integration suite

Validation

  • npm ci
  • npm run build
  • npm run type-check
  • ./node_modules/.bin/ava --match="integration: BashTool *"
  • just pre-pr on macOS still fails only in the existing bash_comparison_tests parity bucket (114 mismatches), matching the previously analyzed GNU/BSD + host-environment drift

Closes #1301

@chaliy chaliy force-pushed the feat/issue-1301-js-bashtool-snapshot branch from cc2b28d to 3d05ec7 Compare April 15, 2026 17:07
@chaliy chaliy merged commit becd82d into main Apr 15, 2026
28 checks passed
@chaliy chaliy deleted the feat/issue-1301-js-bashtool-snapshot branch April 15, 2026 22:59
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.

feat(javascript): mirror Python snapshotting on BashTool

1 participant