Skip to content

Harden the local bridge and document repo handoff - #1

Merged
anushkmittal merged 2 commits into
mainfrom
harden-repo-bridge
Jul 17, 2026
Merged

Harden the local bridge and document repo handoff#1
anushkmittal merged 2 commits into
mainfrom
harden-repo-bridge

Conversation

@anushkmittal

@anushkmittal anushkmittal commented Jul 17, 2026

Copy link
Copy Markdown
Member

Summary

  • Document the repo-URL handoff: after connecting, a Shape clones locally, reads SHAPE.md/AGENTS.md/llms.txt/README, and follows the repo's contract; private credentials stay local
  • Add a zero-dependency Node test suite for auth, run, write/read, and bounded large-file reads
  • Compare bearer tokens in constant time
  • Bound command buffers (4 MiB), file reads (100 KiB without loading the whole file), and directory listings (2,000 entries)
  • Return explicit truncation metadata
  • Add CI on minimum supported Node 18 and current Node 22, including package dry-run

Test plan

  • npm test — 4 protocol tests pass (~100ms)
  • npm pack --dry-run — expected 7-file, zero-dependency package

@cursor

cursor Bot commented Jul 17, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@anushkmittal
anushkmittal merged commit 3e38bcd into main Jul 17, 2026
2 checks passed
@anushkmittal
anushkmittal deleted the harden-repo-bridge branch July 17, 2026 03:39
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