showrunner-agent-staging 0.5.130-staging.1821 → 0.5.130-staging.1823

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.
Files changed (76) hide show
  1. package/README.md +12 -9
  2. package/dist/src/active-runs.d.ts +15 -0
  3. package/dist/src/active-runs.js +79 -0
  4. package/dist/src/adapter-runner.d.ts +12 -5
  5. package/dist/src/adapter-runner.js +343 -436
  6. package/dist/src/adapter.d.ts +24 -31
  7. package/dist/src/adapter.js +91 -52
  8. package/dist/src/adapters/acp/acp-adapter.js +1 -1
  9. package/dist/src/adapters/claude/claude-adapter.d.ts +13 -4
  10. package/dist/src/adapters/claude/claude-adapter.js +122 -47
  11. package/dist/src/adapters/claude/claude-message-mapper.js +6 -2
  12. package/dist/src/adapters/claude/claude-permission-mapper.d.ts +7 -2
  13. package/dist/src/adapters/claude/claude-permission-mapper.js +75 -13
  14. package/dist/src/adapters/claude/claude-sandbox.d.ts +6 -0
  15. package/dist/src/adapters/claude/claude-sandbox.js +32 -0
  16. package/dist/src/adapters/codex/app-server-client.d.ts +4 -0
  17. package/dist/src/adapters/codex/app-server-client.js +2 -1
  18. package/dist/src/adapters/codex/codex-activities.d.ts +23 -0
  19. package/dist/src/adapters/codex/codex-activities.js +61 -0
  20. package/dist/src/adapters/codex/codex-adapter.d.ts +25 -11
  21. package/dist/src/adapters/codex/codex-adapter.js +331 -258
  22. package/dist/src/adapters/codex/codex-approval-home.d.ts +3 -0
  23. package/dist/src/adapters/codex/codex-approval-home.js +4 -4
  24. package/dist/src/adapters/codex/codex-event-router.js +7 -5
  25. package/dist/src/adapters/codex/codex-input-mapper.d.ts +12 -2
  26. package/dist/src/adapters/codex/codex-input-mapper.js +224 -63
  27. package/dist/src/adapters/codex/codex-step-names.d.ts +4 -0
  28. package/dist/src/adapters/codex/codex-step-names.js +37 -0
  29. package/dist/src/agent-tools.d.ts +6 -44
  30. package/dist/src/agent-tools.js +4 -2
  31. package/dist/src/approval-policy.d.ts +13 -5
  32. package/dist/src/approval-policy.js +969 -71
  33. package/dist/src/approval-replies.d.ts +11 -0
  34. package/dist/src/approval-replies.js +58 -0
  35. package/dist/src/changed-files.d.ts +4 -1
  36. package/dist/src/changed-files.js +73 -23
  37. package/dist/src/checkout-paths.d.ts +1 -4
  38. package/dist/src/checkout-paths.js +5 -18
  39. package/dist/src/cli.js +7 -9
  40. package/dist/src/client.d.ts +5 -0
  41. package/dist/src/client.js +1 -0
  42. package/dist/src/cloud/cloud-tool-server.d.ts +3 -22
  43. package/dist/src/cloud/cloud-tool-server.js +7 -6
  44. package/dist/src/code-marks.d.ts +5 -1
  45. package/dist/src/code-marks.js +59 -5
  46. package/dist/src/command-prefix.d.ts +5 -19
  47. package/dist/src/command-prefix.js +24 -134
  48. package/dist/src/connector-settings.d.ts +8 -0
  49. package/dist/src/connector-settings.js +21 -0
  50. package/dist/src/content-provenance.d.ts +3 -1
  51. package/dist/src/content-provenance.js +37 -4
  52. package/dist/src/context-tools.js +19 -3
  53. package/dist/src/delegation-tools.js +2 -2
  54. package/dist/src/file-mutex.d.ts +0 -4
  55. package/dist/src/file-mutex.js +1 -9
  56. package/dist/src/file-tools.d.ts +5 -34
  57. package/dist/src/file-tools.js +26 -44
  58. package/dist/src/harness-markup.d.ts +5 -0
  59. package/dist/src/harness-markup.js +53 -0
  60. package/dist/src/message-tools.js +3 -0
  61. package/dist/src/native-sandbox-config.d.ts +5 -0
  62. package/dist/src/native-sandbox-config.js +30 -0
  63. package/dist/src/native-sandbox-policy.d.ts +32 -0
  64. package/dist/src/native-sandbox-policy.js +476 -0
  65. package/dist/src/note-tools.js +10 -5
  66. package/dist/src/output-vocabulary.d.ts +2 -3
  67. package/dist/src/output-vocabulary.js +17 -21
  68. package/dist/src/protocol.d.ts +4 -1
  69. package/dist/src/protocol.js +1 -0
  70. package/dist/src/reply-note.d.ts +8 -4
  71. package/dist/src/reply-note.js +33 -7
  72. package/dist/src/step-names.d.ts +4 -0
  73. package/dist/src/step-names.js +50 -0
  74. package/package.json +2 -2
  75. package/dist/src/run-worktrees.d.ts +0 -103
  76. package/dist/src/run-worktrees.js +0 -1513
