@elevo-ai/create-plugin 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/create-plugin.js +2 -0
- package/package.json +22 -0
- package/src/index.js +30 -0
- package/src/plopfile.js +160 -0
- package/src/templates/app/elevo.plugin.json +29 -0
- package/src/templates/app/ui/src/App.tsx.hbs +18 -0
- package/src/templates/app-plus/elevo.plugin.json +38 -0
- package/src/templates/common/README.md +55 -0
- package/src/templates/extension/elevo.plugin.json +29 -0
- package/src/templates/extension/ui/src/App.tsx.hbs +38 -0
- package/src/templates/extension-plus/elevo.plugin.json +38 -0
- package/src/templates/plugin/.claude-plugin/plugin.json +9 -0
- package/src/templates/plugin/agents/my-plugin-agent.md +9 -0
- package/src/templates/plugin/commands/my-plugin-command.md +946 -0
- package/src/templates/plugin/elevo.plugin.json +34 -0
- package/src/templates/plugin/skills/my-plugin-skill/SKILL.md +6 -0
- package/src/templates/ui/package.json.hbs +31 -0
- package/src/templates/ui/src/globals.css +5 -0
- package/src/templates/ui/src/i18n.ts +17 -0
- package/src/templates/ui/src/vite-env.d.ts +1 -0
- package/src/templates/ui/tailwind.config.js +5 -0
- package/src/templates/ui/tsconfig.json +21 -0
- package/src/templates/ui/vite.config.ts +6 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{pluginId}}",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"display_name": "{{>pluginIdTitleCase}}",
|
|
5
|
+
"description": "Please provide a description for your plugin.",
|
|
6
|
+
"type": "app",
|
|
7
|
+
"category": "apps",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Elevo Team",
|
|
10
|
+
"email": "dev@elevo.vip"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [],
|
|
13
|
+
|
|
14
|
+
"capabilities": {
|
|
15
|
+
"prompts": {
|
|
16
|
+
"skills": [
|
|
17
|
+
"my-plugin-skill"
|
|
18
|
+
],
|
|
19
|
+
"commands": [
|
|
20
|
+
"my-plugin-command"
|
|
21
|
+
],
|
|
22
|
+
"agents": ["my-plugin-agent"]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
"permissions": [
|
|
27
|
+
"workspace:read",
|
|
28
|
+
"workspace:write",
|
|
29
|
+
"conversation:read",
|
|
30
|
+
"conversation:write",
|
|
31
|
+
"object:read",
|
|
32
|
+
"object:write"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elevo-plugin/{{pluginId}}",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite build --mode dev --watch",
|
|
8
|
+
"build": "tsc && vite build",
|
|
9
|
+
"serve": "plugin-serve"
|
|
10
|
+
},
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"@elevo-ai/plugin-dev": "^0.1.1",
|
|
13
|
+
"@elevo-ai/plugin-sdk": "^0.4.0",
|
|
14
|
+
"@elevo-ai/plugin-serve": "^0.2.2",
|
|
15
|
+
"@types/node": "^24.0.0",
|
|
16
|
+
"@types/react": "^19.0.0",
|
|
17
|
+
"@types/react-dom": "^19.0.0",
|
|
18
|
+
"typescript": "^5.9.3",
|
|
19
|
+
"vite": "^7.3.1"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"i18next": "^25.0.0",
|
|
23
|
+
"react": "^19.0.0",
|
|
24
|
+
"react-dom": "^19.0.0",
|
|
25
|
+
"react-i18next": "^16.0.0"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"lucide-react": "^0.563.0",
|
|
29
|
+
"tailwindcss": "^4.1.17"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import i18next from 'i18next';
|
|
2
|
+
|
|
3
|
+
i18next.addResourceBundle(
|
|
4
|
+
'en',
|
|
5
|
+
'{{pluginId}}',
|
|
6
|
+
{
|
|
7
|
+
title: '{{>pluginIdTitleCase}}',
|
|
8
|
+
}
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
i18next.addResourceBundle(
|
|
12
|
+
'zh-CN',
|
|
13
|
+
'{{pluginId}}',
|
|
14
|
+
{
|
|
15
|
+
title: '{{>pluginIdTitleCase}}',
|
|
16
|
+
}
|
|
17
|
+
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
|
|
9
|
+
/* Bundler mode */
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"allowImportingTsExtensions": true,
|
|
12
|
+
"isolatedModules": true,
|
|
13
|
+
"moduleDetection": "force",
|
|
14
|
+
"noEmit": true,
|
|
15
|
+
"jsx": "react-jsx",
|
|
16
|
+
|
|
17
|
+
/* Linting */
|
|
18
|
+
"strict": true
|
|
19
|
+
},
|
|
20
|
+
"include": ["src"]
|
|
21
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { defineConfig, type ConfigEnv, type UserConfig } from 'vite';
|
|
2
|
+
import definePluginConfig from '@elevo-ai/plugin-dev';
|
|
3
|
+
|
|
4
|
+
export default defineConfig((env: ConfigEnv) => {
|
|
5
|
+
return definePluginConfig({ ...env, name: "{{>pluginIdPascalCase}}" }) as UserConfig;
|
|
6
|
+
});
|