@paperclipai/plugin-daytona 0.1.0
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 +48 -0
- package/package.json +52 -0
package/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# `@paperclipai/plugin-daytona`
|
|
2
|
+
|
|
3
|
+
Published Daytona sandbox provider plugin for Paperclip.
|
|
4
|
+
|
|
5
|
+
This package lives in the Paperclip monorepo, but it is intentionally excluded from the root `pnpm` workspace and shaped to publish and install like a standalone npm package. That lets operators install it from the Plugins page by package name without introducing root lockfile churn for Daytona's SDK dependencies.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
From a Paperclip instance, install:
|
|
10
|
+
|
|
11
|
+
```text
|
|
12
|
+
@paperclipai/plugin-daytona
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
The host plugin installer runs `npm install` into the managed plugin directory, so transitive dependencies such as `@daytonaio/sdk` are pulled in during installation.
|
|
16
|
+
|
|
17
|
+
## Configuration
|
|
18
|
+
|
|
19
|
+
Configure Daytona from `Company Settings -> Environments`, not from the plugin's instance settings page.
|
|
20
|
+
|
|
21
|
+
- Put the Daytona API key on the sandbox environment itself.
|
|
22
|
+
- When you save an environment, Paperclip stores pasted API keys as company secrets.
|
|
23
|
+
- `DAYTONA_API_KEY` remains an optional host-level fallback when an environment omits the key.
|
|
24
|
+
- Optional `apiUrl` and `target` settings map directly to the Daytona SDK/client configuration. If `apiUrl` is omitted, the Daytona SDK uses its default endpoint.
|
|
25
|
+
|
|
26
|
+
Notes:
|
|
27
|
+
|
|
28
|
+
- The current published Daytona SDK package is `@daytonaio/sdk`.
|
|
29
|
+
- The driver supports both `snapshot`-based and `image`-based sandbox creation. If both are set, validation rejects the config as ambiguous.
|
|
30
|
+
- Reusable leases map to Daytona stop/start semantics. Non-reusable leases are deleted on release.
|
|
31
|
+
|
|
32
|
+
## Local development
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
cd packages/plugins/sandbox-providers/daytona
|
|
36
|
+
pnpm install --ignore-workspace --no-lockfile
|
|
37
|
+
pnpm build
|
|
38
|
+
pnpm test
|
|
39
|
+
pnpm typecheck
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
These commands assume the repo root has already been installed once so the local `@paperclipai/plugin-sdk` workspace package is available to the compiler during development.
|
|
43
|
+
|
|
44
|
+
## Package layout
|
|
45
|
+
|
|
46
|
+
- `src/manifest.ts` declares the sandbox-provider driver metadata
|
|
47
|
+
- `src/plugin.ts` implements the environment lifecycle hooks
|
|
48
|
+
- `paperclipPlugin.manifest` and `paperclipPlugin.worker` point the host at the built plugin entrypoints in `dist/`
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@paperclipai/plugin-daytona",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Daytona sandbox provider plugin for Paperclip environments",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://github.com/paperclipai/paperclip",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/paperclipai/paperclip/issues"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/paperclipai/paperclip",
|
|
13
|
+
"directory": "packages/plugins/sandbox-providers/daytona"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"main": "./dist/index.js",
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"import": "./dist/index.js"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"main": "./dist/index.js",
|
|
33
|
+
"types": "./dist/index.d.ts"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist"
|
|
37
|
+
],
|
|
38
|
+
"paperclipPlugin": {
|
|
39
|
+
"manifest": "./dist/manifest.js",
|
|
40
|
+
"worker": "./dist/worker.js"
|
|
41
|
+
},
|
|
42
|
+
"keywords": [
|
|
43
|
+
"paperclip",
|
|
44
|
+
"plugin",
|
|
45
|
+
"sandbox",
|
|
46
|
+
"daytona"
|
|
47
|
+
],
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@daytonaio/sdk": "^0.171.0",
|
|
50
|
+
"@paperclipai/plugin-sdk": "1.0.0"
|
|
51
|
+
}
|
|
52
|
+
}
|