@getollie/cli 0.2.1 → 0.2.2
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 +3 -14
- package/dist/cli.js +197 -85
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +12 -2
- package/dist/index.js +51 -39
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,14 +60,6 @@ DAYTONA_API_KEY=... ollie agent --executor daytona 'run the native test suite an
|
|
|
60
60
|
|
|
61
61
|
Agent `--ndjson` emits one runner event per line. Agent workspace writes persist to the host.
|
|
62
62
|
|
|
63
|
-
Use repeatable `--mount <host-path:sandbox-path>` options to expose additional host directories read-write to the agent sandbox:
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
ollie agent --mount ./data:/data --mount /tmp/cache:/cache 'process the data'
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
Mount destinations must be normalized absolute sandbox paths outside `/workspace`, and mount destinations may not overlap. Relative host paths are resolved from the directory where Ollie is invoked. Additional mounts apply to the agent's primary sandbox tools, not delegated local or Daytona executors.
|
|
70
|
-
|
|
71
63
|
The agent remains in the restricted workspace environment by default. `--executor local` adds a `delegateTask` tool that can start fresh subagents with native `bash`, file, package-manager, build, and test access. The local executor shares the current workspace, runs with the current user's permissions, inherits the current process environment, and is **not isolated**. It must be selected explicitly.
|
|
72
64
|
|
|
73
65
|
`--executor daytona` runs delegated agents in an isolated Daytona sandbox. Ollie uploads the complete workspace before each delegated task, synchronizes all files back afterward, stops the sandbox between tasks while preserving its filesystem, and deletes it when the run finishes. Configure the SDK with `DAYTONA_API_KEY` and optionally `DAYTONA_API_URL`, `DAYTONA_TARGET`, or `OLLIE_DAYTONA_SNAPSHOT`.
|
|
@@ -76,10 +68,9 @@ The agent remains in the restricted workspace environment by default. `--executo
|
|
|
76
68
|
|
|
77
69
|
```bash
|
|
78
70
|
ollie sandbox --cwd /path/to/workspace
|
|
79
|
-
ollie sandbox --cwd /path/to/workspace --mount ./data:/data
|
|
80
71
|
```
|
|
81
72
|
|
|
82
|
-
The worker reserves stdout for newline-delimited request/response records and retains one sandbox until EOF, so in-session changes persist between requests. Its workspace
|
|
73
|
+
The worker reserves stdout for newline-delimited request/response records and retains one sandbox until EOF, so in-session changes persist between requests. Its workspace writes persist to the host by default.
|
|
83
74
|
|
|
84
75
|
### Diagnostics
|
|
85
76
|
|
|
@@ -110,13 +101,11 @@ Configuration precedence is CLI flags, then environment variables, then defaults
|
|
|
110
101
|
```ts
|
|
111
102
|
import { createJustBash, SANDBOX_WORKSPACE_PATH } from "@getollie/cli";
|
|
112
103
|
|
|
113
|
-
const bash = createJustBash(process.cwd()
|
|
114
|
-
mounts: [{ hostPath: "./data", mountPoint: "/data" }],
|
|
115
|
-
});
|
|
104
|
+
const bash = createJustBash(process.cwd());
|
|
116
105
|
const result = await bash.exec(`echo generated > ${SANDBOX_WORKSPACE_PATH}/output.txt`);
|
|
117
106
|
```
|
|
118
107
|
|
|
119
|
-
The configured host directory is mounted read-write at `/workspace`,
|
|
108
|
+
The configured host directory is mounted read-write at `/workspace`, so writes persist directly to it. Symlinks are disabled, and Python and JavaScript support are enabled.
|
|
120
109
|
|
|
121
110
|
### Sandbox Git
|
|
122
111
|
|