@bunny-agent/daemon 0.9.29 → 0.9.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/dist/bundle.mjs +29664 -4013
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29662 -4011
- package/dist/nextjs.js +29658 -4007
- package/dist/router.d.ts.map +1 -1
- package/dist/routes/fs.d.ts.map +1 -1
- package/dist/routes/git.d.ts +7 -30
- package/dist/routes/git.d.ts.map +1 -1
- package/dist/shared/git-types-test.d.ts +16 -0
- package/dist/shared/git-types-test.d.ts.map +1 -0
- package/dist/shared/git-types.d.ts +792 -0
- package/dist/shared/git-types.d.ts.map +1 -0
- package/dist/shared/git-types.js +26 -0
- package/package.json +8 -1
package/README.md
CHANGED
|
@@ -84,8 +84,8 @@ incoming HTTP request
|
|
|
84
84
|
│ │ │ │ │
|
|
85
85
|
│ ┌───────────────────────┤ │ │ │
|
|
86
86
|
│ ▼ ▼ ▼ │ │
|
|
87
|
-
│ node:fs/promises
|
|
88
|
-
│ (file ops) (git
|
|
87
|
+
│ node:fs/promises isomorphic-git SSE │ │
|
|
88
|
+
│ (file ops) (git ops) stream │ │
|
|
89
89
|
│ │ │
|
|
90
90
|
│ @bunny-agent/ │ │
|
|
91
91
|
│ runner-core ◄───┘ │
|
|
@@ -164,7 +164,7 @@ apps/bunny-agent-daemon/
|
|
|
164
164
|
│ ├── health.ts GET /healthz
|
|
165
165
|
│ ├── fs.ts GET|POST /api/fs/*
|
|
166
166
|
│ ├── volumes.ts GET|POST /api/volumes/*
|
|
167
|
-
│ ├── git.ts POST /api/git/* (
|
|
167
|
+
│ ├── git.ts POST /api/git/* (isomorphic-git)
|
|
168
168
|
│ └── coding.ts POST /api/coding/run (SSE, uses runner-core)
|
|
169
169
|
└── src/__tests__/
|
|
170
170
|
└── daemon.test.ts 13 integration tests (no mocks, real fs + git)
|
|
@@ -394,6 +394,12 @@ All fs endpoints accept optional `volume` for multi-tenant isolation.
|
|
|
394
394
|
| POST | `/api/git/clone` | `{"repo_parent":".","url":"https://...","depth":1}` |
|
|
395
395
|
| POST | `/api/git/init` | `{"repo":"myrepo","initial_branch":"main"}` |
|
|
396
396
|
|
|
397
|
+
Git endpoints are implemented with `isomorphic-git` and return the shared
|
|
398
|
+
`GitCommandResult` envelope exported from `@bunny-agent/daemon/shared/git-types`.
|
|
399
|
+
`/api/git/exec` supports common allowlisted subcommands and returns a nonzero
|
|
400
|
+
command result for flag combinations that cannot be represented through
|
|
401
|
+
`isomorphic-git`.
|
|
402
|
+
|
|
397
403
|
### Volumes `/api/volumes/*`
|
|
398
404
|
|
|
399
405
|
| Method | Path | Body |
|