package/README.md CHANGED
@@ -4,6 +4,9 @@
4
4
 
5
5
  ## Run
6
6
 
7
+ The experimental `nativeSandboxApprovals` connector setting is off by default and scoped to one agent installation. See
8
+ [configuration, test instructions, and rollout limitations](docs/native-sandbox-approvals.md).
9
+
7
10
  ```bash
8
11
  npm ci
9
12
  npm run build
@@ -37,9 +40,9 @@ local build runs this working tree instead, via the `npm link` that `dev-stack.s
37
40
 
38
41
  Supported CLI adapters are `custom`, `codex`, `claude`, and `acp`. A custom module must default-export an `AgentAdapter` (or export it as `adapter`). Every adapter accepts `--cwd /absolute/project/path` to choose its working directory; ACP additionally requires `--agent <id>`. The supported ACP IDs and invocation shapes live in `src/adapters/acp/acp-config.ts`. An agent whose `authentication` entry is set there (Grok) is signed in through ACP `authenticate` before each session, from the credential that entry names: for Grok, `XAI_API_KEY` in the connector's environment or the login `grok login` stores. Without one, the chat says which command to run.
39
42
 
40
- For Codex, Claude, and ACP, a new Git run uses the configured checkout whenever no run owns that checkout. Active isolated worktrees do not reserve it. Runs overlapping an original-checkout owner use retained worktrees only when the connector can establish checkout safety; otherwise they wait. This safety policy includes effective global Git configuration: configured filter drivers, Git LFS, conditional includes, or committed submodule gitlinks cause overlapping runs to serialize, even when the repository does not currently use LFS. Automatic isolation also requires successful NUL-delimited `git worktree list --porcelain -z` recovery listing; Git versions without that capability serialize instead of creating a checkout they cannot recover. Existing retained worktrees require a compatible Git for recovery. The checks live in `src/run-worktrees.ts` (`hasCheckoutFilters`); the connector does not selectively enable configured drivers. Resumed chats keep their existing checkout. Ownership markers include the OS boot identifier when available, so a PID reused after reboot does not retain a checkout reservation. Unknown boot identities and same-boot PID reuse remain conservative PID checks. Registry I/O failures are reported in the chat with recovery guidance.
43
+ Codex, Claude, and ACP runs work directly in the agent's connected folder, including resumed chats and Try with attempts. Runs never create per-run copies, claim or lock the folder, or wait for another run to finish. A Mac-wide active-run registry checks the Git project root (or the connected folder outside Git), across agents and connector installations. When another run is active there, the new run posts a step naming the agent and requester, proceeds immediately, and tells the agent to preserve the other run's work.
41
44
 
