Skip to content

fix(cli): clean Next standalone package and nested workingDirectory - #1633

Merged
jhaynie merged 3 commits into
mainfrom
fix/cli-next-standalone-package-clean
Jul 31, 2026
Merged

jhaynie merged 3 commits into
mainfrom
fix/cli-next-standalone-package-clean

Conversation

@jhaynie

@jhaynie jhaynie commented Jul 31, 2026

Copy link
Copy Markdown
Member

Summary

  • Wipe the package output dir (.agentuity) before copying Next standalone so prior builds cannot leave a stale root server.js.
  • Prefer nested server.js (monorepo.subpath → basename(projectDir) → root) when standalone is nested under outputFileTracingRoot (e.g. parent-folder lockfile).
  • Emit processes[].workingDirectory from monorepo or adapter-detected nest; keep static.directory relative to that cwd.
  • Type the Next CDN config wrapper (Record cast) so next.config.ts passes Next build typecheck when baking assetPrefix via --cdn-base-url.

Why

Genesis deployer + CDN E2E against a Next app showed:

  1. Stale May-era root server.js with empty assetPrefix remained after re-package.
  2. Nested CDN-baked test-nextjs/server.js was ignored; launch pointed at the wrong entry.
  3. Root cause: cpSync merge + first-match findStandaloneServer, not a deployer contract bug.

Test plan

  • bun test test/cmd/build/adapters/nextjs-standalone.test.ts test/cmd/build/adapters/nextjs-cdn.test.ts test/cmd/build/package/launch.test.ts (40 pass)
  • bun run typecheck in packages/cli
  • Manual: clean rebuild of /Users/jhaynie/tmp/test-nextjs with --cdn-base-url https://cdn.agentcompany.com/genesis/ → single nested server, workingDirectory: test-nextjs, correct assetPrefix, static next to server

After merge

Release next CLI version (e.g. 3.1.17). Genesis sandbox Dockerfile pin: AGENTUITY_CLI_VERSION.

Wipe .agentuity before packaging so stale root server.js cannot win over a
nested standalone entry when outputFileTracingRoot points at a parent.
Prefer monorepo/project-basename server.js, emit launch.workingDirectory for
nested layouts, and type the Next CDN config wrapper so next.config.ts
typechecks under Next's build.
@agentuity-agent

agentuity-agent Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

The latest Agentuity deployment details.

Project Deployment Preview Updated (UTC)
docs 🟢 Ready (deploy_b92e839c9cef6f17643c2d8a972762a1) - 2026-07-31T22:54:52Z

View deployment logs with the Agentuity CLI:

agentuity cloud deployment logs deploy_b92e839c9cef6f17643c2d8a972762a1 --project-id=proj_5ed7da797bef771d65e1bd6946a052b1

@coderabbitai

coderabbitai Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 4 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 328f40b2-87e8-4c90-80d3-9036cbfe2c20

📥 Commits

Reviewing files that changed from the base of the PR and between 80693a8 and 0545bc9.

📒 Files selected for processing (11)
  • packages/cli/src/cmd/build/adapters/cdn-recipes.ts
  • packages/cli/src/cmd/build/adapters/generic.ts
  • packages/cli/src/cmd/build/adapters/monorepo-stage.ts
  • packages/cli/src/cmd/build/adapters/nextjs.ts
  • packages/cli/src/cmd/build/adapters/reset-output-dir.ts
  • packages/cli/src/cmd/build/adapters/types.ts
  • packages/cli/src/cmd/build/package/launch.ts
  • packages/cli/test/cmd/build/adapters/nextjs-cdn.test.ts
  • packages/cli/test/cmd/build/adapters/nextjs-standalone.test.ts
  • packages/cli/test/cmd/build/package/launch.test.ts
  • packages/cli/test/cmd/build/staging-cleanliness.test.ts

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

📦 Canary Packages Published

version: 3.1.16-0545bc9

Packages
Package Version URL
@agentuity/schedule 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-schedule-3.1.16-0545bc9.tgz
@agentuity/coder-tui 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-coder-tui-3.1.16-0545bc9.tgz
@agentuity/stream 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-stream-3.1.16-0545bc9.tgz
@agentuity/config 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-config-3.1.16-0545bc9.tgz
@agentuity/webhook 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-webhook-3.1.16-0545bc9.tgz
@agentuity/claude-code 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-claude-code-3.1.16-0545bc9.tgz
@agentuity/vite 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-vite-3.1.16-0545bc9.tgz
@agentuity/db 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-db-3.1.16-0545bc9.tgz
@agentuity/adapter 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-adapter-3.1.16-0545bc9.tgz
@agentuity/vector 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-vector-3.1.16-0545bc9.tgz
@agentuity/aigateway 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-aigateway-3.1.16-0545bc9.tgz
@agentuity/hono 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-hono-3.1.16-0545bc9.tgz
@agentuity/migrate 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-migrate-3.1.16-0545bc9.tgz
@agentuity/email 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-email-3.1.16-0545bc9.tgz
@agentuity/queue 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-queue-3.1.16-0545bc9.tgz
@agentuity/genesis 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-genesis-3.1.16-0545bc9.tgz
@agentuity/opencode 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-opencode-3.1.16-0545bc9.tgz
@agentuity/pi 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-pi-3.1.16-0545bc9.tgz
@agentuity/telemetry 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-telemetry-3.1.16-0545bc9.tgz
@agentuity/sandbox 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-sandbox-3.1.16-0545bc9.tgz
@agentuity/coder 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-coder-3.1.16-0545bc9.tgz
@agentuity/cli 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-cli-3.1.16-0545bc9.tgz
@agentuity/postgres 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-postgres-3.1.16-0545bc9.tgz
@agentuity/drizzle 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-drizzle-3.1.16-0545bc9.tgz
@agentuity/api 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-api-3.1.16-0545bc9.tgz
@agentuity/runtime 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-runtime-3.1.16-0545bc9.tgz
@agentuity/analytics 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-analytics-3.1.16-0545bc9.tgz
create-agentuity 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/create-agentuity-3.1.16-0545bc9.tgz
@agentuity/skills 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-skills-3.1.16-0545bc9.tgz
@agentuity/schema 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-schema-3.1.16-0545bc9.tgz
@agentuity/keyvalue 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-keyvalue-3.1.16-0545bc9.tgz
@agentuity/client 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-client-3.1.16-0545bc9.tgz
@agentuity/task 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-task-3.1.16-0545bc9.tgz
@agentuity/server 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-server-3.1.16-0545bc9.tgz
@agentuity/storage 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-storage-3.1.16-0545bc9.tgz
@agentuity/core 3.1.16-0545bc9 https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-core-3.1.16-0545bc9.tgz
Install

