mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-04 14:46:42 +00:00

* feat: add paste API to extension API * feat(desktop): enhance clipboard and hotkey utilities - Add `hideAndPaste` utility function to simplify window hiding and clipboard pasting - Adjust key press and sleep timings for more reliable input simulation - Implement window focus listener in clipboard extension - Bind input element reference for automatic focus management * feat(permissions): enhance clipboard permission handling - Update clipboard permission schema to include paste permission - Modify clipboard API to check for paste permission before executing - Refactor permission map and schema for more flexible permission management * feat(desktop): refactor extension command search and rendering - Add `svelte-inspect-value` for debugging - Implement new `ExtCmds` component to replace `ExtCmdsGroup` - Enhance extension command search with separate Fuse.js instances for installed and dev extensions - Simplify extension command filtering and rendering logic - Add derived stores for extension commands with improved type safety * feat(desktop): improve extension command search filtering * bump @kksh/api version * feat(permissions): add clipboard paste permission description
134 lines
2.3 KiB
JSON
134 lines
2.3 KiB
JSON
{
|
|
"$schema": "../../schema/manifest-json-schema.json",
|
|
"name": "demo-template-extension",
|
|
"version": "0.0.11",
|
|
"type": "module",
|
|
"license": "MIT",
|
|
"kunkun": {
|
|
"name": "Demo Template Extension",
|
|
"shortDescription": "Demo Template Extension",
|
|
"longDescription": "Demo Template Extension",
|
|
"identifier": "demo-worker-template-ext",
|
|
"permissions": [
|
|
"fetch:all",
|
|
"security:mac:all",
|
|
"clipboard:read-all",
|
|
{
|
|
"permission": "shell:spawn",
|
|
"allow": [
|
|
{
|
|
"cmd": {
|
|
"program": "deno",
|
|
"args": [
|
|
"run",
|
|
"/Users/hk/Dev/kunkun/deno.ts"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"permission": "shell:deno:spawn",
|
|
"allow": [
|
|
{
|
|
"path": "/Users/hk/Dev/kunkun/deno.ts",
|
|
"env": "*",
|
|
"ffi": "*",
|
|
"read": "*",
|
|
"sys": "*",
|
|
"run": "*"
|
|
}
|
|
]
|
|
},
|
|
"shell:stdin-write",
|
|
"shell:kill",
|
|
{
|
|
"permission": "open:file",
|
|
"allow": [
|
|
{
|
|
"path": "$EXTENSION/src/deno-script.ts"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"permission": "shell:execute",
|
|
"allow": [
|
|
{
|
|
"cmd": {
|
|
"program": "ls",
|
|
"args": [
|
|
"-l"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"cmd": {
|
|
"program": "bash",
|
|
"args": [
|
|
"-c",
|
|
".+"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"cmd": {
|
|
"program": "deno",
|
|
"args": [
|
|
"-A",
|
|
".+",
|
|
".+"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"demoImages": [],
|
|
"icon": {
|
|
"type": "iconify",
|
|
"value": "carbon:demo"
|
|
},
|
|
"customUiCmds": [],
|
|
"templateUiCmds": [
|
|
{
|
|
"name": "Demo Worker Template",
|
|
"main": "dist/index.js",
|
|
"cmds": []
|
|
}
|
|
],
|
|
"headlessCmds": [
|
|
{
|
|
"name": "Demo Headless Command",
|
|
"main": "dist/headless.js",
|
|
"cmds": [],
|
|
"icon": {
|
|
"type": "iconify",
|
|
"value": "mdi:head-remove-outline"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"scripts": {
|
|
"dev": "bun build.ts dev",
|
|
"build": "bun build.ts"
|
|
},
|
|
"dependencies": {
|
|
"@kksh/api": "workspace:*",
|
|
"@kunkun/api": "npm:@jsr/kunkun__api@^0.0.13"
|
|
},
|
|
"devDependencies": {
|
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
"@types/bun": "latest",
|
|
"rollup-plugin-visualizer": "^5.12.0"
|
|
},
|
|
"peerDependencies": {
|
|
"typescript": "^5.0.0"
|
|
},
|
|
"files": [
|
|
"./dist",
|
|
".gitignore"
|
|
]
|
|
}
|