Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .yarnrc.yml

This file was deleted.

14 changes: 7 additions & 7 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

## Build Commands

- **Type Check:** `yarn check-types` - Verify TypeScript types
- **Check specific package:** `yarn check-types -F rivetkit` - Check only specified package
- **Build:** `yarn build` - Production build using Turbopack
- **Build specific package:** `yarn build -F rivetkit` - Build only specified package
- **Format:** `yarn fmt` - Format code with Biome
- **Type Check:** `pnpm check-types` - Verify TypeScript types
- **Check specific package:** `pnpm check-types -F rivetkit` - Check only specified package
- **Build:** `pnpm build` - Production build using Turbopack
- **Build specific package:** `pnpm build -F rivetkit` - Build only specified package
- **Format:** `pnpm fmt` - Format code with Biome
- Do not run the format command automatically.

## Core Concepts
Expand Down Expand Up @@ -92,7 +92,7 @@ This ensures imports resolve correctly across different build environments and p

## Project Structure

- Monorepo with Yarn workspaces and Turborepo
- Monorepo with pnpm workspaces and Turborepo
- Core code in `packages/rivetkit/`
- Platform implementations in `packages/platforms/`
- Driver implementations in `packages/drivers/`
Expand All @@ -105,7 +105,7 @@ This ensures imports resolve correctly across different build environments and p
- Follow existing patterns for P2P networking
- Add proper JSDoc comments for public APIs
- Ensure proper error handling with descriptive messages
- Run `yarn check-types` regularly during development to catch type errors early. Prefer `yarn check-types` instead of `yarn build`.
- Run `pnpm check-types` regularly during development to catch type errors early. Prefer `pnpm check-types` instead of `pnpm build`.
- Use `tsx` CLI to execute TypeScript scripts directly (e.g., `tsx script.ts` instead of `node script.js`).
- Do not auto-commit changes

Expand Down
30 changes: 0 additions & 30 deletions CONTRIBUTING.md

This file was deleted.

