From 37e646bc49252bd2b1977152d697784c1cf53a3d Mon Sep 17 00:00:00 2001 From: homen Date: Tue, 14 Jul 2026 23:49:47 -0700 Subject: [PATCH] chore: adopt Node Platform P0 contract --- .../workflows/node-platform-conformance.yml | 13 ++++++ nodekit.yaml | 40 +++++++++++++++++++ package.json | 3 ++ 3 files changed, 56 insertions(+) create mode 100644 .github/workflows/node-platform-conformance.yml create mode 100644 nodekit.yaml diff --git a/.github/workflows/node-platform-conformance.yml b/.github/workflows/node-platform-conformance.yml new file mode 100644 index 0000000..e2e2440 --- /dev/null +++ b/.github/workflows/node-platform-conformance.yml @@ -0,0 +1,13 @@ +name: Node Platform conformance + +on: + pull_request: + push: + branches: [main] + +permissions: + contents: read + +jobs: + node-platform: + uses: HomenShum/node-platform/.github/workflows/repo-conformance.yml@ef4ac8a011b230efa3324892a193abe02ff2d673 diff --git a/nodekit.yaml b/nodekit.yaml new file mode 100644 index 0000000..7b8ac23 --- /dev/null +++ b/nodekit.yaml @@ -0,0 +1,40 @@ +schemaVersion: nodekit.repo/v1 +repository: HomenShum/NodeVoice +lifecycle: preview +support: active +role: domain-application +commandProfile: application + +canonicalFor: + - nodevoice.room-state + +consumes: + - nodeplatform.repo-contract + - nodeplatform.environment + - nodeagent.agent-run + - nodeagent.policy-context + - proofloop.certification + +commands: + dev: { script: dev, mode: service } + demo: { script: demo, mode: finite } + doctor: { script: doctor, mode: finite } + check: { script: check, mode: finite } + proof: { script: proof, mode: finite } + +noKey: + status: certified + command: npm run demo + externalAccountsRequired: 0 + disclosure: The default comparison is deterministic; hosted voice, model, and TTS paths require explicit configuration. + +environment: + contractVersion: nodeplatform.env/v1 + status: migration-planned + +proof: + command: npm run proof + receiptSchema: null + +contractDeclarations: [] +architectureExceptions: [] diff --git a/package.json b/package.json index eac09db..b850c37 100644 --- a/package.json +++ b/package.json @@ -5,11 +5,14 @@ "type": "module", "description": "NodeVoice: shared-state voice rooms for multi-agent voice coordination and NodeAgent-style frame agents.", "scripts": { + "demo": "npm run demo:compare", "demo:voice": "tsx src/voice/runVoiceMvp.ts", "demo:node": "tsx src/nodeagents/runNodeAgentMvp.ts", "start": "tsx src/server.ts", "check": "tsc --noEmit", "check:client": "tsc --noEmit -p tsconfig.client.json", + "doctor": "npm run check && npm run check:client", + "proof": "npm run test && npm run demo:compare", "test": "vitest run --root .", "demo:compare": "tsx src/compare/runComparisonMvp.ts", "dev": "vite",