paseo-plugin-zcode-provider 0.4.0 → 0.4.2
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 +13 -2
package/README.md
CHANGED
|
@@ -86,7 +86,7 @@ The source baseline is `3c5b227649371507ddc4eb46ac5133afe6db1cab` (ZCode 3.16.2,
|
|
|
86
86
|
- Native permission IDs, option values, questions and Plan approval retain their meanings. Question auto-resolution is disabled for each owned Server. Workspace hook trust is reviewed through the official CLI; it is not represented as “allow once.”
|
|
87
87
|
- Each session owns its Server process and environment. Metadata requests use temporary Servers. Closing stdin gives ZCode time to clean up before process termination.
|
|
88
88
|
|
|
89
|
-
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 and Goal/Workflow controls are outside this migration. `prompt.output_schema`, custom system prompts and `persist:false` are unsupported. MCP `alwaysLoad` is unsupported; stdio MCP commands must be absolute paths. Provider options are unsupported: in Paseo 0.11 and later, `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 0.11's Usage screen (see [Coding Plan usage](#coding-plan-usage)).
|
|
89
|
+
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 and Goal/Workflow controls 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. Provider options are unsupported: in Paseo 0.11 and later, `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 0.11's Usage screen (see [Coding Plan usage](#coding-plan-usage)).
|
|
90
90
|
|
|
91
91
|
## Persistence
|
|
92
92
|
|
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.4.
|
|
2
|
+
export const PROVIDER_VERSION = "0.4.2";
|
package/server/provider.ts
CHANGED
|
@@ -497,7 +497,7 @@ export class ZCodeConnection implements ProviderConnection {
|
|
|
497
497
|
if (config.systemPrompt?.trim())
|
|
498
498
|
throw new AdapterError(
|
|
499
499
|
"INVALID_CONFIGURATION",
|
|
500
|
-
"
|
|
500
|
+
"ZCode does not support custom system prompts. Remove any added by Paseo's System prompt setting (Orchestration) or by another plugin.",
|
|
501
501
|
);
|
|
502
502
|
if (!config.persist)
|
|
503
503
|
throw new AdapterError(
|
|
@@ -814,12 +814,23 @@ function publicError(error: unknown): ProviderError {
|
|
|
814
814
|
PERSISTENCE_WRITE_FAILED:
|
|
815
815
|
"ZCode resume information could not be saved. The prompt was not sent.",
|
|
816
816
|
};
|
|
817
|
+
// diagnosticError keeps the thrown error as the cause. Only a configuration
|
|
818
|
+
// reason the plugin raised itself is shown; wrapped native or unexpected
|
|
819
|
+
// failures keep the generic text.
|
|
820
|
+
const configurationReason =
|
|
821
|
+
error instanceof AdapterError &&
|
|
822
|
+
error.code === "INVALID_CONFIGURATION" &&
|
|
823
|
+
error.cause instanceof AdapterError
|
|
824
|
+
? error.message
|
|
825
|
+
: undefined;
|
|
817
826
|
return {
|
|
818
827
|
diagnostic: formatDiagnostic(error),
|
|
819
828
|
code: error instanceof AdapterError ? error.code : "INVALID_CONFIGURATION",
|
|
820
829
|
message:
|
|
821
830
|
error instanceof AdapterError
|
|
822
|
-
? (messages[error.code] ??
|
|
831
|
+
? (messages[error.code] ??
|
|
832
|
+
configurationReason ??
|
|
833
|
+
`ZCode operation failed (${error.code})`)
|
|
823
834
|
: "Invalid ZCode provider request",
|
|
824
835
|
};
|
|
825
836
|
}
|