Add to your package.json:

{
  "dependencies": {
    "@agentuity/schedule": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-schedule-3.1.16-0545bc9.tgz",
    "@agentuity/coder-tui": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-coder-tui-3.1.16-0545bc9.tgz",
    "@agentuity/stream": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-stream-3.1.16-0545bc9.tgz",
    "@agentuity/config": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-config-3.1.16-0545bc9.tgz",
    "@agentuity/webhook": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-webhook-3.1.16-0545bc9.tgz",
    "@agentuity/claude-code": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-claude-code-3.1.16-0545bc9.tgz",
    "@agentuity/vite": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-vite-3.1.16-0545bc9.tgz",
    "@agentuity/db": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-db-3.1.16-0545bc9.tgz",
    "@agentuity/adapter": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-adapter-3.1.16-0545bc9.tgz",
    "@agentuity/vector": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-vector-3.1.16-0545bc9.tgz",
    "@agentuity/aigateway": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-aigateway-3.1.16-0545bc9.tgz",
    "@agentuity/hono": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-hono-3.1.16-0545bc9.tgz",
    "@agentuity/migrate": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-migrate-3.1.16-0545bc9.tgz",
    "@agentuity/email": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-email-3.1.16-0545bc9.tgz",
    "@agentuity/queue": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-queue-3.1.16-0545bc9.tgz",
    "@agentuity/genesis": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-genesis-3.1.16-0545bc9.tgz",
    "@agentuity/opencode": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-opencode-3.1.16-0545bc9.tgz",
    "@agentuity/pi": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-pi-3.1.16-0545bc9.tgz",
    "@agentuity/telemetry": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-telemetry-3.1.16-0545bc9.tgz",
    "@agentuity/sandbox": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-sandbox-3.1.16-0545bc9.tgz",
    "@agentuity/coder": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-coder-3.1.16-0545bc9.tgz",
    "@agentuity/cli": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-cli-3.1.16-0545bc9.tgz",
    "@agentuity/postgres": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-postgres-3.1.16-0545bc9.tgz",
    "@agentuity/drizzle": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-drizzle-3.1.16-0545bc9.tgz",
    "@agentuity/api": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-api-3.1.16-0545bc9.tgz",
    "@agentuity/runtime": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-runtime-3.1.16-0545bc9.tgz",
    "@agentuity/analytics": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-analytics-3.1.16-0545bc9.tgz",
    "create-agentuity": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/create-agentuity-3.1.16-0545bc9.tgz",
    "@agentuity/skills": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-skills-3.1.16-0545bc9.tgz",
    "@agentuity/schema": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-schema-3.1.16-0545bc9.tgz",
    "@agentuity/keyvalue": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-keyvalue-3.1.16-0545bc9.tgz",
    "@agentuity/client": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-client-3.1.16-0545bc9.tgz",
    "@agentuity/task": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-task-3.1.16-0545bc9.tgz",
    "@agentuity/server": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-server-3.1.16-0545bc9.tgz",
    "@agentuity/storage": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-storage-3.1.16-0545bc9.tgz",
    "@agentuity/core": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-core-3.1.16-0545bc9.tgz"
  }
}

Or install directly:

bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-schedule-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-coder-tui-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-stream-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-config-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-webhook-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-claude-code-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-vite-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-db-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-adapter-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-vector-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-aigateway-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-hono-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-migrate-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-email-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-queue-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-genesis-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-opencode-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-pi-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-telemetry-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-sandbox-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-coder-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-cli-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-postgres-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-drizzle-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-api-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-runtime-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-analytics-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/create-agentuity-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-skills-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-schema-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-keyvalue-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-client-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-task-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-server-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-storage-3.1.16-0545bc9.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.16-0545bc9/agentuity-core-3.1.16-0545bc9.tgz

Share resetOutputDir across Next, monorepo stage, and generic adapters so
Vite/Nuxt/Astro/SvelteKit/TanStack rebuilds cannot merge stale dist assets
or leftover _serve.js into .agentuity.
@jhaynie

jhaynie commented Jul 31, 2026

Copy link
Copy Markdown
Member Author

Follow-up on this PR: generic single-package packaging now also wipes the output dir before copy (shared `resetOutputDir`), same as Next standalone + monorepo stage. Covers Vite / Nuxt / Astro / SvelteKit / TanStack so rebuilds do not merge stale dist assets.

Derive process workingDirectory from the selected server.js path, prefer
adapter packaging over monorepo.subpath in launch metadata, and shrink
selectStandaloneServer to early-exit preference checks.
@jhaynie
jhaynie merged commit a1c87e7 into main Jul 31, 2026
29 checks passed
@jhaynie
jhaynie deleted the fix/cli-next-standalone-package-clean branch July 31, 2026 22:56
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