@bibobonking/opensol 0.0.0-stage → 3.0.1
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/.github/workflows/build.yml +25 -0
- package/README.md +74 -2
- package/dist/assets/index-BmN7pBji.css +1 -0
- package/dist/assets/index-DgNDjkOz.js +301 -0
- package/dist/favicon.svg +15 -0
- package/dist/index.html +55 -0
- package/dist/preview-host.html +33 -0
- package/index.html +54 -0
- package/package.json +43 -4
- package/postcss.config.js +6 -0
- package/public/favicon.svg +15 -0
- package/public/preview-host.html +33 -0
- package/shared/plugin-builder.test.mjs +43 -0
- package/shared/plugin-package.d.mts +34 -0
- package/shared/plugin-package.mjs +197 -0
- package/shared/plugin-package.test.mjs +94 -0
- package/src/App.tsx +152 -0
- package/src/agent/adapters/anthropic.ts +233 -0
- package/src/agent/adapters/gemini.ts +225 -0
- package/src/agent/adapters/openai-responses.ts +215 -0
- package/src/agent/adapters/openai.ts +200 -0
- package/src/agent/adapters/shared.ts +96 -0
- package/src/agent/approval.ts +20 -0
- package/src/agent/compact.ts +234 -0
- package/src/agent/index.ts +36 -0
- package/src/agent/model.ts +20 -0
- package/src/agent/prompt.ts +107 -0
- package/src/agent/queue.test.mjs +111 -0
- package/src/agent/queue.ts +84 -0
- package/src/agent/subagent.ts +109 -0
- package/src/agent/tools.ts +541 -0
- package/src/components/ChatView.tsx +403 -0
- package/src/components/CommandPalette.tsx +416 -0
- package/src/components/Composer.tsx +678 -0
- package/src/components/ContextBar.tsx +58 -0
- package/src/components/DeployModal.tsx +512 -0
- package/src/components/ErrorBoundary.tsx +75 -0
- package/src/components/HomeDashboard.tsx +189 -0
- package/src/components/Logo.tsx +41 -0
- package/src/components/Markdown.tsx +232 -0
- package/src/components/MessageItem.tsx +655 -0
- package/src/components/ModelPicker.tsx +487 -0
- package/src/components/PixleSol.tsx +243 -0
- package/src/components/PluginBuilder.tsx +285 -0
- package/src/components/PluginManager.tsx +341 -0
- package/src/components/PreviewPane.tsx +166 -0
- package/src/components/SettingsModal.tsx +2052 -0
- package/src/components/Sidebar.tsx +504 -0
- package/src/components/Splash.tsx +104 -0
- package/src/components/ToolCallCard.tsx +177 -0
- package/src/components/TopBar.tsx +182 -0
- package/src/components/TrajectoryView.tsx +178 -0
- package/src/components/WorkspacePanel.tsx +710 -0
- package/src/components/ui.tsx +311 -0
- package/src/core/kernel.ts +45 -0
- package/src/core/plugins/tools/fs.ts +219 -0
- package/src/core/plugins/tools/git.ts +83 -0
- package/src/core/plugins/tools/grep.ts +98 -0
- package/src/core/plugins/tools/shell.ts +88 -0
- package/src/core/plugins/tools/subagent.ts +36 -0
- package/src/core/plugins/tools/web.ts +97 -0
- package/src/core/services/agent-loop.ts +417 -0
- package/src/core/services/approval.ts +66 -0
- package/src/core/services/compaction.ts +45 -0
- package/src/core/services/llm.ts +32 -0
- package/src/core/services/sessions.ts +47 -0
- package/src/core/services/subagents.ts +15 -0
- package/src/core/services/system-prompt.ts +177 -0
- package/src/core/services/tools.ts +135 -0
- package/src/core/services/ui.ts +109 -0
- package/src/core/types.ts +139 -0
- package/src/data/providers.ts +125 -0
- package/src/data/skills.ts +68 -0
- package/src/index.css +776 -0
- package/src/lib/boot.ts +94 -0
- package/src/lib/context.ts +75 -0
- package/src/lib/conversation.test.mjs +64 -0
- package/src/lib/conversation.ts +59 -0
- package/src/lib/daemon.ts +475 -0
- package/src/lib/hooks.ts +33 -0
- package/src/lib/permissions.ts +60 -0
- package/src/lib/pixlesol.test.mjs +51 -0
- package/src/lib/pixlesol.ts +55 -0
- package/src/lib/plugin-folder.test.mjs +145 -0
- package/src/lib/plugin-folder.ts +96 -0
- package/src/lib/reasoning.ts +87 -0
- package/src/lib/sse.ts +75 -0
- package/src/lib/themes.test.mjs +72 -0
- package/src/lib/themes.ts +52 -0
- package/src/lib/usage.test.mjs +72 -0
- package/src/lib/usage.ts +155 -0
- package/src/lib/utils.ts +73 -0
- package/src/main.tsx +16 -0
- package/src/plugins/api.test.mjs +77 -0
- package/src/plugins/api.ts +113 -0
- package/src/plugins/bridge.d.mts +1 -0
- package/src/plugins/bridge.mjs +26 -0
- package/src/plugins/bridge.test.mjs +17 -0
- package/src/plugins/index.ts +52 -0
- package/src/plugins/preview.test.mjs +18 -0
- package/src/plugins/preview.ts +34 -0
- package/src/plugins/runtime.ts +194 -0
- package/src/plugins/types.ts +40 -0
- package/src/store/chats.ts +278 -0
- package/src/store/models.ts +120 -0
- package/src/store/settings.ts +445 -0
- package/src/store/ui.ts +132 -0
- package/src/store/workspace.ts +299 -0
- package/src/types.ts +337 -0
- package/src/vite-env.d.ts +1 -0
- package/tailwind.config.js +83 -0
- package/tsconfig.json +22 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/vite.config.ts +19 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/** @type {import('tailwindcss').Config} */
|
|
2
|
+
export default {
|
|
3
|
+
darkMode: 'class',
|
|
4
|
+
content: ['./index.html', './src/**/*.{ts,tsx}'],
|
|
5
|
+
theme: {
|
|
6
|
+
extend: {
|
|
7
|
+
colors: {
|
|
8
|
+
canvas: 'rgb(var(--canvas) / <alpha-value>)',
|
|
9
|
+
panel: 'rgb(var(--panel) / <alpha-value>)',
|
|
10
|
+
raised: 'rgb(var(--raised) / <alpha-value>)',
|
|
11
|
+
line: 'rgb(var(--line) / <alpha-value>)',
|
|
12
|
+
ink: 'rgb(var(--ink) / <alpha-value>)',
|
|
13
|
+
muted: 'rgb(var(--muted) / <alpha-value>)',
|
|
14
|
+
faint: 'rgb(var(--faint) / <alpha-value>)',
|
|
15
|
+
accent: 'rgb(var(--accent) / <alpha-value>)',
|
|
16
|
+
'accent-soft': 'rgb(var(--accent-soft) / <alpha-value>)',
|
|
17
|
+
'on-accent': 'rgb(var(--on-accent) / <alpha-value>)',
|
|
18
|
+
success: 'rgb(var(--success) / <alpha-value>)',
|
|
19
|
+
warning: 'rgb(var(--warning) / <alpha-value>)',
|
|
20
|
+
danger: 'rgb(var(--danger) / <alpha-value>)',
|
|
21
|
+
},
|
|
22
|
+
fontFamily: {
|
|
23
|
+
sans: ['Geist', 'Inter', 'system-ui', '-apple-system', '"Segoe UI"', 'sans-serif'],
|
|
24
|
+
display: ['Geist', 'Inter', 'system-ui', '-apple-system', 'sans-serif'],
|
|
25
|
+
serif: ['Geist', 'Inter', 'system-ui', '-apple-system', 'sans-serif'],
|
|
26
|
+
mono: ['"Geist Mono"', '"JetBrains Mono"', 'ui-monospace', 'SFMono-Regular', 'monospace'],
|
|
27
|
+
},
|
|
28
|
+
boxShadow: {
|
|
29
|
+
composer: '0 1px 2px rgba(0,0,0,0.04), 0 8px 28px -12px rgba(0,0,0,0.12)',
|
|
30
|
+
float: '0 24px 64px -20px rgba(0,0,0,0.28), 0 0 0 1px rgb(var(--line))',
|
|
31
|
+
pill: '0 1px 2px rgba(0,0,0,0.06)',
|
|
32
|
+
},
|
|
33
|
+
transitionTimingFunction: {
|
|
34
|
+
out: 'cubic-bezier(0.16, 1, 0.3, 1)',
|
|
35
|
+
spring: 'cubic-bezier(0.34, 1.56, 0.64, 1)',
|
|
36
|
+
},
|
|
37
|
+
borderRadius: {
|
|
38
|
+
'4xl': '2rem',
|
|
39
|
+
},
|
|
40
|
+
keyframes: {
|
|
41
|
+
rise: { from: { opacity: '0', transform: 'translateY(12px)' }, to: { opacity: '1', transform: 'translateY(0)' } },
|
|
42
|
+
fade: { from: { opacity: '0' }, to: { opacity: '1' } },
|
|
43
|
+
scalein: { from: { opacity: '0', transform: 'scale(0.96)' }, to: { opacity: '1', transform: 'scale(1)' } },
|
|
44
|
+
slideleft: { from: { opacity: '0', transform: 'translateX(-10px)' }, to: { opacity: '1', transform: 'translateX(0)' } },
|
|
45
|
+
blurin: { from: { opacity: '0', filter: 'blur(8px)', transform: 'translateY(6px)' }, to: { opacity: '1', filter: 'blur(0)', transform: 'translateY(0)' } },
|
|
46
|
+
caret: { '0%, 100%': { opacity: '0.15' }, '50%': { opacity: '1' } },
|
|
47
|
+
shimmer: { '0%': { backgroundPosition: '-200% 0' }, '100%': { backgroundPosition: '200% 0' } },
|
|
48
|
+
breathe: { '0%, 100%': { transform: 'scale(1)', opacity: '1' }, '50%': { transform: 'scale(0.8)', opacity: '0.6' } },
|
|
49
|
+
float: { '0%, 100%': { transform: 'translateY(0)' }, '50%': { transform: 'translateY(-3px)' } },
|
|
50
|
+
bob: { '0%, 100%': { transform: 'translateY(0)' }, '50%': { transform: 'translateY(-2px)' } },
|
|
51
|
+
shake: { '0%, 100%': { transform: 'translateX(0)' }, '25%': { transform: 'translateX(-1.5px)' }, '75%': { transform: 'translateX(1.5px)' } },
|
|
52
|
+
pop: { '0%, 100%': { transform: 'scale(1)' }, '50%': { transform: 'scale(1.1)' } },
|
|
53
|
+
twinkle: { '0%, 100%': { opacity: '0.15', transform: 'scale(0.8)' }, '50%': { opacity: '0.6', transform: 'scale(1)' } },
|
|
54
|
+
drift: { '0%, 100%': { transform: 'translate3d(0,0,0) scale(1)' }, '50%': { transform: 'translate3d(14px,-18px,0) scale(1.06)' } },
|
|
55
|
+
spinslow: { to: { transform: 'rotate(360deg)' } },
|
|
56
|
+
ping: { '0%': { transform: 'scale(1)', opacity: '0.5' }, '80%, 100%': { transform: 'scale(2.2)', opacity: '0' } },
|
|
57
|
+
sweep: { '0%': { transform: 'translateX(-100%)' }, '100%': { transform: 'translateX(250%)' } },
|
|
58
|
+
},
|
|
59
|
+
animation: {
|
|
60
|
+
rise: 'rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both',
|
|
61
|
+
fade: 'fade 0.25s ease-out both',
|
|
62
|
+
scalein: 'scalein 0.28s cubic-bezier(0.16, 1, 0.3, 1) both',
|
|
63
|
+
slideleft: 'slideleft 0.4s cubic-bezier(0.16, 1, 0.3, 1) both',
|
|
64
|
+
blurin: 'blurin 0.7s cubic-bezier(0.16, 1, 0.3, 1) both',
|
|
65
|
+
caret: 'caret 1s ease-in-out infinite',
|
|
66
|
+
shimmer: 'shimmer 2s linear infinite',
|
|
67
|
+
breathe: 'breathe 1.6s ease-in-out infinite',
|
|
68
|
+
'float-slow': 'float 3.4s ease-in-out infinite',
|
|
69
|
+
float: 'float 2.4s ease-in-out infinite',
|
|
70
|
+
bob: 'bob 1.6s ease-in-out infinite',
|
|
71
|
+
'bob-fast': 'bob 0.8s ease-in-out infinite',
|
|
72
|
+
shake: 'shake 0.35s ease-in-out infinite',
|
|
73
|
+
pop: 'pop 1.4s ease-in-out infinite',
|
|
74
|
+
twinkle: 'twinkle 2.6s ease-in-out infinite',
|
|
75
|
+
drift: 'drift 14s ease-in-out infinite',
|
|
76
|
+
'spin-slow': 'spinslow 18s linear infinite',
|
|
77
|
+
ping: 'ping 1.8s cubic-bezier(0,0,0.2,1) infinite',
|
|
78
|
+
sweep: 'sweep 1.4s cubic-bezier(0.65,0,0.35,1) infinite',
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
plugins: [],
|
|
83
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"allowImportingTsExtensions": false,
|
|
10
|
+
"resolveJsonModule": true,
|
|
11
|
+
"isolatedModules": true,
|
|
12
|
+
"moduleDetection": "force",
|
|
13
|
+
"noEmit": true,
|
|
14
|
+
"jsx": "react-jsx",
|
|
15
|
+
"strict": true,
|
|
16
|
+
"noUnusedLocals": true,
|
|
17
|
+
"noUnusedParameters": true,
|
|
18
|
+
"noFallthroughCasesInSwitch": true,
|
|
19
|
+
"noUncheckedSideEffectImports": true
|
|
20
|
+
},
|
|
21
|
+
"include": ["src"]
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["./src/App.tsx","./src/main.tsx","./src/types.ts","./src/vite-env.d.ts","./src/agent/approval.ts","./src/agent/compact.ts","./src/agent/index.ts","./src/agent/model.ts","./src/agent/prompt.ts","./src/agent/queue.ts","./src/agent/subagent.ts","./src/agent/tools.ts","./src/agent/adapters/anthropic.ts","./src/agent/adapters/gemini.ts","./src/agent/adapters/openai-responses.ts","./src/agent/adapters/openai.ts","./src/agent/adapters/shared.ts","./src/components/ChatView.tsx","./src/components/CommandPalette.tsx","./src/components/Composer.tsx","./src/components/ContextBar.tsx","./src/components/DeployModal.tsx","./src/components/ErrorBoundary.tsx","./src/components/HomeDashboard.tsx","./src/components/Logo.tsx","./src/components/Markdown.tsx","./src/components/MessageItem.tsx","./src/components/ModelPicker.tsx","./src/components/PixleSol.tsx","./src/components/PluginBuilder.tsx","./src/components/PluginManager.tsx","./src/components/PreviewPane.tsx","./src/components/SettingsModal.tsx","./src/components/Sidebar.tsx","./src/components/Splash.tsx","./src/components/ToolCallCard.tsx","./src/components/TopBar.tsx","./src/components/TrajectoryView.tsx","./src/components/WorkspacePanel.tsx","./src/components/ui.tsx","./src/core/kernel.ts","./src/core/types.ts","./src/core/plugins/tools/fs.ts","./src/core/plugins/tools/git.ts","./src/core/plugins/tools/grep.ts","./src/core/plugins/tools/shell.ts","./src/core/plugins/tools/subagent.ts","./src/core/plugins/tools/web.ts","./src/core/services/agent-loop.ts","./src/core/services/approval.ts","./src/core/services/compaction.ts","./src/core/services/llm.ts","./src/core/services/sessions.ts","./src/core/services/subagents.ts","./src/core/services/system-prompt.ts","./src/core/services/tools.ts","./src/core/services/ui.ts","./src/data/providers.ts","./src/data/skills.ts","./src/lib/boot.ts","./src/lib/context.ts","./src/lib/conversation.ts","./src/lib/daemon.ts","./src/lib/hooks.ts","./src/lib/permissions.ts","./src/lib/pixlesol.ts","./src/lib/plugin-folder.ts","./src/lib/reasoning.ts","./src/lib/sse.ts","./src/lib/themes.ts","./src/lib/usage.ts","./src/lib/utils.ts","./src/plugins/api.ts","./src/plugins/bridge.d.mts","./src/plugins/index.ts","./src/plugins/preview.ts","./src/plugins/runtime.ts","./src/plugins/types.ts","./src/store/chats.ts","./src/store/models.ts","./src/store/settings.ts","./src/store/ui.ts","./src/store/workspace.ts"],"version":"5.9.3"}
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import react from '@vitejs/plugin-react'
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
plugins: [react()],
|
|
6
|
+
base: './',
|
|
7
|
+
server: {
|
|
8
|
+
proxy: {
|
|
9
|
+
'/api': {
|
|
10
|
+
target: 'http://127.0.0.1:4174',
|
|
11
|
+
changeOrigin: true,
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
build: {
|
|
16
|
+
target: 'es2022',
|
|
17
|
+
sourcemap: false,
|
|
18
|
+
},
|
|
19
|
+
})
|