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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/pullfrog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@ jobs:
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}

15 changes: 15 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"tabWidth": 2,
"singleQuote": false,
"printWidth": 80,
"ignorePatterns": [
".next",
"node_modules",
"dist",
"build",
".turbo",
"packages/benchmarks/shadcn-dashboard",
"pnpm-lock.yaml"
]
}
7 changes: 0 additions & 7 deletions .prettierignore

This file was deleted.

5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"private": true,
"workspaces": [
"packages/*",
"packages/benchmarks/next-app"
],
"type": "module",
"scripts": {
"build": "turbo run build --filter=react-grab --filter=@react-grab/cursor --filter=@react-grab/claude-code --filter=@react-grab/ami --filter=@react-grab/opencode --filter=@react-grab/codex --filter=@react-grab/gemini --filter=@react-grab/amp --filter=@react-grab/droid --filter=@react-grab/cli --filter=@react-grab/utils && pnpm --filter grab build",
Expand All @@ -8,7 +12,7 @@
"typecheck": "pnpm --filter react-grab typecheck",
"lint": "pnpm --filter react-grab lint",
"lint:fix": "pnpm --filter react-grab lint:fix",
"format": "prettier --write .",
"format": "oxfmt",
"changeset": "changeset",
"version": "changeset version",
"prebump": "cp README.md packages/react-grab/README.md && pnpm --filter grab build",
Expand All @@ -20,17 +24,13 @@
},
"devDependencies": {
"@changesets/cli": "^2.27.10",
"prettier": "^3.4.2",
"oxfmt": "^0.27.0",
"turbo": "^2.6.3",
"untun": "^0.1.3"
},
"engines": {
"node": ">=18",
"pnpm": ">=8"
},
"packageManager": "pnpm@10.24.0",
"workspaces": [
"packages/*",
"packages/benchmarks/next-app"
]
"packageManager": "pnpm@10.24.0"
}
18 changes: 9 additions & 9 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
{
"name": "@react-grab/cli",
"version": "0.1.0-beta.12",
"type": "module",
"bin": {
"react-grab": "./dist/cli.js"
},
"files": [
"dist"
],
"type": "module",
"exports": {
".": {
"types": "./dist/cli.d.ts",
"import": "./dist/cli.js",
"require": "./dist/cli.cjs"
}
},
"files": [
"dist"
],
"scripts": {
"dev": "tsup --watch",
"build": "rm -rf dist && NODE_ENV=production tsup",
"test": "vitest run",
"test:watch": "vitest"
},
"devDependencies": {
"@types/prompts": "^2.4.9",
"tsup": "^8.4.0",
"vitest": "^3.2.4"
},
"dependencies": {
"@antfu/ni": "^0.23.0",
"commander": "^14.0.0",
"ora": "^8.2.0",
"picocolors": "^1.1.1",
"prompts": "^2.4.2"
},
"devDependencies": {
"@types/prompts": "^2.4.9",
"tsup": "^8.4.0",
"vitest": "^3.2.4"
}
}
2 changes: 1 addition & 1 deletion packages/e2e-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"preview": "vite preview"
},
"dependencies": {
"react-grab": "workspace:*",
"clsx": "^2.1.1",
"react": "19.1.2",
"react-dom": "19.1.2",
"react-grab": "workspace:*",
"tailwind-merge": "^2.6.0"
},
"devDependencies": {
Expand Down
48 changes: 24 additions & 24 deletions packages/grab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,40 @@
"version": "0.1.0-beta.12",
"description": "Select context for coding agents directly from your website",
"keywords": [
"react",
"grab",
"react-grab",
"agent",
"context"
"context",
"grab",
"react",
"react-grab"
],
"homepage": "https://react-grab.com",
"bugs": {
"url": "https://github.com/aidenybai/react-grab/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/aidenybai/react-grab.git"
},
"license": "MIT",
"author": {
"name": "Aiden Bai",
"email": "aiden@million.dev"
},
"repository": {
"type": "git",
"url": "git+https://github.com/aidenybai/react-grab.git"
},
"bin": {
"grab": "./bin/cli.js"
},
"files": [
"bin",
"dist",
"package.json",
"README.md",
"LICENSE"
],
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"browser": "dist/index.global.js",
"types": "dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
Expand Down Expand Up @@ -50,27 +64,13 @@
"./dist/*.cjs": "./dist/*.cjs",
"./dist/*.mjs": "./dist/*.mjs"
},
"bin": {
"grab": "./bin/cli.js"
"publishConfig": {
"access": "public"
},
"main": "dist/index.js",
"module": "dist/index.js",
"browser": "dist/index.global.js",
"types": "dist/index.d.ts",
"files": [
"bin",
"dist",
"package.json",
"README.md",
"LICENSE"
],
"scripts": {
"build": "node scripts/build.js"
},
"dependencies": {
"@react-grab/cli": "workspace:*"
},
"publishConfig": {
"access": "public"
}
}
2 changes: 1 addition & 1 deletion packages/next-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"lint": "next lint"
},
"dependencies": {
"react-grab": "workspace:*",
"bippy": "^0.5.11",
"clsx": "^2.1.1",
"next": "15.3.8",
"react": "19.0.1",
"react-dom": "19.0.1",
"react-grab": "workspace:*",
"tailwind-merge": "^2.6.0"
},
"devDependencies": {
Expand Down
14 changes: 7 additions & 7 deletions packages/provider-ami/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"name": "@react-grab/ami",
"version": "0.1.0-beta.12",
"files": [
"dist"
],
"type": "module",
"browser": "dist/client.global.js",
"exports": {
"./client": {
"types": "./dist/client.d.ts",
Expand All @@ -11,19 +15,15 @@
"./dist/*": "./dist/*.js",
"./dist/*.js": "./dist/*.js"
},
"browser": "dist/client.global.js",
"files": [
"dist"
],
"scripts": {
"dev": "tsup --watch",
"build": "rm -rf dist && NODE_ENV=production tsup"
},
"dependencies": {
"react-grab": "workspace:*"
},
"devDependencies": {
"@types/node": "^22.10.7",
"tsup": "^8.4.0"
},
"dependencies": {
"react-grab": "workspace:*"
}
}
20 changes: 10 additions & 10 deletions packages/provider-amp/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"name": "@react-grab/amp",
"version": "0.1.0-beta.12",
"type": "module",
"bin": {
"react-grab-amp": "./dist/cli.cjs"
},
"files": [
"dist"
],
"type": "module",
"browser": "dist/client.global.js",
"exports": {
"./client": {
"types": "./dist/client.d.ts",
Expand All @@ -19,23 +23,19 @@
"./dist/*": "./dist/*.js",
"./dist/*.js": "./dist/*.js"
},
"browser": "dist/client.global.js",
"files": [
"dist"
],
"scripts": {
"dev": "tsup --watch",
"build": "rm -rf dist && NODE_ENV=production tsup"
},
"devDependencies": {
"@react-grab/utils": "workspace:*",
"@types/node": "^22.10.7",
"tsup": "^8.4.0"
},
"dependencies": {
"@react-grab/relay": "workspace:*",
"@sourcegraph/amp": "^0.0.1767830505-ga62310",
"@sourcegraph/amp-sdk": "^0.1.0-20251210081226-g90e3892",
"react-grab": "workspace:*"
},
"devDependencies": {
"@react-grab/utils": "workspace:*",
"@types/node": "^22.10.7",
"tsup": "^8.4.0"
}
}
20 changes: 10 additions & 10 deletions packages/provider-claude-code/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"name": "@react-grab/claude-code",
"version": "0.1.0-beta.12",
"type": "module",
"bin": {
"react-grab-claude-code": "./dist/cli.cjs"
},
"files": [
"dist"
],
"type": "module",
"browser": "dist/client.global.js",
"exports": {
"./client": {
"types": "./dist/client.d.ts",
Expand All @@ -19,22 +23,18 @@
"./dist/*": "./dist/*.js",
"./dist/*.js": "./dist/*.js"
},
"browser": "dist/client.global.js",
"files": [
"dist"
],
"scripts": {
"dev": "tsup --watch",
"build": "rm -rf dist && NODE_ENV=production tsup"
},
"devDependencies": {
"@react-grab/utils": "workspace:*",
"@types/node": "^22.10.7",
"tsup": "^8.4.0"
},
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.1.0",
"@react-grab/relay": "workspace:*",
"react-grab": "workspace:*"
},
"devDependencies": {
"@react-grab/utils": "workspace:*",
"@types/node": "^22.10.7",
"tsup": "^8.4.0"
}
}
3 changes: 1 addition & 2 deletions packages/provider-claude-code/src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import { COMPLETED_STATUS } from "@react-grab/relay";
import { formatSpawnError } from "@react-grab/utils/server";

export interface ClaudeAgentOptions
extends AgentRunOptions,
Omit<Options, "cwd"> {}
extends AgentRunOptions, Omit<Options, "cwd"> {}

type ContentBlock = SDKAssistantMessage["message"]["content"][number];
type TextContentBlock = Extract<ContentBlock, { type: "text" }>;
Expand Down
Loading
Loading