From 52de94be239c225ae21c9b0ce3d18f7173eaa934 Mon Sep 17 00:00:00 2001 From: Boshen Date: Mon, 16 Nov 2026 12:05:48 +0800 Subject: [PATCH 1/2] feat(oxc): adapt Factory for Oxc issue triage --- .github/workflows/ci.yml | 27 ++++++++-- Dockerfile | 15 +++++- README.md | 18 ++++--- docs/oxc-deployment.md | 70 +++++++++++++++++++++++++ src/channels/github.ts | 9 ++++ src/triage/agents/triage-pipeline.ts | 1 + src/triage/fix-policy.ts | 22 ++++++++ src/triage/pipeline-contracts.ts | 29 ++--------- src/triage/prompts.ts | 31 +++--------- src/triage/workflow.ts | 29 ++++++++++- tests/triage-fix-policy.test.ts | 20 ++++++++ tests/triage-prompts.test.ts | 76 ++++++++-------------------- wrangler.jsonc | 28 +++++----- 13 files changed, 247 insertions(+), 128 deletions(-) create mode 100644 docs/oxc-deployment.md create mode 100644 src/triage/fix-policy.ts create mode 100644 tests/triage-fix-policy.test.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4fc3e7..abe8f7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,16 +19,16 @@ jobs: timeout-minutes: 15 steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5 with: persist-credentials: false - name: Setup pnpm - uses: pnpm/action-setup@v4 + uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 with: version: 10.28.0 run_install: false - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version: 22.19.0 cache: pnpm @@ -44,3 +44,24 @@ jobs: run: pnpm test - name: Build run: pnpm build + + sandbox: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout + uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5 + with: + persist-credentials: false + - name: Build Oxc sandbox + run: docker build --tag oxc-factory:ci . + - name: Verify Oxc tooling + run: >- + docker run --rm --entrypoint sh oxc-factory:ci -ec + 'test "$INSTA_REQUIRE_FULL_MATCH" = 1; + test "$(pnpm --version)" = 12.7.0; + command -v cargo; + just --version; + cargo-insta --version; + cargo-shear --version; + ast-grep --version' diff --git a/Dockerfile b/Dockerfile index fb46bbe..8f2c740 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,15 @@ FROM docker.io/cloudflare/sandbox:0.12.5 RUN apt-get update \ && apt-get install -y --no-install-recommends \ - git ripgrep curl ca-certificates build-essential pkg-config \ + git ripgrep curl ca-certificates build-essential pkg-config python3 clang cmake \ && rm -rf /var/lib/apt/lists/* # Package manager for reproducing/building target repositories. -RUN npm install -g pnpm@10 +RUN npm install -g corepack@0.34.6 @ast-grep/cli@0.44.0 \ + && corepack enable \ + && corepack prepare pnpm@12.7.0 --activate + +ENV INSTA_REQUIRE_FULL_MATCH=1 # Rust support, for repositories like @astrojs/compiler-rs. # @@ -29,6 +33,13 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ | sh -s -- -y --no-modify-path --profile minimal --default-toolchain none \ && chmod -R a+w "$RUSTUP_HOME" "$CARGO_HOME" +# Oxc's Rust verification tools are shared by every triage container. Remove +# the build toolchain after installation; the target checkout selects its own. +RUN rustup toolchain install stable --profile minimal \ + && cargo +stable install --locked just cargo-insta cargo-shear@1.13.1 \ + && rustup toolchain uninstall stable \ + && chmod -R a+w "$RUSTUP_HOME" "$CARGO_HOME" + # Adversary agent commands run as this user while the sandbox control plane # remains root for the other workflows that share this image. RUN useradd --create-home --shell /bin/bash sandbox-agent diff --git a/README.md b/README.md index 910ece7..10c5643 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,12 @@ -# Factory +# Oxc Factory + +Oxc's fork of [withastro/factory](https://github.com/withastro/factory). +The Worker is scoped to `oxc-project/oxc`; it uses Oxc's repository skills, +leaves fixes to issue assignees, and writes minimal Conventional Commit PRs. +See [Oxc deployment](docs/oxc-deployment.md) for setup and cutover. + +The upstream architecture and capability documentation follows. + A software factory: one Cloudflare Worker that receives GitHub webhooks and routes them through a deterministic dispatcher to durable @@ -13,7 +21,7 @@ Built by combining [withastro/astro-review](https://github.com/withastro/astro-r ## Scope -Factory is the triage and review automation **for the Astro repository's own +Upstream Factory is the triage and review automation **for the Astro repository's own use** (`withastro/astro`): its routing rules, labels, skills, and the release-security capability are tuned for how the Astro team works. It is **not a general-purpose tool** for anyone to install — the package is private @@ -435,10 +443,8 @@ may add domain-specific criteria but cannot weaken the built-in correctness and factory's review and triage defaults live in `skills/review/` and `skills/triage/`; a repository can replace either one by committing a skill under `.agents/skills/` and pointing the capability's `skill` setting at it. -Triage pull requests use Factory's built-in `Changes`, `Testing`, and `Docs` -format. A repository can add its own PR writing guidance with -`triage.prWriterSkill`; that skill is applied in addition to the built-in -format. +This fork writes scoped Conventional Commit titles and brief PR bodies without +section headings. Repository guidance comes from `triage.prWriterSkill`. (The bundled entry file is stored as `skill.md` — Flue's vite plugin treats imports literally named `SKILL.md` as packaged skills, and we need the raw diff --git a/docs/oxc-deployment.md b/docs/oxc-deployment.md new file mode 100644 index 0000000..a278466 --- /dev/null +++ b/docs/oxc-deployment.md @@ -0,0 +1,70 @@ +# Oxc deployment + +This fork deploys `oxc-factory` on Cloudflare Workers with Cloudflare Sandbox +0.12.5, Durable Objects, Workflows, and two private R2 buckets. Inference uses a +named AI Gateway. No Astro Discord destination is configured. The Astro release +security capability remains inactive because its repository scope is unchanged. +Oxc disables the upstream Astro persona accounts in `.github/factory.yml`. + +## Account and credentials + +Use the Cloudflare account approved for Oxc infrastructure. The old triage +Action's Workers AI token is not necessarily a deployment token. Deployment +needs Workers, Durable Objects, Workflows, Containers, and R2 permissions. +Create `oxc-factory-private-reports` and `oxc-factory-adversary-artifacts` in that +account before deploying. Configure the named Gateway to accept authenticated +requests from the inference token. + +Store these encrypted Worker secrets (never in the sandbox): +- `GITHUB_APP_ID`: `oxc-captain` App client ID (`CAPTAIN_ID` in Oxc CI). +- `GITHUB_APP_PRIVATE_KEY`: its PKCS#8 key (`CAPTAIN_KEY` in Oxc CI); convert a + PKCS#1 key using `openssl pkcs8 -topk8 -nocrypt` before uploading. +- `GITHUB_WEBHOOK_SECRET`: a new random secret shared with the App webhook. +- `FACTORY_AI_GATEWAY_ACCOUNT_ID`: Gateway account ID. +- `FACTORY_AI_GATEWAY_ID`: Gateway slug. +- `FACTORY_AI_GATEWAY_TOKEN`: token authorized to call that Gateway. + +Opus 5.5 uses `cloudflare-ai-gateway/claude-opus-5-5`. It requires working +Gateway provider billing or a configured Anthropic provider key. Oxc's direct +Unified Billing CI probes on 2026-11-16 returned HTTP 402; resolve that before +turning on the Opus configuration. Model metadata alone does not enable billing. + +## Build and deploy + +```sh +pnpm install --frozen-lockfile +pnpm cf-typegen +pnpm check:types +pnpm test +pnpm build +pnpm exec wrangler deploy --dry-run +pnpm exec wrangler deploy +``` + +A Docker daemon is required to build the sandbox image. The image includes +Corepack/pnpm, Rustup, just, cargo-insta, cargo-shear, and ast-grep. The checkout's +`rust-toolchain.toml` selects Rust, so install its components during bootstrap. +`INSTA_REQUIRE_FULL_MATCH=1` applies to all sandbox commands. + +## Cutover + +1. Merge Oxc's Factory configuration and compatible triage skills. Keep its + legacy Issue Triage workflow enabled during deployment. +2. Install `oxc-captain` on Oxc with Contents, Issues, and Pull requests write. + Issue triage alone does not need Checks write. Review and preview capabilities + additionally require Checks access and their documented subscriptions. +3. Deploy with the six secrets above; verify `/health` returns `{"status":"ok"}` + and unsigned webhook requests are rejected. +4. Set the GitHub App webhook URL to the deployed Worker's + `/channels/github/webhook`, with the same signing secret. Subscribe to + **Issues** and **Issue comment**. These App subscriptions require an App + owner; the existing App has no subscribed events as of 2026-11-16. +5. Disable legacy triage by setting Oxc's Actions repository variable + `FACTORY_ENABLED=true`, then activate the App webhook. Check GitHub's ping + delivery and run a controlled issue triage before considering cutover done. + Keep only one consumer active while testing an issue. + +Rollback: deactivate the Factory webhook, then remove or set +`FACTORY_ENABLED=false` to resume the legacy Action. Existing state labels are +shared. Factory uses `factory/fix-N` branches; legacy branches use their own +prefix and are not automatically adopted or deleted by Factory. diff --git a/src/channels/github.ts b/src/channels/github.ts index 6221c51..9de5e35 100644 --- a/src/channels/github.ts +++ b/src/channels/github.ts @@ -61,6 +61,15 @@ import { export const githubChannel = createGitHubChannel({ webhookSecret: requiredProcessEnv('GITHUB_WEBHOOK_SECRET'), async webhook({ c, delivery }) { + const repository = ( + delivery.payload as { repository?: { full_name?: string } } + ).repository; + if (repository?.full_name !== c.env.FACTORY_REPOSITORY) { + return Response.json({ + accepted: false, + reason: 'Repository is outside this deployment.', + }); + } const dispatch = routeDelivery( delivery.name, delivery.payload as Parameters[1], diff --git a/src/triage/agents/triage-pipeline.ts b/src/triage/agents/triage-pipeline.ts index 4e4f827..d9cf01f 100644 --- a/src/triage/agents/triage-pipeline.ts +++ b/src/triage/agents/triage-pipeline.ts @@ -162,6 +162,7 @@ export function TriagePipeline() { 'Do not fetch the issue from GitHub; the full details are below.', '', `## Issue #${input.issueNumber}: ${input.issueTitle}`, + `Assignees: ${input.issueAssignees.length ? input.issueAssignees.join(', ') : '(none)'}. Leave implementation to any assignees.`, `Author: @${input.issueAuthor} (${input.issueAuthorAssociation})`, '', input.issueBody, diff --git a/src/triage/fix-policy.ts b/src/triage/fix-policy.ts new file mode 100644 index 0000000..9f9bd22 --- /dev/null +++ b/src/triage/fix-policy.ts @@ -0,0 +1,22 @@ +/** Oxc leaves implementation to assignees and only fixes verified bugs. */ +export function fixEligibility( + verdict: string, + confidence: string | null, + state: string, + assignees: readonly string[], +): { allowed: true } | { allowed: false; reason: string } { + if (state !== 'open') + return { allowed: false, reason: 'the issue is closed' }; + if (assignees.length > 0) + return { + allowed: false, + reason: 'implementation is left to the assignees', + }; + if (verdict !== 'bug' || (confidence !== 'medium' && confidence !== 'high')) { + return { + allowed: false, + reason: 'a verified bug and a confident diagnosis are required', + }; + } + return { allowed: true }; +} diff --git a/src/triage/pipeline-contracts.ts b/src/triage/pipeline-contracts.ts index a6c4062..d1ccdbc 100644 --- a/src/triage/pipeline-contracts.ts +++ b/src/triage/pipeline-contracts.ts @@ -21,6 +21,7 @@ export const triagePipelineInputSchema = v.object({ repo: nonEmptyString, issueNumber: v.pipe(v.number(), v.integer(), v.minValue(1)), issueTitle: v.string(), + issueAssignees: v.optional(v.array(v.string()), []), issueBody: v.string(), issueAuthor: nonEmptyString, issueAuthorAssociation: v.string(), @@ -132,34 +133,14 @@ export const prContentSchema = v.object({ body: v.pipe( nonEmptyString, v.maxLength(20_000), - v.check((body) => { - const headings = topLevelHeadings(body); - return ( - headings.length === 3 && - headings[0] === '## Changes' && - headings[1] === '## Testing' && - headings[2] === '## Docs' - ); - }, 'The PR body must use the Changes, Testing, and Docs sections in that order.'), + v.check( + (body) => !/^#{1,6}\s/m.test(body), + 'The PR body must be brief and contain no headings.', + ), v.description('The PR body in markdown'), ), }); -function topLevelHeadings(markdown: string): string[] { - const headings: string[] = []; - let fence: '`' | '~' | undefined; - for (const line of markdown.split('\n')) { - const delimiter = /^(`{3,}|~{3,})/.exec(line)?.[1]; - if (delimiter) { - if (!fence) fence = delimiter[0] as '`' | '~'; - else if (delimiter[0] === fence) fence = undefined; - continue; - } - if (!fence && line.startsWith('## ')) headings.push(line.trimEnd()); - } - return headings; -} - export type ReproduceResult = v.InferOutput; export type DiagnoseResult = v.InferOutput; export type VerifyResult = v.InferOutput; diff --git a/src/triage/prompts.ts b/src/triage/prompts.ts index 33d0919..ae6abba 100644 --- a/src/triage/prompts.ts +++ b/src/triage/prompts.ts @@ -148,33 +148,16 @@ export function prWritingInstructions( prWriterSkill?: PrWriterSkillReference, ): string { const skillInstruction = prWriterSkill - ? `Activate the \`${prWriterSkill.name}\` skill (${prWriterSkill.directory}/SKILL.md) and follow its repository-specific PR writing guidance in addition to the requirements below.\n\n` + ? `Activate the \`${prWriterSkill.name}\` skill (${prWriterSkill.directory}/SKILL.md) and follow its repository-specific PR writing guidance.\n\n` : ''; - return `${skillInstruction}## PR writing requirements + return `${skillInstruction}PR writing requirements: -- Write a concise, descriptive title in plain language. Do not use a conventional commit prefix such as "fix:" or "feat:". -- Keep the body brief and use exactly these sections: - -\`\`\`markdown -## Changes - -- -- - -## Testing - -- - -## Docs - -- -\`\`\` - -- In Changes, describe behavior, implementation, and impact. Do not mention tests, changesets, bot activity, or confirmation process. -- In Testing, describe test code added or changed. Do not list commands, pass counts, or that tests passed. If no tests changed, say why. -- Make the Docs decision explicit. -- End the body with "Closes #${issueNumber}".`; +- Use a concise, scoped Conventional Commit title, such as "fix(parser): handle trailing comma". +- Keep the body to a brief explanation of the problem and why the change fixes it. +- Do not add headings or sections such as Tests, Testing, Evidence, or Docs. +- Include "Closes #${issueNumber}" and "Automated Factory fix (AI-assisted).". +- Keep detailed validation in the triage report; never invent results.`; } function formatLabelList(labels: RepoLabel[]): string { diff --git a/src/triage/workflow.ts b/src/triage/workflow.ts index 45c51dd..3b3f8f5 100644 --- a/src/triage/workflow.ts +++ b/src/triage/workflow.ts @@ -65,6 +65,7 @@ import { formatFailureComment, MAX_TRIAGE_FAILURES, } from './failure.ts'; +import { fixEligibility } from './fix-policy.ts'; import { route, type TriageAction } from './fsm.ts'; import { allTriageLabels, @@ -175,6 +176,7 @@ interface RoutedIssue { title: string; body: string; state: string; + assignees: string[]; authorLogin: string; authorAssociation: string; labels: string[]; @@ -498,6 +500,7 @@ export class TriageWorkflow extends WorkflowEntrypoint< repo: params.repo, issueNumber: params.issueNumber, issueTitle: issue.title, + issueAssignees: issue.assignees, issueBody: issue.body, issueAuthor: issue.authorLogin || 'ghost', issueAuthorAssociation: issue.authorAssociation, @@ -745,7 +748,25 @@ export class TriageWorkflow extends WorkflowEntrypoint< progress, ); - if (verify.verdict !== 'intended-behavior') { + const fixPermission = await step.do( + 'check issue before fixing', + STEP_RETRIES, + async () => { + const latest = await fetchIssueDetails( + await client(), + params.owner, + params.repo, + params.issueNumber, + ); + return fixEligibility( + verify.verdict, + diagnose.confidence, + latest.state, + latest.assignees, + ); + }, + ); + if (fixPermission.allowed) { const fix = await pipelineStep( 'fix', fixStepPrompt(), @@ -766,6 +787,9 @@ export class TriageWorkflow extends WorkflowEntrypoint< 'fix attempt complete', progress, ); + } else { + progress.skipped.fix = fixPermission.reason; + progress.current = 'publish'; } } @@ -1271,6 +1295,7 @@ export class TriageWorkflow extends WorkflowEntrypoint< repo: params.repo, issueNumber: params.issueNumber, issueTitle: issue.title, + issueAssignees: issue.assignees, issueBody: issue.body, conversation: issue.conversation, model: triage.verificationModel, @@ -1392,6 +1417,7 @@ export class TriageWorkflow extends WorkflowEntrypoint< repo: params.repo, issueNumber: params.issueNumber, issueTitle: issue.title, + issueAssignees: issue.assignees, issueBody: issue.body, branch, defaultBranch: params.defaultBranch, @@ -1680,6 +1706,7 @@ async function loadAndRoute( title: details.title, body: details.body.slice(0, 20_000), state: details.state, + assignees: details.assignees, authorLogin: details.author.login, authorAssociation: details.authorAssociation, labels: details.labels, diff --git a/tests/triage-fix-policy.test.ts b/tests/triage-fix-policy.test.ts new file mode 100644 index 0000000..51a16cd --- /dev/null +++ b/tests/triage-fix-policy.test.ts @@ -0,0 +1,20 @@ +import { expect, it } from 'vitest'; +import { fixEligibility } from '../src/triage/fix-policy.ts'; + +it('leaves implementation to issue assignees', () => { + expect(fixEligibility('bug', 'high', 'open', ['maintainer']).allowed).toBe( + false, + ); +}); +it('only implements confident diagnoses of verified bugs on open issues', () => { + for (const [verdict, confidence, state] of [ + ['unclear', 'high', 'open'], + ['intended-behavior', 'high', 'open'], + ['bug', 'low', 'open'], + ['bug', null, 'open'], + ['bug', 'high', 'closed'], + ] as const) + expect(fixEligibility(verdict, confidence, state, []).allowed).toBe(false); + expect(fixEligibility('bug', 'medium', 'open', []).allowed).toBe(true); + expect(fixEligibility('bug', 'high', 'open', []).allowed).toBe(true); +}); diff --git a/tests/triage-prompts.test.ts b/tests/triage-prompts.test.ts index 058488c..ad896e4 100644 --- a/tests/triage-prompts.test.ts +++ b/tests/triage-prompts.test.ts @@ -7,74 +7,42 @@ import { prWritingInstructions, } from '../src/triage/prompts.ts'; -describe('PR writing prompts', () => { - it('uses the built-in pull request template', () => { +describe('Oxc pull requests', () => { + it('requests a minimal Conventional Commit pull request', () => { const prompt = prContentPrompt(123, 'factory/fix-123', 'main'); - - expect(prompt).toContain('## Changes'); - expect(prompt).toContain('## Testing'); - expect(prompt).toContain('## Docs'); + expect(prompt).toContain('scoped Conventional Commit'); expect(prompt).toContain('Closes #123'); - expect(prompt).not.toContain('auto-generated by the triage bot'); - expect(prompt).not.toContain('confirmed the fix'); + expect(prompt).toContain('AI-assisted'); + expect(prompt).not.toContain('## Changes'); }); - - it('adds repository-specific skill guidance', () => { + it('loads repository guidance without imposing Astro sections', () => { const prompt = prWritingInstructions(123, { - name: 'astro-pr-writer', - directory: '.agents/skills/astro-pr-writer', + name: 'pr-writer', + directory: '.agents/skills/pr-writer', }); - - expect(prompt).toContain('Activate the `astro-pr-writer` skill'); - expect(prompt).toContain('.agents/skills/astro-pr-writer/SKILL.md'); - expect(prompt).toContain('## Changes'); + expect(prompt).toContain('.agents/skills/pr-writer/SKILL.md'); + expect(prompt).not.toContain('## Changes'); }); - - it('rejects pull request bodies that do not follow the template', () => { - const invalidPr = { - title: 'Fix the issue', - body: '## Summary\n\nThe fix.\n\n## Confirmation\n\nIt works.', + it('accepts a brief description through both publication paths', () => { + const pr = { + title: 'fix(parser): handle a trailing comma', + body: 'Handle the comma before the closing delimiter.\n\nCloses #123\n\nAutomated Factory fix (AI-assisted).', }; - expect(() => v.parse(prContentSchema, invalidPr)).toThrow( - 'Changes, Testing, and Docs', - ); - expect(() => - v.parse(prContentSchema, { - title: 'Fix the issue', - body: [ - '```markdown', - '## Changes', - '## Testing', - '## Docs', - '```', - ].join('\n'), - }), - ).toThrow('Changes, Testing, and Docs'); + expect(v.parse(prContentSchema, pr)).toEqual(pr); expect(() => v.parse(fixVerdictSchema, { status: 'confirmed', reasoning: 'The reporter confirmed the fix.', - pr: invalidPr, + pr, }), - ).toThrow('Changes, Testing, and Docs'); - + ).not.toThrow(); + }); + it('rejects sectioned descriptions', () => { expect(() => v.parse(prContentSchema, { - title: 'Fix the issue', - body: [ - '## Changes', - '', - '- Fixes the issue.', - '', - '## Testing', - '', - '- Adds a regression test.', - '', - '## Docs', - '', - '- No docs needed.', - ].join('\n'), + title: 'fix(parser): handle comma', + body: '## Testing\n\nA test.', }), - ).not.toThrow(); + ).toThrow('no headings'); }); }); diff --git a/wrangler.jsonc b/wrangler.jsonc index e7cb765..2aabfb6 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -1,9 +1,9 @@ { "$schema": "./node_modules/wrangler/config-schema.json", - "name": "factory", - "workers_dev": false, + "name": "oxc-factory", + "workers_dev": true, "preview_urls": false, - "compatibility_date": "2026-08-10", + "compatibility_date": "2026-11-16", "compatibility_flags": ["nodejs_compat"], "secrets": { "required": [ @@ -19,16 +19,16 @@ "r2_buckets": [ { "binding": "PRIVATE_REPORTS", - "bucket_name": "astro-release-securitybot-reports" + "bucket_name": "oxc-factory-private-reports" }, { "binding": "ADVERSARY_ARTIFACTS", - "bucket_name": "factory-adversary-artifacts" + "bucket_name": "oxc-factory-adversary-artifacts" } ], "vars": { "SANDBOX_TRANSPORT": "rpc", - "DISCORD_SECURITY_CHANNEL_ID": "1432493454784462970" + "FACTORY_REPOSITORY": "oxc-project/oxc" }, "containers": [ { @@ -92,42 +92,42 @@ }, "workflows": [ { - "name": "factory-review", + "name": "oxc-factory-review", "binding": "REVIEW_WORKFLOW", "class_name": "ReviewWorkflow" }, { - "name": "factory-adversary", + "name": "oxc-factory-adversary", "binding": "ADVERSARY_WORKFLOW", "class_name": "AdversaryWorkflow" }, { - "name": "factory-triage", + "name": "oxc-factory-triage", "binding": "TRIAGE_WORKFLOW", "class_name": "TriageWorkflow" }, { - "name": "factory-author", + "name": "oxc-factory-author", "binding": "AUTHOR_WORKFLOW", "class_name": "AuthorWorkflow" }, { - "name": "factory-release-security", + "name": "oxc-factory-release-security", "binding": "RELEASE_SECURITY_WORKFLOW", "class_name": "ReleaseSecurityWorkflow" }, { - "name": "factory-advisory", + "name": "oxc-factory-advisory", "binding": "ADVISORY_WORKFLOW", "class_name": "AdvisoryWorkflow" }, { - "name": "factory-pr-safety", + "name": "oxc-factory-pr-safety", "binding": "PR_SAFETY_WORKFLOW", "class_name": "PrSafetyWorkflow" }, { - "name": "factory-merge-risk", + "name": "oxc-factory-merge-risk", "binding": "MERGE_RISK_WORKFLOW", "class_name": "MergeRiskWorkflow" } From 43d2549861d5b4249b44865c1e8386c41e5fe595 Mon Sep 17 00:00:00 2001 From: Boshen Date: Mon, 16 Nov 2026 12:13:15 +0800 Subject: [PATCH 2/2] fix(workers): validate the Oxc runtime with current tooling --- .github/workflows/ci.yml | 4 + docs/oxc-deployment.md | 4 + package.json | 7 +- pnpm-lock.yaml | 778 ++++++++++++++++----------------------- scripts/smoke.mjs | 105 ++++++ 5 files changed, 430 insertions(+), 468 deletions(-) create mode 100644 scripts/smoke.mjs diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abe8f7e..11a8599 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,10 @@ jobs: run: pnpm test - name: Build run: pnpm build + - name: Smoke test Worker + run: pnpm test:smoke + - name: Check deployment package + run: pnpm exec wrangler deploy --dry-run --containers-rollout=none sandbox: runs-on: ubuntu-latest diff --git a/docs/oxc-deployment.md b/docs/oxc-deployment.md index a278466..813687b 100644 --- a/docs/oxc-deployment.md +++ b/docs/oxc-deployment.md @@ -11,6 +11,9 @@ Oxc disables the upstream Astro persona accounts in `.github/factory.yml`. Use the Cloudflare account approved for Oxc infrastructure. The old triage Action's Workers AI token is not necessarily a deployment token. Deployment needs Workers, Durable Objects, Workflows, Containers, and R2 permissions. +The existing Oxc CI token was denied Containers (403) and Workflows (401) in +[the credential preflight](https://github.com/oxc-project/oxc/actions/runs/43802011137). +Provide a deployment token separately from inference credentials. Create `oxc-factory-private-reports` and `oxc-factory-adversary-artifacts` in that account before deploying. Configure the named Gateway to accept authenticated requests from the inference token. @@ -37,6 +40,7 @@ pnpm cf-typegen pnpm check:types pnpm test pnpm build +pnpm test:smoke pnpm exec wrangler deploy --dry-run pnpm exec wrangler deploy ``` diff --git a/package.json b/package.json index 0b1a980..a1b980c 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "deploy": "vite build && wrangler deploy", "cf-typegen": "wrangler types", "check:types": "tsc --noEmit", - "test": "vitest run --config vitest.config.ts" + "test": "vitest run --config vitest.config.ts", + "test:smoke": "node scripts/smoke.mjs" }, "dependencies": { "@biomejs/biome": "2.6.2", @@ -29,13 +30,13 @@ "valibot": "^1.4.2" }, "devDependencies": { - "@cloudflare/vite-plugin": "^1.51.1", + "@cloudflare/vite-plugin": "^1.69.1", "@flue/cli": "^2.3.0", "@flue/vite": "^2.3.0", "@types/node": "^22.10.10", "typescript": "^7.0.2", "vite": "^8.2.1", "vitest": "^4.1.10", - "wrangler": "^4.120.0" + "wrangler": "^4.162.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 297fc22..65c7624 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -19,13 +19,13 @@ importers: version: 0.12.5 '@earendil-works/pi-ai': specifier: ^1.3.0 - version: 1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(undici@7.29.0)(ws@8.21.3)(zod@4.4.3) + version: 1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(undici@7.30.1)(ws@8.22.0)(zod@4.4.3) '@flue/github': specifier: ^2.3.0 - version: 2.3.0(@flue/runtime@2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(typescript@7.0.2)(undici@7.29.0)(ws@8.21.3)(zod@4.4.3)) + version: 2.3.0(@flue/runtime@2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(typescript@7.0.2)(undici@7.30.1)(ws@8.22.0)(zod@4.4.3)) '@flue/runtime': specifier: ^2.3.0 - version: 2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(typescript@7.0.2)(undici@7.29.0)(ws@8.21.3)(zod@4.4.3) + version: 2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(typescript@7.0.2)(undici@7.30.1)(ws@8.22.0)(zod@4.4.3) hono: specifier: 4.12.32 version: 4.12.32 @@ -43,14 +43,14 @@ importers: version: 1.4.2(typescript@7.0.2) devDependencies: '@cloudflare/vite-plugin': - specifier: ^1.51.1 - version: 1.52.1(vite@8.2.1(@types/node@22.20.1)(esbuild@0.28.2)(yaml@2.9.0))(wrangler@4.123.0(@cloudflare/workers-types@5.20260814.1)) + specifier: ^1.69.1 + version: 1.69.1(@types/node@22.20.1)(vite@8.2.1(@types/node@22.20.1)(esbuild@0.28.2)(yaml@2.9.0))(workerd@1.20261113.1)(wrangler@4.162.0(@cloudflare/workers-types@5.20260814.1)(@types/node@22.20.1)) '@flue/cli': specifier: ^2.3.0 - version: 2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@babel/core@8.0.1)(@babel/runtime@7.29.7)(@cloudflare/codemode@0.5.1(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(zod@4.4.3))(@cloudflare/workers-types@5.20260814.1)(@modelcontextprotocol/client@2.0.0)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@modelcontextprotocol/server@2.0.0)(@smithy/signature-v4@5.7.4)(@types/node@22.20.1)(esbuild@0.28.2)(hono@4.12.32)(just-bash@3.3.0)(react@19.2.8)(rolldown@1.2.4)(typescript@7.0.2)(undici@7.29.0)(ws@8.21.3)(yaml@2.9.0)(zod@4.4.3) + version: 2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@babel/core@8.0.1)(@babel/runtime@7.29.7)(@cloudflare/codemode@0.5.1(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(zod@4.4.3))(@cloudflare/workers-types@5.20260814.1)(@modelcontextprotocol/client@2.0.0)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@modelcontextprotocol/server@2.0.0)(@smithy/signature-v4@5.7.4)(@types/node@22.20.1)(esbuild@0.28.2)(hono@4.12.32)(just-bash@3.3.0)(react@19.2.8)(rolldown@1.2.4)(typescript@7.0.2)(undici@7.30.1)(ws@8.22.0)(yaml@2.9.0)(zod@4.4.3) '@flue/vite': specifier: ^2.3.0 - version: 2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@babel/core@8.0.1)(@babel/runtime@7.29.7)(@cloudflare/codemode@0.5.1(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(zod@4.4.3))(@cloudflare/workers-types@5.20260814.1)(@modelcontextprotocol/client@2.0.0)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@modelcontextprotocol/server@2.0.0)(@smithy/signature-v4@5.7.4)(hono@4.12.32)(just-bash@3.3.0)(react@19.2.8)(rolldown@1.2.4)(typescript@7.0.2)(undici@7.29.0)(vite@8.2.1(@types/node@22.20.1)(esbuild@0.28.2)(yaml@2.9.0))(ws@8.21.3)(zod@4.4.3) + version: 2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@babel/core@8.0.1)(@babel/runtime@7.29.7)(@cloudflare/codemode@0.5.1(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(zod@4.4.3))(@cloudflare/workers-types@5.20260814.1)(@modelcontextprotocol/client@2.0.0)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@modelcontextprotocol/server@2.0.0)(@smithy/signature-v4@5.7.4)(hono@4.12.32)(just-bash@3.3.0)(react@19.2.8)(rolldown@1.2.4)(typescript@7.0.2)(undici@7.30.1)(vite@8.2.1(@types/node@22.20.1)(esbuild@0.28.2)(yaml@2.9.0))(ws@8.22.0)(zod@4.4.3) '@types/node': specifier: ^22.10.10 version: 22.20.1 @@ -64,8 +64,8 @@ importers: specifier: ^4.1.10 version: 4.1.10(@opentelemetry/api@1.9.0)(@types/node@22.20.1)(vite@8.2.1(@types/node@22.20.1)(esbuild@0.28.2)(yaml@2.9.0)) wrangler: - specifier: ^4.120.0 - version: 4.123.0(@cloudflare/workers-types@5.20260814.1) + specifier: ^4.162.0 + version: 4.162.0(@cloudflare/workers-types@5.20260814.1)(@types/node@22.20.1) packages: @@ -378,8 +378,8 @@ packages: '@xterm/xterm': optional: true - '@cloudflare/unenv-preset@2.16.1': - resolution: {integrity: sha512-ECxObrMfyTl5bhQf/lZCXwo5G6xX9IAUo+nDMKK4SZ8m4Jvvxp52vilxyySSWh2YTZz8+HQ07qGH/2rEom1vDw==} + '@cloudflare/unenv-preset@2.16.2': + resolution: {integrity: sha512-JBP1+Z7ZSNG/d4mRP+y8VC5dka3tZVMLEZRvS+rzQ4DGV1EoxRFQckcJTTkXbHSQiTj0DtNI01Zwb/V2fX0mvQ==} peerDependencies: unenv: 2.0.0-rc.24 workerd: '>1.20260305.0 <2.0.0-0' @@ -387,39 +387,68 @@ packages: workerd: optional: true - '@cloudflare/vite-plugin@1.52.1': - resolution: {integrity: sha512-O2IkD8E03qsUxNBdDRfDI9JPl25XIPt+76WJf8tgm206c34jYk8nn12ylBiOI/6NA8XUFhLjRTF1BGY+kVylXw==} - hasBin: true + '@cloudflare/vite-plugin@1.69.1': + resolution: {integrity: sha512-20Gre8u3YNa6LreaqVg+gzuRZTWmMvaiRYOZliQKb2xTuG8SRfAdgP+Fzls4hl5SozUx4OCfgYGuEqRujxuMSA==} peerDependencies: vite: ^6.1.0 || ^7.0.0 || ^8.0.0 - wrangler: ^4.123.0 + wrangler: ^4.160.0 + + '@cloudflare/workerd-darwin-64@1.20261110.1': + resolution: {integrity: sha512-RazOdADqTgwYhE60+i6c/R5BA1J5aC//39oousnWBxmoVAiqUh1qsXNCGMbaEV6UC5RnZyWsIBRIcAYNDe1xTg==} + engines: {node: '>=16'} + cpu: [x64] + os: [darwin] - '@cloudflare/workerd-darwin-64@1.20260811.1': - resolution: {integrity: sha512-i5jqz+ywtOefr0AJbiAc8qxBLfSim/B0WJG7aW3B+pWnoVfMJdUQvi+BWcFKZJ0MoCci3KadTx6g31VfuEEqpQ==} + '@cloudflare/workerd-darwin-64@1.20261113.1': + resolution: {integrity: sha512-UcShHyWJVZNbuI8jL3F5QZXMrJm7oScge33D5p3hAyhIIkoVj72+bior+VcUcr1SBWkh5w3Umnrx179WE7Wvpw==} engines: {node: '>=16'} cpu: [x64] os: [darwin] - '@cloudflare/workerd-darwin-arm64@1.20260811.1': - resolution: {integrity: sha512-NoOUM/nvaDdm2Onlnz33FikWjtatzulNtvwvy4xs0IrHaTCHwC0c8NwIt6s+AI13FkDs02/vm2I3GTPLCT9+hQ==} + '@cloudflare/workerd-darwin-arm64@1.20261110.1': + resolution: {integrity: sha512-TFsn/t+wczWnWdm+ytlWe+xHEO9sDgfIBmtMo8OxujuS2DXCmGimiyvJHmuv+6+N9OhUb0dM+fveXJI9yjuzew==} + engines: {node: '>=16'} + cpu: [arm64] + os: [darwin] + + '@cloudflare/workerd-darwin-arm64@1.20261113.1': + resolution: {integrity: sha512-bKfFcpueb9GOg0NZSR4x7dpEJZMsQOwCk0XzsAoXoBfG4osFRQcFxtAhrXvB1y445zXFLhrEkDJ/+LvGAMkPSg==} engines: {node: '>=16'} cpu: [arm64] os: [darwin] - '@cloudflare/workerd-linux-64@1.20260811.1': - resolution: {integrity: sha512-sdYq2jL1AD1supa3fsi5O4zTB28wSjvTHj7Migh6/ts8EROPdvrSwv+rdGHhv8HJNAz/wbIAY3wZsi1Rw4uUIg==} + '@cloudflare/workerd-linux-64@1.20261110.1': + resolution: {integrity: sha512-i4080Pp6Q0nwS8OMqt3cbpJoWvbCrIlFKa+4Inbn+y2pWKTVsq6F9bgdi0l8CBZPMszd03gDlQR++dqMbErh2Q==} + engines: {node: '>=16'} + cpu: [x64] + os: [linux] + + '@cloudflare/workerd-linux-64@1.20261113.1': + resolution: {integrity: sha512-3VCnXzi7apwPSMwkiTIeEc5z/UWWGQXBZZNHCBBCXPlavWCR06SQ77tO0rEoKonfjBGW0MQaHNZ7U1pCPe4v3g==} engines: {node: '>=16'} cpu: [x64] os: [linux] - '@cloudflare/workerd-linux-arm64@1.20260811.1': - resolution: {integrity: sha512-RIRv4shbu1kg05sD+DHTpSFCNnb5Dl2SkPDMUykqZa508tkPqe7VVw7gO0Q5msTBGyL0FfFrLuRxwwfA8u5Sow==} + '@cloudflare/workerd-linux-arm64@1.20261110.1': + resolution: {integrity: sha512-0l+JyYWOhEzTs7yOkIdf1ZzcXd9WalPZ1kD0bBAobFvDhO/1jBnQkS4rzzyUkGV7g8pb3dkfrBP9c2ZiRLOfdw==} + engines: {node: '>=16'} + cpu: [arm64] + os: [linux] + + '@cloudflare/workerd-linux-arm64@1.20261113.1': + resolution: {integrity: sha512-phnb1686FTIVSr4qxQFOt7MyiWMotqsVUyZVnQl579/bCrqWaYUcRnikN5f6bBpDbxCk1OvOvYz0ykjT1lvYpg==} engines: {node: '>=16'} cpu: [arm64] os: [linux] - '@cloudflare/workerd-windows-64@1.20260811.1': - resolution: {integrity: sha512-g6VquwjASlYAibcNW/0E6Zszht4qLkmnXOGwIjjRHl2A0Qz48kVeMcGvyH6eA0G9U3OzZojjYFpP+YeyQmmdjw==} + '@cloudflare/workerd-windows-64@1.20261110.1': + resolution: {integrity: sha512-zP8IGyWvohyJhbNjHOnTA9anRQtGN7X01T/dG+R9IA4vu2egRODsD02aoYzv0a0qImjt7tTpOOA+uVotDJPcSA==} + engines: {node: '>=16'} + cpu: [x64] + os: [win32] + + '@cloudflare/workerd-windows-64@1.20261113.1': + resolution: {integrity: sha512-WtQakCAIzUQJ6dQDPn7kIGlFJ9yjB0ooNx2WFqEHLYNAT7TLCNyaORem2WVM38TceVR8flCP5UWgYm6ht3dlIw==} engines: {node: '>=16'} cpu: [x64] os: [win32] @@ -447,312 +476,156 @@ packages: '@emnapi/runtime@1.11.3': resolution: {integrity: sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==} - '@esbuild/aix-ppc64@0.28.1': - resolution: {integrity: sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [aix] - '@esbuild/aix-ppc64@0.28.2': resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==} engines: {node: '>=18'} cpu: [ppc64] os: [aix] - '@esbuild/android-arm64@0.28.1': - resolution: {integrity: sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==} - engines: {node: '>=18'} - cpu: [arm64] - os: [android] - '@esbuild/android-arm64@0.28.2': resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==} engines: {node: '>=18'} cpu: [arm64] os: [android] - '@esbuild/android-arm@0.28.1': - resolution: {integrity: sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==} - engines: {node: '>=18'} - cpu: [arm] - os: [android] - '@esbuild/android-arm@0.28.2': resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==} engines: {node: '>=18'} cpu: [arm] os: [android] - '@esbuild/android-x64@0.28.1': - resolution: {integrity: sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==} - engines: {node: '>=18'} - cpu: [x64] - os: [android] - '@esbuild/android-x64@0.28.2': resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==} engines: {node: '>=18'} cpu: [x64] os: [android] - '@esbuild/darwin-arm64@0.28.1': - resolution: {integrity: sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==} - engines: {node: '>=18'} - cpu: [arm64] - os: [darwin] - '@esbuild/darwin-arm64@0.28.2': resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==} engines: {node: '>=18'} cpu: [arm64] os: [darwin] - '@esbuild/darwin-x64@0.28.1': - resolution: {integrity: sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [darwin] - '@esbuild/darwin-x64@0.28.2': resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==} engines: {node: '>=18'} cpu: [x64] os: [darwin] - '@esbuild/freebsd-arm64@0.28.1': - resolution: {integrity: sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==} - engines: {node: '>=18'} - cpu: [arm64] - os: [freebsd] - '@esbuild/freebsd-arm64@0.28.2': resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==} engines: {node: '>=18'} cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-x64@0.28.1': - resolution: {integrity: sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [freebsd] - '@esbuild/freebsd-x64@0.28.2': resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==} engines: {node: '>=18'} cpu: [x64] os: [freebsd] - '@esbuild/linux-arm64@0.28.1': - resolution: {integrity: sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==} - engines: {node: '>=18'} - cpu: [arm64] - os: [linux] - '@esbuild/linux-arm64@0.28.2': resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==} engines: {node: '>=18'} cpu: [arm64] os: [linux] - '@esbuild/linux-arm@0.28.1': - resolution: {integrity: sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==} - engines: {node: '>=18'} - cpu: [arm] - os: [linux] - '@esbuild/linux-arm@0.28.2': resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==} engines: {node: '>=18'} cpu: [arm] os: [linux] - '@esbuild/linux-ia32@0.28.1': - resolution: {integrity: sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==} - engines: {node: '>=18'} - cpu: [ia32] - os: [linux] - '@esbuild/linux-ia32@0.28.2': resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==} engines: {node: '>=18'} cpu: [ia32] os: [linux] - '@esbuild/linux-loong64@0.28.1': - resolution: {integrity: sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==} - engines: {node: '>=18'} - cpu: [loong64] - os: [linux] - '@esbuild/linux-loong64@0.28.2': resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==} engines: {node: '>=18'} cpu: [loong64] os: [linux] - '@esbuild/linux-mips64el@0.28.1': - resolution: {integrity: sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==} - engines: {node: '>=18'} - cpu: [mips64el] - os: [linux] - '@esbuild/linux-mips64el@0.28.2': resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==} engines: {node: '>=18'} cpu: [mips64el] os: [linux] - '@esbuild/linux-ppc64@0.28.1': - resolution: {integrity: sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [linux] - '@esbuild/linux-ppc64@0.28.2': resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==} engines: {node: '>=18'} cpu: [ppc64] os: [linux] - '@esbuild/linux-riscv64@0.28.1': - resolution: {integrity: sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==} - engines: {node: '>=18'} - cpu: [riscv64] - os: [linux] - '@esbuild/linux-riscv64@0.28.2': resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==} engines: {node: '>=18'} cpu: [riscv64] os: [linux] - '@esbuild/linux-s390x@0.28.1': - resolution: {integrity: sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==} - engines: {node: '>=18'} - cpu: [s390x] - os: [linux] - '@esbuild/linux-s390x@0.28.2': resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==} engines: {node: '>=18'} cpu: [s390x] os: [linux] - '@esbuild/linux-x64@0.28.1': - resolution: {integrity: sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==} - engines: {node: '>=18'} - cpu: [x64] - os: [linux] - '@esbuild/linux-x64@0.28.2': resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==} engines: {node: '>=18'} cpu: [x64] os: [linux] - '@esbuild/netbsd-arm64@0.28.1': - resolution: {integrity: sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==} - engines: {node: '>=18'} - cpu: [arm64] - os: [netbsd] - '@esbuild/netbsd-arm64@0.28.2': resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==} engines: {node: '>=18'} cpu: [arm64] os: [netbsd] - '@esbuild/netbsd-x64@0.28.1': - resolution: {integrity: sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==} - engines: {node: '>=18'} - cpu: [x64] - os: [netbsd] - '@esbuild/netbsd-x64@0.28.2': resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==} engines: {node: '>=18'} cpu: [x64] os: [netbsd] - '@esbuild/openbsd-arm64@0.28.1': - resolution: {integrity: sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openbsd] - '@esbuild/openbsd-arm64@0.28.2': resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==} engines: {node: '>=18'} cpu: [arm64] os: [openbsd] - '@esbuild/openbsd-x64@0.28.1': - resolution: {integrity: sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==} - engines: {node: '>=18'} - cpu: [x64] - os: [openbsd] - '@esbuild/openbsd-x64@0.28.2': resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==} engines: {node: '>=18'} cpu: [x64] os: [openbsd] - '@esbuild/openharmony-arm64@0.28.1': - resolution: {integrity: sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openharmony] - '@esbuild/openharmony-arm64@0.28.2': resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==} engines: {node: '>=18'} cpu: [arm64] os: [openharmony] - '@esbuild/sunos-x64@0.28.1': - resolution: {integrity: sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [sunos] - '@esbuild/sunos-x64@0.28.2': resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==} engines: {node: '>=18'} cpu: [x64] os: [sunos] - '@esbuild/win32-arm64@0.28.1': - resolution: {integrity: sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==} - engines: {node: '>=18'} - cpu: [arm64] - os: [win32] - '@esbuild/win32-arm64@0.28.2': resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==} engines: {node: '>=18'} cpu: [arm64] os: [win32] - '@esbuild/win32-ia32@0.28.1': - resolution: {integrity: sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==} - engines: {node: '>=18'} - cpu: [ia32] - os: [win32] - '@esbuild/win32-ia32@0.28.2': resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==} engines: {node: '>=18'} cpu: [ia32] os: [win32] - '@esbuild/win32-x64@0.28.1': - resolution: {integrity: sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==} - engines: {node: '>=18'} - cpu: [x64] - os: [win32] - '@esbuild/win32-x64@0.28.2': resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==} engines: {node: '>=18'} @@ -799,144 +672,144 @@ packages: resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==} engines: {node: '>=18'} - '@img/sharp-darwin-arm64@0.35.2': - resolution: {integrity: sha512-eEieHsMksAW4IiO5NzauESRl2D2qz3J/kwUxUrSfV06A93eEaRfMpHXyUb1mAqrR7i8U9A0GRqE9pjn6u1Jjpg==} + '@img/sharp-darwin-arm64@0.35.5': + resolution: {integrity: sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==} engines: {node: '>=20.9.0'} cpu: [arm64] os: [darwin] - '@img/sharp-darwin-x64@0.35.2': - resolution: {integrity: sha512-BaktuGPCeHJMARpodR8jK4uKiZrPAy9WrfQW0sdI37clracq8Bp01AYS3SZgi5FS/y5twa9t4+LIuuxQjqRrWw==} + '@img/sharp-darwin-x64@0.35.5': + resolution: {integrity: sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==} engines: {node: '>=20.9.0'} cpu: [x64] os: [darwin] - '@img/sharp-freebsd-wasm32@0.35.2': - resolution: {integrity: sha512-YoAxdnd8hPUkvLHd3bWY+YA8nw3xM/RyRopYucNsWHVSan8NLVM3X2volsfoRDcXdUJPg6tXahSd7HXPK7lRnw==} + '@img/sharp-freebsd-wasm32@0.35.5': + resolution: {integrity: sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==} engines: {node: '>=20.9.0'} os: [freebsd] - '@img/sharp-libvips-darwin-arm64@1.3.1': - resolution: {integrity: sha512-4V/M3roRMTYjiwZY9IOVQOE8OyeCxFAkYmyZDrZl51uOKjibm3oeEJ4WAmLxutAfzFbC9jqUiPs2gbnGflH+7g==} + '@img/sharp-libvips-darwin-arm64@1.3.4': + resolution: {integrity: sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==} cpu: [arm64] os: [darwin] - '@img/sharp-libvips-darwin-x64@1.3.1': - resolution: {integrity: sha512-c0/DxItpJv2+dGhgycJBBgotdqruGYDvA79drdh0MD1dFpy7JzJ/PlXwi1H4rFf0eTy8tgbI91aHDnZIceY3jQ==} + '@img/sharp-libvips-darwin-x64@1.3.4': + resolution: {integrity: sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==} cpu: [x64] os: [darwin] - '@img/sharp-libvips-linux-arm64@1.3.1': - resolution: {integrity: sha512-JznefmcK9j1JKPz8AkQDh89kjojubyfOasWBPKfzMIhPwsgDy9evpE/naJTXXXmghS1iFwR8u/kTwh/I2/+GCw==} + '@img/sharp-libvips-linux-arm64@1.3.4': + resolution: {integrity: sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==} cpu: [arm64] os: [linux] - '@img/sharp-libvips-linux-arm@1.3.1': - resolution: {integrity: sha512-aGGy9aWzXgHBG7HNyQPWorZthlp7+x6fDRoPAQbGO3ThcttuTyKIx3NuSHb6zb4gBNq6/yNn9f1cy9nFKS/Vmg==} + '@img/sharp-libvips-linux-arm@1.3.4': + resolution: {integrity: sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==} cpu: [arm] os: [linux] - '@img/sharp-libvips-linux-ppc64@1.3.1': - resolution: {integrity: sha512-1EkwGNCZk6iWNCMWqrvdJ+r1j0PT1zIz60CNPhYnJlK/zyeWqlsPZIe+ocBVqPF8k/Ssee/NCk+tE9Ryrko6ng==} + '@img/sharp-libvips-linux-ppc64@1.3.4': + resolution: {integrity: sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==} cpu: [ppc64] os: [linux] - '@img/sharp-libvips-linux-riscv64@1.3.1': - resolution: {integrity: sha512-Ilays+w2bXdnxzxtQdmXR62u8o8GYa3eL4+Gr+1KiE4xperMZUslRaVPJwwPkzlHEjGfXAfRVAa/7CYCtSqsBw==} + '@img/sharp-libvips-linux-riscv64@1.3.4': + resolution: {integrity: sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==} cpu: [riscv64] os: [linux] - '@img/sharp-libvips-linux-s390x@1.3.1': - resolution: {integrity: sha512-VfBwVHQTbRoj4XlpA/KLZ7ltgMpz+4WSejFzQ+GnoImjo1PtEJ59QB2qR1xQEeRPYIkNrPIm2L4cICMvz4C2ew==} + '@img/sharp-libvips-linux-s390x@1.3.4': + resolution: {integrity: sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==} cpu: [s390x] os: [linux] - '@img/sharp-libvips-linux-x64@1.3.1': - resolution: {integrity: sha512-+c8ukgwU62DS54nCAjw7keOfHUkmr0B5QHEdcOqRnodF/MNXJbVI8Eopoj4B/0H8Asr65I+A4Amrn7a85/md6A==} + '@img/sharp-libvips-linux-x64@1.3.4': + resolution: {integrity: sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==} cpu: [x64] os: [linux] - '@img/sharp-libvips-linuxmusl-arm64@1.3.1': - resolution: {integrity: sha512-qlKb/pwbkAi1WMsJrYHk7CuDrd12s27U2QnRhFYUoJNrRCmkosMTttuRFat/DDB3IlDm5qE1TJgZ4JDnHX8Ldw==} + '@img/sharp-libvips-linuxmusl-arm64@1.3.4': + resolution: {integrity: sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==} cpu: [arm64] os: [linux] - '@img/sharp-libvips-linuxmusl-x64@1.3.1': - resolution: {integrity: sha512-yO21HwoUVLN8Qa+/SBjQLMYwBWAVJjeGPNe+hc0OUeMeifEtJqu5a1c4HayE1nNpDih9y3/KkoltfkDodmKAlg==} + '@img/sharp-libvips-linuxmusl-x64@1.3.4': + resolution: {integrity: sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==} cpu: [x64] os: [linux] - '@img/sharp-linux-arm64@0.35.2': - resolution: {integrity: sha512-af12Pnd0ZGu2HfP8NayB0kk6eC/lrfbQE6HlR4jD+34wdJ1Vw9TF6TMn6ZvffT+WgqVsl0hRbmNvz2u/23VmwA==} + '@img/sharp-linux-arm64@0.35.5': + resolution: {integrity: sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==} engines: {node: '>=20.9.0'} cpu: [arm64] os: [linux] - '@img/sharp-linux-arm@0.35.2': - resolution: {integrity: sha512-SE4kzF2mepn6z+6E7L6lsV8FzuLL6IPQdyX8ZiwROAG/G8td+hP/m7FsFPwidtrF19gvajuC9l6TxAVcsA4S7A==} + '@img/sharp-linux-arm@0.35.5': + resolution: {integrity: sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==} engines: {node: '>=20.9.0'} cpu: [arm] os: [linux] - '@img/sharp-linux-ppc64@0.35.2': - resolution: {integrity: sha512-hYSBm7zcNtDCozCxQHYZJiu63b/bXsgRZuOxCIBZsStMM9Vap47iFHdbX4kCvQsblPB/k+clhELpdQJHQLSHvg==} + '@img/sharp-linux-ppc64@0.35.5': + resolution: {integrity: sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==} engines: {node: '>=20.9.0'} cpu: [ppc64] os: [linux] - '@img/sharp-linux-riscv64@0.35.2': - resolution: {integrity: sha512-qQt0Kc13+Hoan/Awq/qMSQw3L+RI1NCRPgD5cUJ/1WSSmIoysLOc72jlRM3E0OHN9Yr313jgeQ2T+zW+F03QFA==} + '@img/sharp-linux-riscv64@0.35.5': + resolution: {integrity: sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==} engines: {node: '>=20.9.0'} cpu: [riscv64] os: [linux] - '@img/sharp-linux-s390x@0.35.2': - resolution: {integrity: sha512-E4fLLfRPzDLlEeDaTzI98OFLcv++WL5ChLLMwPoVd0CIoZQqupBSNbOisPL5am9XsbQ9T84+iiMpUvbFtkunbA==} + '@img/sharp-linux-s390x@0.35.5': + resolution: {integrity: sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==} engines: {node: '>=20.9.0'} cpu: [s390x] os: [linux] - '@img/sharp-linux-x64@0.35.2': - resolution: {integrity: sha512-gi0zFJJRLswfCZmHtJdikXPOc5u7qamSOS3NHedLqLd4W8Q0NqjdBr6TTRIgsfFjqfTsHFgdfvJ9LwqSgcHiAA==} + '@img/sharp-linux-x64@0.35.5': + resolution: {integrity: sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==} engines: {node: '>=20.9.0'} cpu: [x64] os: [linux] - '@img/sharp-linuxmusl-arm64@0.35.2': - resolution: {integrity: sha512-siWbOW1u6HFnFLrp0waKyW7VEf7jYvcDWdrXEFa8AkdAQgEvuu5Fz8/Y70w9EeqAdwDtfU012BhEHHaDqvQNzg==} + '@img/sharp-linuxmusl-arm64@0.35.5': + resolution: {integrity: sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==} engines: {node: '>=20.9.0'} cpu: [arm64] os: [linux] - '@img/sharp-linuxmusl-x64@0.35.2': - resolution: {integrity: sha512-YBqMMcjDi4QGYiSn4vNOYBhmlC4z5AXqkOUUqI2e0AFA4urNv4ESgOgwNl3K+4etQhha0twXlzeF20bbULm9Yg==} + '@img/sharp-linuxmusl-x64@0.35.5': + resolution: {integrity: sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==} engines: {node: '>=20.9.0'} cpu: [x64] os: [linux] - '@img/sharp-wasm32@0.35.2': - resolution: {integrity: sha512-Mrv4JQNYVQ94xH+jzZ9r+gowleN8mv2FTgKT+PI6bx5C0G8TdNYndu161pg2i7uoBwxy2ImPMHrJOM2LZef7Bw==} + '@img/sharp-wasm32@0.35.5': + resolution: {integrity: sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==} engines: {node: '>=20.9.0'} - '@img/sharp-webcontainers-wasm32@0.35.2': - resolution: {integrity: sha512-QNV27pxs9wpApEiCfvHM1RDoP1w1+2KrUWWDPEhEwg+latvOrfuhWrHWZKwdSFwU6jh3myjw/yOCRsUIuOft3g==} + '@img/sharp-webcontainers-wasm32@0.35.5': + resolution: {integrity: sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==} engines: {node: '>=20.9.0'} cpu: [wasm32] - '@img/sharp-win32-arm64@0.35.2': - resolution: {integrity: sha512-BiVRYc/t6/Vl3e1hBx0hugG4oN9Pydf4fgMSpxTQJmwGUg/YoXTWHiFeRymHfCZzifxu4F4rpk/I67D0LQ20wQ==} + '@img/sharp-win32-arm64@0.35.5': + resolution: {integrity: sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==} engines: {node: '>=20.9.0'} cpu: [arm64] os: [win32] - '@img/sharp-win32-ia32@0.35.2': - resolution: {integrity: sha512-YYEhx9PImCC7T0tI8JDMi4DB9LwLCXCU5OWNYEXAxh5Q1ShKkyC6byxzoBJ3gEFDnH2lQckWuDe70G7mB2XJog==} + '@img/sharp-win32-ia32@0.35.5': + resolution: {integrity: sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==} engines: {node: ^20.9.0} cpu: [ia32] os: [win32] - '@img/sharp-win32-x64@0.35.2': - resolution: {integrity: sha512-imoOyBcoM/iiUr4J6VPpCNjPnjvP/Gks95898yB8YqoGGYmHYbOyCuNv9FMhFgtaiHFGbHW8bxKqRV6VjtXThQ==} + '@img/sharp-win32-x64@0.35.5': + resolution: {integrity: sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==} engines: {node: '>=20.9.0'} cpu: [x64] os: [win32] @@ -1795,11 +1668,6 @@ packages: resolution: {integrity: sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==} engines: {node: '>= 0.4'} - esbuild@0.28.1: - resolution: {integrity: sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==} - engines: {node: '>=18'} - hasBin: true - esbuild@0.28.2: resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==} engines: {node: '>=18'} @@ -2202,9 +2070,23 @@ packages: resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==} engines: {node: '>=10'} - miniflare@5.20260811.1-alpha: - resolution: {integrity: sha512-DtOG0BeanIxs2sH0smFvExZD89cBQwGckbHiFkRJrrNAUu3NGClZkUxqu+zy7HYfKBAgq935EMY49vIPm3JVdA==} - engines: {node: '>=22.0.0'} + miniflare@5.20261110.0-beta: + resolution: {integrity: sha512-UiJRL6D4pNkHxgZ3QXDCaz/N27FFuuHRRgOmD/SucEZIwDOfWwX7s/n8ZrFemFlURRfnQpBfAdWy8ixsW0yJWA==} + engines: {node: '>=22.12.0'} + peerDependencies: + kerberos: ^2.0.0 + peerDependenciesMeta: + kerberos: + optional: true + + miniflare@5.20261113.0-beta: + resolution: {integrity: sha512-Kg+SarKNSn0lkhR88OHI29rIXJvmKs/c9hmxFXvEqK1J9aHu+AFl6CdaBq/k3iOTyMbm2p4h1HGLs7vXaLYMWA==} + engines: {node: '>=22.12.0'} + peerDependencies: + kerberos: ^2.0.0 + peerDependenciesMeta: + kerberos: + optional: true minimatch@10.2.6: resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} @@ -2486,9 +2368,14 @@ packages: setprototypeof@1.2.0: resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} - sharp@0.35.2: - resolution: {integrity: sha512-FVtFjtBCMiJS6yb5CX7Sop45WFMpeGw6oRKuJnXYgf/f1ms/D7LE/ZUSNxnW7rZ/dbslQWYkoqFHGPaDBtaK4w==} + sharp@0.35.5: + resolution: {integrity: sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==} engines: {node: '>=20.9.0'} + peerDependencies: + '@types/node': '*' + peerDependenciesMeta: + '@types/node': + optional: true shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} @@ -2657,6 +2544,10 @@ packages: resolution: {integrity: sha512-IDxfleLmmbSskfWSUATiN1nfn2rDuvnMOqb5CWR92iIfojA0Ud+ulOAAEQ57LPr9rWmsreUyf5lwyao+7GNNVw==} engines: {node: '>=20.18.1'} + undici@7.30.1: + resolution: {integrity: sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==} + engines: {node: '>=20.18.1'} + unenv@2.0.0-rc.24: resolution: {integrity: sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==} @@ -2789,17 +2680,22 @@ packages: engines: {node: '>=8'} hasBin: true - workerd@1.20260811.1: - resolution: {integrity: sha512-kh+FFm55JQ4ssxhHZV9VPdMQq3D1nHxNJgwxMtWGD4dGppJvLySdguTRDKgeNTvgq6heSz+6TTXyPSDGj8Yllw==} + workerd@1.20261110.1: + resolution: {integrity: sha512-GKdtki7t19f16vegol8Iw5Dh0mnjHLuwLx8rlhTPvyRBEXM0Osl9eYexWAW8uZD7OMw4WKNq9yvENg5kPDUJ9w==} engines: {node: '>=16'} hasBin: true - wrangler@4.123.0: - resolution: {integrity: sha512-VXo2I1oa0x9aGAKIFPRSQPqTh0RBY5Ktl44YOhNmsJQFUdJKDA2vVTU6Xj+FC2koll6orJqWZN8jbXVIk9O67Q==} - engines: {node: '>=22.0.0'} + workerd@1.20261113.1: + resolution: {integrity: sha512-FJP8Bm1jiiJTE2xpSIhT9JkMaKzU54y9Jk0q7n3BLWyWdUNsn35QGCqARcqXGwO3FGkvahhYqUEG2bJzlgcfhw==} + engines: {node: '>=16'} + hasBin: true + + wrangler@4.162.0: + resolution: {integrity: sha512-jUnlzHKlWdW4MFXPgeYbe0+c4oTy/AAZfL/IUz921+dZBY5nJ48xjpvwff5djUR1MXoJRevzntAP/U97TUhPEw==} + engines: {node: '>=22.12.0'} hasBin: true peerDependencies: - '@cloudflare/workers-types': ^5.20260811.1 + '@cloudflare/workers-types': ^5.20261113.1 peerDependenciesMeta: '@cloudflare/workers-types': optional: true @@ -2835,6 +2731,18 @@ packages: utf-8-validate: optional: true + ws@8.22.0: + resolution: {integrity: sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + xml-naming@0.3.0: resolution: {integrity: sha512-ghig2TBE/H11aOVgmahA3MhimvkBr6JIYknH/Dhdk10nXwdbIqBJsbfMxpvFPG8bAw77gN29aQWvKpmVoPlvPQ==} engines: {node: '>=16.0.0'} @@ -3266,38 +3174,55 @@ snapshots: capnweb: 0.8.0 hono: 4.13.2 - '@cloudflare/unenv-preset@2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260811.1)': + '@cloudflare/unenv-preset@2.16.2(unenv@2.0.0-rc.24)(workerd@1.20261113.1)': dependencies: unenv: 2.0.0-rc.24 optionalDependencies: - workerd: 1.20260811.1 + workerd: 1.20261113.1 - '@cloudflare/vite-plugin@1.52.1(vite@8.2.1(@types/node@22.20.1)(esbuild@0.28.2)(yaml@2.9.0))(wrangler@4.123.0(@cloudflare/workers-types@5.20260814.1))': + '@cloudflare/vite-plugin@1.69.1(@types/node@22.20.1)(vite@8.2.1(@types/node@22.20.1)(esbuild@0.28.2)(yaml@2.9.0))(workerd@1.20261113.1)(wrangler@4.162.0(@cloudflare/workers-types@5.20260814.1)(@types/node@22.20.1))': dependencies: - '@cloudflare/unenv-preset': 2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260811.1) - miniflare: 5.20260811.1-alpha + '@cloudflare/unenv-preset': 2.16.2(unenv@2.0.0-rc.24)(workerd@1.20261113.1) + miniflare: 5.20261110.0-beta(@types/node@22.20.1) unenv: 2.0.0-rc.24 vite: 8.2.1(@types/node@22.20.1)(esbuild@0.28.2)(yaml@2.9.0) - workerd: 1.20260811.1 - wrangler: 4.123.0(@cloudflare/workers-types@5.20260814.1) - ws: 8.21.0 + wrangler: 4.162.0(@cloudflare/workers-types@5.20260814.1)(@types/node@22.20.1) + ws: 8.22.0 transitivePeerDependencies: + - '@types/node' - bufferutil + - kerberos - utf-8-validate + - workerd + + '@cloudflare/workerd-darwin-64@1.20261110.1': + optional: true + + '@cloudflare/workerd-darwin-64@1.20261113.1': + optional: true + + '@cloudflare/workerd-darwin-arm64@1.20261110.1': + optional: true + + '@cloudflare/workerd-darwin-arm64@1.20261113.1': + optional: true - '@cloudflare/workerd-darwin-64@1.20260811.1': + '@cloudflare/workerd-linux-64@1.20261110.1': optional: true - '@cloudflare/workerd-darwin-arm64@1.20260811.1': + '@cloudflare/workerd-linux-64@1.20261113.1': optional: true - '@cloudflare/workerd-linux-64@1.20260811.1': + '@cloudflare/workerd-linux-arm64@1.20261110.1': optional: true - '@cloudflare/workerd-linux-arm64@1.20260811.1': + '@cloudflare/workerd-linux-arm64@1.20261113.1': optional: true - '@cloudflare/workerd-windows-64@1.20260811.1': + '@cloudflare/workerd-windows-64@1.20261110.1': + optional: true + + '@cloudflare/workerd-windows-64@1.20261113.1': optional: true '@cloudflare/workers-types@5.20260814.1': {} @@ -3306,9 +3231,9 @@ snapshots: dependencies: '@jridgewell/trace-mapping': 0.3.9 - '@earendil-works/pi-agent-core@1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(undici@7.29.0)(ws@8.21.3)(zod@4.4.3)': + '@earendil-works/pi-agent-core@1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(undici@7.30.1)(ws@8.22.0)(zod@4.4.3)': dependencies: - '@earendil-works/pi-ai': 1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(undici@7.29.0)(ws@8.21.3)(zod@4.4.3) + '@earendil-works/pi-ai': 1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(undici@7.30.1)(ws@8.22.0)(zod@4.4.3) typebox: 1.3.27 transitivePeerDependencies: - '@aws-sdk/credential-provider-node' @@ -3323,7 +3248,7 @@ snapshots: - ws - zod - '@earendil-works/pi-ai@1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(undici@7.29.0)(ws@8.21.3)(zod@4.4.3)': + '@earendil-works/pi-ai@1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(undici@7.30.1)(ws@8.22.0)(zod@4.4.3)': dependencies: '@anthropic-ai/sdk': 0.129.0(zod@4.4.3) '@aws-sdk/client-bedrock-runtime': 3.1127.0 @@ -3332,7 +3257,7 @@ snapshots: '@smithy/node-http-handler': 4.12.1 http-proxy-agent: 9.1.0 https-proxy-agent: 9.1.0 - openai: 7.19.0(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)(undici@7.29.0)(ws@8.21.3)(zod@4.4.3) + openai: 7.19.0(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)(undici@7.30.1)(ws@8.22.0)(zod@4.4.3) partial-json: 0.1.7 typebox: 1.3.27 transitivePeerDependencies: @@ -3355,166 +3280,88 @@ snapshots: tslib: 2.8.1 optional: true - '@esbuild/aix-ppc64@0.28.1': - optional: true - '@esbuild/aix-ppc64@0.28.2': optional: true - '@esbuild/android-arm64@0.28.1': - optional: true - '@esbuild/android-arm64@0.28.2': optional: true - '@esbuild/android-arm@0.28.1': - optional: true - '@esbuild/android-arm@0.28.2': optional: true - '@esbuild/android-x64@0.28.1': - optional: true - '@esbuild/android-x64@0.28.2': optional: true - '@esbuild/darwin-arm64@0.28.1': - optional: true - '@esbuild/darwin-arm64@0.28.2': optional: true - '@esbuild/darwin-x64@0.28.1': - optional: true - '@esbuild/darwin-x64@0.28.2': optional: true - '@esbuild/freebsd-arm64@0.28.1': - optional: true - '@esbuild/freebsd-arm64@0.28.2': optional: true - '@esbuild/freebsd-x64@0.28.1': - optional: true - '@esbuild/freebsd-x64@0.28.2': optional: true - '@esbuild/linux-arm64@0.28.1': - optional: true - '@esbuild/linux-arm64@0.28.2': optional: true - '@esbuild/linux-arm@0.28.1': - optional: true - '@esbuild/linux-arm@0.28.2': optional: true - '@esbuild/linux-ia32@0.28.1': - optional: true - '@esbuild/linux-ia32@0.28.2': optional: true - '@esbuild/linux-loong64@0.28.1': - optional: true - '@esbuild/linux-loong64@0.28.2': optional: true - '@esbuild/linux-mips64el@0.28.1': - optional: true - '@esbuild/linux-mips64el@0.28.2': optional: true - '@esbuild/linux-ppc64@0.28.1': - optional: true - '@esbuild/linux-ppc64@0.28.2': optional: true - '@esbuild/linux-riscv64@0.28.1': - optional: true - '@esbuild/linux-riscv64@0.28.2': optional: true - '@esbuild/linux-s390x@0.28.1': - optional: true - '@esbuild/linux-s390x@0.28.2': optional: true - '@esbuild/linux-x64@0.28.1': - optional: true - '@esbuild/linux-x64@0.28.2': optional: true - '@esbuild/netbsd-arm64@0.28.1': - optional: true - '@esbuild/netbsd-arm64@0.28.2': optional: true - '@esbuild/netbsd-x64@0.28.1': - optional: true - '@esbuild/netbsd-x64@0.28.2': optional: true - '@esbuild/openbsd-arm64@0.28.1': - optional: true - '@esbuild/openbsd-arm64@0.28.2': optional: true - '@esbuild/openbsd-x64@0.28.1': - optional: true - '@esbuild/openbsd-x64@0.28.2': optional: true - '@esbuild/openharmony-arm64@0.28.1': - optional: true - '@esbuild/openharmony-arm64@0.28.2': optional: true - '@esbuild/sunos-x64@0.28.1': - optional: true - '@esbuild/sunos-x64@0.28.2': optional: true - '@esbuild/win32-arm64@0.28.1': - optional: true - '@esbuild/win32-arm64@0.28.2': optional: true - '@esbuild/win32-ia32@0.28.1': - optional: true - '@esbuild/win32-ia32@0.28.2': optional: true - '@esbuild/win32-x64@0.28.1': - optional: true - '@esbuild/win32-x64@0.28.2': optional: true - '@flue/cli@2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@babel/core@8.0.1)(@babel/runtime@7.29.7)(@cloudflare/codemode@0.5.1(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(zod@4.4.3))(@cloudflare/workers-types@5.20260814.1)(@modelcontextprotocol/client@2.0.0)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@modelcontextprotocol/server@2.0.0)(@smithy/signature-v4@5.7.4)(@types/node@22.20.1)(esbuild@0.28.2)(hono@4.12.32)(just-bash@3.3.0)(react@19.2.8)(rolldown@1.2.4)(typescript@7.0.2)(undici@7.29.0)(ws@8.21.3)(yaml@2.9.0)(zod@4.4.3)': + '@flue/cli@2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@babel/core@8.0.1)(@babel/runtime@7.29.7)(@cloudflare/codemode@0.5.1(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(zod@4.4.3))(@cloudflare/workers-types@5.20260814.1)(@modelcontextprotocol/client@2.0.0)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@modelcontextprotocol/server@2.0.0)(@smithy/signature-v4@5.7.4)(@types/node@22.20.1)(esbuild@0.28.2)(hono@4.12.32)(just-bash@3.3.0)(react@19.2.8)(rolldown@1.2.4)(typescript@7.0.2)(undici@7.30.1)(ws@8.22.0)(yaml@2.9.0)(zod@4.4.3)': dependencies: - '@flue/runtime': 2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(typescript@7.0.2)(undici@7.29.0)(ws@8.21.3)(zod@4.4.3) - '@flue/vite': 2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@babel/core@8.0.1)(@babel/runtime@7.29.7)(@cloudflare/codemode@0.5.1(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(zod@4.4.3))(@cloudflare/workers-types@5.20260814.1)(@modelcontextprotocol/client@2.0.0)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@modelcontextprotocol/server@2.0.0)(@smithy/signature-v4@5.7.4)(hono@4.12.32)(just-bash@3.3.0)(react@19.2.8)(rolldown@1.2.4)(typescript@7.0.2)(undici@7.29.0)(vite@8.2.1(@types/node@22.20.1)(esbuild@0.28.2)(yaml@2.9.0))(ws@8.21.3)(zod@4.4.3) + '@flue/runtime': 2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(typescript@7.0.2)(undici@7.30.1)(ws@8.22.0)(zod@4.4.3) + '@flue/vite': 2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@babel/core@8.0.1)(@babel/runtime@7.29.7)(@cloudflare/codemode@0.5.1(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(zod@4.4.3))(@cloudflare/workers-types@5.20260814.1)(@modelcontextprotocol/client@2.0.0)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@modelcontextprotocol/server@2.0.0)(@smithy/signature-v4@5.7.4)(hono@4.12.32)(just-bash@3.3.0)(react@19.2.8)(rolldown@1.2.4)(typescript@7.0.2)(undici@7.30.1)(vite@8.2.1(@types/node@22.20.1)(esbuild@0.28.2)(yaml@2.9.0))(ws@8.22.0)(zod@4.4.3) '@vercel/detect-agent': 1.2.5 cac: 7.0.0 minisearch: 7.2.0 @@ -3565,16 +3412,16 @@ snapshots: - yaml - zod - '@flue/github@2.3.0(@flue/runtime@2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(typescript@7.0.2)(undici@7.29.0)(ws@8.21.3)(zod@4.4.3))': + '@flue/github@2.3.0(@flue/runtime@2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(typescript@7.0.2)(undici@7.30.1)(ws@8.22.0)(zod@4.4.3))': dependencies: - '@flue/runtime': 2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(typescript@7.0.2)(undici@7.29.0)(ws@8.21.3)(zod@4.4.3) + '@flue/runtime': 2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(typescript@7.0.2)(undici@7.30.1)(ws@8.22.0)(zod@4.4.3) '@octokit/webhooks-types': 7.6.1 hono: 4.12.32 - '@flue/runtime@2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(typescript@7.0.2)(undici@7.29.0)(ws@8.21.3)(zod@4.4.3)': + '@flue/runtime@2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(typescript@7.0.2)(undici@7.30.1)(ws@8.22.0)(zod@4.4.3)': dependencies: - '@earendil-works/pi-agent-core': 1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(undici@7.29.0)(ws@8.21.3)(zod@4.4.3) - '@earendil-works/pi-ai': 1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(undici@7.29.0)(ws@8.21.3)(zod@4.4.3) + '@earendil-works/pi-agent-core': 1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(undici@7.30.1)(ws@8.22.0)(zod@4.4.3) + '@earendil-works/pi-ai': 1.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(undici@7.30.1)(ws@8.22.0)(zod@4.4.3) '@hono/node-server': 2.1.1(hono@4.12.32) '@modelcontextprotocol/client': 2.0.0 '@valibot/to-json-schema': 1.7.1(valibot@1.4.2(typescript@7.0.2)) @@ -3596,9 +3443,9 @@ snapshots: - ws - zod - '@flue/vite@2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@babel/core@8.0.1)(@babel/runtime@7.29.7)(@cloudflare/codemode@0.5.1(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(zod@4.4.3))(@cloudflare/workers-types@5.20260814.1)(@modelcontextprotocol/client@2.0.0)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@modelcontextprotocol/server@2.0.0)(@smithy/signature-v4@5.7.4)(hono@4.12.32)(just-bash@3.3.0)(react@19.2.8)(rolldown@1.2.4)(typescript@7.0.2)(undici@7.29.0)(vite@8.2.1(@types/node@22.20.1)(esbuild@0.28.2)(yaml@2.9.0))(ws@8.21.3)(zod@4.4.3)': + '@flue/vite@2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@babel/core@8.0.1)(@babel/runtime@7.29.7)(@cloudflare/codemode@0.5.1(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(zod@4.4.3))(@cloudflare/workers-types@5.20260814.1)(@modelcontextprotocol/client@2.0.0)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@modelcontextprotocol/server@2.0.0)(@smithy/signature-v4@5.7.4)(hono@4.12.32)(just-bash@3.3.0)(react@19.2.8)(rolldown@1.2.4)(typescript@7.0.2)(undici@7.30.1)(vite@8.2.1(@types/node@22.20.1)(esbuild@0.28.2)(yaml@2.9.0))(ws@8.22.0)(zod@4.4.3)': dependencies: - '@flue/runtime': 2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(typescript@7.0.2)(undici@7.29.0)(ws@8.21.3)(zod@4.4.3) + '@flue/runtime': 2.3.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@smithy/signature-v4@5.7.4)(typescript@7.0.2)(undici@7.30.1)(ws@8.22.0)(zod@4.4.3) '@hono/node-server': 2.1.1(hono@4.12.32) agents: 0.20.1(@babel/core@8.0.1)(@babel/runtime@7.29.7)(@cloudflare/codemode@0.5.1(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(zod@4.4.3))(@cloudflare/workers-types@5.20260814.1)(@modelcontextprotocol/client@2.0.0)(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(@modelcontextprotocol/server@2.0.0)(just-bash@3.3.0)(react@19.2.8)(rolldown@1.2.4)(vite@8.2.1(@types/node@22.20.1)(esbuild@0.28.2)(yaml@2.9.0))(zod@4.4.3) magic-string: 1.2.0 @@ -3655,108 +3502,108 @@ snapshots: '@img/colour@1.1.0': {} - '@img/sharp-darwin-arm64@0.35.2': + '@img/sharp-darwin-arm64@0.35.5': optionalDependencies: - '@img/sharp-libvips-darwin-arm64': 1.3.1 + '@img/sharp-libvips-darwin-arm64': 1.3.4 optional: true - '@img/sharp-darwin-x64@0.35.2': + '@img/sharp-darwin-x64@0.35.5': optionalDependencies: - '@img/sharp-libvips-darwin-x64': 1.3.1 + '@img/sharp-libvips-darwin-x64': 1.3.4 optional: true - '@img/sharp-freebsd-wasm32@0.35.2': + '@img/sharp-freebsd-wasm32@0.35.5': dependencies: - '@img/sharp-wasm32': 0.35.2 + '@img/sharp-wasm32': 0.35.5 optional: true - '@img/sharp-libvips-darwin-arm64@1.3.1': + '@img/sharp-libvips-darwin-arm64@1.3.4': optional: true - '@img/sharp-libvips-darwin-x64@1.3.1': + '@img/sharp-libvips-darwin-x64@1.3.4': optional: true - '@img/sharp-libvips-linux-arm64@1.3.1': + '@img/sharp-libvips-linux-arm64@1.3.4': optional: true - '@img/sharp-libvips-linux-arm@1.3.1': + '@img/sharp-libvips-linux-arm@1.3.4': optional: true - '@img/sharp-libvips-linux-ppc64@1.3.1': + '@img/sharp-libvips-linux-ppc64@1.3.4': optional: true - '@img/sharp-libvips-linux-riscv64@1.3.1': + '@img/sharp-libvips-linux-riscv64@1.3.4': optional: true - '@img/sharp-libvips-linux-s390x@1.3.1': + '@img/sharp-libvips-linux-s390x@1.3.4': optional: true - '@img/sharp-libvips-linux-x64@1.3.1': + '@img/sharp-libvips-linux-x64@1.3.4': optional: true - '@img/sharp-libvips-linuxmusl-arm64@1.3.1': + '@img/sharp-libvips-linuxmusl-arm64@1.3.4': optional: true - '@img/sharp-libvips-linuxmusl-x64@1.3.1': + '@img/sharp-libvips-linuxmusl-x64@1.3.4': optional: true - '@img/sharp-linux-arm64@0.35.2': + '@img/sharp-linux-arm64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-arm64': 1.3.1 + '@img/sharp-libvips-linux-arm64': 1.3.4 optional: true - '@img/sharp-linux-arm@0.35.2': + '@img/sharp-linux-arm@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-arm': 1.3.1 + '@img/sharp-libvips-linux-arm': 1.3.4 optional: true - '@img/sharp-linux-ppc64@0.35.2': + '@img/sharp-linux-ppc64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-ppc64': 1.3.1 + '@img/sharp-libvips-linux-ppc64': 1.3.4 optional: true - '@img/sharp-linux-riscv64@0.35.2': + '@img/sharp-linux-riscv64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-riscv64': 1.3.1 + '@img/sharp-libvips-linux-riscv64': 1.3.4 optional: true - '@img/sharp-linux-s390x@0.35.2': + '@img/sharp-linux-s390x@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-s390x': 1.3.1 + '@img/sharp-libvips-linux-s390x': 1.3.4 optional: true - '@img/sharp-linux-x64@0.35.2': + '@img/sharp-linux-x64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-x64': 1.3.1 + '@img/sharp-libvips-linux-x64': 1.3.4 optional: true - '@img/sharp-linuxmusl-arm64@0.35.2': + '@img/sharp-linuxmusl-arm64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linuxmusl-arm64': 1.3.1 + '@img/sharp-libvips-linuxmusl-arm64': 1.3.4 optional: true - '@img/sharp-linuxmusl-x64@0.35.2': + '@img/sharp-linuxmusl-x64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linuxmusl-x64': 1.3.1 + '@img/sharp-libvips-linuxmusl-x64': 1.3.4 optional: true - '@img/sharp-wasm32@0.35.2': + '@img/sharp-wasm32@0.35.5': dependencies: '@emnapi/runtime': 1.11.3 optional: true - '@img/sharp-webcontainers-wasm32@0.35.2': + '@img/sharp-webcontainers-wasm32@0.35.5': dependencies: - '@img/sharp-wasm32': 0.35.2 + '@img/sharp-wasm32': 0.35.5 optional: true - '@img/sharp-win32-arm64@0.35.2': + '@img/sharp-win32-arm64@0.35.5': optional: true - '@img/sharp-win32-ia32@0.35.2': + '@img/sharp-win32-ia32@0.35.5': optional: true - '@img/sharp-win32-x64@0.35.2': + '@img/sharp-win32-x64@0.35.5': optional: true '@jitl/quickjs-ffi-types@0.32.0': {} @@ -4517,35 +4364,6 @@ snapshots: dependencies: es-errors: 1.3.0 - esbuild@0.28.1: - optionalDependencies: - '@esbuild/aix-ppc64': 0.28.1 - '@esbuild/android-arm': 0.28.1 - '@esbuild/android-arm64': 0.28.1 - '@esbuild/android-x64': 0.28.1 - '@esbuild/darwin-arm64': 0.28.1 - '@esbuild/darwin-x64': 0.28.1 - '@esbuild/freebsd-arm64': 0.28.1 - '@esbuild/freebsd-x64': 0.28.1 - '@esbuild/linux-arm': 0.28.1 - '@esbuild/linux-arm64': 0.28.1 - '@esbuild/linux-ia32': 0.28.1 - '@esbuild/linux-loong64': 0.28.1 - '@esbuild/linux-mips64el': 0.28.1 - '@esbuild/linux-ppc64': 0.28.1 - '@esbuild/linux-riscv64': 0.28.1 - '@esbuild/linux-s390x': 0.28.1 - '@esbuild/linux-x64': 0.28.1 - '@esbuild/netbsd-arm64': 0.28.1 - '@esbuild/netbsd-x64': 0.28.1 - '@esbuild/openbsd-arm64': 0.28.1 - '@esbuild/openbsd-x64': 0.28.1 - '@esbuild/openharmony-arm64': 0.28.1 - '@esbuild/sunos-x64': 0.28.1 - '@esbuild/win32-arm64': 0.28.1 - '@esbuild/win32-ia32': 0.28.1 - '@esbuild/win32-x64': 0.28.1 - esbuild@0.28.2: optionalDependencies: '@esbuild/aix-ppc64': 0.28.2 @@ -4991,15 +4809,29 @@ snapshots: mimic-response@3.1.0: optional: true - miniflare@5.20260811.1-alpha: + miniflare@5.20261110.0-beta(@types/node@22.20.1): dependencies: '@cspotcode/source-map-support': 0.8.1 - sharp: 0.35.2 - undici: 7.29.0 - workerd: 1.20260811.1 + sharp: 0.35.5(@types/node@22.20.1) + undici: 7.30.1 + workerd: 1.20261110.1 ws: 8.21.0 youch: 4.1.0-beta.10 transitivePeerDependencies: + - '@types/node' + - bufferutil + - utf-8-validate + + miniflare@5.20261113.0-beta(@types/node@22.20.1): + dependencies: + '@cspotcode/source-map-support': 0.8.1 + sharp: 0.35.5(@types/node@22.20.1) + undici: 7.30.1 + workerd: 1.20261113.1 + ws: 8.21.0 + youch: 4.1.0-beta.10 + transitivePeerDependencies: + - '@types/node' - bufferutil - utf-8-validate @@ -5083,12 +4915,12 @@ snapshots: dependencies: wrappy: 1.0.2 - openai@7.19.0(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)(undici@7.29.0)(ws@8.21.3)(zod@4.4.3): + openai@7.19.0(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)(undici@7.30.1)(ws@8.22.0)(zod@4.4.3): optionalDependencies: '@aws-sdk/credential-provider-node': 3.972.84 '@smithy/signature-v4': 5.7.4 - undici: 7.29.0 - ws: 8.21.3 + undici: 7.30.1 + ws: 8.22.0 zod: 4.4.3 p-retry@4.6.2: @@ -5299,37 +5131,38 @@ snapshots: setprototypeof@1.2.0: {} - sharp@0.35.2: + sharp@0.35.5(@types/node@22.20.1): dependencies: '@img/colour': 1.1.0 detect-libc: 2.1.2 semver: 7.8.5 optionalDependencies: - '@img/sharp-darwin-arm64': 0.35.2 - '@img/sharp-darwin-x64': 0.35.2 - '@img/sharp-freebsd-wasm32': 0.35.2 - '@img/sharp-libvips-darwin-arm64': 1.3.1 - '@img/sharp-libvips-darwin-x64': 1.3.1 - '@img/sharp-libvips-linux-arm': 1.3.1 - '@img/sharp-libvips-linux-arm64': 1.3.1 - '@img/sharp-libvips-linux-ppc64': 1.3.1 - '@img/sharp-libvips-linux-riscv64': 1.3.1 - '@img/sharp-libvips-linux-s390x': 1.3.1 - '@img/sharp-libvips-linux-x64': 1.3.1 - '@img/sharp-libvips-linuxmusl-arm64': 1.3.1 - '@img/sharp-libvips-linuxmusl-x64': 1.3.1 - '@img/sharp-linux-arm': 0.35.2 - '@img/sharp-linux-arm64': 0.35.2 - '@img/sharp-linux-ppc64': 0.35.2 - '@img/sharp-linux-riscv64': 0.35.2 - '@img/sharp-linux-s390x': 0.35.2 - '@img/sharp-linux-x64': 0.35.2 - '@img/sharp-linuxmusl-arm64': 0.35.2 - '@img/sharp-linuxmusl-x64': 0.35.2 - '@img/sharp-webcontainers-wasm32': 0.35.2 - '@img/sharp-win32-arm64': 0.35.2 - '@img/sharp-win32-ia32': 0.35.2 - '@img/sharp-win32-x64': 0.35.2 + '@img/sharp-darwin-arm64': 0.35.5 + '@img/sharp-darwin-x64': 0.35.5 + '@img/sharp-freebsd-wasm32': 0.35.5 + '@img/sharp-libvips-darwin-arm64': 1.3.4 + '@img/sharp-libvips-darwin-x64': 1.3.4 + '@img/sharp-libvips-linux-arm': 1.3.4 + '@img/sharp-libvips-linux-arm64': 1.3.4 + '@img/sharp-libvips-linux-ppc64': 1.3.4 + '@img/sharp-libvips-linux-riscv64': 1.3.4 + '@img/sharp-libvips-linux-s390x': 1.3.4 + '@img/sharp-libvips-linux-x64': 1.3.4 + '@img/sharp-libvips-linuxmusl-arm64': 1.3.4 + '@img/sharp-libvips-linuxmusl-x64': 1.3.4 + '@img/sharp-linux-arm': 0.35.5 + '@img/sharp-linux-arm64': 0.35.5 + '@img/sharp-linux-ppc64': 0.35.5 + '@img/sharp-linux-riscv64': 0.35.5 + '@img/sharp-linux-s390x': 0.35.5 + '@img/sharp-linux-x64': 0.35.5 + '@img/sharp-linuxmusl-arm64': 0.35.5 + '@img/sharp-linuxmusl-x64': 0.35.5 + '@img/sharp-webcontainers-wasm32': 0.35.5 + '@img/sharp-win32-arm64': 0.35.5 + '@img/sharp-win32-ia32': 0.35.5 + '@img/sharp-win32-x64': 0.35.5 + '@types/node': 22.20.1 shebang-command@2.0.0: dependencies: @@ -5523,6 +5356,8 @@ snapshots: undici@7.29.0: {} + undici@7.30.1: {} + unenv@2.0.0-rc.24: dependencies: pathe: 2.0.3 @@ -5600,29 +5435,40 @@ snapshots: siginfo: 2.0.0 stackback: 0.0.2 - workerd@1.20260811.1: + workerd@1.20261110.1: optionalDependencies: - '@cloudflare/workerd-darwin-64': 1.20260811.1 - '@cloudflare/workerd-darwin-arm64': 1.20260811.1 - '@cloudflare/workerd-linux-64': 1.20260811.1 - '@cloudflare/workerd-linux-arm64': 1.20260811.1 - '@cloudflare/workerd-windows-64': 1.20260811.1 + '@cloudflare/workerd-darwin-64': 1.20261110.1 + '@cloudflare/workerd-darwin-arm64': 1.20261110.1 + '@cloudflare/workerd-linux-64': 1.20261110.1 + '@cloudflare/workerd-linux-arm64': 1.20261110.1 + '@cloudflare/workerd-windows-64': 1.20261110.1 - wrangler@4.123.0(@cloudflare/workers-types@5.20260814.1): + workerd@1.20261113.1: + optionalDependencies: + '@cloudflare/workerd-darwin-64': 1.20261113.1 + '@cloudflare/workerd-darwin-arm64': 1.20261113.1 + '@cloudflare/workerd-linux-64': 1.20261113.1 + '@cloudflare/workerd-linux-arm64': 1.20261113.1 + '@cloudflare/workerd-windows-64': 1.20261113.1 + + wrangler@4.162.0(@cloudflare/workers-types@5.20260814.1)(@types/node@22.20.1): dependencies: '@cloudflare/kv-asset-handler': 0.5.0 - '@cloudflare/unenv-preset': 2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260811.1) + '@cloudflare/unenv-preset': 2.16.2(unenv@2.0.0-rc.24)(workerd@1.20261113.1) + '@cspotcode/source-map-support': 0.8.1 blake3-wasm: 2.1.5 - esbuild: 0.28.1 - miniflare: 5.20260811.1-alpha + esbuild: 0.28.2 + miniflare: 5.20261113.0-beta(@types/node@22.20.1) path-to-regexp: 6.3.0 unenv: 2.0.0-rc.24 - workerd: 1.20260811.1 + workerd: 1.20261113.1 optionalDependencies: '@cloudflare/workers-types': 5.20260814.1 fsevents: 2.3.3 transitivePeerDependencies: + - '@types/node' - bufferutil + - kerberos - utf-8-validate wrap-ansi@9.0.2: @@ -5637,6 +5483,8 @@ snapshots: ws@8.21.3: {} + ws@8.22.0: {} + xml-naming@0.3.0: {} y18n@5.0.8: {} diff --git a/scripts/smoke.mjs b/scripts/smoke.mjs new file mode 100644 index 0000000..9d6e44a --- /dev/null +++ b/scripts/smoke.mjs @@ -0,0 +1,105 @@ +import { spawn } from 'node:child_process'; +import { createHmac } from 'node:crypto'; +import { readFile, unlink, writeFile } from 'node:fs/promises'; +import { setTimeout as delay } from 'node:timers/promises'; + +// Exercise the built Worker without starting containers or using credentials. +const configPath = 'dist/oxc_factory/wrangler.smoke.json'; +const config = JSON.parse( + await readFile('dist/oxc_factory/wrangler.json', 'utf8'), +); +config.containers = []; +await writeFile(configPath, JSON.stringify(config)); +const secret = 'factory-local-smoke-test'; +const child = spawn( + process.execPath, + [ + 'node_modules/wrangler/bin/wrangler.js', + 'dev', + '--local', + '--config', + configPath, + '--port', + '8898', + '--inspector-port', + '0', + ], + { + env: { + ...process.env, + GITHUB_APP_ID: 'local-test', + GITHUB_APP_PRIVATE_KEY: 'local-test', + GITHUB_WEBHOOK_SECRET: secret, + FACTORY_AI_GATEWAY_ACCOUNT_ID: 'local-test', + FACTORY_AI_GATEWAY_ID: 'local-test', + FACTORY_AI_GATEWAY_TOKEN: 'local-test', + }, + stdio: ['ignore', 'pipe', 'pipe'], + }, +); +let output = ''; +for (const stream of [child.stdout, child.stderr]) { + stream.on('data', (data) => { + output = (output + data).slice(-12000); + }); +} +const exited = new Promise((resolve) => child.once('exit', resolve)); +const origin = 'http://127.0.0.1:8898'; +try { + let healthy = false; + for (let attempt = 0; attempt < 60; attempt++) { + if (child.exitCode !== null) + throw new Error('Local Worker exited before becoming healthy.'); + try { + const response = await fetch(`${origin}/health`, { + signal: AbortSignal.timeout(1000), + }); + healthy = + response.status === 200 && (await response.json()).status === 'ok'; + } catch { + /* Wait for the local runtime to start. */ + } + if (healthy) break; + await delay(500); + } + if (!healthy) throw new Error('Local Worker did not become healthy.'); + const body = JSON.stringify({ + repository: { full_name: 'unrelated/repository' }, + }); + async function webhook(event, signingSecret) { + const headers = { + 'content-type': 'application/json', + 'x-github-event': event, + 'x-github-delivery': 'local-smoke-test', + }; + if (signingSecret) + headers['x-hub-signature-256'] = + `sha256=${createHmac('sha256', signingSecret).update(body).digest('hex')}`; + return fetch(`${origin}/channels/github/webhook`, { + method: 'POST', + signal: AbortSignal.timeout(5000), + headers, + body, + }); + } + if ((await webhook('issues')).status !== 401) + throw new Error('Unsigned webhook was accepted.'); + if ((await webhook('issues', 'wrong-secret')).status !== 401) + throw new Error('Invalid signature was accepted.'); + if ((await webhook('ping', secret)).status !== 200) + throw new Error('Signed ping was rejected.'); + const scoped = await webhook('issues', secret); + if (scoped.status !== 200 || (await scoped.json()).accepted !== false) + throw new Error('Unrelated repository was accepted.'); + console.log( + 'Worker health, webhook signatures, ping, and repository scope passed.', + ); +} catch (error) { + console.error(output); + throw error; +} finally { + child.kill('SIGTERM'); + await Promise.race([exited, delay(5000)]); + if (child.exitCode === null) child.kill('SIGKILL'); + await unlink(configPath); +}