paseo-plugin-zcode-provider 0.1.0 → 0.3.0
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 +2 -2
- package/README.md +28 -14
- package/client/account.tsx +827 -0
- package/client/diagnostics.tsx +2 -20
- package/client/{setup.tsx → runtime.tsx} +4 -55
- package/client/settings.tsx +84 -0
- package/client/value.tsx +20 -0
- package/index.client.tsx +7 -7
- package/index.server.ts +20 -2
- package/package.json +9 -6
- package/server/account.ts +781 -0
- package/server/build-info.ts +1 -1
- package/server/diagnostics.ts +17 -0
- package/server/discovery/discover.ts +1 -1
- package/server/discovery/manifest.ts +1 -1
- package/server/host/bridge.ts +51 -22
- package/server/presentation.ts +48 -6
- package/server/provider-status.ts +81 -0
- package/server/provider.ts +10 -3
- package/server/runtime/pins.ts +6 -4
- package/server/runtime-setup.ts +4 -29
- package/server/session.ts +2 -0
- package/server/unsupported-capabilities.ts +18 -0
- package/server/usage.ts +362 -0
- package/shared/account.ts +201 -0
- package/shared/runtime-setup.ts +0 -2
package/NOTICE.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
# ZCode ランタイムの配布
|
|
14
14
|
|
|
15
|
-
ZCode は統合 CLI を配布していないため、このリポジトリは `zcode-runtime-v<version>` タグの GitHub Release で、統合 CLI 配布物の非公式ビルドを配布します(ADR 15)。CI
|
|
15
|
+
ZCode は統合 CLI を配布していないため、このリポジトリは `zcode-runtime-v<version>-paseo.<n>` タグの GitHub Release で、統合 CLI 配布物の非公式ビルドを配布します(ADR 15)。CI が公開タグのソースに [`patches/zcode/`](patches/zcode) のパッチを当て(ADR 19)、公式 `scripts/build-zcode.mjs` でビルドします。配布物には上流の `LICENSE`(Apache-2.0)、`NOTICE.md`、`THIRD-PARTY-NOTICES.md` と、当てたパッチそのもの(`patches/`)、出典・パッチの SHA-256・ビルド記録を収めた `BUILD-INFO.json` を加えます。パッチは Apache-2.0 で提供し、各パッチの冒頭に変更の目的と対象を記します。これは Apache-2.0 第 4 条 (b) の変更の明示にあたります。それ以前の `zcode-runtime-v3.14.3` は無改変のソースからのビルドです。第三者コンポーネントはそれぞれのライセンスに従い、上流が `third-party/inventory.json` で確認中とする項目もそのまま引き継ぎます。このビルドは ZCode・Z.ai の承認や保守を受けたものではなく、ZCode・Z.ai の商標の使用許諾も含みません。
|
|
16
16
|
|
|
17
17
|
Node.js は利用者のマシンが nodejs.org の公式成果物を直接取得します。このリポジトリは Node.js を再配布しません。
|
|
18
18
|
|
|
@@ -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.
|
|
23
|
+
開発 SDK は `@getpaseo/plugin@0.11.0-beta.5` です。ビルドは `@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
|
@@ -8,12 +8,12 @@ This is an unofficial plugin. It is not endorsed or maintained by ZCode or Z.ai.
|
|
|
8
8
|
|
|
9
9
|
## Requirements
|
|
10
10
|
|
|
11
|
-
| Setting | Requirement
|
|
12
|
-
| -------------- |
|
|
13
|
-
| Paseo | 0.8.0 or later; development SDK 0.
|
|
14
|
-
| Plugin Node.js | 22.12.0 or later (the Paseo daemon's runtime)
|
|
15
|
-
| Managed setup | darwin-arm64, linux-x64, linux-arm64, win-x64, win-arm64
|
|
16
|
-
| ZCode | Managed: 3.14.3 with Node.js 24.21.0. Overrides: stable Server 3.14.0+ / Agent 0.16.9+ with Node.js 24.14.0+ |
|
|
11
|
+
| Setting | Requirement |
|
|
12
|
+
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
|
|
13
|
+
| Paseo | 0.8.0 or later; development SDK 0.11.0-beta.5 |
|
|
14
|
+
| Plugin Node.js | 22.12.0 or later (the Paseo daemon's runtime) |
|
|
15
|
+
| Managed setup | darwin-arm64, linux-x64, linux-arm64, win-x64, win-arm64 |
|
|
16
|
+
| ZCode | Managed: 3.14.3 (release `3.14.3-paseo.1`) with Node.js 24.21.0. Overrides: stable Server 3.14.0+ / Agent 0.16.9+ with Node.js 24.14.0+ |
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
@@ -30,10 +30,12 @@ To follow the `main` branch instead, install the Git repository with `paseo plug
|
|
|
30
30
|
|
|
31
31
|
## Setup
|
|
32
32
|
|
|
33
|
-
Open **Settings → Plugins → zcode-provider →
|
|
33
|
+
Open **Settings → Plugins → zcode-provider → Settings**. The screen has two tabs: **Runtime** installs and removes the runtime, and **Account** signs in and manages model providers.
|
|
34
|
+
|
|
35
|
+
On the **Runtime** tab, choose **Download and install**. The screen lists every download, its SHA-256, size and license before you start. Setup runs on the machine hosting the daemon:
|
|
34
36
|
|
|
35
37
|
- Node.js 24.21.0 from nodejs.org.
|
|
36
|
-
- The ZCode runtime 3.14.3 from this repository's [releases](https://github.com/supermomonga/paseo-plugin-zcode-provider/releases/tag/zcode-runtime-v3.14.3). ZCode does not publish its integrated CLI, so this is an **unofficial build** of the
|
|
38
|
+
- The ZCode runtime 3.14.3 from this repository's [releases](https://github.com/supermomonga/paseo-plugin-zcode-provider/releases/tag/zcode-runtime-v3.14.3-paseo.1) (`3.14.3-paseo.1`). ZCode does not publish its integrated CLI, so this is an **unofficial build** of the public source with the patches in [patches/zcode](patches/zcode) applied (ADR 19), made and verified by CI. The patches hide Computer Use and Browser Use, which cannot run here. It is not endorsed or maintained by ZCode or Z.ai.
|
|
37
39
|
|
|
38
40
|
Both archives are verified against SHA-256 values pinned in the plugin and extracted to the daemon user's data directory:
|
|
39
41
|
|
|
@@ -44,9 +46,20 @@ Both archives are verified against SHA-256 values pinned in the plugin and extra
|
|
|
44
46
|
|
|
45
47
|
An absolute `XDG_DATA_HOME` replaces the base directory on every OS. `PATH` and other installations are not changed. The plugin never installs anything until you start setup.
|
|
46
48
|
|
|
47
|
-
|
|
49
|
+
**Remove** on the Runtime tab deletes the managed runtime; `paseo plugin remove` does not. ZCode settings, logins and conversations are kept.
|
|
50
|
+
|
|
51
|
+
### Account and model providers
|
|
52
|
+
|
|
53
|
+
The **Account** tab uses ZCode's own account and provider services, the same ones ZCode Desktop uses, through a ZCode Server that the plugin starts while the screen is in use. Changes are stored in ZCode's data on the daemon machine and are shared with ZCode Desktop and the CLI there.
|
|
54
|
+
|
|
55
|
+
- **Sign in**: choose Z.ai (international) or BigModel (China) and press **Sign in**. The sign-in page opens in your browser; the link is also shown, so you can finish on any device. The daemon receives the result, then selects the account's Coding Plan unless a plan is already chosen. The **Plans** section shows which of the account's plans (Coding Plan, Start Plan) are available. ZCode allows one signed-in account at a time.
|
|
56
|
+
- **Model providers**: add any number of providers that use an API key, from a ZCode template (Z.ai, BigModel, Kimi, MiniMax, DeepSeek, Alibaba Cloud, OpenAI, Anthropic, xAI, OpenRouter and others) or a custom endpoint with its base URL, API format and model IDs. Providers and models can be turned off, edited and deleted.
|
|
57
|
+
|
|
58
|
+
API keys are sent to ZCode, which stores them as Desktop does, and are never shown again. The plugin itself stores no credentials. Afterwards, choose **ZCode** when creating an agent; the model list is refreshed after each change on Paseo 0.9 or later.
|
|
59
|
+
|
|
60
|
+
### Coding Plan usage
|
|
48
61
|
|
|
49
|
-
**
|
|
62
|
+
On Paseo 0.11 and later, 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. Paseo 0.11.0-beta.5 does not yet show usage in a ZCode agent's popover.
|
|
50
63
|
|
|
51
64
|
### Using your own runtime
|
|
52
65
|
|
|
@@ -69,10 +82,11 @@ The source baseline is `29628c9acdb81b703bbd4080c207a0e7ce5e276e` (ZCode `v3.14.
|
|
|
69
82
|
- Text, thoughts, tools, subagent progress, usage and history use V4 snapshots and deltas. Tool output is marked when ZCode truncates it. Usage is cumulative; repeated snapshots do not add it again.
|
|
70
83
|
- Text submitted during generation uses native guidance. Attachments use the native queue. Paseo reports one run across these native turns and completes it only after all accepted input has been consumed and foreground work has ended.
|
|
71
84
|
- Acceptance is reported once, after the native acknowledgement. Unknown delivery results are never automatically resent. Stop identifies the current native execution, disables automatic queue execution and removes pending input. A new explicit run enables the queue again.
|
|
85
|
+
- As in ZCode Desktop, successful hooks are not shown. A finished hook invocation appears once, as a notification, only when a hook was blocked, failed, timed out or was cancelled; context compaction also appears once, when it ends. Paseo appends every notification it receives, so progress is not reported.
|
|
72
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.”
|
|
73
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.
|
|
74
88
|
|
|
75
|
-
The plugin uses ZCode's own skills, MCP configuration and tools. Browser
|
|
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. The plugin therefore hides them from the model (ADR 19); 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)).
|
|
76
90
|
|
|
77
91
|
## Persistence
|
|
78
92
|
|
|
@@ -84,7 +98,7 @@ New conversations support listing, resume and paged V4 history. Mode/Plan restor
|
|
|
84
98
|
|
|
85
99
|
## Diagnostics
|
|
86
100
|
|
|
87
|
-
**Settings → Plugins → zcode-provider → Diagnostics** shows whether the managed runtime or the environment override is in use, the runtime and Node.js paths and versions, Server/Agent versions and hashes, minimum-version assessment and mapping location. The screen is read-only. Its optional version check does not prove that authentication or a model call succeeds.
|
|
101
|
+
**Settings → Plugins → zcode-provider → Diagnostics** shows whether the managed runtime or the environment override is in use, the runtime and Node.js paths and versions, Server/Agent versions and hashes, minimum-version assessment and mapping location. The screen is read-only. Its optional version check does not prove that authentication or a model call succeeds. On Paseo 0.11 and later, **Settings → Providers** also shows ZCode as not installed until the runtime is set up and supported. Its diagnostic lists the runtime source, Server, Agent and Node.js versions and platform, or the reason the runtime cannot be used. This check reuses its result for 30 seconds and does not start ZCode, so sign-in problems still appear when a session starts.
|
|
88
102
|
|
|
89
103
|
```bash
|
|
90
104
|
paseo plugin logs zcode-provider
|
|
@@ -94,6 +108,6 @@ For failures, report the operation, error code, structured diagnostic and versio
|
|
|
94
108
|
|
|
95
109
|
## Development and license
|
|
96
110
|
|
|
97
|
-
See [development](docs/development.md), [verification](docs/verification.md), [remaining work](docs/todo.md), [ADR 13](docs/adr/0013-公開ソースの公式stdio-serverとv4会話状態を採用する.md)
|
|
111
|
+
See [development](docs/development.md), [verification](docs/verification.md), [remaining work](docs/todo.md), [ADR 13](docs/adr/0013-公開ソースの公式stdio-serverとv4会話状態を採用する.md), [ADR 15](docs/adr/0015-プラグイン管理のzcodeランタイムとnode-jsを設定画面から導入する.md) and [ADR 19](docs/adr/0019-使えない公式プラグインを隠すビルド時パッチを管理下ランタイムに当てる.md).
|
|
98
112
|
|
|
99
|
-
Original code is [MIT](LICENSE). Vendored ZCode RPC/contracts retain their upstream license and provenance. The ZCode runtime releases are Apache-2.0 builds of
|
|
113
|
+
Original code is [MIT](LICENSE). Vendored ZCode RPC/contracts retain their upstream license and provenance. The ZCode runtime releases are Apache-2.0 builds of the upstream source and include ZCode's LICENSE, NOTICE.md and THIRD-PARTY-NOTICES.md. Releases named `<version>-paseo.<n>` modify that source with the patches in [patches/zcode](patches/zcode) (Apache-2.0), ship them in the archive and list them in `BUILD-INFO.json`; the earlier `3.14.3` release is unmodified; third-party components keep their own terms. Node.js is downloaded from nodejs.org, not redistributed. The icon retains Apache-2.0 attribution; the historical screenshot includes third-party UI and branding. See [NOTICE](NOTICE.md).
|