agent-director 0.17.5 → 0.17.6
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 +5 -5
- package/dist/internal/subprocessClient.d.ts +3 -3
- package/dist/types.d.ts +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -133,8 +133,8 @@ Cursor uses the existing result and row fields; `status` keeps its existing
|
|
|
133
133
|
shape. `resume({ instance_id: id })` launches load of only its latest saved session;
|
|
134
134
|
the row can remain `pending` until a real first prompt. After inspecting the
|
|
135
135
|
pane, pass `allow_pending: true` to `sendKeys` for that prompt; binding and
|
|
136
|
-
dialog guards still apply. Saved configuration
|
|
137
|
-
defined in [Pause and resume](../../docs/usage.md#pause-and-resume).
|
|
136
|
+
dialog guards still apply. Saved configuration replay, which never includes
|
|
137
|
+
the initial prompt, is defined in [Pause and resume](../../docs/usage.md#pause-and-resume).
|
|
138
138
|
`reuse_finished: true` supports Cursor and agent switches under the linked
|
|
139
139
|
life rules. `makeTemplate`
|
|
140
140
|
and `spawn` refuse nonempty Cursor permission lists with
|
|
@@ -638,14 +638,14 @@ Thrown per verb call by the subprocess transport, not by the CLI's own validatio
|
|
|
638
638
|
|
|
639
639
|
These classes correspond to the shared CLI `err_name` contract. They surface bad input, a verb's own state preconditions, a config or store the CLI cannot open, or a failure of the CLI itself — almost all are either **programmer error** or a **normal operational signal**, so few catch sites need to name them individually. They are grouped by domain below.
|
|
640
640
|
|
|
641
|
-
**cwd validation** (
|
|
641
|
+
**cwd validation** (spawn's `cwd` argument — programmer error — or resume's saved cwd, gone since the row finished):
|
|
642
642
|
|
|
643
643
|
| Error | When it fires |
|
|
644
644
|
|---|---|
|
|
645
645
|
| `ErrCwdMissing` | No `cwd` was supplied; spawn requires it to derive the JSONL/resume path. |
|
|
646
646
|
| `ErrCwdNotAPath` | `cwd` is neither absolute nor a `~/` form (URLs, bare relative paths, non-path values). |
|
|
647
|
-
| `ErrCwdNotFound` | `cwd` resolved to a path that does not exist on disk. |
|
|
648
|
-
| `ErrCwdNotADirectory` | `cwd` resolved to a file (or other non-directory inode). |
|
|
647
|
+
| `ErrCwdNotFound` | `cwd` resolved to a path that does not exist on disk. `resume` also returns it when the row's saved cwd is gone; nothing is written or launched. |
|
|
648
|
+
| `ErrCwdNotADirectory` | `cwd` resolved to a file (or other non-directory inode). `resume` also returns it when the row's saved cwd is no longer a directory. |
|
|
649
649
|
|
|
650
650
|
**spawn and template config validation** (bad `spawn` or `makeTemplate` arguments — programmer error):
|
|
651
651
|
|
|
@@ -126,9 +126,9 @@ export declare class SubprocessClient {
|
|
|
126
126
|
* filtering stored session selectors, Claude print mode and orphaned cloud
|
|
127
127
|
* controls while preserving other arguments and option-owned values. Claude
|
|
128
128
|
* inputs missing a recognized required value get literal filtering only;
|
|
129
|
-
* parsed-role preservation applies when all required values are present.
|
|
130
|
-
*
|
|
131
|
-
* re-encoded
|
|
129
|
+
* parsed-role preservation applies when all required values are present. The
|
|
130
|
+
* saved prompt is never replayed, and altered Claude short clusters are
|
|
131
|
+
* re-encoded only when needed to preserve their original parsed meaning. */
|
|
132
132
|
resume(params: ResumeParams): Promise<ResumeResult>;
|
|
133
133
|
/** findMissing — sweep live Spawns, marking each `missing` (a Codex row with its end report: `ended`) or leaving it unverified on process and tmux evidence; see FindMissingResult. */
|
|
134
134
|
findMissing(params: FindMissingParams): Promise<FindMissingResult>;
|
package/dist/types.d.ts
CHANGED
|
@@ -1017,8 +1017,9 @@ export interface ResumeParams {
|
|
|
1017
1017
|
* environment/pool context. Other arguments and option-owned values survive.
|
|
1018
1018
|
* Claude inputs missing a recognized required value get literal filtering only;
|
|
1019
1019
|
* parsed-role preservation applies when all required values are present.
|
|
1020
|
-
*
|
|
1021
|
-
*
|
|
1020
|
+
* The saved prompt (operands, an unowned -- and what follows; an unknown
|
|
1021
|
+
* option's next word counts) is never replayed. Altered Claude short clusters
|
|
1022
|
+
* are re-encoded only when needed to preserve their original parsed meaning;
|
|
1022
1023
|
* otherwise their order and spelling survive. Stored agent_args are unchanged.
|
|
1023
1024
|
* Resume moved the row to `pending`, keeping
|
|
1024
1025
|
* its session id and history, until the agent reports in (Cursor: verified first prompt),
|