2 changes: 1 addition & 1 deletion clients/rust/tests/e2e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl MockServer {
.find(|p| p.join("package.json").exists())
.expect("Failed to find repo root");

// Run `yarn build -F rivetkit` in the root of this repo
// Run `pnpm build -F rivetkit` in the root of this repo
let status = Command::new("yarn")
.args(["build", "-F", "rivetkit"])
.current_dir(&repo_root)
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Mintlify Documentation

```
yarn dlx mintlify dev
pnpm dlx mintlify dev
```

17 changes: 0 additions & 17 deletions examples/linear-coding-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,23 +149,6 @@ To expose your local webhook server to the internet:
npm run ngrok
```

#### Local Testing

For local testing without actual webhooks, you can use the debugging CLI tools:

```bash
# Check the status of a specific issue
yarn cli status <ISSUE-ID>

# Get debug information for a specific issue
yarn cli debug <ISSUE-ID>

# View conversation history with the LLM
yarn cli history <ISSUE-ID>
```

This allows you to monitor and debug the agent's behavior for specific issues.

### Configuration

Set the following environment variables:
Expand Down
2 changes: 1 addition & 1 deletion examples/linear-coding-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"dev": "concurrently --raw \"yarn dev:actors\" \"yarn dev:server\" \"yarn dev:ngrok\"",
"dev": "concurrently --raw \"pnpm dev:actors\" \"pnpm dev:server\" \"pnpm dev:ngrok\"",
"dev:actors": "npx rivetkit/cli@latest dev src/workers/registry.ts",
"dev:server": "tsx --watch src/server/index.ts",
"dev:ngrok": "ngrok http 3000",
Expand Down
4 changes: 2 additions & 2 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# tags:
# - frontend
# - security
# run: yarn audit
# run: pnpm audit
#
# - name: gems audit
# tags:
Expand All @@ -20,7 +20,7 @@
# pre-commit:
# parallel: true
# jobs:
# - run: yarn eslint {staged_files}
# - run: pnpm eslint {staged_files}
# glob: "*.{js,ts,jsx,tsx}"
#
# - name: rubocop
Expand Down
23 changes: 7 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
{
"private": true,
"packageManager": "[email protected]",
"name": "@rivetkit/workspace",
"workspaces": [
"packages/*",
"packages/platforms/*",
"packages/drivers/*",
"packages/components/*",
"packages/misc/*",
"packages/frameworks/*",
"examples/*"
],
"scripts": {
"start": "npx turbo watch build",
"dev": "npx turbo watch dev",
"build": "npx turbo build",
"test": "npx turbo test",
"test:watch": "npx turbo watch test",
"check-types": "npx turbo check-types",
"fmt": "yarn biome check --write .",
"dev-docs": "cd docs && yarn dlx mintlify@latest dev",
"dev-docs-middleware": "cd packages/misc/docs-middleware && yarn dev",
"deploy-docs-middleware": "cd packages/misc/docs-middleware && yarn deploy",
"docs-broken-links": "cd docs && yarn dlx mintlify@latest broken-links",
"fmt": "pnpm biome check --write .",
"dev-docs": "cd docs && pnpm dlx mintlify@latest dev",
"dev-docs-middleware": "cd packages/misc/docs-middleware && pnpm dev",
"deploy-docs-middleware": "cd packages/misc/docs-middleware && pnpm deploy",
"docs-broken-links": "cd docs && pnpm dlx mintlify@latest broken-links",
"docs-bump": "git checkout main && git pull --ff && date > docs/.bump && git add docs/.bump && git commit -m \"chore: bump mintlify\" && git push origin main"
},
"devDependencies": {
Expand All @@ -43,5 +33,6 @@
},
"dependencies": {
"esbuild": "^0.25.1"
}
},
"packageManager": "[email protected]+sha512.2d92c86b7928dc8284f53494fb4201f983da65f0fb4f0d40baafa5cf628fa31dae3e5968f12466f17df7e97310e30f343a648baea1b9b350685dafafffdf5808"
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
},
"sideEffects": false,
"scripts": {
"dev": "yarn build --watch",
"dev": "pnpm build --watch",
"build": "tsup src/mod.ts src/client/mod.ts src/common/log.ts src/common/websocket.ts src/worker/errors.ts src/topologies/coordinate/mod.ts src/topologies/partition/mod.ts src/utils.ts src/driver-helpers/mod.ts src/driver-test-suite/mod.ts src/test/mod.ts",
"check-types": "tsc --noEmit",
"boop": "tsc --outDir dist/test -d",
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/globals.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
declare const Deno: any;
declare const navigator: any;

2 changes: 1 addition & 1 deletion packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"types": ["deno", "node"],
"types": ["node"],
"paths": {
"@/*": ["./src/*"],
// Used for test fixtures
Expand Down
1 change: 1 addition & 0 deletions packages/platforms/cloudflare-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"devDependencies": {
"@cloudflare/workers-types": "^4.20250129.0",
"@types/invariant": "^2",
"@types/node": "^24.0.3",
"rivetkit": "workspace:*",
"tsup": "^8.4.0",
"typescript": "^5.5.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export function createWorkerDurableObject(
passThroughOnException() {
// Do nothing
},
props: {},
} satisfies ExecutionContext,
);
});
Expand Down
12 changes: 4 additions & 8 deletions packages/platforms/cloudflare-workers/tests/driver-tests.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ runDriverTests({

// Start wrangler dev
const wranglerProcess = spawn(
"yarn",
"pnpm",
[
"start",
"src/index.ts",
Expand Down Expand Up @@ -122,23 +122,19 @@ async function setupProject(projectPath: string) {
rivetkit: "workspace:*",
},
packageManager:
"yarn@4.7.0+sha512.5a0afa1d4c1d844b3447ee3319633797bcd6385d9a44be07993ae52ff4facabccafb4af5dcd1c2f9a94ac113e5e9ff56f6130431905884414229e284e37bb7c9",
"pnpm@10.7.1+sha512.2d92c86b7928dc8284f53494fb4201f983da65f0fb4f0d40baafa5cf628fa31dae3e5968f12466f17df7e97310e30f343a648baea1b9b350685dafafffdf5808",
};
await fs.writeFile(
path.join(tmpDir, "package.json"),
JSON.stringify(packageJson, null, 2),
);

// Disable PnP
const yarnPnp = "nodeLinker: node-modules";
await fs.writeFile(path.join(tmpDir, ".yarnrc.yml"), yarnPnp);

// Get the current workspace root path and link the workspace
const workspaceRoot = path.resolve(__dirname, "../../../..");
await execPromise(`yarn link -A ${workspaceRoot}`, { cwd: tmpDir });
await execPromise(`pnpm link -A ${workspaceRoot}`, { cwd: tmpDir });

// Install deps
await execPromise("yarn install", { cwd: tmpDir });
await execPromise("pnpm install", { cwd: tmpDir });

// Create a wrangler.json file
const wranglerConfig = {
Expand Down
1 change: 1 addition & 0 deletions packages/platforms/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"dependencies": {
"@hono/node-server": "^1.13.8",
"@hono/node-ws": "^1.0.8",
"@types/node": "^24.0.3",
"zod": "^3.24.2"
},
"stableVersion": "0.8.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/platforms/rivet/TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export RIVET_CLOUD_TOKEN=xxxxx
# If not using Rivet Cloud
export RIVET_ENDPOINT=http://localhost:8080
rivet shell
yarn test
pnpm test
```

22 changes: 11 additions & 11 deletions packages/platforms/rivet/tests/rivet-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function writeFile(
}

/**
* Pack a package using yarn pack and return the path to the packed tarball
* Pack a package using pnpm pack and return the path to the packed tarball
*/
async function packPackage(
packageDir: string,
Expand All @@ -59,8 +59,8 @@ async function packPackage(
const outputFileName = `${packageName}-${crypto.randomUUID()}.tgz`;
const outputPath = path.join(tmpDir, outputFileName);

// Run yarn pack with specific output path
await execPromise(`yarn pack --install-if-needed --out ${outputPath}`, {
// Run pnpm pack with specific output path
await execPromise(`pnpm pack --install-if-needed --out ${outputPath}`, {
cwd: packageDir,
});
console.log(`Generated tarball at ${outputPath}`);
Expand Down Expand Up @@ -115,7 +115,7 @@ export async function deployToRivet(projectPath: string) {
typescript: "^5.3.0",
},
packageManager:
"yarn@4.7.0+sha512.5a0afa1d4c1d844b3447ee3319633797bcd6385d9a44be07993ae52ff4facabccafb4af5dcd1c2f9a94ac113e5e9ff56f6130431905884414229e284e37bb7c9",
"pnpm@10.7.1+sha512.2d92c86b7928dc8284f53494fb4201f983da65f0fb4f0d40baafa5cf628fa31dae3e5968f12466f17df7e97310e30f343a648baea1b9b350685dafafffdf5808",
};
await writeFile(tmpDir, "package.json", packageJson);

Expand Down Expand Up @@ -158,18 +158,18 @@ RUN npm i -g corepack && corepack enable
WORKDIR /app
COPY package.json .yarnrc.yml ./
COPY package.json pnpm-lock.yaml ./
COPY *.tgz ./
RUN --mount=type=cache,target=/app/.yarn/cache \
yarn install
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
pnpm install --frozen-lockfile
COPY . .
# HACK: Remove worker.ts bc file is invalid in Node
RUN rm src/worker.ts && yarn build
RUN rm src/worker.ts && pnpm build
RUN --mount=type=cache,target=/app/.yarn/cache \
yarn workspaces focus --production
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
pnpm install --prod --frozen-lockfile
FROM node:22-alpine AS runtime
Expand Down Expand Up @@ -219,7 +219,7 @@ node_modules
// Install deps
console.log("Installing dependencies...");
try {
const installOutput = await execPromise("yarn install", { cwd: tmpDir });
const installOutput = await execPromise("pnpm install", { cwd: tmpDir });
console.log("Install output:", installOutput.stdout);
} catch (error) {
console.error("Error installing dependencies:", error);
Expand Down
Loading
Loading