Huakun 97cd20906f
Feature: add extension api (hide and paste) (#210)
* 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
2025-02-26 04:47:43 -05:00

87 lines
2.0 KiB
JSON

{
"$schema": "https://schema.kunkun.sh",
"name": "ext-sveltekit-exp",
"version": "0.0.11",
"license": "MIT",
"kunkun": {
"name": "TODO: Change Display Name",
"shortDescription": "A Custom UI template for sveltekit",
"longDescription": "A Custom UI template for sveltekit",
"identifier": "ext-sveltekit-exp",
"icon": {
"type": "iconify",
"value": "carbon:debug"
},
"demoImages": [],
"permissions": [
"clipboard:read-text",
"clipboard:paste",
"notification:all",
"dialog:all",
"shell:kill",
"shell:stdin-write",
{
"permission": "shell:deno:spawn",
"allow": [
{}
]
}
],
"customUiCmds": [
{
"main": "/",
"dist": "build",
"devMain": "http://localhost:5173",
"name": "Custom UI Command Playground",
"cmds": []
}
],
"templateUiCmds": []
},
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"format": "prettier --write ."
},
"dependencies": {
"@kksh/api": "workspace:*",
"@kksh/svelte5": "0.1.15",
"clsx": "^2.1.1",
"lucide-svelte": "^0.469.0",
"mode-watcher": "^0.5.0",
"tailwind-merge": "^2.6.0",
"tailwind-variants": "^0.3.0"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.3.1",
"@sveltejs/kit": "^2.15.2",
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"svelte": "^5.16.6",
"svelte-check": "^4.1.1",
"typescript": "^5.7.2",
"vite": "^6.0.7",
"@sveltejs/adapter-static": "^3.0.8",
"@tailwindcss/typography": "^0.5.16",
"@types/eslint": "^9.6.1",
"autoprefixer": "^10.4.20",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.46.1",
"globals": "^15.14.0",
"postcss": "^8.4.49",
"prettier": "^3.4.2",
"prettier-plugin-svelte": "^3.3.2",
"prettier-plugin-tailwindcss": "^0.6.9",
"tailwindcss": "^3.4.17",
"typescript-eslint": "^8.19.1"
},
"type": "module",
"files": [
"build",
".gitignore"
]
}