kunkun/apps/cli
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
..
__tests__ test: remove build commad and its tests from cli app 2025-02-04 10:06:51 -05:00
src feat(desktop): add localized drag and drop strike separator text (#139) 2025-02-18 03:17:19 -05:00
.gitignore Add extension templates, create-kunkun and cli package (#26) 2024-11-15 18:15:17 -05:00
build.ts Add extension templates, create-kunkun and cli package (#26) 2024-11-15 18:15:17 -05:00
bun.lockb Feature: i18n (#70) 2025-01-19 23:22:15 -05:00
CHANGELOG.md Feature: add extension api (hide and paste) (#210) 2025-02-26 04:47:43 -05:00
cli.ts test: remove build commad and its tests from cli app 2025-02-04 10:06:51 -05:00
mod.ts test: remove build commad and its tests from cli app 2025-02-04 10:06:51 -05:00
package.json Feature: add extension api (hide and paste) (#210) 2025-02-26 04:47:43 -05:00
README.md Add extension templates, create-kunkun and cli package (#26) 2024-11-15 18:15:17 -05:00
tsconfig.json Add extension templates, create-kunkun and cli package (#26) 2024-11-15 18:15:17 -05:00

kksh

This is a CLI tool for developers to develop Kunkun extensions.

Usage

# Create an extension template first
npm init kunkun@latest

# You can verify the extension manifest, this expect `npm run build` is done already and all generated artifacts listed in manifest is present.
npx kksh verify <path to extension>

# Build extension with docker, simulate how Kunkun's CI builds the extension
npx kksh build <path to extension>