@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.
@@ -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,6 @@
1
+ ---
2
+ name: my-plugin-skill
3
+ description: Please enter a description for My Plugin Skill
4
+ ---
5
+
6
+ # My Plugin Skill
@@ -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,5 @@
1
+ @config "../tailwind.config.js";
2
+ @import "tailwindcss/theme";
3
+ @import "tailwindcss/utilities";
4
+
5
+ @custom-variant dark (&:is(.dark *));
@@ -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,5 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ export default {
3
+ // 使用 important 选择器前缀,确保样式只作用于插件内部
4
+ important: '#{{pluginId}}',
5
+ };
@@ -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
+ });