Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- run: corepack enable
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run check
- run: npm test
- run: npm run build
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm run check
- run: pnpm test
- run: pnpm run build
17 changes: 9 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- run: corepack enable
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run check
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm run check
# Keep production deploys on the Node suite. The Workers/D1 pool
# suite stays in CI via `npm test` so workerd/pool flakes cannot block
# suite stays in CI via `pnpm test` so workerd/pool flakes cannot block
# an otherwise unrelated deploy.
- run: npm run test:node
- run: npm run build
- run: pnpm run test:node
- run: pnpm run build
# Migration 0001 is already applied remotely. Keep deployment fail-closed
# until a separately least-privileged D1 token exists for future changes.
- name: Verify production D1 migration baseline
Expand All @@ -52,12 +53,12 @@ jobs:
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_WORKER_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: npm run worker:deploy
run: pnpm run worker:deploy
- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: >
npx wrangler pages deploy dist
pnpm exec wrangler pages deploy dist
--project-name pegma-dev
--branch main
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ retiregolden.org, runs the stack on Azure).
## Worker logging

```sh
npm ci
npm run worker:deploy
pnpm install --frozen-lockfile
pnpm run worker:deploy
# optional Datadog arm:
npx wrangler secret put DATADOG_API_KEY -c worker/wrangler.jsonc
pnpm exec wrangler secret put DATADOG_API_KEY -c worker/wrangler.jsonc
# optional EU site:
npx wrangler secret put DATADOG_SITE -c worker/wrangler.jsonc
npm run worker:tail
pnpm exec wrangler secret put DATADOG_SITE -c worker/wrangler.jsonc
pnpm run worker:tail
```

`GET /health` on the Worker uses `@pegma/health` (process + logging sink
Expand Down
4 changes: 2 additions & 2 deletions docs/AGENT_ASSEMBLY_PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ what the Pegma stack already packages (typed, tested, pin-able components).
| Catalog tool logic | `src/data/mcp-tools.ts` |
| MCP Worker surface | `worker/src/mcp-server.ts` → `https://pegma.dev/api/mcp` |
| Minimal CF scaffold | `recipes/scaffold-cf-minimal/` |
| Offline assembly eval | `evals/assembly-eval.ts` (`npm run eval:assembly`) |
| Offline assembly eval | `evals/assembly-eval.ts` (`pnpm run eval:assembly`) |

**Goal:** An agent given a short product description chooses the right
`@pegma/*` packages, respects their refusals, and wires them at an explicit
Expand Down Expand Up @@ -362,7 +362,7 @@ Shipped:
| Catalog recipe | `static-brochure-minimal` (green scaffold citation) |
| Eval cases | `evals/assembly-cases.ts` |
| Eval runner | `evals/assembly-eval.ts` |
| CI coverage | `evals/assembly-eval.test.ts` via `npm test` / `npm run eval:assembly` |
| CI coverage | `evals/assembly-eval.test.ts` via `pnpm test` / `pnpm run eval:assembly` |

The offline harness scores `plan_composition` over the **compiled** catalog
against the prompt set. Offline baseline is a **no-catalog** empty plan
Expand Down
6 changes: 3 additions & 3 deletions docs/GITHUB_RELEASE_WEBHOOK_PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,9 @@ The mechanized evidence must cover:
Repository gates remain:

```text
npm run check
npm test
npm run build
pnpm run check
pnpm test
pnpm run build
```

Webhooks additionally keeps:
Expand Down
4 changes: 2 additions & 2 deletions docs/PROJECT_PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Cloudflare Pages project, `pegma.dev` custom domain, GitHub integration or
Actions deploy (SHA-pinned, per ecosystem standard).
Exit: push-to-main publishes; the domain serves the site with an A grade on
the obvious security headers. **Done:** project `pegma-dev`, deploys via
plain `npx wrangler` in the SHA-pinned workflow (the CI token is scoped to
plain `pnpm exec wrangler` in the SHA-pinned workflow (the CI token is scoped to
Pages:Edit only — deliberately no Worker, D1, or DNS scope; the custom domain
was attached in the dashboard); security headers served from
`public/_headers`, CSP with same-origin scripts only; `www` 301s to the apex.
Expand All @@ -182,7 +182,7 @@ The Worker deploys from the same push-to-main workflow, ordered before the
Pages deploy, using `CLOUDFLARE_WORKER_API_TOKEN` — a second, separately
least-privileged GitHub credential with Worker script plus `pegma.dev` route
authority only (the Pages token keeps no Worker authority). The broad local
OAuth credential is never copied into GitHub; `npm run worker:deploy` from an
OAuth credential is never copied into GitHub; `pnpm run worker:deploy` from an
operator session remains available as a break-glass path.

### Phase 3 — the compiled roadmap ✓ (2026-07-27)
Expand Down
Loading