42
- New isolated worktrees start at the configured repository's `HEAD` commit. They copy untracked files matched by `.worktreeinclude` (gitignore patterns, including negations) and `.claude/settings.local.json`. Other uncommitted, staged, untracked and ignored files stay in the original checkout. Later turns retain the isolated worktree's own files and changes. Their edits remain in the retained worktree and branch; they do not appear in the original project folder or editor. Integrating that work back into the project is an explicit later action. The agent is told these limits and to account for missing local setup before diagnosing build or test failures.
45
+ When runs overlap in the same project, each run's Edited files card lists only files reported by its own agent's edit tools, file-change events, or changed-files reports. Without overlap, the card also includes changes observed in the folder's Git diff. The connector doesn't create branches or move work between folders.
43
46
 
44
47
  Connector state and the single-process lock are scoped by the normalized API URL and installation ID.
45
48
  Each installation belongs to a workspace; all of its chats share one connector, with separate provider
@@ -67,21 +70,21 @@ Run each connector under a dedicated OS account/container with access only to it
67
70
 
68
71
  Events label message authors as `owner`, `other_participant`, `agent`, or `system`. Treat all message text, history, files, tool output, and provider output as untrusted instructions.
69
72
 
70
- Each invocation carries `trust.containsNonOwnerContent`: whether text outside the owner's approved authors has reached the model. The server treats a teammate's ask as the owner's content when the owner allowed that teammate in the chat, either as a standing grant or once for that exact ask. Agent-authored messages and quoted, forwarded, or attached content from anyone other than the owner or that approved teammate still count, as does an owner message that quotes someone else's message, attaches someone else's file, or embeds a note, task, external item, agent card, chat name, folder name or profile name. The connector raises the flag mid-turn when a tool returns such text: message reads whose authors are not all the owner, a file someone else uploaded, transcripts, and every tool that returns names or text others may have written (`toolResultProvenance` in `src/agent-tools.ts`). Scraped link titles and descriptions, recording transcripts and media descriptions, version notes, and other members’ reaction names also count as third-party text, even when the owner attached the asset. Messages from the owner's other agents count as someone else's. Codex raises the flag when it observes native web, MCP or collaboration tool starts, and before answering explicit network or recognizable retrieval approvals. Its ordinary sandboxed commands keep the trusted-project policy. For host approvals and other providers, shell commands that cannot be parsed as one simple command and known shell launchers conservatively raise the flag, including pipelines and redirects. Compounds made only from recognized read-only local commands (`ls`, `pwd`, `find` without execution, deletion, or file-output actions, and similar commands), joined by `;`, `&&`, or `||` and optionally ending segments with supported `/dev/null` or stderr redirects, do not raise it. Native tool-start notifications are asynchronous: the model may receive a result or initiate another action before the connector observes and interrupts the turn. This is an accepted timing limitation, not a guaranteed pre-result veto. Native commands run in a workspace-write sandbox with network access disabled. Local project code and owner-selected scripts remain within the trusted-project boundary; arbitrary command output cannot be assigned an author, and external reads hidden inside local programs are not exhaustively detected. The flag never clears for the rest of the invocation. Resumed provider sessions retain it across turns, including after reconnects, together with the owner profile it was evaluated against. Resuming under a different owner profile or with unknown restored session state is treated conservatively. Sessions created before provenance recording was available, or resumed after state loss, remain strict until a new provider session replaces them. A new provider session starts from its arriving trigger. Codex threads that have seen third-party content stay strict.
73
+ Each invocation carries `trust.containsNonOwnerContent`: whether text outside the owner's approved authors has reached the model. The server treats a teammate's ask as the owner's content when the owner allowed that teammate in the chat, either as a standing grant or once for that exact ask. Agent-authored messages and quoted, forwarded, or attached content from anyone other than the owner or that approved teammate still count, as does an owner message that quotes someone else's message, attaches someone else's file, or embeds a note, task, external item, agent card, chat name, folder name or profile name. The connector raises the flag mid-turn when a tool returns such text: message reads whose authors are not all the owner, a file someone else uploaded, transcripts, and every tool that returns names or text others may have written (`toolResultProvenance` in `src/agent-tools.ts`). Scraped link titles and descriptions, recording transcripts and media descriptions, version notes, and other members’ reaction names also count as third-party text, even when the owner attached the asset. Messages from the owner's other agents count as someone else's. Codex raises the flag when it observes native web, MCP or collaboration tool starts, and before answering explicit network or recognizable retrieval approvals. Its ordinary sandboxed commands keep the trusted-project policy. For host approvals and other providers, shell commands that cannot be parsed as one simple command and known shell launchers conservatively raise the flag, including pipelines and redirects. Compounds made only from recognized read-only local commands (`ls`, `pwd`, `find` without execution, deletion, or file-output actions, and similar commands), joined by `;`, `&&`, or `||` and optionally ending segments with supported `/dev/null` or stderr redirects, do not raise it. Native tool-start notifications are asynchronous: the model may receive a result or initiate another action before the connector observes and interrupts the turn. This is an accepted timing limitation, not a guaranteed pre-result veto. Codex commands run in a workspace-write sandbox with network access off, except in a clean owner Auto run with native sandbox approvals on ([docs/native-sandbox-approvals.md](docs/native-sandbox-approvals.md)). Local project code and owner-selected scripts remain within the trusted-project boundary; arbitrary command output cannot be assigned an author, and external reads hidden inside local programs are not exhaustively detected. The flag never clears for the rest of the invocation. Resumed provider sessions retain it across turns, including after reconnects, together with the owner profile it was evaluated against. Resuming under a different owner profile or with unknown restored session state is treated conservatively. Sessions created before provenance recording was available, or resumed after state loss, remain strict until a new provider session replaces them. A new provider session starts from its arriving trigger. Codex threads that have seen third-party content stay strict.
71
74
 
