Add tests, free-text model field, and K8s job improvements

- Add vitest with 26 passing tests for parse and job-manifest
- Set models to undefined for free-text model input
- Add fsGroupChangePolicy: "OnRootMismatch" to reduce volume chown delays
- Change job name prefix to agent-opencode- for adapter identification
- Add .npmrc to .gitignore

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-12 08:14:57 -04:00
parent 75f54b1edc
commit 6866da42bf
8 changed files with 1556 additions and 17 deletions
+6 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@farhoodliquor/paperclip-adapter-opencode-k8s",
"version": "0.1.0",
"version": "0.1.5",
"description": "Paperclip adapter plugin that runs OpenCode agents as Kubernetes Jobs",
"license": "MIT",
"type": "module",
@@ -18,7 +18,9 @@
"scripts": {
"build": "tsc",
"clean": "rm -rf dist",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@kubernetes/client-node": "^1.0.0"
@@ -29,6 +31,7 @@
"devDependencies": {
"@paperclipai/adapter-utils": "^0.3.0",
"@types/node": "^24.6.0",
"typescript": "^5.7.3"
"typescript": "^5.7.3",
"vitest": "^4.1.4"
}
}