Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ agent asset list # list stored assets (--session <id> scopes to
agent asset get <asset-id> -o shot.png # show one asset, or download its bytes with -o
agent asset delete <asset-id> # delete an asset (it disappears from list/get and its link stops resolving)

agent sandbox variable list # list sandbox env variable names (values are write-only)
agent sandbox variable set A=1 B=2 # create/update variables (or --from-file .env/.json)
agent sandbox variable delete K # delete a variable
agent variable list # list sandbox env variable names (values are write-only)
agent variable set A=1 B=2 # create/update variables (or --from-file .env/.json)
agent variable delete K # delete a variable

agent budget # current budget summary
agent usage # usage dashboard for the period
Expand Down
6 changes: 3 additions & 3 deletions skills/ellipsis/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ sandbox image actually builds, then deploy. The steps below are that flow.
write-only store; a config receives only the variables it names.

```sh
agent sandbox variable set LINEAR_API_KEY=lin_api_...
agent sandbox variable set --from-file .env
agent variable set LINEAR_API_KEY=lin_api_...
agent variable set --from-file .env
```

5. Draft a config and run it from the local file before anything deploys.
Expand Down Expand Up @@ -208,7 +208,7 @@ agent config default set <config-id> # the config a bare start runs (--r
agent template list # browse maintained templates
agent model list # the model ids valid under `claude:`
agent integration # connected GitHub/Slack/Linear/Sentry
agent sandbox variable set LINEAR_API_KEY=...
agent variable set LINEAR_API_KEY=...
agent session start --config-file agents/my_agent.yaml --watch
# prove a config before deploying
```
Expand Down
4 changes: 2 additions & 2 deletions src/cli.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { registerMe } from './commands/me'
import { registerSession } from './commands/session'
import { registerReview } from './commands/review'
import { registerConfig } from './commands/config'
import { registerSandbox } from './commands/sandbox'
import { registerVariable } from './commands/variable'
import { registerAsset } from './commands/asset'
import { registerHook } from './commands/hooks'
import { registerTemplate } from './commands/template'
Expand Down Expand Up @@ -39,7 +39,7 @@ registerMe(program)
registerSession(program)
registerReview(program)
registerConfig(program)
registerSandbox(program)
registerVariable(program)
registerAsset(program)
registerHook(program)
registerTemplate(program)
Expand Down
8 changes: 2 additions & 6 deletions src/commands/sandbox.ts → src/commands/variable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ import { alsoKnownAs, apiRoutes } from '../lib/help'
import { formatTs, printJson, printTable, runAction } from '../lib/output'
import type { SandboxVariableInput, SandboxVariableSummary } from '../lib/types'

export function registerSandbox(program: Command): void {
const sandbox = program
.command('sandbox')
.description('Manage what every sandbox this account runs gets')

export function registerVariable(program: Command): void {
const variable = alsoKnownAs(
sandbox
program
.command('variable')
.description('Manage the env variables injected into every sandbox (values are write-only)'),
'variables',
Expand Down
2 changes: 1 addition & 1 deletion src/lib/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function withoutAliases(term: string, cmd: Command): string {
const TOP_LEVEL_GROUPS: ReadonlyArray<{ title: string; commands: readonly string[] }> = [
{ title: 'Sessions', commands: ['session', 'review'] },
{ title: 'Agents', commands: ['config', 'model', 'template'] },
{ title: 'Platform', commands: ['sandbox', 'asset', 'hook'] },
{ title: 'Platform', commands: ['variable', 'asset', 'hook'] },
{ title: 'Integrations', commands: ['integration', 'github', 'slack', 'linear', 'sentry'] },
{ title: 'Spend', commands: ['budget', 'usage', 'analytics'] },
{ title: 'Account', commands: ['login', 'logout', 'me', 'host', 'ping'] },
Expand Down
2 changes: 1 addition & 1 deletion test/sandbox.test.ts → test/variable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
parseAssignment,
parseEnvFile,
parseJsonVars,
} from '../src/commands/sandbox'
} from '../src/commands/variable'

describe('parseJsonVars', () => {
it('parses a flat object of name → value', () => {
Expand Down