16f643ed3c
- Converted clipboard copy operation from async to synchronous execution across native and TypeScript layers. - Simplified copy_to_clipboard return type from task::Async<()> to Result<()> in Rust implementation. - Removed promise chains and async/await from clipboard handlers in command and input controllers. - Updated clipboard module documentation to explain synchronous execution avoids AppKit pasteboard warnings. - Reordered fix:rs script to run cargo fmt before cargo clippy for consistent formatting.
50 lines
2.3 KiB
JSON
50 lines
2.3 KiB
JSON
{
|
|
"name": "omp-monorepo",
|
|
"private": true,
|
|
"type": "module",
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"install:dev": "bun install && bun --cwd=packages/coding-agent link && bun --cwd=packages/ai link",
|
|
"dev": "bun --cwd=packages/coding-agent src/cli.ts",
|
|
"stats": "bun --cwd=packages/coding-agent src/cli.ts stats",
|
|
"test": "bun run --workspaces --if-present --parallel test",
|
|
"check": "bun run --parallel check:ts check:rs",
|
|
"check:ts": "biome check . && tsgo -p tsconfig.json && tsgo -p packages/stats/tsconfig.client.json",
|
|
"check:rs": "cargo fmt --all -- --check && cargo clippy --workspace -- -D warnings",
|
|
"lint": "bun run --parallel lint:ts lint:rs",
|
|
"lint:ts": "biome lint .",
|
|
"lint:rs": "cargo clippy --workspace -- -D warnings",
|
|
"fmt": "bun run --parallel fmt:ts fmt:rs",
|
|
"fmt:ts": "biome format --write .",
|
|
"fmt:rs": "cargo fmt --all",
|
|
"fix": "bun run --parallel fix:ts fix:rs",
|
|
"fix:ts": "biome check --write --unsafe . && bun --cwd=packages/coding-agent run format-prompts && bun --cwd=packages/coding-agent run generate-docs-index",
|
|
"fix:rs": "cargo fmt --all && cargo clippy --fix --allow-dirty --all-targets --no-deps --allow-staged --broken-code --allow-no-vcs",
|
|
"build:native": "bun --cwd=packages/natives run build:native",
|
|
"dev:native": "bun --cwd=packages/natives run dev:native",
|
|
"bench:gen-fixtures": "bun --cwd=packages/react-edit-benchmark run src/generate.ts --react-dir /tmp/react-source --count-per-type 8",
|
|
"bench:edit": "bun --cwd=packages/react-edit-benchmark run start",
|
|
"prepublishOnly": "bun run check",
|
|
"prepare": "bun --cwd=packages/coding-agent run generate-docs-index",
|
|
"publish": "bun run prepublishOnly && npm publish -ws --access public",
|
|
"publish:dry": "bun run prepublishOnly && npm publish -ws --access public --dry-run",
|
|
"release": "bun scripts/release.ts",
|
|
"generate-models": "bun --cwd=packages/ai scripts/generate-models.ts",
|
|
"generate-docs-index": "bun --cwd=packages/coding-agent run generate-docs-index",
|
|
"sync-exports": "bun scripts/sync-exports.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.4",
|
|
"@bufbuild/protoc-gen-es": "^2.11",
|
|
"@types/bun": "^1.3",
|
|
"@typescript/native-preview": "^7.0.0-dev.20260302.1",
|
|
"lint-staged": "^16.3",
|
|
"prettier": "^3.8"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,ts,jsx,tsx,json,jsonc,css}": "biome check --write --no-errors-on-unmatched"
|
|
}
|
|
}
|