[codex] Add local app route smoke#7
Merged
Merged
Conversation
Signed-off-by: Val Alexander <bunsthedev@gmail.com>
There was a problem hiding this comment.
Pull request overview
Adds an explicit “demo mode” path to the webhook forwarder so developers (and CI) can verify the signed-delivery → policy route → task/result artifact flow locally without any external GitHub or coven-code calls.
Changes:
- Introduces
COVEN_GITHUB_DEMO_MODEconfig flag and a demo-mode task completion path in the adapter. - Adds a local smoke script (
scripts/demo-app-smoke.mjs) plusnpm run smoke:appand runs the smoke in CI. - Documents the new demo workflow in the README and connection guide.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/webhook-adapter.test.ts | Adds coverage for demo mode processing a signed issues.labeled delivery and writing expected artifacts. |
| src/adapter.ts | Adds demoMode to config and a demo-mode short-circuit that writes session brief/result artifacts and completes the task. |
| scripts/demo-app-smoke.mjs | New local smoke script that builds config, starts the server, sends a signed delivery, and prints delivery/task/result artifacts. |
| README.md | Documents the demo smoke script and adds npm run smoke:app to verification steps. |
| package.json | Adds smoke:app script. |
| docs/coven-github-connection.md | Adds “Local App Demo” section describing the smoke flow and demo mode behavior. |
| .github/workflows/ci.yml | Runs the demo smoke script as part of CI. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+2
to
+10
| import {createHmac} from "node:crypto"; | ||
| import {mkdtempSync, readFileSync, writeFileSync} from "node:fs"; | ||
| import {tmpdir} from "node:os"; | ||
| import {join} from "node:path"; | ||
|
|
||
| import {createConfig} from "../dist/src/adapter.js"; | ||
| import {createWebhookServer} from "../dist/src/server.js"; | ||
|
|
||
| const root = new URL("..", import.meta.url).pathname; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
COVEN_GITHUB_DEMO_MODE=1for local app-route verification without external GitHub orcoven-codecalls.scripts/demo-app-smoke.mjsandnpm run smoke:appto start the built server, sign anissues.labeleddelivery, loadconfig/example-policy.json, and print delivery/task/result artifacts.Verification
npm test— 13/13npm run buildnpm run smoke:appgit diff --checkDemo evidence
npm run smoke:appreturned HTTP 200 with actionaccepted, task statecompleted, triggerissue_mention, familiarcody, issue#42, publication statedemo_mode_no_github_calls, and result evidence statussigned_delivery_policy_route.