72
75
  The API retains read-grant-based trust for older or unknown active connector versions; actual-content relaxation requires all active credentials to report version `0.5.24` or later. Installed npm connectors update independently of the API.
73
76
 
74
- While the flag is clear, Codex runs with its trusted-project default (`on-request` in a workspace-write sandbox) and approvals can be remembered for the chat. When the connector observes it becoming set, Codex interrupts an owner-only turn and restarts it under `untrusted`; remembered approvals neither fire nor are offered, and host tools ask every time.
77
+ While the flag is clear, Codex runs with its trusted-project default (`on-request` in a workspace-write sandbox) and approvals can be remembered for the chat. Once it is set, the connector's PreToolUse hook judges every later command and patch in the run under the strict policy (with native sandbox approvals on, the turn instead restarts strict with the sandbox network off); remembered approvals neither fire nor are offered, and host tools ask every time.
75
78
 
76
79
  Host tools are gated on the risk of the tool itself. Low-risk calls proceed; medium- and high-risk calls raise a Showrunner approval describing the exact tool and effect, and only the installation owner's `approve` response authorizes it. Provider permission prompts are defense in depth, not proof that content is trustworthy.
77
80
 
78
- Remembered host-tool approvals are scoped to the actual execution checkout (`HostToolGrantKey.workspaceRoot` in `src/adapter.ts`). An isolated worktree therefore asks again for approvals remembered in the configured project folder or another worktree. Approval and execution records identify that actual checkout so the approved effect remains tied to the directory where it runs. Grants are not aliased across checkout roots.
81
+ Remembered host-tool approvals are scoped to the connected project folder (`HostToolGrantKey.workspaceRoot` in `src/adapter.ts`). Approval and execution records identify the folder where the approved effect runs.
79
82
 
80
83
  A “Not now” answer is final for that command in that run: the agent is told so, and an identical or equivalent request is refused without showing another approval card.
