Skip to content

[AAASM-4795] 🐛 (examples): Fix wrong gateway image name + add pnpm onlyBuiltDependencies#331

Merged
Chisanan232 merged 2 commits into
masterfrom
v0.0.1/AAASM-4795/compose_image_pnpm
Jul 17, 2026
Merged

[AAASM-4795] 🐛 (examples): Fix wrong gateway image name + add pnpm onlyBuiltDependencies#331
Chisanan232 merged 2 commits into
masterfrom
v0.0.1/AAASM-4795/compose_image_pnpm

Conversation

@Chisanan232

Copy link
Copy Markdown
Contributor

What changed

Two low-severity onboarding fixes:

  1. scenarios/sidecar-runtime/docker-compose.yml — the "switch to real gateway"
    comment pointed at ghcr.io/ai-agent-assembly/agent-assembly-gateway:latest,
    an image that never existed (every other in-repo reference uses
    aa-gateway). Following the comment produced manifest unknown on
    docker compose up. Fixed to ghcr.io/ai-agent-assembly/aa-gateway:latest.
  2. The 6 node/* framework examples (langchain-js-basic-agent,
    langgraph-js, mastra, vercel-ai, openai-node-tool-policy,
    custom-tool-policy) had no pnpm.onlyBuiltDependencies allowlist, so
    pnpm install hard-fails under pnpm v11+ with ERR_PNPM_IGNORED_BUILDS
    (CI's pinned pnpm v10 only warns, masking the issue). Added
    "onlyBuiltDependencies": ["@agent-assembly/sdk", "esbuild", "protobufjs"]
    to each — matching the allowlist already carried by
    scenarios/policy-enforcement and scenarios/approval-gates's node
    projects. Confirmed via each example's pnpm-lock.yaml that
    @agent-assembly/sdk (own postinstall script) and protobufjs (a
    transitive dep of @grpc/proto-loader, itself pulled in by the SDK; also
    ships a postinstall script) are present in every one of the 6, alongside
    esbuild (via vitest/vite) which the reference examples already allowlist.

Related ticket

Closes AAASM-4795
https://lightning-dust-mite.atlassian.net/browse/AAASM-4795

Fixes AAASM-4795

How to verify

  • python3 -c "import yaml; yaml.safe_load(open('scenarios/sidecar-runtime/docker-compose.yml'))" — parses cleanly.
  • python3 -c "import json; json.load(open(...))" on each of the 6 touched package.json files — all valid JSON.
  • python3 scripts/generate_example_metadata.py --check — passes, no drift introduced (this generator audits SDK-version pins only; it does not cover compose image names or pnpm build allowlists, so it does not directly assert on either fix, but confirms no side effects).
  • Not run (per task scope): the test suite, or a real pnpm install across all examples.

Checklist

  • PR title follows [AAASM-XXXX] <GitEmoji> (<scope>): <summary>
  • No secrets, API keys, or .env files committed
  • Example sub-projects include their own README.md with prerequisites and run instructions (unchanged by this PR)
  • SDK/runtime version dependencies are documented or pinned (unchanged; this PR only adds the pnpm build allowlist)

The 'switch to real gateway' comment referenced
ghcr.io/ai-agent-assembly/agent-assembly-gateway, an image that never
existed — every other in-repo reference uses aa-gateway, so following
this comment produced 'manifest unknown' on docker compose up.
The 6 node/* framework examples (langchain-js-basic-agent, langgraph-js,
mastra, vercel-ai, openai-node-tool-policy, custom-tool-policy) had no
pnpm.onlyBuiltDependencies allowlist, so pnpm install hard-fails under
pnpm v11+ with ERR_PNPM_IGNORED_BUILDS (CI's pinned pnpm v10 only warns).
@agent-assembly/sdk and protobufjs (a transitive dep of
@grpc/proto-loader, pulled in by the SDK) both ship a postinstall
script, and esbuild (via vitest/vite) needs its binary download allowed
— matching the allowlist already carried by scenarios/policy-enforcement
and scenarios/approval-gates' node projects.
@sonarqubecloud

Copy link
Copy Markdown

@Chisanan232

Copy link
Copy Markdown
Contributor Author

Claude Code — automated review

CI: green. Scope: matches the ticket. Side effects: none — green full-suite CI (incl. build/lint/impacted tests) validates no existing-function breakage. Front-End: no FE/dashboard code touched → no Playwright validation applies. Verdict: ✅ ready to approve & merge.
Fix: gateway image → aa-gateway; pnpm.onlyBuiltDependencies added to 6 node examples (pnpm-v11 install unblocked).

@Chisanan232
Chisanan232 merged commit 4392144 into master Jul 17, 2026
31 checks passed
@Chisanan232
Chisanan232 deleted the v0.0.1/AAASM-4795/compose_image_pnpm branch July 17, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant