paseo-plugin-zcode-provider 0.5.1 → 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/NOTICE.md +1 -1
- package/README.md +3 -3
- package/package.json +4 -4
- package/server/build-info.ts +1 -1
- package/server/provider.ts +10 -3
package/NOTICE.md
CHANGED
|
@@ -20,7 +20,7 @@ Node.js は利用者のマシンが nodejs.org の公式成果物を直接取得
|
|
|
20
20
|
|
|
21
21
|
ファイルごとの出典・SHA-256、private workspace import の変更、第三者通知の抽出範囲を [provenance.json](server/vendor/zcode/provenance.json) に記録しています。取得・照合は `scripts/sync-zcode-source.mjs` で行います。`npm run build` はこれらのライセンス・通知を `dist/licenses/zcode` にも配置します。
|
|
22
22
|
|
|
23
|
-
開発 SDK は `@getpaseo/plugin@0.15.
|
|
23
|
+
開発 SDK は `@getpaseo/plugin@0.15.4` です。ビルドは `@getpaseo/plugin/server/provider` と `zod` を外部モジュールとして維持し、Paseo に解決させます。
|
|
24
24
|
|
|
25
25
|
`icon.svg` は [Paseo main c424f829 の glm-acp-agent.svg](https://github.com/getpaseo/paseo/blob/c424f82922fcd36aa9cc9e473644bca04417b420/packages/app/src/assets/acp-provider-icons/glm-acp-agent.svg) のコピーです。この SVG は [ACP Registry の glm-acp-agent/icon.svg](https://github.com/agentclientprotocol/registry/blob/f3826ddd6e35951ea9b7fd0cf43c35a30c3c64cd/glm-acp-agent/icon.svg) とバイト単位で一致します。ACP Registry は Apache-2.0 で配布されており、その [LICENSE](vendor/acp-registry/LICENSE) を保持しています。アイコンは変更していません。商標への権利や公式の承認を示すものではありません。
|
|
26
26
|
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ This is an unofficial plugin. It is not endorsed or maintained by ZCode or Z.ai.
|
|
|
10
10
|
|
|
11
11
|
| Setting | Requirement |
|
|
12
12
|
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
|
|
13
|
-
| Paseo | 0.15.0 or later; development SDK 0.15.
|
|
13
|
+
| Paseo | 0.15.0 or later; development SDK 0.15.4 |
|
|
14
14
|
| Plugin Node.js | 22.12.0 or later (the Paseo daemon's runtime) |
|
|
15
15
|
| Managed setup | darwin-arm64, linux-x64, linux-arm64, win-x64, win-arm64 |
|
|
16
16
|
| ZCode | Managed: 3.17.2 (release `3.17.2-paseo.1`) with Node.js 24.21.0. Overrides: stable Server 3.14.0+ / Agent 0.16.9+ with Node.js 24.14.0+ |
|
|
@@ -63,7 +63,7 @@ ZCode adds a line when a turn runs on a different model than the previous turn,
|
|
|
63
63
|
|
|
64
64
|
### Coding Plan usage
|
|
65
65
|
|
|
66
|
-
Paseo's **Usage** screen and sidebar usage summary show a **ZCode** card for the signed-in account's Individual Coding Plan (Z.ai or BigModel). It lists the 5-hour, weekly, monthly tool-call and ZCode MCP quotas with their reset times, as ZCode Desktop does. The plugin asks ZCode's official usage service for this plan only, on the same ZCode Server as the Account tab. The service never uses an API key from the environment. Team Plan and Start Plan are not shown. Nothing is requested while **Check usage** is off for the host. Paseo 0.15.
|
|
66
|
+
Paseo's **Usage** screen and sidebar usage summary show a **ZCode** card for the signed-in account's Individual Coding Plan (Z.ai or BigModel). It lists the 5-hour, weekly, monthly tool-call and ZCode MCP quotas with their reset times, as ZCode Desktop does. The plugin asks ZCode's official usage service for this plan only, on the same ZCode Server as the Account tab. The service never uses an API key from the environment. Team Plan and Start Plan are not shown. Nothing is requested while **Check usage** is off for the host. Paseo 0.15.4 does not yet show usage in a ZCode agent's popover.
|
|
67
67
|
|
|
68
68
|
### Using your own runtime
|
|
69
69
|
|
|
@@ -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paseo-plugin-zcode-provider",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Unofficial Paseo provider plugin for ZCode, using the official stdio Services Server of the integrated ZCode CLI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"paseo",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"semver": "7.8.5"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@getpaseo/client": "0.15.
|
|
64
|
-
"@getpaseo/plugin": "0.15.
|
|
65
|
-
"@getpaseo/protocol": "0.15.
|
|
63
|
+
"@getpaseo/client": "0.15.4",
|
|
64
|
+
"@getpaseo/plugin": "0.15.4",
|
|
65
|
+
"@getpaseo/protocol": "0.15.4",
|
|
66
66
|
"@types/node": "22.18.3",
|
|
67
67
|
"@types/react": "~19.2.0",
|
|
68
68
|
"@types/semver": "7.8.0",
|
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(
|