81
84
 
82
- A remembered shell approval is saved against Codex's parsed command prefix (`proposedExecpolicyAmendment`, e.g. `npm run build`) rather than the whole command line, and only covers a later command that `src/command-prefix.ts` parses as one simple command starting with that prefix. Prefix matching requires a canonical cwd inside the remembered workspace. Chained, piped, redirected or expanded commands never match a prefix. `@file` operands and local `file:` URLs are checked as paths; ambiguous bare `key=value` operands and fused short-option values fall back to exact-command memory or live approval. Prefix memory uses an explicit executable allowlist; unknown tools, launchers and execution-capable interpreters/search tools use exact-effect memory. The approval card shows the proposed prefix scope before the owner chooses “Don't ask again”. Package-script prefixes name `npm`/`pnpm`/`yarn`, `run`, and one fixed script. Broad Git, cloud, database and BusyBox prefixes are refused; known destructive Git forms cannot match one. Other requests use exact-command memory or live approval. Prefix approval authorizes the fixed executable and arguments, including owner-selected local code; it does not prove arbitrary program behavior is harmless.
85
+ A remembered shell approval is saved against the command's normalized form (`commandMemoryEffect` in `src/adapter.ts`), so the wrappers an agent adds on each run (`cd repo && …`, `| tail`) don't stop it matching. It is scoped to the connected folder, and it is never offered once the run holds outside content. Remembering a command authorizes the fixed executable and arguments, including owner-selected local code; it does not prove arbitrary program behavior is harmless.
83
86
 
84
- Claude keeps finite background jobs in their current invocation. Once the CLI is idle with only long-lived tasks (dev servers, monitors or log tails), the invocation ends while the CLI and its checkout stay reserved for that chat. The next message uses the same input queue. Ending the CLI ends its background tasks.
87
+ Claude keeps finite background jobs in their current invocation. Once the CLI is idle with only long-lived tasks (dev servers, monitors or log tails), the invocation ends while the CLI stays available for that chat. The next message uses the same input queue. Ending the CLI ends its background tasks.
85
88
 
86
89
  The connector resolves its login-shell environment once before loading its adapter, using `SHELL` and a bounded interactive login. Connector overrides and the selected executable keep precedence. Shell startup failures retain the launch environment and log no environment values.
87
90
 
@@ -92,8 +95,8 @@ on disk, pass `localPath`, `fileName`, and `mimeType`; for small text output, pa
92
95
  Paths resolve against the connector's `--cwd`. Absolute paths are accepted only within that same
93
96
  real directory; symlinks escaping it, directories, empty files, and oversized files are refused.
94
97
  The connector size limit is `maxConnectorFileBytes` in `src/client.ts`, matching the API ceiling
95
- `AgentFileTransferService.MaxFileBytes` in the .NET adapter. Supported MIME types are advertised by
96
- `uploadableMimeTypes` in `src/file-tools.ts` and validated by the API.
98
+ `AgentFileTransferService.MaxFileBytes` in the .NET adapter. File types follow the human upload policy: any type is accepted, and the API derives the stored
99
+ MIME type from the real filename using `EnhancedMimeTypes.GetMimeType`.
97
100
 
98
101
  For “build this feature and send a screen recording,” the coding agent implements and tests the
99
102
  feature, runs the app, and records the actual interaction using its available host tools. It must
