Skip to content

chore: import Pi extension#3

Merged
mislavivanda merged 2 commits into
mainfrom
chore/import-pi-extension
Jun 26, 2026
Merged

chore: import Pi extension#3
mislavivanda merged 2 commits into
mainfrom
chore/import-pi-extension

Conversation

@mislavivanda

@mislavivanda mislavivanda commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.


Summary by cubic

Import @daytona/pi, a Pi extension that runs all tool calls inside a remote Daytona sandbox with per-session persistence, GitHub branch sync, and preview URLs. Launch with --daytona.

  • New Features

    • Adds packages/pi-extension to run bash, file I/O, find, and grep in a Daytona sandbox; includes preview_url for live links.
    • One sandbox per session with auto-resume and idle pause; in-memory sessions clean up on exit; reaps sandboxes when sessions are deleted.
    • Auto-detects or --repo clones and syncs commits to pi/<short-id> on GitHub via gh; commands: /sandbox, /github, /compare, /merge, /pr.
    • Safer bash (background-safe), auto-recovery from paused sandboxes, clear errors if deleted; README and smoke/live tests included.
  • Dependencies

    • Adds runtime @daytona/sdk; peers @earendil-works/pi-coding-agent, typebox; dev deps for typescript and @types/node.

Written for commit 074f0d8. Summary will update on new commits.

Review in cubic

Signed-off-by: Mislav Ivanda <mislavivanda454@gmail.com>
Signed-off-by: Mislav Ivanda <mislavivanda454@gmail.com>

@cubic-dev-ai cubic-dev-ai 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.

21 issues found across 19 files

Tip: instead of fixing issues one by one fix them all with cubic
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.

Re-trigger cubic

Comment thread packages/pi-extension/src/grep-tool.ts
Comment thread packages/pi-extension/scripts/bash-bg.mjs
Comment thread packages/pi-extension/src/sandbox.ts
Comment thread packages/pi-extension/scripts/recovery.mjs
Comment thread packages/pi-extension/src/github.ts
Comment thread packages/pi-extension/src/find-tool.ts
Comment thread packages/pi-extension/src/grep-tool.ts
Comment thread packages/pi-extension/scripts/recovery.mjs
Comment thread packages/pi-extension/src/tools.ts
Comment thread packages/pi-extension/src/util.ts
@mislavivanda mislavivanda merged commit beb0659 into main Jun 26, 2026
11 checks passed
@mislavivanda mislavivanda deleted the chore/import-pi-extension branch June 26, 2026 23:43
mislavivanda added a commit that referenced this pull request Jul 6, 2026
Signed-off-by: Mislav Ivanda <mislavivanda454@gmail.com>
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