From 3db52294073f9435f198340b3dcc6eea3cb9bced Mon Sep 17 00:00:00 2001 From: Test User Date: Wed, 15 Apr 2026 21:42:20 +0000 Subject: [PATCH] feat: declare adapter plugin capabilities on ServerAdapterModule Adds supportsInstructionsBundle, instructionsPathKey, and requiresMaterializedRuntimeSkills flags so the UI renders the bundle editor for claude_k8s agents. Bumps adapter-utils peer dep to the canary that includes the capability type fields. Co-Authored-By: Paperclip --- package-lock.json | 49 +++++++++++++++++++++++---------------------- package.json | 4 ++-- src/server/index.ts | 3 +++ 3 files changed, 30 insertions(+), 26 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6766df8..af735b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,19 +1,19 @@ { "name": "@farhoodliquor/paperclip-adapter-claude-k8s", - "version": "0.1.9", + "version": "0.1.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@farhoodliquor/paperclip-adapter-claude-k8s", - "version": "0.1.9", + "version": "0.1.12", "license": "MIT", "dependencies": { "@kubernetes/client-node": "^1.0.0", "picocolors": "^1.1.1" }, "devDependencies": { - "@paperclipai/adapter-utils": "^0.3.0", + "@paperclipai/adapter-utils": "^2026.415.0-canary.7", "@types/node": "^24.6.0", "@vitest/coverage-v8": "^4.1.4", "typescript": "^5.7.3", @@ -194,9 +194,9 @@ } }, "node_modules/@napi-rs/wasm-runtime": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.3.tgz", - "integrity": "sha512-xK9sGVbJWYb08+mTJt3/YV24WxvxpXcXtP6B172paPZ+Ts69Re9dAr7lKwJoeIx8OoeuimEiRZ7umkiUVClmmQ==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.4.tgz", + "integrity": "sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow==", "dev": true, "license": "MIT", "optional": true, @@ -223,10 +223,11 @@ } }, "node_modules/@paperclipai/adapter-utils": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@paperclipai/adapter-utils/-/adapter-utils-0.3.1.tgz", - "integrity": "sha512-W66k+hJkQE8ma0asM/Sd90AC8HHy/BLG/sd0aOC+rDWw+gOasQyUkTnDoPv1zhQuTyKEEvLFV6ByOOKqEiAz/A==", - "dev": true + "version": "2026.415.0-canary.7", + "resolved": "https://registry.npmjs.org/@paperclipai/adapter-utils/-/adapter-utils-2026.415.0-canary.7.tgz", + "integrity": "sha512-VNzIZmu1lrK6QM8Ad9WkOihZItfkj21NHKQf+artDcbwFT2hHbDAD9hdW2W9NMVxYdFvvnws3w76FI/BUbCMbQ==", + "dev": true, + "license": "MIT" }, "node_modules/@rolldown/binding-android-arm64": { "version": "1.0.0-rc.15", @@ -803,9 +804,9 @@ } }, "node_modules/bare-fs": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.7.0.tgz", - "integrity": "sha512-xzqKsCFxAek9aezYhjJuJRXBIaYlg/0OGDTZp+T8eYmYMlm66cs6cYko02drIyjN2CBbi+I6L7YfXyqpqtKRXA==", + "version": "4.7.1", + "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.7.1.tgz", + "integrity": "sha512-WDRsyVN52eAx/lBamKD6uyw8H4228h/x0sGGGegOamM2cd7Pag88GfMQalobXI+HaEUxpCkbKQUDOQqt9wawRw==", "license": "Apache-2.0", "dependencies": { "bare-events": "^2.5.4", @@ -1767,13 +1768,13 @@ } }, "node_modules/openid-client": { - "version": "6.8.2", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.8.2.tgz", - "integrity": "sha512-uOvTCndr4udZsKihJ68H9bUICrriHdUVJ6Az+4Ns6cW55rwM5h0bjVIzDz2SxgOI84LKjFyjOFvERLzdTUROGA==", + "version": "6.8.3", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.8.3.tgz", + "integrity": "sha512-AoY/NaN9esS3+xvHInFSK0g3skSfeE0uqQAKRj4rB6/GsBIvzwTUaYo9+HcqpKIaP0dP85p5W07hayKgS4GAeA==", "license": "MIT", "dependencies": { - "jose": "^6.1.3", - "oauth4webapi": "^3.8.4" + "jose": "^6.2.2", + "oauth4webapi": "^3.8.5" }, "funding": { "url": "https://github.com/sponsors/panva" @@ -1806,9 +1807,9 @@ } }, "node_modules/postcss": { - "version": "8.5.9", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.9.tgz", - "integrity": "sha512-7a70Nsot+EMX9fFU3064K/kdHWZqGVY+BADLyXc8Dfv+mTLLVl6JzJpPaCZ2kQL9gIJvKXSLMHhqdRRjwQeFtw==", + "version": "8.5.10", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.10.tgz", + "integrity": "sha512-pMMHxBOZKFU6HgAZ4eyGnwXF/EvPGGqUr0MnZ5+99485wwW41kW91A4LOGxSHhgugZmSChL5AlElNdwlNgcnLQ==", "dev": true, "funding": [ { @@ -1960,9 +1961,9 @@ "license": "MIT" }, "node_modules/std-env": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.0.0.tgz", - "integrity": "sha512-zUMPtQ/HBY3/50VbpkupYHbRroTRZJPRLvreamgErJVys0ceuzMkD44J/QjqhHjOzK42GQ3QZIeFG1OYfOtKqQ==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.1.0.tgz", + "integrity": "sha512-Rq7ybcX2RuC55r9oaPVEW7/xu3tj8u4GeBYHBWCychFtzMIr86A7e3PPEBPT37sHStKX3+TiX/Fr/ACmJLVlLQ==", "dev": true, "license": "MIT" }, diff --git a/package.json b/package.json index 39e5668..fe7acf4 100644 --- a/package.json +++ b/package.json @@ -37,10 +37,10 @@ "picocolors": "^1.1.1" }, "peerDependencies": { - "@paperclipai/adapter-utils": ">=0.3.0" + "@paperclipai/adapter-utils": ">=2026.415.0-canary.7" }, "devDependencies": { - "@paperclipai/adapter-utils": "^0.3.0", + "@paperclipai/adapter-utils": "2026.415.0-canary.7", "@types/node": "^24.6.0", "@vitest/coverage-v8": "^4.1.4", "typescript": "^5.7.3", diff --git a/src/server/index.ts b/src/server/index.ts index 81de51d..02b23f5 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -30,6 +30,9 @@ export function createServerAdapter(): ServerAdapterModule { listSkills: listK8sSkills, syncSkills: syncK8sSkills, supportsLocalAgentJwt: true, + supportsInstructionsBundle: true, + instructionsPathKey: "instructionsFilePath", + requiresMaterializedRuntimeSkills: false, agentConfigurationDoc, getConfigSchema, };