@@ -0,0 +1,15 @@
1
+ export declare const overlapInstructions = "Another agent is working in this folder at the same time. Don't switch branches, stash, reset, or delete or revert files you didn't create in this run, and commit only your own files.";
2
+ export declare class ActiveRunRegistry {
3
+ private readonly directory;
4
+ constructor(directory?: string);
5
+ start(input: {
6
+ projectDirectory: string;
7
+ agentName: string;
8
+ askedBy: string;
9
+ chatTitle: string;
10
+ }): Promise<{
11
+ notice?: string;
12
+ hasOverlap(): Promise<boolean>;
13
+ finish(): Promise<void>;
14
+ }>;
15
+ }
@@ -0,0 +1,79 @@
1
+ import { execFile } from "node:child_process";
2
+ import { randomUUID } from "node:crypto";
3
+ import { mkdir, readdir, readFile, realpath, rm, writeFile } from "node:fs/promises";
4
+ import path from "node:path";
5
+ import { promisify } from "node:util";
6
+ import envPaths from "env-paths";
7
+ const exec = promisify(execFile);
8
+ export const overlapInstructions = "Another agent is working in this folder at the same time. Don't switch branches, stash, reset, or delete or revert files you didn't create in this run, and commit only your own files.";
9
+ export class ActiveRunRegistry {
10
+ directory;
11
+ constructor(directory = path.join(envPaths("showrunner-agent").data, "active-runs")) {
12
+ this.directory = directory;
13
+ }
14
+ async start(input) {
15
+ const folder = await realpath(input.projectDirectory);
16
+ const env = Object.fromEntries(Object.entries(process.env).filter(([key]) => !key.startsWith("GIT_")));
17
+ const projectRoot = await exec("git", ["--no-optional-locks", "rev-parse", "--show-toplevel"], { cwd: folder, env, timeout: 5_000 })
18
+ .then(async (result) => realpath(result.stdout.trim()), () => folder);
19
+ const runDirectory = path.join(this.directory, randomUUID());
20
+ await mkdir(runDirectory, { recursive: true, mode: 0o700 });
21
+ let finished = false;
22
+ let overlapped = false;
23
+ const finish = async () => {
24
+ finished = true;
25
+ await rm(runDirectory, { recursive: true, force: true });
26
+ };
27
+ try {
28
+ const run = { projectRoot, agentName: input.agentName, askedBy: input.askedBy, chatTitle: input.chatTitle, pid: process.pid };
29
+ await writeFile(path.join(runDirectory, "run.json"), JSON.stringify(run), { mode: 0o600 });
30
+ let notice;
31
+ for (const entry of await readdir(this.directory)) {
32
+ const otherDirectory = path.join(this.directory, entry);
33
+ if (otherDirectory === runDirectory)
34
+ continue;
35
+ const other = await readFile(path.join(otherDirectory, "run.json"), "utf8")
36
+ .then(text => JSON.parse(text), () => undefined).catch(() => undefined);
37
+ if (other === undefined)
38
+ continue;
39
+ if (!alive(other.pid)) {
40
+ await rm(otherDirectory, { recursive: true, force: true });
41
+ continue;
42
+ }
43
+ if (other.projectRoot !== projectRoot)
44
+ continue;
45
+ overlapped = true;
46
+ notice ??= `${other.agentName} is also working in ${path.basename(projectRoot)} (started by ${other.askedBy}). Both will run.`;
47
+ // Each run keeps its own overlap marker even after the other run finishes.
48
+ await writeFile(path.join(otherDirectory, "overlap"), "").catch((error) => {
49
+ if (error.code !== "ENOENT")
50
+ throw error;
51
+ });
52
+ }
53
+ return {
54
+ notice,
55
+ hasOverlap: async () => {
56
+ if (!overlapped && !finished)
57
+ overlapped = await readFile(path.join(runDirectory, "overlap")).then(() => true, () => false);
58
+ return overlapped;
59
+ },
60
+ finish,
61
+ };
62
+ }
63
+ catch (error) {
64
+ await finish();
65
+ throw error;
66
+ }
67
+ }
68
+ }
69
+ function alive(pid) {
70
+ if (!Number.isInteger(pid) || pid < 1)
71
+ return false;
72
+ try {
73
+ process.kill(pid, 0);
74
+ return true;
75
+ }
76
+ catch (error) {
77
+ return error.code === "EPERM";
78
+ }
79
+ }
@@ -11,7 +11,7 @@ import { type ExternalAgentClient } from "./client.js";
11
11
  export { isAcknowledgement } from "./adapter.js";
