Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
Coach: the Claude provider, and an AI runtime you only carry if you ask
Alex49be4e0626c4
diff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex 68502b0c4..a7e39d284 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -61,3 +61,45 @@ jobs:# that forgets to regenerate it would otherwise only surface as "the Coach can't find# that exercise" on somebody's instance.- run: node scripts/build-coach-library.mjs --check++ # Builds *and runs* both image targets. Building alone would not have caught the api image+ # shipping without coach/ — that image built perfectly and exited on boot. So each target has+ # to answer for itself: the default one starts and serves, and the coach one additionally+ # resolves the Agent SDK's per-platform runtime (musl on this base), which is the one thing+ # that cannot be checked from the source tree.+ api-image:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v7++ - run: docker build --target default -t opengym-api:default ./api+ - run: docker build --target coach -t opengym-api:coach ./api++ - name: the default image boots and serves, with no AI runtime in it+ run: |+ docker run -d --name api-default -e DATA_DIR=/data -p 3000:3000 opengym-api:default+ for i in $(seq 1 30); do+ curl -fsS http://localhost:3000/api/config >/dev/null 2>&1 && break+ sleep 1+ done+ curl -fsS http://localhost:3000/api/config | tee /dev/stderr | grep -q '"invite_only"'+ # Absent by construction, not by accident: --omit=optional is the only thing keeping+ # the AI dependency out of the image an owner gets when they never asked for it.+ docker run --rm opengym-api:default node -e \+ 'import("@anthropic-ai/claude-agent-sdk").then(()=>{console.error("AI runtime present in the default image");process.exit(1)},()=>process.exit(0))'+ docker rm -f api-default++ - name: the coach image carries a runnable Agent SDK+ run: |+ docker run --rm opengym-api:coach node --input-type=module -e '+ const { adapterFor } = await import("./coach/adapters/index.js");+ const r = await adapterFor("claude").check();+ if (!r.ok) { console.error(r.error); process.exit(1); }+ console.log(r.version);+ '++ - name: the privilege drop can actually be performed in the image+ run: |+ # canDropPrivileges() fails closed, so a missing `coach` user disables every job —+ # including the fixture provider. Cheaper to assert here than to discover on an instance.+ docker run --rm opengym-api:default id coachdiff --git a/api/Dockerfile b/api/Dockerfileindex 308471c6c..234e45124 100644--- a/api/Dockerfile+++ b/api/Dockerfile@@ -1,9 +1,47 @@-FROM node:22-alpine+# Two targets from one file.+#+# default (built when no --target is given) — what every instance has always got. No AI+# runtime, no AI dependency: `npm ci --omit=optional` skips the Agent SDK and its+# platform runtime entirely, so an owner who never wanted the Coach carries none of it.+# coach — the same image plus the Claude Agent SDK.+#+# Build the opt-in one with: docker build --target coach ./api+# or through compose with: API_TARGET=coach docker compose up --build+#+# The stage order matters: Docker builds the *last* stage when none is named, so `default` is+# deliberately last and `coach` sits above it.++FROM node:22-alpine AS baseWORKDIR /app++# The unprivileged user Coach jobs drop to. Its uid cannot read /data, which is the control that+# keeps a provider runtime away from users, passkeys and the session secret.+#+# Not optional, and not only for the real providers: canDropPrivileges() fails closed on Linux,+# so in an image without this user *every* job is refused with "no `coach` user exists in this+# image" — including the fixture provider that exists precisely so the loop can be walked before+# an account is connected. It costs one line and no bytes worth measuring.+RUN adduser -D -H -s /sbin/nologin coach+COPY package.json package-lock.json* ./-RUN npm install --omit=dev && npm cache clean --force+# `npm ci` rather than `npm install`: the lockfile is the point of committing one, and the SDK's+# per-platform runtime is resolved from it (musl on this base) rather than from whatever the+# build host happened to be.+RUN npm ci --omit=dev --omit=optional && npm cache clean --force+COPY server.js ./COPY coach ./coachENV NODE_ENV=productionEXPOSE 3000CMD ["node", "server.js"]++# ---------------------------------------------------------------------------------------------+# The opt-in target. Dropping --omit=optional is the whole difference: it pulls in+# @anthropic-ai/claude-agent-sdk together with the one platform runtime this base needs+# (linux-*-musl), both pinned by the lockfile.+FROM base AS coach+RUN npm ci --omit=dev && npm cache clean --force++# ---------------------------------------------------------------------------------------------+# Last, so that a plain `docker build ./api` keeps producing the runtime-free image.+FROM base AS defaultdiff --git a/api/coach/adapters/claude.js b/api/coach/adapters/claude.jsnew file mode 100644index 000000000..59a9f8e39--- /dev/null+++ b/api/coach/adapters/claude.js@@ -0,0 +1,141 @@+/* Claude Agent SDK adapter.+ *+ * Deliberately the SDK rather than a hand-rolled `claude --print`: it brings its own matching+ * runtime, takes the owner's credential only through the child environment, and exposes the+ * switches that keep the model in a text-in / JSON-out lane.+ *+ * Four of those switches are why this adapter can be trusted next to somebody's ./data, and+ * each is a documented option rather than a hopeful one:+ *+ * tools: [] — "Disable all built-in tools" (SDK Options). No Read, no Bash, no Grep;+ * the model has no filesystem tool at all, however it is prompted.+ * settingSources: [] — no user/project/local settings file is loaded, so nothing on the host+ * can widen the line above after the fact.+ * skills: [] — same reasoning, for skills.+ * strictMcpConfig — no MCP server can arrive from ambient config.+ *+ * They are exported as LOCKDOWN and asserted by value in adapters.test.js, so re-enabling one+ * is a red build rather than a quiet capability grant.+ *+ * The import is lazy on purpose. The default image ships without the SDK (see api/Dockerfile),+ * and an absent runtime has to be an ordinary reportable state — check() says so, isConnected()+ * goes false, and no Coach UI is mounted — rather than a boot crash for every instance that+ * never asked for the feature.+ */+import fs from 'node:fs';+import path from 'node:path';+import { spawn } from 'node:child_process';+import { createRequire } from 'node:module';+import { fileURLToPath } from 'node:url';+import { unprivilegedIds } from './spawn.js';++const PKG = '@anthropic-ai/claude-agent-sdk';+const require_ = createRequire(import.meta.url);+// Read rather than hardcoded: the fork's copy still identified itself as 1.2.3 two releases+// later, which is the failure mode of every version string typed by hand.+const CLIENT_APP = `opengym-coach/${(() => {+ try { return require_('../../package.json').version; } catch { return '0' }+})()}`;+const OUTPUT_CAP = 4 * 1024 * 1024;+const SYSTEM_PROMPT = [+ 'You are the openGym Coach.',+ 'Answer only the supplied task and return exactly the requested JSON.',+ 'You have no tools, filesystem access, external services, or persistent memory.'+].join(' ');++/** The options that make this adapter safe. Exported so a test can assert them by value. */+export const LOCKDOWN = Object.freeze({+ tools: [],+ settingSources: [],+ skills: [],+ strictMcpConfig: true,+ persistSession: false,+ permissionMode: 'dontAsk',+ maxTurns: 1+});++let cached;+/** Resolve the SDK, or null when this image was built without it. Never throws. */+async function sdk() {+ if (cached !== undefined) return cached;+ try { cached = await import(PKG); } catch { cached = null; }+ return cached;+}++/* The package does not expose ./package.json through its exports map, so ask the resolver where+ the entry point landed and read the manifest sitting next to it. Best-effort by design: the+ admin card shows the version when it can be had, and "installed" is a fine answer when not. */+function installedVersion() {+ try {+ const entry = fileURLToPath(import.meta.resolve(PKG));+ return JSON.parse(fs.readFileSync(path.join(path.dirname(entry), 'package.json'), 'utf8')).version || null;+ } catch { return null; }+}++/* The SDK owns the protocol; the Coach still owns the process boundary. Its runtime is launched+ as the same unprivileged `coach` user as every other provider, so dropping privileges is not+ something an adapter can forget to do. */+function spawnAsCoach({ command, args, cwd, env, signal }) {+ const ids = unprivilegedIds();+ return spawn(command, args, { cwd, env, signal, stdio: ['pipe', 'pipe', 'pipe'], ...(ids || {}) });+}++export default {+ id: 'claude',+ runtime: 'Claude Agent SDK',++ /* Importing the package is the check: it is exactly what a job will do, and it is the one+ difference between the two build targets. The credential is deliberately not probed here —+ that is testRun()'s job, which does a real round trip rather than inspecting a token this+ module never reads. */+ async check() {+ const m = await sdk();+ if (!m) return { ok: false, error: `the Claude runtime is not installed in this image (${PKG})` };+ const v = installedVersion();+ return { ok: true, version: v ? `Claude Agent SDK ${v}` : 'Claude Agent SDK' };+ },++ async invoke({ prompt, jobDir, env, model, timeoutMs }) {+ const m = await sdk();+ if (!m) return { code: -1, text: '', stderr: `${PKG} is not installed`, timedOut: false, spawnError: true };++ let text = '', stderr = '', failure = '', timedOut = false;+ const abortController = new AbortController();+ const timer = setTimeout(() => { timedOut = true; abortController.abort(); }, timeoutMs);++ try {+ for await (const message of m.query({+ prompt,+ options: {+ ...LOCKDOWN,+ abortController,+ cwd: jobDir,+ // `env` REPLACES the child environment rather than extending it — which is exactly the+ // contract config.jobEnv() was written to. It builds from nothing, so RP_ID, ADMIN_UIDS+ // and the VAPID keys cannot reach the model process by inheritance.+ env: { ...env, CLAUDE_AGENT_SDK_CLIENT_APP: CLIENT_APP },+ model: model || undefined,+ systemPrompt: SYSTEM_PROMPT,+ stderr: data => { if (stderr.length < OUTPUT_CAP) stderr += data; },+ spawnClaudeCodeProcess: spawnAsCoach+ }+ })) {+ if (message.type !== 'result') continue;+ if (message.subtype === 'success') text = message.result;+ // A non-success result carries its reason in `subtype` (error_during_execution,+ // error_max_turns, …) and `stop_reason`. There is no error list on it — do not invent one.+ else failure = `the Agent SDK stopped: ${message.subtype}${message.stop_reason ? ` (${message.stop_reason})` : ''}`;+ }+ } catch (e) {+ if (timedOut) return { code: -1, text: '', stderr: 'the Agent SDK timed out', timedOut: true, spawnError: false };+ return { code: -1, text: '', stderr: stderr || (e instanceof Error ? e.message : String(e)), timedOut: false, spawnError: true };+ } finally {+ clearTimeout(timer);+ }++ if (timedOut) return { code: -1, text: '', stderr: 'the Agent SDK timed out', timedOut: true, spawnError: false };+ if (failure) return { code: 1, text: '', stderr: failure, timedOut: false, spawnError: false };+ if (!text) return { code: 1, text: '', stderr: stderr || 'the Agent SDK returned no result', timedOut: false, spawnError: false };+ return { code: 0, text, stderr, timedOut: false, spawnError: false };+ }+};diff --git a/api/coach/adapters/index.js b/api/coach/adapters/index.jsindex 3a1774c02..3b635c2c2 100644--- a/api/coach/adapters/index.js+++ b/api/coach/adapters/index.js@@ -7,6 +7,7 @@* codebase — routes, jobs, payload, validation, UI — knows which one is configured.*/import { run } from './spawn.js';+import claude from './claude.js';/*** The in-repo fake provider. Ships with the image on purpose: it is what CI drives, and it@@ -29,6 +30,9 @@ const fixture = {}};-const ADAPTERS = { fixture };+/* claude is registered unconditionally, and that is safe because claude.js imports the SDK+ lazily: on the default image the module loads, check() reports the runtime as absent, and+ isConnected() keeps the Coach out of /api/config entirely. Codex arrives with 6/6. */+const ADAPTERS = { fixture, claude };export const adapterFor = provider => ADAPTERS[provider] || null;export default ADAPTERS;diff --git a/api/coach/config.js b/api/coach/config.jsindex f7b20aaf9..2f0b24254 100644--- a/api/coach/config.js+++ b/api/coach/config.js@@ -34,7 +34,15 @@ export const COACH_DISABLED = /^(1|true|yes|on)$/i.test(process.env.COACH_DISABL// providers arrive with their adapters; this PR ships only the in-repo fixture, so an instance// can be exercised end to end without an AI account.export const PROVIDERS = {- fixture: { label: 'Fixture (testing)', runtime: 'Fixture', apiKeyEnv: null, oauthEnv: null }+ fixture: { label: 'Fixture (testing)', runtime: 'Fixture', apiKeyEnv: null, oauthEnv: null },+ // `apiKeyEnv` / `oauthEnv` name the variable jobEnv injects the credential as; the runtime+ // reads it from its environment and from nothing else, which is what makes the sanitised env+ // the only channel a credential can travel down. `claude setup-token` mints the long-lived+ // token that rides in CLAUDE_CODE_OAUTH_TOKEN — hence setupToken rather than a device login.+ claude: {+ label: 'Claude (Anthropic)', runtime: 'Claude Agent SDK',+ apiKeyEnv: 'ANTHROPIC_API_KEY', oauthEnv: 'CLAUDE_CODE_OAUTH_TOKEN', setupToken: true+ }};const DEFAULTS = {diff --git a/api/coach/routes.js b/api/coach/routes.jsindex 91606e2fb..d4329a0e5 100644--- a/api/coach/routes.js+++ b/api/coach/routes.js@@ -160,11 +160,45 @@ export function coachRoutes({ json, readBody, readSession, requireAdmin }) {json(res, 200, r);},- /* The gap here is `authMode` and connect/clear-credential, and it lands with PR 3 rather- than in this file today. Both exist to serve a credential, and the only provider this- build ships is the fixture, which has none: `credentialFor` returns before it consults- the mode. A switch whose two positions do the same thing is worse than no switch — so it- arrives with the setup-token path, in the PR that gives it something to switch between. */+ /* Connect the instance credential. Deferred while the fixture was the only provider — it+ has none, so there was nothing to connect. The real providers give it something to hold,+ which is the condition this route was waiting on.++ The token is accepted once and never read back: it is encrypted here and leaves again+ only as an environment variable on a job's child process. `type` has to match a variable+ the configured provider actually declares, so a Codex key cannot be filed under Claude+ and then silently go nowhere at job time. */+ 'POST /api/admin/coach/connect': async (req, res) => {+ if (!requireAdmin(req, res)) return;+ const body = await readBody(req);+ const cfg = cfgStore.load();+ const meta = cfgStore.providerMeta(cfg);+ const type = String(body.type || '');+ const envVar = (type === 'cli-token' || type === 'oauth') ? meta.oauthEnv+ : type === 'apikey' ? meta.apiKeyEnv : null;+ if (!envVar) {+ return json(res, 400, { error: `${cfg.provider} does not take a credential of type "${type}"` });+ }+ const token = String(body.token || '').trim();+ if (!token) return json(res, 400, { error: 'no token supplied' });+ // boundUid resets with the credential: a new account has not been spent by anyone yet.+ cfgStore.save({+ auth: { type, account: String(body.account || '').slice(0, 120), data: cfgStore.encrypt({ token }) },+ boundUid: null+ });+ json(res, 200, { ok: true });+ },++ 'POST /api/admin/coach/disconnect': async (req, res) => {+ if (!requireAdmin(req, res)) return;+ cfgStore.save({ auth: null, boundUid: null });+ json(res, 200, { ok: true });+ },++ /* Still absent: `authMode`, and with it the per-profile credential routes. Instance mode is+ the whole of what these two routes serve, and per-profile needs its own connect/clear pair+ against saveProfileAuth/clearProfileAuth — a switch with nothing on the other side is worse+ than no switch, so it waits for the PR that builds that side. *//* Whose account this profile is about to spend. Its own route because both the Coach screenand the admin card must state it, and neither should be inferring it from settings. */diff --git a/api/package-lock.json b/api/package-lock.jsonindex e63e07231..42010db9d 100644--- a/api/package-lock.json+++ b/api/package-lock.json@@ -1,16 +1,194 @@{"name": "gym-api",- "version": "1.0.0",+ "version": "1.2.4","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "gym-api",- "version": "1.0.0",+ "version": "1.2.4","license": "AGPL-3.0-or-later","dependencies": {"@simplewebauthn/server": "^13.1.1","web-push": "^3.6.7"+ },+ "optionalDependencies": {+ "@anthropic-ai/claude-agent-sdk": "^0.3.223"+ }+ },+ "node_modules/@anthropic-ai/claude-agent-sdk": {+ "version": "0.3.223",+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.223.tgz",+ "integrity": "sha512-r2BpOfxaEjPj0xpRQBukrBWG7n2QERVk10hstc+AXmm4JBii1OqH50sfewU8a8E7uhoJazA3WnZoZoaTFnV/2A==",+ "license": "SEE LICENSE IN README.md",+ "optional": true,+ "engines": {+ "node": ">=18.0.0"+ },+ "optionalDependencies": {+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.223",+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.223",+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.223",+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.223",+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.223",+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.223",+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.223",+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.223"+ },+ "peerDependencies": {+ "@anthropic-ai/sdk": ">=0.93.0",+ "@modelcontextprotocol/sdk": "^1.29.0",+ "zod": "^4.0.0"+ }+ },+ "node_modules/@anthropic-ai/claude-agent-sdk-darwin-arm64": {+ "version": "0.3.223",+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.223.tgz",+ "integrity": "sha512-y9PcAkK7JHfzBC1yyLIhJwlF/x7XYLcFReiKkxm53mtBp+ASgpxNoBDvGqx7Q+IVB5xwlhnprcaXc2PxsLUKuA==",+ "cpu": [+ "arm64"+ ],+ "license": "SEE LICENSE IN LICENSE.md",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@anthropic-ai/claude-agent-sdk-darwin-x64": {+ "version": "0.3.223",+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.223.tgz",+ "integrity": "sha512-JAkGQCat4FroNdG9XQiKQ+M+R/mggt3fFVQR5KcsbOrGFNynCdnVhi9CPxU8AXDhiIbk+Y3254qHhKTZbcZtGw==",+ "cpu": [+ "x64"+ ],+ "license": "SEE LICENSE IN LICENSE.md",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64": {+ "version": "0.3.223",+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.223.tgz",+ "integrity": "sha512-mFPm66MIiFtb/XiHR39/ifzv0nlho1KNCjH+1cP6lJvVXm57kugxsKDndGXWEBI0Wh7DxKhTnjRxEKVhwwdYWw==",+ "cpu": [+ "arm64"+ ],+ "libc": [+ "glibc"+ ],+ "license": "SEE LICENSE IN LICENSE.md",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64-musl": {+ "version": "0.3.223",+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.223.tgz",+ "integrity": "sha512-HKpj+0quFtaH/fXQm56HipslOyhyTdB2vM4nvxmG3oube2KtB9FNJqqnTwSTeGbJc5dm4PjoAyN+oQV8Rh4RGw==",+ "cpu": [+ "arm64"+ ],+ "libc": [+ "musl"+ ],+ "license": "SEE LICENSE IN LICENSE.md",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@anthropic-ai/claude-agent-sdk-linux-x64": {+ "version": "0.3.223",+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.223.tgz",+ "integrity": "sha512-8x+BvnuNr8iTMqwBAf0KvklF/GRLXYiXMb+umo+N2bxOlE7wFYpFqVACeW44KsfRgdnbVnF9sJ00w1s01W/9eA==",+ "cpu": [+ "x64"+ ],+ "libc": [+ "glibc"+ ],+ "license": "SEE LICENSE IN LICENSE.md",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@anthropic-ai/claude-agent-sdk-linux-x64-musl": {+ "version": "0.3.223",+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.223.tgz",+ "integrity": "sha512-ukw6GAneAsCc/Lp24cA4yk2/vPgDjooZGB/TTvLsyfy8yto3b/WpfaktubQE/tNigF+mWo6+VytUOeVil8HwnQ==",+ "cpu": [+ "x64"+ ],+ "libc": [+ "musl"+ ],+ "license": "SEE LICENSE IN LICENSE.md",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@anthropic-ai/claude-agent-sdk-win32-arm64": {+ "version": "0.3.223",+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.223.tgz",+ "integrity": "sha512-Am8q5al0BBIbxOlfLSjaXQqCOjOg/4XvCiSt8mxvocGy/6W60fV/RFrEs86RlN6DATUGxTSNTqye6cn8MTlgOA==",+ "cpu": [+ "arm64"+ ],+ "license": "SEE LICENSE IN LICENSE.md",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@anthropic-ai/claude-agent-sdk-win32-x64": {+ "version": "0.3.223",+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.223.tgz",+ "integrity": "sha512-ZG53F8YtUTr97OGdnIbSqHuRHL1eja928M1xwbuAiM1cJ5I8VpFODVjHpM0ioKiurr9Tmjzns/nHcafc18VovA==",+ "cpu": [+ "x64"+ ],+ "license": "SEE LICENSE IN LICENSE.md",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@anthropic-ai/sdk": {+ "version": "0.115.0",+ "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.115.0.tgz",+ "integrity": "sha512-BJrFIVyjNuU8lfDyIJTvlRYzgQg+zEl78BxE7fq8esULsGz9IRQvGtW5spq3tydmtjQb/GFdooKGdGsetpx+lQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "json-schema-to-ts": "^3.1.1",+ "standardwebhooks": "^1.0.0"+ },+ "bin": {+ "anthropic-ai-sdk": "bin/cli"+ },+ "peerDependencies": {+ "zod": "^3.25.0 || ^4.0.0"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/@babel/runtime": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.7.tgz",+ "integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">=6.9.0"}},"node_modules/@hexagon/base64": {@@ -18,11 +196,67 @@"resolved": "https://registry.npmjs.org/@hexagon/base64/-/base64-1.1.28.tgz","integrity": "sha512-lhqDEAvWixy3bZ+UOYbPwUbBkwBq5C1LAJ/xPC8Oi+lL54oyakv/npbA0aU2hgCsx/1NUd4IBvV03+aUBWxerw=="},+ "node_modules/@hono/node-server": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.0.tgz",+ "integrity": "sha512-XovyyCCnBzW+zKu+z/zq8hwNs4KOR5rEMAOxo2f40Q5xoOI37IMm6MIg2COOUtUApo0i6850MTBKH2u4QLGIqg==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">=20"+ },+ "peerDependencies": {+ "hono": "^4"+ }+ },"node_modules/@levischuck/tiny-cbor": {"version": "0.2.11","resolved": "https://registry.npmjs.org/@levischuck/tiny-cbor/-/tiny-cbor-0.2.11.tgz","integrity": "sha512-llBRm4dT4Z89aRsm6u2oEZ8tfwL/2l6BwpZ7JcyieouniDECM5AqNgr/y08zalEIvW3RSK4upYyybDcmjXqAow=="},+ "node_modules/@modelcontextprotocol/sdk": {+ "version": "1.30.0",+ "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.30.0.tgz",+ "integrity": "sha512-xKd8OIzlqNzcqcNumGAa6g+PW2kjD5vrpcKOnfldAUPP3j7lnqMPwlTXQm8gF+UwH72z0lqaRbjr9hqGz0eITA==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "@hono/node-server": "^1.19.9 || ^2.0.5",+ "ajv": "^8.17.1",+ "ajv-formats": "^3.0.1",+ "content-type": "^1.0.5",+ "cors": "^2.8.5",+ "cross-spawn": "^7.0.5",+ "eventsource": "^3.0.2",+ "eventsource-parser": "^3.0.0",+ "express": "^5.2.1",+ "express-rate-limit": "^8.2.1",+ "hono": "^4.11.4",+ "jose": "^6.1.3",+ "json-schema-typed": "^8.0.2",+ "pkce-challenge": "^5.0.0",+ "raw-body": "^3.0.0",+ "zod": "^3.25 || ^4.0",+ "zod-to-json-schema": "^3.25.1"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@cfworker/json-schema": "^4.1.1",+ "zod": "^3.25 || ^4.0"+ },+ "peerDependenciesMeta": {+ "@cfworker/json-schema": {+ "optional": true+ },+ "zod": {+ "optional": false+ }+ }+ },"node_modules/@peculiar/asn1-android": {"version": "2.8.0","resolved": "https://registry.npmjs.org/@peculiar/asn1-android/-/asn1-android-2.8.0.tgz",@@ -196,6 +430,29 @@"node": ">=20.0.0"}},+ "node_modules/@stablelib/base64": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@stablelib/base64/-/base64-1.0.1.tgz",+ "integrity": "sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ==",+ "license": "MIT",+ "optional": true,+ "peer": true+ },+ "node_modules/accepts": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",+ "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "mime-types": "^3.0.0",+ "negotiator": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },"node_modules/agent-base": {"version": "7.1.4","resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",@@ -204,6 +461,43 @@"node": ">= 14"}},+ "node_modules/ajv": {+ "version": "8.20.0",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",+ "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "fast-deep-equal": "^3.1.3",+ "fast-uri": "^3.0.1",+ "json-schema-traverse": "^1.0.0",+ "require-from-string": "^2.0.2"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/epoberezkin"+ }+ },+ "node_modules/ajv-formats": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz",+ "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "ajv": "^8.0.0"+ },+ "peerDependencies": {+ "ajv": "^8.0.0"+ },+ "peerDependenciesMeta": {+ "ajv": {+ "optional": true+ }+ }+ },"node_modules/asn1.js": {"version": "5.4.1","resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz",@@ -233,11 +527,179 @@"resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.5.tgz","integrity": "sha512-3aRg6/JxfffFD+OlOjOFR3Vo79l39ooBTFucxx+MT3dhCtzn3EmiUPQo+6/OZuI2jbXi3YKgmiTFBgChQMwIRQ=="},+ "node_modules/body-parser": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.3.0.tgz",+ "integrity": "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "bytes": "^3.1.2",+ "content-type": "^2.0.0",+ "debug": "^4.4.3",+ "http-errors": "^2.0.1",+ "iconv-lite": "^0.7.2",+ "on-finished": "^2.4.1",+ "qs": "^6.15.2",+ "raw-body": "^3.0.2",+ "type-is": "^2.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/body-parser/node_modules/content-type": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.0.0.tgz",+ "integrity": "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },"node_modules/buffer-equal-constant-time": {"version": "1.0.1","resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz","integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA=="},+ "node_modules/bytes": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/call-bind-apply-helpers": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/call-bound": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "get-intrinsic": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/content-disposition": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.1.0.tgz",+ "integrity": "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/content-type": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/cookie": {+ "version": "0.7.2",+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/cookie-signature": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz",+ "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">=6.6.0"+ }+ },+ "node_modules/cors": {+ "version": "2.8.6",+ "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz",+ "integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "object-assign": "^4",+ "vary": "^1"+ },+ "engines": {+ "node": ">= 0.10"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/cross-spawn": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ },+ "engines": {+ "node": ">= 8"+ }+ },"node_modules/debug": {"version": "4.4.3","resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",@@ -254,6 +716,33 @@}}},+ "node_modules/depd": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/dunder-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.1",+ "es-errors": "^1.3.0",+ "gopd": "^1.2.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },"node_modules/ecdsa-sig-formatter": {"version": "1.0.11","resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",@@ -262,6 +751,355 @@"safe-buffer": "^5.0.1"}},+ "node_modules/ee-first": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",+ "license": "MIT",+ "optional": true,+ "peer": true+ },+ "node_modules/encodeurl": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/es-define-property": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-errors": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-object-atoms": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz",+ "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "es-errors": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/escape-html": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",+ "license": "MIT",+ "optional": true,+ "peer": true+ },+ "node_modules/etag": {+ "version": "1.8.1",+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/eventsource": {+ "version": "3.0.7",+ "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz",+ "integrity": "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "eventsource-parser": "^3.0.1"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/eventsource-parser": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.1.0.tgz",+ "integrity": "sha512-kJezFj9YFAMLeORyi7aCLxLbD5/qWMQnoMVlVPyHIll7lgRJCc3JVln9Vgl9nwQi0YkMnhdGTMNn7CkRRAptMg==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/express": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz",+ "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "accepts": "^2.0.0",+ "body-parser": "^2.2.1",+ "content-disposition": "^1.0.0",+ "content-type": "^1.0.5",+ "cookie": "^0.7.1",+ "cookie-signature": "^1.2.1",+ "debug": "^4.4.0",+ "depd": "^2.0.0",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "etag": "^1.8.1",+ "finalhandler": "^2.1.0",+ "fresh": "^2.0.0",+ "http-errors": "^2.0.0",+ "merge-descriptors": "^2.0.0",+ "mime-types": "^3.0.0",+ "on-finished": "^2.4.1",+ "once": "^1.4.0",+ "parseurl": "^1.3.3",+ "proxy-addr": "^2.0.7",+ "qs": "^6.14.0",+ "range-parser": "^1.2.1",+ "router": "^2.2.0",+ "send": "^1.1.0",+ "serve-static": "^2.2.0",+ "statuses": "^2.0.1",+ "type-is": "^2.0.1",+ "vary": "^1.1.2"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/express-rate-limit": {+ "version": "8.6.2",+ "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.6.2.tgz",+ "integrity": "sha512-YH4ru+eOJxQABscKFfRCy9R7x9QFGdezclVMwwgFFndzS2Xnm0uo6B0ABZsLhcpeptGv2qvuJVWlQr9gQZoC3A==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "debug": "^4.4.3",+ "ip-address": "^10.2.0"+ },+ "engines": {+ "node": ">= 16"+ },+ "funding": {+ "url": "https://github.com/sponsors/express-rate-limit"+ },+ "peerDependencies": {+ "express": ">= 4.11"+ }+ },+ "node_modules/fast-deep-equal": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",+ "license": "MIT",+ "optional": true,+ "peer": true+ },+ "node_modules/fast-sha256": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/fast-sha256/-/fast-sha256-1.3.0.tgz",+ "integrity": "sha512-n11RGP/lrWEFI/bWdygLxhI+pVeo1ZYIVwvvPkW7azl/rOy+F3HYRZ2K5zeE9mmkhQppyv9sQFx0JM9UabnpPQ==",+ "license": "Unlicense",+ "optional": true,+ "peer": true+ },+ "node_modules/fast-uri": {+ "version": "3.1.5",+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.5.tgz",+ "integrity": "sha512-gHwA1O9LDIcKunMKhObS/HimwtehO1nPUECKAu5TpKgaO19fcWEl4bliWe1jWxVFvIXztJjjQ4L8XQ1EU9f7Jw==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/fastify"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/fastify"+ }+ ],+ "license": "BSD-3-Clause",+ "optional": true,+ "peer": true+ },+ "node_modules/finalhandler": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz",+ "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "debug": "^4.4.0",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "on-finished": "^2.4.1",+ "parseurl": "^1.3.3",+ "statuses": "^2.0.1"+ },+ "engines": {+ "node": ">= 18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/forwarded": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/fresh": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz",+ "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/function-bind": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-intrinsic": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "function-bind": "^1.1.2",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/gopd": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-symbols": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/hasown": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",+ "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/hono": {+ "version": "4.13.0",+ "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.0.tgz",+ "integrity": "sha512-jhunvfHWxd7J5EFfSgH4xsYJzSe/lfqbUCxiyyeaQasUsXeEHXtzVid+7EOGByc5JnFa23SSFL3Y2RV/z1T+eQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">=16.9.0"+ }+ },"node_modules/http_ece": {"version": "1.2.0","resolved": "https://registry.npmjs.org/http_ece/-/http_ece-1.2.0.tgz",@@ -270,6 +1108,28 @@"node": ">=16"}},+ "node_modules/http-errors": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "depd": "~2.0.0",+ "inherits": "~2.0.4",+ "setprototypeof": "~1.2.0",+ "statuses": "~2.0.2",+ "toidentifier": "~1.0.1"+ },+ "engines": {+ "node": ">= 0.8"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },"node_modules/https-proxy-agent": {"version": "7.0.6","resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",@@ -282,11 +1142,109 @@"node": ">= 14"}},+ "node_modules/iconv-lite": {+ "version": "0.7.3",+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz",+ "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "safer-buffer": ">= 2.1.2 < 3.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },"node_modules/inherits": {"version": "2.0.4","resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz","integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="},+ "node_modules/ip-address": {+ "version": "10.4.0",+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.4.0.tgz",+ "integrity": "sha512-oSK96Grm3aP6OrS263xVxbNDGVL7rzBtYdpGqlDG8iQdoenDoTs/nkki+DflYbAEE8Xl6o5YxhxlrKvI3nqKXQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 12"+ }+ },+ "node_modules/ipaddr.js": {+ "version": "1.9.1",+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/is-promise": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz",+ "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",+ "license": "MIT",+ "optional": true,+ "peer": true+ },+ "node_modules/isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "license": "ISC",+ "optional": true,+ "peer": true+ },+ "node_modules/jose": {+ "version": "6.2.8",+ "resolved": "https://registry.npmjs.org/jose/-/jose-6.2.8.tgz",+ "integrity": "sha512-Bsdjwm3Qsd/P0jR+BHDe3LytDfY7WBq2HmCCLIwuVRHMuEC9ae7/R474GIUdF1NgCyZjzVo/A9DOiOBtXq8ZoQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "funding": {+ "url": "https://github.com/sponsors/panva"+ }+ },+ "node_modules/json-schema-to-ts": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/json-schema-to-ts/-/json-schema-to-ts-3.1.1.tgz",+ "integrity": "sha512-+DWg8jCJG2TEnpy7kOm/7/AxaYoaRbjVB4LFZLySZlWn8exGs3A4OLJR966cVvU26N7X9TWxl+Jsw7dzAqKT6g==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "@babel/runtime": "^7.18.3",+ "ts-algebra": "^2.0.0"+ },+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/json-schema-traverse": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",+ "license": "MIT",+ "optional": true,+ "peer": true+ },+ "node_modules/json-schema-typed": {+ "version": "8.0.2",+ "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz",+ "integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==",+ "license": "BSD-2-Clause",+ "optional": true,+ "peer": true+ },"node_modules/jwa": {"version": "2.0.1","resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz",@@ -306,6 +1264,75 @@"safe-buffer": "^5.0.1"}},+ "node_modules/math-intrinsics": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/media-typer": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.1.tgz",+ "integrity": "sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.8"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/merge-descriptors": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",+ "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/mime-db": {+ "version": "1.54.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mime-types": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "mime-db": "^1.54.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },"node_modules/minimalistic-assert": {"version": "1.0.1","resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz",@@ -324,6 +1351,127 @@"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz","integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="},+ "node_modules/negotiator": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",+ "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/object-assign": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/object-inspect": {+ "version": "1.13.4",+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/on-finished": {+ "version": "2.4.1",+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "ee-first": "1.1.1"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",+ "license": "ISC",+ "optional": true,+ "peer": true,+ "dependencies": {+ "wrappy": "1"+ }+ },+ "node_modules/parseurl": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/path-key": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/path-to-regexp": {+ "version": "8.4.2",+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz",+ "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/pkce-challenge": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.1.tgz",+ "integrity": "sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">=16.20.0"+ }+ },+ "node_modules/proxy-addr": {+ "version": "2.0.7",+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "forwarded": "0.2.0",+ "ipaddr.js": "1.9.1"+ },+ "engines": {+ "node": ">= 0.10"+ }+ },"node_modules/pvtsutils": {"version": "1.3.6","resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.6.tgz",@@ -340,11 +1488,90 @@"node": ">=16.0.0"}},+ "node_modules/qs": {+ "version": "6.15.3",+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.3.tgz",+ "integrity": "sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==",+ "license": "BSD-3-Clause",+ "optional": true,+ "peer": true,+ "dependencies": {+ "es-define-property": "^1.0.1",+ "side-channel": "^1.1.1"+ },+ "engines": {+ "node": ">=0.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/range-parser": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.3.0.tgz",+ "integrity": "sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.6"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/raw-body": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz",+ "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "bytes": "~3.1.2",+ "http-errors": "~2.0.1",+ "iconv-lite": "~0.7.0",+ "unpipe": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.10"+ }+ },"node_modules/reflect-metadata": {"version": "0.2.2","resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz","integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q=="},+ "node_modules/require-from-string": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/router": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",+ "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "debug": "^4.4.0",+ "depd": "^2.0.0",+ "is-promise": "^4.0.0",+ "parseurl": "^1.3.3",+ "path-to-regexp": "^8.0.0"+ },+ "engines": {+ "node": ">= 18"+ }+ },"node_modules/safe-buffer": {"version": "5.2.1","resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",@@ -369,6 +1596,210 @@"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz","integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="},+ "node_modules/send": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz",+ "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "debug": "^4.4.3",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "etag": "^1.8.1",+ "fresh": "^2.0.0",+ "http-errors": "^2.0.1",+ "mime-types": "^3.0.2",+ "ms": "^2.1.3",+ "on-finished": "^2.4.1",+ "range-parser": "^1.2.1",+ "statuses": "^2.0.2"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/serve-static": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz",+ "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "parseurl": "^1.3.3",+ "send": "^1.2.0"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/setprototypeof": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",+ "license": "ISC",+ "optional": true,+ "peer": true+ },+ "node_modules/shebang-command": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "shebang-regex": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/shebang-regex": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/side-channel": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz",+ "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "es-errors": "^1.3.0",+ "object-inspect": "^1.13.4",+ "side-channel-list": "^1.0.1",+ "side-channel-map": "^1.0.1",+ "side-channel-weakmap": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-list": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",+ "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "es-errors": "^1.3.0",+ "object-inspect": "^1.13.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-map": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-weakmap": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3",+ "side-channel-map": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/standardwebhooks": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/standardwebhooks/-/standardwebhooks-1.0.0.tgz",+ "integrity": "sha512-BbHGOQK9olHPMvQNHWul6MYlrRTAOKn03rOe4A8O3CLWhNf4YHBqq2HJKKC+sfqpxiBY52pNeesD6jIiLDz8jg==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "@stablelib/base64": "^1.0.0",+ "fast-sha256": "^1.3.0"+ }+ },+ "node_modules/statuses": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/toidentifier": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">=0.6"+ }+ },+ "node_modules/ts-algebra": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/ts-algebra/-/ts-algebra-2.0.0.tgz",+ "integrity": "sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw==",+ "license": "MIT",+ "optional": true,+ "peer": true+ },"node_modules/tslib": {"version": "2.8.1","resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",@@ -390,6 +1821,63 @@"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz","integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="},+ "node_modules/type-is": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz",+ "integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "content-type": "^2.0.0",+ "media-typer": "^1.1.0",+ "mime-types": "^3.0.0"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/type-is/node_modules/content-type": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.0.0.tgz",+ "integrity": "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/unpipe": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/vary": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">= 0.8"+ }+ },"node_modules/web-push": {"version": "3.6.7","resolved": "https://registry.npmjs.org/web-push/-/web-push-3.6.7.tgz",@@ -407,6 +1895,53 @@"engines": {"node": ">= 16"}+ },+ "node_modules/which": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "license": "ISC",+ "optional": true,+ "peer": true,+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",+ "license": "ISC",+ "optional": true,+ "peer": true+ },+ "node_modules/zod": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",+ "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "funding": {+ "url": "https://github.com/sponsors/colinhacks"+ }+ },+ "node_modules/zod-to-json-schema": {+ "version": "3.25.2",+ "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.2.tgz",+ "integrity": "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==",+ "license": "ISC",+ "optional": true,+ "peer": true,+ "peerDependencies": {+ "zod": "^3.25.28 || ^4"+ }}}}diff --git a/api/package.json b/api/package.jsonindex 25912d711..334909ffd 100644--- a/api/package.json+++ b/api/package.json@@ -12,5 +12,8 @@"dependencies": {"@simplewebauthn/server": "^13.1.1","web-push": "^3.6.7"+ },+ "optionalDependencies": {+ "@anthropic-ai/claude-agent-sdk": "^0.3.223"}}diff --git a/api/test/adapters.test.js b/api/test/adapters.test.jsnew file mode 100644index 000000000..36abc2c42--- /dev/null+++ b/api/test/adapters.test.js@@ -0,0 +1,52 @@+/* The provider adapters, and the four options that make the Claude one safe.+ *+ * These assertions are deliberately about the object the adapter passes to the SDK rather than+ * about observed model behaviour: the point is that re-enabling a tool is a red build, and a+ * test that needed a real account to run would never guard anything in CI.+ */+import test from 'node:test';+import assert from 'node:assert/strict';+import { tempData } from './helpers.mjs';++tempData();+const { adapterFor, default: ADAPTERS } = await import('../coach/adapters/index.js');+const { LOCKDOWN } = await import('../coach/adapters/claude.js');+const cfg = await import('../coach/config.js');++test('every provider the config offers has an adapter, and vice versa', () => {+ assert.deepEqual(Object.keys(ADAPTERS).sort(), Object.keys(cfg.PROVIDERS).sort());+ for (const id of Object.keys(cfg.PROVIDERS)) assert.ok(adapterFor(id), `no adapter for "${id}"`);+ assert.equal(adapterFor('not-a-provider'), null);+});++test('the Claude adapter is locked out of every tool the SDK could give it', () => {+ // `tools: []` is the SDK's documented "disable all built-in tools" — no Read, no Bash, no+ // Grep — and the other three stop anything on the host widening that afterwards. If one of+ // these ever has to change, it should be a decision with a diff, not a default that drifted.+ assert.deepEqual(LOCKDOWN.tools, [], 'no built-in tools');+ assert.deepEqual(LOCKDOWN.settingSources, [], 'no settings files may be loaded');+ assert.deepEqual(LOCKDOWN.skills, [], 'no skills may be loaded');+ assert.equal(LOCKDOWN.strictMcpConfig, true, 'no MCP server may arrive from ambient config');+ assert.equal(LOCKDOWN.persistSession, false, 'no session history is written anywhere');+ assert.equal(LOCKDOWN.maxTurns, 1, 'one turn: a job is a question, not a conversation');+});++test('an image built without the AI runtime reports it rather than crashing', async () => {+ // The default build target has no SDK. check() is what the admin card renders, and it has to+ // answer honestly on both targets — this asserts the shape either way, so the test is not+ // hostage to which target the suite happens to run on.+ const r = await adapterFor('claude').check();+ assert.equal(typeof r.ok, 'boolean');+ if (r.ok) assert.match(r.version, /Claude Agent SDK/);+ else assert.match(r.error, /not installed/);+});++test('the fixture provider needs no credential and the Claude one names both it accepts', () => {+ assert.equal(cfg.PROVIDERS.fixture.apiKeyEnv, null);+ assert.equal(cfg.PROVIDERS.fixture.oauthEnv, null);+ // The two variables the runtime reads. jobEnv() injects the credential under one of them and+ // nothing else, which is what makes the sanitised environment the only channel it travels.+ assert.equal(cfg.PROVIDERS.claude.oauthEnv, 'CLAUDE_CODE_OAUTH_TOKEN');+ assert.equal(cfg.PROVIDERS.claude.apiKeyEnv, 'ANTHROPIC_API_KEY');+ assert.equal(cfg.PROVIDERS.claude.setupToken, true);+});diff --git a/api/test/credential.test.js b/api/test/credential.test.jsindex cda43327e..f4efd08c9 100644--- a/api/test/credential.test.js+++ b/api/test/credential.test.js@@ -135,11 +135,16 @@ test('jobEnv only ever carries the credential it was handed', () => {assert.equal(env.HOME, '/tmp/job');assert.equal(env.TMPDIR, '/tmp/job');// Built from nothing: no RP_ID, no ADMIN_UIDS, no VAPID material, nothing this server holds.+ // The one permitted addition is the configured provider's own credential variable — read off+ // the row rather than hardcoded, so this keeps testing the contract if that name ever changes.+ // connectInstance() files a `cli-token`, which jobEnv injects under the provider's oauthEnv.+ const expected = [cfg.providerMeta(cfg.load()).oauthEnv].filter(Boolean);assert.deepEqual(Object.keys(env).filter(k => !['PATH', 'HOME', 'TMPDIR'].includes(k)).sort(),- [],- 'the fixture provider declares no credential env var, so nothing else may appear'+ expected,+ 'only the credential the job was handed may appear, under its provider\'s own variable');+ if (expected.length) assert.equal(env[expected[0]], 'tok-for-env');const none = cfg.jobEnv('/tmp/job', { ok: false });assert.equal(Object.values(none).some(v => String(v).includes('tok-for-env')), false);diff --git a/docker-compose.yml b/docker-compose.ymlindex 5b9214c51..3afa9c89f 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -25,7 +25,14 @@ services:# image: prebuilt (docker compose pull). build: from source (docker compose up --build).api:image: ghcr.io/duartesantos8/opengym-api:latest- build: ./api+ # Default target: no AI runtime, no AI dependency — the image every instance has always had.+ # To opt into the AI Coach, build the other target instead:+ # API_TARGET=coach docker compose up --build api+ # `--build` matters: with an `image:` also set, compose would otherwise pull the prebuilt+ # default rather than build the coach one.+ build:+ context: ./api+ target: ${API_TARGET:-default}restart: unless-stoppedenv_file: .envenvironment:diff --git a/docs/AI_COACH.md b/docs/AI_COACH.mdindex cf92569cd..61f4ff873 100644--- a/docs/AI_COACH.md+++ b/docs/AI_COACH.md@@ -4,8 +4,8 @@ An optional AI that **designs** a training plan and **revises it from what you arunning on your own server under your own provider account, off until an admin turns it on.> This document grows with the feature. What is described here is what has landed: the server-> plumbing, the consent and payload boundary, the credential model, and the validator and apply-> path. The provider adapters and the UI arrive in the PRs that follow.+> plumbing, the consent and payload boundary, the credential model, the validator and apply+> path, and the Claude provider with its opt-in packaging. The UI arrives in the PRs that follow.---@@ -130,6 +130,54 @@ by sealing `./data` with a blanket `0700`. The directory is a host bind mount anruns as root, so sealing it lands on the host as root-owned and unreadable, and anything elsethe owner runs against their own data directory gets `EACCES`.+## You only carry the AI runtime if you ask for it++`api/Dockerfile` builds two targets from one file:++- **`default`** — what every instance has always had. `npm ci --omit=optional` skips the Agent+ SDK and its platform runtime entirely, so an owner who never wanted the Coach ships none of it.+ Around 158 MB.+- **`coach`** — the same image plus `@anthropic-ai/claude-agent-sdk`. Around 455 MB.++```+docker build --target coach ./api # or:+API_TARGET=coach docker compose up --build api+```++The SDK sits in `optionalDependencies`, and its runtime ships as a per-platform package — this+base is Alpine, so the lockfile resolves `linux-x64-musl` / `linux-arm64-musl`. That resolution+is the sort of thing that only fails on somebody else's machine, so CI builds **and runs** both+targets: the default one has to boot and serve `/api/config` with the SDK genuinely unimportable,+and the coach one has to report a runnable SDK through the same `check()` the admin card renders.++An absent runtime is an ordinary state, not a crash: the adapter imports the SDK lazily, `check()`+says it is missing, `isConnected()` goes false, and `/api/config` carries no `coach` key at all.++Both targets create the unprivileged `coach` user. That is not a Claude-specific detail — the+privilege drop fails closed, so without that user *every* job is refused, including the fixture+provider that exists precisely so the loop can be walked before an account is connected.++## What the model is allowed to do++The Claude provider runs through the Agent SDK rather than a hand-rolled CLI call, because the+SDK exposes the switches that matter and brings its own matching runtime. Four of them are the+reason it can be trusted next to your `./data`:++| Option | Effect |+| --- | --- |+| `tools: []` | Disables **all** built-in tools — no Read, no Bash, no Grep. The model has no filesystem tool at all, however it is prompted. |+| `settingSources: []` | No user/project/local settings file is loaded, so nothing on the host can widen the line above afterwards. |+| `skills: []` | Same, for skills. |+| `strictMcpConfig` | No MCP server can arrive from ambient configuration. |++They are exported as one frozen object and asserted by value in `adapters.test.js`, so+re-enabling one is a red build rather than a quiet capability grant.++The credential reaches the model process as an environment variable and by no other route. The+job environment is built from nothing rather than filtered, and the SDK's `env` option *replaces*+the child environment rather than extending it — so `RP_ID`, `ADMIN_UIDS` and the VAPID keys+cannot reach it by inheritance even by accident.+## Off is really off`COACH_DISABLED=1` forces the Coach off everywhere regardless of what is stored — the fleet