From ae475d32a1dd8d23116b3435b4c76d267a53b1dc Mon Sep 17 00:00:00 2001 From: supermomonga <377137+supermomonga@users.noreply.github.com> Date: Thu, 12 Nov 2026 12:20:02 +0900 Subject: [PATCH] chore: support Paseo 0.15.4 Paseo 0.15.4 only adds Claude Fable 5.2 and Mythos 5.2 to the Claude provider's model catalog. Nothing changed in packages/plugin, protocol or client, the plugin provider adapter, the agent manager, or the plugin compiler and preparation. The published SDK packages differ from 0.15.3 only in their package.json versions. - Pin the development SDKs to 0.15.4 and CI's upstream checkout to v0.15.4. - Record the review and the checks in docs/verification.md. --- .github/workflows/ci.yml | 2 +- NOTICE.md | 2 +- README.md | 4 ++-- docs/development.md | 2 +- docs/todo.md | 4 ++-- docs/verification.md | 18 ++++++++++++++++++ package-lock.json | 38 +++++++++++++++++++------------------- package.json | 6 +++--- 8 files changed, 47 insertions(+), 29 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c0330f..05f8b93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: uses: actions/checkout@v6 with: repository: getpaseo/paseo - ref: d91ae138cb931447635e94296023414a58bedcc5 # v0.15.3 + ref: 1c00b365c9e0b74c1580eba33d905d693125ae21 # v0.15.4 path: paseo persist-credentials: false - name: Check out reference ZCode source diff --git a/NOTICE.md b/NOTICE.md index f24623f..60c8211 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -20,7 +20,7 @@ Node.js は利用者のマシンが nodejs.org の公式成果物を直接取得 ファイルごとの出典・SHA-256、private workspace import の変更、第三者通知の抽出範囲を [provenance.json](server/vendor/zcode/provenance.json) に記録しています。取得・照合は `scripts/sync-zcode-source.mjs` で行います。`npm run build` はこれらのライセンス・通知を `dist/licenses/zcode` にも配置します。 -開発 SDK は `@getpaseo/plugin@0.15.3` です。ビルドは `@getpaseo/plugin/server/provider` と `zod` を外部モジュールとして維持し、Paseo に解決させます。 +開発 SDK は `@getpaseo/plugin@0.15.4` です。ビルドは `@getpaseo/plugin/server/provider` と `zod` を外部モジュールとして維持し、Paseo に解決させます。 `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) を保持しています。アイコンは変更していません。商標への権利や公式の承認を示すものではありません。 diff --git a/README.md b/README.md index 19d3e7f..0eb3ae9 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ This is an unofficial plugin. It is not endorsed or maintained by ZCode or Z.ai. | Setting | Requirement | | -------------- | --------------------------------------------------------------------------------------------------------------------------------------- | -| Paseo | 0.15.0 or later; development SDK 0.15.3 | +| Paseo | 0.15.0 or later; development SDK 0.15.4 | | Plugin Node.js | 22.12.0 or later (the Paseo daemon's runtime) | | Managed setup | darwin-arm64, linux-x64, linux-arm64, win-x64, win-arm64 | | 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, ### Coding Plan usage -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.3 does not yet show usage in a ZCode agent's popover. +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. ### Using your own runtime diff --git a/docs/development.md b/docs/development.md index e347de2..c73fcd6 100644 --- a/docs/development.md +++ b/docs/development.md @@ -12,7 +12,7 @@ npm run check:zcode-source -- ~/ghq/github.com/zai-org/ZCode npm run test:upstream -- /absolute/path/to/paseo ``` -`test:upstream` uses Paseo's actual plugin compiler, Git preparation and Provider adapter. Use commit `d91ae138cb931447635e94296023414a58bedcc5` (0.15.3), matching the installed development SDK. Paseo runs compilation and preparation in a worker; the check loads the worker's own modules (`compiler-build.ts`, `preparation-build.ts`) instead. It checks clean npm preparation of a Git checkout both with `NODE_ENV` unset and `production`, installation of the `npm pack` tarball with Paseo's npm acquisition options, the daemon's `requirements.paseo` check (0.14.0 is rejected), server/client registration (including the timeline settings document, the usage source, the `zcode.goals` handler and the Goal pill that the client entry registers and removes) and the provider icon of both, that the client imports no deprecated SDK entry, V4 timeline, guidance, attachment queue aggregation, the idle runtime veto, a classified turn failure, `/goal` reaching the Server as `sendGoalCommand` with the agent named by the launch environment (ADR 27), `/compact` completing and stopping without a user input row or a named execution (ADR 28), stop, provider replacement, history and Plan configuration on resume. The adapter fixture uses the official V4 schemas and delta application; it does not prove native behavior. +`test:upstream` uses Paseo's actual plugin compiler, Git preparation and Provider adapter. Use commit `1c00b365c9e0b74c1580eba33d905d693125ae21` (0.15.4), matching the installed development SDK. Paseo runs compilation and preparation in a worker; the check loads the worker's own modules (`compiler-build.ts`, `preparation-build.ts`) instead. It checks clean npm preparation of a Git checkout both with `NODE_ENV` unset and `production`, installation of the `npm pack` tarball with Paseo's npm acquisition options, the daemon's `requirements.paseo` check (0.14.0 is rejected), server/client registration (including the timeline settings document, the usage source, the `zcode.goals` handler and the Goal pill that the client entry registers and removes) and the provider icon of both, that the client imports no deprecated SDK entry, V4 timeline, guidance, attachment queue aggregation, the idle runtime veto, a classified turn failure, `/goal` reaching the Server as `sendGoalCommand` with the agent named by the launch environment (ADR 27), `/compact` completing and stopping without a user input row or a named execution (ADR 28), stop, provider replacement, history and Plan configuration on resume. The adapter fixture uses the official V4 schemas and delta application; it does not prove native behavior. ## Source of truth diff --git a/docs/todo.md b/docs/todo.md index a69afb1..6dc4e4a 100644 --- a/docs/todo.md +++ b/docs/todo.md @@ -36,7 +36,7 @@ Paseo 標準の quota/リセット時刻/初期 usage 表示は公開プラグ `ProviderRegistration.status()` と usage source を採用した([ADR 18](adr/0018-paseo-0-11のprovider-statusとusage-sourceでランタイムの可用性とcoding-planの利用量を表示する.md))。残る項目は次のとおり。 -- **ZCode エージェント単位の利用量**:0.15.3 の Paseo も、プラグイン Provider のセッションでアカウントを探索しない(`plugin-provider.ts` の `PluginAgentSession` に `usageSession()` が無い)ため、エージェントのポップオーバーに利用量が出ない。プラグインはセッションの範囲の探索に対応済みなので、Paseo が探索するようになったら表示を確認する。 +- **ZCode エージェント単位の利用量**:0.15.4 の Paseo も、プラグイン Provider のセッションでアカウントを探索しない(`plugin-provider.ts` の `PluginAgentSession` に `usageSession()` が無い)ため、エージェントのポップオーバーに利用量が出ない。プラグインはセッションの範囲の探索に対応済みなので、Paseo が探索するようになったら表示を確認する。 - **Team Plan と Start Plan の利用量**:Desktop は Team Plan に組織とプロジェクトを含む動的なアカウントアクセスを渡し、Start Plan は残高として別に表示する。同じ経路を公式サービスで再現できるか確認してから対応する。 - **サインイン状態の可用性**:`status()` はランタイムだけを検査する。未サインインやモデルが無い状態は、Server を起動しないと分からないため、従来どおりセッション作成時に知らせる。 -- **初期 usage**:0.10.3、0.11.0-beta.5、0.12.0 でも、`session.ready` 前に送った使用量は購読者へ再通知されない。0.15.3 のアダプターも、ready 前のイベントは履歴に積むだけで購読者へ流さない。0.11.0-beta.4 の変更(getpaseo/paseo#6089)は、初回ターン前のメーターをアプリ側で空表示にするものである。制約は残る。 +- **初期 usage**:0.10.3、0.11.0-beta.5、0.12.0 でも、`session.ready` 前に送った使用量は購読者へ再通知されない。0.15.4 のアダプターも、ready 前のイベントは履歴に積むだけで購読者へ流さない。0.11.0-beta.4 の変更(getpaseo/paseo#6089)は、初回ターン前のメーターをアプリ側で空表示にするものである。制約は残る。 diff --git a/docs/verification.md b/docs/verification.md index 8614457..8ca2520 100644 --- a/docs/verification.md +++ b/docs/verification.md @@ -1,3 +1,21 @@ +# Paseo 0.15.4 への追従(2026-11-12) + +Issue #98 の対応。Paseo 0.15.4 の変更履歴は、Claude Fable 5.2 と Mythos 5.2 をモデル一覧に加えたこと(getpaseo/paseo#9233)だけである。 + +## 変更履歴とこのプロバイダ + +- **差分**:v0.15.3(`d91ae138cb931447635e94296023414a58bedcc5`)と v0.15.4(`1c00b365c9e0b74c1580eba33d905d693125ae21`)の間のコミットは 4 件である。ソースの変更は `packages/server/src/server/agent/providers/claude` の配下(`model-manifest.ts`、`feature-definitions.ts` とそのテスト)と `packages/cli/tests/15-provider.test.ts` だけで、残りは変更履歴と各パッケージの版番号である。`packages/plugin`・`packages/protocol`・`packages/client` と、`plugin-provider.ts`・`agent-manager.ts`・プラグインのコンパイラと準備処理に変更は無い。 +- **公開された SDK**:npm の `@getpaseo/plugin`・`@getpaseo/client`・`@getpaseo/protocol` の 0.15.3 と 0.15.4 を展開して比べた。違いは各 `package.json` の版番号と依存の版だけだった。 +- **変更**:プラグインのコードは変えていない。開発 SDK を 0.15.4 にし、CI の上流チェックアウトを v0.15.4 に固定した。最低要件は 0.15.0 のままである。 +- **残る制約**:0.15.3 と同じである。プラグイン Provider のセッションには `usageSession()` が無い。ready より前のイベントは、アダプターの履歴に積まれるだけで購読者へ流れない。 + +## 検証(Linux x64、Node.js 26.8.1、2026-11-12) + +- **テスト**:開発 SDK 0.15.4 で、`npm run typecheck`、`npm test`(29 ファイル、283 tests)、`npm run build`、`npm run format:check` が成功した。 +- **上流**:`git clone --shared` で作った別の clone を v0.15.4(`1c00b365`)にし、`NODE_PATH` を外して `npm run test:upstream` を実行し、全項目が成功した。 + +未検証:この変更での Paseo 0.15.4 の実 daemon への導入(Goal のピルの確認では `@getpaseo/cli@0.15.4` の一時 daemon を使っている。「`/goal` の送信と Goal のピル」の節を参照)。Paseo 0.15.0 の実 daemon。 + # `/compact` のターンが完了せず、圧縮の最中の停止でセッションが閉じる(2026-11-12) `/goal` の調査(次の節)の途中で見つけた。判断は [ADR 28](adr/0028-入力が読まれた根拠にターンのヘッダーを加え-実行を名乗らない作業は対象を指定せずに停止する.md) に記録した。 diff --git a/package-lock.json b/package-lock.json index 6644075..49a5b7d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,9 +12,9 @@ "semver": "7.8.5" }, "devDependencies": { - "@getpaseo/client": "0.15.3", - "@getpaseo/plugin": "0.15.3", - "@getpaseo/protocol": "0.15.3", + "@getpaseo/client": "0.15.4", + "@getpaseo/plugin": "0.15.4", + "@getpaseo/protocol": "0.15.4", "@types/node": "22.18.3", "@types/react": "~19.2.0", "@types/semver": "7.8.0", @@ -980,21 +980,21 @@ } }, "node_modules/@getpaseo/client": { - "version": "0.15.3", - "resolved": "https://registry.npmjs.org/@getpaseo/client/-/client-0.15.3.tgz", - "integrity": "sha512-gdZ7pmLIVmFof8lUUEUH5NmaqJ6W3u8SelerwaBn6Ygv+iRzVSZeMt43/OyrEmdr8p3eCMj4D3TrCP3T6ZdrZw==", + "version": "0.15.4", + "resolved": "https://registry.npmjs.org/@getpaseo/client/-/client-0.15.4.tgz", + "integrity": "sha512-Z8kpIYbuF+vzZwOTT0NYUymUxTuU+KL8NtFEkf0nfip20RIftVyJZGpjAa3In9Q6nTA23GlV1j3Oi6W5IedJhQ==", "dev": true, "dependencies": { - "@getpaseo/protocol": "0.15.3", - "@getpaseo/relay": "0.15.3", + "@getpaseo/protocol": "0.15.4", + "@getpaseo/relay": "0.15.4", "ws": "^8.20.0", "zod": "^4.4.3" } }, "node_modules/@getpaseo/plugin": { - "version": "0.15.3", - "resolved": "https://registry.npmjs.org/@getpaseo/plugin/-/plugin-0.15.3.tgz", - "integrity": "sha512-c5+bi4M5CKSV85vEcms/NDDBrIn0jaihofXm/P73Hni0movbrn3hv/QQdOY3pcaQ07zNqi6P7VzNLanryUIYgA==", + "version": "0.15.4", + "resolved": "https://registry.npmjs.org/@getpaseo/plugin/-/plugin-0.15.4.tgz", + "integrity": "sha512-nhGFVqWi7ZeuNfO+m0LnUl6KDlJUWFu1u5wRIzTcX8RVnEafo7vG7M/Z1w/7ugKtNFigQ280+d+53ZxqErVzbQ==", "dev": true, "dependencies": { "@agentclientprotocol/sdk": "^1.4.0", @@ -1002,8 +1002,8 @@ "use-sync-external-store": "^1.6.0" }, "peerDependencies": { - "@getpaseo/client": "0.15.3", - "@getpaseo/protocol": "0.15.3", + "@getpaseo/client": "0.15.4", + "@getpaseo/protocol": "0.15.4", "react": ">=19.1.0 <20", "react-native": ">=0.81.5", "zod": "^4.4.3" @@ -1015,9 +1015,9 @@ } }, "node_modules/@getpaseo/protocol": { - "version": "0.15.3", - "resolved": "https://registry.npmjs.org/@getpaseo/protocol/-/protocol-0.15.3.tgz", - "integrity": "sha512-JhAYutwgLUSDdvDhQ8yLjxzqJroR3yqmt+5/rv07iqmOAd/CNtKNJSXZAFaTOavWZcRVlL6DD3tkwaobjgb1Xg==", + "version": "0.15.4", + "resolved": "https://registry.npmjs.org/@getpaseo/protocol/-/protocol-0.15.4.tgz", + "integrity": "sha512-/TCIgaKbGmy7j91PKxrt6S71Ogrk7ywrYJmmWKC6Zazxh/vpEmAmp0R3DVkanUYjEYbxiNQexAIQttfxtiwybQ==", "dev": true, "dependencies": { "semver": "^7.8.5", @@ -1025,9 +1025,9 @@ } }, "node_modules/@getpaseo/relay": { - "version": "0.15.3", - "resolved": "https://registry.npmjs.org/@getpaseo/relay/-/relay-0.15.3.tgz", - "integrity": "sha512-zLgnVLLo1WsVXIQQF5z1DAt7hg6t6K3Zbxnk22uA/DUKE0ip1brQQSmgN1cNN7a9ss3Hqg5Fdr/4r4Yh401gDA==", + "version": "0.15.4", + "resolved": "https://registry.npmjs.org/@getpaseo/relay/-/relay-0.15.4.tgz", + "integrity": "sha512-p/2dcu1VvvNTXMi+lf7g03fSshy+BQhi6FTfoJbTm4ZQNqQJjlYS8qPynAbtKzTCbumbXCGRv3VF95uclFOZ/A==", "dev": true, "dependencies": { "@noble/ciphers": "^2.4.0", diff --git a/package.json b/package.json index 6a5a9e1..b41b954 100644 --- a/package.json +++ b/package.json @@ -60,9 +60,9 @@ "semver": "7.8.5" }, "devDependencies": { - "@getpaseo/client": "0.15.3", - "@getpaseo/plugin": "0.15.3", - "@getpaseo/protocol": "0.15.3", + "@getpaseo/client": "0.15.4", + "@getpaseo/plugin": "0.15.4", + "@getpaseo/protocol": "0.15.4", "@types/node": "22.18.3", "@types/react": "~19.2.0", "@types/semver": "7.8.0",