12
12
  import { type AbandonOutcome, type AgentEventContext, type AgentEventProcessor } from "./handler.js";
13
13
  import { type LeftoverProcess } from "./process-ledger.js";
14
- import { type RunWorktreeManager } from "./run-worktrees.js";
14
+ import { ActiveRunRegistry } from "./active-runs.js";
15
15
  import type { AgentEvent, AgentInputResponse, ApprovalDecision, ApprovalRiskLevel, CommandResponse, ContextAsset, ContextPage, OutputMessagePiece, QuestionSelectionType } from "./protocol.js";
16
16
  import type { Note, TextAttachment } from "./protocol.js";
17
17
  import type { RunScopeReach } from "./approval-policy.js";
@@ -24,7 +24,7 @@ export declare function createAdapterProcessor(input: {
24
24
  state: AdapterStateStore;
25
25
  logger: AdapterLogger;
26
26
  projectDirectory?: string;
27
- worktrees?: RunWorktreeManager;
27
+ activeRuns?: ActiveRunRegistry;
28
28
  processLedger?: {
29
29
  record(): Promise<void>;
30
30
  };
@@ -40,8 +40,6 @@ export declare function createAdapterProcessor(input: {
40
40
  * and this one stopped; a run that had background work then says that work stopped too.
41
41
  */
42
42
  export declare function createAbandonReporter(client: () => ExternalAgentClient, state?: AdapterStateStore, stoppedProcesses?: () => readonly LeftoverProcess[]): (event: AgentEvent) => Promise<AbandonOutcome>;
43
- /** The step line when a chat is back in the owner's folder and its separate copy still has changes the folder lacks. */
44
- export declare function leftCopyLine(files: readonly string[]): string;
45
43
  export declare function abandonedRunNotice(agentName: string, stoppedWork?: string): string;
46
44
  /** Whether a progress question asks how much time is left rather than how it's going. */
47
45
  export declare function asksForTimeLeft(text: string): boolean;
@@ -57,7 +55,7 @@ export declare class InvocationAdapterClient implements AdapterClient {
57
55
  oweAnswer(): void;
58
56
  answerPosted(): void;
59
57
  narratesProgress: boolean;
60
- /** The owner's project folder, which user-visible text names instead of a per-run checkout. */
58
+ /** The owner's connected project folder. */
61
59
  projectDirectory: string | undefined;
62
60
  /**
63
61
  * commandNamespace scopes this client's command ids, which the server deduplicates. It defaults to
@@ -87,6 +85,14 @@ export declare class InvocationAdapterClient implements AdapterClient {
87
85
  * arrives while the provider can't read it: "Waiting for your OK to run npm test. So far: …".
88
86
  */
89
87
  approvalWaitStatus(): string | undefined;
88
+ /**
89
+ * For the owner's bare yes or no that reached the run while an approval card waits. The server
90
+ * answered no card with it (several wait, the card is elsewhere or is one a chat reply never
91
+ * answers, or someone wrote after the card, the agent included), so the owner is asked to tap:
92
+ * which one, when several wait. Cards with the same label are named once with their count.
93
+ * Undefined when none waits.
94
+ */
95
+ bareApprovalReplyAnswer(): string | undefined;
90
96
  /**
91
97
  * The answer to "how's it going?" mid-run: the step the live card shows as running now (a wait for a
92
98
  * background build included), how long that step and the run have taken, and, when asked how long
@@ -167,6 +173,7 @@ export declare class InvocationAdapterClient implements AdapterClient {
167
173
  allowSkip: boolean;
168
174
  autoResolutionMs: number;
169
175
  isBlocking?: boolean;
176
+ proceedsWithoutCard?: boolean;
170
177
  signal?: AbortSignal;
171
178
  }): Promise<Extract<AgentInputResponse, {
172
179
  type: "question.answered";