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
2 changes: 1 addition & 1 deletion src/commands/connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export async function runConnect(
// An extra opening notice from the caller — shown in the app instead of
// printed beforehand, which would land in scrollback behind the app.
startupNotice?: string,
// The agent config name from the caller (e.g. `start --connect`); when
// The automation name from the caller (e.g. `start --connect`); when
// absent it is derived from the fetched session. Shown in the footer meta
// line.
configName?: string,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function registerEnvironment(program: Command): void {
const e = created.environment
console.log(`✓ created "${e.name}" (${e.id}) — live now`)
console.log(
'Reference it from agent configs (`environment: ' +
'Reference it from automations (`environment: ' +
e.name +
'`) or start a session in it: `agent session start -e ' +
e.name +
Expand Down
4 changes: 2 additions & 2 deletions src/commands/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function registerModel(program: Command): void {
model
.command('list')
.description(
'List the models an agent config can select (the account default is marked)',
'List the models an automation can select (the account default is marked)',
),
'ls',
),
Expand All @@ -36,7 +36,7 @@ export function registerModel(program: Command): void {
['ID', 'NAME', 'DEFAULT'],
models.map((m) => [m.id, m.display_name, m.is_default_agent_model ? 'yes' : '']),
)
console.log('\nSelect one by setting `model:` under `claude:` in your agent config YAML.')
console.log('\nSelect one by setting `model:` under `claude:` in your automation YAML.')
})
})
}
6 changes: 3 additions & 3 deletions src/commands/review.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ export function registerReview(program: Command): void {
registerReviewInit(review)
}

// `agent review init`: the code review twin of `agent config init`. Scaffolds a
// `agent review init`: the code review twin of `agent automation init`. Scaffolds a
// starter pipeline YAML locally; you commit it and Ellipsis syncs it from
// GitHub. No API call and no pull request, because `agent config create` posts
// an agent config and a pipeline is a different kind of file.
// GitHub. No API call and no pull request, because `agent automation create` posts
// an automation and a pipeline is a different kind of file.
function registerReviewInit(review: Command): void {
review
.command('init [path]')
Expand Down
10 changes: 7 additions & 3 deletions src/commands/session.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,14 @@ export function registerSession(program: Command): void {
// UI shows it in its footer meta line (anything printed before the
// app would land in scrollback); every other mode prints this note.
let configNote: string | undefined
const environmentSource = session.environment?.source
// Widened to string: `automation` replaced `agent_config` on the wire
// (SDK 0.28.0); the pinned SDK's enum predates it.
const environmentSource: string | null | undefined = session.environment?.source
if (session.environment?.environment_id && environmentSource !== 'request') {
const label =
environmentSource === 'agent_config' ? 'from the agent config' : environmentSource
environmentSource === 'automation' || environmentSource === 'agent_config'
? 'from the automation'
: environmentSource
const note = `using environment ${session.environment.environment_id} (${label})`
configNote = configNote ? `${configNote}; ${note}` : note
}
Expand Down Expand Up @@ -846,7 +850,7 @@ function deepMerge(
return out
}

// Parse an inline agent config from disk, choosing the parser by file
// Parse an inline automation config from disk, choosing the parser by file
// extension: .yaml/.yml as YAML, .json as JSON. (YAML is a JSON superset, so
// unknown extensions fall back to YAML, which still accepts JSON input.)
export function readConfigFile(path: string): Record<string, unknown> {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export function withContextRepository(
// --------------------------- new-session picker ---------------------------

// One row of a composer picker. `group` and `rate` are what the model list
// uses and the other two pickers leave unset: repositories and agent configs
// uses and the other two pickers leave unset: repositories and automations
// are flat lists of names with no vendor to group under and no price to quote.
export type ComposerModel = {
id: string | null
Expand Down
2 changes: 1 addition & 1 deletion src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export interface ListAgentSessionsQuery {
// attributed to that developer. The CLI resolves it from a --author login.
author_id?: number
// "owner/name" or a bare repository name. Sessions that name their
// repository only inside their agent config — dashboard starts, cron runs,
// repository only inside their automation — dashboard starts, cron runs,
// handoffs — do not match.
repo?: string
// Keep only the conversations still going (live or sleeping), dropping the
Expand Down
4 changes: 2 additions & 2 deletions src/ui/ConnectApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export interface ConnectAppProps {
// The session's model (backend tokens_model, fixed at creation), shown in
// the footer meta line.
model?: string | null
// The session's agent config (resolved name, falling back to the config
// The session's automation (resolved name, falling back to the config
// id), shown in the footer meta line when the session has one.
configName?: string | null
// Written (not read) by the app: set true when the app exits because the
Expand Down Expand Up @@ -1086,7 +1086,7 @@ export function ConnectApp(props: ConnectAppProps): React.ReactElement {
)

// The persistent footer status line: status, running spend, model,
// session id (the dashboard link), agent config (when the session has
// session id (the dashboard link), automation (when the session has
// one), CLI version. Per-step costs live on the transcript's metadata
// column, so the footer carries the total alone. Command hints live in
// --help. The total prefers the server's ledger figure (live via the
Expand Down