init
This commit is contained in:
commit
ec53fcbe95
1905 changed files with 513762 additions and 0 deletions
26
commands/desktop/index.ts
Normal file
26
commands/desktop/index.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import type { Command } from '../../commands.js'
|
||||
|
||||
function isSupportedPlatform(): boolean {
|
||||
if (process.platform === 'darwin') {
|
||||
return true
|
||||
}
|
||||
if (process.platform === 'win32' && process.arch === 'x64') {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
const desktop = {
|
||||
type: 'local-jsx',
|
||||
name: 'desktop',
|
||||
aliases: ['app'],
|
||||
description: 'Continue the current session in Claude Desktop',
|
||||
availability: ['claude-ai'],
|
||||
isEnabled: isSupportedPlatform,
|
||||
get isHidden() {
|
||||
return !isSupportedPlatform()
|
||||
},
|
||||
load: () => import('./desktop.js'),
|
||||
} satisfies Command
|
||||
|
||||
export default desktop
|
||||
Loading…
Add table
Add a link
Reference in a new issue