diff --git a/src/commands/connect.ts b/src/commands/connect.ts index d2a647e..460820a 100644 --- a/src/commands/connect.ts +++ b/src/commands/connect.ts @@ -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, diff --git a/src/commands/environment.ts b/src/commands/environment.ts index a51ed7c..748a848 100644 --- a/src/commands/environment.ts +++ b/src/commands/environment.ts @@ -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 + diff --git a/src/commands/model.ts b/src/commands/model.ts index 6b8e76e..afcaad1 100644 --- a/src/commands/model.ts +++ b/src/commands/model.ts @@ -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', ), @@ -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.') }) }) } diff --git a/src/commands/review.ts b/src/commands/review.ts index 4b4599b..2c76537 100644 --- a/src/commands/review.ts +++ b/src/commands/review.ts @@ -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]') diff --git a/src/commands/session.tsx b/src/commands/session.tsx index bd9d12d..cbaa897 100644 --- a/src/commands/session.tsx +++ b/src/commands/session.tsx @@ -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 } @@ -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 { diff --git a/src/lib/sessions.ts b/src/lib/sessions.ts index d30e2f9..6df5ab0 100644 --- a/src/lib/sessions.ts +++ b/src/lib/sessions.ts @@ -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 diff --git a/src/lib/types.ts b/src/lib/types.ts index ddc0bf5..b2b87cc 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -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 diff --git a/src/ui/ConnectApp.tsx b/src/ui/ConnectApp.tsx index 96c6226..70f4b15 100644 --- a/src/ui/ConnectApp.tsx +++ b/src/ui/ConnectApp.tsx @@ -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 @@ -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