paseo-plugin-zcode-provider 0.5.2 → 0.5.3
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 +1 -1
- package/package.json +1 -1
- package/server/build-info.ts +1 -1
- package/server/provider.ts +10 -3
package/README.md
CHANGED
|
@@ -97,7 +97,7 @@ The source baseline is `a9fe401eede6e6e5e01be9048679c206fe6f02d9` (ZCode 3.17.2,
|
|
|
97
97
|
- An agent with a goal shows a **Goal** pill above the composer, next to Paseo's Tasks, with the time spent and an icon for the state. Its popover lists one row per iteration with the count of that iteration's tasks, as ZCode Desktop's status panel does. The pill follows the goal within about 10 seconds while it is in progress. It appears only while the agent's session is open: after Paseo released an idle agent or the daemon restarted, it returns with the next message.
|
|
98
98
|
- With **Release idle agents** (Host settings → Agents, on by default), Paseo closes an agent's session after an hour of inactivity and reopens it on the next message. The plugin keeps the session while ZCode still has a foreground turn, queued input, a pending question or approval, a running background command, subagent or workflow, or a goal that is active or being verified (ADR 25). A finished background command's result that ZCode has not yet delivered is not distinguishable and does not keep it. **Resume agents after restart** reopens agents interrupted by a host restart and sends the resume prompt. Both reopen the saved conversation with Paseo's saved mode and Plan settings ([ADR 14](docs/adr/0014-paseoの保存設定を再適用する復元を保証範囲とする.md)).
|
|
99
99
|
|
|
100
|
-
The plugin uses ZCode's own skills, MCP configuration and tools. Browser Use and Computer Use cannot run in the plugin's ZCode, even when ZCode Desktop has them enabled: the Computer Use helper accepts only the signed Desktop app, and only Desktop provides browsers. ZCode's Visualize (interactive views in the conversation) renders only in Desktop. The plugin therefore hides all three from the model (ADR 19, ADR 21); Desktop is not affected. Generic rewind, independent Paseo child agents, hook-review UI, Workflow controls and buttons for the goal (use the `/goal` commands) are outside this migration. `prompt.output_schema`, custom system prompts and `persist:false` are unsupported. A system prompt makes session creation fail with `INVALID_CONFIGURATION` and a message explaining why, including one appended by Paseo's Orchestration → System prompt setting or by another plugin that adds one to new agents. MCP `alwaysLoad` is unsupported; stdio MCP commands must be absolute paths.
|
|
100
|
+
The plugin uses ZCode's own skills, MCP configuration and tools. Browser Use and Computer Use cannot run in the plugin's ZCode, even when ZCode Desktop has them enabled: the Computer Use helper accepts only the signed Desktop app, and only Desktop provides browsers. ZCode's Visualize (interactive views in the conversation) renders only in Desktop. The plugin therefore hides all three from the model (ADR 19, ADR 21); Desktop is not affected. Generic rewind, independent Paseo child agents, hook-review UI, Workflow controls and buttons for the goal (use the `/goal` commands) are outside this migration. `prompt.output_schema`, custom system prompts and `persist:false` are unsupported. A system prompt makes session creation fail with `INVALID_CONFIGURATION` and a message explaining why, including one appended by Paseo's Orchestration → System prompt setting or by another plugin that adds one to new agents. MCP `alwaysLoad` is unsupported; stdio MCP commands must be absolute paths. The only provider option is `plan_mode`, Plan's composer toggle: any other key in `agents.providers.zcode.options` in Paseo's `config.json` makes sessions fail with `INVALID_CONFIGURATION`, and the `command` and `env` overrides there are not applied. Paseo does not show context usage reported before the first turn, and the plugin adds no substitute display; Coding Plan quota appears in Paseo's Usage screen (see [Coding Plan usage](#coding-plan-usage)).
|
|
101
101
|
|
|
102
102
|
## Persistence
|
|
103
103
|
|
package/package.json
CHANGED
package/server/build-info.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated from package.json by npm prepare / prebuild.
|
|
2
|
-
export const PROVIDER_VERSION = "0.5.
|
|
2
|
+
export const PROVIDER_VERSION = "0.5.3";
|
package/server/provider.ts
CHANGED
|
@@ -104,7 +104,6 @@ export async function createHost(
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
const optionsSchema = z.object({}).strict();
|
|
108
107
|
const settingsSchema = z.object({ plan_mode: z.boolean().optional() }).strict();
|
|
109
108
|
|
|
110
109
|
interface SessionEntry {
|
|
@@ -549,8 +548,16 @@ export class ZCodeConnection implements ProviderConnection {
|
|
|
549
548
|
input: Extract<ProviderInput, { type: "session.open" }>,
|
|
550
549
|
): Promise<void> {
|
|
551
550
|
const config = input.config;
|
|
552
|
-
|
|
553
|
-
|
|
551
|
+
// Paseo 0.16 passes the agent's options, provider defaults included, as
|
|
552
|
+
// `providerOptions` and repeats them in the deprecated `settings`. Paseo
|
|
553
|
+
// 0.15 passes the composer's `plan_mode` only in `settings`, while its
|
|
554
|
+
// `providerOptions` also hold the defaults from `config.json`; `settings`
|
|
555
|
+
// wins, as the agent's own value wins over a default on 0.16. Stop reading
|
|
556
|
+
// `settings` once Paseo 0.16 is the minimum.
|
|
557
|
+
const settings = settingsSchema.parse({
|
|
558
|
+
...config.providerOptions,
|
|
559
|
+
...config.settings,
|
|
560
|
+
});
|
|
554
561
|
requireConfigurableMode(config.mode);
|
|
555
562
|
if (config.systemPrompt?.trim())
|
|
556
563
|
throw new AdapterError(
|