Cross-platform clipboard access (text read/write, image read) via the arboard Rust crate. No external tools (pbcopy, xclip, etc.) required. Ported from Oh My Pi's clipboard module with adaptations for GSD's architecture (direct AsyncTask instead of task::blocking wrapper). Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
39 lines
1 KiB
JSON
39 lines
1 KiB
JSON
{
|
|
"name": "@gsd/native",
|
|
"version": "0.1.0",
|
|
"description": "Native Rust bindings for GSD — high-performance native modules via N-API",
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"scripts": {
|
|
"build:native": "node ../../native/scripts/build.js",
|
|
"build:native:dev": "node ../../native/scripts/build.js --dev",
|
|
"test": "node --test src/__tests__/grep.test.mjs src/__tests__/ps.test.mjs src/__tests__/glob.test.mjs src/__tests__/clipboard.test.mjs"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/index.ts",
|
|
"import": "./src/index.ts"
|
|
},
|
|
"./grep": {
|
|
"types": "./src/grep/index.ts",
|
|
"import": "./src/grep/index.ts"
|
|
},
|
|
"./ps": {
|
|
"types": "./src/ps/index.ts",
|
|
"import": "./src/ps/index.ts"
|
|
},
|
|
"./glob": {
|
|
"types": "./src/glob/index.ts",
|
|
"import": "./src/glob/index.ts"
|
|
},
|
|
"./clipboard": {
|
|
"types": "./src/clipboard/index.ts",
|
|
"import": "./src/clipboard/index.ts"
|
|
}
|
|
},
|
|
"files": [
|
|
"src"
|
|
],
|
|
"license": "MIT"
|
|
}
|